blob_id
stringlengths 40
40
| directory_id
stringlengths 40
40
| path
stringlengths 2
268
| content_id
stringlengths 40
40
| detected_licenses
sequencelengths 0
58
| license_type
stringclasses 2
values | repo_name
stringlengths 5
118
| snapshot_id
stringlengths 40
40
| revision_id
stringlengths 40
40
| branch_name
stringclasses 816
values | visit_date
timestamp[us] | revision_date
timestamp[us] | committer_date
timestamp[us] | github_id
int64 2.31k
677M
⌀ | star_events_count
int64 0
209k
| fork_events_count
int64 0
110k
| gha_license_id
stringclasses 23
values | gha_event_created_at
timestamp[us] | gha_created_at
timestamp[us] | gha_language
stringclasses 151
values | src_encoding
stringclasses 33
values | language
stringclasses 1
value | is_vendor
bool 2
classes | is_generated
bool 2
classes | length_bytes
int64 3
10.3M
| extension
stringclasses 119
values | content
stringlengths 3
10.3M
| authors
sequencelengths 1
1
| author_id
stringlengths 0
228
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9a961a129f52a7ba142eca7dab422784c29bad80 | 8d6b3f6312ce1599e75e4e4e6c0fafff8d7487ca | /day3/ex01/ft_ultimate_ft.c | ee28cefa636bdd29ac67d3821dc2dbba2a1bfeae | [] | no_license | ftktx1/c | b4bc82defbb17d836fdd9a342b50aa4de6977edb | 36cfefafceef1168208e4fc36c21956aa11c2ddd | refs/heads/master | 2021-09-06T02:24:01.857764 | 2018-02-01T17:14:59 | 2018-02-01T17:14:59 | 119,866,760 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 954 | c | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_ultimate_ft.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: kshimek <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/01/12 22:50:19 by kshimek #+# #+# */
/* Updated: 2018/01/12 22:50:26 by kshimek ### ########.fr */
/* */
/* ************************************************************************** */
void ft_ultimate_ft(int *********nbr)
{
*********nbr = 42;
}
| [
"[email protected]"
] | |
84ef33ccd3ecf2c7a05d529f6b90ed952cccfa8b | bcbafb00a458e3e3f25bf8e07b8784351a498d92 | /libs/stb/include/stb_image.h | 5fbbf6445bb36650678436493040041ed60f027a | [
"Apache-2.0"
] | permissive | carsonclarke570/Metacraft | 5b7bda08e7311a34f6827a26398666d82d1cad20 | 2647a48c7c04b80efe4041343b09d4c70e8927b5 | refs/heads/master | 2020-05-17T04:22:01.299965 | 2019-07-01T13:43:38 | 2019-07-01T13:43:38 | 183,505,903 | 3 | 0 | Apache-2.0 | 2019-08-07T02:29:24 | 2019-04-25T20:33:52 | C | UTF-8 | C | false | false | 263,264 | h | /* stb_image - v2.22 - public domain image loader - http://nothings.org/stb
no warranty implied; use at your own risk
Do this:
#define STB_IMAGE_IMPLEMENTATION
before you include this file in *one* C or C++ file to create the implementation.
// i.e. it should look like this:
#include ...
#include ...
#include ...
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
You can #define STBI_ASSERT(x) before the #include to avoid using assert.h.
And #define STBI_MALLOC, STBI_REALLOC, and STBI_FREE to avoid using malloc,realloc,free
QUICK NOTES:
Primarily of interest to game developers and other people who can
avoid problematic images and only need the trivial interface
JPEG baseline & progressive (12 bpc/arithmetic not supported, same as stock IJG lib)
PNG 1/2/4/8/16-bit-per-channel
TGA (not sure what subset, if a subset)
BMP non-1bpp, non-RLE
PSD (composited view only, no extra channels, 8/16 bit-per-channel)
GIF (*comp always reports as 4-channel)
HDR (radiance rgbE format)
PIC (Softimage PIC)
PNM (PPM and PGM binary only)
Animated GIF still needs a proper API, but here's one way to do it:
http://gist.github.com/urraka/685d9a6340b26b830d49
- decode from memory or through FILE (define STBI_NO_STDIO to remove code)
- decode from arbitrary I/O callbacks
- SIMD acceleration on x86/x64 (SSE2) and ARM (NEON)
Full documentation under "DOCUMENTATION" below.
LICENSE
See end of file for license information.
RECENT REVISION HISTORY:
2.22 (2019-03-04) gif fixes, fix warnings
2.21 (2019-02-25) fix typo in comment
2.20 (2019-02-07) support utf8 filenames in Windows; fix warnings and platform ifdefs
2.19 (2018-02-11) fix warning
2.18 (2018-01-30) fix warnings
2.17 (2018-01-29) bugfix, 1-bit BMP, 16-bitness query, fix warnings
2.16 (2017-07-23) all functions have 16-bit variants; optimizations; bugfixes
2.15 (2017-03-18) fix png-1,2,4; all Imagenet JPGs; no runtime SSE detection on GCC
2.14 (2017-03-03) remove deprecated STBI_JPEG_OLD; fixes for Imagenet JPGs
2.13 (2016-12-04) experimental 16-bit API, only for PNG so far; fixes
2.12 (2016-04-02) fix typo in 2.11 PSD fix that caused crashes
2.11 (2016-04-02) 16-bit PNGS; enable SSE2 in non-gcc x64
RGB-format JPEG; remove white matting in PSD;
allocate large structures on the stack;
correct channel count for PNG & BMP
2.10 (2016-01-22) avoid warning introduced in 2.09
2.09 (2016-01-16) 16-bit TGA; comments in PNM files; STBI_REALLOC_SIZED
See end of file for full revision history.
============================ Contributors =========================
Image formats Extensions, features
Sean Barrett (jpeg, png, bmp) Jetro Lauha (stbi_info)
Nicolas Schulz (hdr, psd) Martin "SpartanJ" Golini (stbi_info)
Jonathan Dummer (tga) James "moose2000" Brown (iPhone PNG)
Jean-Marc Lienher (gif) Ben "Disch" Wenger (io callbacks)
Tom Seddon (pic) Omar Cornut (1/2/4-bit PNG)
Thatcher Ulrich (psd) Nicolas Guillemot (vertical flip)
Ken Miller (pgm, ppm) Richard Mitton (16-bit PSD)
github:urraka (animated gif) Junggon Kim (PNM comments)
Christopher Forseth (animated gif) Daniel Gibson (16-bit TGA)
socks-the-fox (16-bit PNG)
Jeremy Sawicki (handle all ImageNet JPGs)
Optimizations & bugfixes Mikhail Morozov (1-bit BMP)
Fabian "ryg" Giesen Anael Seghezzi (is-16-bit query)
Arseny Kapoulkine
John-Mark Allen
Carmelo J Fdez-Aguera
Bug & warning fixes
Marc LeBlanc David Woo Guillaume George Martins Mozeiko
Christpher Lloyd Jerry Jansson Joseph Thomson Phil Jordan
Dave Moore Roy Eltham Hayaki Saito Nathan Reed
Won Chun Luke Graham Johan Duparc Nick Verigakis
the Horde3D community Thomas Ruf Ronny Chevalier github:rlyeh
Janez Zemva John Bartholomew Michal Cichon github:romigrou
Jonathan Blow Ken Hamada Tero Hanninen github:svdijk
Laurent Gomila Cort Stratton Sergio Gonzalez github:snagar
Aruelien Pocheville Thibault Reuille Cass Everitt github:Zelex
Ryamond Barbiero Paul Du Bois Engin Manap github:grim210
Aldo Culquicondor Philipp Wiesemann Dale Weiler github:sammyhw
Oriol Ferrer Mesia Josh Tobin Matthew Gregan github:phprus
Julian Raschke Gregory Mullen Baldur Karlsson github:poppolopoppo
Christian Floisand Kevin Schmidt JR Smith github:darealshinji
Blazej Dariusz Roszkowski github:Michaelangel007
*/
#ifndef STBI_INCLUDE_STB_IMAGE_H
#define STBI_INCLUDE_STB_IMAGE_H
// DOCUMENTATION
//
// Limitations:
// - no 12-bit-per-channel JPEG
// - no JPEGs with arithmetic coding
// - GIF always returns *comp=4
//
// Basic usage (see HDR discussion below for HDR usage):
// int x,y,n;
// unsigned char *data = stbi_load(filename, &x, &y, &n, 0);
// // ... process data if not NULL ...
// // ... x = width, y = height, n = # 8-bit components per pixel ...
// // ... replace '0' with '1'..'4' to force that many components per pixel
// // ... but 'n' will always be the number that it would have been if you said 0
// stbi_image_free(data)
//
// Standard parameters:
// int *x -- outputs image width in pixels
// int *y -- outputs image height in pixels
// int *channels_in_file -- outputs # of image components in image file
// int desired_channels -- if non-zero, # of image components requested in result
//
// The return value from an image loader is an 'unsigned char *' which points
// to the pixel data, or NULL on an allocation failure or if the image is
// corrupt or invalid. The pixel data consists of *y scanlines of *x pixels,
// with each pixel consisting of N interleaved 8-bit components; the first
// pixel pointed to is top-left-most in the image. There is no padding between
// image scanlines or between pixels, regardless of format. The number of
// components N is 'desired_channels' if desired_channels is non-zero, or
// *channels_in_file otherwise. If desired_channels is non-zero,
// *channels_in_file has the number of components that _would_ have been
// output otherwise. E.g. if you set desired_channels to 4, you will always
// get RGBA output, but you can check *channels_in_file to see if it's trivially
// opaque because e.g. there were only 3 channels in the source image.
//
// An output image with N components has the following components interleaved
// in this order in each pixel:
//
// N=#comp components
// 1 grey
// 2 grey, alpha
// 3 red, green, blue
// 4 red, green, blue, alpha
//
// If image loading fails for any reason, the return value will be NULL,
// and *x, *y, *channels_in_file will be unchanged. The function
// stbi_failure_reason() can be queried for an extremely brief, end-user
// unfriendly explanation of why the load failed. Define STBI_NO_FAILURE_STRINGS
// to avoid compiling these strings at all, and STBI_FAILURE_USERMSG to get slightly
// more user-friendly ones.
//
// Paletted PNG, BMP, GIF, and PIC images are automatically depalettized.
//
// ===========================================================================
//
// UNICODE:
//
// If compiling for Windows and you wish to use Unicode filenames, compile
// with
// #define STBI_WINDOWS_UTF8
// and pass utf8-encoded filenames. Call stbi_convert_wchar_to_utf8 to convert
// Windows wchar_t filenames to utf8.
//
// ===========================================================================
//
// Philosophy
//
// stb libraries are designed with the following priorities:
//
// 1. easy to use
// 2. easy to maintain
// 3. good performance
//
// Sometimes I let "good performance" creep up in priority over "easy to maintain",
// and for best performance I may provide less-easy-to-use APIs that give higher
// performance, in addition to the easy-to-use ones. Nevertheless, it's important
// to keep in mind that from the standpoint of you, a client of this library,
// all you care about is #1 and #3, and stb libraries DO NOT emphasize #3 above all.
//
// Some secondary priorities arise directly from the first two, some of which
// provide more explicit reasons why performance can't be emphasized.
//
// - Portable ("ease of use")
// - Small source code footprint ("easy to maintain")
// - No dependencies ("ease of use")
//
// ===========================================================================
//
// I/O callbacks
//
// I/O callbacks allow you to read from arbitrary sources, like packaged
// files or some other source. Data read from callbacks are processed
// through a small internal buffer (currently 128 bytes) to try to reduce
// overhead.
//
// The three functions you must define are "read" (reads some bytes of data),
// "skip" (skips some bytes of data), "eof" (reports if the stream is at the end).
//
// ===========================================================================
//
// SIMD support
//
// The JPEG decoder will try to automatically use SIMD kernels on x86 when
// supported by the compiler. For ARM Neon support, you must explicitly
// request it.
//
// (The old do-it-yourself SIMD API is no longer supported in the current
// code.)
//
// On x86, SSE2 will automatically be used when available based on a run-time
// test; if not, the generic C versions are used as a fall-back. On ARM targets,
// the typical path is to have separate builds for NEON and non-NEON devices
// (at least this is true for iOS and Android). Therefore, the NEON support is
// toggled by a build flag: define STBI_NEON to get NEON loops.
//
// If for some reason you do not want to use any of SIMD code, or if
// you have issues compiling it, you can disable it entirely by
// defining STBI_NO_SIMD.
//
// ===========================================================================
//
// HDR image support (disable by defining STBI_NO_HDR)
//
// stb_image supports loading HDR images in general, and currently the Radiance
// .HDR file format specifically. You can still load any file through the existing
// interface; if you attempt to load an HDR file, it will be automatically remapped
// to LDR, assuming gamma 2.2 and an arbitrary scale factor defaulting to 1;
// both of these constants can be reconfigured through this interface:
//
// stbi_hdr_to_ldr_gamma(2.2f);
// stbi_hdr_to_ldr_scale(1.0f);
//
// (note, do not use _inverse_ constants; stbi_image will invert them
// appropriately).
//
// Additionally, there is a new, parallel interface for loading files as
// (linear) floats to preserve the full dynamic range:
//
// float *data = stbi_loadf(filename, &x, &y, &n, 0);
//
// If you load LDR images through this interface, those images will
// be promoted to floating point values, run through the inverse of
// constants corresponding to the above:
//
// stbi_ldr_to_hdr_scale(1.0f);
// stbi_ldr_to_hdr_gamma(2.2f);
//
// Finally, given a filename (or an open file or memory block--see header
// file for details) containing image data, you can query for the "most
// appropriate" interface to use (that is, whether the image is HDR or
// not), using:
//
// stbi_is_hdr(char *filename);
//
// ===========================================================================
//
// iPhone PNG support:
//
// By default we convert iphone-formatted PNGs back to RGB, even though
// they are internally encoded differently. You can disable this conversion
// by calling stbi_convert_iphone_png_to_rgb(0), in which case
// you will always just get the native iphone "format" through (which
// is BGR stored in RGB).
//
// Call stbi_set_unpremultiply_on_load(1) as well to force a divide per
// pixel to remove any premultiplied alpha *only* if the image file explicitly
// says there's premultiplied data (currently only happens in iPhone images,
// and only if iPhone convert-to-rgb processing is on).
//
// ===========================================================================
//
// ADDITIONAL CONFIGURATION
//
// - You can suppress implementation of any of the decoders to reduce
// your code footprint by #defining one or more of the following
// symbols before creating the implementation.
//
// STBI_NO_JPEG
// STBI_NO_PNG
// STBI_NO_BMP
// STBI_NO_PSD
// STBI_NO_TGA
// STBI_NO_GIF
// STBI_NO_HDR
// STBI_NO_PIC
// STBI_NO_PNM (.ppm and .pgm)
//
// - You can request *only* certain decoders and suppress all other ones
// (this will be more forward-compatible, as addition of new decoders
// doesn't require you to disable them explicitly):
//
// STBI_ONLY_JPEG
// STBI_ONLY_PNG
// STBI_ONLY_BMP
// STBI_ONLY_PSD
// STBI_ONLY_TGA
// STBI_ONLY_GIF
// STBI_ONLY_HDR
// STBI_ONLY_PIC
// STBI_ONLY_PNM (.ppm and .pgm)
//
// - If you use STBI_NO_PNG (or _ONLY_ without PNG), and you still
// want the zlib decoder to be available, #define STBI_SUPPORT_ZLIB
//
#ifndef STBI_NO_STDIO
#include <stdio.h>
#endif // STBI_NO_STDIO
#define STBI_VERSION 1
enum
{
STBI_default = 0, // only used for desired_channels
STBI_grey = 1,
STBI_grey_alpha = 2,
STBI_rgb = 3,
STBI_rgb_alpha = 4
};
#include <stdlib.h>
typedef unsigned char stbi_uc;
typedef unsigned short stbi_us;
#ifdef __cplusplus
extern "C" {
#endif
#ifndef STBIDEF
#ifdef STB_IMAGE_STATIC
#define STBIDEF static
#else
#define STBIDEF extern
#endif
#endif
//////////////////////////////////////////////////////////////////////////////
//
// PRIMARY API - works on images of any type
//
//
// load image by filename, open file, or memory buffer
//
typedef struct
{
int (*read) (void *user,char *data,int size); // fill 'data' with 'size' bytes. return number of bytes actually read
void (*skip) (void *user,int n); // skip the next 'n' bytes, or 'unget' the last -n bytes if negative
int (*eof) (void *user); // returns nonzero if we are at end of file/data
} stbi_io_callbacks;
////////////////////////////////////
//
// 8-bits-per-channel interface
//
STBIDEF stbi_uc *stbi_load_from_memory (stbi_uc const *buffer, int len , int *x, int *y, int *channels_in_file, int desired_channels);
STBIDEF stbi_uc *stbi_load_from_callbacks(stbi_io_callbacks const *clbk , void *user, int *x, int *y, int *channels_in_file, int desired_channels);
#ifndef STBI_NO_STDIO
STBIDEF stbi_uc *stbi_load (char const *filename, int *x, int *y, int *channels_in_file, int desired_channels);
STBIDEF stbi_uc *stbi_load_from_file (FILE *f, int *x, int *y, int *channels_in_file, int desired_channels);
// for stbi_load_from_file, file pointer is left pointing immediately after image
#endif
#ifndef STBI_NO_GIF
STBIDEF stbi_uc *stbi_load_gif_from_memory(stbi_uc const *buffer, int len, int **delays, int *x, int *y, int *z, int *comp, int req_comp);
#endif
#ifdef STBI_WINDOWS_UTF8
STBIDEF int stbi_convert_wchar_to_utf8(char *buffer, size_t bufferlen, const wchar_t* input);
#endif
////////////////////////////////////
//
// 16-bits-per-channel interface
//
STBIDEF stbi_us *stbi_load_16_from_memory (stbi_uc const *buffer, int len, int *x, int *y, int *channels_in_file, int desired_channels);
STBIDEF stbi_us *stbi_load_16_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *channels_in_file, int desired_channels);
#ifndef STBI_NO_STDIO
STBIDEF stbi_us *stbi_load_16 (char const *filename, int *x, int *y, int *channels_in_file, int desired_channels);
STBIDEF stbi_us *stbi_load_from_file_16(FILE *f, int *x, int *y, int *channels_in_file, int desired_channels);
#endif
////////////////////////////////////
//
// float-per-channel interface
//
#ifndef STBI_NO_LINEAR
STBIDEF float *stbi_loadf_from_memory (stbi_uc const *buffer, int len, int *x, int *y, int *channels_in_file, int desired_channels);
STBIDEF float *stbi_loadf_from_callbacks (stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *channels_in_file, int desired_channels);
#ifndef STBI_NO_STDIO
STBIDEF float *stbi_loadf (char const *filename, int *x, int *y, int *channels_in_file, int desired_channels);
STBIDEF float *stbi_loadf_from_file (FILE *f, int *x, int *y, int *channels_in_file, int desired_channels);
#endif
#endif
#ifndef STBI_NO_HDR
STBIDEF void stbi_hdr_to_ldr_gamma(float gamma);
STBIDEF void stbi_hdr_to_ldr_scale(float scale);
#endif // STBI_NO_HDR
#ifndef STBI_NO_LINEAR
STBIDEF void stbi_ldr_to_hdr_gamma(float gamma);
STBIDEF void stbi_ldr_to_hdr_scale(float scale);
#endif // STBI_NO_LINEAR
// stbi_is_hdr is always defined, but always returns false if STBI_NO_HDR
STBIDEF int stbi_is_hdr_from_callbacks(stbi_io_callbacks const *clbk, void *user);
STBIDEF int stbi_is_hdr_from_memory(stbi_uc const *buffer, int len);
#ifndef STBI_NO_STDIO
STBIDEF int stbi_is_hdr (char const *filename);
STBIDEF int stbi_is_hdr_from_file(FILE *f);
#endif // STBI_NO_STDIO
// get a VERY brief reason for failure
// NOT THREADSAFE
STBIDEF const char *stbi_failure_reason (void);
// free the loaded image -- this is just free()
STBIDEF void stbi_image_free (void *retval_from_stbi_load);
// get image dimensions & components without fully decoding
STBIDEF int stbi_info_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp);
STBIDEF int stbi_info_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp);
STBIDEF int stbi_is_16_bit_from_memory(stbi_uc const *buffer, int len);
STBIDEF int stbi_is_16_bit_from_callbacks(stbi_io_callbacks const *clbk, void *user);
#ifndef STBI_NO_STDIO
STBIDEF int stbi_info (char const *filename, int *x, int *y, int *comp);
STBIDEF int stbi_info_from_file (FILE *f, int *x, int *y, int *comp);
STBIDEF int stbi_is_16_bit (char const *filename);
STBIDEF int stbi_is_16_bit_from_file(FILE *f);
#endif
// for image formats that explicitly notate that they have premultiplied alpha,
// we just return the colors as stored in the file. set this flag to force
// unpremultiplication. results are undefined if the unpremultiply overflow.
STBIDEF void stbi_set_unpremultiply_on_load(int flag_true_if_should_unpremultiply);
// indicate whether we should process iphone images back to canonical format,
// or just pass them through "as-is"
STBIDEF void stbi_convert_iphone_png_to_rgb(int flag_true_if_should_convert);
// flip the image vertically, so the first pixel in the output array is the bottom left
STBIDEF void stbi_set_flip_vertically_on_load(int flag_true_if_should_flip);
// ZLIB client - used by PNG, available for other purposes
STBIDEF char *stbi_zlib_decode_malloc_guesssize(const char *buffer, int len, int initial_size, int *outlen);
STBIDEF char *stbi_zlib_decode_malloc_guesssize_headerflag(const char *buffer, int len, int initial_size, int *outlen, int parse_header);
STBIDEF char *stbi_zlib_decode_malloc(const char *buffer, int len, int *outlen);
STBIDEF int stbi_zlib_decode_buffer(char *obuffer, int olen, const char *ibuffer, int ilen);
STBIDEF char *stbi_zlib_decode_noheader_malloc(const char *buffer, int len, int *outlen);
STBIDEF int stbi_zlib_decode_noheader_buffer(char *obuffer, int olen, const char *ibuffer, int ilen);
#ifdef __cplusplus
}
#endif
//
//
//// end header file /////////////////////////////////////////////////////
#endif // STBI_INCLUDE_STB_IMAGE_H
#ifdef STB_IMAGE_IMPLEMENTATION
#if defined(STBI_ONLY_JPEG) || defined(STBI_ONLY_PNG) || defined(STBI_ONLY_BMP) \
|| defined(STBI_ONLY_TGA) || defined(STBI_ONLY_GIF) || defined(STBI_ONLY_PSD) \
|| defined(STBI_ONLY_HDR) || defined(STBI_ONLY_PIC) || defined(STBI_ONLY_PNM) \
|| defined(STBI_ONLY_ZLIB)
#ifndef STBI_ONLY_JPEG
#define STBI_NO_JPEG
#endif
#ifndef STBI_ONLY_PNG
#define STBI_NO_PNG
#endif
#ifndef STBI_ONLY_BMP
#define STBI_NO_BMP
#endif
#ifndef STBI_ONLY_PSD
#define STBI_NO_PSD
#endif
#ifndef STBI_ONLY_TGA
#define STBI_NO_TGA
#endif
#ifndef STBI_ONLY_GIF
#define STBI_NO_GIF
#endif
#ifndef STBI_ONLY_HDR
#define STBI_NO_HDR
#endif
#ifndef STBI_ONLY_PIC
#define STBI_NO_PIC
#endif
#ifndef STBI_ONLY_PNM
#define STBI_NO_PNM
#endif
#endif
#if defined(STBI_NO_PNG) && !defined(STBI_SUPPORT_ZLIB) && !defined(STBI_NO_ZLIB)
#define STBI_NO_ZLIB
#endif
#include <stdarg.h>
#include <stddef.h> // ptrdiff_t on osx
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#if !defined(STBI_NO_LINEAR) || !defined(STBI_NO_HDR)
#include <vector.h> // ldexp, pow
#endif
#ifndef STBI_NO_STDIO
#include <stdio.h>
#endif
#ifndef STBI_ASSERT
#include <assert.h>
#define STBI_ASSERT(x) assert(x)
#endif
#ifdef __cplusplus
#define STBI_EXTERN extern "C"
#else
#define STBI_EXTERN extern
#endif
#ifndef _MSC_VER
#ifdef __cplusplus
#define stbi_inline inline
#else
#define stbi_inline
#endif
#else
#define stbi_inline __forceinline
#endif
#ifdef _MSC_VER
typedef unsigned short stbi__uint16;
typedef signed short stbi__int16;
typedef unsigned int stbi__uint32;
typedef signed int stbi__int32;
#else
#include <stdint.h>
typedef uint16_t stbi__uint16;
typedef int16_t stbi__int16;
typedef uint32_t stbi__uint32;
typedef int32_t stbi__int32;
#endif
// should produce compiler error if size is wrong
typedef unsigned char validate_uint32[sizeof(stbi__uint32)==4 ? 1 : -1];
#ifdef _MSC_VER
#define STBI_NOTUSED(v) (void)(v)
#else
#define STBI_NOTUSED(v) (void)sizeof(v)
#endif
#ifdef _MSC_VER
#define STBI_HAS_LROTL
#endif
#ifdef STBI_HAS_LROTL
#define stbi_lrot(x,y) _lrotl(x,y)
#else
#define stbi_lrot(x,y) (((x) << (y)) | ((x) >> (32 - (y))))
#endif
#if defined(STBI_MALLOC) && defined(STBI_FREE) && (defined(STBI_REALLOC) || defined(STBI_REALLOC_SIZED))
// ok
#elif !defined(STBI_MALLOC) && !defined(STBI_FREE) && !defined(STBI_REALLOC) && !defined(STBI_REALLOC_SIZED)
// ok
#else
#error "Must define all or none of STBI_MALLOC, STBI_FREE, and STBI_REALLOC (or STBI_REALLOC_SIZED)."
#endif
#ifndef STBI_MALLOC
#define STBI_MALLOC(sz) malloc(sz)
#define STBI_REALLOC(p,newsz) realloc(p,newsz)
#define STBI_FREE(p) free(p)
#endif
#ifndef STBI_REALLOC_SIZED
#define STBI_REALLOC_SIZED(p,oldsz,newsz) STBI_REALLOC(p,newsz)
#endif
// x86/x64 detection
#if defined(__x86_64__) || defined(_M_X64)
#define STBI__X64_TARGET
#elif defined(__i386) || defined(_M_IX86)
#define STBI__X86_TARGET
#endif
#if defined(__GNUC__) && defined(STBI__X86_TARGET) && !defined(__SSE2__) && !defined(STBI_NO_SIMD)
// gcc doesn't support sse2 intrinsics unless you compile with -msse2,
// which in turn means it gets to use SSE2 everywhere. This is unfortunate,
// but previous attempts to provide the SSE2 functions with runtime
// detection caused numerous issues. The way architecture extensions are
// exposed in GCC/Clang is, sadly, not really suited for one-file libs.
// New behavior: if compiled with -msse2, we use SSE2 without any
// detection; if not, we don't use it at all.
#define STBI_NO_SIMD
#endif
#if defined(__MINGW32__) && defined(STBI__X86_TARGET) && !defined(STBI_MINGW_ENABLE_SSE2) && !defined(STBI_NO_SIMD)
// Note that __MINGW32__ doesn't actually mean 32-bit, so we have to avoid STBI__X64_TARGET
//
// 32-bit MinGW wants ESP to be 16-byte aligned, but this is not in the
// Windows ABI and VC++ as well as Windows DLLs don't maintain that invariant.
// As a result, enabling SSE2 on 32-bit MinGW is dangerous when not
// simultaneously enabling "-mstackrealign".
//
// See https://github.com/nothings/stb/issues/81 for more information.
//
// So default to no SSE2 on 32-bit MinGW. If you've read this far and added
// -mstackrealign to your build settings, feel free to #define STBI_MINGW_ENABLE_SSE2.
#define STBI_NO_SIMD
#endif
#if !defined(STBI_NO_SIMD) && (defined(STBI__X86_TARGET) || defined(STBI__X64_TARGET))
#define STBI_SSE2
#include <emmintrin.h>
#ifdef _MSC_VER
#if _MSC_VER >= 1400 // not VC6
#include <intrin.h> // __cpuid
static int stbi__cpuid3(void)
{
int info[4];
__cpuid(info,1);
return info[3];
}
#else
static int stbi__cpuid3(void)
{
int res;
__asm {
mov eax,1
cpuid
mov res,edx
}
return res;
}
#endif
#define STBI_SIMD_ALIGN(type, name) __declspec(align(16)) type name
#if !defined(STBI_NO_JPEG) && defined(STBI_SSE2)
static int stbi__sse2_available(void)
{
int info3 = stbi__cpuid3();
return ((info3 >> 26) & 1) != 0;
}
#endif
#else // assume GCC-style if not VC++
#define STBI_SIMD_ALIGN(type, name) type name __attribute__((aligned(16)))
#if !defined(STBI_NO_JPEG) && defined(STBI_SSE2)
static int stbi__sse2_available(void)
{
// If we're even attempting to compile this on GCC/Clang, that means
// -msse2 is on, which means the compiler is allowed to use SSE2
// instructions at will, and so are we.
return 1;
}
#endif
#endif
#endif
// ARM NEON
#if defined(STBI_NO_SIMD) && defined(STBI_NEON)
#undef STBI_NEON
#endif
#ifdef STBI_NEON
#include <arm_neon.h>
// assume GCC or Clang on ARM targets
#define STBI_SIMD_ALIGN(type, name) type name __attribute__((aligned(16)))
#endif
#ifndef STBI_SIMD_ALIGN
#define STBI_SIMD_ALIGN(type, name) type name
#endif
///////////////////////////////////////////////
//
// stbi__context struct and start_xxx functions
// stbi__context structure is our basic context used by all images, so it
// contains all the IO context, plus some basic image information
typedef struct
{
stbi__uint32 img_x, img_y;
int img_n, img_out_n;
stbi_io_callbacks io;
void *io_user_data;
int read_from_callbacks;
int buflen;
stbi_uc buffer_start[128];
stbi_uc *img_buffer, *img_buffer_end;
stbi_uc *img_buffer_original, *img_buffer_original_end;
} stbi__context;
static void stbi__refill_buffer(stbi__context *s);
// initialize a memory-decode context
static void stbi__start_mem(stbi__context *s, stbi_uc const *buffer, int len)
{
s->io.read = NULL;
s->read_from_callbacks = 0;
s->img_buffer = s->img_buffer_original = (stbi_uc *) buffer;
s->img_buffer_end = s->img_buffer_original_end = (stbi_uc *) buffer+len;
}
// initialize a callback-based context
static void stbi__start_callbacks(stbi__context *s, stbi_io_callbacks *c, void *user)
{
s->io = *c;
s->io_user_data = user;
s->buflen = sizeof(s->buffer_start);
s->read_from_callbacks = 1;
s->img_buffer_original = s->buffer_start;
stbi__refill_buffer(s);
s->img_buffer_original_end = s->img_buffer_end;
}
#ifndef STBI_NO_STDIO
static int stbi__stdio_read(void *user, char *data, int size)
{
return (int) fread(data,1,size,(FILE*) user);
}
static void stbi__stdio_skip(void *user, int n)
{
fseek((FILE*) user, n, SEEK_CUR);
}
static int stbi__stdio_eof(void *user)
{
return feof((FILE*) user);
}
static stbi_io_callbacks stbi__stdio_callbacks =
{
stbi__stdio_read,
stbi__stdio_skip,
stbi__stdio_eof,
};
static void stbi__start_file(stbi__context *s, FILE *f)
{
stbi__start_callbacks(s, &stbi__stdio_callbacks, (void *) f);
}
//static void stop_file(stbi__context *s) { }
#endif // !STBI_NO_STDIO
static void stbi__rewind(stbi__context *s)
{
// conceptually rewind SHOULD rewind to the beginning of the stream,
// but we just rewind to the beginning of the initial buffer, because
// we only use it after doing 'test', which only ever looks at at most 92 bytes
s->img_buffer = s->img_buffer_original;
s->img_buffer_end = s->img_buffer_original_end;
}
enum
{
STBI_ORDER_RGB,
STBI_ORDER_BGR
};
typedef struct
{
int bits_per_channel;
int num_channels;
int channel_order;
} stbi__result_info;
#ifndef STBI_NO_JPEG
static int stbi__jpeg_test(stbi__context *s);
static void *stbi__jpeg_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);
static int stbi__jpeg_info(stbi__context *s, int *x, int *y, int *comp);
#endif
#ifndef STBI_NO_PNG
static int stbi__png_test(stbi__context *s);
static void *stbi__png_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);
static int stbi__png_info(stbi__context *s, int *x, int *y, int *comp);
static int stbi__png_is16(stbi__context *s);
#endif
#ifndef STBI_NO_BMP
static int stbi__bmp_test(stbi__context *s);
static void *stbi__bmp_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);
static int stbi__bmp_info(stbi__context *s, int *x, int *y, int *comp);
#endif
#ifndef STBI_NO_TGA
static int stbi__tga_test(stbi__context *s);
static void *stbi__tga_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);
static int stbi__tga_info(stbi__context *s, int *x, int *y, int *comp);
#endif
#ifndef STBI_NO_PSD
static int stbi__psd_test(stbi__context *s);
static void *stbi__psd_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri, int bpc);
static int stbi__psd_info(stbi__context *s, int *x, int *y, int *comp);
static int stbi__psd_is16(stbi__context *s);
#endif
#ifndef STBI_NO_HDR
static int stbi__hdr_test(stbi__context *s);
static float *stbi__hdr_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);
static int stbi__hdr_info(stbi__context *s, int *x, int *y, int *comp);
#endif
#ifndef STBI_NO_PIC
static int stbi__pic_test(stbi__context *s);
static void *stbi__pic_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);
static int stbi__pic_info(stbi__context *s, int *x, int *y, int *comp);
#endif
#ifndef STBI_NO_GIF
static int stbi__gif_test(stbi__context *s);
static void *stbi__gif_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);
static void *stbi__load_gif_main(stbi__context *s, int **delays, int *x, int *y, int *z, int *comp, int req_comp);
static int stbi__gif_info(stbi__context *s, int *x, int *y, int *comp);
#endif
#ifndef STBI_NO_PNM
static int stbi__pnm_test(stbi__context *s);
static void *stbi__pnm_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri);
static int stbi__pnm_info(stbi__context *s, int *x, int *y, int *comp);
#endif
// this is not threadsafe
static const char *stbi__g_failure_reason;
STBIDEF const char *stbi_failure_reason(void)
{
return stbi__g_failure_reason;
}
static int stbi__err(const char *str)
{
stbi__g_failure_reason = str;
return 0;
}
static void *stbi__malloc(size_t size)
{
return STBI_MALLOC(size);
}
// stb_image uses ints pervasively, including for offset calculations.
// therefore the largest decoded image size we can support with the
// current code, even on 64-bit targets, is INT_MAX. this is not a
// significant limitation for the intended use case.
//
// we do, however, need to make sure our size calculations don't
// overflow. hence a few helper functions for size calculations that
// multiply integers together, making sure that they're non-negative
// and no overflow occurs.
// return 1 if the sum is valid, 0 on overflow.
// negative terms are considered invalid.
static int stbi__addsizes_valid(int a, int b)
{
if (b < 0) return 0;
// now 0 <= b <= INT_MAX, hence also
// 0 <= INT_MAX - b <= INTMAX.
// And "a + b <= INT_MAX" (which might overflow) is the
// same as a <= INT_MAX - b (no overflow)
return a <= INT_MAX - b;
}
// returns 1 if the product is valid, 0 on overflow.
// negative factors are considered invalid.
static int stbi__mul2sizes_valid(int a, int b)
{
if (a < 0 || b < 0) return 0;
if (b == 0) return 1; // mul-by-0 is always safe
// portable way to check for no overflows in a*b
return a <= INT_MAX/b;
}
// returns 1 if "a*b + add" has no negative terms/factors and doesn't overflow
static int stbi__mad2sizes_valid(int a, int b, int add)
{
return stbi__mul2sizes_valid(a, b) && stbi__addsizes_valid(a*b, add);
}
// returns 1 if "a*b*c + add" has no negative terms/factors and doesn't overflow
static int stbi__mad3sizes_valid(int a, int b, int c, int add)
{
return stbi__mul2sizes_valid(a, b) && stbi__mul2sizes_valid(a*b, c) &&
stbi__addsizes_valid(a*b*c, add);
}
// returns 1 if "a*b*c*d + add" has no negative terms/factors and doesn't overflow
#if !defined(STBI_NO_LINEAR) || !defined(STBI_NO_HDR)
static int stbi__mad4sizes_valid(int a, int b, int c, int d, int add)
{
return stbi__mul2sizes_valid(a, b) && stbi__mul2sizes_valid(a*b, c) &&
stbi__mul2sizes_valid(a*b*c, d) && stbi__addsizes_valid(a*b*c*d, add);
}
#endif
// mallocs with size overflow checking
static void *stbi__malloc_mad2(int a, int b, int add)
{
if (!stbi__mad2sizes_valid(a, b, add)) return NULL;
return stbi__malloc(a*b + add);
}
static void *stbi__malloc_mad3(int a, int b, int c, int add)
{
if (!stbi__mad3sizes_valid(a, b, c, add)) return NULL;
return stbi__malloc(a*b*c + add);
}
#if !defined(STBI_NO_LINEAR) || !defined(STBI_NO_HDR)
static void *stbi__malloc_mad4(int a, int b, int c, int d, int add)
{
if (!stbi__mad4sizes_valid(a, b, c, d, add)) return NULL;
return stbi__malloc(a*b*c*d + add);
}
#endif
// stbi__err - error
// stbi__errpf - error returning pointer to float
// stbi__errpuc - error returning pointer to unsigned char
#ifdef STBI_NO_FAILURE_STRINGS
#define stbi__err(x,y) 0
#elif defined(STBI_FAILURE_USERMSG)
#define stbi__err(x,y) stbi__err(y)
#else
#define stbi__err(x,y) stbi__err(x)
#endif
#define stbi__errpf(x,y) ((float *)(size_t) (stbi__err(x,y)?NULL:NULL))
#define stbi__errpuc(x,y) ((unsigned char *)(size_t) (stbi__err(x,y)?NULL:NULL))
STBIDEF void stbi_image_free(void *retval_from_stbi_load)
{
STBI_FREE(retval_from_stbi_load);
}
#ifndef STBI_NO_LINEAR
static float *stbi__ldr_to_hdr(stbi_uc *data, int x, int y, int comp);
#endif
#ifndef STBI_NO_HDR
static stbi_uc *stbi__hdr_to_ldr(float *data, int x, int y, int comp);
#endif
static int stbi__vertically_flip_on_load = 0;
STBIDEF void stbi_set_flip_vertically_on_load(int flag_true_if_should_flip)
{
stbi__vertically_flip_on_load = flag_true_if_should_flip;
}
static void *stbi__load_main(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri, int bpc)
{
memset(ri, 0, sizeof(*ri)); // make sure it's initialized if we add new fields
ri->bits_per_channel = 8; // default is 8 so most paths don't have to be changed
ri->channel_order = STBI_ORDER_RGB; // all current input & output are this, but this is here so we can add BGR order
ri->num_channels = 0;
#ifndef STBI_NO_JPEG
if (stbi__jpeg_test(s)) return stbi__jpeg_load(s,x,y,comp,req_comp, ri);
#endif
#ifndef STBI_NO_PNG
if (stbi__png_test(s)) return stbi__png_load(s,x,y,comp,req_comp, ri);
#endif
#ifndef STBI_NO_BMP
if (stbi__bmp_test(s)) return stbi__bmp_load(s,x,y,comp,req_comp, ri);
#endif
#ifndef STBI_NO_GIF
if (stbi__gif_test(s)) return stbi__gif_load(s,x,y,comp,req_comp, ri);
#endif
#ifndef STBI_NO_PSD
if (stbi__psd_test(s)) return stbi__psd_load(s,x,y,comp,req_comp, ri, bpc);
#endif
#ifndef STBI_NO_PIC
if (stbi__pic_test(s)) return stbi__pic_load(s,x,y,comp,req_comp, ri);
#endif
#ifndef STBI_NO_PNM
if (stbi__pnm_test(s)) return stbi__pnm_load(s,x,y,comp,req_comp, ri);
#endif
#ifndef STBI_NO_HDR
if (stbi__hdr_test(s)) {
float *hdr = stbi__hdr_load(s, x,y,comp,req_comp, ri);
return stbi__hdr_to_ldr(hdr, *x, *y, req_comp ? req_comp : *comp);
}
#endif
#ifndef STBI_NO_TGA
// test tga last because it's a crappy test!
if (stbi__tga_test(s))
return stbi__tga_load(s,x,y,comp,req_comp, ri);
#endif
return stbi__errpuc("unknown image type", "Image not of any known type, or corrupt");
}
static stbi_uc *stbi__convert_16_to_8(stbi__uint16 *orig, int w, int h, int channels)
{
int i;
int img_len = w * h * channels;
stbi_uc *reduced;
reduced = (stbi_uc *) stbi__malloc(img_len);
if (reduced == NULL) return stbi__errpuc("outofmem", "Out of memory");
for (i = 0; i < img_len; ++i)
reduced[i] = (stbi_uc)((orig[i] >> 8) & 0xFF); // top half of each byte is sufficient approx of 16->8 bit scaling
STBI_FREE(orig);
return reduced;
}
static stbi__uint16 *stbi__convert_8_to_16(stbi_uc *orig, int w, int h, int channels)
{
int i;
int img_len = w * h * channels;
stbi__uint16 *enlarged;
enlarged = (stbi__uint16 *) stbi__malloc(img_len*2);
if (enlarged == NULL) return (stbi__uint16 *) stbi__errpuc("outofmem", "Out of memory");
for (i = 0; i < img_len; ++i)
enlarged[i] = (stbi__uint16)((orig[i] << 8) + orig[i]); // replicate to high and low byte, maps 0->0, 255->0xffff
STBI_FREE(orig);
return enlarged;
}
static void stbi__vertical_flip(void *image, int w, int h, int bytes_per_pixel)
{
int row;
size_t bytes_per_row = (size_t)w * bytes_per_pixel;
stbi_uc temp[2048];
stbi_uc *bytes = (stbi_uc *)image;
for (row = 0; row < (h>>1); row++) {
stbi_uc *row0 = bytes + row*bytes_per_row;
stbi_uc *row1 = bytes + (h - row - 1)*bytes_per_row;
// swap row0 with row1
size_t bytes_left = bytes_per_row;
while (bytes_left) {
size_t bytes_copy = (bytes_left < sizeof(temp)) ? bytes_left : sizeof(temp);
memcpy(temp, row0, bytes_copy);
memcpy(row0, row1, bytes_copy);
memcpy(row1, temp, bytes_copy);
row0 += bytes_copy;
row1 += bytes_copy;
bytes_left -= bytes_copy;
}
}
}
#ifndef STBI_NO_GIF
static void stbi__vertical_flip_slices(void *image, int w, int h, int z, int bytes_per_pixel)
{
int slice;
int slice_size = w * h * bytes_per_pixel;
stbi_uc *bytes = (stbi_uc *)image;
for (slice = 0; slice < z; ++slice) {
stbi__vertical_flip(bytes, w, h, bytes_per_pixel);
bytes += slice_size;
}
}
#endif
static unsigned char *stbi__load_and_postprocess_8bit(stbi__context *s, int *x, int *y, int *comp, int req_comp)
{
stbi__result_info ri;
void *result = stbi__load_main(s, x, y, comp, req_comp, &ri, 8);
if (result == NULL)
return NULL;
if (ri.bits_per_channel != 8) {
STBI_ASSERT(ri.bits_per_channel == 16);
result = stbi__convert_16_to_8((stbi__uint16 *) result, *x, *y, req_comp == 0 ? *comp : req_comp);
ri.bits_per_channel = 8;
}
// @TODO: move stbi__convert_format to here
if (stbi__vertically_flip_on_load) {
int channels = req_comp ? req_comp : *comp;
stbi__vertical_flip(result, *x, *y, channels * sizeof(stbi_uc));
}
return (unsigned char *) result;
}
static stbi__uint16 *stbi__load_and_postprocess_16bit(stbi__context *s, int *x, int *y, int *comp, int req_comp)
{
stbi__result_info ri;
void *result = stbi__load_main(s, x, y, comp, req_comp, &ri, 16);
if (result == NULL)
return NULL;
if (ri.bits_per_channel != 16) {
STBI_ASSERT(ri.bits_per_channel == 8);
result = stbi__convert_8_to_16((stbi_uc *) result, *x, *y, req_comp == 0 ? *comp : req_comp);
ri.bits_per_channel = 16;
}
// @TODO: move stbi__convert_format16 to here
// @TODO: special case RGB-to-Y (and RGBA-to-YA) for 8-bit-to-16-bit case to keep more precision
if (stbi__vertically_flip_on_load) {
int channels = req_comp ? req_comp : *comp;
stbi__vertical_flip(result, *x, *y, channels * sizeof(stbi__uint16));
}
return (stbi__uint16 *) result;
}
#if !defined(STBI_NO_HDR) && !defined(STBI_NO_LINEAR)
static void stbi__float_postprocess(float *result, int *x, int *y, int *comp, int req_comp)
{
if (stbi__vertically_flip_on_load && result != NULL) {
int channels = req_comp ? req_comp : *comp;
stbi__vertical_flip(result, *x, *y, channels * sizeof(float));
}
}
#endif
#ifndef STBI_NO_STDIO
#if defined(_MSC_VER) && defined(STBI_WINDOWS_UTF8)
STBI_EXTERN __declspec(dllimport) int __stdcall MultiByteToWideChar(unsigned int cp, unsigned long flags, const char *str, int cbmb, wchar_t *widestr, int cchwide);
STBI_EXTERN __declspec(dllimport) int __stdcall WideCharToMultiByte(unsigned int cp, unsigned long flags, const wchar_t *widestr, int cchwide, char *str, int cbmb, const char *defchar, int *used_default);
#endif
#if defined(_MSC_VER) && defined(STBI_WINDOWS_UTF8)
STBIDEF int stbi_convert_wchar_to_utf8(char *buffer, size_t bufferlen, const wchar_t* input)
{
return WideCharToMultiByte(65001 /* UTF8 */, 0, input, -1, buffer, (int) bufferlen, NULL, NULL);
}
#endif
static FILE *stbi__fopen(char const *filename, char const *mode)
{
FILE *f;
#if defined(_MSC_VER) && defined(STBI_WINDOWS_UTF8)
wchar_t wMode[64];
wchar_t wFilename[1024];
if (0 == MultiByteToWideChar(65001 /* UTF8 */, 0, filename, -1, wFilename, sizeof(wFilename)))
return 0;
if (0 == MultiByteToWideChar(65001 /* UTF8 */, 0, mode, -1, wMode, sizeof(wMode)))
return 0;
#if _MSC_VER >= 1400
if (0 != _wfopen_s(&f, wFilename, wMode))
f = 0;
#else
f = _wfopen(wFilename, wMode);
#endif
#elif defined(_MSC_VER) && _MSC_VER >= 1400
if (0 != fopen_s(&f, filename, mode))
f=0;
#else
f = fopen(filename, mode);
#endif
return f;
}
STBIDEF stbi_uc *stbi_load(char const *filename, int *x, int *y, int *comp, int req_comp)
{
FILE *f = stbi__fopen(filename, "rb");
unsigned char *result;
if (!f) return stbi__errpuc("can't fopen", "Unable to open file");
result = stbi_load_from_file(f,x,y,comp,req_comp);
fclose(f);
return result;
}
STBIDEF stbi_uc *stbi_load_from_file(FILE *f, int *x, int *y, int *comp, int req_comp)
{
unsigned char *result;
stbi__context s;
stbi__start_file(&s,f);
result = stbi__load_and_postprocess_8bit(&s,x,y,comp,req_comp);
if (result) {
// need to 'unget' all the characters in the IO buffer
fseek(f, - (int) (s.img_buffer_end - s.img_buffer), SEEK_CUR);
}
return result;
}
STBIDEF stbi__uint16 *stbi_load_from_file_16(FILE *f, int *x, int *y, int *comp, int req_comp)
{
stbi__uint16 *result;
stbi__context s;
stbi__start_file(&s,f);
result = stbi__load_and_postprocess_16bit(&s,x,y,comp,req_comp);
if (result) {
// need to 'unget' all the characters in the IO buffer
fseek(f, - (int) (s.img_buffer_end - s.img_buffer), SEEK_CUR);
}
return result;
}
STBIDEF stbi_us *stbi_load_16(char const *filename, int *x, int *y, int *comp, int req_comp)
{
FILE *f = stbi__fopen(filename, "rb");
stbi__uint16 *result;
if (!f) return (stbi_us *) stbi__errpuc("can't fopen", "Unable to open file");
result = stbi_load_from_file_16(f,x,y,comp,req_comp);
fclose(f);
return result;
}
#endif //!STBI_NO_STDIO
STBIDEF stbi_us *stbi_load_16_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *channels_in_file, int desired_channels)
{
stbi__context s;
stbi__start_mem(&s,buffer,len);
return stbi__load_and_postprocess_16bit(&s,x,y,channels_in_file,desired_channels);
}
STBIDEF stbi_us *stbi_load_16_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *channels_in_file, int desired_channels)
{
stbi__context s;
stbi__start_callbacks(&s, (stbi_io_callbacks *)clbk, user);
return stbi__load_and_postprocess_16bit(&s,x,y,channels_in_file,desired_channels);
}
STBIDEF stbi_uc *stbi_load_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp)
{
stbi__context s;
stbi__start_mem(&s,buffer,len);
return stbi__load_and_postprocess_8bit(&s,x,y,comp,req_comp);
}
STBIDEF stbi_uc *stbi_load_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp, int req_comp)
{
stbi__context s;
stbi__start_callbacks(&s, (stbi_io_callbacks *) clbk, user);
return stbi__load_and_postprocess_8bit(&s,x,y,comp,req_comp);
}
#ifndef STBI_NO_GIF
STBIDEF stbi_uc *stbi_load_gif_from_memory(stbi_uc const *buffer, int len, int **delays, int *x, int *y, int *z, int *comp, int req_comp)
{
unsigned char *result;
stbi__context s;
stbi__start_mem(&s,buffer,len);
result = (unsigned char*) stbi__load_gif_main(&s, delays, x, y, z, comp, req_comp);
if (stbi__vertically_flip_on_load) {
stbi__vertical_flip_slices( result, *x, *y, *z, *comp );
}
return result;
}
#endif
#ifndef STBI_NO_LINEAR
static float *stbi__loadf_main(stbi__context *s, int *x, int *y, int *comp, int req_comp)
{
unsigned char *data;
#ifndef STBI_NO_HDR
if (stbi__hdr_test(s)) {
stbi__result_info ri;
float *hdr_data = stbi__hdr_load(s,x,y,comp,req_comp, &ri);
if (hdr_data)
stbi__float_postprocess(hdr_data,x,y,comp,req_comp);
return hdr_data;
}
#endif
data = stbi__load_and_postprocess_8bit(s, x, y, comp, req_comp);
if (data)
return stbi__ldr_to_hdr(data, *x, *y, req_comp ? req_comp : *comp);
return stbi__errpf("unknown image type", "Image not of any known type, or corrupt");
}
STBIDEF float *stbi_loadf_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp)
{
stbi__context s;
stbi__start_mem(&s,buffer,len);
return stbi__loadf_main(&s,x,y,comp,req_comp);
}
STBIDEF float *stbi_loadf_from_callbacks(stbi_io_callbacks const *clbk, void *user, int *x, int *y, int *comp, int req_comp)
{
stbi__context s;
stbi__start_callbacks(&s, (stbi_io_callbacks *) clbk, user);
return stbi__loadf_main(&s,x,y,comp,req_comp);
}
#ifndef STBI_NO_STDIO
STBIDEF float *stbi_loadf(char const *filename, int *x, int *y, int *comp, int req_comp)
{
float *result;
FILE *f = stbi__fopen(filename, "rb");
if (!f) return stbi__errpf("can't fopen", "Unable to open file");
result = stbi_loadf_from_file(f,x,y,comp,req_comp);
fclose(f);
return result;
}
STBIDEF float *stbi_loadf_from_file(FILE *f, int *x, int *y, int *comp, int req_comp)
{
stbi__context s;
stbi__start_file(&s,f);
return stbi__loadf_main(&s,x,y,comp,req_comp);
}
#endif // !STBI_NO_STDIO
#endif // !STBI_NO_LINEAR
// these is-hdr-or-not is defined independent of whether STBI_NO_LINEAR is
// defined, for API simplicity; if STBI_NO_LINEAR is defined, it always
// reports false!
STBIDEF int stbi_is_hdr_from_memory(stbi_uc const *buffer, int len)
{
#ifndef STBI_NO_HDR
stbi__context s;
stbi__start_mem(&s,buffer,len);
return stbi__hdr_test(&s);
#else
STBI_NOTUSED(buffer);
STBI_NOTUSED(len);
return 0;
#endif
}
#ifndef STBI_NO_STDIO
STBIDEF int stbi_is_hdr (char const *filename)
{
FILE *f = stbi__fopen(filename, "rb");
int result=0;
if (f) {
result = stbi_is_hdr_from_file(f);
fclose(f);
}
return result;
}
STBIDEF int stbi_is_hdr_from_file(FILE *f)
{
#ifndef STBI_NO_HDR
long pos = ftell(f);
int res;
stbi__context s;
stbi__start_file(&s,f);
res = stbi__hdr_test(&s);
fseek(f, pos, SEEK_SET);
return res;
#else
STBI_NOTUSED(f);
return 0;
#endif
}
#endif // !STBI_NO_STDIO
STBIDEF int stbi_is_hdr_from_callbacks(stbi_io_callbacks const *clbk, void *user)
{
#ifndef STBI_NO_HDR
stbi__context s;
stbi__start_callbacks(&s, (stbi_io_callbacks *) clbk, user);
return stbi__hdr_test(&s);
#else
STBI_NOTUSED(clbk);
STBI_NOTUSED(user);
return 0;
#endif
}
#ifndef STBI_NO_LINEAR
static float stbi__l2h_gamma=2.2f, stbi__l2h_scale=1.0f;
STBIDEF void stbi_ldr_to_hdr_gamma(float gamma) { stbi__l2h_gamma = gamma; }
STBIDEF void stbi_ldr_to_hdr_scale(float scale) { stbi__l2h_scale = scale; }
#endif
static float stbi__h2l_gamma_i=1.0f/2.2f, stbi__h2l_scale_i=1.0f;
STBIDEF void stbi_hdr_to_ldr_gamma(float gamma) { stbi__h2l_gamma_i = 1/gamma; }
STBIDEF void stbi_hdr_to_ldr_scale(float scale) { stbi__h2l_scale_i = 1/scale; }
//////////////////////////////////////////////////////////////////////////////
//
// Common code used by all image loaders
//
enum
{
STBI__SCAN_load=0,
STBI__SCAN_type,
STBI__SCAN_header
};
static void stbi__refill_buffer(stbi__context *s)
{
int n = (s->io.read)(s->io_user_data,(char*)s->buffer_start,s->buflen);
if (n == 0) {
// at end of file, treat same as if from memory, but need to handle case
// where s->img_buffer isn't pointing to safe memory, e.g. 0-byte file
s->read_from_callbacks = 0;
s->img_buffer = s->buffer_start;
s->img_buffer_end = s->buffer_start+1;
*s->img_buffer = 0;
} else {
s->img_buffer = s->buffer_start;
s->img_buffer_end = s->buffer_start + n;
}
}
stbi_inline static stbi_uc stbi__get8(stbi__context *s)
{
if (s->img_buffer < s->img_buffer_end)
return *s->img_buffer++;
if (s->read_from_callbacks) {
stbi__refill_buffer(s);
return *s->img_buffer++;
}
return 0;
}
stbi_inline static int stbi__at_eof(stbi__context *s)
{
if (s->io.read) {
if (!(s->io.eof)(s->io_user_data)) return 0;
// if feof() is true, check if buffer = end
// special case: we've only got the special 0 character at the end
if (s->read_from_callbacks == 0) return 1;
}
return s->img_buffer >= s->img_buffer_end;
}
static void stbi__skip(stbi__context *s, int n)
{
if (n < 0) {
s->img_buffer = s->img_buffer_end;
return;
}
if (s->io.read) {
int blen = (int) (s->img_buffer_end - s->img_buffer);
if (blen < n) {
s->img_buffer = s->img_buffer_end;
(s->io.skip)(s->io_user_data, n - blen);
return;
}
}
s->img_buffer += n;
}
static int stbi__getn(stbi__context *s, stbi_uc *buffer, int n)
{
if (s->io.read) {
int blen = (int) (s->img_buffer_end - s->img_buffer);
if (blen < n) {
int res, count;
memcpy(buffer, s->img_buffer, blen);
count = (s->io.read)(s->io_user_data, (char*) buffer + blen, n - blen);
res = (count == (n-blen));
s->img_buffer = s->img_buffer_end;
return res;
}
}
if (s->img_buffer+n <= s->img_buffer_end) {
memcpy(buffer, s->img_buffer, n);
s->img_buffer += n;
return 1;
} else
return 0;
}
static int stbi__get16be(stbi__context *s)
{
int z = stbi__get8(s);
return (z << 8) + stbi__get8(s);
}
static stbi__uint32 stbi__get32be(stbi__context *s)
{
stbi__uint32 z = stbi__get16be(s);
return (z << 16) + stbi__get16be(s);
}
#if defined(STBI_NO_BMP) && defined(STBI_NO_TGA) && defined(STBI_NO_GIF)
// nothing
#else
static int stbi__get16le(stbi__context *s)
{
int z = stbi__get8(s);
return z + (stbi__get8(s) << 8);
}
#endif
#ifndef STBI_NO_BMP
static stbi__uint32 stbi__get32le(stbi__context *s)
{
stbi__uint32 z = stbi__get16le(s);
return z + (stbi__get16le(s) << 16);
}
#endif
#define STBI__BYTECAST(x) ((stbi_uc) ((x) & 255)) // truncate int to byte without warnings
//////////////////////////////////////////////////////////////////////////////
//
// generic converter from built-in img_n to req_comp
// individual types do this automatically as much as possible (e.g. jpeg
// does all cases internally since it needs to colorspace convert anyway,
// and it never has alpha, so very few cases ). png can automatically
// interleave an alpha=255 channel, but falls back to this for other cases
//
// assume data buffer is malloced, so malloc a new one and free that one
// only failure mode is malloc failing
static stbi_uc stbi__compute_y(int r, int g, int b)
{
return (stbi_uc) (((r*77) + (g*150) + (29*b)) >> 8);
}
static unsigned char *stbi__convert_format(unsigned char *data, int img_n, int req_comp, unsigned int x, unsigned int y)
{
int i,j;
unsigned char *good;
if (req_comp == img_n) return data;
STBI_ASSERT(req_comp >= 1 && req_comp <= 4);
good = (unsigned char *) stbi__malloc_mad3(req_comp, x, y, 0);
if (good == NULL) {
STBI_FREE(data);
return stbi__errpuc("outofmem", "Out of memory");
}
for (j=0; j < (int) y; ++j) {
unsigned char *src = data + j * x * img_n ;
unsigned char *dest = good + j * x * req_comp;
#define STBI__COMBO(a,b) ((a)*8+(b))
#define STBI__CASE(a,b) case STBI__COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
// convert source image with img_n components to one with req_comp components;
// avoid switch per pixel, so use switch per scanline and massive macros
switch (STBI__COMBO(img_n, req_comp)) {
STBI__CASE(1,2) { dest[0]=src[0]; dest[1]=255; } break;
STBI__CASE(1,3) { dest[0]=dest[1]=dest[2]=src[0]; } break;
STBI__CASE(1,4) { dest[0]=dest[1]=dest[2]=src[0]; dest[3]=255; } break;
STBI__CASE(2,1) { dest[0]=src[0]; } break;
STBI__CASE(2,3) { dest[0]=dest[1]=dest[2]=src[0]; } break;
STBI__CASE(2,4) { dest[0]=dest[1]=dest[2]=src[0]; dest[3]=src[1]; } break;
STBI__CASE(3,4) { dest[0]=src[0];dest[1]=src[1];dest[2]=src[2];dest[3]=255; } break;
STBI__CASE(3,1) { dest[0]=stbi__compute_y(src[0],src[1],src[2]); } break;
STBI__CASE(3,2) { dest[0]=stbi__compute_y(src[0],src[1],src[2]); dest[1] = 255; } break;
STBI__CASE(4,1) { dest[0]=stbi__compute_y(src[0],src[1],src[2]); } break;
STBI__CASE(4,2) { dest[0]=stbi__compute_y(src[0],src[1],src[2]); dest[1] = src[3]; } break;
STBI__CASE(4,3) { dest[0]=src[0];dest[1]=src[1];dest[2]=src[2]; } break;
default: STBI_ASSERT(0);
}
#undef STBI__CASE
}
STBI_FREE(data);
return good;
}
static stbi__uint16 stbi__compute_y_16(int r, int g, int b)
{
return (stbi__uint16) (((r*77) + (g*150) + (29*b)) >> 8);
}
static stbi__uint16 *stbi__convert_format16(stbi__uint16 *data, int img_n, int req_comp, unsigned int x, unsigned int y)
{
int i,j;
stbi__uint16 *good;
if (req_comp == img_n) return data;
STBI_ASSERT(req_comp >= 1 && req_comp <= 4);
good = (stbi__uint16 *) stbi__malloc(req_comp * x * y * 2);
if (good == NULL) {
STBI_FREE(data);
return (stbi__uint16 *) stbi__errpuc("outofmem", "Out of memory");
}
for (j=0; j < (int) y; ++j) {
stbi__uint16 *src = data + j * x * img_n ;
stbi__uint16 *dest = good + j * x * req_comp;
#define STBI__COMBO(a,b) ((a)*8+(b))
#define STBI__CASE(a,b) case STBI__COMBO(a,b): for(i=x-1; i >= 0; --i, src += a, dest += b)
// convert source image with img_n components to one with req_comp components;
// avoid switch per pixel, so use switch per scanline and massive macros
switch (STBI__COMBO(img_n, req_comp)) {
STBI__CASE(1,2) { dest[0]=src[0]; dest[1]=0xffff; } break;
STBI__CASE(1,3) { dest[0]=dest[1]=dest[2]=src[0]; } break;
STBI__CASE(1,4) { dest[0]=dest[1]=dest[2]=src[0]; dest[3]=0xffff; } break;
STBI__CASE(2,1) { dest[0]=src[0]; } break;
STBI__CASE(2,3) { dest[0]=dest[1]=dest[2]=src[0]; } break;
STBI__CASE(2,4) { dest[0]=dest[1]=dest[2]=src[0]; dest[3]=src[1]; } break;
STBI__CASE(3,4) { dest[0]=src[0];dest[1]=src[1];dest[2]=src[2];dest[3]=0xffff; } break;
STBI__CASE(3,1) { dest[0]=stbi__compute_y_16(src[0],src[1],src[2]); } break;
STBI__CASE(3,2) { dest[0]=stbi__compute_y_16(src[0],src[1],src[2]); dest[1] = 0xffff; } break;
STBI__CASE(4,1) { dest[0]=stbi__compute_y_16(src[0],src[1],src[2]); } break;
STBI__CASE(4,2) { dest[0]=stbi__compute_y_16(src[0],src[1],src[2]); dest[1] = src[3]; } break;
STBI__CASE(4,3) { dest[0]=src[0];dest[1]=src[1];dest[2]=src[2]; } break;
default: STBI_ASSERT(0);
}
#undef STBI__CASE
}
STBI_FREE(data);
return good;
}
#ifndef STBI_NO_LINEAR
static float *stbi__ldr_to_hdr(stbi_uc *data, int x, int y, int comp)
{
int i,k,n;
float *output;
if (!data) return NULL;
output = (float *) stbi__malloc_mad4(x, y, comp, sizeof(float), 0);
if (output == NULL) { STBI_FREE(data); return stbi__errpf("outofmem", "Out of memory"); }
// compute number of non-alpha components
if (comp & 1) n = comp; else n = comp-1;
for (i=0; i < x*y; ++i) {
for (k=0; k < n; ++k) {
output[i*comp + k] = (float) (pow(data[i*comp+k]/255.0f, stbi__l2h_gamma) * stbi__l2h_scale);
}
}
if (n < comp) {
for (i=0; i < x*y; ++i) {
output[i*comp + n] = data[i*comp + n]/255.0f;
}
}
STBI_FREE(data);
return output;
}
#endif
#ifndef STBI_NO_HDR
#define stbi__float2int(x) ((int) (x))
static stbi_uc *stbi__hdr_to_ldr(float *data, int x, int y, int comp)
{
int i,k,n;
stbi_uc *output;
if (!data) return NULL;
output = (stbi_uc *) stbi__malloc_mad3(x, y, comp, 0);
if (output == NULL) { STBI_FREE(data); return stbi__errpuc("outofmem", "Out of memory"); }
// compute number of non-alpha components
if (comp & 1) n = comp; else n = comp-1;
for (i=0; i < x*y; ++i) {
for (k=0; k < n; ++k) {
float z = (float) pow(data[i*comp+k]*stbi__h2l_scale_i, stbi__h2l_gamma_i) * 255 + 0.5f;
if (z < 0) z = 0;
if (z > 255) z = 255;
output[i*comp + k] = (stbi_uc) stbi__float2int(z);
}
if (k < comp) {
float z = data[i*comp+k] * 255 + 0.5f;
if (z < 0) z = 0;
if (z > 255) z = 255;
output[i*comp + k] = (stbi_uc) stbi__float2int(z);
}
}
STBI_FREE(data);
return output;
}
#endif
//////////////////////////////////////////////////////////////////////////////
//
// "baseline" JPEG/JFIF decoder
//
// simple implementation
// - doesn't support delayed output of y-dimension
// - simple interface (only one output format: 8-bit interleaved RGB)
// - doesn't try to recover corrupt jpegs
// - doesn't allow partial loading, loading multiple at once
// - still fast on x86 (copying globals into locals doesn't help x86)
// - allocates lots of intermediate memory (full size of all components)
// - non-interleaved case requires this anyway
// - allows good upsampling (see next)
// high-quality
// - upsampled channels are bilinearly interpolated, even across blocks
// - quality integer IDCT derived from IJG's 'slow'
// performance
// - fast huffman; reasonable integer IDCT
// - some SIMD kernels for common paths on targets with SSE2/NEON
// - uses a lot of intermediate memory, could cache poorly
#ifndef STBI_NO_JPEG
// huffman decoding acceleration
#define FAST_BITS 9 // larger handles more cases; smaller stomps less cache
typedef struct
{
stbi_uc fast[1 << FAST_BITS];
// weirdly, repacking this into AoS is a 10% speed loss, instead of a win
stbi__uint16 code[256];
stbi_uc values[256];
stbi_uc size[257];
unsigned int maxcode[18];
int delta[17]; // old 'firstsymbol' - old 'firstcode'
} stbi__huffman;
typedef struct
{
stbi__context *s;
stbi__huffman huff_dc[4];
stbi__huffman huff_ac[4];
stbi__uint16 dequant[4][64];
stbi__int16 fast_ac[4][1 << FAST_BITS];
// sizes for components, interleaved MCUs
int img_h_max, img_v_max;
int img_mcu_x, img_mcu_y;
int img_mcu_w, img_mcu_h;
// definition of jpeg image component
struct
{
int id;
int h,v;
int tq;
int hd,ha;
int dc_pred;
int x,y,w2,h2;
stbi_uc *data;
void *raw_data, *raw_coeff;
stbi_uc *linebuf;
short *coeff; // progressive only
int coeff_w, coeff_h; // number of 8x8 coefficient blocks
} img_comp[4];
stbi__uint32 code_buffer; // jpeg entropy-coded buffer
int code_bits; // number of valid bits
unsigned char marker; // marker seen while filling entropy buffer
int nomore; // flag if we saw a marker so must stop
int progressive;
int spec_start;
int spec_end;
int succ_high;
int succ_low;
int eob_run;
int jfif;
int app14_color_transform; // Adobe APP14 tag
int rgb;
int scan_n, order[4];
int restart_interval, todo;
// kernels
void (*idct_block_kernel)(stbi_uc *out, int out_stride, short data[64]);
void (*YCbCr_to_RGB_kernel)(stbi_uc *out, const stbi_uc *y, const stbi_uc *pcb, const stbi_uc *pcr, int count, int step);
stbi_uc *(*resample_row_hv_2_kernel)(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs);
} stbi__jpeg;
static int stbi__build_huffman(stbi__huffman *h, int *count)
{
int i,j,k=0;
unsigned int code;
// build size list for each symbol (from JPEG spec)
for (i=0; i < 16; ++i)
for (j=0; j < count[i]; ++j)
h->size[k++] = (stbi_uc) (i+1);
h->size[k] = 0;
// compute actual symbols (from jpeg spec)
code = 0;
k = 0;
for(j=1; j <= 16; ++j) {
// compute delta to add to code to compute symbol id
h->delta[j] = k - code;
if (h->size[k] == j) {
while (h->size[k] == j)
h->code[k++] = (stbi__uint16) (code++);
if (code-1 >= (1u << j)) return stbi__err("bad code lengths","Corrupt JPEG");
}
// compute largest code + 1 for this size, preshifted as needed later
h->maxcode[j] = code << (16-j);
code <<= 1;
}
h->maxcode[j] = 0xffffffff;
// build non-spec acceleration table; 255 is flag for not-accelerated
memset(h->fast, 255, 1 << FAST_BITS);
for (i=0; i < k; ++i) {
int s = h->size[i];
if (s <= FAST_BITS) {
int c = h->code[i] << (FAST_BITS-s);
int m = 1 << (FAST_BITS-s);
for (j=0; j < m; ++j) {
h->fast[c+j] = (stbi_uc) i;
}
}
}
return 1;
}
// build a table that decodes both magnitude and value of small ACs in
// one go.
static void stbi__build_fast_ac(stbi__int16 *fast_ac, stbi__huffman *h)
{
int i;
for (i=0; i < (1 << FAST_BITS); ++i) {
stbi_uc fast = h->fast[i];
fast_ac[i] = 0;
if (fast < 255) {
int rs = h->values[fast];
int run = (rs >> 4) & 15;
int magbits = rs & 15;
int len = h->size[fast];
if (magbits && len + magbits <= FAST_BITS) {
// magnitude code followed by receive_extend code
int k = ((i << len) & ((1 << FAST_BITS) - 1)) >> (FAST_BITS - magbits);
int m = 1 << (magbits - 1);
if (k < m) k += (~0U << magbits) + 1;
// if the result is small enough, we can fit it in fast_ac table
if (k >= -128 && k <= 127)
fast_ac[i] = (stbi__int16) ((k * 256) + (run * 16) + (len + magbits));
}
}
}
}
static void stbi__grow_buffer_unsafe(stbi__jpeg *j)
{
do {
unsigned int b = j->nomore ? 0 : stbi__get8(j->s);
if (b == 0xff) {
int c = stbi__get8(j->s);
while (c == 0xff) c = stbi__get8(j->s); // consume fill bytes
if (c != 0) {
j->marker = (unsigned char) c;
j->nomore = 1;
return;
}
}
j->code_buffer |= b << (24 - j->code_bits);
j->code_bits += 8;
} while (j->code_bits <= 24);
}
// (1 << n) - 1
static const stbi__uint32 stbi__bmask[17]={0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535};
// decode a jpeg huffman value from the bitstream
stbi_inline static int stbi__jpeg_huff_decode(stbi__jpeg *j, stbi__huffman *h)
{
unsigned int temp;
int c,k;
if (j->code_bits < 16) stbi__grow_buffer_unsafe(j);
// look at the top FAST_BITS and determine what symbol ID it is,
// if the code is <= FAST_BITS
c = (j->code_buffer >> (32 - FAST_BITS)) & ((1 << FAST_BITS)-1);
k = h->fast[c];
if (k < 255) {
int s = h->size[k];
if (s > j->code_bits)
return -1;
j->code_buffer <<= s;
j->code_bits -= s;
return h->values[k];
}
// naive test is to shift the code_buffer down so k bits are
// valid, then test against maxcode. To speed this up, we've
// preshifted maxcode left so that it has (16-k) 0s at the
// end; in other words, regardless of the number of bits, it
// wants to be compared against something shifted to have 16;
// that way we don't need to shift inside the loop.
temp = j->code_buffer >> 16;
for (k=FAST_BITS+1 ; ; ++k)
if (temp < h->maxcode[k])
break;
if (k == 17) {
// error! code not found
j->code_bits -= 16;
return -1;
}
if (k > j->code_bits)
return -1;
// convert the huffman code to the symbol id
c = ((j->code_buffer >> (32 - k)) & stbi__bmask[k]) + h->delta[k];
STBI_ASSERT((((j->code_buffer) >> (32 - h->size[c])) & stbi__bmask[h->size[c]]) == h->code[c]);
// convert the id to a symbol
j->code_bits -= k;
j->code_buffer <<= k;
return h->values[c];
}
// bias[n] = (-1<<n) + 1
static const int stbi__jbias[16] = {0,-1,-3,-7,-15,-31,-63,-127,-255,-511,-1023,-2047,-4095,-8191,-16383,-32767};
// combined JPEG 'receive' and JPEG 'extend', since baseline
// always extends everything it receives.
stbi_inline static int stbi__extend_receive(stbi__jpeg *j, int n)
{
unsigned int k;
int sgn;
if (j->code_bits < n) stbi__grow_buffer_unsafe(j);
sgn = (stbi__int32)j->code_buffer >> 31; // sign bit is always in MSB
k = stbi_lrot(j->code_buffer, n);
STBI_ASSERT(n >= 0 && n < (int) (sizeof(stbi__bmask)/sizeof(*stbi__bmask)));
j->code_buffer = k & ~stbi__bmask[n];
k &= stbi__bmask[n];
j->code_bits -= n;
return k + (stbi__jbias[n] & ~sgn);
}
// get some unsigned bits
stbi_inline static int stbi__jpeg_get_bits(stbi__jpeg *j, int n)
{
unsigned int k;
if (j->code_bits < n) stbi__grow_buffer_unsafe(j);
k = stbi_lrot(j->code_buffer, n);
j->code_buffer = k & ~stbi__bmask[n];
k &= stbi__bmask[n];
j->code_bits -= n;
return k;
}
stbi_inline static int stbi__jpeg_get_bit(stbi__jpeg *j)
{
unsigned int k;
if (j->code_bits < 1) stbi__grow_buffer_unsafe(j);
k = j->code_buffer;
j->code_buffer <<= 1;
--j->code_bits;
return k & 0x80000000;
}
// given a value that's at position X in the zigzag stream,
// where does it appear in the 8x8 matrix coded as row-major?
static const stbi_uc stbi__jpeg_dezigzag[64+15] =
{
0, 1, 8, 16, 9, 2, 3, 10,
17, 24, 32, 25, 18, 11, 4, 5,
12, 19, 26, 33, 40, 48, 41, 34,
27, 20, 13, 6, 7, 14, 21, 28,
35, 42, 49, 56, 57, 50, 43, 36,
29, 22, 15, 23, 30, 37, 44, 51,
58, 59, 52, 45, 38, 31, 39, 46,
53, 60, 61, 54, 47, 55, 62, 63,
// let corrupt input sample past end
63, 63, 63, 63, 63, 63, 63, 63,
63, 63, 63, 63, 63, 63, 63
};
// decode one 64-entry block--
static int stbi__jpeg_decode_block(stbi__jpeg *j, short data[64], stbi__huffman *hdc, stbi__huffman *hac, stbi__int16 *fac, int b, stbi__uint16 *dequant)
{
int diff,dc,k;
int t;
if (j->code_bits < 16) stbi__grow_buffer_unsafe(j);
t = stbi__jpeg_huff_decode(j, hdc);
if (t < 0) return stbi__err("bad huffman code","Corrupt JPEG");
// 0 all the ac values now so we can do it 32-bits at a time
memset(data,0,64*sizeof(data[0]));
diff = t ? stbi__extend_receive(j, t) : 0;
dc = j->img_comp[b].dc_pred + diff;
j->img_comp[b].dc_pred = dc;
data[0] = (short) (dc * dequant[0]);
// decode AC components, see JPEG spec
k = 1;
do {
unsigned int zig;
int c,r,s;
if (j->code_bits < 16) stbi__grow_buffer_unsafe(j);
c = (j->code_buffer >> (32 - FAST_BITS)) & ((1 << FAST_BITS)-1);
r = fac[c];
if (r) { // fast-AC path
k += (r >> 4) & 15; // run
s = r & 15; // combined length
j->code_buffer <<= s;
j->code_bits -= s;
// decode into unzigzag'd location
zig = stbi__jpeg_dezigzag[k++];
data[zig] = (short) ((r >> 8) * dequant[zig]);
} else {
int rs = stbi__jpeg_huff_decode(j, hac);
if (rs < 0) return stbi__err("bad huffman code","Corrupt JPEG");
s = rs & 15;
r = rs >> 4;
if (s == 0) {
if (rs != 0xf0) break; // end block
k += 16;
} else {
k += r;
// decode into unzigzag'd location
zig = stbi__jpeg_dezigzag[k++];
data[zig] = (short) (stbi__extend_receive(j,s) * dequant[zig]);
}
}
} while (k < 64);
return 1;
}
static int stbi__jpeg_decode_block_prog_dc(stbi__jpeg *j, short data[64], stbi__huffman *hdc, int b)
{
int diff,dc;
int t;
if (j->spec_end != 0) return stbi__err("can't merge dc and ac", "Corrupt JPEG");
if (j->code_bits < 16) stbi__grow_buffer_unsafe(j);
if (j->succ_high == 0) {
// first scan for DC coefficient, must be first
memset(data,0,64*sizeof(data[0])); // 0 all the ac values now
t = stbi__jpeg_huff_decode(j, hdc);
diff = t ? stbi__extend_receive(j, t) : 0;
dc = j->img_comp[b].dc_pred + diff;
j->img_comp[b].dc_pred = dc;
data[0] = (short) (dc << j->succ_low);
} else {
// refinement scan for DC coefficient
if (stbi__jpeg_get_bit(j))
data[0] += (short) (1 << j->succ_low);
}
return 1;
}
// @OPTIMIZE: store non-zigzagged during the decode passes,
// and only de-zigzag when dequantizing
static int stbi__jpeg_decode_block_prog_ac(stbi__jpeg *j, short data[64], stbi__huffman *hac, stbi__int16 *fac)
{
int k;
if (j->spec_start == 0) return stbi__err("can't merge dc and ac", "Corrupt JPEG");
if (j->succ_high == 0) {
int shift = j->succ_low;
if (j->eob_run) {
--j->eob_run;
return 1;
}
k = j->spec_start;
do {
unsigned int zig;
int c,r,s;
if (j->code_bits < 16) stbi__grow_buffer_unsafe(j);
c = (j->code_buffer >> (32 - FAST_BITS)) & ((1 << FAST_BITS)-1);
r = fac[c];
if (r) { // fast-AC path
k += (r >> 4) & 15; // run
s = r & 15; // combined length
j->code_buffer <<= s;
j->code_bits -= s;
zig = stbi__jpeg_dezigzag[k++];
data[zig] = (short) ((r >> 8) << shift);
} else {
int rs = stbi__jpeg_huff_decode(j, hac);
if (rs < 0) return stbi__err("bad huffman code","Corrupt JPEG");
s = rs & 15;
r = rs >> 4;
if (s == 0) {
if (r < 15) {
j->eob_run = (1 << r);
if (r)
j->eob_run += stbi__jpeg_get_bits(j, r);
--j->eob_run;
break;
}
k += 16;
} else {
k += r;
zig = stbi__jpeg_dezigzag[k++];
data[zig] = (short) (stbi__extend_receive(j,s) << shift);
}
}
} while (k <= j->spec_end);
} else {
// refinement scan for these AC coefficients
short bit = (short) (1 << j->succ_low);
if (j->eob_run) {
--j->eob_run;
for (k = j->spec_start; k <= j->spec_end; ++k) {
short *p = &data[stbi__jpeg_dezigzag[k]];
if (*p != 0)
if (stbi__jpeg_get_bit(j))
if ((*p & bit)==0) {
if (*p > 0)
*p += bit;
else
*p -= bit;
}
}
} else {
k = j->spec_start;
do {
int r,s;
int rs = stbi__jpeg_huff_decode(j, hac); // @OPTIMIZE see if we can use the fast path here, advance-by-r is so slow, eh
if (rs < 0) return stbi__err("bad huffman code","Corrupt JPEG");
s = rs & 15;
r = rs >> 4;
if (s == 0) {
if (r < 15) {
j->eob_run = (1 << r) - 1;
if (r)
j->eob_run += stbi__jpeg_get_bits(j, r);
r = 64; // force end of block
} else {
// r=15 s=0 should write 16 0s, so we just do
// a run of 15 0s and then write s (which is 0),
// so we don't have to do anything special here
}
} else {
if (s != 1) return stbi__err("bad huffman code", "Corrupt JPEG");
// sign bit
if (stbi__jpeg_get_bit(j))
s = bit;
else
s = -bit;
}
// advance by r
while (k <= j->spec_end) {
short *p = &data[stbi__jpeg_dezigzag[k++]];
if (*p != 0) {
if (stbi__jpeg_get_bit(j))
if ((*p & bit)==0) {
if (*p > 0)
*p += bit;
else
*p -= bit;
}
} else {
if (r == 0) {
*p = (short) s;
break;
}
--r;
}
}
} while (k <= j->spec_end);
}
}
return 1;
}
// take a -128..127 value and stbi__clamp it and convert to 0..255
stbi_inline static stbi_uc stbi__clamp(int x)
{
// trick to use a single test to catch both cases
if ((unsigned int) x > 255) {
if (x < 0) return 0;
if (x > 255) return 255;
}
return (stbi_uc) x;
}
#define stbi__f2f(x) ((int) (((x) * 4096 + 0.5)))
#define stbi__fsh(x) ((x) * 4096)
// derived from jidctint -- DCT_ISLOW
#define STBI__IDCT_1D(s0,s1,s2,s3,s4,s5,s6,s7) \
int t0,t1,t2,t3,p1,p2,p3,p4,p5,x0,x1,x2,x3; \
p2 = s2; \
p3 = s6; \
p1 = (p2+p3) * stbi__f2f(0.5411961f); \
t2 = p1 + p3*stbi__f2f(-1.847759065f); \
t3 = p1 + p2*stbi__f2f( 0.765366865f); \
p2 = s0; \
p3 = s4; \
t0 = stbi__fsh(p2+p3); \
t1 = stbi__fsh(p2-p3); \
x0 = t0+t3; \
x3 = t0-t3; \
x1 = t1+t2; \
x2 = t1-t2; \
t0 = s7; \
t1 = s5; \
t2 = s3; \
t3 = s1; \
p3 = t0+t2; \
p4 = t1+t3; \
p1 = t0+t3; \
p2 = t1+t2; \
p5 = (p3+p4)*stbi__f2f( 1.175875602f); \
t0 = t0*stbi__f2f( 0.298631336f); \
t1 = t1*stbi__f2f( 2.053119869f); \
t2 = t2*stbi__f2f( 3.072711026f); \
t3 = t3*stbi__f2f( 1.501321110f); \
p1 = p5 + p1*stbi__f2f(-0.899976223f); \
p2 = p5 + p2*stbi__f2f(-2.562915447f); \
p3 = p3*stbi__f2f(-1.961570560f); \
p4 = p4*stbi__f2f(-0.390180644f); \
t3 += p1+p4; \
t2 += p2+p3; \
t1 += p2+p4; \
t0 += p1+p3;
static void stbi__idct_block(stbi_uc *out, int out_stride, short data[64])
{
int i,val[64],*v=val;
stbi_uc *o;
short *d = data;
// columns
for (i=0; i < 8; ++i,++d, ++v) {
// if all zeroes, shortcut -- this avoids dequantizing 0s and IDCTing
if (d[ 8]==0 && d[16]==0 && d[24]==0 && d[32]==0
&& d[40]==0 && d[48]==0 && d[56]==0) {
// no shortcut 0 seconds
// (1|2|3|4|5|6|7)==0 0 seconds
// all separate -0.047 seconds
// 1 && 2|3 && 4|5 && 6|7: -0.047 seconds
int dcterm = d[0]*4;
v[0] = v[8] = v[16] = v[24] = v[32] = v[40] = v[48] = v[56] = dcterm;
} else {
STBI__IDCT_1D(d[ 0],d[ 8],d[16],d[24],d[32],d[40],d[48],d[56])
// constants scaled things up by 1<<12; let's bring them back
// down, but keep 2 extra bits of precision
x0 += 512; x1 += 512; x2 += 512; x3 += 512;
v[ 0] = (x0+t3) >> 10;
v[56] = (x0-t3) >> 10;
v[ 8] = (x1+t2) >> 10;
v[48] = (x1-t2) >> 10;
v[16] = (x2+t1) >> 10;
v[40] = (x2-t1) >> 10;
v[24] = (x3+t0) >> 10;
v[32] = (x3-t0) >> 10;
}
}
for (i=0, v=val, o=out; i < 8; ++i,v+=8,o+=out_stride) {
// no fast case since the first 1D IDCT spread components out
STBI__IDCT_1D(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7])
// constants scaled things up by 1<<12, plus we had 1<<2 from first
// loop, plus horizontal and vertical each scale by sqrt(8) so together
// we've got an extra 1<<3, so 1<<17 total we need to remove.
// so we want to round that, which means adding 0.5 * 1<<17,
// aka 65536. Also, we'll end up with -128 to 127 that we want
// to encode as 0..255 by adding 128, so we'll add that before the shift
x0 += 65536 + (128<<17);
x1 += 65536 + (128<<17);
x2 += 65536 + (128<<17);
x3 += 65536 + (128<<17);
// tried computing the shifts into temps, or'ing the temps to see
// if any were out of range, but that was slower
o[0] = stbi__clamp((x0+t3) >> 17);
o[7] = stbi__clamp((x0-t3) >> 17);
o[1] = stbi__clamp((x1+t2) >> 17);
o[6] = stbi__clamp((x1-t2) >> 17);
o[2] = stbi__clamp((x2+t1) >> 17);
o[5] = stbi__clamp((x2-t1) >> 17);
o[3] = stbi__clamp((x3+t0) >> 17);
o[4] = stbi__clamp((x3-t0) >> 17);
}
}
#ifdef STBI_SSE2
// sse2 integer IDCT. not the fastest possible implementation but it
// produces bit-identical results to the generic C version so it's
// fully "transparent".
static void stbi__idct_simd(stbi_uc *out, int out_stride, short data[64])
{
// This is constructed to match our regular (generic) integer IDCT exactly.
__m128i row0, row1, row2, row3, row4, row5, row6, row7;
__m128i tmp;
// dot product constant: even elems=x, odd elems=y
#define dct_const(x,y) _mm_setr_epi16((x),(y),(x),(y),(x),(y),(x),(y))
// out(0) = c0[even]*x + c0[odd]*y (c0, x, y 16-bit, out 32-bit)
// out(1) = c1[even]*x + c1[odd]*y
#define dct_rot(out0,out1, x,y,c0,c1) \
__m128i c0##lo = _mm_unpacklo_epi16((x),(y)); \
__m128i c0##hi = _mm_unpackhi_epi16((x),(y)); \
__m128i out0##_l = _mm_madd_epi16(c0##lo, c0); \
__m128i out0##_h = _mm_madd_epi16(c0##hi, c0); \
__m128i out1##_l = _mm_madd_epi16(c0##lo, c1); \
__m128i out1##_h = _mm_madd_epi16(c0##hi, c1)
// out = in << 12 (in 16-bit, out 32-bit)
#define dct_widen(out, in) \
__m128i out##_l = _mm_srai_epi32(_mm_unpacklo_epi16(_mm_setzero_si128(), (in)), 4); \
__m128i out##_h = _mm_srai_epi32(_mm_unpackhi_epi16(_mm_setzero_si128(), (in)), 4)
// wide add
#define dct_wadd(out, a, b) \
__m128i out##_l = _mm_add_epi32(a##_l, b##_l); \
__m128i out##_h = _mm_add_epi32(a##_h, b##_h)
// wide sub
#define dct_wsub(out, a, b) \
__m128i out##_l = _mm_sub_epi32(a##_l, b##_l); \
__m128i out##_h = _mm_sub_epi32(a##_h, b##_h)
// butterfly a/b, add bias, then shift by "s" and pack
#define dct_bfly32o(out0, out1, a,b,bias,s) \
{ \
__m128i abiased_l = _mm_add_epi32(a##_l, bias); \
__m128i abiased_h = _mm_add_epi32(a##_h, bias); \
dct_wadd(sum, abiased, b); \
dct_wsub(dif, abiased, b); \
out0 = _mm_packs_epi32(_mm_srai_epi32(sum_l, s), _mm_srai_epi32(sum_h, s)); \
out1 = _mm_packs_epi32(_mm_srai_epi32(dif_l, s), _mm_srai_epi32(dif_h, s)); \
}
// 8-bit interleave step (for transposes)
#define dct_interleave8(a, b) \
tmp = a; \
a = _mm_unpacklo_epi8(a, b); \
b = _mm_unpackhi_epi8(tmp, b)
// 16-bit interleave step (for transposes)
#define dct_interleave16(a, b) \
tmp = a; \
a = _mm_unpacklo_epi16(a, b); \
b = _mm_unpackhi_epi16(tmp, b)
#define dct_pass(bias,shift) \
{ \
/* even part */ \
dct_rot(t2e,t3e, row2,row6, rot0_0,rot0_1); \
__m128i sum04 = _mm_add_epi16(row0, row4); \
__m128i dif04 = _mm_sub_epi16(row0, row4); \
dct_widen(t0e, sum04); \
dct_widen(t1e, dif04); \
dct_wadd(x0, t0e, t3e); \
dct_wsub(x3, t0e, t3e); \
dct_wadd(x1, t1e, t2e); \
dct_wsub(x2, t1e, t2e); \
/* odd part */ \
dct_rot(y0o,y2o, row7,row3, rot2_0,rot2_1); \
dct_rot(y1o,y3o, row5,row1, rot3_0,rot3_1); \
__m128i sum17 = _mm_add_epi16(row1, row7); \
__m128i sum35 = _mm_add_epi16(row3, row5); \
dct_rot(y4o,y5o, sum17,sum35, rot1_0,rot1_1); \
dct_wadd(x4, y0o, y4o); \
dct_wadd(x5, y1o, y5o); \
dct_wadd(x6, y2o, y5o); \
dct_wadd(x7, y3o, y4o); \
dct_bfly32o(row0,row7, x0,x7,bias,shift); \
dct_bfly32o(row1,row6, x1,x6,bias,shift); \
dct_bfly32o(row2,row5, x2,x5,bias,shift); \
dct_bfly32o(row3,row4, x3,x4,bias,shift); \
}
__m128i rot0_0 = dct_const(stbi__f2f(0.5411961f), stbi__f2f(0.5411961f) + stbi__f2f(-1.847759065f));
__m128i rot0_1 = dct_const(stbi__f2f(0.5411961f) + stbi__f2f( 0.765366865f), stbi__f2f(0.5411961f));
__m128i rot1_0 = dct_const(stbi__f2f(1.175875602f) + stbi__f2f(-0.899976223f), stbi__f2f(1.175875602f));
__m128i rot1_1 = dct_const(stbi__f2f(1.175875602f), stbi__f2f(1.175875602f) + stbi__f2f(-2.562915447f));
__m128i rot2_0 = dct_const(stbi__f2f(-1.961570560f) + stbi__f2f( 0.298631336f), stbi__f2f(-1.961570560f));
__m128i rot2_1 = dct_const(stbi__f2f(-1.961570560f), stbi__f2f(-1.961570560f) + stbi__f2f( 3.072711026f));
__m128i rot3_0 = dct_const(stbi__f2f(-0.390180644f) + stbi__f2f( 2.053119869f), stbi__f2f(-0.390180644f));
__m128i rot3_1 = dct_const(stbi__f2f(-0.390180644f), stbi__f2f(-0.390180644f) + stbi__f2f( 1.501321110f));
// rounding biases in column/row passes, see stbi__idct_block for explanation.
__m128i bias_0 = _mm_set1_epi32(512);
__m128i bias_1 = _mm_set1_epi32(65536 + (128<<17));
// load
row0 = _mm_load_si128((const __m128i *) (data + 0*8));
row1 = _mm_load_si128((const __m128i *) (data + 1*8));
row2 = _mm_load_si128((const __m128i *) (data + 2*8));
row3 = _mm_load_si128((const __m128i *) (data + 3*8));
row4 = _mm_load_si128((const __m128i *) (data + 4*8));
row5 = _mm_load_si128((const __m128i *) (data + 5*8));
row6 = _mm_load_si128((const __m128i *) (data + 6*8));
row7 = _mm_load_si128((const __m128i *) (data + 7*8));
// column pass
dct_pass(bias_0, 10);
{
// 16bit 8x8 transpose pass 1
dct_interleave16(row0, row4);
dct_interleave16(row1, row5);
dct_interleave16(row2, row6);
dct_interleave16(row3, row7);
// transpose pass 2
dct_interleave16(row0, row2);
dct_interleave16(row1, row3);
dct_interleave16(row4, row6);
dct_interleave16(row5, row7);
// transpose pass 3
dct_interleave16(row0, row1);
dct_interleave16(row2, row3);
dct_interleave16(row4, row5);
dct_interleave16(row6, row7);
}
// row pass
dct_pass(bias_1, 17);
{
// pack
__m128i p0 = _mm_packus_epi16(row0, row1); // a0a1a2a3...a7b0b1b2b3...b7
__m128i p1 = _mm_packus_epi16(row2, row3);
__m128i p2 = _mm_packus_epi16(row4, row5);
__m128i p3 = _mm_packus_epi16(row6, row7);
// 8bit 8x8 transpose pass 1
dct_interleave8(p0, p2); // a0e0a1e1...
dct_interleave8(p1, p3); // c0g0c1g1...
// transpose pass 2
dct_interleave8(p0, p1); // a0c0e0g0...
dct_interleave8(p2, p3); // b0d0f0h0...
// transpose pass 3
dct_interleave8(p0, p2); // a0b0c0d0...
dct_interleave8(p1, p3); // a4b4c4d4...
// store
_mm_storel_epi64((__m128i *) out, p0); out += out_stride;
_mm_storel_epi64((__m128i *) out, _mm_shuffle_epi32(p0, 0x4e)); out += out_stride;
_mm_storel_epi64((__m128i *) out, p2); out += out_stride;
_mm_storel_epi64((__m128i *) out, _mm_shuffle_epi32(p2, 0x4e)); out += out_stride;
_mm_storel_epi64((__m128i *) out, p1); out += out_stride;
_mm_storel_epi64((__m128i *) out, _mm_shuffle_epi32(p1, 0x4e)); out += out_stride;
_mm_storel_epi64((__m128i *) out, p3); out += out_stride;
_mm_storel_epi64((__m128i *) out, _mm_shuffle_epi32(p3, 0x4e));
}
#undef dct_const
#undef dct_rot
#undef dct_widen
#undef dct_wadd
#undef dct_wsub
#undef dct_bfly32o
#undef dct_interleave8
#undef dct_interleave16
#undef dct_pass
}
#endif // STBI_SSE2
#ifdef STBI_NEON
// NEON integer IDCT. should produce bit-identical
// results to the generic C version.
static void stbi__idct_simd(stbi_uc *out, int out_stride, short data[64])
{
int16x8_t row0, row1, row2, row3, row4, row5, row6, row7;
int16x4_t rot0_0 = vdup_n_s16(stbi__f2f(0.5411961f));
int16x4_t rot0_1 = vdup_n_s16(stbi__f2f(-1.847759065f));
int16x4_t rot0_2 = vdup_n_s16(stbi__f2f( 0.765366865f));
int16x4_t rot1_0 = vdup_n_s16(stbi__f2f( 1.175875602f));
int16x4_t rot1_1 = vdup_n_s16(stbi__f2f(-0.899976223f));
int16x4_t rot1_2 = vdup_n_s16(stbi__f2f(-2.562915447f));
int16x4_t rot2_0 = vdup_n_s16(stbi__f2f(-1.961570560f));
int16x4_t rot2_1 = vdup_n_s16(stbi__f2f(-0.390180644f));
int16x4_t rot3_0 = vdup_n_s16(stbi__f2f( 0.298631336f));
int16x4_t rot3_1 = vdup_n_s16(stbi__f2f( 2.053119869f));
int16x4_t rot3_2 = vdup_n_s16(stbi__f2f( 3.072711026f));
int16x4_t rot3_3 = vdup_n_s16(stbi__f2f( 1.501321110f));
#define dct_long_mul(out, inq, coeff) \
int32x4_t out##_l = vmull_s16(vget_low_s16(inq), coeff); \
int32x4_t out##_h = vmull_s16(vget_high_s16(inq), coeff)
#define dct_long_mac(out, acc, inq, coeff) \
int32x4_t out##_l = vmlal_s16(acc##_l, vget_low_s16(inq), coeff); \
int32x4_t out##_h = vmlal_s16(acc##_h, vget_high_s16(inq), coeff)
#define dct_widen(out, inq) \
int32x4_t out##_l = vshll_n_s16(vget_low_s16(inq), 12); \
int32x4_t out##_h = vshll_n_s16(vget_high_s16(inq), 12)
// wide add
#define dct_wadd(out, a, b) \
int32x4_t out##_l = vaddq_s32(a##_l, b##_l); \
int32x4_t out##_h = vaddq_s32(a##_h, b##_h)
// wide sub
#define dct_wsub(out, a, b) \
int32x4_t out##_l = vsubq_s32(a##_l, b##_l); \
int32x4_t out##_h = vsubq_s32(a##_h, b##_h)
// butterfly a/b, then shift using "shiftop" by "s" and pack
#define dct_bfly32o(out0,out1, a,b,shiftop,s) \
{ \
dct_wadd(sum, a, b); \
dct_wsub(dif, a, b); \
out0 = vcombine_s16(shiftop(sum_l, s), shiftop(sum_h, s)); \
out1 = vcombine_s16(shiftop(dif_l, s), shiftop(dif_h, s)); \
}
#define dct_pass(shiftop, shift) \
{ \
/* even part */ \
int16x8_t sum26 = vaddq_s16(row2, row6); \
dct_long_mul(p1e, sum26, rot0_0); \
dct_long_mac(t2e, p1e, row6, rot0_1); \
dct_long_mac(t3e, p1e, row2, rot0_2); \
int16x8_t sum04 = vaddq_s16(row0, row4); \
int16x8_t dif04 = vsubq_s16(row0, row4); \
dct_widen(t0e, sum04); \
dct_widen(t1e, dif04); \
dct_wadd(x0, t0e, t3e); \
dct_wsub(x3, t0e, t3e); \
dct_wadd(x1, t1e, t2e); \
dct_wsub(x2, t1e, t2e); \
/* odd part */ \
int16x8_t sum15 = vaddq_s16(row1, row5); \
int16x8_t sum17 = vaddq_s16(row1, row7); \
int16x8_t sum35 = vaddq_s16(row3, row5); \
int16x8_t sum37 = vaddq_s16(row3, row7); \
int16x8_t sumodd = vaddq_s16(sum17, sum35); \
dct_long_mul(p5o, sumodd, rot1_0); \
dct_long_mac(p1o, p5o, sum17, rot1_1); \
dct_long_mac(p2o, p5o, sum35, rot1_2); \
dct_long_mul(p3o, sum37, rot2_0); \
dct_long_mul(p4o, sum15, rot2_1); \
dct_wadd(sump13o, p1o, p3o); \
dct_wadd(sump24o, p2o, p4o); \
dct_wadd(sump23o, p2o, p3o); \
dct_wadd(sump14o, p1o, p4o); \
dct_long_mac(x4, sump13o, row7, rot3_0); \
dct_long_mac(x5, sump24o, row5, rot3_1); \
dct_long_mac(x6, sump23o, row3, rot3_2); \
dct_long_mac(x7, sump14o, row1, rot3_3); \
dct_bfly32o(row0,row7, x0,x7,shiftop,shift); \
dct_bfly32o(row1,row6, x1,x6,shiftop,shift); \
dct_bfly32o(row2,row5, x2,x5,shiftop,shift); \
dct_bfly32o(row3,row4, x3,x4,shiftop,shift); \
}
// load
row0 = vld1q_s16(data + 0*8);
row1 = vld1q_s16(data + 1*8);
row2 = vld1q_s16(data + 2*8);
row3 = vld1q_s16(data + 3*8);
row4 = vld1q_s16(data + 4*8);
row5 = vld1q_s16(data + 5*8);
row6 = vld1q_s16(data + 6*8);
row7 = vld1q_s16(data + 7*8);
// add DC bias
row0 = vaddq_s16(row0, vsetq_lane_s16(1024, vdupq_n_s16(0), 0));
// column pass
dct_pass(vrshrn_n_s32, 10);
// 16bit 8x8 transpose
{
// these three map to a single VTRN.16, VTRN.32, and VSWP, respectively.
// whether compilers actually get this is another story, sadly.
#define dct_trn16(x, y) { int16x8x2_t t = vtrnq_s16(x, y); x = t.val[0]; y = t.val[1]; }
#define dct_trn32(x, y) { int32x4x2_t t = vtrnq_s32(vreinterpretq_s32_s16(x), vreinterpretq_s32_s16(y)); x = vreinterpretq_s16_s32(t.val[0]); y = vreinterpretq_s16_s32(t.val[1]); }
#define dct_trn64(x, y) { int16x8_t x0 = x; int16x8_t y0 = y; x = vcombine_s16(vget_low_s16(x0), vget_low_s16(y0)); y = vcombine_s16(vget_high_s16(x0), vget_high_s16(y0)); }
// pass 1
dct_trn16(row0, row1); // a0b0a2b2a4b4a6b6
dct_trn16(row2, row3);
dct_trn16(row4, row5);
dct_trn16(row6, row7);
// pass 2
dct_trn32(row0, row2); // a0b0c0d0a4b4c4d4
dct_trn32(row1, row3);
dct_trn32(row4, row6);
dct_trn32(row5, row7);
// pass 3
dct_trn64(row0, row4); // a0b0c0d0e0f0g0h0
dct_trn64(row1, row5);
dct_trn64(row2, row6);
dct_trn64(row3, row7);
#undef dct_trn16
#undef dct_trn32
#undef dct_trn64
}
// row pass
// vrshrn_n_s32 only supports shifts up to 16, we need
// 17. so do a non-rounding shift of 16 first then follow
// up with a rounding shift by 1.
dct_pass(vshrn_n_s32, 16);
{
// pack and round
uint8x8_t p0 = vqrshrun_n_s16(row0, 1);
uint8x8_t p1 = vqrshrun_n_s16(row1, 1);
uint8x8_t p2 = vqrshrun_n_s16(row2, 1);
uint8x8_t p3 = vqrshrun_n_s16(row3, 1);
uint8x8_t p4 = vqrshrun_n_s16(row4, 1);
uint8x8_t p5 = vqrshrun_n_s16(row5, 1);
uint8x8_t p6 = vqrshrun_n_s16(row6, 1);
uint8x8_t p7 = vqrshrun_n_s16(row7, 1);
// again, these can translate into one instruction, but often don't.
#define dct_trn8_8(x, y) { uint8x8x2_t t = vtrn_u8(x, y); x = t.val[0]; y = t.val[1]; }
#define dct_trn8_16(x, y) { uint16x4x2_t t = vtrn_u16(vreinterpret_u16_u8(x), vreinterpret_u16_u8(y)); x = vreinterpret_u8_u16(t.val[0]); y = vreinterpret_u8_u16(t.val[1]); }
#define dct_trn8_32(x, y) { uint32x2x2_t t = vtrn_u32(vreinterpret_u32_u8(x), vreinterpret_u32_u8(y)); x = vreinterpret_u8_u32(t.val[0]); y = vreinterpret_u8_u32(t.val[1]); }
// sadly can't use interleaved stores here since we only write
// 8 bytes to each scan line!
// 8x8 8-bit transpose pass 1
dct_trn8_8(p0, p1);
dct_trn8_8(p2, p3);
dct_trn8_8(p4, p5);
dct_trn8_8(p6, p7);
// pass 2
dct_trn8_16(p0, p2);
dct_trn8_16(p1, p3);
dct_trn8_16(p4, p6);
dct_trn8_16(p5, p7);
// pass 3
dct_trn8_32(p0, p4);
dct_trn8_32(p1, p5);
dct_trn8_32(p2, p6);
dct_trn8_32(p3, p7);
// store
vst1_u8(out, p0); out += out_stride;
vst1_u8(out, p1); out += out_stride;
vst1_u8(out, p2); out += out_stride;
vst1_u8(out, p3); out += out_stride;
vst1_u8(out, p4); out += out_stride;
vst1_u8(out, p5); out += out_stride;
vst1_u8(out, p6); out += out_stride;
vst1_u8(out, p7);
#undef dct_trn8_8
#undef dct_trn8_16
#undef dct_trn8_32
}
#undef dct_long_mul
#undef dct_long_mac
#undef dct_widen
#undef dct_wadd
#undef dct_wsub
#undef dct_bfly32o
#undef dct_pass
}
#endif // STBI_NEON
#define STBI__MARKER_none 0xff
// if there's a pending marker from the entropy stream, return that
// otherwise, fetch from the stream and get a marker. if there's no
// marker, return 0xff, which is never a valid marker value
static stbi_uc stbi__get_marker(stbi__jpeg *j)
{
stbi_uc x;
if (j->marker != STBI__MARKER_none) { x = j->marker; j->marker = STBI__MARKER_none; return x; }
x = stbi__get8(j->s);
if (x != 0xff) return STBI__MARKER_none;
while (x == 0xff)
x = stbi__get8(j->s); // consume repeated 0xff fill bytes
return x;
}
// in each scan, we'll have scan_n components, and the order
// of the components is specified by order[]
#define STBI__RESTART(x) ((x) >= 0xd0 && (x) <= 0xd7)
// after a restart interval, stbi__jpeg_reset the entropy decoder and
// the dc prediction
static void stbi__jpeg_reset(stbi__jpeg *j)
{
j->code_bits = 0;
j->code_buffer = 0;
j->nomore = 0;
j->img_comp[0].dc_pred = j->img_comp[1].dc_pred = j->img_comp[2].dc_pred = j->img_comp[3].dc_pred = 0;
j->marker = STBI__MARKER_none;
j->todo = j->restart_interval ? j->restart_interval : 0x7fffffff;
j->eob_run = 0;
// no more than 1<<31 MCUs if no restart_interal? that's plenty safe,
// since we don't even allow 1<<30 pixels
}
static int stbi__parse_entropy_coded_data(stbi__jpeg *z)
{
stbi__jpeg_reset(z);
if (!z->progressive) {
if (z->scan_n == 1) {
int i,j;
STBI_SIMD_ALIGN(short, data[64]);
int n = z->order[0];
// non-interleaved data, we just need to process one block at a time,
// in trivial scanline order
// number of blocks to do just depends on how many actual "pixels" this
// component has, independent of interleaved MCU blocking and such
int w = (z->img_comp[n].x+7) >> 3;
int h = (z->img_comp[n].y+7) >> 3;
for (j=0; j < h; ++j) {
for (i=0; i < w; ++i) {
int ha = z->img_comp[n].ha;
if (!stbi__jpeg_decode_block(z, data, z->huff_dc+z->img_comp[n].hd, z->huff_ac+ha, z->fast_ac[ha], n, z->dequant[z->img_comp[n].tq])) return 0;
z->idct_block_kernel(z->img_comp[n].data+z->img_comp[n].w2*j*8+i*8, z->img_comp[n].w2, data);
// every data block is an MCU, so countdown the restart interval
if (--z->todo <= 0) {
if (z->code_bits < 24) stbi__grow_buffer_unsafe(z);
// if it's NOT a restart, then just bail, so we get corrupt data
// rather than no data
if (!STBI__RESTART(z->marker)) return 1;
stbi__jpeg_reset(z);
}
}
}
return 1;
} else { // interleaved
int i,j,k,x,y;
STBI_SIMD_ALIGN(short, data[64]);
for (j=0; j < z->img_mcu_y; ++j) {
for (i=0; i < z->img_mcu_x; ++i) {
// scan an interleaved mcu... process scan_n components in order
for (k=0; k < z->scan_n; ++k) {
int n = z->order[k];
// scan out an mcu's worth of this component; that's just determined
// by the basic H and V specified for the component
for (y=0; y < z->img_comp[n].v; ++y) {
for (x=0; x < z->img_comp[n].h; ++x) {
int x2 = (i*z->img_comp[n].h + x)*8;
int y2 = (j*z->img_comp[n].v + y)*8;
int ha = z->img_comp[n].ha;
if (!stbi__jpeg_decode_block(z, data, z->huff_dc+z->img_comp[n].hd, z->huff_ac+ha, z->fast_ac[ha], n, z->dequant[z->img_comp[n].tq])) return 0;
z->idct_block_kernel(z->img_comp[n].data+z->img_comp[n].w2*y2+x2, z->img_comp[n].w2, data);
}
}
}
// after all interleaved components, that's an interleaved MCU,
// so now count down the restart interval
if (--z->todo <= 0) {
if (z->code_bits < 24) stbi__grow_buffer_unsafe(z);
if (!STBI__RESTART(z->marker)) return 1;
stbi__jpeg_reset(z);
}
}
}
return 1;
}
} else {
if (z->scan_n == 1) {
int i,j;
int n = z->order[0];
// non-interleaved data, we just need to process one block at a time,
// in trivial scanline order
// number of blocks to do just depends on how many actual "pixels" this
// component has, independent of interleaved MCU blocking and such
int w = (z->img_comp[n].x+7) >> 3;
int h = (z->img_comp[n].y+7) >> 3;
for (j=0; j < h; ++j) {
for (i=0; i < w; ++i) {
short *data = z->img_comp[n].coeff + 64 * (i + j * z->img_comp[n].coeff_w);
if (z->spec_start == 0) {
if (!stbi__jpeg_decode_block_prog_dc(z, data, &z->huff_dc[z->img_comp[n].hd], n))
return 0;
} else {
int ha = z->img_comp[n].ha;
if (!stbi__jpeg_decode_block_prog_ac(z, data, &z->huff_ac[ha], z->fast_ac[ha]))
return 0;
}
// every data block is an MCU, so countdown the restart interval
if (--z->todo <= 0) {
if (z->code_bits < 24) stbi__grow_buffer_unsafe(z);
if (!STBI__RESTART(z->marker)) return 1;
stbi__jpeg_reset(z);
}
}
}
return 1;
} else { // interleaved
int i,j,k,x,y;
for (j=0; j < z->img_mcu_y; ++j) {
for (i=0; i < z->img_mcu_x; ++i) {
// scan an interleaved mcu... process scan_n components in order
for (k=0; k < z->scan_n; ++k) {
int n = z->order[k];
// scan out an mcu's worth of this component; that's just determined
// by the basic H and V specified for the component
for (y=0; y < z->img_comp[n].v; ++y) {
for (x=0; x < z->img_comp[n].h; ++x) {
int x2 = (i*z->img_comp[n].h + x);
int y2 = (j*z->img_comp[n].v + y);
short *data = z->img_comp[n].coeff + 64 * (x2 + y2 * z->img_comp[n].coeff_w);
if (!stbi__jpeg_decode_block_prog_dc(z, data, &z->huff_dc[z->img_comp[n].hd], n))
return 0;
}
}
}
// after all interleaved components, that's an interleaved MCU,
// so now count down the restart interval
if (--z->todo <= 0) {
if (z->code_bits < 24) stbi__grow_buffer_unsafe(z);
if (!STBI__RESTART(z->marker)) return 1;
stbi__jpeg_reset(z);
}
}
}
return 1;
}
}
}
static void stbi__jpeg_dequantize(short *data, stbi__uint16 *dequant)
{
int i;
for (i=0; i < 64; ++i)
data[i] *= dequant[i];
}
static void stbi__jpeg_finish(stbi__jpeg *z)
{
if (z->progressive) {
// dequantize and idct the data
int i,j,n;
for (n=0; n < z->s->img_n; ++n) {
int w = (z->img_comp[n].x+7) >> 3;
int h = (z->img_comp[n].y+7) >> 3;
for (j=0; j < h; ++j) {
for (i=0; i < w; ++i) {
short *data = z->img_comp[n].coeff + 64 * (i + j * z->img_comp[n].coeff_w);
stbi__jpeg_dequantize(data, z->dequant[z->img_comp[n].tq]);
z->idct_block_kernel(z->img_comp[n].data+z->img_comp[n].w2*j*8+i*8, z->img_comp[n].w2, data);
}
}
}
}
}
static int stbi__process_marker(stbi__jpeg *z, int m)
{
int L;
switch (m) {
case STBI__MARKER_none: // no marker found
return stbi__err("expected marker","Corrupt JPEG");
case 0xDD: // DRI - specify restart interval
if (stbi__get16be(z->s) != 4) return stbi__err("bad DRI len","Corrupt JPEG");
z->restart_interval = stbi__get16be(z->s);
return 1;
case 0xDB: // DQT - define quantization table
L = stbi__get16be(z->s)-2;
while (L > 0) {
int q = stbi__get8(z->s);
int p = q >> 4, sixteen = (p != 0);
int t = q & 15,i;
if (p != 0 && p != 1) return stbi__err("bad DQT type","Corrupt JPEG");
if (t > 3) return stbi__err("bad DQT table","Corrupt JPEG");
for (i=0; i < 64; ++i)
z->dequant[t][stbi__jpeg_dezigzag[i]] = (stbi__uint16)(sixteen ? stbi__get16be(z->s) : stbi__get8(z->s));
L -= (sixteen ? 129 : 65);
}
return L==0;
case 0xC4: // DHT - define huffman table
L = stbi__get16be(z->s)-2;
while (L > 0) {
stbi_uc *v;
int sizes[16],i,n=0;
int q = stbi__get8(z->s);
int tc = q >> 4;
int th = q & 15;
if (tc > 1 || th > 3) return stbi__err("bad DHT header","Corrupt JPEG");
for (i=0; i < 16; ++i) {
sizes[i] = stbi__get8(z->s);
n += sizes[i];
}
L -= 17;
if (tc == 0) {
if (!stbi__build_huffman(z->huff_dc+th, sizes)) return 0;
v = z->huff_dc[th].values;
} else {
if (!stbi__build_huffman(z->huff_ac+th, sizes)) return 0;
v = z->huff_ac[th].values;
}
for (i=0; i < n; ++i)
v[i] = stbi__get8(z->s);
if (tc != 0)
stbi__build_fast_ac(z->fast_ac[th], z->huff_ac + th);
L -= n;
}
return L==0;
}
// check for comment block or APP blocks
if ((m >= 0xE0 && m <= 0xEF) || m == 0xFE) {
L = stbi__get16be(z->s);
if (L < 2) {
if (m == 0xFE)
return stbi__err("bad COM len","Corrupt JPEG");
else
return stbi__err("bad APP len","Corrupt JPEG");
}
L -= 2;
if (m == 0xE0 && L >= 5) { // JFIF APP0 segment
static const unsigned char tag[5] = {'J','F','I','F','\0'};
int ok = 1;
int i;
for (i=0; i < 5; ++i)
if (stbi__get8(z->s) != tag[i])
ok = 0;
L -= 5;
if (ok)
z->jfif = 1;
} else if (m == 0xEE && L >= 12) { // Adobe APP14 segment
static const unsigned char tag[6] = {'A','d','o','b','e','\0'};
int ok = 1;
int i;
for (i=0; i < 6; ++i)
if (stbi__get8(z->s) != tag[i])
ok = 0;
L -= 6;
if (ok) {
stbi__get8(z->s); // version
stbi__get16be(z->s); // flags0
stbi__get16be(z->s); // flags1
z->app14_color_transform = stbi__get8(z->s); // color transform
L -= 6;
}
}
stbi__skip(z->s, L);
return 1;
}
return stbi__err("unknown marker","Corrupt JPEG");
}
// after we see SOS
static int stbi__process_scan_header(stbi__jpeg *z)
{
int i;
int Ls = stbi__get16be(z->s);
z->scan_n = stbi__get8(z->s);
if (z->scan_n < 1 || z->scan_n > 4 || z->scan_n > (int) z->s->img_n) return stbi__err("bad SOS component count","Corrupt JPEG");
if (Ls != 6+2*z->scan_n) return stbi__err("bad SOS len","Corrupt JPEG");
for (i=0; i < z->scan_n; ++i) {
int id = stbi__get8(z->s), which;
int q = stbi__get8(z->s);
for (which = 0; which < z->s->img_n; ++which)
if (z->img_comp[which].id == id)
break;
if (which == z->s->img_n) return 0; // no match
z->img_comp[which].hd = q >> 4; if (z->img_comp[which].hd > 3) return stbi__err("bad DC huff","Corrupt JPEG");
z->img_comp[which].ha = q & 15; if (z->img_comp[which].ha > 3) return stbi__err("bad AC huff","Corrupt JPEG");
z->order[i] = which;
}
{
int aa;
z->spec_start = stbi__get8(z->s);
z->spec_end = stbi__get8(z->s); // should be 63, but might be 0
aa = stbi__get8(z->s);
z->succ_high = (aa >> 4);
z->succ_low = (aa & 15);
if (z->progressive) {
if (z->spec_start > 63 || z->spec_end > 63 || z->spec_start > z->spec_end || z->succ_high > 13 || z->succ_low > 13)
return stbi__err("bad SOS", "Corrupt JPEG");
} else {
if (z->spec_start != 0) return stbi__err("bad SOS","Corrupt JPEG");
if (z->succ_high != 0 || z->succ_low != 0) return stbi__err("bad SOS","Corrupt JPEG");
z->spec_end = 63;
}
}
return 1;
}
static int stbi__free_jpeg_components(stbi__jpeg *z, int ncomp, int why)
{
int i;
for (i=0; i < ncomp; ++i) {
if (z->img_comp[i].raw_data) {
STBI_FREE(z->img_comp[i].raw_data);
z->img_comp[i].raw_data = NULL;
z->img_comp[i].data = NULL;
}
if (z->img_comp[i].raw_coeff) {
STBI_FREE(z->img_comp[i].raw_coeff);
z->img_comp[i].raw_coeff = 0;
z->img_comp[i].coeff = 0;
}
if (z->img_comp[i].linebuf) {
STBI_FREE(z->img_comp[i].linebuf);
z->img_comp[i].linebuf = NULL;
}
}
return why;
}
static int stbi__process_frame_header(stbi__jpeg *z, int scan)
{
stbi__context *s = z->s;
int Lf,p,i,q, h_max=1,v_max=1,c;
Lf = stbi__get16be(s); if (Lf < 11) return stbi__err("bad SOF len","Corrupt JPEG"); // JPEG
p = stbi__get8(s); if (p != 8) return stbi__err("only 8-bit","JPEG format not supported: 8-bit only"); // JPEG baseline
s->img_y = stbi__get16be(s); if (s->img_y == 0) return stbi__err("no header height", "JPEG format not supported: delayed height"); // Legal, but we don't handle it--but neither does IJG
s->img_x = stbi__get16be(s); if (s->img_x == 0) return stbi__err("0 width","Corrupt JPEG"); // JPEG requires
c = stbi__get8(s);
if (c != 3 && c != 1 && c != 4) return stbi__err("bad component count","Corrupt JPEG");
s->img_n = c;
for (i=0; i < c; ++i) {
z->img_comp[i].data = NULL;
z->img_comp[i].linebuf = NULL;
}
if (Lf != 8+3*s->img_n) return stbi__err("bad SOF len","Corrupt JPEG");
z->rgb = 0;
for (i=0; i < s->img_n; ++i) {
static const unsigned char rgb[3] = { 'R', 'G', 'B' };
z->img_comp[i].id = stbi__get8(s);
if (s->img_n == 3 && z->img_comp[i].id == rgb[i])
++z->rgb;
q = stbi__get8(s);
z->img_comp[i].h = (q >> 4); if (!z->img_comp[i].h || z->img_comp[i].h > 4) return stbi__err("bad H","Corrupt JPEG");
z->img_comp[i].v = q & 15; if (!z->img_comp[i].v || z->img_comp[i].v > 4) return stbi__err("bad V","Corrupt JPEG");
z->img_comp[i].tq = stbi__get8(s); if (z->img_comp[i].tq > 3) return stbi__err("bad TQ","Corrupt JPEG");
}
if (scan != STBI__SCAN_load) return 1;
if (!stbi__mad3sizes_valid(s->img_x, s->img_y, s->img_n, 0)) return stbi__err("too large", "Image too large to decode");
for (i=0; i < s->img_n; ++i) {
if (z->img_comp[i].h > h_max) h_max = z->img_comp[i].h;
if (z->img_comp[i].v > v_max) v_max = z->img_comp[i].v;
}
// compute interleaved mcu info
z->img_h_max = h_max;
z->img_v_max = v_max;
z->img_mcu_w = h_max * 8;
z->img_mcu_h = v_max * 8;
// these sizes can't be more than 17 bits
z->img_mcu_x = (s->img_x + z->img_mcu_w-1) / z->img_mcu_w;
z->img_mcu_y = (s->img_y + z->img_mcu_h-1) / z->img_mcu_h;
for (i=0; i < s->img_n; ++i) {
// number of effective pixels (e.g. for non-interleaved MCU)
z->img_comp[i].x = (s->img_x * z->img_comp[i].h + h_max-1) / h_max;
z->img_comp[i].y = (s->img_y * z->img_comp[i].v + v_max-1) / v_max;
// to simplify generation, we'll allocate enough memory to decode
// the bogus oversized data from using interleaved MCUs and their
// big blocks (e.g. a 16x16 iMCU on an image of width 33); we won't
// discard the extra data until colorspace conversion
//
// img_mcu_x, img_mcu_y: <=17 bits; comp[i].h and .v are <=4 (checked earlier)
// so these muls can't overflow with 32-bit ints (which we require)
z->img_comp[i].w2 = z->img_mcu_x * z->img_comp[i].h * 8;
z->img_comp[i].h2 = z->img_mcu_y * z->img_comp[i].v * 8;
z->img_comp[i].coeff = 0;
z->img_comp[i].raw_coeff = 0;
z->img_comp[i].linebuf = NULL;
z->img_comp[i].raw_data = stbi__malloc_mad2(z->img_comp[i].w2, z->img_comp[i].h2, 15);
if (z->img_comp[i].raw_data == NULL)
return stbi__free_jpeg_components(z, i+1, stbi__err("outofmem", "Out of memory"));
// align blocks for idct using mmx/sse
z->img_comp[i].data = (stbi_uc*) (((size_t) z->img_comp[i].raw_data + 15) & ~15);
if (z->progressive) {
// w2, h2 are multiples of 8 (see above)
z->img_comp[i].coeff_w = z->img_comp[i].w2 / 8;
z->img_comp[i].coeff_h = z->img_comp[i].h2 / 8;
z->img_comp[i].raw_coeff = stbi__malloc_mad3(z->img_comp[i].w2, z->img_comp[i].h2, sizeof(short), 15);
if (z->img_comp[i].raw_coeff == NULL)
return stbi__free_jpeg_components(z, i+1, stbi__err("outofmem", "Out of memory"));
z->img_comp[i].coeff = (short*) (((size_t) z->img_comp[i].raw_coeff + 15) & ~15);
}
}
return 1;
}
// use comparisons since in some cases we handle more than one case (e.g. SOF)
#define stbi__DNL(x) ((x) == 0xdc)
#define stbi__SOI(x) ((x) == 0xd8)
#define stbi__EOI(x) ((x) == 0xd9)
#define stbi__SOF(x) ((x) == 0xc0 || (x) == 0xc1 || (x) == 0xc2)
#define stbi__SOS(x) ((x) == 0xda)
#define stbi__SOF_progressive(x) ((x) == 0xc2)
static int stbi__decode_jpeg_header(stbi__jpeg *z, int scan)
{
int m;
z->jfif = 0;
z->app14_color_transform = -1; // valid values are 0,1,2
z->marker = STBI__MARKER_none; // initialize cached marker to empty
m = stbi__get_marker(z);
if (!stbi__SOI(m)) return stbi__err("no SOI","Corrupt JPEG");
if (scan == STBI__SCAN_type) return 1;
m = stbi__get_marker(z);
while (!stbi__SOF(m)) {
if (!stbi__process_marker(z,m)) return 0;
m = stbi__get_marker(z);
while (m == STBI__MARKER_none) {
// some files have extra padding after their blocks, so ok, we'll scan
if (stbi__at_eof(z->s)) return stbi__err("no SOF", "Corrupt JPEG");
m = stbi__get_marker(z);
}
}
z->progressive = stbi__SOF_progressive(m);
if (!stbi__process_frame_header(z, scan)) return 0;
return 1;
}
// decode image to YCbCr format
static int stbi__decode_jpeg_image(stbi__jpeg *j)
{
int m;
for (m = 0; m < 4; m++) {
j->img_comp[m].raw_data = NULL;
j->img_comp[m].raw_coeff = NULL;
}
j->restart_interval = 0;
if (!stbi__decode_jpeg_header(j, STBI__SCAN_load)) return 0;
m = stbi__get_marker(j);
while (!stbi__EOI(m)) {
if (stbi__SOS(m)) {
if (!stbi__process_scan_header(j)) return 0;
if (!stbi__parse_entropy_coded_data(j)) return 0;
if (j->marker == STBI__MARKER_none ) {
// handle 0s at the end of image data from IP Kamera 9060
while (!stbi__at_eof(j->s)) {
int x = stbi__get8(j->s);
if (x == 255) {
j->marker = stbi__get8(j->s);
break;
}
}
// if we reach eof without hitting a marker, stbi__get_marker() below will fail and we'll eventually return 0
}
} else if (stbi__DNL(m)) {
int Ld = stbi__get16be(j->s);
stbi__uint32 NL = stbi__get16be(j->s);
if (Ld != 4) return stbi__err("bad DNL len", "Corrupt JPEG");
if (NL != j->s->img_y) return stbi__err("bad DNL height", "Corrupt JPEG");
} else {
if (!stbi__process_marker(j, m)) return 0;
}
m = stbi__get_marker(j);
}
if (j->progressive)
stbi__jpeg_finish(j);
return 1;
}
// static jfif-centered resampling (across block boundaries)
typedef stbi_uc *(*resample_row_func)(stbi_uc *out, stbi_uc *in0, stbi_uc *in1,
int w, int hs);
#define stbi__div4(x) ((stbi_uc) ((x) >> 2))
static stbi_uc *resample_row_1(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)
{
STBI_NOTUSED(out);
STBI_NOTUSED(in_far);
STBI_NOTUSED(w);
STBI_NOTUSED(hs);
return in_near;
}
static stbi_uc* stbi__resample_row_v_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)
{
// need to generate two samples vertically for every one in input
int i;
STBI_NOTUSED(hs);
for (i=0; i < w; ++i)
out[i] = stbi__div4(3*in_near[i] + in_far[i] + 2);
return out;
}
static stbi_uc* stbi__resample_row_h_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)
{
// need to generate two samples horizontally for every one in input
int i;
stbi_uc *input = in_near;
if (w == 1) {
// if only one sample, can't do any interpolation
out[0] = out[1] = input[0];
return out;
}
out[0] = input[0];
out[1] = stbi__div4(input[0]*3 + input[1] + 2);
for (i=1; i < w-1; ++i) {
int n = 3*input[i]+2;
out[i*2+0] = stbi__div4(n+input[i-1]);
out[i*2+1] = stbi__div4(n+input[i+1]);
}
out[i*2+0] = stbi__div4(input[w-2]*3 + input[w-1] + 2);
out[i*2+1] = input[w-1];
STBI_NOTUSED(in_far);
STBI_NOTUSED(hs);
return out;
}
#define stbi__div16(x) ((stbi_uc) ((x) >> 4))
static stbi_uc *stbi__resample_row_hv_2(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)
{
// need to generate 2x2 samples for every one in input
int i,t0,t1;
if (w == 1) {
out[0] = out[1] = stbi__div4(3*in_near[0] + in_far[0] + 2);
return out;
}
t1 = 3*in_near[0] + in_far[0];
out[0] = stbi__div4(t1+2);
for (i=1; i < w; ++i) {
t0 = t1;
t1 = 3*in_near[i]+in_far[i];
out[i*2-1] = stbi__div16(3*t0 + t1 + 8);
out[i*2 ] = stbi__div16(3*t1 + t0 + 8);
}
out[w*2-1] = stbi__div4(t1+2);
STBI_NOTUSED(hs);
return out;
}
#if defined(STBI_SSE2) || defined(STBI_NEON)
static stbi_uc *stbi__resample_row_hv_2_simd(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)
{
// need to generate 2x2 samples for every one in input
int i=0,t0,t1;
if (w == 1) {
out[0] = out[1] = stbi__div4(3*in_near[0] + in_far[0] + 2);
return out;
}
t1 = 3*in_near[0] + in_far[0];
// process groups of 8 pixels for as long as we can.
// note we can't handle the last pixel in a row in this loop
// because we need to handle the filter boundary conditions.
for (; i < ((w-1) & ~7); i += 8) {
#if defined(STBI_SSE2)
// load and perform the vertical filtering pass
// this uses 3*x + y = 4*x + (y - x)
__m128i zero = _mm_setzero_si128();
__m128i farb = _mm_loadl_epi64((__m128i *) (in_far + i));
__m128i nearb = _mm_loadl_epi64((__m128i *) (in_near + i));
__m128i farw = _mm_unpacklo_epi8(farb, zero);
__m128i nearw = _mm_unpacklo_epi8(nearb, zero);
__m128i diff = _mm_sub_epi16(farw, nearw);
__m128i nears = _mm_slli_epi16(nearw, 2);
__m128i curr = _mm_add_epi16(nears, diff); // current row
// horizontal filter works the same based on shifted vers of current
// row. "prev" is current row shifted right by 1 pixel; we need to
// insert the previous pixel value (from t1).
// "next" is current row shifted left by 1 pixel, with first pixel
// of next block of 8 pixels added in.
__m128i prv0 = _mm_slli_si128(curr, 2);
__m128i nxt0 = _mm_srli_si128(curr, 2);
__m128i prev = _mm_insert_epi16(prv0, t1, 0);
__m128i next = _mm_insert_epi16(nxt0, 3*in_near[i+8] + in_far[i+8], 7);
// horizontal filter, polyphase implementation since it's convenient:
// even pixels = 3*cur + prev = cur*4 + (prev - cur)
// odd pixels = 3*cur + next = cur*4 + (next - cur)
// note the shared term.
__m128i bias = _mm_set1_epi16(8);
__m128i curs = _mm_slli_epi16(curr, 2);
__m128i prvd = _mm_sub_epi16(prev, curr);
__m128i nxtd = _mm_sub_epi16(next, curr);
__m128i curb = _mm_add_epi16(curs, bias);
__m128i even = _mm_add_epi16(prvd, curb);
__m128i odd = _mm_add_epi16(nxtd, curb);
// interleave even and odd pixels, then undo scaling.
__m128i int0 = _mm_unpacklo_epi16(even, odd);
__m128i int1 = _mm_unpackhi_epi16(even, odd);
__m128i de0 = _mm_srli_epi16(int0, 4);
__m128i de1 = _mm_srli_epi16(int1, 4);
// pack and write output
__m128i outv = _mm_packus_epi16(de0, de1);
_mm_storeu_si128((__m128i *) (out + i*2), outv);
#elif defined(STBI_NEON)
// load and perform the vertical filtering pass
// this uses 3*x + y = 4*x + (y - x)
uint8x8_t farb = vld1_u8(in_far + i);
uint8x8_t nearb = vld1_u8(in_near + i);
int16x8_t diff = vreinterpretq_s16_u16(vsubl_u8(farb, nearb));
int16x8_t nears = vreinterpretq_s16_u16(vshll_n_u8(nearb, 2));
int16x8_t curr = vaddq_s16(nears, diff); // current row
// horizontal filter works the same based on shifted vers of current
// row. "prev" is current row shifted right by 1 pixel; we need to
// insert the previous pixel value (from t1).
// "next" is current row shifted left by 1 pixel, with first pixel
// of next block of 8 pixels added in.
int16x8_t prv0 = vextq_s16(curr, curr, 7);
int16x8_t nxt0 = vextq_s16(curr, curr, 1);
int16x8_t prev = vsetq_lane_s16(t1, prv0, 0);
int16x8_t next = vsetq_lane_s16(3*in_near[i+8] + in_far[i+8], nxt0, 7);
// horizontal filter, polyphase implementation since it's convenient:
// even pixels = 3*cur + prev = cur*4 + (prev - cur)
// odd pixels = 3*cur + next = cur*4 + (next - cur)
// note the shared term.
int16x8_t curs = vshlq_n_s16(curr, 2);
int16x8_t prvd = vsubq_s16(prev, curr);
int16x8_t nxtd = vsubq_s16(next, curr);
int16x8_t even = vaddq_s16(curs, prvd);
int16x8_t odd = vaddq_s16(curs, nxtd);
// undo scaling and round, then store with even/odd phases interleaved
uint8x8x2_t o;
o.val[0] = vqrshrun_n_s16(even, 4);
o.val[1] = vqrshrun_n_s16(odd, 4);
vst2_u8(out + i*2, o);
#endif
// "previous" value for next iter
t1 = 3*in_near[i+7] + in_far[i+7];
}
t0 = t1;
t1 = 3*in_near[i] + in_far[i];
out[i*2] = stbi__div16(3*t1 + t0 + 8);
for (++i; i < w; ++i) {
t0 = t1;
t1 = 3*in_near[i]+in_far[i];
out[i*2-1] = stbi__div16(3*t0 + t1 + 8);
out[i*2 ] = stbi__div16(3*t1 + t0 + 8);
}
out[w*2-1] = stbi__div4(t1+2);
STBI_NOTUSED(hs);
return out;
}
#endif
static stbi_uc *stbi__resample_row_generic(stbi_uc *out, stbi_uc *in_near, stbi_uc *in_far, int w, int hs)
{
// resample with nearest-neighbor
int i,j;
STBI_NOTUSED(in_far);
for (i=0; i < w; ++i)
for (j=0; j < hs; ++j)
out[i*hs+j] = in_near[i];
return out;
}
// this is a reduced-precision calculation of YCbCr-to-RGB introduced
// to make sure the code produces the same results in both SIMD and scalar
#define stbi__float2fixed(x) (((int) ((x) * 4096.0f + 0.5f)) << 8)
static void stbi__YCbCr_to_RGB_row(stbi_uc *out, const stbi_uc *y, const stbi_uc *pcb, const stbi_uc *pcr, int count, int step)
{
int i;
for (i=0; i < count; ++i) {
int y_fixed = (y[i] << 20) + (1<<19); // rounding
int r,g,b;
int cr = pcr[i] - 128;
int cb = pcb[i] - 128;
r = y_fixed + cr* stbi__float2fixed(1.40200f);
g = y_fixed + (cr*-stbi__float2fixed(0.71414f)) + ((cb*-stbi__float2fixed(0.34414f)) & 0xffff0000);
b = y_fixed + cb* stbi__float2fixed(1.77200f);
r >>= 20;
g >>= 20;
b >>= 20;
if ((unsigned) r > 255) { if (r < 0) r = 0; else r = 255; }
if ((unsigned) g > 255) { if (g < 0) g = 0; else g = 255; }
if ((unsigned) b > 255) { if (b < 0) b = 0; else b = 255; }
out[0] = (stbi_uc)r;
out[1] = (stbi_uc)g;
out[2] = (stbi_uc)b;
out[3] = 255;
out += step;
}
}
#if defined(STBI_SSE2) || defined(STBI_NEON)
static void stbi__YCbCr_to_RGB_simd(stbi_uc *out, stbi_uc const *y, stbi_uc const *pcb, stbi_uc const *pcr, int count, int step)
{
int i = 0;
#ifdef STBI_SSE2
// step == 3 is pretty ugly on the final interleave, and i'm not convinced
// it's useful in practice (you wouldn't use it for textures, for example).
// so just accelerate step == 4 case.
if (step == 4) {
// this is a fairly straightforward implementation and not super-optimized.
__m128i signflip = _mm_set1_epi8(-0x80);
__m128i cr_const0 = _mm_set1_epi16( (short) ( 1.40200f*4096.0f+0.5f));
__m128i cr_const1 = _mm_set1_epi16( - (short) ( 0.71414f*4096.0f+0.5f));
__m128i cb_const0 = _mm_set1_epi16( - (short) ( 0.34414f*4096.0f+0.5f));
__m128i cb_const1 = _mm_set1_epi16( (short) ( 1.77200f*4096.0f+0.5f));
__m128i y_bias = _mm_set1_epi8((char) (unsigned char) 128);
__m128i xw = _mm_set1_epi16(255); // alpha channel
for (; i+7 < count; i += 8) {
// load
__m128i y_bytes = _mm_loadl_epi64((__m128i *) (y+i));
__m128i cr_bytes = _mm_loadl_epi64((__m128i *) (pcr+i));
__m128i cb_bytes = _mm_loadl_epi64((__m128i *) (pcb+i));
__m128i cr_biased = _mm_xor_si128(cr_bytes, signflip); // -128
__m128i cb_biased = _mm_xor_si128(cb_bytes, signflip); // -128
// unpack to short (and left-shift cr, cb by 8)
__m128i yw = _mm_unpacklo_epi8(y_bias, y_bytes);
__m128i crw = _mm_unpacklo_epi8(_mm_setzero_si128(), cr_biased);
__m128i cbw = _mm_unpacklo_epi8(_mm_setzero_si128(), cb_biased);
// color transform
__m128i yws = _mm_srli_epi16(yw, 4);
__m128i cr0 = _mm_mulhi_epi16(cr_const0, crw);
__m128i cb0 = _mm_mulhi_epi16(cb_const0, cbw);
__m128i cb1 = _mm_mulhi_epi16(cbw, cb_const1);
__m128i cr1 = _mm_mulhi_epi16(crw, cr_const1);
__m128i rws = _mm_add_epi16(cr0, yws);
__m128i gwt = _mm_add_epi16(cb0, yws);
__m128i bws = _mm_add_epi16(yws, cb1);
__m128i gws = _mm_add_epi16(gwt, cr1);
// descale
__m128i rw = _mm_srai_epi16(rws, 4);
__m128i bw = _mm_srai_epi16(bws, 4);
__m128i gw = _mm_srai_epi16(gws, 4);
// back to byte, set up for transpose
__m128i brb = _mm_packus_epi16(rw, bw);
__m128i gxb = _mm_packus_epi16(gw, xw);
// transpose to interleave channels
__m128i t0 = _mm_unpacklo_epi8(brb, gxb);
__m128i t1 = _mm_unpackhi_epi8(brb, gxb);
__m128i o0 = _mm_unpacklo_epi16(t0, t1);
__m128i o1 = _mm_unpackhi_epi16(t0, t1);
// store
_mm_storeu_si128((__m128i *) (out + 0), o0);
_mm_storeu_si128((__m128i *) (out + 16), o1);
out += 32;
}
}
#endif
#ifdef STBI_NEON
// in this version, step=3 support would be easy to add. but is there demand?
if (step == 4) {
// this is a fairly straightforward implementation and not super-optimized.
uint8x8_t signflip = vdup_n_u8(0x80);
int16x8_t cr_const0 = vdupq_n_s16( (short) ( 1.40200f*4096.0f+0.5f));
int16x8_t cr_const1 = vdupq_n_s16( - (short) ( 0.71414f*4096.0f+0.5f));
int16x8_t cb_const0 = vdupq_n_s16( - (short) ( 0.34414f*4096.0f+0.5f));
int16x8_t cb_const1 = vdupq_n_s16( (short) ( 1.77200f*4096.0f+0.5f));
for (; i+7 < count; i += 8) {
// load
uint8x8_t y_bytes = vld1_u8(y + i);
uint8x8_t cr_bytes = vld1_u8(pcr + i);
uint8x8_t cb_bytes = vld1_u8(pcb + i);
int8x8_t cr_biased = vreinterpret_s8_u8(vsub_u8(cr_bytes, signflip));
int8x8_t cb_biased = vreinterpret_s8_u8(vsub_u8(cb_bytes, signflip));
// expand to s16
int16x8_t yws = vreinterpretq_s16_u16(vshll_n_u8(y_bytes, 4));
int16x8_t crw = vshll_n_s8(cr_biased, 7);
int16x8_t cbw = vshll_n_s8(cb_biased, 7);
// color transform
int16x8_t cr0 = vqdmulhq_s16(crw, cr_const0);
int16x8_t cb0 = vqdmulhq_s16(cbw, cb_const0);
int16x8_t cr1 = vqdmulhq_s16(crw, cr_const1);
int16x8_t cb1 = vqdmulhq_s16(cbw, cb_const1);
int16x8_t rws = vaddq_s16(yws, cr0);
int16x8_t gws = vaddq_s16(vaddq_s16(yws, cb0), cr1);
int16x8_t bws = vaddq_s16(yws, cb1);
// undo scaling, round, convert to byte
uint8x8x4_t o;
o.val[0] = vqrshrun_n_s16(rws, 4);
o.val[1] = vqrshrun_n_s16(gws, 4);
o.val[2] = vqrshrun_n_s16(bws, 4);
o.val[3] = vdup_n_u8(255);
// store, interleaving r/g/b/a
vst4_u8(out, o);
out += 8*4;
}
}
#endif
for (; i < count; ++i) {
int y_fixed = (y[i] << 20) + (1<<19); // rounding
int r,g,b;
int cr = pcr[i] - 128;
int cb = pcb[i] - 128;
r = y_fixed + cr* stbi__float2fixed(1.40200f);
g = y_fixed + cr*-stbi__float2fixed(0.71414f) + ((cb*-stbi__float2fixed(0.34414f)) & 0xffff0000);
b = y_fixed + cb* stbi__float2fixed(1.77200f);
r >>= 20;
g >>= 20;
b >>= 20;
if ((unsigned) r > 255) { if (r < 0) r = 0; else r = 255; }
if ((unsigned) g > 255) { if (g < 0) g = 0; else g = 255; }
if ((unsigned) b > 255) { if (b < 0) b = 0; else b = 255; }
out[0] = (stbi_uc)r;
out[1] = (stbi_uc)g;
out[2] = (stbi_uc)b;
out[3] = 255;
out += step;
}
}
#endif
// set up the kernels
static void stbi__setup_jpeg(stbi__jpeg *j)
{
j->idct_block_kernel = stbi__idct_block;
j->YCbCr_to_RGB_kernel = stbi__YCbCr_to_RGB_row;
j->resample_row_hv_2_kernel = stbi__resample_row_hv_2;
#ifdef STBI_SSE2
if (stbi__sse2_available()) {
j->idct_block_kernel = stbi__idct_simd;
j->YCbCr_to_RGB_kernel = stbi__YCbCr_to_RGB_simd;
j->resample_row_hv_2_kernel = stbi__resample_row_hv_2_simd;
}
#endif
#ifdef STBI_NEON
j->idct_block_kernel = stbi__idct_simd;
j->YCbCr_to_RGB_kernel = stbi__YCbCr_to_RGB_simd;
j->resample_row_hv_2_kernel = stbi__resample_row_hv_2_simd;
#endif
}
// clean up the temporary component buffers
static void stbi__cleanup_jpeg(stbi__jpeg *j)
{
stbi__free_jpeg_components(j, j->s->img_n, 0);
}
typedef struct
{
resample_row_func resample;
stbi_uc *line0,*line1;
int hs,vs; // expansion factor in each axis
int w_lores; // horizontal pixels pre-expansion
int ystep; // how far through vertical expansion we are
int ypos; // which pre-expansion row we're on
} stbi__resample;
// fast 0..255 * 0..255 => 0..255 rounded multiplication
static stbi_uc stbi__blinn_8x8(stbi_uc x, stbi_uc y)
{
unsigned int t = x*y + 128;
return (stbi_uc) ((t + (t >>8)) >> 8);
}
static stbi_uc *load_jpeg_image(stbi__jpeg *z, int *out_x, int *out_y, int *comp, int req_comp)
{
int n, decode_n, is_rgb;
z->s->img_n = 0; // make stbi__cleanup_jpeg safe
// validate req_comp
if (req_comp < 0 || req_comp > 4) return stbi__errpuc("bad req_comp", "Internal error");
// load a jpeg image from whichever source, but leave in YCbCr format
if (!stbi__decode_jpeg_image(z)) { stbi__cleanup_jpeg(z); return NULL; }
// determine actual number of components to generate
n = req_comp ? req_comp : z->s->img_n >= 3 ? 3 : 1;
is_rgb = z->s->img_n == 3 && (z->rgb == 3 || (z->app14_color_transform == 0 && !z->jfif));
if (z->s->img_n == 3 && n < 3 && !is_rgb)
decode_n = 1;
else
decode_n = z->s->img_n;
// resample and color-convert
{
int k;
unsigned int i,j;
stbi_uc *output;
stbi_uc *coutput[4] = { NULL, NULL, NULL, NULL };
stbi__resample res_comp[4];
for (k=0; k < decode_n; ++k) {
stbi__resample *r = &res_comp[k];
// allocate line buffer big enough for upsampling off the edges
// with upsample factor of 4
z->img_comp[k].linebuf = (stbi_uc *) stbi__malloc(z->s->img_x + 3);
if (!z->img_comp[k].linebuf) { stbi__cleanup_jpeg(z); return stbi__errpuc("outofmem", "Out of memory"); }
r->hs = z->img_h_max / z->img_comp[k].h;
r->vs = z->img_v_max / z->img_comp[k].v;
r->ystep = r->vs >> 1;
r->w_lores = (z->s->img_x + r->hs-1) / r->hs;
r->ypos = 0;
r->line0 = r->line1 = z->img_comp[k].data;
if (r->hs == 1 && r->vs == 1) r->resample = resample_row_1;
else if (r->hs == 1 && r->vs == 2) r->resample = stbi__resample_row_v_2;
else if (r->hs == 2 && r->vs == 1) r->resample = stbi__resample_row_h_2;
else if (r->hs == 2 && r->vs == 2) r->resample = z->resample_row_hv_2_kernel;
else r->resample = stbi__resample_row_generic;
}
// can't error after this so, this is safe
output = (stbi_uc *) stbi__malloc_mad3(n, z->s->img_x, z->s->img_y, 1);
if (!output) { stbi__cleanup_jpeg(z); return stbi__errpuc("outofmem", "Out of memory"); }
// now go ahead and resample
for (j=0; j < z->s->img_y; ++j) {
stbi_uc *out = output + n * z->s->img_x * j;
for (k=0; k < decode_n; ++k) {
stbi__resample *r = &res_comp[k];
int y_bot = r->ystep >= (r->vs >> 1);
coutput[k] = r->resample(z->img_comp[k].linebuf,
y_bot ? r->line1 : r->line0,
y_bot ? r->line0 : r->line1,
r->w_lores, r->hs);
if (++r->ystep >= r->vs) {
r->ystep = 0;
r->line0 = r->line1;
if (++r->ypos < z->img_comp[k].y)
r->line1 += z->img_comp[k].w2;
}
}
if (n >= 3) {
stbi_uc *y = coutput[0];
if (z->s->img_n == 3) {
if (is_rgb) {
for (i=0; i < z->s->img_x; ++i) {
out[0] = y[i];
out[1] = coutput[1][i];
out[2] = coutput[2][i];
out[3] = 255;
out += n;
}
} else {
z->YCbCr_to_RGB_kernel(out, y, coutput[1], coutput[2], z->s->img_x, n);
}
} else if (z->s->img_n == 4) {
if (z->app14_color_transform == 0) { // CMYK
for (i=0; i < z->s->img_x; ++i) {
stbi_uc m = coutput[3][i];
out[0] = stbi__blinn_8x8(coutput[0][i], m);
out[1] = stbi__blinn_8x8(coutput[1][i], m);
out[2] = stbi__blinn_8x8(coutput[2][i], m);
out[3] = 255;
out += n;
}
} else if (z->app14_color_transform == 2) { // YCCK
z->YCbCr_to_RGB_kernel(out, y, coutput[1], coutput[2], z->s->img_x, n);
for (i=0; i < z->s->img_x; ++i) {
stbi_uc m = coutput[3][i];
out[0] = stbi__blinn_8x8(255 - out[0], m);
out[1] = stbi__blinn_8x8(255 - out[1], m);
out[2] = stbi__blinn_8x8(255 - out[2], m);
out += n;
}
} else { // YCbCr + alpha? Ignore the fourth channel for now
z->YCbCr_to_RGB_kernel(out, y, coutput[1], coutput[2], z->s->img_x, n);
}
} else
for (i=0; i < z->s->img_x; ++i) {
out[0] = out[1] = out[2] = y[i];
out[3] = 255; // not used if n==3
out += n;
}
} else {
if (is_rgb) {
if (n == 1)
for (i=0; i < z->s->img_x; ++i)
*out++ = stbi__compute_y(coutput[0][i], coutput[1][i], coutput[2][i]);
else {
for (i=0; i < z->s->img_x; ++i, out += 2) {
out[0] = stbi__compute_y(coutput[0][i], coutput[1][i], coutput[2][i]);
out[1] = 255;
}
}
} else if (z->s->img_n == 4 && z->app14_color_transform == 0) {
for (i=0; i < z->s->img_x; ++i) {
stbi_uc m = coutput[3][i];
stbi_uc r = stbi__blinn_8x8(coutput[0][i], m);
stbi_uc g = stbi__blinn_8x8(coutput[1][i], m);
stbi_uc b = stbi__blinn_8x8(coutput[2][i], m);
out[0] = stbi__compute_y(r, g, b);
out[1] = 255;
out += n;
}
} else if (z->s->img_n == 4 && z->app14_color_transform == 2) {
for (i=0; i < z->s->img_x; ++i) {
out[0] = stbi__blinn_8x8(255 - coutput[0][i], coutput[3][i]);
out[1] = 255;
out += n;
}
} else {
stbi_uc *y = coutput[0];
if (n == 1)
for (i=0; i < z->s->img_x; ++i) out[i] = y[i];
else
for (i=0; i < z->s->img_x; ++i) { *out++ = y[i]; *out++ = 255; }
}
}
}
stbi__cleanup_jpeg(z);
*out_x = z->s->img_x;
*out_y = z->s->img_y;
if (comp) *comp = z->s->img_n >= 3 ? 3 : 1; // report original components, not output
return output;
}
}
static void *stbi__jpeg_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)
{
unsigned char* result;
stbi__jpeg* j = (stbi__jpeg*) stbi__malloc(sizeof(stbi__jpeg));
STBI_NOTUSED(ri);
j->s = s;
stbi__setup_jpeg(j);
result = load_jpeg_image(j, x,y,comp,req_comp);
STBI_FREE(j);
return result;
}
static int stbi__jpeg_test(stbi__context *s)
{
int r;
stbi__jpeg* j = (stbi__jpeg*)stbi__malloc(sizeof(stbi__jpeg));
j->s = s;
stbi__setup_jpeg(j);
r = stbi__decode_jpeg_header(j, STBI__SCAN_type);
stbi__rewind(s);
STBI_FREE(j);
return r;
}
static int stbi__jpeg_info_raw(stbi__jpeg *j, int *x, int *y, int *comp)
{
if (!stbi__decode_jpeg_header(j, STBI__SCAN_header)) {
stbi__rewind( j->s );
return 0;
}
if (x) *x = j->s->img_x;
if (y) *y = j->s->img_y;
if (comp) *comp = j->s->img_n >= 3 ? 3 : 1;
return 1;
}
static int stbi__jpeg_info(stbi__context *s, int *x, int *y, int *comp)
{
int result;
stbi__jpeg* j = (stbi__jpeg*) (stbi__malloc(sizeof(stbi__jpeg)));
j->s = s;
result = stbi__jpeg_info_raw(j, x, y, comp);
STBI_FREE(j);
return result;
}
#endif
// public domain zlib decode v0.2 Sean Barrett 2006-11-18
// simple implementation
// - all input must be provided in an upfront buffer
// - all output is written to a single output buffer (can malloc/realloc)
// performance
// - fast huffman
#ifndef STBI_NO_ZLIB
// fast-way is faster to check than jpeg huffman, but slow way is slower
#define STBI__ZFAST_BITS 9 // accelerate all cases in default tables
#define STBI__ZFAST_MASK ((1 << STBI__ZFAST_BITS) - 1)
// zlib-style huffman encoding
// (jpegs packs from left, zlib from right, so can't share code)
typedef struct
{
stbi__uint16 fast[1 << STBI__ZFAST_BITS];
stbi__uint16 firstcode[16];
int maxcode[17];
stbi__uint16 firstsymbol[16];
stbi_uc size[288];
stbi__uint16 value[288];
} stbi__zhuffman;
stbi_inline static int stbi__bitreverse16(int n)
{
n = ((n & 0xAAAA) >> 1) | ((n & 0x5555) << 1);
n = ((n & 0xCCCC) >> 2) | ((n & 0x3333) << 2);
n = ((n & 0xF0F0) >> 4) | ((n & 0x0F0F) << 4);
n = ((n & 0xFF00) >> 8) | ((n & 0x00FF) << 8);
return n;
}
stbi_inline static int stbi__bit_reverse(int v, int bits)
{
STBI_ASSERT(bits <= 16);
// to bit reverse n bits, reverse 16 and shift
// e.g. 11 bits, bit reverse and shift away 5
return stbi__bitreverse16(v) >> (16-bits);
}
static int stbi__zbuild_huffman(stbi__zhuffman *z, const stbi_uc *sizelist, int num)
{
int i,k=0;
int code, next_code[16], sizes[17];
// DEFLATE spec for generating codes
memset(sizes, 0, sizeof(sizes));
memset(z->fast, 0, sizeof(z->fast));
for (i=0; i < num; ++i)
++sizes[sizelist[i]];
sizes[0] = 0;
for (i=1; i < 16; ++i)
if (sizes[i] > (1 << i))
return stbi__err("bad sizes", "Corrupt PNG");
code = 0;
for (i=1; i < 16; ++i) {
next_code[i] = code;
z->firstcode[i] = (stbi__uint16) code;
z->firstsymbol[i] = (stbi__uint16) k;
code = (code + sizes[i]);
if (sizes[i])
if (code-1 >= (1 << i)) return stbi__err("bad codelengths","Corrupt PNG");
z->maxcode[i] = code << (16-i); // preshift for inner loop
code <<= 1;
k += sizes[i];
}
z->maxcode[16] = 0x10000; // sentinel
for (i=0; i < num; ++i) {
int s = sizelist[i];
if (s) {
int c = next_code[s] - z->firstcode[s] + z->firstsymbol[s];
stbi__uint16 fastv = (stbi__uint16) ((s << 9) | i);
z->size [c] = (stbi_uc ) s;
z->value[c] = (stbi__uint16) i;
if (s <= STBI__ZFAST_BITS) {
int j = stbi__bit_reverse(next_code[s],s);
while (j < (1 << STBI__ZFAST_BITS)) {
z->fast[j] = fastv;
j += (1 << s);
}
}
++next_code[s];
}
}
return 1;
}
// zlib-from-memory implementation for PNG reading
// because PNG allows splitting the zlib stream arbitrarily,
// and it's annoying structurally to have PNG call ZLIB call PNG,
// we require PNG read all the IDATs and combine them into a single
// memory buffer
typedef struct
{
stbi_uc *zbuffer, *zbuffer_end;
int num_bits;
stbi__uint32 code_buffer;
char *zout;
char *zout_start;
char *zout_end;
int z_expandable;
stbi__zhuffman z_length, z_distance;
} stbi__zbuf;
stbi_inline static stbi_uc stbi__zget8(stbi__zbuf *z)
{
if (z->zbuffer >= z->zbuffer_end) return 0;
return *z->zbuffer++;
}
static void stbi__fill_bits(stbi__zbuf *z)
{
do {
STBI_ASSERT(z->code_buffer < (1U << z->num_bits));
z->code_buffer |= (unsigned int) stbi__zget8(z) << z->num_bits;
z->num_bits += 8;
} while (z->num_bits <= 24);
}
stbi_inline static unsigned int stbi__zreceive(stbi__zbuf *z, int n)
{
unsigned int k;
if (z->num_bits < n) stbi__fill_bits(z);
k = z->code_buffer & ((1 << n) - 1);
z->code_buffer >>= n;
z->num_bits -= n;
return k;
}
static int stbi__zhuffman_decode_slowpath(stbi__zbuf *a, stbi__zhuffman *z)
{
int b,s,k;
// not resolved by fast table, so compute it the slow way
// use jpeg approach, which requires MSbits at top
k = stbi__bit_reverse(a->code_buffer, 16);
for (s=STBI__ZFAST_BITS+1; ; ++s)
if (k < z->maxcode[s])
break;
if (s == 16) return -1; // invalid code!
// code size is s, so:
b = (k >> (16-s)) - z->firstcode[s] + z->firstsymbol[s];
STBI_ASSERT(z->size[b] == s);
a->code_buffer >>= s;
a->num_bits -= s;
return z->value[b];
}
stbi_inline static int stbi__zhuffman_decode(stbi__zbuf *a, stbi__zhuffman *z)
{
int b,s;
if (a->num_bits < 16) stbi__fill_bits(a);
b = z->fast[a->code_buffer & STBI__ZFAST_MASK];
if (b) {
s = b >> 9;
a->code_buffer >>= s;
a->num_bits -= s;
return b & 511;
}
return stbi__zhuffman_decode_slowpath(a, z);
}
static int stbi__zexpand(stbi__zbuf *z, char *zout, int n) // need to make room for n bytes
{
char *q;
int cur, limit, old_limit;
z->zout = zout;
if (!z->z_expandable) return stbi__err("output buffer limit","Corrupt PNG");
cur = (int) (z->zout - z->zout_start);
limit = old_limit = (int) (z->zout_end - z->zout_start);
while (cur + n > limit)
limit *= 2;
q = (char *) STBI_REALLOC_SIZED(z->zout_start, old_limit, limit);
STBI_NOTUSED(old_limit);
if (q == NULL) return stbi__err("outofmem", "Out of memory");
z->zout_start = q;
z->zout = q + cur;
z->zout_end = q + limit;
return 1;
}
static const int stbi__zlength_base[31] = {
3,4,5,6,7,8,9,10,11,13,
15,17,19,23,27,31,35,43,51,59,
67,83,99,115,131,163,195,227,258,0,0 };
static const int stbi__zlength_extra[31]=
{ 0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0 };
static const int stbi__zdist_base[32] = { 1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,
257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0};
static const int stbi__zdist_extra[32] =
{ 0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13};
static int stbi__parse_huffman_block(stbi__zbuf *a)
{
char *zout = a->zout;
for(;;) {
int z = stbi__zhuffman_decode(a, &a->z_length);
if (z < 256) {
if (z < 0) return stbi__err("bad huffman code","Corrupt PNG"); // error in huffman codes
if (zout >= a->zout_end) {
if (!stbi__zexpand(a, zout, 1)) return 0;
zout = a->zout;
}
*zout++ = (char) z;
} else {
stbi_uc *p;
int len,dist;
if (z == 256) {
a->zout = zout;
return 1;
}
z -= 257;
len = stbi__zlength_base[z];
if (stbi__zlength_extra[z]) len += stbi__zreceive(a, stbi__zlength_extra[z]);
z = stbi__zhuffman_decode(a, &a->z_distance);
if (z < 0) return stbi__err("bad huffman code","Corrupt PNG");
dist = stbi__zdist_base[z];
if (stbi__zdist_extra[z]) dist += stbi__zreceive(a, stbi__zdist_extra[z]);
if (zout - a->zout_start < dist) return stbi__err("bad dist","Corrupt PNG");
if (zout + len > a->zout_end) {
if (!stbi__zexpand(a, zout, len)) return 0;
zout = a->zout;
}
p = (stbi_uc *) (zout - dist);
if (dist == 1) { // run of one byte; common in images.
stbi_uc v = *p;
if (len) { do *zout++ = v; while (--len); }
} else {
if (len) { do *zout++ = *p++; while (--len); }
}
}
}
}
static int stbi__compute_huffman_codes(stbi__zbuf *a)
{
static const stbi_uc length_dezigzag[19] = { 16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15 };
stbi__zhuffman z_codelength;
stbi_uc lencodes[286+32+137];//padding for maximum single op
stbi_uc codelength_sizes[19];
int i,n;
int hlit = stbi__zreceive(a,5) + 257;
int hdist = stbi__zreceive(a,5) + 1;
int hclen = stbi__zreceive(a,4) + 4;
int ntot = hlit + hdist;
memset(codelength_sizes, 0, sizeof(codelength_sizes));
for (i=0; i < hclen; ++i) {
int s = stbi__zreceive(a,3);
codelength_sizes[length_dezigzag[i]] = (stbi_uc) s;
}
if (!stbi__zbuild_huffman(&z_codelength, codelength_sizes, 19)) return 0;
n = 0;
while (n < ntot) {
int c = stbi__zhuffman_decode(a, &z_codelength);
if (c < 0 || c >= 19) return stbi__err("bad codelengths", "Corrupt PNG");
if (c < 16)
lencodes[n++] = (stbi_uc) c;
else {
stbi_uc fill = 0;
if (c == 16) {
c = stbi__zreceive(a,2)+3;
if (n == 0) return stbi__err("bad codelengths", "Corrupt PNG");
fill = lencodes[n-1];
} else if (c == 17)
c = stbi__zreceive(a,3)+3;
else {
STBI_ASSERT(c == 18);
c = stbi__zreceive(a,7)+11;
}
if (ntot - n < c) return stbi__err("bad codelengths", "Corrupt PNG");
memset(lencodes+n, fill, c);
n += c;
}
}
if (n != ntot) return stbi__err("bad codelengths","Corrupt PNG");
if (!stbi__zbuild_huffman(&a->z_length, lencodes, hlit)) return 0;
if (!stbi__zbuild_huffman(&a->z_distance, lencodes+hlit, hdist)) return 0;
return 1;
}
static int stbi__parse_uncompressed_block(stbi__zbuf *a)
{
stbi_uc header[4];
int len,nlen,k;
if (a->num_bits & 7)
stbi__zreceive(a, a->num_bits & 7); // discard
// drain the bit-packed data into header
k = 0;
while (a->num_bits > 0) {
header[k++] = (stbi_uc) (a->code_buffer & 255); // suppress MSVC run-time check
a->code_buffer >>= 8;
a->num_bits -= 8;
}
STBI_ASSERT(a->num_bits == 0);
// now fill header the normal way
while (k < 4)
header[k++] = stbi__zget8(a);
len = header[1] * 256 + header[0];
nlen = header[3] * 256 + header[2];
if (nlen != (len ^ 0xffff)) return stbi__err("zlib corrupt","Corrupt PNG");
if (a->zbuffer + len > a->zbuffer_end) return stbi__err("read past buffer","Corrupt PNG");
if (a->zout + len > a->zout_end)
if (!stbi__zexpand(a, a->zout, len)) return 0;
memcpy(a->zout, a->zbuffer, len);
a->zbuffer += len;
a->zout += len;
return 1;
}
static int stbi__parse_zlib_header(stbi__zbuf *a)
{
int cmf = stbi__zget8(a);
int cm = cmf & 15;
/* int cinfo = cmf >> 4; */
int flg = stbi__zget8(a);
if ((cmf*256+flg) % 31 != 0) return stbi__err("bad zlib header","Corrupt PNG"); // zlib spec
if (flg & 32) return stbi__err("no preset dict","Corrupt PNG"); // preset dictionary not allowed in png
if (cm != 8) return stbi__err("bad compression","Corrupt PNG"); // DEFLATE required for png
// window = 1 << (8 + cinfo)... but who cares, we fully buffer output
return 1;
}
static const stbi_uc stbi__zdefault_length[288] =
{
8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,
8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,
8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,
8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,
8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,
9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,
9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,
9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,
7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, 7,7,7,7,7,7,7,7,8,8,8,8,8,8,8,8
};
static const stbi_uc stbi__zdefault_distance[32] =
{
5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5
};
/*
Init algorithm:
{
int i; // use <= to match clearly with spec
for (i=0; i <= 143; ++i) stbi__zdefault_length[i] = 8;
for ( ; i <= 255; ++i) stbi__zdefault_length[i] = 9;
for ( ; i <= 279; ++i) stbi__zdefault_length[i] = 7;
for ( ; i <= 287; ++i) stbi__zdefault_length[i] = 8;
for (i=0; i <= 31; ++i) stbi__zdefault_distance[i] = 5;
}
*/
static int stbi__parse_zlib(stbi__zbuf *a, int parse_header)
{
int final, type;
if (parse_header)
if (!stbi__parse_zlib_header(a)) return 0;
a->num_bits = 0;
a->code_buffer = 0;
do {
final = stbi__zreceive(a,1);
type = stbi__zreceive(a,2);
if (type == 0) {
if (!stbi__parse_uncompressed_block(a)) return 0;
} else if (type == 3) {
return 0;
} else {
if (type == 1) {
// use fixed code lengths
if (!stbi__zbuild_huffman(&a->z_length , stbi__zdefault_length , 288)) return 0;
if (!stbi__zbuild_huffman(&a->z_distance, stbi__zdefault_distance, 32)) return 0;
} else {
if (!stbi__compute_huffman_codes(a)) return 0;
}
if (!stbi__parse_huffman_block(a)) return 0;
}
} while (!final);
return 1;
}
static int stbi__do_zlib(stbi__zbuf *a, char *obuf, int olen, int exp, int parse_header)
{
a->zout_start = obuf;
a->zout = obuf;
a->zout_end = obuf + olen;
a->z_expandable = exp;
return stbi__parse_zlib(a, parse_header);
}
STBIDEF char *stbi_zlib_decode_malloc_guesssize(const char *buffer, int len, int initial_size, int *outlen)
{
stbi__zbuf a;
char *p = (char *) stbi__malloc(initial_size);
if (p == NULL) return NULL;
a.zbuffer = (stbi_uc *) buffer;
a.zbuffer_end = (stbi_uc *) buffer + len;
if (stbi__do_zlib(&a, p, initial_size, 1, 1)) {
if (outlen) *outlen = (int) (a.zout - a.zout_start);
return a.zout_start;
} else {
STBI_FREE(a.zout_start);
return NULL;
}
}
STBIDEF char *stbi_zlib_decode_malloc(char const *buffer, int len, int *outlen)
{
return stbi_zlib_decode_malloc_guesssize(buffer, len, 16384, outlen);
}
STBIDEF char *stbi_zlib_decode_malloc_guesssize_headerflag(const char *buffer, int len, int initial_size, int *outlen, int parse_header)
{
stbi__zbuf a;
char *p = (char *) stbi__malloc(initial_size);
if (p == NULL) return NULL;
a.zbuffer = (stbi_uc *) buffer;
a.zbuffer_end = (stbi_uc *) buffer + len;
if (stbi__do_zlib(&a, p, initial_size, 1, parse_header)) {
if (outlen) *outlen = (int) (a.zout - a.zout_start);
return a.zout_start;
} else {
STBI_FREE(a.zout_start);
return NULL;
}
}
STBIDEF int stbi_zlib_decode_buffer(char *obuffer, int olen, char const *ibuffer, int ilen)
{
stbi__zbuf a;
a.zbuffer = (stbi_uc *) ibuffer;
a.zbuffer_end = (stbi_uc *) ibuffer + ilen;
if (stbi__do_zlib(&a, obuffer, olen, 0, 1))
return (int) (a.zout - a.zout_start);
else
return -1;
}
STBIDEF char *stbi_zlib_decode_noheader_malloc(char const *buffer, int len, int *outlen)
{
stbi__zbuf a;
char *p = (char *) stbi__malloc(16384);
if (p == NULL) return NULL;
a.zbuffer = (stbi_uc *) buffer;
a.zbuffer_end = (stbi_uc *) buffer+len;
if (stbi__do_zlib(&a, p, 16384, 1, 0)) {
if (outlen) *outlen = (int) (a.zout - a.zout_start);
return a.zout_start;
} else {
STBI_FREE(a.zout_start);
return NULL;
}
}
STBIDEF int stbi_zlib_decode_noheader_buffer(char *obuffer, int olen, const char *ibuffer, int ilen)
{
stbi__zbuf a;
a.zbuffer = (stbi_uc *) ibuffer;
a.zbuffer_end = (stbi_uc *) ibuffer + ilen;
if (stbi__do_zlib(&a, obuffer, olen, 0, 0))
return (int) (a.zout - a.zout_start);
else
return -1;
}
#endif
// public domain "baseline" PNG decoder v0.10 Sean Barrett 2006-11-18
// simple implementation
// - only 8-bit samples
// - no CRC checking
// - allocates lots of intermediate memory
// - avoids problem of streaming data between subsystems
// - avoids explicit window management
// performance
// - uses stb_zlib, a PD zlib implementation with fast huffman decoding
#ifndef STBI_NO_PNG
typedef struct
{
stbi__uint32 length;
stbi__uint32 type;
} stbi__pngchunk;
static stbi__pngchunk stbi__get_chunk_header(stbi__context *s)
{
stbi__pngchunk c;
c.length = stbi__get32be(s);
c.type = stbi__get32be(s);
return c;
}
static int stbi__check_png_header(stbi__context *s)
{
static const stbi_uc png_sig[8] = { 137,80,78,71,13,10,26,10 };
int i;
for (i=0; i < 8; ++i)
if (stbi__get8(s) != png_sig[i]) return stbi__err("bad png sig","Not a PNG");
return 1;
}
typedef struct
{
stbi__context *s;
stbi_uc *idata, *expanded, *out;
int depth;
} stbi__png;
enum {
STBI__F_none=0,
STBI__F_sub=1,
STBI__F_up=2,
STBI__F_avg=3,
STBI__F_paeth=4,
// synthetic filters used for first scanline to avoid needing a dummy row of 0s
STBI__F_avg_first,
STBI__F_paeth_first
};
static stbi_uc first_row_filter[5] =
{
STBI__F_none,
STBI__F_sub,
STBI__F_none,
STBI__F_avg_first,
STBI__F_paeth_first
};
static int stbi__paeth(int a, int b, int c)
{
int p = a + b - c;
int pa = abs(p-a);
int pb = abs(p-b);
int pc = abs(p-c);
if (pa <= pb && pa <= pc) return a;
if (pb <= pc) return b;
return c;
}
static const stbi_uc stbi__depth_scale_table[9] = { 0, 0xff, 0x55, 0, 0x11, 0,0,0, 0x01 };
// create the png data from post-deflated data
static int stbi__create_png_image_raw(stbi__png *a, stbi_uc *raw, stbi__uint32 raw_len, int out_n, stbi__uint32 x, stbi__uint32 y, int depth, int color)
{
int bytes = (depth == 16? 2 : 1);
stbi__context *s = a->s;
stbi__uint32 i,j,stride = x*out_n*bytes;
stbi__uint32 img_len, img_width_bytes;
int k;
int img_n = s->img_n; // copy it into a local for later
int output_bytes = out_n*bytes;
int filter_bytes = img_n*bytes;
int width = x;
STBI_ASSERT(out_n == s->img_n || out_n == s->img_n+1);
a->out = (stbi_uc *) stbi__malloc_mad3(x, y, output_bytes, 0); // extra bytes to write off the end into
if (!a->out) return stbi__err("outofmem", "Out of memory");
if (!stbi__mad3sizes_valid(img_n, x, depth, 7)) return stbi__err("too large", "Corrupt PNG");
img_width_bytes = (((img_n * x * depth) + 7) >> 3);
img_len = (img_width_bytes + 1) * y;
// we used to check for exact match between raw_len and img_len on non-interlaced PNGs,
// but issue #276 reported a PNG in the wild that had extra data at the end (all zeros),
// so just check for raw_len < img_len always.
if (raw_len < img_len) return stbi__err("not enough pixels","Corrupt PNG");
for (j=0; j < y; ++j) {
stbi_uc *cur = a->out + stride*j;
stbi_uc *prior;
int filter = *raw++;
if (filter > 4)
return stbi__err("invalid filter","Corrupt PNG");
if (depth < 8) {
STBI_ASSERT(img_width_bytes <= x);
cur += x*out_n - img_width_bytes; // store output to the rightmost img_len bytes, so we can decode in place
filter_bytes = 1;
width = img_width_bytes;
}
prior = cur - stride; // bugfix: need to compute this after 'cur +=' computation above
// if first row, use special filter that doesn't sample previous row
if (j == 0) filter = first_row_filter[filter];
// handle first byte explicitly
for (k=0; k < filter_bytes; ++k) {
switch (filter) {
case STBI__F_none : cur[k] = raw[k]; break;
case STBI__F_sub : cur[k] = raw[k]; break;
case STBI__F_up : cur[k] = STBI__BYTECAST(raw[k] + prior[k]); break;
case STBI__F_avg : cur[k] = STBI__BYTECAST(raw[k] + (prior[k]>>1)); break;
case STBI__F_paeth : cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(0,prior[k],0)); break;
case STBI__F_avg_first : cur[k] = raw[k]; break;
case STBI__F_paeth_first: cur[k] = raw[k]; break;
}
}
if (depth == 8) {
if (img_n != out_n)
cur[img_n] = 255; // first pixel
raw += img_n;
cur += out_n;
prior += out_n;
} else if (depth == 16) {
if (img_n != out_n) {
cur[filter_bytes] = 255; // first pixel top byte
cur[filter_bytes+1] = 255; // first pixel bottom byte
}
raw += filter_bytes;
cur += output_bytes;
prior += output_bytes;
} else {
raw += 1;
cur += 1;
prior += 1;
}
// this is a little gross, so that we don't switch per-pixel or per-component
if (depth < 8 || img_n == out_n) {
int nk = (width - 1)*filter_bytes;
#define STBI__CASE(f) \
case f: \
for (k=0; k < nk; ++k)
switch (filter) {
// "none" filter turns into a memcpy here; make that explicit.
case STBI__F_none: memcpy(cur, raw, nk); break;
STBI__CASE(STBI__F_sub) { cur[k] = STBI__BYTECAST(raw[k] + cur[k-filter_bytes]); } break;
STBI__CASE(STBI__F_up) { cur[k] = STBI__BYTECAST(raw[k] + prior[k]); } break;
STBI__CASE(STBI__F_avg) { cur[k] = STBI__BYTECAST(raw[k] + ((prior[k] + cur[k-filter_bytes])>>1)); } break;
STBI__CASE(STBI__F_paeth) { cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-filter_bytes],prior[k],prior[k-filter_bytes])); } break;
STBI__CASE(STBI__F_avg_first) { cur[k] = STBI__BYTECAST(raw[k] + (cur[k-filter_bytes] >> 1)); } break;
STBI__CASE(STBI__F_paeth_first) { cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k-filter_bytes],0,0)); } break;
}
#undef STBI__CASE
raw += nk;
} else {
STBI_ASSERT(img_n+1 == out_n);
#define STBI__CASE(f) \
case f: \
for (i=x-1; i >= 1; --i, cur[filter_bytes]=255,raw+=filter_bytes,cur+=output_bytes,prior+=output_bytes) \
for (k=0; k < filter_bytes; ++k)
switch (filter) {
STBI__CASE(STBI__F_none) { cur[k] = raw[k]; } break;
STBI__CASE(STBI__F_sub) { cur[k] = STBI__BYTECAST(raw[k] + cur[k- output_bytes]); } break;
STBI__CASE(STBI__F_up) { cur[k] = STBI__BYTECAST(raw[k] + prior[k]); } break;
STBI__CASE(STBI__F_avg) { cur[k] = STBI__BYTECAST(raw[k] + ((prior[k] + cur[k- output_bytes])>>1)); } break;
STBI__CASE(STBI__F_paeth) { cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k- output_bytes],prior[k],prior[k- output_bytes])); } break;
STBI__CASE(STBI__F_avg_first) { cur[k] = STBI__BYTECAST(raw[k] + (cur[k- output_bytes] >> 1)); } break;
STBI__CASE(STBI__F_paeth_first) { cur[k] = STBI__BYTECAST(raw[k] + stbi__paeth(cur[k- output_bytes],0,0)); } break;
}
#undef STBI__CASE
// the loop above sets the high byte of the pixels' alpha, but for
// 16 bit png files we also need the low byte set. we'll do that here.
if (depth == 16) {
cur = a->out + stride*j; // start at the beginning of the row again
for (i=0; i < x; ++i,cur+=output_bytes) {
cur[filter_bytes+1] = 255;
}
}
}
}
// we make a separate pass to expand bits to pixels; for performance,
// this could run two scanlines behind the above code, so it won't
// intefere with filtering but will still be in the cache.
if (depth < 8) {
for (j=0; j < y; ++j) {
stbi_uc *cur = a->out + stride*j;
stbi_uc *in = a->out + stride*j + x*out_n - img_width_bytes;
// unpack 1/2/4-bit into a 8-bit buffer. allows us to keep the common 8-bit path optimal at minimal cost for 1/2/4-bit
// png guarante byte alignment, if width is not multiple of 8/4/2 we'll decode dummy trailing data that will be skipped in the later loop
stbi_uc scale = (color == 0) ? stbi__depth_scale_table[depth] : 1; // scale grayscale values to 0..255 range
// note that the final byte might overshoot and write more data than desired.
// we can allocate enough data that this never writes out of memory, but it
// could also overwrite the next scanline. can it overwrite non-empty data
// on the next scanline? yes, consider 1-pixel-wide scanlines with 1-bit-per-pixel.
// so we need to explicitly clamp the final ones
if (depth == 4) {
for (k=x*img_n; k >= 2; k-=2, ++in) {
*cur++ = scale * ((*in >> 4) );
*cur++ = scale * ((*in ) & 0x0f);
}
if (k > 0) *cur++ = scale * ((*in >> 4) );
} else if (depth == 2) {
for (k=x*img_n; k >= 4; k-=4, ++in) {
*cur++ = scale * ((*in >> 6) );
*cur++ = scale * ((*in >> 4) & 0x03);
*cur++ = scale * ((*in >> 2) & 0x03);
*cur++ = scale * ((*in ) & 0x03);
}
if (k > 0) *cur++ = scale * ((*in >> 6) );
if (k > 1) *cur++ = scale * ((*in >> 4) & 0x03);
if (k > 2) *cur++ = scale * ((*in >> 2) & 0x03);
} else if (depth == 1) {
for (k=x*img_n; k >= 8; k-=8, ++in) {
*cur++ = scale * ((*in >> 7) );
*cur++ = scale * ((*in >> 6) & 0x01);
*cur++ = scale * ((*in >> 5) & 0x01);
*cur++ = scale * ((*in >> 4) & 0x01);
*cur++ = scale * ((*in >> 3) & 0x01);
*cur++ = scale * ((*in >> 2) & 0x01);
*cur++ = scale * ((*in >> 1) & 0x01);
*cur++ = scale * ((*in ) & 0x01);
}
if (k > 0) *cur++ = scale * ((*in >> 7) );
if (k > 1) *cur++ = scale * ((*in >> 6) & 0x01);
if (k > 2) *cur++ = scale * ((*in >> 5) & 0x01);
if (k > 3) *cur++ = scale * ((*in >> 4) & 0x01);
if (k > 4) *cur++ = scale * ((*in >> 3) & 0x01);
if (k > 5) *cur++ = scale * ((*in >> 2) & 0x01);
if (k > 6) *cur++ = scale * ((*in >> 1) & 0x01);
}
if (img_n != out_n) {
int q;
// insert alpha = 255
cur = a->out + stride*j;
if (img_n == 1) {
for (q=x-1; q >= 0; --q) {
cur[q*2+1] = 255;
cur[q*2+0] = cur[q];
}
} else {
STBI_ASSERT(img_n == 3);
for (q=x-1; q >= 0; --q) {
cur[q*4+3] = 255;
cur[q*4+2] = cur[q*3+2];
cur[q*4+1] = cur[q*3+1];
cur[q*4+0] = cur[q*3+0];
}
}
}
}
} else if (depth == 16) {
// force the image data from big-endian to platform-native.
// this is done in a separate pass due to the decoding relying
// on the data being untouched, but could probably be done
// per-line during decode if care is taken.
stbi_uc *cur = a->out;
stbi__uint16 *cur16 = (stbi__uint16*)cur;
for(i=0; i < x*y*out_n; ++i,cur16++,cur+=2) {
*cur16 = (cur[0] << 8) | cur[1];
}
}
return 1;
}
static int stbi__create_png_image(stbi__png *a, stbi_uc *image_data, stbi__uint32 image_data_len, int out_n, int depth, int color, int interlaced)
{
int bytes = (depth == 16 ? 2 : 1);
int out_bytes = out_n * bytes;
stbi_uc *final;
int p;
if (!interlaced)
return stbi__create_png_image_raw(a, image_data, image_data_len, out_n, a->s->img_x, a->s->img_y, depth, color);
// de-interlacing
final = (stbi_uc *) stbi__malloc_mad3(a->s->img_x, a->s->img_y, out_bytes, 0);
for (p=0; p < 7; ++p) {
int xorig[] = { 0,4,0,2,0,1,0 };
int yorig[] = { 0,0,4,0,2,0,1 };
int xspc[] = { 8,8,4,4,2,2,1 };
int yspc[] = { 8,8,8,4,4,2,2 };
int i,j,x,y;
// pass1_x[4] = 0, pass1_x[5] = 1, pass1_x[12] = 1
x = (a->s->img_x - xorig[p] + xspc[p]-1) / xspc[p];
y = (a->s->img_y - yorig[p] + yspc[p]-1) / yspc[p];
if (x && y) {
stbi__uint32 img_len = ((((a->s->img_n * x * depth) + 7) >> 3) + 1) * y;
if (!stbi__create_png_image_raw(a, image_data, image_data_len, out_n, x, y, depth, color)) {
STBI_FREE(final);
return 0;
}
for (j=0; j < y; ++j) {
for (i=0; i < x; ++i) {
int out_y = j*yspc[p]+yorig[p];
int out_x = i*xspc[p]+xorig[p];
memcpy(final + out_y*a->s->img_x*out_bytes + out_x*out_bytes,
a->out + (j*x+i)*out_bytes, out_bytes);
}
}
STBI_FREE(a->out);
image_data += img_len;
image_data_len -= img_len;
}
}
a->out = final;
return 1;
}
static int stbi__compute_transparency(stbi__png *z, stbi_uc tc[3], int out_n)
{
stbi__context *s = z->s;
stbi__uint32 i, pixel_count = s->img_x * s->img_y;
stbi_uc *p = z->out;
// compute color-based transparency, assuming we've
// already got 255 as the alpha value in the output
STBI_ASSERT(out_n == 2 || out_n == 4);
if (out_n == 2) {
for (i=0; i < pixel_count; ++i) {
p[1] = (p[0] == tc[0] ? 0 : 255);
p += 2;
}
} else {
for (i=0; i < pixel_count; ++i) {
if (p[0] == tc[0] && p[1] == tc[1] && p[2] == tc[2])
p[3] = 0;
p += 4;
}
}
return 1;
}
static int stbi__compute_transparency16(stbi__png *z, stbi__uint16 tc[3], int out_n)
{
stbi__context *s = z->s;
stbi__uint32 i, pixel_count = s->img_x * s->img_y;
stbi__uint16 *p = (stbi__uint16*) z->out;
// compute color-based transparency, assuming we've
// already got 65535 as the alpha value in the output
STBI_ASSERT(out_n == 2 || out_n == 4);
if (out_n == 2) {
for (i = 0; i < pixel_count; ++i) {
p[1] = (p[0] == tc[0] ? 0 : 65535);
p += 2;
}
} else {
for (i = 0; i < pixel_count; ++i) {
if (p[0] == tc[0] && p[1] == tc[1] && p[2] == tc[2])
p[3] = 0;
p += 4;
}
}
return 1;
}
static int stbi__expand_png_palette(stbi__png *a, stbi_uc *palette, int len, int pal_img_n)
{
stbi__uint32 i, pixel_count = a->s->img_x * a->s->img_y;
stbi_uc *p, *temp_out, *orig = a->out;
p = (stbi_uc *) stbi__malloc_mad2(pixel_count, pal_img_n, 0);
if (p == NULL) return stbi__err("outofmem", "Out of memory");
// between here and free(out) below, exitting would leak
temp_out = p;
if (pal_img_n == 3) {
for (i=0; i < pixel_count; ++i) {
int n = orig[i]*4;
p[0] = palette[n ];
p[1] = palette[n+1];
p[2] = palette[n+2];
p += 3;
}
} else {
for (i=0; i < pixel_count; ++i) {
int n = orig[i]*4;
p[0] = palette[n ];
p[1] = palette[n+1];
p[2] = palette[n+2];
p[3] = palette[n+3];
p += 4;
}
}
STBI_FREE(a->out);
a->out = temp_out;
STBI_NOTUSED(len);
return 1;
}
static int stbi__unpremultiply_on_load = 0;
static int stbi__de_iphone_flag = 0;
STBIDEF void stbi_set_unpremultiply_on_load(int flag_true_if_should_unpremultiply)
{
stbi__unpremultiply_on_load = flag_true_if_should_unpremultiply;
}
STBIDEF void stbi_convert_iphone_png_to_rgb(int flag_true_if_should_convert)
{
stbi__de_iphone_flag = flag_true_if_should_convert;
}
static void stbi__de_iphone(stbi__png *z)
{
stbi__context *s = z->s;
stbi__uint32 i, pixel_count = s->img_x * s->img_y;
stbi_uc *p = z->out;
if (s->img_out_n == 3) { // convert bgr to rgb
for (i=0; i < pixel_count; ++i) {
stbi_uc t = p[0];
p[0] = p[2];
p[2] = t;
p += 3;
}
} else {
STBI_ASSERT(s->img_out_n == 4);
if (stbi__unpremultiply_on_load) {
// convert bgr to rgb and unpremultiply
for (i=0; i < pixel_count; ++i) {
stbi_uc a = p[3];
stbi_uc t = p[0];
if (a) {
stbi_uc half = a / 2;
p[0] = (p[2] * 255 + half) / a;
p[1] = (p[1] * 255 + half) / a;
p[2] = ( t * 255 + half) / a;
} else {
p[0] = p[2];
p[2] = t;
}
p += 4;
}
} else {
// convert bgr to rgb
for (i=0; i < pixel_count; ++i) {
stbi_uc t = p[0];
p[0] = p[2];
p[2] = t;
p += 4;
}
}
}
}
#define STBI__PNG_TYPE(a,b,c,d) (((unsigned) (a) << 24) + ((unsigned) (b) << 16) + ((unsigned) (c) << 8) + (unsigned) (d))
static int stbi__parse_png_file(stbi__png *z, int scan, int req_comp)
{
stbi_uc palette[1024], pal_img_n=0;
stbi_uc has_trans=0, tc[3]={0};
stbi__uint16 tc16[3];
stbi__uint32 ioff=0, idata_limit=0, i, pal_len=0;
int first=1,k,interlace=0, color=0, is_iphone=0;
stbi__context *s = z->s;
z->expanded = NULL;
z->idata = NULL;
z->out = NULL;
if (!stbi__check_png_header(s)) return 0;
if (scan == STBI__SCAN_type) return 1;
for (;;) {
stbi__pngchunk c = stbi__get_chunk_header(s);
switch (c.type) {
case STBI__PNG_TYPE('C','g','B','I'):
is_iphone = 1;
stbi__skip(s, c.length);
break;
case STBI__PNG_TYPE('I','H','D','R'): {
int comp,filter;
if (!first) return stbi__err("multiple IHDR","Corrupt PNG");
first = 0;
if (c.length != 13) return stbi__err("bad IHDR len","Corrupt PNG");
s->img_x = stbi__get32be(s); if (s->img_x > (1 << 24)) return stbi__err("too large","Very large image (corrupt?)");
s->img_y = stbi__get32be(s); if (s->img_y > (1 << 24)) return stbi__err("too large","Very large image (corrupt?)");
z->depth = stbi__get8(s); if (z->depth != 1 && z->depth != 2 && z->depth != 4 && z->depth != 8 && z->depth != 16) return stbi__err("1/2/4/8/16-bit only","PNG not supported: 1/2/4/8/16-bit only");
color = stbi__get8(s); if (color > 6) return stbi__err("bad ctype","Corrupt PNG");
if (color == 3 && z->depth == 16) return stbi__err("bad ctype","Corrupt PNG");
if (color == 3) pal_img_n = 3; else if (color & 1) return stbi__err("bad ctype","Corrupt PNG");
comp = stbi__get8(s); if (comp) return stbi__err("bad comp method","Corrupt PNG");
filter= stbi__get8(s); if (filter) return stbi__err("bad filter method","Corrupt PNG");
interlace = stbi__get8(s); if (interlace>1) return stbi__err("bad interlace method","Corrupt PNG");
if (!s->img_x || !s->img_y) return stbi__err("0-pixel image","Corrupt PNG");
if (!pal_img_n) {
s->img_n = (color & 2 ? 3 : 1) + (color & 4 ? 1 : 0);
if ((1 << 30) / s->img_x / s->img_n < s->img_y) return stbi__err("too large", "Image too large to decode");
if (scan == STBI__SCAN_header) return 1;
} else {
// if paletted, then pal_n is our final components, and
// img_n is # components to decompress/filter.
s->img_n = 1;
if ((1 << 30) / s->img_x / 4 < s->img_y) return stbi__err("too large","Corrupt PNG");
// if SCAN_header, have to scan to see if we have a tRNS
}
break;
}
case STBI__PNG_TYPE('P','L','T','E'): {
if (first) return stbi__err("first not IHDR", "Corrupt PNG");
if (c.length > 256*3) return stbi__err("invalid PLTE","Corrupt PNG");
pal_len = c.length / 3;
if (pal_len * 3 != c.length) return stbi__err("invalid PLTE","Corrupt PNG");
for (i=0; i < pal_len; ++i) {
palette[i*4+0] = stbi__get8(s);
palette[i*4+1] = stbi__get8(s);
palette[i*4+2] = stbi__get8(s);
palette[i*4+3] = 255;
}
break;
}
case STBI__PNG_TYPE('t','R','N','S'): {
if (first) return stbi__err("first not IHDR", "Corrupt PNG");
if (z->idata) return stbi__err("tRNS after IDAT","Corrupt PNG");
if (pal_img_n) {
if (scan == STBI__SCAN_header) { s->img_n = 4; return 1; }
if (pal_len == 0) return stbi__err("tRNS before PLTE","Corrupt PNG");
if (c.length > pal_len) return stbi__err("bad tRNS len","Corrupt PNG");
pal_img_n = 4;
for (i=0; i < c.length; ++i)
palette[i*4+3] = stbi__get8(s);
} else {
if (!(s->img_n & 1)) return stbi__err("tRNS with alpha","Corrupt PNG");
if (c.length != (stbi__uint32) s->img_n*2) return stbi__err("bad tRNS len","Corrupt PNG");
has_trans = 1;
if (z->depth == 16) {
for (k = 0; k < s->img_n; ++k) tc16[k] = (stbi__uint16)stbi__get16be(s); // copy the values as-is
} else {
for (k = 0; k < s->img_n; ++k) tc[k] = (stbi_uc)(stbi__get16be(s) & 255) * stbi__depth_scale_table[z->depth]; // non 8-bit images will be larger
}
}
break;
}
case STBI__PNG_TYPE('I','D','A','T'): {
if (first) return stbi__err("first not IHDR", "Corrupt PNG");
if (pal_img_n && !pal_len) return stbi__err("no PLTE","Corrupt PNG");
if (scan == STBI__SCAN_header) { s->img_n = pal_img_n; return 1; }
if ((int)(ioff + c.length) < (int)ioff) return 0;
if (ioff + c.length > idata_limit) {
stbi__uint32 idata_limit_old = idata_limit;
stbi_uc *p;
if (idata_limit == 0) idata_limit = c.length > 4096 ? c.length : 4096;
while (ioff + c.length > idata_limit)
idata_limit *= 2;
STBI_NOTUSED(idata_limit_old);
p = (stbi_uc *) STBI_REALLOC_SIZED(z->idata, idata_limit_old, idata_limit); if (p == NULL) return stbi__err("outofmem", "Out of memory");
z->idata = p;
}
if (!stbi__getn(s, z->idata+ioff,c.length)) return stbi__err("outofdata","Corrupt PNG");
ioff += c.length;
break;
}
case STBI__PNG_TYPE('I','E','N','D'): {
stbi__uint32 raw_len, bpl;
if (first) return stbi__err("first not IHDR", "Corrupt PNG");
if (scan != STBI__SCAN_load) return 1;
if (z->idata == NULL) return stbi__err("no IDAT","Corrupt PNG");
// initial guess for decoded data size to avoid unnecessary reallocs
bpl = (s->img_x * z->depth + 7) / 8; // bytes per line, per component
raw_len = bpl * s->img_y * s->img_n /* pixels */ + s->img_y /* filter mode per row */;
z->expanded = (stbi_uc *) stbi_zlib_decode_malloc_guesssize_headerflag((char *) z->idata, ioff, raw_len, (int *) &raw_len, !is_iphone);
if (z->expanded == NULL) return 0; // zlib should set error
STBI_FREE(z->idata); z->idata = NULL;
if ((req_comp == s->img_n+1 && req_comp != 3 && !pal_img_n) || has_trans)
s->img_out_n = s->img_n+1;
else
s->img_out_n = s->img_n;
if (!stbi__create_png_image(z, z->expanded, raw_len, s->img_out_n, z->depth, color, interlace)) return 0;
if (has_trans) {
if (z->depth == 16) {
if (!stbi__compute_transparency16(z, tc16, s->img_out_n)) return 0;
} else {
if (!stbi__compute_transparency(z, tc, s->img_out_n)) return 0;
}
}
if (is_iphone && stbi__de_iphone_flag && s->img_out_n > 2)
stbi__de_iphone(z);
if (pal_img_n) {
// pal_img_n == 3 or 4
s->img_n = pal_img_n; // record the actual colors we had
s->img_out_n = pal_img_n;
if (req_comp >= 3) s->img_out_n = req_comp;
if (!stbi__expand_png_palette(z, palette, pal_len, s->img_out_n))
return 0;
} else if (has_trans) {
// non-paletted image with tRNS -> source image has (constant) alpha
++s->img_n;
}
STBI_FREE(z->expanded); z->expanded = NULL;
return 1;
}
default:
// if critical, fail
if (first) return stbi__err("first not IHDR", "Corrupt PNG");
if ((c.type & (1 << 29)) == 0) {
#ifndef STBI_NO_FAILURE_STRINGS
// not threadsafe
static char invalid_chunk[] = "XXXX PNG chunk not known";
invalid_chunk[0] = STBI__BYTECAST(c.type >> 24);
invalid_chunk[1] = STBI__BYTECAST(c.type >> 16);
invalid_chunk[2] = STBI__BYTECAST(c.type >> 8);
invalid_chunk[3] = STBI__BYTECAST(c.type >> 0);
#endif
return stbi__err(invalid_chunk, "PNG not supported: unknown PNG chunk type");
}
stbi__skip(s, c.length);
break;
}
// end of PNG chunk, read and skip CRC
stbi__get32be(s);
}
}
static void *stbi__do_png(stbi__png *p, int *x, int *y, int *n, int req_comp, stbi__result_info *ri)
{
void *result=NULL;
if (req_comp < 0 || req_comp > 4) return stbi__errpuc("bad req_comp", "Internal error");
if (stbi__parse_png_file(p, STBI__SCAN_load, req_comp)) {
if (p->depth < 8)
ri->bits_per_channel = 8;
else
ri->bits_per_channel = p->depth;
result = p->out;
p->out = NULL;
if (req_comp && req_comp != p->s->img_out_n) {
if (ri->bits_per_channel == 8)
result = stbi__convert_format((unsigned char *) result, p->s->img_out_n, req_comp, p->s->img_x, p->s->img_y);
else
result = stbi__convert_format16((stbi__uint16 *) result, p->s->img_out_n, req_comp, p->s->img_x, p->s->img_y);
p->s->img_out_n = req_comp;
if (result == NULL) return result;
}
*x = p->s->img_x;
*y = p->s->img_y;
if (n) *n = p->s->img_n;
}
STBI_FREE(p->out); p->out = NULL;
STBI_FREE(p->expanded); p->expanded = NULL;
STBI_FREE(p->idata); p->idata = NULL;
return result;
}
static void *stbi__png_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)
{
stbi__png p;
p.s = s;
return stbi__do_png(&p, x,y,comp,req_comp, ri);
}
static int stbi__png_test(stbi__context *s)
{
int r;
r = stbi__check_png_header(s);
stbi__rewind(s);
return r;
}
static int stbi__png_info_raw(stbi__png *p, int *x, int *y, int *comp)
{
if (!stbi__parse_png_file(p, STBI__SCAN_header, 0)) {
stbi__rewind( p->s );
return 0;
}
if (x) *x = p->s->img_x;
if (y) *y = p->s->img_y;
if (comp) *comp = p->s->img_n;
return 1;
}
static int stbi__png_info(stbi__context *s, int *x, int *y, int *comp)
{
stbi__png p;
p.s = s;
return stbi__png_info_raw(&p, x, y, comp);
}
static int stbi__png_is16(stbi__context *s)
{
stbi__png p;
p.s = s;
if (!stbi__png_info_raw(&p, NULL, NULL, NULL))
return 0;
if (p.depth != 16) {
stbi__rewind(p.s);
return 0;
}
return 1;
}
#endif
// Microsoft/Windows BMP image
#ifndef STBI_NO_BMP
static int stbi__bmp_test_raw(stbi__context *s)
{
int r;
int sz;
if (stbi__get8(s) != 'B') return 0;
if (stbi__get8(s) != 'M') return 0;
stbi__get32le(s); // discard filesize
stbi__get16le(s); // discard reserved
stbi__get16le(s); // discard reserved
stbi__get32le(s); // discard data offset
sz = stbi__get32le(s);
r = (sz == 12 || sz == 40 || sz == 56 || sz == 108 || sz == 124);
return r;
}
static int stbi__bmp_test(stbi__context *s)
{
int r = stbi__bmp_test_raw(s);
stbi__rewind(s);
return r;
}
// returns 0..31 for the highest set bit
static int stbi__high_bit(unsigned int z)
{
int n=0;
if (z == 0) return -1;
if (z >= 0x10000) { n += 16; z >>= 16; }
if (z >= 0x00100) { n += 8; z >>= 8; }
if (z >= 0x00010) { n += 4; z >>= 4; }
if (z >= 0x00004) { n += 2; z >>= 2; }
if (z >= 0x00002) { n += 1; z >>= 1; }
return n;
}
static int stbi__bitcount(unsigned int a)
{
a = (a & 0x55555555) + ((a >> 1) & 0x55555555); // max 2
a = (a & 0x33333333) + ((a >> 2) & 0x33333333); // max 4
a = (a + (a >> 4)) & 0x0f0f0f0f; // max 8 per 4, now 8 bits
a = (a + (a >> 8)); // max 16 per 8 bits
a = (a + (a >> 16)); // max 32 per 8 bits
return a & 0xff;
}
// extract an arbitrarily-aligned N-bit value (N=bits)
// from v, and then make it 8-bits long and fractionally
// extend it to full full range.
static int stbi__shiftsigned(unsigned int v, int shift, int bits)
{
static unsigned int mul_table[9] = {
0,
0xff/*0b11111111*/, 0x55/*0b01010101*/, 0x49/*0b01001001*/, 0x11/*0b00010001*/,
0x21/*0b00100001*/, 0x41/*0b01000001*/, 0x81/*0b10000001*/, 0x01/*0b00000001*/,
};
static unsigned int shift_table[9] = {
0, 0,0,1,0,2,4,6,0,
};
if (shift < 0)
v <<= -shift;
else
v >>= shift;
STBI_ASSERT(v >= 0 && v < 256);
v >>= (8-bits);
STBI_ASSERT(bits >= 0 && bits <= 8);
return (int) ((unsigned) v * mul_table[bits]) >> shift_table[bits];
}
typedef struct
{
int bpp, offset, hsz;
unsigned int mr,mg,mb,ma, all_a;
} stbi__bmp_data;
static void *stbi__bmp_parse_header(stbi__context *s, stbi__bmp_data *info)
{
int hsz;
if (stbi__get8(s) != 'B' || stbi__get8(s) != 'M') return stbi__errpuc("not BMP", "Corrupt BMP");
stbi__get32le(s); // discard filesize
stbi__get16le(s); // discard reserved
stbi__get16le(s); // discard reserved
info->offset = stbi__get32le(s);
info->hsz = hsz = stbi__get32le(s);
info->mr = info->mg = info->mb = info->ma = 0;
if (hsz != 12 && hsz != 40 && hsz != 56 && hsz != 108 && hsz != 124) return stbi__errpuc("unknown BMP", "BMP type not supported: unknown");
if (hsz == 12) {
s->img_x = stbi__get16le(s);
s->img_y = stbi__get16le(s);
} else {
s->img_x = stbi__get32le(s);
s->img_y = stbi__get32le(s);
}
if (stbi__get16le(s) != 1) return stbi__errpuc("bad BMP", "bad BMP");
info->bpp = stbi__get16le(s);
if (hsz != 12) {
int compress = stbi__get32le(s);
if (compress == 1 || compress == 2) return stbi__errpuc("BMP RLE", "BMP type not supported: RLE");
stbi__get32le(s); // discard sizeof
stbi__get32le(s); // discard hres
stbi__get32le(s); // discard vres
stbi__get32le(s); // discard colorsused
stbi__get32le(s); // discard max important
if (hsz == 40 || hsz == 56) {
if (hsz == 56) {
stbi__get32le(s);
stbi__get32le(s);
stbi__get32le(s);
stbi__get32le(s);
}
if (info->bpp == 16 || info->bpp == 32) {
if (compress == 0) {
if (info->bpp == 32) {
info->mr = 0xffu << 16;
info->mg = 0xffu << 8;
info->mb = 0xffu << 0;
info->ma = 0xffu << 24;
info->all_a = 0; // if all_a is 0 at end, then we loaded alpha channel but it was all 0
} else {
info->mr = 31u << 10;
info->mg = 31u << 5;
info->mb = 31u << 0;
}
} else if (compress == 3) {
info->mr = stbi__get32le(s);
info->mg = stbi__get32le(s);
info->mb = stbi__get32le(s);
// not documented, but generated by photoshop and handled by mspaint
if (info->mr == info->mg && info->mg == info->mb) {
// ?!?!?
return stbi__errpuc("bad BMP", "bad BMP");
}
} else
return stbi__errpuc("bad BMP", "bad BMP");
}
} else {
int i;
if (hsz != 108 && hsz != 124)
return stbi__errpuc("bad BMP", "bad BMP");
info->mr = stbi__get32le(s);
info->mg = stbi__get32le(s);
info->mb = stbi__get32le(s);
info->ma = stbi__get32le(s);
stbi__get32le(s); // discard color space
for (i=0; i < 12; ++i)
stbi__get32le(s); // discard color space parameters
if (hsz == 124) {
stbi__get32le(s); // discard rendering intent
stbi__get32le(s); // discard offset of profile data
stbi__get32le(s); // discard size of profile data
stbi__get32le(s); // discard reserved
}
}
}
return (void *) 1;
}
static void *stbi__bmp_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)
{
stbi_uc *out;
unsigned int mr=0,mg=0,mb=0,ma=0, all_a;
stbi_uc pal[256][4];
int psize=0,i,j,width;
int flip_vertically, pad, target;
stbi__bmp_data info;
STBI_NOTUSED(ri);
info.all_a = 255;
if (stbi__bmp_parse_header(s, &info) == NULL)
return NULL; // error code already set
flip_vertically = ((int) s->img_y) > 0;
s->img_y = abs((int) s->img_y);
mr = info.mr;
mg = info.mg;
mb = info.mb;
ma = info.ma;
all_a = info.all_a;
if (info.hsz == 12) {
if (info.bpp < 24)
psize = (info.offset - 14 - 24) / 3;
} else {
if (info.bpp < 16)
psize = (info.offset - 14 - info.hsz) >> 2;
}
s->img_n = ma ? 4 : 3;
if (req_comp && req_comp >= 3) // we can directly decode 3 or 4
target = req_comp;
else
target = s->img_n; // if they want monochrome, we'll post-convert
// sanity-check size
if (!stbi__mad3sizes_valid(target, s->img_x, s->img_y, 0))
return stbi__errpuc("too large", "Corrupt BMP");
out = (stbi_uc *) stbi__malloc_mad3(target, s->img_x, s->img_y, 0);
if (!out) return stbi__errpuc("outofmem", "Out of memory");
if (info.bpp < 16) {
int z=0;
if (psize == 0 || psize > 256) { STBI_FREE(out); return stbi__errpuc("invalid", "Corrupt BMP"); }
for (i=0; i < psize; ++i) {
pal[i][2] = stbi__get8(s);
pal[i][1] = stbi__get8(s);
pal[i][0] = stbi__get8(s);
if (info.hsz != 12) stbi__get8(s);
pal[i][3] = 255;
}
stbi__skip(s, info.offset - 14 - info.hsz - psize * (info.hsz == 12 ? 3 : 4));
if (info.bpp == 1) width = (s->img_x + 7) >> 3;
else if (info.bpp == 4) width = (s->img_x + 1) >> 1;
else if (info.bpp == 8) width = s->img_x;
else { STBI_FREE(out); return stbi__errpuc("bad bpp", "Corrupt BMP"); }
pad = (-width)&3;
if (info.bpp == 1) {
for (j=0; j < (int) s->img_y; ++j) {
int bit_offset = 7, v = stbi__get8(s);
for (i=0; i < (int) s->img_x; ++i) {
int color = (v>>bit_offset)&0x1;
out[z++] = pal[color][0];
out[z++] = pal[color][1];
out[z++] = pal[color][2];
if (target == 4) out[z++] = 255;
if (i+1 == (int) s->img_x) break;
if((--bit_offset) < 0) {
bit_offset = 7;
v = stbi__get8(s);
}
}
stbi__skip(s, pad);
}
} else {
for (j=0; j < (int) s->img_y; ++j) {
for (i=0; i < (int) s->img_x; i += 2) {
int v=stbi__get8(s),v2=0;
if (info.bpp == 4) {
v2 = v & 15;
v >>= 4;
}
out[z++] = pal[v][0];
out[z++] = pal[v][1];
out[z++] = pal[v][2];
if (target == 4) out[z++] = 255;
if (i+1 == (int) s->img_x) break;
v = (info.bpp == 8) ? stbi__get8(s) : v2;
out[z++] = pal[v][0];
out[z++] = pal[v][1];
out[z++] = pal[v][2];
if (target == 4) out[z++] = 255;
}
stbi__skip(s, pad);
}
}
} else {
int rshift=0,gshift=0,bshift=0,ashift=0,rcount=0,gcount=0,bcount=0,acount=0;
int z = 0;
int easy=0;
stbi__skip(s, info.offset - 14 - info.hsz);
if (info.bpp == 24) width = 3 * s->img_x;
else if (info.bpp == 16) width = 2*s->img_x;
else /* bpp = 32 and pad = 0 */ width=0;
pad = (-width) & 3;
if (info.bpp == 24) {
easy = 1;
} else if (info.bpp == 32) {
if (mb == 0xff && mg == 0xff00 && mr == 0x00ff0000 && ma == 0xff000000)
easy = 2;
}
if (!easy) {
if (!mr || !mg || !mb) { STBI_FREE(out); return stbi__errpuc("bad masks", "Corrupt BMP"); }
// right shift amt to put high bit in position #7
rshift = stbi__high_bit(mr)-7; rcount = stbi__bitcount(mr);
gshift = stbi__high_bit(mg)-7; gcount = stbi__bitcount(mg);
bshift = stbi__high_bit(mb)-7; bcount = stbi__bitcount(mb);
ashift = stbi__high_bit(ma)-7; acount = stbi__bitcount(ma);
}
for (j=0; j < (int) s->img_y; ++j) {
if (easy) {
for (i=0; i < (int) s->img_x; ++i) {
unsigned char a;
out[z+2] = stbi__get8(s);
out[z+1] = stbi__get8(s);
out[z+0] = stbi__get8(s);
z += 3;
a = (easy == 2 ? stbi__get8(s) : 255);
all_a |= a;
if (target == 4) out[z++] = a;
}
} else {
int bpp = info.bpp;
for (i=0; i < (int) s->img_x; ++i) {
stbi__uint32 v = (bpp == 16 ? (stbi__uint32) stbi__get16le(s) : stbi__get32le(s));
unsigned int a;
out[z++] = STBI__BYTECAST(stbi__shiftsigned(v & mr, rshift, rcount));
out[z++] = STBI__BYTECAST(stbi__shiftsigned(v & mg, gshift, gcount));
out[z++] = STBI__BYTECAST(stbi__shiftsigned(v & mb, bshift, bcount));
a = (ma ? stbi__shiftsigned(v & ma, ashift, acount) : 255);
all_a |= a;
if (target == 4) out[z++] = STBI__BYTECAST(a);
}
}
stbi__skip(s, pad);
}
}
// if alpha channel is all 0s, replace with all 255s
if (target == 4 && all_a == 0)
for (i=4*s->img_x*s->img_y-1; i >= 0; i -= 4)
out[i] = 255;
if (flip_vertically) {
stbi_uc t;
for (j=0; j < (int) s->img_y>>1; ++j) {
stbi_uc *p1 = out + j *s->img_x*target;
stbi_uc *p2 = out + (s->img_y-1-j)*s->img_x*target;
for (i=0; i < (int) s->img_x*target; ++i) {
t = p1[i]; p1[i] = p2[i]; p2[i] = t;
}
}
}
if (req_comp && req_comp != target) {
out = stbi__convert_format(out, target, req_comp, s->img_x, s->img_y);
if (out == NULL) return out; // stbi__convert_format frees input on failure
}
*x = s->img_x;
*y = s->img_y;
if (comp) *comp = s->img_n;
return out;
}
#endif
// Targa Truevision - TGA
// by Jonathan Dummer
#ifndef STBI_NO_TGA
// returns STBI_rgb or whatever, 0 on error
static int stbi__tga_get_comp(int bits_per_pixel, int is_grey, int* is_rgb16)
{
// only RGB or RGBA (incl. 16bit) or grey allowed
if (is_rgb16) *is_rgb16 = 0;
switch(bits_per_pixel) {
case 8: return STBI_grey;
case 16: if(is_grey) return STBI_grey_alpha;
// fallthrough
case 15: if(is_rgb16) *is_rgb16 = 1;
return STBI_rgb;
case 24: // fallthrough
case 32: return bits_per_pixel/8;
default: return 0;
}
}
static int stbi__tga_info(stbi__context *s, int *x, int *y, int *comp)
{
int tga_w, tga_h, tga_comp, tga_image_type, tga_bits_per_pixel, tga_colormap_bpp;
int sz, tga_colormap_type;
stbi__get8(s); // discard Offset
tga_colormap_type = stbi__get8(s); // colormap type
if( tga_colormap_type > 1 ) {
stbi__rewind(s);
return 0; // only RGB or indexed allowed
}
tga_image_type = stbi__get8(s); // image type
if ( tga_colormap_type == 1 ) { // colormapped (paletted) image
if (tga_image_type != 1 && tga_image_type != 9) {
stbi__rewind(s);
return 0;
}
stbi__skip(s,4); // skip index of first colormap entry and number of entries
sz = stbi__get8(s); // check bits per palette color entry
if ( (sz != 8) && (sz != 15) && (sz != 16) && (sz != 24) && (sz != 32) ) {
stbi__rewind(s);
return 0;
}
stbi__skip(s,4); // skip image x and y origin
tga_colormap_bpp = sz;
} else { // "normal" image w/o colormap - only RGB or grey allowed, +/- RLE
if ( (tga_image_type != 2) && (tga_image_type != 3) && (tga_image_type != 10) && (tga_image_type != 11) ) {
stbi__rewind(s);
return 0; // only RGB or grey allowed, +/- RLE
}
stbi__skip(s,9); // skip colormap specification and image x/y origin
tga_colormap_bpp = 0;
}
tga_w = stbi__get16le(s);
if( tga_w < 1 ) {
stbi__rewind(s);
return 0; // test width
}
tga_h = stbi__get16le(s);
if( tga_h < 1 ) {
stbi__rewind(s);
return 0; // test height
}
tga_bits_per_pixel = stbi__get8(s); // bits per pixel
stbi__get8(s); // ignore alpha bits
if (tga_colormap_bpp != 0) {
if((tga_bits_per_pixel != 8) && (tga_bits_per_pixel != 16)) {
// when using a colormap, tga_bits_per_pixel is the size of the indexes
// I don't think anything but 8 or 16bit indexes makes sense
stbi__rewind(s);
return 0;
}
tga_comp = stbi__tga_get_comp(tga_colormap_bpp, 0, NULL);
} else {
tga_comp = stbi__tga_get_comp(tga_bits_per_pixel, (tga_image_type == 3) || (tga_image_type == 11), NULL);
}
if(!tga_comp) {
stbi__rewind(s);
return 0;
}
if (x) *x = tga_w;
if (y) *y = tga_h;
if (comp) *comp = tga_comp;
return 1; // seems to have passed everything
}
static int stbi__tga_test(stbi__context *s)
{
int res = 0;
int sz, tga_color_type;
stbi__get8(s); // discard Offset
tga_color_type = stbi__get8(s); // color type
if ( tga_color_type > 1 ) goto errorEnd; // only RGB or indexed allowed
sz = stbi__get8(s); // image type
if ( tga_color_type == 1 ) { // colormapped (paletted) image
if (sz != 1 && sz != 9) goto errorEnd; // colortype 1 demands image type 1 or 9
stbi__skip(s,4); // skip index of first colormap entry and number of entries
sz = stbi__get8(s); // check bits per palette color entry
if ( (sz != 8) && (sz != 15) && (sz != 16) && (sz != 24) && (sz != 32) ) goto errorEnd;
stbi__skip(s,4); // skip image x and y origin
} else { // "normal" image w/o colormap
if ( (sz != 2) && (sz != 3) && (sz != 10) && (sz != 11) ) goto errorEnd; // only RGB or grey allowed, +/- RLE
stbi__skip(s,9); // skip colormap specification and image x/y origin
}
if ( stbi__get16le(s) < 1 ) goto errorEnd; // test width
if ( stbi__get16le(s) < 1 ) goto errorEnd; // test height
sz = stbi__get8(s); // bits per pixel
if ( (tga_color_type == 1) && (sz != 8) && (sz != 16) ) goto errorEnd; // for colormapped images, bpp is size of an index
if ( (sz != 8) && (sz != 15) && (sz != 16) && (sz != 24) && (sz != 32) ) goto errorEnd;
res = 1; // if we got this far, everything's good and we can return 1 instead of 0
errorEnd:
stbi__rewind(s);
return res;
}
// read 16bit value and convert to 24bit RGB
static void stbi__tga_read_rgb16(stbi__context *s, stbi_uc* out)
{
stbi__uint16 px = (stbi__uint16)stbi__get16le(s);
stbi__uint16 fiveBitMask = 31;
// we have 3 channels with 5bits each
int r = (px >> 10) & fiveBitMask;
int g = (px >> 5) & fiveBitMask;
int b = px & fiveBitMask;
// Note that this saves the data in RGB(A) order, so it doesn't need to be swapped later
out[0] = (stbi_uc)((r * 255)/31);
out[1] = (stbi_uc)((g * 255)/31);
out[2] = (stbi_uc)((b * 255)/31);
// some people claim that the most significant bit might be used for alpha
// (possibly if an alpha-bit is set in the "image descriptor byte")
// but that only made 16bit test images completely translucent..
// so let's treat all 15 and 16bit TGAs as RGB with no alpha.
}
static void *stbi__tga_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)
{
// read in the TGA header stuff
int tga_offset = stbi__get8(s);
int tga_indexed = stbi__get8(s);
int tga_image_type = stbi__get8(s);
int tga_is_RLE = 0;
int tga_palette_start = stbi__get16le(s);
int tga_palette_len = stbi__get16le(s);
int tga_palette_bits = stbi__get8(s);
int tga_x_origin = stbi__get16le(s);
int tga_y_origin = stbi__get16le(s);
int tga_width = stbi__get16le(s);
int tga_height = stbi__get16le(s);
int tga_bits_per_pixel = stbi__get8(s);
int tga_comp, tga_rgb16=0;
int tga_inverted = stbi__get8(s);
// int tga_alpha_bits = tga_inverted & 15; // the 4 lowest bits - unused (useless?)
// image data
unsigned char *tga_data;
unsigned char *tga_palette = NULL;
int i, j;
unsigned char raw_data[4] = {0};
int RLE_count = 0;
int RLE_repeating = 0;
int read_next_pixel = 1;
STBI_NOTUSED(ri);
// do a tiny bit of precessing
if ( tga_image_type >= 8 )
{
tga_image_type -= 8;
tga_is_RLE = 1;
}
tga_inverted = 1 - ((tga_inverted >> 5) & 1);
// If I'm paletted, then I'll use the number of bits from the palette
if ( tga_indexed ) tga_comp = stbi__tga_get_comp(tga_palette_bits, 0, &tga_rgb16);
else tga_comp = stbi__tga_get_comp(tga_bits_per_pixel, (tga_image_type == 3), &tga_rgb16);
if(!tga_comp) // shouldn't really happen, stbi__tga_test() should have ensured basic consistency
return stbi__errpuc("bad format", "Can't find out TGA pixelformat");
// tga info
*x = tga_width;
*y = tga_height;
if (comp) *comp = tga_comp;
if (!stbi__mad3sizes_valid(tga_width, tga_height, tga_comp, 0))
return stbi__errpuc("too large", "Corrupt TGA");
tga_data = (unsigned char*)stbi__malloc_mad3(tga_width, tga_height, tga_comp, 0);
if (!tga_data) return stbi__errpuc("outofmem", "Out of memory");
// skip to the data's starting position (offset usually = 0)
stbi__skip(s, tga_offset );
if ( !tga_indexed && !tga_is_RLE && !tga_rgb16 ) {
for (i=0; i < tga_height; ++i) {
int row = tga_inverted ? tga_height -i - 1 : i;
stbi_uc *tga_row = tga_data + row*tga_width*tga_comp;
stbi__getn(s, tga_row, tga_width * tga_comp);
}
} else {
// do I need to load a palette?
if ( tga_indexed)
{
// any data to skip? (offset usually = 0)
stbi__skip(s, tga_palette_start );
// load the palette
tga_palette = (unsigned char*)stbi__malloc_mad2(tga_palette_len, tga_comp, 0);
if (!tga_palette) {
STBI_FREE(tga_data);
return stbi__errpuc("outofmem", "Out of memory");
}
if (tga_rgb16) {
stbi_uc *pal_entry = tga_palette;
STBI_ASSERT(tga_comp == STBI_rgb);
for (i=0; i < tga_palette_len; ++i) {
stbi__tga_read_rgb16(s, pal_entry);
pal_entry += tga_comp;
}
} else if (!stbi__getn(s, tga_palette, tga_palette_len * tga_comp)) {
STBI_FREE(tga_data);
STBI_FREE(tga_palette);
return stbi__errpuc("bad palette", "Corrupt TGA");
}
}
// load the data
for (i=0; i < tga_width * tga_height; ++i)
{
// if I'm in RLE mode, do I need to get a RLE stbi__pngchunk?
if ( tga_is_RLE )
{
if ( RLE_count == 0 )
{
// yep, get the next byte as a RLE command
int RLE_cmd = stbi__get8(s);
RLE_count = 1 + (RLE_cmd & 127);
RLE_repeating = RLE_cmd >> 7;
read_next_pixel = 1;
} else if ( !RLE_repeating )
{
read_next_pixel = 1;
}
} else
{
read_next_pixel = 1;
}
// OK, if I need to read a pixel, do it now
if ( read_next_pixel )
{
// load however much data we did have
if ( tga_indexed )
{
// read in index, then perform the lookup
int pal_idx = (tga_bits_per_pixel == 8) ? stbi__get8(s) : stbi__get16le(s);
if ( pal_idx >= tga_palette_len ) {
// invalid index
pal_idx = 0;
}
pal_idx *= tga_comp;
for (j = 0; j < tga_comp; ++j) {
raw_data[j] = tga_palette[pal_idx+j];
}
} else if(tga_rgb16) {
STBI_ASSERT(tga_comp == STBI_rgb);
stbi__tga_read_rgb16(s, raw_data);
} else {
// read in the data raw
for (j = 0; j < tga_comp; ++j) {
raw_data[j] = stbi__get8(s);
}
}
// clear the reading flag for the next pixel
read_next_pixel = 0;
} // end of reading a pixel
// copy data
for (j = 0; j < tga_comp; ++j)
tga_data[i*tga_comp+j] = raw_data[j];
// in case we're in RLE mode, keep counting down
--RLE_count;
}
// do I need to invert the image?
if ( tga_inverted )
{
for (j = 0; j*2 < tga_height; ++j)
{
int index1 = j * tga_width * tga_comp;
int index2 = (tga_height - 1 - j) * tga_width * tga_comp;
for (i = tga_width * tga_comp; i > 0; --i)
{
unsigned char temp = tga_data[index1];
tga_data[index1] = tga_data[index2];
tga_data[index2] = temp;
++index1;
++index2;
}
}
}
// clear my palette, if I had one
if ( tga_palette != NULL )
{
STBI_FREE( tga_palette );
}
}
// swap RGB - if the source data was RGB16, it already is in the right order
if (tga_comp >= 3 && !tga_rgb16)
{
unsigned char* tga_pixel = tga_data;
for (i=0; i < tga_width * tga_height; ++i)
{
unsigned char temp = tga_pixel[0];
tga_pixel[0] = tga_pixel[2];
tga_pixel[2] = temp;
tga_pixel += tga_comp;
}
}
// convert to target component count
if (req_comp && req_comp != tga_comp)
tga_data = stbi__convert_format(tga_data, tga_comp, req_comp, tga_width, tga_height);
// the things I do to get rid of an error message, and yet keep
// Microsoft's C compilers happy... [8^(
tga_palette_start = tga_palette_len = tga_palette_bits =
tga_x_origin = tga_y_origin = 0;
// OK, done
return tga_data;
}
#endif
// *************************************************************************************************
// Photoshop PSD loader -- PD by Thatcher Ulrich, integration by Nicolas Schulz, tweaked by STB
#ifndef STBI_NO_PSD
static int stbi__psd_test(stbi__context *s)
{
int r = (stbi__get32be(s) == 0x38425053);
stbi__rewind(s);
return r;
}
static int stbi__psd_decode_rle(stbi__context *s, stbi_uc *p, int pixelCount)
{
int count, nleft, len;
count = 0;
while ((nleft = pixelCount - count) > 0) {
len = stbi__get8(s);
if (len == 128) {
// No-op.
} else if (len < 128) {
// Copy next len+1 bytes literally.
len++;
if (len > nleft) return 0; // corrupt data
count += len;
while (len) {
*p = stbi__get8(s);
p += 4;
len--;
}
} else if (len > 128) {
stbi_uc val;
// Next -len+1 bytes in the dest are replicated from next source byte.
// (Interpret len as a negative 8-bit int.)
len = 257 - len;
if (len > nleft) return 0; // corrupt data
val = stbi__get8(s);
count += len;
while (len) {
*p = val;
p += 4;
len--;
}
}
}
return 1;
}
static void *stbi__psd_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri, int bpc)
{
int pixelCount;
int channelCount, compression;
int channel, i;
int bitdepth;
int w,h;
stbi_uc *out;
STBI_NOTUSED(ri);
// Check identifier
if (stbi__get32be(s) != 0x38425053) // "8BPS"
return stbi__errpuc("not PSD", "Corrupt PSD image");
// Check file type version.
if (stbi__get16be(s) != 1)
return stbi__errpuc("wrong version", "Unsupported version of PSD image");
// Skip 6 reserved bytes.
stbi__skip(s, 6 );
// Read the number of channels (R, G, B, A, etc).
channelCount = stbi__get16be(s);
if (channelCount < 0 || channelCount > 16)
return stbi__errpuc("wrong channel count", "Unsupported number of channels in PSD image");
// Read the rows and columns of the image.
h = stbi__get32be(s);
w = stbi__get32be(s);
// Make sure the depth is 8 bits.
bitdepth = stbi__get16be(s);
if (bitdepth != 8 && bitdepth != 16)
return stbi__errpuc("unsupported bit depth", "PSD bit depth is not 8 or 16 bit");
// Make sure the color mode is RGB.
// Valid options are:
// 0: Bitmap
// 1: Grayscale
// 2: Indexed color
// 3: RGB color
// 4: CMYK color
// 7: Multichannel
// 8: Duotone
// 9: Lab color
if (stbi__get16be(s) != 3)
return stbi__errpuc("wrong color format", "PSD is not in RGB color format");
// Skip the Mode Data. (It's the palette for indexed color; other info for other modes.)
stbi__skip(s,stbi__get32be(s) );
// Skip the image resources. (resolution, pen tool paths, etc)
stbi__skip(s, stbi__get32be(s) );
// Skip the reserved data.
stbi__skip(s, stbi__get32be(s) );
// Find out if the data is compressed.
// Known values:
// 0: no compression
// 1: RLE compressed
compression = stbi__get16be(s);
if (compression > 1)
return stbi__errpuc("bad compression", "PSD has an unknown compression format");
// Check size
if (!stbi__mad3sizes_valid(4, w, h, 0))
return stbi__errpuc("too large", "Corrupt PSD");
// Create the destination image.
if (!compression && bitdepth == 16 && bpc == 16) {
out = (stbi_uc *) stbi__malloc_mad3(8, w, h, 0);
ri->bits_per_channel = 16;
} else
out = (stbi_uc *) stbi__malloc(4 * w*h);
if (!out) return stbi__errpuc("outofmem", "Out of memory");
pixelCount = w*h;
// Initialize the data to zero.
//memset( out, 0, pixelCount * 4 );
// Finally, the image data.
if (compression) {
// RLE as used by .PSD and .TIFF
// Loop until you get the number of unpacked bytes you are expecting:
// Read the next source byte into n.
// If n is between 0 and 127 inclusive, copy the next n+1 bytes literally.
// Else if n is between -127 and -1 inclusive, copy the next byte -n+1 times.
// Else if n is 128, noop.
// Endloop
// The RLE-compressed data is preceded by a 2-byte data count for each row in the data,
// which we're going to just skip.
stbi__skip(s, h * channelCount * 2 );
// Read the RLE data by channel.
for (channel = 0; channel < 4; channel++) {
stbi_uc *p;
p = out+channel;
if (channel >= channelCount) {
// Fill this channel with default data.
for (i = 0; i < pixelCount; i++, p += 4)
*p = (channel == 3 ? 255 : 0);
} else {
// Read the RLE data.
if (!stbi__psd_decode_rle(s, p, pixelCount)) {
STBI_FREE(out);
return stbi__errpuc("corrupt", "bad RLE data");
}
}
}
} else {
// We're at the raw image data. It's each channel in order (Red, Green, Blue, Alpha, ...)
// where each channel consists of an 8-bit (or 16-bit) value for each pixel in the image.
// Read the data by channel.
for (channel = 0; channel < 4; channel++) {
if (channel >= channelCount) {
// Fill this channel with default data.
if (bitdepth == 16 && bpc == 16) {
stbi__uint16 *q = ((stbi__uint16 *) out) + channel;
stbi__uint16 val = channel == 3 ? 65535 : 0;
for (i = 0; i < pixelCount; i++, q += 4)
*q = val;
} else {
stbi_uc *p = out+channel;
stbi_uc val = channel == 3 ? 255 : 0;
for (i = 0; i < pixelCount; i++, p += 4)
*p = val;
}
} else {
if (ri->bits_per_channel == 16) { // output bpc
stbi__uint16 *q = ((stbi__uint16 *) out) + channel;
for (i = 0; i < pixelCount; i++, q += 4)
*q = (stbi__uint16) stbi__get16be(s);
} else {
stbi_uc *p = out+channel;
if (bitdepth == 16) { // input bpc
for (i = 0; i < pixelCount; i++, p += 4)
*p = (stbi_uc) (stbi__get16be(s) >> 8);
} else {
for (i = 0; i < pixelCount; i++, p += 4)
*p = stbi__get8(s);
}
}
}
}
}
// remove weird white matte from PSD
if (channelCount >= 4) {
if (ri->bits_per_channel == 16) {
for (i=0; i < w*h; ++i) {
stbi__uint16 *pixel = (stbi__uint16 *) out + 4*i;
if (pixel[3] != 0 && pixel[3] != 65535) {
float a = pixel[3] / 65535.0f;
float ra = 1.0f / a;
float inv_a = 65535.0f * (1 - ra);
pixel[0] = (stbi__uint16) (pixel[0]*ra + inv_a);
pixel[1] = (stbi__uint16) (pixel[1]*ra + inv_a);
pixel[2] = (stbi__uint16) (pixel[2]*ra + inv_a);
}
}
} else {
for (i=0; i < w*h; ++i) {
unsigned char *pixel = out + 4*i;
if (pixel[3] != 0 && pixel[3] != 255) {
float a = pixel[3] / 255.0f;
float ra = 1.0f / a;
float inv_a = 255.0f * (1 - ra);
pixel[0] = (unsigned char) (pixel[0]*ra + inv_a);
pixel[1] = (unsigned char) (pixel[1]*ra + inv_a);
pixel[2] = (unsigned char) (pixel[2]*ra + inv_a);
}
}
}
}
// convert to desired output format
if (req_comp && req_comp != 4) {
if (ri->bits_per_channel == 16)
out = (stbi_uc *) stbi__convert_format16((stbi__uint16 *) out, 4, req_comp, w, h);
else
out = stbi__convert_format(out, 4, req_comp, w, h);
if (out == NULL) return out; // stbi__convert_format frees input on failure
}
if (comp) *comp = 4;
*y = h;
*x = w;
return out;
}
#endif
// *************************************************************************************************
// Softimage PIC loader
// by Tom Seddon
//
// See http://softimage.wiki.softimage.com/index.php/INFO:_PIC_file_format
// See http://ozviz.wasp.uwa.edu.au/~pbourke/dataformats/softimagepic/
#ifndef STBI_NO_PIC
static int stbi__pic_is4(stbi__context *s,const char *str)
{
int i;
for (i=0; i<4; ++i)
if (stbi__get8(s) != (stbi_uc)str[i])
return 0;
return 1;
}
static int stbi__pic_test_core(stbi__context *s)
{
int i;
if (!stbi__pic_is4(s,"\x53\x80\xF6\x34"))
return 0;
for(i=0;i<84;++i)
stbi__get8(s);
if (!stbi__pic_is4(s,"PICT"))
return 0;
return 1;
}
typedef struct
{
stbi_uc size,type,channel;
} stbi__pic_packet;
static stbi_uc *stbi__readval(stbi__context *s, int channel, stbi_uc *dest)
{
int mask=0x80, i;
for (i=0; i<4; ++i, mask>>=1) {
if (channel & mask) {
if (stbi__at_eof(s)) return stbi__errpuc("bad file","PIC file too short");
dest[i]=stbi__get8(s);
}
}
return dest;
}
static void stbi__copyval(int channel,stbi_uc *dest,const stbi_uc *src)
{
int mask=0x80,i;
for (i=0;i<4; ++i, mask>>=1)
if (channel&mask)
dest[i]=src[i];
}
static stbi_uc *stbi__pic_load_core(stbi__context *s,int width,int height,int *comp, stbi_uc *result)
{
int act_comp=0,num_packets=0,y,chained;
stbi__pic_packet packets[10];
// this will (should...) cater for even some bizarre stuff like having data
// for the same channel in multiple packets.
do {
stbi__pic_packet *packet;
if (num_packets==sizeof(packets)/sizeof(packets[0]))
return stbi__errpuc("bad format","too many packets");
packet = &packets[num_packets++];
chained = stbi__get8(s);
packet->size = stbi__get8(s);
packet->type = stbi__get8(s);
packet->channel = stbi__get8(s);
act_comp |= packet->channel;
if (stbi__at_eof(s)) return stbi__errpuc("bad file","file too short (reading packets)");
if (packet->size != 8) return stbi__errpuc("bad format","packet isn't 8bpp");
} while (chained);
*comp = (act_comp & 0x10 ? 4 : 3); // has alpha channel?
for(y=0; y<height; ++y) {
int packet_idx;
for(packet_idx=0; packet_idx < num_packets; ++packet_idx) {
stbi__pic_packet *packet = &packets[packet_idx];
stbi_uc *dest = result+y*width*4;
switch (packet->type) {
default:
return stbi__errpuc("bad format","packet has bad compression type");
case 0: {//uncompressed
int x;
for(x=0;x<width;++x, dest+=4)
if (!stbi__readval(s,packet->channel,dest))
return 0;
break;
}
case 1://Pure RLE
{
int left=width, i;
while (left>0) {
stbi_uc count,value[4];
count=stbi__get8(s);
if (stbi__at_eof(s)) return stbi__errpuc("bad file","file too short (pure read count)");
if (count > left)
count = (stbi_uc) left;
if (!stbi__readval(s,packet->channel,value)) return 0;
for(i=0; i<count; ++i,dest+=4)
stbi__copyval(packet->channel,dest,value);
left -= count;
}
}
break;
case 2: {//Mixed RLE
int left=width;
while (left>0) {
int count = stbi__get8(s), i;
if (stbi__at_eof(s)) return stbi__errpuc("bad file","file too short (mixed read count)");
if (count >= 128) { // Repeated
stbi_uc value[4];
if (count==128)
count = stbi__get16be(s);
else
count -= 127;
if (count > left)
return stbi__errpuc("bad file","scanline overrun");
if (!stbi__readval(s,packet->channel,value))
return 0;
for(i=0;i<count;++i, dest += 4)
stbi__copyval(packet->channel,dest,value);
} else { // Raw
++count;
if (count>left) return stbi__errpuc("bad file","scanline overrun");
for(i=0;i<count;++i, dest+=4)
if (!stbi__readval(s,packet->channel,dest))
return 0;
}
left-=count;
}
break;
}
}
}
}
return result;
}
static void *stbi__pic_load(stbi__context *s,int *px,int *py,int *comp,int req_comp, stbi__result_info *ri)
{
stbi_uc *result;
int i, x,y, internal_comp;
STBI_NOTUSED(ri);
if (!comp) comp = &internal_comp;
for (i=0; i<92; ++i)
stbi__get8(s);
x = stbi__get16be(s);
y = stbi__get16be(s);
if (stbi__at_eof(s)) return stbi__errpuc("bad file","file too short (pic header)");
if (!stbi__mad3sizes_valid(x, y, 4, 0)) return stbi__errpuc("too large", "PIC image too large to decode");
stbi__get32be(s); //skip `ratio'
stbi__get16be(s); //skip `fields'
stbi__get16be(s); //skip `pad'
// intermediate buffer is RGBA
result = (stbi_uc *) stbi__malloc_mad3(x, y, 4, 0);
memset(result, 0xff, x*y*4);
if (!stbi__pic_load_core(s,x,y,comp, result)) {
STBI_FREE(result);
result=0;
}
*px = x;
*py = y;
if (req_comp == 0) req_comp = *comp;
result=stbi__convert_format(result,4,req_comp,x,y);
return result;
}
static int stbi__pic_test(stbi__context *s)
{
int r = stbi__pic_test_core(s);
stbi__rewind(s);
return r;
}
#endif
// *************************************************************************************************
// GIF loader -- public domain by Jean-Marc Lienher -- simplified/shrunk by stb
#ifndef STBI_NO_GIF
typedef struct
{
stbi__int16 prefix;
stbi_uc first;
stbi_uc suffix;
} stbi__gif_lzw;
typedef struct
{
int w,h;
stbi_uc *out; // output buffer (always 4 components)
stbi_uc *background; // The current "background" as far as a gif is concerned
stbi_uc *history;
int flags, bgindex, ratio, transparent, eflags;
stbi_uc pal[256][4];
stbi_uc lpal[256][4];
stbi__gif_lzw codes[8192];
stbi_uc *color_table;
int parse, step;
int lflags;
int start_x, start_y;
int max_x, max_y;
int cur_x, cur_y;
int line_size;
int delay;
} stbi__gif;
static int stbi__gif_test_raw(stbi__context *s)
{
int sz;
if (stbi__get8(s) != 'G' || stbi__get8(s) != 'I' || stbi__get8(s) != 'F' || stbi__get8(s) != '8') return 0;
sz = stbi__get8(s);
if (sz != '9' && sz != '7') return 0;
if (stbi__get8(s) != 'a') return 0;
return 1;
}
static int stbi__gif_test(stbi__context *s)
{
int r = stbi__gif_test_raw(s);
stbi__rewind(s);
return r;
}
static void stbi__gif_parse_colortable(stbi__context *s, stbi_uc pal[256][4], int num_entries, int transp)
{
int i;
for (i=0; i < num_entries; ++i) {
pal[i][2] = stbi__get8(s);
pal[i][1] = stbi__get8(s);
pal[i][0] = stbi__get8(s);
pal[i][3] = transp == i ? 0 : 255;
}
}
static int stbi__gif_header(stbi__context *s, stbi__gif *g, int *comp, int is_info)
{
stbi_uc version;
if (stbi__get8(s) != 'G' || stbi__get8(s) != 'I' || stbi__get8(s) != 'F' || stbi__get8(s) != '8')
return stbi__err("not GIF", "Corrupt GIF");
version = stbi__get8(s);
if (version != '7' && version != '9') return stbi__err("not GIF", "Corrupt GIF");
if (stbi__get8(s) != 'a') return stbi__err("not GIF", "Corrupt GIF");
stbi__g_failure_reason = "";
g->w = stbi__get16le(s);
g->h = stbi__get16le(s);
g->flags = stbi__get8(s);
g->bgindex = stbi__get8(s);
g->ratio = stbi__get8(s);
g->transparent = -1;
if (comp != 0) *comp = 4; // can't actually tell whether it's 3 or 4 until we parse the comments
if (is_info) return 1;
if (g->flags & 0x80)
stbi__gif_parse_colortable(s,g->pal, 2 << (g->flags & 7), -1);
return 1;
}
static int stbi__gif_info_raw(stbi__context *s, int *x, int *y, int *comp)
{
stbi__gif* g = (stbi__gif*) stbi__malloc(sizeof(stbi__gif));
if (!stbi__gif_header(s, g, comp, 1)) {
STBI_FREE(g);
stbi__rewind( s );
return 0;
}
if (x) *x = g->w;
if (y) *y = g->h;
STBI_FREE(g);
return 1;
}
static void stbi__out_gif_code(stbi__gif *g, stbi__uint16 code)
{
stbi_uc *p, *c;
int idx;
// recurse to decode the prefixes, since the linked-list is backwards,
// and working backwards through an interleaved image would be nasty
if (g->codes[code].prefix >= 0)
stbi__out_gif_code(g, g->codes[code].prefix);
if (g->cur_y >= g->max_y) return;
idx = g->cur_x + g->cur_y;
p = &g->out[idx];
g->history[idx / 4] = 1;
c = &g->color_table[g->codes[code].suffix * 4];
if (c[3] > 128) { // don't render transparent pixels;
p[0] = c[2];
p[1] = c[1];
p[2] = c[0];
p[3] = c[3];
}
g->cur_x += 4;
if (g->cur_x >= g->max_x) {
g->cur_x = g->start_x;
g->cur_y += g->step;
while (g->cur_y >= g->max_y && g->parse > 0) {
g->step = (1 << g->parse) * g->line_size;
g->cur_y = g->start_y + (g->step >> 1);
--g->parse;
}
}
}
static stbi_uc *stbi__process_gif_raster(stbi__context *s, stbi__gif *g)
{
stbi_uc lzw_cs;
stbi__int32 len, init_code;
stbi__uint32 first;
stbi__int32 codesize, codemask, avail, oldcode, bits, valid_bits, clear;
stbi__gif_lzw *p;
lzw_cs = stbi__get8(s);
if (lzw_cs > 12) return NULL;
clear = 1 << lzw_cs;
first = 1;
codesize = lzw_cs + 1;
codemask = (1 << codesize) - 1;
bits = 0;
valid_bits = 0;
for (init_code = 0; init_code < clear; init_code++) {
g->codes[init_code].prefix = -1;
g->codes[init_code].first = (stbi_uc) init_code;
g->codes[init_code].suffix = (stbi_uc) init_code;
}
// support no starting clear code
avail = clear+2;
oldcode = -1;
len = 0;
for(;;) {
if (valid_bits < codesize) {
if (len == 0) {
len = stbi__get8(s); // start new block
if (len == 0)
return g->out;
}
--len;
bits |= (stbi__int32) stbi__get8(s) << valid_bits;
valid_bits += 8;
} else {
stbi__int32 code = bits & codemask;
bits >>= codesize;
valid_bits -= codesize;
// @OPTIMIZE: is there some way we can accelerate the non-clear path?
if (code == clear) { // clear code
codesize = lzw_cs + 1;
codemask = (1 << codesize) - 1;
avail = clear + 2;
oldcode = -1;
first = 0;
} else if (code == clear + 1) { // end of stream code
stbi__skip(s, len);
while ((len = stbi__get8(s)) > 0)
stbi__skip(s,len);
return g->out;
} else if (code <= avail) {
if (first) {
return stbi__errpuc("no clear code", "Corrupt GIF");
}
if (oldcode >= 0) {
p = &g->codes[avail++];
if (avail > 8192) {
return stbi__errpuc("too many codes", "Corrupt GIF");
}
p->prefix = (stbi__int16) oldcode;
p->first = g->codes[oldcode].first;
p->suffix = (code == avail) ? p->first : g->codes[code].first;
} else if (code == avail)
return stbi__errpuc("illegal code in raster", "Corrupt GIF");
stbi__out_gif_code(g, (stbi__uint16) code);
if ((avail & codemask) == 0 && avail <= 0x0FFF) {
codesize++;
codemask = (1 << codesize) - 1;
}
oldcode = code;
} else {
return stbi__errpuc("illegal code in raster", "Corrupt GIF");
}
}
}
}
// this function is designed to support animated gifs, although stb_image doesn't support it
// two back is the image from two frames ago, used for a very specific disposal format
static stbi_uc *stbi__gif_load_next(stbi__context *s, stbi__gif *g, int *comp, int req_comp, stbi_uc *two_back)
{
int dispose;
int first_frame;
int pi;
int pcount;
STBI_NOTUSED(req_comp);
// on first frame, any non-written pixels get the background colour (non-transparent)
first_frame = 0;
if (g->out == 0) {
if (!stbi__gif_header(s, g, comp,0)) return 0; // stbi__g_failure_reason set by stbi__gif_header
if (!stbi__mad3sizes_valid(4, g->w, g->h, 0))
return stbi__errpuc("too large", "GIF image is too large");
pcount = g->w * g->h;
g->out = (stbi_uc *) stbi__malloc(4 * pcount);
g->background = (stbi_uc *) stbi__malloc(4 * pcount);
g->history = (stbi_uc *) stbi__malloc(pcount);
if (!g->out || !g->background || !g->history)
return stbi__errpuc("outofmem", "Out of memory");
// image is treated as "transparent" at the start - ie, nothing overwrites the current background;
// background colour is only used for pixels that are not rendered first frame, after that "background"
// color refers to the color that was there the previous frame.
memset(g->out, 0x00, 4 * pcount);
memset(g->background, 0x00, 4 * pcount); // state of the background (starts transparent)
memset(g->history, 0x00, pcount); // pixels that were affected previous frame
first_frame = 1;
} else {
// second frame - how do we dispoase of the previous one?
dispose = (g->eflags & 0x1C) >> 2;
pcount = g->w * g->h;
if ((dispose == 3) && (two_back == 0)) {
dispose = 2; // if I don't have an image to revert back to, default to the old background
}
if (dispose == 3) { // use previous graphic
for (pi = 0; pi < pcount; ++pi) {
if (g->history[pi]) {
memcpy( &g->out[pi * 4], &two_back[pi * 4], 4 );
}
}
} else if (dispose == 2) {
// restore what was changed last frame to background before that frame;
for (pi = 0; pi < pcount; ++pi) {
if (g->history[pi]) {
memcpy( &g->out[pi * 4], &g->background[pi * 4], 4 );
}
}
} else {
// This is a non-disposal case eithe way, so just
// leave the pixels as is, and they will become the new background
// 1: do not dispose
// 0: not specified.
}
// background is what out is after the undoing of the previou frame;
memcpy( g->background, g->out, 4 * g->w * g->h );
}
// clear my history;
memset( g->history, 0x00, g->w * g->h ); // pixels that were affected previous frame
for (;;) {
int tag = stbi__get8(s);
switch (tag) {
case 0x2C: /* Image Descriptor */
{
stbi__int32 x, y, w, h;
stbi_uc *o;
x = stbi__get16le(s);
y = stbi__get16le(s);
w = stbi__get16le(s);
h = stbi__get16le(s);
if (((x + w) > (g->w)) || ((y + h) > (g->h)))
return stbi__errpuc("bad Image Descriptor", "Corrupt GIF");
g->line_size = g->w * 4;
g->start_x = x * 4;
g->start_y = y * g->line_size;
g->max_x = g->start_x + w * 4;
g->max_y = g->start_y + h * g->line_size;
g->cur_x = g->start_x;
g->cur_y = g->start_y;
// if the width of the specified rectangle is 0, that means
// we may not see *any* pixels or the image is malformed;
// to make sure this is caught, move the current y down to
// max_y (which is what out_gif_code checks).
if (w == 0)
g->cur_y = g->max_y;
g->lflags = stbi__get8(s);
if (g->lflags & 0x40) {
g->step = 8 * g->line_size; // first interlaced spacing
g->parse = 3;
} else {
g->step = g->line_size;
g->parse = 0;
}
if (g->lflags & 0x80) {
stbi__gif_parse_colortable(s,g->lpal, 2 << (g->lflags & 7), g->eflags & 0x01 ? g->transparent : -1);
g->color_table = (stbi_uc *) g->lpal;
} else if (g->flags & 0x80) {
g->color_table = (stbi_uc *) g->pal;
} else
return stbi__errpuc("missing color table", "Corrupt GIF");
o = stbi__process_gif_raster(s, g);
if (!o) return NULL;
// if this was the first frame,
pcount = g->w * g->h;
if (first_frame && (g->bgindex > 0)) {
// if first frame, any pixel not drawn to gets the background color
for (pi = 0; pi < pcount; ++pi) {
if (g->history[pi] == 0) {
g->pal[g->bgindex][3] = 255; // just in case it was made transparent, undo that; It will be reset next frame if need be;
memcpy( &g->out[pi * 4], &g->pal[g->bgindex], 4 );
}
}
}
return o;
}
case 0x21: // Comment Extension.
{
int len;
int ext = stbi__get8(s);
if (ext == 0xF9) { // Graphic Control Extension.
len = stbi__get8(s);
if (len == 4) {
g->eflags = stbi__get8(s);
g->delay = 10 * stbi__get16le(s); // delay - 1/100th of a second, saving as 1/1000ths.
// unset old transparent
if (g->transparent >= 0) {
g->pal[g->transparent][3] = 255;
}
if (g->eflags & 0x01) {
g->transparent = stbi__get8(s);
if (g->transparent >= 0) {
g->pal[g->transparent][3] = 0;
}
} else {
// don't need transparent
stbi__skip(s, 1);
g->transparent = -1;
}
} else {
stbi__skip(s, len);
break;
}
}
while ((len = stbi__get8(s)) != 0) {
stbi__skip(s, len);
}
break;
}
case 0x3B: // gif stream termination code
return (stbi_uc *) s; // using '1' causes warning on some compilers
default:
return stbi__errpuc("unknown code", "Corrupt GIF");
}
}
}
static void *stbi__load_gif_main(stbi__context *s, int **delays, int *x, int *y, int *z, int *comp, int req_comp)
{
if (stbi__gif_test(s)) {
int layers = 0;
stbi_uc *u = 0;
stbi_uc *out = 0;
stbi_uc *two_back = 0;
stbi__gif g;
int stride;
memset(&g, 0, sizeof(g));
if (delays) {
*delays = 0;
}
do {
u = stbi__gif_load_next(s, &g, comp, req_comp, two_back);
if (u == (stbi_uc *) s) u = 0; // end of animated gif marker
if (u) {
*x = g.w;
*y = g.h;
++layers;
stride = g.w * g.h * 4;
if (out) {
out = (stbi_uc*) STBI_REALLOC( out, layers * stride );
if (delays) {
*delays = (int*) STBI_REALLOC( *delays, sizeof(int) * layers );
}
} else {
out = (stbi_uc*)stbi__malloc( layers * stride );
if (delays) {
*delays = (int*) stbi__malloc( layers * sizeof(int) );
}
}
memcpy( out + ((layers - 1) * stride), u, stride );
if (layers >= 2) {
two_back = out - 2 * stride;
}
if (delays) {
(*delays)[layers - 1U] = g.delay;
}
}
} while (u != 0);
// free temp buffer;
STBI_FREE(g.out);
STBI_FREE(g.history);
STBI_FREE(g.background);
// do the final conversion after loading everything;
if (req_comp && req_comp != 4)
out = stbi__convert_format(out, 4, req_comp, layers * g.w, g.h);
*z = layers;
return out;
} else {
return stbi__errpuc("not GIF", "Image was not as a gif type.");
}
}
static void *stbi__gif_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)
{
stbi_uc *u = 0;
stbi__gif g;
memset(&g, 0, sizeof(g));
STBI_NOTUSED(ri);
u = stbi__gif_load_next(s, &g, comp, req_comp, 0);
if (u == (stbi_uc *) s) u = 0; // end of animated gif marker
if (u) {
*x = g.w;
*y = g.h;
// moved conversion to after successful load so that the same
// can be done for multiple frames.
if (req_comp && req_comp != 4)
u = stbi__convert_format(u, 4, req_comp, g.w, g.h);
} else if (g.out) {
// if there was an error and we allocated an image buffer, free it!
STBI_FREE(g.out);
}
// free buffers needed for multiple frame loading;
STBI_FREE(g.history);
STBI_FREE(g.background);
return u;
}
static int stbi__gif_info(stbi__context *s, int *x, int *y, int *comp)
{
return stbi__gif_info_raw(s,x,y,comp);
}
#endif
// *************************************************************************************************
// Radiance RGBE HDR loader
// originally by Nicolas Schulz
#ifndef STBI_NO_HDR
static int stbi__hdr_test_core(stbi__context *s, const char *signature)
{
int i;
for (i=0; signature[i]; ++i)
if (stbi__get8(s) != signature[i])
return 0;
stbi__rewind(s);
return 1;
}
static int stbi__hdr_test(stbi__context* s)
{
int r = stbi__hdr_test_core(s, "#?RADIANCE\n");
stbi__rewind(s);
if(!r) {
r = stbi__hdr_test_core(s, "#?RGBE\n");
stbi__rewind(s);
}
return r;
}
#define STBI__HDR_BUFLEN 1024
static char *stbi__hdr_gettoken(stbi__context *z, char *buffer)
{
int len=0;
char c = '\0';
c = (char) stbi__get8(z);
while (!stbi__at_eof(z) && c != '\n') {
buffer[len++] = c;
if (len == STBI__HDR_BUFLEN-1) {
// flush to end of line
while (!stbi__at_eof(z) && stbi__get8(z) != '\n')
;
break;
}
c = (char) stbi__get8(z);
}
buffer[len] = 0;
return buffer;
}
static void stbi__hdr_convert(float *output, stbi_uc *input, int req_comp)
{
if ( input[3] != 0 ) {
float f1;
// Exponent
f1 = (float) ldexp(1.0f, input[3] - (int)(128 + 8));
if (req_comp <= 2)
output[0] = (input[0] + input[1] + input[2]) * f1 / 3;
else {
output[0] = input[0] * f1;
output[1] = input[1] * f1;
output[2] = input[2] * f1;
}
if (req_comp == 2) output[1] = 1;
if (req_comp == 4) output[3] = 1;
} else {
switch (req_comp) {
case 4: output[3] = 1; /* fallthrough */
case 3: output[0] = output[1] = output[2] = 0;
break;
case 2: output[1] = 1; /* fallthrough */
case 1: output[0] = 0;
break;
}
}
}
static float *stbi__hdr_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)
{
char buffer[STBI__HDR_BUFLEN];
char *token;
int valid = 0;
int width, height;
stbi_uc *scanline;
float *hdr_data;
int len;
unsigned char count, value;
int i, j, k, c1,c2, z;
const char *headerToken;
STBI_NOTUSED(ri);
// Check identifier
headerToken = stbi__hdr_gettoken(s,buffer);
if (strcmp(headerToken, "#?RADIANCE") != 0 && strcmp(headerToken, "#?RGBE") != 0)
return stbi__errpf("not HDR", "Corrupt HDR image");
// Parse header
for(;;) {
token = stbi__hdr_gettoken(s,buffer);
if (token[0] == 0) break;
if (strcmp(token, "FORMAT=32-bit_rle_rgbe") == 0) valid = 1;
}
if (!valid) return stbi__errpf("unsupported format", "Unsupported HDR format");
// Parse width and height
// can't use sscanf() if we're not using stdio!
token = stbi__hdr_gettoken(s,buffer);
if (strncmp(token, "-Y ", 3)) return stbi__errpf("unsupported data layout", "Unsupported HDR format");
token += 3;
height = (int) strtol(token, &token, 10);
while (*token == ' ') ++token;
if (strncmp(token, "+X ", 3)) return stbi__errpf("unsupported data layout", "Unsupported HDR format");
token += 3;
width = (int) strtol(token, NULL, 10);
*x = width;
*y = height;
if (comp) *comp = 3;
if (req_comp == 0) req_comp = 3;
if (!stbi__mad4sizes_valid(width, height, req_comp, sizeof(float), 0))
return stbi__errpf("too large", "HDR image is too large");
// Read data
hdr_data = (float *) stbi__malloc_mad4(width, height, req_comp, sizeof(float), 0);
if (!hdr_data)
return stbi__errpf("outofmem", "Out of memory");
// Load image data
// image data is stored as some number of sca
if ( width < 8 || width >= 32768) {
// Read flat data
for (j=0; j < height; ++j) {
for (i=0; i < width; ++i) {
stbi_uc rgbe[4];
main_decode_loop:
stbi__getn(s, rgbe, 4);
stbi__hdr_convert(hdr_data + j * width * req_comp + i * req_comp, rgbe, req_comp);
}
}
} else {
// Read RLE-encoded data
scanline = NULL;
for (j = 0; j < height; ++j) {
c1 = stbi__get8(s);
c2 = stbi__get8(s);
len = stbi__get8(s);
if (c1 != 2 || c2 != 2 || (len & 0x80)) {
// not run-length encoded, so we have to actually use THIS data as a decoded
// pixel (note this can't be a valid pixel--one of RGB must be >= 128)
stbi_uc rgbe[4];
rgbe[0] = (stbi_uc) c1;
rgbe[1] = (stbi_uc) c2;
rgbe[2] = (stbi_uc) len;
rgbe[3] = (stbi_uc) stbi__get8(s);
stbi__hdr_convert(hdr_data, rgbe, req_comp);
i = 1;
j = 0;
STBI_FREE(scanline);
goto main_decode_loop; // yes, this makes no sense
}
len <<= 8;
len |= stbi__get8(s);
if (len != width) { STBI_FREE(hdr_data); STBI_FREE(scanline); return stbi__errpf("invalid decoded scanline length", "corrupt HDR"); }
if (scanline == NULL) {
scanline = (stbi_uc *) stbi__malloc_mad2(width, 4, 0);
if (!scanline) {
STBI_FREE(hdr_data);
return stbi__errpf("outofmem", "Out of memory");
}
}
for (k = 0; k < 4; ++k) {
int nleft;
i = 0;
while ((nleft = width - i) > 0) {
count = stbi__get8(s);
if (count > 128) {
// Run
value = stbi__get8(s);
count -= 128;
if (count > nleft) { STBI_FREE(hdr_data); STBI_FREE(scanline); return stbi__errpf("corrupt", "bad RLE data in HDR"); }
for (z = 0; z < count; ++z)
scanline[i++ * 4 + k] = value;
} else {
// Dump
if (count > nleft) { STBI_FREE(hdr_data); STBI_FREE(scanline); return stbi__errpf("corrupt", "bad RLE data in HDR"); }
for (z = 0; z < count; ++z)
scanline[i++ * 4 + k] = stbi__get8(s);
}
}
}
for (i=0; i < width; ++i)
stbi__hdr_convert(hdr_data+(j*width + i)*req_comp, scanline + i*4, req_comp);
}
if (scanline)
STBI_FREE(scanline);
}
return hdr_data;
}
static int stbi__hdr_info(stbi__context *s, int *x, int *y, int *comp)
{
char buffer[STBI__HDR_BUFLEN];
char *token;
int valid = 0;
int dummy;
if (!x) x = &dummy;
if (!y) y = &dummy;
if (!comp) comp = &dummy;
if (stbi__hdr_test(s) == 0) {
stbi__rewind( s );
return 0;
}
for(;;) {
token = stbi__hdr_gettoken(s,buffer);
if (token[0] == 0) break;
if (strcmp(token, "FORMAT=32-bit_rle_rgbe") == 0) valid = 1;
}
if (!valid) {
stbi__rewind( s );
return 0;
}
token = stbi__hdr_gettoken(s,buffer);
if (strncmp(token, "-Y ", 3)) {
stbi__rewind( s );
return 0;
}
token += 3;
*y = (int) strtol(token, &token, 10);
while (*token == ' ') ++token;
if (strncmp(token, "+X ", 3)) {
stbi__rewind( s );
return 0;
}
token += 3;
*x = (int) strtol(token, NULL, 10);
*comp = 3;
return 1;
}
#endif // STBI_NO_HDR
#ifndef STBI_NO_BMP
static int stbi__bmp_info(stbi__context *s, int *x, int *y, int *comp)
{
void *p;
stbi__bmp_data info;
info.all_a = 255;
p = stbi__bmp_parse_header(s, &info);
stbi__rewind( s );
if (p == NULL)
return 0;
if (x) *x = s->img_x;
if (y) *y = s->img_y;
if (comp) *comp = info.ma ? 4 : 3;
return 1;
}
#endif
#ifndef STBI_NO_PSD
static int stbi__psd_info(stbi__context *s, int *x, int *y, int *comp)
{
int channelCount, dummy, depth;
if (!x) x = &dummy;
if (!y) y = &dummy;
if (!comp) comp = &dummy;
if (stbi__get32be(s) != 0x38425053) {
stbi__rewind( s );
return 0;
}
if (stbi__get16be(s) != 1) {
stbi__rewind( s );
return 0;
}
stbi__skip(s, 6);
channelCount = stbi__get16be(s);
if (channelCount < 0 || channelCount > 16) {
stbi__rewind( s );
return 0;
}
*y = stbi__get32be(s);
*x = stbi__get32be(s);
depth = stbi__get16be(s);
if (depth != 8 && depth != 16) {
stbi__rewind( s );
return 0;
}
if (stbi__get16be(s) != 3) {
stbi__rewind( s );
return 0;
}
*comp = 4;
return 1;
}
static int stbi__psd_is16(stbi__context *s)
{
int channelCount, depth;
if (stbi__get32be(s) != 0x38425053) {
stbi__rewind( s );
return 0;
}
if (stbi__get16be(s) != 1) {
stbi__rewind( s );
return 0;
}
stbi__skip(s, 6);
channelCount = stbi__get16be(s);
if (channelCount < 0 || channelCount > 16) {
stbi__rewind( s );
return 0;
}
(void) stbi__get32be(s);
(void) stbi__get32be(s);
depth = stbi__get16be(s);
if (depth != 16) {
stbi__rewind( s );
return 0;
}
return 1;
}
#endif
#ifndef STBI_NO_PIC
static int stbi__pic_info(stbi__context *s, int *x, int *y, int *comp)
{
int act_comp=0,num_packets=0,chained,dummy;
stbi__pic_packet packets[10];
if (!x) x = &dummy;
if (!y) y = &dummy;
if (!comp) comp = &dummy;
if (!stbi__pic_is4(s,"\x53\x80\xF6\x34")) {
stbi__rewind(s);
return 0;
}
stbi__skip(s, 88);
*x = stbi__get16be(s);
*y = stbi__get16be(s);
if (stbi__at_eof(s)) {
stbi__rewind( s);
return 0;
}
if ( (*x) != 0 && (1 << 28) / (*x) < (*y)) {
stbi__rewind( s );
return 0;
}
stbi__skip(s, 8);
do {
stbi__pic_packet *packet;
if (num_packets==sizeof(packets)/sizeof(packets[0]))
return 0;
packet = &packets[num_packets++];
chained = stbi__get8(s);
packet->size = stbi__get8(s);
packet->type = stbi__get8(s);
packet->channel = stbi__get8(s);
act_comp |= packet->channel;
if (stbi__at_eof(s)) {
stbi__rewind( s );
return 0;
}
if (packet->size != 8) {
stbi__rewind( s );
return 0;
}
} while (chained);
*comp = (act_comp & 0x10 ? 4 : 3);
return 1;
}
#endif
// *************************************************************************************************
// Portable Gray Map and Portable Pixel Map loader
// by Ken Miller
//
// PGM: http://netpbm.sourceforge.net/doc/pgm.html
// PPM: http://netpbm.sourceforge.net/doc/ppm.html
//
// Known limitations:
// Does not support comments in the header section
// Does not support ASCII image data (formats P2 and P3)
// Does not support 16-bit-per-channel
#ifndef STBI_NO_PNM
static int stbi__pnm_test(stbi__context *s)
{
char p, t;
p = (char) stbi__get8(s);
t = (char) stbi__get8(s);
if (p != 'P' || (t != '5' && t != '6')) {
stbi__rewind( s );
return 0;
}
return 1;
}
static void *stbi__pnm_load(stbi__context *s, int *x, int *y, int *comp, int req_comp, stbi__result_info *ri)
{
stbi_uc *out;
STBI_NOTUSED(ri);
if (!stbi__pnm_info(s, (int *)&s->img_x, (int *)&s->img_y, (int *)&s->img_n))
return 0;
*x = s->img_x;
*y = s->img_y;
if (comp) *comp = s->img_n;
if (!stbi__mad3sizes_valid(s->img_n, s->img_x, s->img_y, 0))
return stbi__errpuc("too large", "PNM too large");
out = (stbi_uc *) stbi__malloc_mad3(s->img_n, s->img_x, s->img_y, 0);
if (!out) return stbi__errpuc("outofmem", "Out of memory");
stbi__getn(s, out, s->img_n * s->img_x * s->img_y);
if (req_comp && req_comp != s->img_n) {
out = stbi__convert_format(out, s->img_n, req_comp, s->img_x, s->img_y);
if (out == NULL) return out; // stbi__convert_format frees input on failure
}
return out;
}
static int stbi__pnm_isspace(char c)
{
return c == ' ' || c == '\t' || c == '\n' || c == '\v' || c == '\f' || c == '\r';
}
static void stbi__pnm_skip_whitespace(stbi__context *s, char *c)
{
for (;;) {
while (!stbi__at_eof(s) && stbi__pnm_isspace(*c))
*c = (char) stbi__get8(s);
if (stbi__at_eof(s) || *c != '#')
break;
while (!stbi__at_eof(s) && *c != '\n' && *c != '\r' )
*c = (char) stbi__get8(s);
}
}
static int stbi__pnm_isdigit(char c)
{
return c >= '0' && c <= '9';
}
static int stbi__pnm_getinteger(stbi__context *s, char *c)
{
int value = 0;
while (!stbi__at_eof(s) && stbi__pnm_isdigit(*c)) {
value = value*10 + (*c - '0');
*c = (char) stbi__get8(s);
}
return value;
}
static int stbi__pnm_info(stbi__context *s, int *x, int *y, int *comp)
{
int maxv, dummy;
char c, p, t;
if (!x) x = &dummy;
if (!y) y = &dummy;
if (!comp) comp = &dummy;
stbi__rewind(s);
// Get identifier
p = (char) stbi__get8(s);
t = (char) stbi__get8(s);
if (p != 'P' || (t != '5' && t != '6')) {
stbi__rewind(s);
return 0;
}
*comp = (t == '6') ? 3 : 1; // '5' is 1-component .pgm; '6' is 3-component .ppm
c = (char) stbi__get8(s);
stbi__pnm_skip_whitespace(s, &c);
*x = stbi__pnm_getinteger(s, &c); // read width
stbi__pnm_skip_whitespace(s, &c);
*y = stbi__pnm_getinteger(s, &c); // read height
stbi__pnm_skip_whitespace(s, &c);
maxv = stbi__pnm_getinteger(s, &c); // read max value
if (maxv > 255)
return stbi__err("max value > 255", "PPM image not 8-bit");
else
return 1;
}
#endif
static int stbi__info_main(stbi__context *s, int *x, int *y, int *comp)
{
#ifndef STBI_NO_JPEG
if (stbi__jpeg_info(s, x, y, comp)) return 1;
#endif
#ifndef STBI_NO_PNG
if (stbi__png_info(s, x, y, comp)) return 1;
#endif
#ifndef STBI_NO_GIF
if (stbi__gif_info(s, x, y, comp)) return 1;
#endif
#ifndef STBI_NO_BMP
if (stbi__bmp_info(s, x, y, comp)) return 1;
#endif
#ifndef STBI_NO_PSD
if (stbi__psd_info(s, x, y, comp)) return 1;
#endif
#ifndef STBI_NO_PIC
if (stbi__pic_info(s, x, y, comp)) return 1;
#endif
#ifndef STBI_NO_PNM
if (stbi__pnm_info(s, x, y, comp)) return 1;
#endif
#ifndef STBI_NO_HDR
if (stbi__hdr_info(s, x, y, comp)) return 1;
#endif
// test tga last because it's a crappy test!
#ifndef STBI_NO_TGA
if (stbi__tga_info(s, x, y, comp))
return 1;
#endif
return stbi__err("unknown image type", "Image not of any known type, or corrupt");
}
static int stbi__is_16_main(stbi__context *s)
{
#ifndef STBI_NO_PNG
if (stbi__png_is16(s)) return 1;
#endif
#ifndef STBI_NO_PSD
if (stbi__psd_is16(s)) return 1;
#endif
return 0;
}
#ifndef STBI_NO_STDIO
STBIDEF int stbi_info(char const *filename, int *x, int *y, int *comp)
{
FILE *f = stbi__fopen(filename, "rb");
int result;
if (!f) return stbi__err("can't fopen", "Unable to open file");
result = stbi_info_from_file(f, x, y, comp);
fclose(f);
return result;
}
STBIDEF int stbi_info_from_file(FILE *f, int *x, int *y, int *comp)
{
int r;
stbi__context s;
long pos = ftell(f);
stbi__start_file(&s, f);
r = stbi__info_main(&s,x,y,comp);
fseek(f,pos,SEEK_SET);
return r;
}
STBIDEF int stbi_is_16_bit(char const *filename)
{
FILE *f = stbi__fopen(filename, "rb");
int result;
if (!f) return stbi__err("can't fopen", "Unable to open file");
result = stbi_is_16_bit_from_file(f);
fclose(f);
return result;
}
STBIDEF int stbi_is_16_bit_from_file(FILE *f)
{
int r;
stbi__context s;
long pos = ftell(f);
stbi__start_file(&s, f);
r = stbi__is_16_main(&s);
fseek(f,pos,SEEK_SET);
return r;
}
#endif // !STBI_NO_STDIO
STBIDEF int stbi_info_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp)
{
stbi__context s;
stbi__start_mem(&s,buffer,len);
return stbi__info_main(&s,x,y,comp);
}
STBIDEF int stbi_info_from_callbacks(stbi_io_callbacks const *c, void *user, int *x, int *y, int *comp)
{
stbi__context s;
stbi__start_callbacks(&s, (stbi_io_callbacks *) c, user);
return stbi__info_main(&s,x,y,comp);
}
STBIDEF int stbi_is_16_bit_from_memory(stbi_uc const *buffer, int len)
{
stbi__context s;
stbi__start_mem(&s,buffer,len);
return stbi__is_16_main(&s);
}
STBIDEF int stbi_is_16_bit_from_callbacks(stbi_io_callbacks const *c, void *user)
{
stbi__context s;
stbi__start_callbacks(&s, (stbi_io_callbacks *) c, user);
return stbi__is_16_main(&s);
}
#endif // STB_IMAGE_IMPLEMENTATION
/*
revision history:
2.20 (2019-02-07) support utf8 filenames in Windows; fix warnings and platform ifdefs
2.19 (2018-02-11) fix warning
2.18 (2018-01-30) fix warnings
2.17 (2018-01-29) change sbti__shiftsigned to avoid clang -O2 bug
1-bit BMP
*_is_16_bit api
avoid warnings
2.16 (2017-07-23) all functions have 16-bit variants;
STBI_NO_STDIO works again;
compilation fixes;
fix rounding in unpremultiply;
optimize vertical flip;
disable raw_len validation;
documentation fixes
2.15 (2017-03-18) fix png-1,2,4 bug; now all Imagenet JPGs decode;
warning fixes; disable run-time SSE detection on gcc;
uniform handling of optional "return" values;
thread-safe initialization of zlib tables
2.14 (2017-03-03) remove deprecated STBI_JPEG_OLD; fixes for Imagenet JPGs
2.13 (2016-11-29) add 16-bit API, only supported for PNG right now
2.12 (2016-04-02) fix typo in 2.11 PSD fix that caused crashes
2.11 (2016-04-02) allocate large structures on the stack
remove white matting for transparent PSD
fix reported channel count for PNG & BMP
re-enable SSE2 in non-gcc 64-bit
support RGB-formatted JPEG
read 16-bit PNGs (only as 8-bit)
2.10 (2016-01-22) avoid warning introduced in 2.09 by STBI_REALLOC_SIZED
2.09 (2016-01-16) allow comments in PNM files
16-bit-per-pixel TGA (not bit-per-component)
info() for TGA could break due to .hdr handling
info() for BMP to shares code instead of sloppy parse
can use STBI_REALLOC_SIZED if allocator doesn't support realloc
code cleanup
2.08 (2015-09-13) fix to 2.07 cleanup, reading RGB PSD as RGBA
2.07 (2015-09-13) fix compiler warnings
partial animated GIF support
limited 16-bpc PSD support
#ifdef unused functions
bug with < 92 byte PIC,PNM,HDR,TGA
2.06 (2015-04-19) fix bug where PSD returns wrong '*comp' value
2.05 (2015-04-19) fix bug in progressive JPEG handling, fix warning
2.04 (2015-04-15) try to re-enable SIMD on MinGW 64-bit
2.03 (2015-04-12) extra corruption checking (mmozeiko)
stbi_set_flip_vertically_on_load (nguillemot)
fix NEON support; fix mingw support
2.02 (2015-01-19) fix incorrect assert, fix warning
2.01 (2015-01-17) fix various warnings; suppress SIMD on gcc 32-bit without -msse2
2.00b (2014-12-25) fix STBI_MALLOC in progressive JPEG
2.00 (2014-12-25) optimize JPG, including x86 SSE2 & NEON SIMD (ryg)
progressive JPEG (stb)
PGM/PPM support (Ken Miller)
STBI_MALLOC,STBI_REALLOC,STBI_FREE
GIF bugfix -- seemingly never worked
STBI_NO_*, STBI_ONLY_*
1.48 (2014-12-14) fix incorrectly-named assert()
1.47 (2014-12-14) 1/2/4-bit PNG support, both direct and paletted (Omar Cornut & stb)
optimize PNG (ryg)
fix bug in interlaced PNG with user-specified channel count (stb)
1.46 (2014-08-26)
fix broken tRNS chunk (colorkey-style transparency) in non-paletted PNG
1.45 (2014-08-16)
fix MSVC-ARM internal compiler error by wrapping malloc
1.44 (2014-08-07)
various warning fixes from Ronny Chevalier
1.43 (2014-07-15)
fix MSVC-only compiler problem in code changed in 1.42
1.42 (2014-07-09)
don't define _CRT_SECURE_NO_WARNINGS (affects user code)
fixes to stbi__cleanup_jpeg path
added STBI_ASSERT to avoid requiring assert.h
1.41 (2014-06-25)
fix search&replace from 1.36 that messed up comments/error messages
1.40 (2014-06-22)
fix gcc struct-initialization warning
1.39 (2014-06-15)
fix to TGA optimization when req_comp != number of components in TGA;
fix to GIF loading because BMP wasn't rewinding (whoops, no GIFs in my test suite)
add support for BMP version 5 (more ignored fields)
1.38 (2014-06-06)
suppress MSVC warnings on integer casts truncating values
fix accidental rename of 'skip' field of I/O
1.37 (2014-06-04)
remove duplicate typedef
1.36 (2014-06-03)
convert to header file single-file library
if de-iphone isn't set, load iphone images color-swapped instead of returning NULL
1.35 (2014-05-27)
various warnings
fix broken STBI_SIMD path
fix bug where stbi_load_from_file no longer left file pointer in correct place
fix broken non-easy path for 32-bit BMP (possibly never used)
TGA optimization by Arseny Kapoulkine
1.34 (unknown)
use STBI_NOTUSED in stbi__resample_row_generic(), fix one more leak in tga failure case
1.33 (2011-07-14)
make stbi_is_hdr work in STBI_NO_HDR (as specified), minor compiler-friendly improvements
1.32 (2011-07-13)
support for "info" function for all supported filetypes (SpartanJ)
1.31 (2011-06-20)
a few more leak fixes, bug in PNG handling (SpartanJ)
1.30 (2011-06-11)
added ability to load files via callbacks to accomidate custom input streams (Ben Wenger)
removed deprecated format-specific test/load functions
removed support for installable file formats (stbi_loader) -- would have been broken for IO callbacks anyway
error cases in bmp and tga give messages and don't leak (Raymond Barbiero, grisha)
fix inefficiency in decoding 32-bit BMP (David Woo)
1.29 (2010-08-16)
various warning fixes from Aurelien Pocheville
1.28 (2010-08-01)
fix bug in GIF palette transparency (SpartanJ)
1.27 (2010-08-01)
cast-to-stbi_uc to fix warnings
1.26 (2010-07-24)
fix bug in file buffering for PNG reported by SpartanJ
1.25 (2010-07-17)
refix trans_data warning (Won Chun)
1.24 (2010-07-12)
perf improvements reading from files on platforms with lock-heavy fgetc()
minor perf improvements for jpeg
deprecated type-specific functions so we'll get feedback if they're needed
attempt to fix trans_data warning (Won Chun)
1.23 fixed bug in iPhone support
1.22 (2010-07-10)
removed image *writing* support
stbi_info support from Jetro Lauha
GIF support from Jean-Marc Lienher
iPhone PNG-extensions from James Brown
warning-fixes from Nicolas Schulz and Janez Zemva (i.stbi__err. Janez (U+017D)emva)
1.21 fix use of 'stbi_uc' in header (reported by jon blow)
1.20 added support for Softimage PIC, by Tom Seddon
1.19 bug in interlaced PNG corruption check (found by ryg)
1.18 (2008-08-02)
fix a threading bug (local mutable static)
1.17 support interlaced PNG
1.16 major bugfix - stbi__convert_format converted one too many pixels
1.15 initialize some fields for thread safety
1.14 fix threadsafe conversion bug
header-file-only version (#define STBI_HEADER_FILE_ONLY before including)
1.13 threadsafe
1.12 const qualifiers in the API
1.11 Support installable IDCT, colorspace conversion routines
1.10 Fixes for 64-bit (don't use "unsigned long")
optimized upsampling by Fabian "ryg" Giesen
1.09 Fix format-conversion for PSD code (bad global variables!)
1.08 Thatcher Ulrich's PSD code integrated by Nicolas Schulz
1.07 attempt to fix C++ warning/errors again
1.06 attempt to fix C++ warning/errors again
1.05 fix TGA loading to return correct *comp and use good luminance calc
1.04 default float alpha is 1, not 255; use 'void *' for stbi_image_free
1.03 bugfixes to STBI_NO_STDIO, STBI_NO_HDR
1.02 support for (subset of) HDR files, float interface for preferred access to them
1.01 fix bug: possible bug in handling right-side up bmps... not sure
fix bug: the stbi__bmp_load() and stbi__tga_load() functions didn't work at all
1.00 interface to zlib that skips zlib header
0.99 correct handling of alpha in palette
0.98 TGA loader by lonesock; dynamically add loaders (untested)
0.97 jpeg errors on too large a file; also catch another malloc failure
0.96 fix detection of invalid v value - particleman@mollyrocket forum
0.95 during header scan, seek to markers in case of padding
0.94 STBI_NO_STDIO to disable stdio usage; rename all #defines the same
0.93 handle jpegtran output; verbose errors
0.92 read 4,8,16,24,32-bit BMP files of several formats
0.91 output 24-bit Windows 3.0 BMP files
0.90 fix a few more warnings; bump version number to approach 1.0
0.61 bugfixes due to Marc LeBlanc, Christopher Lloyd
0.60 fix compiling as c++
0.59 fix warnings: merge Dave Moore's -Wall fixes
0.58 fix bug: zlib uncompressed mode len/nlen was wrong endian
0.57 fix bug: jpg last huffman symbol before marker was >9 bits but less than 16 available
0.56 fix bug: zlib uncompressed mode len vs. nlen
0.55 fix bug: restart_interval not initialized to 0
0.54 allow NULL for 'int *comp'
0.53 fix bug in png 3->4; speedup png decoding
0.52 png handles req_comp=3,4 directly; minor cleanup; jpeg comments
0.51 obey req_comp requests, 1-component jpegs return as 1-component,
on 'test' only check type, not whether we support this variant
0.50 (2006-11-19)
first released version
*/
/*
------------------------------------------------------------------------------
This software is available under 2 licenses -- choose whichever you prefer.
------------------------------------------------------------------------------
ALTERNATIVE A - MIT License
Copyright (c) 2017 Sean Barrett
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.
------------------------------------------------------------------------------
ALTERNATIVE B - Public Domain (www.unlicense.org)
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute this
software, either in source code form or as a compiled binary, for any purpose,
commercial or non-commercial, and by any means.
In jurisdictions that recognize copyright laws, the author or authors of this
software dedicate any and all copyright interest in the software to the public
domain. We make this dedication for the benefit of the public at large and to
the detriment of our heirs and successors. We intend this dedication to be an
overt act of relinquishment in perpetuity of all present and future rights to
this software under copyright law.
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 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.
------------------------------------------------------------------------------
*/
| [
"[email protected]"
] | |
831977f6e1e069be34f3f61490d3a08eeb5a4b64 | 95f69cf7119aad1297e2bf27cbe428622a6b6d2b | /src/sort_err.c | 625e23932294cd4f2440f80a76ca3880ba7cced7 | [] | no_license | Drakauf/ft_ls | 2bf538e5c98f0ae3ac4a1bd19ef15c3c8cbc59b3 | 9aed7b47a261f920a81280ad9b5a1962bb606e6c | refs/heads/master | 2020-04-12T00:47:01.668884 | 2019-01-25T14:48:55 | 2019-01-25T14:48:55 | 162,211,998 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 1,445 | c | /* ************************************************************************** */
/* LE - / */
/* / */
/* sort_err.c .:: .:/ . .:: */
/* +:+:+ +: +: +:+:+ */
/* By: shthevak <[email protected]> +:+ +: +: +:+ */
/* #+# #+ #+ #+# */
/* Created: 2019/01/09 01:52:05 by shthevak #+# ## ## #+# */
/* Updated: 2019/01/09 04:01:12 by shthevak ### #+. /#+ ###.fr */
/* / */
/* / */
/* ************************************************************************** */
#include "../includes/ls.h"
void sort_err(t_list *files, t_list **sorted)
{
t_list *tmp;
if (*sorted == NULL)
{
*sorted = files;
return ;
}
tmp = *sorted;
if (ft_strcmp(tmp->filename, files->filename) >= 0)
{
files->next = tmp;
*sorted = files;
return ;
}
while (tmp->next)
{
if (ft_strcmp(tmp->next->filename, files->filename) >= 0)
{
files->next = tmp->next;
tmp->next = files;
return ;
}
tmp = tmp->next;
}
tmp->next = files;
}
| [
"[email protected]"
] | |
dd3c6363388e7a1698295715942c13bd3be0297a | eb7a1fb1c70fc82be0dfc0245255d5506433d156 | /Microchip/SAME51_DFP/3.2.64/iar/iar/startup_same51g19a.c | fce409e1cd40994120a4a8a02c694a21b76957b3 | [
"Apache-2.0"
] | permissive | muthukrishnankarthik/dev_packs | c03f66ce3f32d34340c8053363121657a0a37474 | 60d97ca66b10c00b3c42430b0cf0b4ae7542f217 | refs/heads/master | 2021-01-06T13:26:53.637757 | 2020-02-10T23:49:35 | 2020-02-10T23:49:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 22,508 | c | /**
* \file
*
* \brief IAR startup file for ATSAME51G19A
*
* Copyright (c) 2019 Microchip Technology Inc.
*
* \license_start
*
* \page License
*
* SPDX-License-Identifier: Apache-2.0
*
* 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.
*
* \license_stop
*
*/
#include "same51g19a.h"
typedef void (*intfunc) (void);
typedef union { intfunc __fun; void * __ptr; } intvec_elem;
void __iar_program_start(void);
int __low_level_init(void);
/* Reset handler */
void Reset_Handler(void);
/* Default empty handler */
void Dummy_Handler(void);
/* Cortex-M4 core handlers */
#pragma weak NonMaskableInt_Handler=Dummy_Handler
#pragma weak HardFault_Handler=Dummy_Handler
#pragma weak MemoryManagement_Handler=Dummy_Handler
#pragma weak BusFault_Handler=Dummy_Handler
#pragma weak UsageFault_Handler=Dummy_Handler
#pragma weak SVCall_Handler=Dummy_Handler
#pragma weak DebugMonitor_Handler=Dummy_Handler
#pragma weak PendSV_Handler=Dummy_Handler
#pragma weak SysTick_Handler=Dummy_Handler
/* Peripherals handlers */
#pragma weak PM_Handler=Dummy_Handler
#pragma weak MCLK_Handler=Dummy_Handler
#pragma weak OSCCTRL_XOSC0_Handler=Dummy_Handler
#pragma weak OSCCTRL_XOSC1_Handler=Dummy_Handler
#pragma weak OSCCTRL_DFLL_Handler=Dummy_Handler
#pragma weak OSCCTRL_DPLL0_Handler=Dummy_Handler
#pragma weak OSCCTRL_DPLL1_Handler=Dummy_Handler
#pragma weak OSC32KCTRL_Handler=Dummy_Handler
#pragma weak SUPC_OTHER_Handler=Dummy_Handler
#pragma weak SUPC_BODDET_Handler=Dummy_Handler
#pragma weak WDT_Handler=Dummy_Handler
#pragma weak RTC_Handler=Dummy_Handler
#pragma weak EIC_EXTINT_0_Handler=Dummy_Handler
#pragma weak EIC_EXTINT_1_Handler=Dummy_Handler
#pragma weak EIC_EXTINT_2_Handler=Dummy_Handler
#pragma weak EIC_EXTINT_3_Handler=Dummy_Handler
#pragma weak EIC_EXTINT_4_Handler=Dummy_Handler
#pragma weak EIC_EXTINT_5_Handler=Dummy_Handler
#pragma weak EIC_EXTINT_6_Handler=Dummy_Handler
#pragma weak EIC_EXTINT_7_Handler=Dummy_Handler
#pragma weak EIC_EXTINT_8_Handler=Dummy_Handler
#pragma weak EIC_EXTINT_9_Handler=Dummy_Handler
#pragma weak EIC_EXTINT_10_Handler=Dummy_Handler
#pragma weak EIC_EXTINT_11_Handler=Dummy_Handler
#pragma weak EIC_EXTINT_12_Handler=Dummy_Handler
#pragma weak EIC_EXTINT_13_Handler=Dummy_Handler
#pragma weak EIC_EXTINT_14_Handler=Dummy_Handler
#pragma weak EIC_EXTINT_15_Handler=Dummy_Handler
#pragma weak FREQM_Handler=Dummy_Handler
#pragma weak NVMCTRL_0_Handler=Dummy_Handler
#pragma weak NVMCTRL_1_Handler=Dummy_Handler
#pragma weak DMAC_0_Handler=Dummy_Handler
#pragma weak DMAC_1_Handler=Dummy_Handler
#pragma weak DMAC_2_Handler=Dummy_Handler
#pragma weak DMAC_3_Handler=Dummy_Handler
#pragma weak DMAC_OTHER_Handler=Dummy_Handler
#pragma weak EVSYS_0_Handler=Dummy_Handler
#pragma weak EVSYS_1_Handler=Dummy_Handler
#pragma weak EVSYS_2_Handler=Dummy_Handler
#pragma weak EVSYS_3_Handler=Dummy_Handler
#pragma weak EVSYS_OTHER_Handler=Dummy_Handler
#pragma weak PAC_Handler=Dummy_Handler
#pragma weak RAMECC_Handler=Dummy_Handler
#pragma weak SERCOM0_0_Handler=Dummy_Handler
#pragma weak SERCOM0_1_Handler=Dummy_Handler
#pragma weak SERCOM0_2_Handler=Dummy_Handler
#pragma weak SERCOM0_OTHER_Handler=Dummy_Handler
#pragma weak SERCOM1_0_Handler=Dummy_Handler
#pragma weak SERCOM1_1_Handler=Dummy_Handler
#pragma weak SERCOM1_2_Handler=Dummy_Handler
#pragma weak SERCOM1_OTHER_Handler=Dummy_Handler
#pragma weak SERCOM2_0_Handler=Dummy_Handler
#pragma weak SERCOM2_1_Handler=Dummy_Handler
#pragma weak SERCOM2_2_Handler=Dummy_Handler
#pragma weak SERCOM2_OTHER_Handler=Dummy_Handler
#pragma weak SERCOM3_0_Handler=Dummy_Handler
#pragma weak SERCOM3_1_Handler=Dummy_Handler
#pragma weak SERCOM3_2_Handler=Dummy_Handler
#pragma weak SERCOM3_OTHER_Handler=Dummy_Handler
#pragma weak SERCOM4_0_Handler=Dummy_Handler
#pragma weak SERCOM4_1_Handler=Dummy_Handler
#pragma weak SERCOM4_2_Handler=Dummy_Handler
#pragma weak SERCOM4_OTHER_Handler=Dummy_Handler
#pragma weak SERCOM5_0_Handler=Dummy_Handler
#pragma weak SERCOM5_1_Handler=Dummy_Handler
#pragma weak SERCOM5_2_Handler=Dummy_Handler
#pragma weak SERCOM5_OTHER_Handler=Dummy_Handler
#pragma weak CAN0_Handler=Dummy_Handler
#pragma weak USB_OTHER_Handler=Dummy_Handler
#pragma weak USB_SOF_HSOF_Handler=Dummy_Handler
#pragma weak USB_TRCPT0_Handler=Dummy_Handler
#pragma weak USB_TRCPT1_Handler=Dummy_Handler
#pragma weak TCC0_OTHER_Handler=Dummy_Handler
#pragma weak TCC0_MC0_Handler=Dummy_Handler
#pragma weak TCC0_MC1_Handler=Dummy_Handler
#pragma weak TCC0_MC2_Handler=Dummy_Handler
#pragma weak TCC0_MC3_Handler=Dummy_Handler
#pragma weak TCC0_MC4_Handler=Dummy_Handler
#pragma weak TCC0_MC5_Handler=Dummy_Handler
#pragma weak TCC1_OTHER_Handler=Dummy_Handler
#pragma weak TCC1_MC0_Handler=Dummy_Handler
#pragma weak TCC1_MC1_Handler=Dummy_Handler
#pragma weak TCC1_MC2_Handler=Dummy_Handler
#pragma weak TCC1_MC3_Handler=Dummy_Handler
#pragma weak TCC2_OTHER_Handler=Dummy_Handler
#pragma weak TCC2_MC0_Handler=Dummy_Handler
#pragma weak TCC2_MC1_Handler=Dummy_Handler
#pragma weak TCC2_MC2_Handler=Dummy_Handler
#pragma weak TC0_Handler=Dummy_Handler
#pragma weak TC1_Handler=Dummy_Handler
#pragma weak TC2_Handler=Dummy_Handler
#pragma weak TC3_Handler=Dummy_Handler
#pragma weak PDEC_OTHER_Handler=Dummy_Handler
#pragma weak PDEC_MC0_Handler=Dummy_Handler
#pragma weak PDEC_MC1_Handler=Dummy_Handler
#pragma weak ADC0_OTHER_Handler=Dummy_Handler
#pragma weak ADC0_RESRDY_Handler=Dummy_Handler
#pragma weak ADC1_OTHER_Handler=Dummy_Handler
#pragma weak ADC1_RESRDY_Handler=Dummy_Handler
#pragma weak AC_Handler=Dummy_Handler
#pragma weak DAC_OTHER_Handler=Dummy_Handler
#pragma weak DAC_EMPTY_0_Handler=Dummy_Handler
#pragma weak DAC_EMPTY_1_Handler=Dummy_Handler
#pragma weak DAC_RESRDY_0_Handler=Dummy_Handler
#pragma weak DAC_RESRDY_1_Handler=Dummy_Handler
#pragma weak PCC_Handler=Dummy_Handler
#pragma weak AES_Handler=Dummy_Handler
#pragma weak TRNG_Handler=Dummy_Handler
#pragma weak ICM_Handler=Dummy_Handler
#pragma weak PUKCC_Handler=Dummy_Handler
#pragma weak QSPI_Handler=Dummy_Handler
#pragma weak SDHC0_Handler=Dummy_Handler
/* Exception Table */
#pragma language = extended
#pragma segment = "CSTACK"
/* The name "__vector_table" has special meaning for C-SPY: */
/* it is where the SP start value is found, and the NVIC vector */
/* table register (VTOR) is initialized to this address if != 0 */
#pragma section = ".intvec"
#pragma location = ".intvec"
const DeviceVectors __vector_table = {
(void*) __sfe("CSTACK"),
.pfnReset_Handler = (void*) Reset_Handler,
.pfnNonMaskableInt_Handler = (void*) NonMaskableInt_Handler,
.pfnHardFault_Handler = (void*) HardFault_Handler,
.pfnMemoryManagement_Handler = (void*) MemoryManagement_Handler,
.pfnBusFault_Handler = (void*) BusFault_Handler,
.pfnUsageFault_Handler = (void*) UsageFault_Handler,
.pvReservedC9 = (void*) (0UL), /* Reserved */
.pvReservedC8 = (void*) (0UL), /* Reserved */
.pvReservedC7 = (void*) (0UL), /* Reserved */
.pvReservedC6 = (void*) (0UL), /* Reserved */
.pfnSVCall_Handler = (void*) SVCall_Handler,
.pfnDebugMonitor_Handler = (void*) DebugMonitor_Handler,
.pvReservedC3 = (void*) (0UL), /* Reserved */
.pfnPendSV_Handler = (void*) PendSV_Handler,
.pfnSysTick_Handler = (void*) SysTick_Handler,
/* Configurable interrupts */
.pfnPM_Handler = (void*) PM_Handler, /* 0 Power Manager */
.pfnMCLK_Handler = (void*) MCLK_Handler, /* 1 Main Clock */
.pfnOSCCTRL_XOSC0_Handler = (void*) OSCCTRL_XOSC0_Handler, /* 2 Oscillators Control */
.pfnOSCCTRL_XOSC1_Handler = (void*) OSCCTRL_XOSC1_Handler, /* 3 Oscillators Control */
.pfnOSCCTRL_DFLL_Handler = (void*) OSCCTRL_DFLL_Handler, /* 4 Oscillators Control */
.pfnOSCCTRL_DPLL0_Handler = (void*) OSCCTRL_DPLL0_Handler, /* 5 Oscillators Control */
.pfnOSCCTRL_DPLL1_Handler = (void*) OSCCTRL_DPLL1_Handler, /* 6 Oscillators Control */
.pfnOSC32KCTRL_Handler = (void*) OSC32KCTRL_Handler, /* 7 32kHz Oscillators Control */
.pfnSUPC_OTHER_Handler = (void*) SUPC_OTHER_Handler, /* 8 Supply Controller */
.pfnSUPC_BODDET_Handler = (void*) SUPC_BODDET_Handler, /* 9 Supply Controller */
.pfnWDT_Handler = (void*) WDT_Handler, /* 10 Watchdog Timer */
.pfnRTC_Handler = (void*) RTC_Handler, /* 11 Real-Time Counter */
.pfnEIC_EXTINT_0_Handler = (void*) EIC_EXTINT_0_Handler, /* 12 External Interrupt Controller */
.pfnEIC_EXTINT_1_Handler = (void*) EIC_EXTINT_1_Handler, /* 13 External Interrupt Controller */
.pfnEIC_EXTINT_2_Handler = (void*) EIC_EXTINT_2_Handler, /* 14 External Interrupt Controller */
.pfnEIC_EXTINT_3_Handler = (void*) EIC_EXTINT_3_Handler, /* 15 External Interrupt Controller */
.pfnEIC_EXTINT_4_Handler = (void*) EIC_EXTINT_4_Handler, /* 16 External Interrupt Controller */
.pfnEIC_EXTINT_5_Handler = (void*) EIC_EXTINT_5_Handler, /* 17 External Interrupt Controller */
.pfnEIC_EXTINT_6_Handler = (void*) EIC_EXTINT_6_Handler, /* 18 External Interrupt Controller */
.pfnEIC_EXTINT_7_Handler = (void*) EIC_EXTINT_7_Handler, /* 19 External Interrupt Controller */
.pfnEIC_EXTINT_8_Handler = (void*) EIC_EXTINT_8_Handler, /* 20 External Interrupt Controller */
.pfnEIC_EXTINT_9_Handler = (void*) EIC_EXTINT_9_Handler, /* 21 External Interrupt Controller */
.pfnEIC_EXTINT_10_Handler = (void*) EIC_EXTINT_10_Handler, /* 22 External Interrupt Controller */
.pfnEIC_EXTINT_11_Handler = (void*) EIC_EXTINT_11_Handler, /* 23 External Interrupt Controller */
.pfnEIC_EXTINT_12_Handler = (void*) EIC_EXTINT_12_Handler, /* 24 External Interrupt Controller */
.pfnEIC_EXTINT_13_Handler = (void*) EIC_EXTINT_13_Handler, /* 25 External Interrupt Controller */
.pfnEIC_EXTINT_14_Handler = (void*) EIC_EXTINT_14_Handler, /* 26 External Interrupt Controller */
.pfnEIC_EXTINT_15_Handler = (void*) EIC_EXTINT_15_Handler, /* 27 External Interrupt Controller */
.pfnFREQM_Handler = (void*) FREQM_Handler, /* 28 Frequency Meter */
.pfnNVMCTRL_0_Handler = (void*) NVMCTRL_0_Handler, /* 29 Non-Volatile Memory Controller */
.pfnNVMCTRL_1_Handler = (void*) NVMCTRL_1_Handler, /* 30 Non-Volatile Memory Controller */
.pfnDMAC_0_Handler = (void*) DMAC_0_Handler, /* 31 Direct Memory Access Controller */
.pfnDMAC_1_Handler = (void*) DMAC_1_Handler, /* 32 Direct Memory Access Controller */
.pfnDMAC_2_Handler = (void*) DMAC_2_Handler, /* 33 Direct Memory Access Controller */
.pfnDMAC_3_Handler = (void*) DMAC_3_Handler, /* 34 Direct Memory Access Controller */
.pfnDMAC_OTHER_Handler = (void*) DMAC_OTHER_Handler, /* 35 Direct Memory Access Controller */
.pfnEVSYS_0_Handler = (void*) EVSYS_0_Handler, /* 36 Event System Interface */
.pfnEVSYS_1_Handler = (void*) EVSYS_1_Handler, /* 37 Event System Interface */
.pfnEVSYS_2_Handler = (void*) EVSYS_2_Handler, /* 38 Event System Interface */
.pfnEVSYS_3_Handler = (void*) EVSYS_3_Handler, /* 39 Event System Interface */
.pfnEVSYS_OTHER_Handler = (void*) EVSYS_OTHER_Handler, /* 40 Event System Interface */
.pfnPAC_Handler = (void*) PAC_Handler, /* 41 Peripheral Access Controller */
.pvReserved42 = (void*) (0UL), /* 42 Reserved */
.pvReserved43 = (void*) (0UL), /* 43 Reserved */
.pvReserved44 = (void*) (0UL), /* 44 Reserved */
.pfnRAMECC_Handler = (void*) RAMECC_Handler, /* 45 RAM ECC */
.pfnSERCOM0_0_Handler = (void*) SERCOM0_0_Handler, /* 46 Serial Communication Interface */
.pfnSERCOM0_1_Handler = (void*) SERCOM0_1_Handler, /* 47 Serial Communication Interface */
.pfnSERCOM0_2_Handler = (void*) SERCOM0_2_Handler, /* 48 Serial Communication Interface */
.pfnSERCOM0_OTHER_Handler = (void*) SERCOM0_OTHER_Handler, /* 49 Serial Communication Interface */
.pfnSERCOM1_0_Handler = (void*) SERCOM1_0_Handler, /* 50 Serial Communication Interface */
.pfnSERCOM1_1_Handler = (void*) SERCOM1_1_Handler, /* 51 Serial Communication Interface */
.pfnSERCOM1_2_Handler = (void*) SERCOM1_2_Handler, /* 52 Serial Communication Interface */
.pfnSERCOM1_OTHER_Handler = (void*) SERCOM1_OTHER_Handler, /* 53 Serial Communication Interface */
.pfnSERCOM2_0_Handler = (void*) SERCOM2_0_Handler, /* 54 Serial Communication Interface */
.pfnSERCOM2_1_Handler = (void*) SERCOM2_1_Handler, /* 55 Serial Communication Interface */
.pfnSERCOM2_2_Handler = (void*) SERCOM2_2_Handler, /* 56 Serial Communication Interface */
.pfnSERCOM2_OTHER_Handler = (void*) SERCOM2_OTHER_Handler, /* 57 Serial Communication Interface */
.pfnSERCOM3_0_Handler = (void*) SERCOM3_0_Handler, /* 58 Serial Communication Interface */
.pfnSERCOM3_1_Handler = (void*) SERCOM3_1_Handler, /* 59 Serial Communication Interface */
.pfnSERCOM3_2_Handler = (void*) SERCOM3_2_Handler, /* 60 Serial Communication Interface */
.pfnSERCOM3_OTHER_Handler = (void*) SERCOM3_OTHER_Handler, /* 61 Serial Communication Interface */
.pfnSERCOM4_0_Handler = (void*) SERCOM4_0_Handler, /* 62 Serial Communication Interface */
.pfnSERCOM4_1_Handler = (void*) SERCOM4_1_Handler, /* 63 Serial Communication Interface */
.pfnSERCOM4_2_Handler = (void*) SERCOM4_2_Handler, /* 64 Serial Communication Interface */
.pfnSERCOM4_OTHER_Handler = (void*) SERCOM4_OTHER_Handler, /* 65 Serial Communication Interface */
.pfnSERCOM5_0_Handler = (void*) SERCOM5_0_Handler, /* 66 Serial Communication Interface */
.pfnSERCOM5_1_Handler = (void*) SERCOM5_1_Handler, /* 67 Serial Communication Interface */
.pfnSERCOM5_2_Handler = (void*) SERCOM5_2_Handler, /* 68 Serial Communication Interface */
.pfnSERCOM5_OTHER_Handler = (void*) SERCOM5_OTHER_Handler, /* 69 Serial Communication Interface */
.pvReserved70 = (void*) (0UL), /* 70 Reserved */
.pvReserved71 = (void*) (0UL), /* 71 Reserved */
.pvReserved72 = (void*) (0UL), /* 72 Reserved */
.pvReserved73 = (void*) (0UL), /* 73 Reserved */
.pvReserved74 = (void*) (0UL), /* 74 Reserved */
.pvReserved75 = (void*) (0UL), /* 75 Reserved */
.pvReserved76 = (void*) (0UL), /* 76 Reserved */
.pvReserved77 = (void*) (0UL), /* 77 Reserved */
.pfnCAN0_Handler = (void*) CAN0_Handler, /* 78 Control Area Network */
.pvReserved79 = (void*) (0UL), /* 79 Reserved */
.pfnUSB_OTHER_Handler = (void*) USB_OTHER_Handler, /* 80 Universal Serial Bus */
.pfnUSB_SOF_HSOF_Handler = (void*) USB_SOF_HSOF_Handler, /* 81 Universal Serial Bus */
.pfnUSB_TRCPT0_Handler = (void*) USB_TRCPT0_Handler, /* 82 Universal Serial Bus */
.pfnUSB_TRCPT1_Handler = (void*) USB_TRCPT1_Handler, /* 83 Universal Serial Bus */
.pvReserved84 = (void*) (0UL), /* 84 Reserved */
.pfnTCC0_OTHER_Handler = (void*) TCC0_OTHER_Handler, /* 85 Timer Counter Control */
.pfnTCC0_MC0_Handler = (void*) TCC0_MC0_Handler, /* 86 Timer Counter Control */
.pfnTCC0_MC1_Handler = (void*) TCC0_MC1_Handler, /* 87 Timer Counter Control */
.pfnTCC0_MC2_Handler = (void*) TCC0_MC2_Handler, /* 88 Timer Counter Control */
.pfnTCC0_MC3_Handler = (void*) TCC0_MC3_Handler, /* 89 Timer Counter Control */
.pfnTCC0_MC4_Handler = (void*) TCC0_MC4_Handler, /* 90 Timer Counter Control */
.pfnTCC0_MC5_Handler = (void*) TCC0_MC5_Handler, /* 91 Timer Counter Control */
.pfnTCC1_OTHER_Handler = (void*) TCC1_OTHER_Handler, /* 92 Timer Counter Control */
.pfnTCC1_MC0_Handler = (void*) TCC1_MC0_Handler, /* 93 Timer Counter Control */
.pfnTCC1_MC1_Handler = (void*) TCC1_MC1_Handler, /* 94 Timer Counter Control */
.pfnTCC1_MC2_Handler = (void*) TCC1_MC2_Handler, /* 95 Timer Counter Control */
.pfnTCC1_MC3_Handler = (void*) TCC1_MC3_Handler, /* 96 Timer Counter Control */
.pfnTCC2_OTHER_Handler = (void*) TCC2_OTHER_Handler, /* 97 Timer Counter Control */
.pfnTCC2_MC0_Handler = (void*) TCC2_MC0_Handler, /* 98 Timer Counter Control */
.pfnTCC2_MC1_Handler = (void*) TCC2_MC1_Handler, /* 99 Timer Counter Control */
.pfnTCC2_MC2_Handler = (void*) TCC2_MC2_Handler, /* 100 Timer Counter Control */
.pvReserved101 = (void*) (0UL), /* 101 Reserved */
.pvReserved102 = (void*) (0UL), /* 102 Reserved */
.pvReserved103 = (void*) (0UL), /* 103 Reserved */
.pvReserved104 = (void*) (0UL), /* 104 Reserved */
.pvReserved105 = (void*) (0UL), /* 105 Reserved */
.pvReserved106 = (void*) (0UL), /* 106 Reserved */
.pfnTC0_Handler = (void*) TC0_Handler, /* 107 Basic Timer Counter */
.pfnTC1_Handler = (void*) TC1_Handler, /* 108 Basic Timer Counter */
.pfnTC2_Handler = (void*) TC2_Handler, /* 109 Basic Timer Counter */
.pfnTC3_Handler = (void*) TC3_Handler, /* 110 Basic Timer Counter */
.pvReserved111 = (void*) (0UL), /* 111 Reserved */
.pvReserved112 = (void*) (0UL), /* 112 Reserved */
.pvReserved113 = (void*) (0UL), /* 113 Reserved */
.pvReserved114 = (void*) (0UL), /* 114 Reserved */
.pfnPDEC_OTHER_Handler = (void*) PDEC_OTHER_Handler, /* 115 Quadrature Decodeur */
.pfnPDEC_MC0_Handler = (void*) PDEC_MC0_Handler, /* 116 Quadrature Decodeur */
.pfnPDEC_MC1_Handler = (void*) PDEC_MC1_Handler, /* 117 Quadrature Decodeur */
.pfnADC0_OTHER_Handler = (void*) ADC0_OTHER_Handler, /* 118 Analog Digital Converter */
.pfnADC0_RESRDY_Handler = (void*) ADC0_RESRDY_Handler, /* 119 Analog Digital Converter */
.pfnADC1_OTHER_Handler = (void*) ADC1_OTHER_Handler, /* 120 Analog Digital Converter */
.pfnADC1_RESRDY_Handler = (void*) ADC1_RESRDY_Handler, /* 121 Analog Digital Converter */
.pfnAC_Handler = (void*) AC_Handler, /* 122 Analog Comparators */
.pfnDAC_OTHER_Handler = (void*) DAC_OTHER_Handler, /* 123 Digital-to-Analog Converter */
.pfnDAC_EMPTY_0_Handler = (void*) DAC_EMPTY_0_Handler, /* 124 Digital-to-Analog Converter */
.pfnDAC_EMPTY_1_Handler = (void*) DAC_EMPTY_1_Handler, /* 125 Digital-to-Analog Converter */
.pfnDAC_RESRDY_0_Handler = (void*) DAC_RESRDY_0_Handler, /* 126 Digital-to-Analog Converter */
.pfnDAC_RESRDY_1_Handler = (void*) DAC_RESRDY_1_Handler, /* 127 Digital-to-Analog Converter */
.pvReserved128 = (void*) (0UL), /* 128 Reserved */
.pfnPCC_Handler = (void*) PCC_Handler, /* 129 Parallel Capture Controller */
.pfnAES_Handler = (void*) AES_Handler, /* 130 Advanced Encryption Standard */
.pfnTRNG_Handler = (void*) TRNG_Handler, /* 131 True Random Generator */
.pfnICM_Handler = (void*) ICM_Handler, /* 132 Integrity Check Monitor */
.pfnPUKCC_Handler = (void*) PUKCC_Handler, /* 133 PUblic-Key Cryptography Controller */
.pfnQSPI_Handler = (void*) QSPI_Handler, /* 134 Quad SPI interface */
.pfnSDHC0_Handler = (void*) SDHC0_Handler /* 135 SD/MMC Host Controller */
};
/**------------------------------------------------------------------------------
* This is the code that gets called on processor reset. To initialize the
* device.
*------------------------------------------------------------------------------*/
int __low_level_init(void)
{
uint32_t *pSrc = __section_begin(".intvec");
SCB->VTOR = ((uint32_t) pSrc & SCB_VTOR_TBLOFF_Msk);
return 1; /* if return 0, the data sections will not be initialized */
}
/**------------------------------------------------------------------------------
* This is the code that gets called on processor reset. To initialize the
* device.
*------------------------------------------------------------------------------*/
void Reset_Handler(void)
{
__iar_program_start();
}
/**
* \brief Default interrupt handler for unused IRQs.
*/
void Dummy_Handler(void)
{
while (1) {
}
}
| [
"[email protected]"
] | |
3657694a54da284d3edbf25e7c10cf300bd67ba7 | e1305e88e6962f7936ab806fcc37bc4926ed4a1c | /webpage/libcs50/webpage.h | 1e483d667d44be3ee299960a6a4efe97fbf1ae6a | [] | no_license | Dartmouth-CS50-Winter2020/example-public | 3bf71a76370718988071b7d32155a8dd50675d99 | 15f23445bb84455da0cb5354e3395b7f694c2d9e | refs/heads/master | 2020-09-30T05:52:00.849862 | 2020-02-21T04:23:42 | 2020-02-21T04:23:42 | 227,220,854 | 1 | 2 | null | null | null | null | UTF-8 | C | false | false | 6,698 | h | /*
* webpage - utility functions for downloading, saving, and loading web pages
*
* Ira Ray Jenkins - April 2014
*
* Updated by David Kotz - April 2016, July 2017, April 2019
* Updated by Temi Prioleau, January 2020
*
*/
#ifndef __WEBPAGE_H
#define __WEBPAGE_H
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
/***********************************************************************/
/* webpage_t: opaque struct to represent a web page, and its contents.
*/
typedef struct webpage webpage_t;
/* getter methods */
int webpage_getDepth(const webpage_t *page);
char *webpage_getURL(const webpage_t *page);
char *webpage_getHTML(const webpage_t *page);
/**************** webpage_new ****************/
/* Allocate and initialize a new webpage_t structure.
* Do NOT fetch the html from url; instead, the
* caller can fetch it later with webpage_fetch().
* Parameters:
* url must be a non-null pointer to malloc'd memory.
* depth must be non-negative.
* html may be null; if not, must point to malloc'd memory.
* The pointers url and html are copied, but their strings are NOT copied.
* They will later be free'd by webpage_delete.
*
* Returns NULL on any error.
*/
webpage_t *webpage_new(char *url, const int depth, char *html);
/**************** webpage_delete ****************/
/* Delete a webpage_t structure created by webpage_new().
* This function may be called from something like bag_delete().
* This function calls free() on both the url and the html, if not NULL.
*/
void webpage_delete(void *data);
/***************** webpage_fetch ******************************/
/* retrieve HTML from page->url, store into page->html
* @page: the webpage struct containing the url to fetch
*
* Returns true if the fetch was successful; otherwise, false.
* If the fetch succeeded, page->html will contain the content retrieved.
* Parameter 'page' should have been allocated by the caller,
* but the page->html pointer is expected to be NULL.
* If this function is successful, a new, null-terminated character
* buffer will be allocated as page->html. The caller must later free this
* memory, typically by calling webpage_delete().
*
* Assumptions:
* 1. page has been allocated by caller
* 2. page->url contains the url to fetch
* 3. page->html is NULL at call time
*
* Usage example:
* webpage_t* page = webpage_new("http://www.example.com", 0, NULL);
* if(webpage_fetch(page)) {
* char *html = webpage_getHTML(page);
* printf("Found html: %s\n", html);
* }
* webpage_delete(page);
*
* Returns:
* True: success; caller must later free html via webpage_delete(page).
* False: some error fetching page.
*
* Limitations:
* * can only handle http (not https or other schemes)
* * can only handle URLs of form http://host[:port][/pathname]
* * cannot handle redirects (HTTP 301 or 302 response codes)
*/
bool webpage_fetch(webpage_t *page);
/**************** webpage_getNextWord ***********************************/
/* return the next word from html[pos]
* @page: pointer to the webpage info
* @pos: current position in html buffer; updated to first pos after the word.
*
* Returns pointer to the next word, if any; otherwise, returns NULL.
* The page should already exist (not NULL), and contain non-NULL html.
* The *pos argument should be 0 on the initial call; it will be updated to
* the position after the word returned.
*
* On successful parse of html, return value will point to a newly allocated
* buffer; may be NULL on failed return. The caller is responsible for free'ing
* this memory.
*
* Side effect: the page's html will be compressed to remove white space.
*
* Usage example: (retrieve all words in a page)
* int pos = 0;
* char *result;
*
* while ((result = webpage_getNextWord(page, &pos)) != NULL) {
* printf("Found word: %s\n", result);
* free(result);
* }
*
* Memory contract:
* 1. inbound, webpage points to an existing struct, with existing html;
* 2. return value (if not NULL) points to malloc'd space
* and the caller is responsible for freeing that space.
*/
char *webpage_getNextWord(webpage_t *page, int *pos);
/****************** webpage_getNextURL ***********************************/
/* return the next url from html[pos]
* @page: pointer to the webpage info
* @pos: current position in html buffer; updated to first pos after the URL.
*
* Returns pointer to the next URL, if any; otherwise, returns NULL.
* The page should already exist (not NULL), and contain non-NULL html.
* The *pos argument should be 0 on the initial call; it will be updated to
* the position after the URL returned.
* On successful parse of html, return value will point to a newly allocated
* buffer; may be NULL on failed return. The caller is responsible for free'ing
* this memory.
*
* Side effect: the page's html will be compressed to remove white space.
*
* Usage example: (retrieve all urls in a page)
* int pos = 0;
* char *result;
*
* while ((result = webpage_getNextURL(page, &pos)) != NULL) {
* printf("Found url: %s\n", result);
* free(result);
* }
*
* Memory contract:
* 1. inbound, webpage points to an existing struct, with existing html;
* 2. return value (if not NULL) points to malloc'd space
* and the caller is responsible for freeing that space.
*/
char *webpage_getNextURL(webpage_t *page, int *pos);
/***********************************************************************
* NormalizeURL - attempts to normalize the url
* @url: absolute url to normalize
*
* Returns true on success;
* returns false if the url can't be parsed or normalized.
* returns false if the url refers to a file unlikely to contain html.
*
* Usage example:
* char* url = calloc(100, sizeof(char));
* strcpy(url, "HTTP://UsEr:[email protected]/path/.././file.html?name=val#top");
*
* if (NormalizeURL(url)) {
* // url should be: http://UsEr:[email protected]/file.html?name=val#top
* }
*/
bool NormalizeURL(char *url);
/***********************************************************************
* IsInternalURL -
* @url: absolute url to normalize and verify
*
* Normalizes URL as a side effect.
* Returns true if the URL is valid and 'internal' to our domain,
* returns false otherwise.
*
* "valid" means that NormalizeURL() returns true;
* "internal" means that the url begins with INTERNAL_URL_PREFIX.
*/
bool IsInternalURL(char *url);
// All URLs beginning with this prefix are considered "internal"
static const
char INTERNAL_URL_PREFIX[] = "http://old-www.cs.dartmouth.edu";
#endif // __WEBPAGE_H
| [
"[email protected]"
] | |
b5e8faa29e818334db0e9a3e998e62aa1449b8e4 | 68f8f689fffd4a13eaa2196e43a6c61711a664ee | /ZekeGame/ZekeGame/Engine/PreCompile.h | 656273ed9fbc845b434e903f7bc437652d4fbf0b | [] | no_license | kokoasann/TGame | 475693c6063523cb1a722e1795d2d4a65b0c10be | 4c334cf49c735bd830d066e639fe43f20d0e14c1 | refs/heads/master | 2020-04-04T18:10:31.369011 | 2018-11-06T01:56:02 | 2018-11-06T01:56:02 | 156,152,827 | 0 | 0 | null | 2018-11-06T01:56:03 | 2018-11-05T03:03:12 | C++ | UTF-8 | C | false | false | 1,423 | h | #include "DirectXTK/Inc/Model.h"
#include "DirectXTK/Inc/Effects.h"
#include "DirectXTK/Inc/CommonStates.h"
#include "DirectXTK/Inc/SpriteFont.h"
#include "DirectXTK/Inc/DDSTextureLoader.h"
#include "DirectXTK/Inc/SpriteBatch.h"
#include "DirectXTK\Inc\Audio.h"
#include "btBulletDynamicsCommon.h"
#include "BulletCollision\CollisionDispatch\btGhostObject.h"
#include "Engine/EffekseerRuntime130\src\Effekseer\Effekseer.h"
#include "Engine/EffekseerRuntime130\src\EffekseerRendererDX11\EffekseerRendererDX11.h"
#include "Engine/math/Vector.h"
#include "Engine/math/Matrix.h"
#include "Engine/graphics/GraphicsEngine.h"
#include "Engine/graphics/Sprite/Sprite.h"
#include "Engine/graphics\animation\Animation.h"
#include "Engine/graphics/animation/AnimationClip.h"
#include "Engine/window\Window.h"
#include "Engine/physics/Physics.h"
#include "Engine/HID/Pad.h"
#include "Engine/Engine.h"
#include "Engine/gameObject/GameObject.h"
#include "Engine/GameObject/GameObjectManager.h"
#include "Engine/graphics/Skelton.h"
#include "Engine/graphics/SkinModel.h"
#include "Engine/graphics/SkinModelRender.h"
#include "Engine/graphics/SpriteRender.h"
#include "Engine/graphics/font/CFONT.h"
#include "Engine/graphics/animation/Animation.h"
#include "Engine/graphics/animation/AnimationClip.h"
#include "Engine/graphics/Camera.h"
#include "Engine/graphics/Effect/CEffectEngine.h"
#include "Engine/graphics/Effect/CEffect.h"
| [
"[email protected]"
] | |
e86394b6d6f87bb3937334b721f719db43615d6b | 57d5b82e8677e5db79a342b66891d7688f7c0cc3 | /Include/OpenCore.h | 89ae5d9b71c9f31acf91a7928903e2bfe3735d4f | [
"BSD-3-Clause"
] | permissive | csu-anzai/OpenCorePkg | d47ed07a803868c8c88140841b901d3bdbde5efb | a9b7ad5675e91d187ef006b504553a4044f98f13 | refs/heads/master | 2020-07-19T21:36:00.368536 | 2019-09-04T11:45:51 | 2019-09-04T11:45:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 5,915 | h | /** @file
Copyright (C) 2018, vit9696. All rights reserved.
All rights reserved.
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
#ifndef OPEN_CORE_H
#define OPEN_CORE_H
#include <Library/OcConfigurationLib.h>
#include <Library/OcCpuLib.h>
#include <Library/OcCryptoLib.h>
#include <Library/OcGuardLib.h>
#include <Library/OcStringLib.h>
#include <Library/OcStorageLib.h>
#include <Protocol/OcBootstrap.h>
/**
OpenCore version reported to log and NVRAM.
OPEN_CORE_VERSION must follow X.Y.Z format, where X.Y.Z are single digits.
**/
#define OPEN_CORE_VERSION "0.5.0"
/**
OpenCore build type reported to log and NVRAM.
**/
#if defined (OC_TARGET_RELEASE)
#define OPEN_CORE_TARGET "REL" ///< Release.
#elif defined (OC_TARGET_DEBUG)
#define OPEN_CORE_TARGET "DBG" ///< Debug with compiler optimisations.
#elif defined (OC_TARGET_NOOPT)
#define OPEN_CORE_TARGET "NPT" ///< Debug with no compiler optimisations.
#else
#error "Unknown target definition"
#endif
#define OPEN_CORE_IMAGE_PATH L"EFI\\OC\\OpenCore.efi"
/**
Multiple boards, namely ASUS P8H61-M and P8H61-M LX2 will not
open directories with trailing slash. It is irrelevant whether
front slash is present for them.
This means L"EFI\\OC\\" and L"\\EFI\\OC\\" will both fail to open,
while L"EFI\\OC" and L"\\EFI\\OC" will open fine.
We do not open any directories except root path and dmg, so the
hack lives here.
**/
#define OPEN_CORE_ROOT_PATH L"EFI\\OC"
#define OPEN_CORE_CONFIG_PATH L"config.plist"
#define OPEN_CORE_LOG_PREFIX_PATH L"opencore"
#define OPEN_CORE_NVRAM_PATH L"nvram.plist"
#define OPEN_CORE_ACPI_PATH L"ACPI\\"
#define OPEN_CORE_UEFI_DRIVER_PATH L"Drivers\\"
#define OPEN_CORE_KEXT_PATH L"Kexts\\"
#define OPEN_CORE_TOOL_PATH L"Tools\\"
#define OPEN_CORE_NVRAM_ATTR (EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS)
#define OPEN_CORE_INT_NVRAM_ATTR EFI_VARIABLE_BOOTSERVICE_ACCESS
/**
Obtain cryptographic key if it was installed.
@param[in] Bootstrap bootstrap protocol.
@return public key or NULL.
**/
RSA_PUBLIC_KEY *
OcGetVaultKey (
IN OC_BOOTSTRAP_PROTOCOL *Bootstrap
);
/**
Load ACPI compatibility support like custom tables.
@param[in] Storage OpenCore storage.
@param[in] Config OpenCore configuration.
**/
VOID
OcLoadAcpiSupport (
IN OC_STORAGE_CONTEXT *Storage,
IN OC_GLOBAL_CONFIG *Config
);
/**
Load device properties compatibility support.
@param[in] Config OpenCore configuration.
**/
VOID
OcLoadDevPropsSupport (
IN OC_GLOBAL_CONFIG *Config
);
/**
Load Kernel compatibility support like kexts.
@param[in] Storage OpenCore storage.
@param[in] Config OpenCore configuration.
@param[in] CpuInfo CPU information.
**/
VOID
OcLoadKernelSupport (
IN OC_STORAGE_CONTEXT *Storage,
IN OC_GLOBAL_CONFIG *Config,
IN OC_CPU_INFO *CpuInfo
);
/**
Cleanup Kernel compatibility support on failure.
**/
VOID
OcUnloadKernelSupport (
VOID
);
/**
Load NVRAM compatibility support.
@param[in] Storage OpenCore storage.
@param[in] Config OpenCore configuration.
**/
VOID
OcLoadNvramSupport (
IN OC_STORAGE_CONTEXT *Storage,
IN OC_GLOBAL_CONFIG *Config
);
/**
Load platform compatibility support like DataHub or SMBIOS.
@param[in] Config OpenCore configuration.
@param[in] CpuInfo CPU information.
**/
VOID
OcLoadPlatformSupport (
IN OC_GLOBAL_CONFIG *Config,
IN OC_CPU_INFO *CpuInfo
);
/**
Load UEFI compatibility support like drivers.
@param[in] Storage OpenCore storage.
@param[in] Config OpenCore configuration.
@param[in] CpuInfo CPU information.
**/
VOID
OcLoadUefiSupport (
IN OC_STORAGE_CONTEXT *Storage,
IN OC_GLOBAL_CONFIG *Config,
IN OC_CPU_INFO *CpuInfo
);
/**
Load early miscellaneous support like configuration.
@param[in] Storage OpenCore storage.
@param[out] Config OpenCore configuration.
@param[in] VaultKey Vault key.
@retval EFI_SUCCESS when allowed to continue.
**/
EFI_STATUS
OcMiscEarlyInit (
IN OC_STORAGE_CONTEXT *Storage,
OUT OC_GLOBAL_CONFIG *Config,
IN RSA_PUBLIC_KEY *VaultKey OPTIONAL
);
/**
Load late miscellaneous support like boot screen config.
@param[in] Config OpenCore configuration.
@param[in] LoadPath OpenCore loading path.
@param[out] LoadHandle OpenCore loading handle.
@retval EFI_SUCCESS on success, informational.
**/
EFI_STATUS
OcMiscLateInit (
IN OC_GLOBAL_CONFIG *Config,
IN EFI_DEVICE_PATH_PROTOCOL *LoadPath OPTIONAL,
OUT EFI_HANDLE *LoadHandle OPTIONAL
);
/**
Load late miscellaneous support like boot screen config.
@param[in] Storage OpenCore storage.
@param[in] Config OpenCore configuration.
@param[in] StartImage Image starting routine used.
@param[in] LoadHandle OpenCore loading handle.
@param[in] CustomBootGuid Use custom (gOcVendorVariableGuid) for Boot#### variables.
**/
VOID
OcMiscBoot (
IN OC_STORAGE_CONTEXT *Storage,
IN OC_GLOBAL_CONFIG *Config,
IN OC_IMAGE_START StartImage,
IN BOOLEAN CustomBootGuid,
IN EFI_HANDLE LoadHandle OPTIONAL
);
/**
Load miscellaneous support after UEFI quirks.
@param[in] Config OpenCore configuration.
**/
VOID
OcMiscUefiQuirksLoaded (
IN OC_GLOBAL_CONFIG *Config
);
#endif // OPEN_CORE_H
| [
"[email protected]"
] | |
96b296a0a4e5cb6d6a173ecfd655663c5e3482f2 | 27a084d30d1b6746f41d4c4bbf9310427f6ebc4a | /NF_HEDM/src/CalcDiffractionSpots.c | 4aec7c43ac796b1171ad84a76a52457b515640c3 | [] | no_license | hmparanjape/MIDAS | d0e10ae89e71811c8ffee4f019c084d29e2a8cba | 67065998dbfbd75de0bb006a84503d2007aeeedb | refs/heads/master | 2021-01-18T14:06:36.454214 | 2016-06-27T19:15:28 | 2016-06-27T19:15:28 | 62,067,301 | 1 | 0 | null | 2016-06-27T15:37:45 | 2016-06-27T15:37:44 | null | UTF-8 | C | false | false | 7,766 | c | //
// CalcDiffractionSpots.c
//
//
// Created by Hemant Sharma on 12/3/13.
//
//
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <ctype.h>
#include <stdint.h>
#define deg2rad 0.0174532925199433
#define rad2deg 57.2957795130823
#define RealType double
#define MAX_N_HKLS 5000
#define MAX_N_OMEGA_RANGES 20
#define EPS 0.000000001
static inline void
MatrixMult(
RealType m[3][3],
int v[3],
RealType r[3])
{
int i;
for (i=0; i<3; i++) {
r[i] = m[i][0]*v[0] +
m[i][1]*v[1] +
m[i][2]*v[2];
}
}
/*void
MatrixMultF(
RealType m[3][3],
RealType v[3],
RealType r[3])
{
int i;
for (i=0; i<3; i++) {
r[i] = m[i][0]*v[0] +
m[i][1]*v[1] +
m[i][2]*v[2];
}
} */
static inline void
QuatToOrientMat(
double Quat[4],
double OrientMat[3][3])
{
double Q1_2,Q2_2,Q3_2,Q12,Q03,Q13,Q02,Q23,Q01;
Q1_2 = Quat[1]*Quat[1];
Q2_2 = Quat[2]*Quat[2];
Q3_2 = Quat[3]*Quat[3];
Q12 = Quat[1]*Quat[2];
Q03 = Quat[0]*Quat[3];
Q13 = Quat[1]*Quat[3];
Q02 = Quat[0]*Quat[2];
Q23 = Quat[2]*Quat[3];
Q01 = Quat[0]*Quat[1];
OrientMat[0][0] = 1 - 2*(Q2_2+Q3_2);
OrientMat[0][1] = 2*(Q12+Q03);
OrientMat[0][2] = 2*(Q13-Q02);
OrientMat[1][0] = 2*(Q12-Q03);
OrientMat[1][1] = 1 - 2*(Q1_2+Q3_2);
OrientMat[1][2] = 2*(Q23+Q01);
OrientMat[2][0] = 2*(Q13+Q02);
OrientMat[2][1] = 2*(Q23-Q01);
OrientMat[2][2] = 1 - 2*(Q1_2+Q2_2);
}
static inline void
CalcEtaAngle(
RealType y,
RealType z,
RealType *alpha) {
*alpha = rad2deg * acos(z/sqrt(y*y+z*z));
if (y > 0) *alpha = -*alpha;
}
static inline void
CalcSpotPosition(
RealType RingRadius,
RealType eta,
RealType *yl,
RealType *zl)
{
RealType etaRad = deg2rad * eta;
*yl = -(sin(etaRad)*RingRadius);
*zl = cos(etaRad)*RingRadius;
}
static inline void
CalcOmega(
RealType x,
RealType y,
RealType z,
RealType theta,
RealType omegas[4],
RealType etas[4],
int * nsol)
{
*nsol = 0;
RealType ome;
RealType len= sqrt(x*x + y*y + z*z);
RealType v=sin(theta*deg2rad)*len;
RealType almostzero = 1e-4;
if ( fabs(y) < almostzero ) {
if (x != 0) {
RealType cosome1 = -v/x;
if (fabs(cosome1 <= 1)) {
ome = acos(cosome1)*rad2deg;
omegas[*nsol] = ome;
*nsol = *nsol + 1;
omegas[*nsol] = -ome;
*nsol = *nsol + 1;
}
}
}
else {
RealType y2 = y*y;
RealType a = 1 + ((x*x) / y2);
RealType b = (2*v*x) / y2;
RealType c = ((v*v) / y2) - 1;
RealType discr = b*b - 4*a*c;
RealType ome1a;
RealType ome1b;
RealType ome2a;
RealType ome2b;
RealType cosome1;
RealType cosome2;
RealType eqa, eqb, diffa, diffb;
if (discr >= 0) {
cosome1 = (-b + sqrt(discr))/(2*a);
if (fabs(cosome1) <= 1) {
ome1a = acos(cosome1);
ome1b = -ome1a;
eqa = -x*cos(ome1a) + y*sin(ome1a);
diffa = fabs(eqa - v);
eqb = -x*cos(ome1b) + y*sin(ome1b);
diffb = fabs(eqb - v);
if (diffa < diffb ) {
omegas[*nsol] = ome1a*rad2deg;
*nsol = *nsol + 1;
}
else {
omegas[*nsol] = ome1b*rad2deg;
*nsol = *nsol + 1;
}
}
cosome2 = (-b - sqrt(discr))/(2*a);
if (fabs(cosome2) <= 1) {
ome2a = acos(cosome2);
ome2b = -ome2a;
eqa = -x*cos(ome2a) + y*sin(ome2a);
diffa = fabs(eqa - v);
eqb = -x*cos(ome2b) + y*sin(ome2b);
diffb = fabs(eqb - v);
if (diffa < diffb) {
omegas[*nsol] = ome2a*rad2deg;
*nsol = *nsol + 1;
}
else {
omegas[*nsol] = ome2b*rad2deg;
*nsol = *nsol + 1;
}
}
}
}
RealType gw[3];
RealType gv[3]={x,y,z};
RealType eta;
int indexOme;
for (indexOme = 0; indexOme < *nsol; indexOme++) {
RotateAroundZ(gv, omegas[indexOme], gw);
CalcEtaAngle(gw[1],gw[2], &eta);
etas[indexOme] = eta;
}
}
void
CalcDiffrSpots_Furnace(
RealType OrientMatrix[3][3],
RealType distance,
RealType OmegaRange[][2],
RealType BoxSizes[][4],
int NOmegaRanges,
double hkls[5000][4],
int n_hkls,
double Thetas[5000],
RealType ExcludePoleAngle,
RealType **spots,
int *nspots)
{
int i, OmegaRangeNo;
RealType theta;
int KeepSpot = 0;
double Ghkl[3];
int indexhkl;
RealType Gc[3];
RealType omegas[4];
RealType etas[4];
RealType yl;
RealType zl;
int nspotsPlane;
int spotnr = 0;
int spotid = 0;
for (indexhkl=0; indexhkl < n_hkls ; indexhkl++) {
Ghkl[0] = hkls[indexhkl][0];
Ghkl[1] = hkls[indexhkl][1];
Ghkl[2] = hkls[indexhkl][2];
RealType RingRadius = distance * tan(2*deg2rad*Thetas[indexhkl]);
MatrixMultF(OrientMatrix,Ghkl, Gc);
theta = Thetas[indexhkl];
CalcOmega(Gc[0], Gc[1], Gc[2], theta, omegas, etas, &nspotsPlane);
for (i=0 ; i<nspotsPlane ; i++) {
RealType Omega = omegas[i];
RealType Eta = etas[i];
RealType EtaAbs = fabs(Eta);
if ((EtaAbs < ExcludePoleAngle ) || ((180-EtaAbs) < ExcludePoleAngle)) continue;
CalcSpotPosition(RingRadius, etas[i], &(yl), &(zl));
for (OmegaRangeNo = 0 ; OmegaRangeNo < NOmegaRanges ; OmegaRangeNo++ ) {
KeepSpot = 0;
if ( (Omega > OmegaRange[OmegaRangeNo][0]) &&
(Omega < OmegaRange[OmegaRangeNo][1]) &&
(yl > BoxSizes[OmegaRangeNo][0]) &&
(yl < BoxSizes[OmegaRangeNo][1]) &&
(zl > BoxSizes[OmegaRangeNo][2]) &&
(zl < BoxSizes[OmegaRangeNo][3]) ) {
KeepSpot = 1;
break;
}
}
if (KeepSpot==1) {
spots[spotnr][0] = yl;
spots[spotnr][1] = zl;
spots[spotnr][2] = omegas[i];
spotnr++;
spotid++;
}
}
}
*nspots = spotnr;
}
int
CalcDiffractionSpots(double Distance,
double ExcludePoleAngle,
double OmegaRanges[MAX_N_OMEGA_RANGES][2],
int NoOfOmegaRanges,
double hkls[5000][4],
int n_hkls,
double Thetas[5000],
double BoxSizes[MAX_N_OMEGA_RANGES][4],
int *nTspots,
double OrientMatr[3][3],
double **TheorSpots)
{
*nTspots = 0;
int nTsps;
if (TheorSpots == NULL ) {
printf("Memory error: could not allocate memory for output matrix. Memory full?\n");
return 1;
}
CalcDiffrSpots_Furnace(OrientMatr, Distance, OmegaRanges, BoxSizes,
NoOfOmegaRanges, hkls, n_hkls, Thetas, ExcludePoleAngle, TheorSpots, &nTsps);
*nTspots = nTsps;
}
| [
"[email protected]"
] | |
a2fa09cfd644ef06d5b510e658eed4ea2057ddd9 | 001154e2913a4fcc796fefde00bf354128dccfd2 | /part1/error.C | 4029664759be4d0de736023b79a3d582d5840d92 | [] | no_license | meyejack/Ubase | 020e941c4cd5d55923a492c7a4da44ba083cff74 | 1f98b193815275b509ba3bb82eefd44f3bf4a352 | refs/heads/master | 2023-03-16T07:17:39.857434 | 2015-07-09T10:25:03 | 2015-07-09T10:25:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 3,283 | c | #include <sys/types.h>
#include <functional>
#include <iostream>
using namespace std;
#include "error.h"
void Error::print(Status status)
{
cerr << "Error: ";
switch(status) {
// no error
case OK: cerr << "no error"; break;
// File and DB errors
case BADFILEPTR: cerr << "bad file pointer"; break;
case BADFILE: cerr << "bad filename"; break;
case FILETABFULL: cerr << "open file table full"; break;
case FILEOPEN: cerr << "file open"; break;
case FILENOTOPEN: cerr << "file not open"; break;
case UNIXERR: cerr << "Unix error"; perror("Unix error"); break;
case BADPAGEPTR: cerr << "bad page pointer"; break;
case BADPAGENO: cerr << "bad page number"; break;
case FILEEXISTS: cerr << "file exists already"; break;
// BufMgr and HashTable errors
case HASHTBLERROR: cerr << "hash table error"; break;
case HASHNOTFOUND: cerr << "hash entry not found"; break;
case BUFFEREXCEEDED: cerr << "buffer pool full"; break;
case PAGENOTPINNED: cerr << "page not pinned"; break;
case BADBUFFER: cerr << "buffer pool corrupted"; break;
case PAGEPINNED: cerr << "page still pinned"; break;
// Page class errors
case NOSPACE: cerr << "no space on page for record"; break;
case NORECORDS: cerr << "page is empty - no records"; break;
case ENDOFPAGE: cerr << "last record on page"; break;
case INVALIDSLOTNO: cerr << "invalid slot number"; break;
case INVALIDRECLEN: cerr << "specified record length <= 0";break;
// Heap file errors
case BADRID: cerr << "bad record id"; break;
case BADRECPTR: cerr << "bad record pointer"; break;
case BADSCANPARM: cerr << "bad scan parameter"; break;
case SCANTABFULL: cerr << "scan table full"; break;
case FILEEOF: cerr << "end of file encountered"; break;
case FILEHDRFULL: cerr << "heapfile hdear page is full"; break;
// Index errors
case BADINDEXPARM: cerr << "bad index parameter"; break;
case RECNOTFOUND: cerr << "no such record"; break;
case BUCKETFULL: cerr << "bucket full"; break;
case DIROVERFLOW: cerr << "directory is full"; break;
case NONUNIQUEENTRY: cerr << "nonunique entry"; break;
case NOMORERECS: cerr << "no more records"; break;
// Sorted file errors
case BADSORTPARM: cerr << "bad sort parameter"; break;
case INSUFMEM: cerr << "insufficient memory"; break;
// Catalog errors
case BADCATPARM: cerr << "bad catalog parameter"; break;
case RELNOTFOUND: cerr << "relation not in catalog"; break;
case ATTRNOTFOUND: cerr << "attribute not in catalog"; break;
case NAMETOOLONG: cerr << "name too long"; break;
case ATTRTOOLONG: cerr << "attributes too long"; break;
case DUPLATTR: cerr << "duplicate attribute names"; break;
case RELEXISTS: cerr << "relation exists already"; break;
case NOINDEX: cerr << "no index exists"; break;
case ATTRTYPEMISMATCH: cerr << "attribute type mismatch"; break;
case TMP_RES_EXISTS: cerr << "temp result already exists"; break;
case INDEXEXISTS: cerr << "index exists already"; break;
default: cerr << "undefined error status: " << status;
}
cerr << endl;
}
| [
"[email protected]"
] | |
e28a3a54b4ae3e3ac2bbcc59116be9ebbf6c0acc | 688d1769b59a1e246b782a91129d18c50f6e7632 | /October Piscine/Day12/ex00/ft_display_file.c | d2c7ef3a9e8e7fd6ea28bf6bd5600a7be34f3ab0 | [] | no_license | rene415/42OCTPiscine | 7881a72e9b36db5016423d8ae3afd9d7c74abb67 | e3e86a269d259b3b5c35ca54387c6c00a821318f | refs/heads/master | 2020-07-05T18:06:05.769500 | 2016-11-17T03:41:57 | 2016-11-17T03:41:57 | 73,987,175 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 1,281 | c | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_display_file.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rramirez <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/10 14:18:24 by rramirez #+# #+# */
/* Updated: 2016/11/10 14:18:27 by rramirez ### ########.fr */
/* */
/* ************************************************************************** */
#include "display.h"
int main(int argc, char **argv)
{
int fd;
char buf[BUF_SIZE + 1];
int ret;
if (argc > 2)
ft_derror("Too Many arguments.\n");
else if (argc < 2)
ft_derror("File name missing.\n");
else if (argc == 2)
{
fd = open(argv[1], O_RDONLY);
while ((ret = read(fd, buf, BUF_SIZE)))
{
buf[ret] = '\0';
ft_putstr(buf);
}
close(fd);
}
return (0);
}
| [
"[email protected]"
] | |
822e4590174a99053e2dece1d712965dc3bb3ded | c2cedcf36667730f558ab354bea4505b616c90d2 | /players/mizan/opl/CELLS/C1357.c | 4c1d28996006bf6be46b5a114ada7a1d3d6dcb0b | [] | no_license | wugouzi/Nirvlp312mudlib | 965ed876c7080ab00e28c5d8cd5ea9fc9e46258f | 616cad7472279cc97c9693f893940f5336916ff8 | refs/heads/master | 2023-03-16T03:45:05.510851 | 2017-09-21T17:05:00 | 2017-09-21T17:05:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 2,059 | c | inherit "/players/mizan/opl/core/room.c";
#include "/obj/ansi.h"
object mob0, mob1, mob2, mob3, mob4, bonus, bonus2, bonus3, boss, door1, door2;
/* This is a TOP cell of maze, automatically generated. */
/* Please do not make edits to this file as changes would be overwritten */
/* every two weeks by the Perl code which generates this room. Contact */
/* Mizan directly so he can make changes to the Perl code directly. Thanks! */
reset(int arg)
{
if(arg) return;
move_object(this_object(), "/players/mizan/opl/daemons/gridboxDM");
add_property("fight_area");
short_desc = "The Proving Grounds of the OverPowerLord";
dest_dir =
({
"/players/mizan/opl/CELLS/C1477", "south",
"/players/mizan/opl/CELLS/C1358", "east",
"/players/mizan/opl/CELLS/C1356", "west",
});
/* Our monster list */
if(!mob0)
{
mob0 = clone_object("/players/mizan/opl/beasties/fungus/big_bunny.c");
move_object(mob0, this_object());
}
if(!mob1)
{
mob1 = clone_object("/players/mizan/opl/beasties/fungus/big_bunny.c");
move_object(mob1, this_object());
}
custom_exits = 1;
terrain_icon = BGRN + BLK + BOLD + "M" + NORM;
}
long()
{
write(" Dirt and what can be assumed is fresh fecal grindings cover the top of\n");
write("this stone block, and upon it has erupted a large overgrown forest of fungus!\n");
write("The giant mushroom stalks are significantly thicker and denser around here,\n");
write("making visibility beyond quite limited and difficult.\n");
/* This code generates the top-down map of the room we are in */
write(" There are three obvious exits: south, east and west.\n");
write(call_other("/players/mizan/opl/daemons/gridDM.c",
"render_map",
this_object()->query_x(),
this_object()->query_y(),
this_object()->query_index(),
this_object()->query_sight_range() ));
}
query_x() { return 37; }
query_y() { return 11; }
query_index() { return 1357; }
query_sight_range() { return 2; }
query_npc_traversable() { return 1; }
is_forest() { return 1; }
realm() { return "NT"; }
| [
"[email protected]"
] | |
866f52b2100e3da856fdd5a9371eb62deadaa722 | b233e1c48a67cfccea35806cf86ea6c6ec5d5292 | /piscine_re/ex27/ft.h | e33c2dbc169713a7b1dbfcf7de047ceb219e2eb1 | [] | no_license | ahavrius/42school | 2c515db9489cbab7834f32a9cab57983541f9b20 | 36cba3d95435cad2f56516b7f5fd4fa9ac4db2af | refs/heads/master | 2020-04-04T16:23:36.596521 | 2019-03-04T13:42:55 | 2019-03-04T13:42:55 | 156,075,659 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 1,044 | h | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ahavrius <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/10/22 19:08:39 by ahavrius #+# #+# */
/* Updated: 2018/10/22 19:21:41 by ahavrius ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef FT_H
# define FT_H
# include <unistd.h>
# include <fcntl.h>
void ft_putchar(char c, int where);
void ft_putstr(char *str, int where);
#endif
| [
"[email protected]"
] | |
5990ea3a35b44936236dc41c187c26955214c690 | 64ecae70d1b858726558a1b09d8fb68293cc59ab | /cadet/libft/ft_atoi.c | cd3f78c9f15c25268613272e4ed61409886b6433 | [] | no_license | ryantimjohn/42 | 9607b91e8fe16f1590937fe630260d353917adc8 | b839c3593f3088498312e352aa8ffd712e200d34 | refs/heads/master | 2020-03-24T02:04:34.086091 | 2018-07-25T23:20:23 | 2018-07-25T23:20:23 | 142,361,812 | 1 | 0 | null | null | null | null | UTF-8 | C | false | false | 1,313 | c | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_atoi.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tryan <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/07/17 00:28:32 by tryan #+# #+# */
/* Updated: 2018/07/17 00:28:50 by tryan ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_atoi(const char *str)
{
unsigned long long i;
long long sign;
i = 0;
sign = 1;
while ((*str <= 13 && *str >= 9) || *str == 32)
str++;
if (*str == '-' || *str == '+')
{
if (*str == '-')
sign = -1;
str++;
}
while (*str >= '0' && *str <= '9')
{
i *= 10;
i += (*str - '0');
str++;
}
if (i > (unsigned long long)9223372036854775807)
return (0);
return (i * sign);
}
| [
"[email protected]"
] | |
4782bfe86d85d3e9215122a1c6e02633d2c26a7c | 6b74f732d3c7102580ee3854d39ac062985c86dd | /FreeRTOS/Demo/Common/ethernet/lwIP_130/src/api/api_lib.c | 807d8a6b76ef0e434db603778ba4eb7adc6eae14 | [
"freertos-exception-2.0",
"GPL-2.0-or-later",
"BSD-3-Clause",
"MIT"
] | permissive | lundinc2/FreeRTOS-Labs | c88055958c313fb1c45528f88be5d6bc832fc18d | 775033dac12fe9fb3d55ac8cca43b2991fdbef57 | refs/heads/master | 2022-12-22T23:38:08.564023 | 2020-09-22T00:00:10 | 2020-09-22T00:00:10 | 271,820,118 | 0 | 0 | MIT | 2020-06-12T14:40:25 | 2020-06-12T14:40:25 | null | UTF-8 | C | false | false | 16,689 | c | /**
* @file
* Sequential API External module
*
*/
/*
* Copyright (c) 2001-2004 Swedish Institute of Computer Science.
* 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. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 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.
*
* This file is part of the lwIP TCP/IP stack.
*
* Author: Adam Dunkels <[email protected]>
*
*/
/* This is the part of the API that is linked with
the application */
#include "lwip/opt.h"
#if LWIP_NETCONN /* don't build if not configured for use in lwipopts.h */
#include "lwip/api.h"
#include "lwip/tcpip.h"
#include "lwip/memp.h"
#include "lwip/ip.h"
#include "lwip/raw.h"
#include "lwip/udp.h"
#include "lwip/tcp.h"
#include <string.h>
/**
* Create a new netconn (of a specific type) that has a callback function.
* The corresponding pcb is also created.
*
* @param t the type of 'connection' to create (@see enum netconn_type)
* @param proto the IP protocol for RAW IP pcbs
* @param callback a function to call on status changes (RX available, TX'ed)
* @return a newly allocated struct netconn or
* NULL on memory error
*/
struct netconn*
netconn_new_with_proto_and_callback(enum netconn_type t, u8_t proto, netconn_callback callback)
{
struct netconn *conn;
struct api_msg msg;
conn = netconn_alloc(t, callback);
if (conn != NULL ) {
msg.function = do_newconn;
msg.msg.msg.n.proto = proto;
msg.msg.conn = conn;
TCPIP_APIMSG(&msg);
if (conn->err != ERR_OK) {
LWIP_ASSERT("freeing conn without freeing pcb", conn->pcb.tcp == NULL);
LWIP_ASSERT("conn has no op_completed", conn->op_completed != SYS_SEM_NULL);
LWIP_ASSERT("conn has no recvmbox", conn->recvmbox != SYS_MBOX_NULL);
LWIP_ASSERT("conn->acceptmbox shouldn't exist", conn->acceptmbox == SYS_MBOX_NULL);
sys_sem_free(conn->op_completed);
sys_mbox_free(conn->recvmbox);
memp_free(MEMP_NETCONN, conn);
return NULL;
}
}
return conn;
}
/**
* Close a netconn 'connection' and free its resources.
* UDP and RAW connection are completely closed, TCP pcbs might still be in a waitstate
* after this returns.
*
* @param conn the netconn to delete
* @return ERR_OK if the connection was deleted
*/
err_t
netconn_delete(struct netconn *conn)
{
struct api_msg msg;
/* No ASSERT here because possible to get a (conn == NULL) if we got an accept error */
if (conn == NULL) {
return ERR_OK;
}
msg.function = do_delconn;
msg.msg.conn = conn;
tcpip_apimsg(&msg);
conn->pcb.tcp = NULL;
netconn_free(conn);
return ERR_OK;
}
/**
* Get the type of a netconn (as enum netconn_type).
*
* @param conn the netconn of which to get the type
* @return the netconn_type of conn
*/
enum netconn_type
netconn_type(struct netconn *conn)
{
LWIP_ERROR("netconn_type: invalid conn", (conn != NULL), return NETCONN_INVALID;);
return conn->type;
}
/**
* Get the local or remote IP address and port of a netconn.
* For RAW netconns, this returns the protocol instead of a port!
*
* @param conn the netconn to query
* @param addr a pointer to which to save the IP address
* @param port a pointer to which to save the port (or protocol for RAW)
* @param local 1 to get the local IP address, 0 to get the remote one
* @return ERR_CONN for invalid connections
* ERR_OK if the information was retrieved
*/
err_t
netconn_getaddr(struct netconn *conn, struct ip_addr *addr, u16_t *port, u8_t local)
{
struct api_msg msg;
LWIP_ERROR("netconn_getaddr: invalid conn", (conn != NULL), return ERR_ARG;);
LWIP_ERROR("netconn_getaddr: invalid addr", (addr != NULL), return ERR_ARG;);
LWIP_ERROR("netconn_getaddr: invalid port", (port != NULL), return ERR_ARG;);
msg.function = do_getaddr;
msg.msg.conn = conn;
msg.msg.msg.ad.ipaddr = addr;
msg.msg.msg.ad.port = port;
msg.msg.msg.ad.local = local;
TCPIP_APIMSG(&msg);
return conn->err;
}
/**
* Bind a netconn to a specific local IP address and port.
* Binding one netconn twice might not always be checked correctly!
*
* @param conn the netconn to bind
* @param addr the local IP address to bind the netconn to (use IP_ADDR_ANY
* to bind to all addresses)
* @param port the local port to bind the netconn to (not used for RAW)
* @return ERR_OK if bound, any other err_t on failure
*/
err_t
netconn_bind(struct netconn *conn, struct ip_addr *addr, u16_t port)
{
struct api_msg msg;
LWIP_ERROR("netconn_bind: invalid conn", (conn != NULL), return ERR_ARG;);
msg.function = do_bind;
msg.msg.conn = conn;
msg.msg.msg.bc.ipaddr = addr;
msg.msg.msg.bc.port = port;
TCPIP_APIMSG(&msg);
return conn->err;
}
/**
* Connect a netconn to a specific remote IP address and port.
*
* @param conn the netconn to connect
* @param addr the remote IP address to connect to
* @param port the remote port to connect to (no used for RAW)
* @return ERR_OK if connected, return value of tcp_/udp_/raw_connect otherwise
*/
err_t
netconn_connect(struct netconn *conn, struct ip_addr *addr, u16_t port)
{
struct api_msg msg;
LWIP_ERROR("netconn_connect: invalid conn", (conn != NULL), return ERR_ARG;);
msg.function = do_connect;
msg.msg.conn = conn;
msg.msg.msg.bc.ipaddr = addr;
msg.msg.msg.bc.port = port;
/* This is the only function which need to not block tcpip_thread */
tcpip_apimsg(&msg);
return conn->err;
}
/**
* Disconnect a netconn from its current peer (only valid for UDP netconns).
*
* @param conn the netconn to disconnect
* @return TODO: return value is not set here...
*/
err_t
netconn_disconnect(struct netconn *conn)
{
struct api_msg msg;
LWIP_ERROR("netconn_disconnect: invalid conn", (conn != NULL), return ERR_ARG;);
msg.function = do_disconnect;
msg.msg.conn = conn;
TCPIP_APIMSG(&msg);
return conn->err;
}
/**
* Set a TCP netconn into listen mode
*
* @param conn the tcp netconn to set to listen mode
* @param backlog the listen backlog, only used if TCP_LISTEN_BACKLOG==1
* @return ERR_OK if the netconn was set to listen (UDP and RAW netconns
* don't return any error (yet?))
*/
err_t
netconn_listen_with_backlog(struct netconn *conn, u8_t backlog)
{
struct api_msg msg;
/* This does no harm. If TCP_LISTEN_BACKLOG is off, backlog is unused. */
LWIP_UNUSED_ARG(backlog);
LWIP_ERROR("netconn_listen: invalid conn", (conn != NULL), return ERR_ARG;);
msg.function = do_listen;
msg.msg.conn = conn;
#if TCP_LISTEN_BACKLOG
msg.msg.msg.lb.backlog = backlog;
#endif /* TCP_LISTEN_BACKLOG */
TCPIP_APIMSG(&msg);
return conn->err;
}
/**
* Accept a new connection on a TCP listening netconn.
*
* @param conn the TCP listen netconn
* @return the newly accepted netconn or NULL on timeout
*/
struct netconn *
netconn_accept(struct netconn *conn)
{
struct netconn *newconn;
LWIP_ERROR("netconn_accept: invalid conn", (conn != NULL), return NULL;);
LWIP_ERROR("netconn_accept: invalid acceptmbox", (conn->acceptmbox != SYS_MBOX_NULL), return NULL;);
#if LWIP_SO_RCVTIMEO
if (sys_arch_mbox_fetch(conn->acceptmbox, (void *)&newconn, conn->recv_timeout) == SYS_ARCH_TIMEOUT) {
newconn = NULL;
} else
#else
sys_arch_mbox_fetch(conn->acceptmbox, (void *)&newconn, 0);
#endif /* LWIP_SO_RCVTIMEO*/
{
/* Register event with callback */
API_EVENT(conn, NETCONN_EVT_RCVMINUS, 0);
#if TCP_LISTEN_BACKLOG
if (newconn != NULL) {
/* Let the stack know that we have accepted the connection. */
struct api_msg msg;
msg.function = do_recv;
msg.msg.conn = conn;
TCPIP_APIMSG(&msg);
}
#endif /* TCP_LISTEN_BACKLOG */
}
return newconn;
}
/**
* Receive data (in form of a netbuf containing a packet buffer) from a netconn
*
* @param conn the netconn from which to receive data
* @return a new netbuf containing received data or NULL on memory error or timeout
*/
struct netbuf *
netconn_recv(struct netconn *conn)
{
struct api_msg msg;
struct netbuf *buf = NULL;
struct pbuf *p;
u16_t len;
LWIP_ERROR("netconn_recv: invalid conn", (conn != NULL), return NULL;);
if (conn->recvmbox == SYS_MBOX_NULL) {
/* @todo: should calling netconn_recv on a TCP listen conn be fatal (ERR_CONN)?? */
/* TCP listen conns don't have a recvmbox! */
conn->err = ERR_CONN;
return NULL;
}
if (ERR_IS_FATAL(conn->err)) {
return NULL;
}
if (conn->type == NETCONN_TCP) {
#if LWIP_TCP
if (conn->state == NETCONN_LISTEN) {
/* @todo: should calling netconn_recv on a TCP listen conn be fatal?? */
conn->err = ERR_CONN;
return NULL;
}
buf = memp_malloc(MEMP_NETBUF);
if (buf == NULL) {
conn->err = ERR_MEM;
return NULL;
}
#if LWIP_SO_RCVTIMEO
if (sys_arch_mbox_fetch(conn->recvmbox, (void *)&p, conn->recv_timeout)==SYS_ARCH_TIMEOUT) {
conn->err = ERR_TIMEOUT;
p = NULL;
}
#else
sys_arch_mbox_fetch(conn->recvmbox, (void *)&p, 0);
#endif /* LWIP_SO_RCVTIMEO*/
if (p != NULL) {
len = p->tot_len;
SYS_ARCH_DEC(conn->recv_avail, len);
} else {
len = 0;
}
/* Register event with callback */
API_EVENT(conn, NETCONN_EVT_RCVMINUS, len);
/* If we are closed, we indicate that we no longer wish to use the socket */
if (p == NULL) {
memp_free(MEMP_NETBUF, buf);
/* Avoid to lose any previous error code */
if (conn->err == ERR_OK) {
conn->err = ERR_CLSD;
}
return NULL;
}
buf->p = p;
buf->ptr = p;
buf->port = 0;
buf->addr = NULL;
/* Let the stack know that we have taken the data. */
msg.function = do_recv;
msg.msg.conn = conn;
if (buf != NULL) {
msg.msg.msg.r.len = buf->p->tot_len;
} else {
msg.msg.msg.r.len = 1;
}
TCPIP_APIMSG(&msg);
#endif /* LWIP_TCP */
} else {
#if (LWIP_UDP || LWIP_RAW)
#if LWIP_SO_RCVTIMEO
if (sys_arch_mbox_fetch(conn->recvmbox, (void *)&buf, conn->recv_timeout)==SYS_ARCH_TIMEOUT) {
buf = NULL;
}
#else
sys_arch_mbox_fetch(conn->recvmbox, (void *)&buf, 0);
#endif /* LWIP_SO_RCVTIMEO*/
if (buf!=NULL) {
SYS_ARCH_DEC(conn->recv_avail, buf->p->tot_len);
/* Register event with callback */
API_EVENT(conn, NETCONN_EVT_RCVMINUS, buf->p->tot_len);
}
#endif /* (LWIP_UDP || LWIP_RAW) */
}
LWIP_DEBUGF(API_LIB_DEBUG, ("netconn_recv: received %p (err %d)\n", (void *)buf, conn->err));
return buf;
}
/**
* Send data (in form of a netbuf) to a specific remote IP address and port.
* Only to be used for UDP and RAW netconns (not TCP).
*
* @param conn the netconn over which to send data
* @param buf a netbuf containing the data to send
* @param addr the remote IP address to which to send the data
* @param port the remote port to which to send the data
* @return ERR_OK if data was sent, any other err_t on error
*/
err_t
netconn_sendto(struct netconn *conn, struct netbuf *buf, struct ip_addr *addr, u16_t port)
{
if (buf != NULL) {
buf->addr = addr;
buf->port = port;
return netconn_send(conn, buf);
}
return ERR_VAL;
}
/**
* Send data over a UDP or RAW netconn (that is already connected).
*
* @param conn the UDP or RAW netconn over which to send data
* @param buf a netbuf containing the data to send
* @return ERR_OK if data was sent, any other err_t on error
*/
err_t
netconn_send(struct netconn *conn, struct netbuf *buf)
{
struct api_msg msg;
LWIP_ERROR("netconn_send: invalid conn", (conn != NULL), return ERR_ARG;);
LWIP_DEBUGF(API_LIB_DEBUG, ("netconn_send: sending %d bytes\n", buf->p->tot_len));
msg.function = do_send;
msg.msg.conn = conn;
msg.msg.msg.b = buf;
TCPIP_APIMSG(&msg);
return conn->err;
}
/**
* Send data over a TCP netconn.
*
* @param conn the TCP netconn over which to send data
* @param dataptr pointer to the application buffer that contains the data to send
* @param size size of the application data to send
* @param apiflags combination of following flags :
* - NETCONN_COPY (0x01) data will be copied into memory belonging to the stack
* - NETCONN_MORE (0x02) for TCP connection, PSH flag will be set on last segment sent
* @return ERR_OK if data was sent, any other err_t on error
*/
err_t
netconn_write(struct netconn *conn, const void *dataptr, int size, u8_t apiflags)
{
struct api_msg msg;
LWIP_ERROR("netconn_write: invalid conn", (conn != NULL), return ERR_ARG;);
LWIP_ERROR("netconn_write: invalid conn->type", (conn->type == NETCONN_TCP), return ERR_VAL;);
msg.function = do_write;
msg.msg.conn = conn;
msg.msg.msg.w.dataptr = dataptr;
msg.msg.msg.w.apiflags = apiflags;
msg.msg.msg.w.len = size;
/* For locking the core: this _can_ be delayed on low memory/low send buffer,
but if it is, this is done inside api_msg.c:do_write(), so we can use the
non-blocking version here. */
TCPIP_APIMSG(&msg);
return conn->err;
}
/**
* Close a TCP netconn (doesn't delete it).
*
* @param conn the TCP netconn to close
* @return ERR_OK if the netconn was closed, any other err_t on error
*/
err_t
netconn_close(struct netconn *conn)
{
struct api_msg msg;
LWIP_ERROR("netconn_close: invalid conn", (conn != NULL), return ERR_ARG;);
msg.function = do_close;
msg.msg.conn = conn;
tcpip_apimsg(&msg);
return conn->err;
}
#if LWIP_IGMP
/**
* Join multicast groups for UDP netconns.
*
* @param conn the UDP netconn for which to change multicast addresses
* @param multiaddr IP address of the multicast group to join or leave
* @param interface the IP address of the network interface on which to send
* the igmp message
* @param join_or_leave flag whether to send a join- or leave-message
* @return ERR_OK if the action was taken, any err_t on error
*/
err_t
netconn_join_leave_group(struct netconn *conn,
struct ip_addr *multiaddr,
struct ip_addr *interface,
enum netconn_igmp join_or_leave)
{
struct api_msg msg;
LWIP_ERROR("netconn_join_leave_group: invalid conn", (conn != NULL), return ERR_ARG;);
msg.function = do_join_leave_group;
msg.msg.conn = conn;
msg.msg.msg.jl.multiaddr = multiaddr;
msg.msg.msg.jl.interface = interface;
msg.msg.msg.jl.join_or_leave = join_or_leave;
TCPIP_APIMSG(&msg);
return conn->err;
}
#endif /* LWIP_IGMP */
#if LWIP_DNS
/**
* Execute a DNS query, only one IP address is returned
*
* @param name a string representation of the DNS host name to query
* @param addr a preallocated struct ip_addr where to store the resolved IP address
* @return ERR_OK: resolving succeeded
* ERR_MEM: memory error, try again later
* ERR_ARG: dns client not initialized or invalid hostname
* ERR_VAL: dns server response was invalid
*/
err_t
netconn_gethostbyname(const char *name, struct ip_addr *addr)
{
struct dns_api_msg msg;
err_t err;
sys_sem_t sem;
LWIP_ERROR("netconn_gethostbyname: invalid name", (name != NULL), return ERR_ARG;);
LWIP_ERROR("netconn_gethostbyname: invalid addr", (addr != NULL), return ERR_ARG;);
sem = sys_sem_new(0);
if (sem == SYS_SEM_NULL) {
return ERR_MEM;
}
msg.name = name;
msg.addr = addr;
msg.err = &err;
msg.sem = sem;
tcpip_callback(do_gethostbyname, &msg);
sys_sem_wait(sem);
sys_sem_free(sem);
return err;
}
#endif /* LWIP_DNS*/
#endif /* LWIP_NETCONN */
| [
"[email protected]"
] | |
563d7ee5c9a058d21893a0d659a84ffbe0ed8992 | 65f618fbaa621bcc139e16911346baa99505a106 | /Game/codemp/GLua/glua_vector.c | ea3f6d1a5c8486a699ba90575c120ed0a9a62c70 | [] | no_license | Stoiss/JediKnightGalaxies | a393f7594791ee3af4d3faf57f9a91ab1af6c781 | ab3e77109be52ac3482d19facf9864fc9c5df50b | refs/heads/master | 2021-01-17T21:43:39.098464 | 2013-06-03T04:31:19 | 2013-06-03T04:31:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 11,675 | c | // Vector library
// Vector factory function
#include "../game/g_local.h"
#include "../game/q_shared.h"
//#include <math.h>
#include "glua.h"
int GLua_IsVector(lua_State *L, int idx) {
//GLuaVec_t *vec;
if (!ValidateObject(L, idx, GO_VECTOR)) {
return 0;
}
return 1;
}
GLuaVec_t *GLua_CheckVector(lua_State *L, int idx) {
//GLuaVec_t *vec;
if (!ValidateObject(L, idx, GO_VECTOR)) {
luaL_typerror(L, idx, "Vector");
}
return (GLuaVec_t *)lua_touserdata(L,idx);
}
static int GLua_Vector_Create(lua_State *L) {
GLuaVec_t *vec;
vec = (GLuaVec_t *)lua_newuserdata(L,12);
if (lua_type(L,1) == LUA_TSTRING) {
sscanf( luaL_checkstring(L,1), "%f %f %f", &vec->x, &vec->y, &vec->z );
} else {
vec->x = luaL_checknumber(L,1);
vec->y = luaL_checknumber(L,2);
vec->z = luaL_checknumber(L,3);
}
luaL_getmetatable(L,"Vector");
lua_setmetatable(L,-2);
return 1;
}
void GLua_PushVector(lua_State *L, float x, float y, float z) {
GLuaVec_t *vec;
vec = (GLuaVec_t *)lua_newuserdata(L,12);
vec->x = x;
vec->y = y;
vec->z = z;
luaL_getmetatable(L,"Vector");
lua_setmetatable(L,-2);
return;
}
// Vector object definitions
// vector.__Index(self, key)
static int GLua_Vector_Index(lua_State *L) {
GLuaVec_t *vec;
const char *key;
vec = GLua_CheckVector(L, 1);
key = lua_tostring(L,2);
// See if this key is a function/constant in the metatable
lua_getmetatable(L,1);
lua_getfield(L,-1,key);
if (!lua_isnil(L,-1)) {
return 1;
}
// its not a meta function, check if its 'x', 'y' or 'z'
if (!strcmp(key,"x")) {
lua_pushnumber(L,vec->x);
return 1;
}
if (!strcmp(key,"y")) {
lua_pushnumber(L,vec->y);
return 1;
}
if (!strcmp(key,"z")) {
lua_pushnumber(L,vec->z);
return 1;
}
// None of these, we requested a nonexisting key, return nil
lua_pushnil(L);
return 1;
}
// vector.__NewIndex(self, key, value)
static int GLua_Vector_NewIndex(lua_State *L) {
GLuaVec_t *vec;
const char *key;
float value;
vec = GLua_CheckVector(L,1);
key = lua_tostring(L,2);
// its not a meta function, check if its 'x', 'y' or 'z'
if (!strcmp(key,"x")) {
value = luaL_checknumber(L,3);
vec->x = value;
return 0;
}
if (!strcmp(key,"y")) {
value = luaL_checknumber(L,3);
vec->y = value;
return 0;
}
if (!strcmp(key,"z")) {
value = luaL_checknumber(L,3);
vec->z = value;
return 0;
}
return 0;
}
// vector.__tostring(self)
static int GLua_Vector_ToString(lua_State *L) {
GLuaVec_t *vec;
vec = GLua_CheckVector(L, 1);
lua_pushfstring(L, "Vector (%f %f %f)",vec->x, vec->y, vec->z);
return 1;
}
// vector.__add(vec1, vec2)
static int GLua_Vector_Add(lua_State *L) {
GLuaVec_t *vec1;
GLuaVec_t *vec2;
GLuaVec_t *vec3;
vec1 = GLua_CheckVector(L,1);
vec2 = GLua_CheckVector(L,2);
vec3 = (GLuaVec_t *)lua_newuserdata(L,12);
vec3->x = vec1->x + vec2->x;
vec3->y = vec1->y + vec2->y;
vec3->z = vec1->z + vec2->z;
luaL_getmetatable(L,"Vector");
lua_setmetatable(L,-2);
return 1;
}
// vector.__sub(vec1, vec2)
static int GLua_Vector_Sub(lua_State *L) {
GLuaVec_t *vec1;
GLuaVec_t *vec2;
GLuaVec_t *vec3;
vec1 = GLua_CheckVector(L,1);
vec2 = GLua_CheckVector(L,2);
vec3 = (GLuaVec_t *)lua_newuserdata(L,12);
vec3->x = vec1->x - vec2->x;
vec3->y = vec1->y - vec2->y;
vec3->z = vec1->z - vec2->z;
luaL_getmetatable(L,"Vector");
lua_setmetatable(L,-2);
return 1;
}
// vector.__eq(vec1, vec2)
static int GLua_Vector_Eq(lua_State *L) {
GLuaVec_t *vec1;
GLuaVec_t *vec2;
vec1 = GLua_CheckVector(L,1);
vec2 = GLua_CheckVector(L,2);
if ((vec1->x == vec2->x) && (vec1->y == vec2->y) && (vec1->z == vec2->z)) {
lua_pushboolean(L,1);
} else {
lua_pushboolean(L,0);
}
return 1;
}
// vector.__mul(vec1, num)
static int GLua_Vector_Mul(lua_State *L) {
GLuaVec_t *vec1;
GLuaVec_t *vec2;
float factor;
vec1 = GLua_CheckVector(L,1);
factor = luaL_checknumber(L,2);
vec2 = (GLuaVec_t *)lua_newuserdata(L,12);
vec2->x = vec1->x * factor;
vec2->y = vec1->y * factor;
vec2->z = vec1->z * factor;
luaL_getmetatable(L,"Vector");
lua_setmetatable(L,-2);
return 1;
}
// vector.__div(vec1, num)
static int GLua_Vector_Div(lua_State *L) {
GLuaVec_t *vec1;
GLuaVec_t *vec2;
float factor;
vec1 = GLua_CheckVector(L,1);
factor = luaL_checknumber(L,2);
vec2 = (GLuaVec_t *)lua_newuserdata(L,12);
vec2->x = vec1->x / factor;
vec2->y = vec1->y / factor;
vec2->z = vec1->z / factor;
luaL_getmetatable(L,"Vector");
lua_setmetatable(L,-2);
return 1;
}
// vector.Length(vec1)
static int GLua_Vector_Length(lua_State *L) {
GLuaVec_t *vec;
vec = GLua_CheckVector(L,1);
lua_pushnumber(L, sqrt((vec->x * vec->x)+(vec->y * vec->y)+(vec->z * vec->z)));
return 1;
}
// vector.Normalize(vec1/self)
static int GLua_Vector_Normalize(lua_State *L) {
GLuaVec_t *self;
double len;
self = GLua_CheckVector(L,1);
len = sqrt((self->x * self->x)+(self->y * self->y)+(self->z * self->z));
self->x = self->x / len;
self->y = self->y / len;
self->z = self->z / len;
return 0;
}
// vector.GetNormalize(vec1/self)
static int GLua_Vector_GetNormalized(lua_State *L) {
GLuaVec_t *vec1;
GLuaVec_t *vec2;
double len;
vec1 = GLua_CheckVector(L,1);
len = sqrt((vec1->x * vec1->x)+(vec1->y * vec1->y)+(vec1->z * vec1->z));
vec2 = (GLuaVec_t *)lua_newuserdata(L,12);
vec2->x = vec1->x / len;
vec2->y = vec1->y / len;
vec2->z = vec1->z / len;
luaL_getmetatable(L,"Vector");
lua_setmetatable(L,-2);
return 1;
}
// vector.DotProduct(vec1/self, vec2)
static int GLua_Vector_DotProduct(lua_State *L) {
GLuaVec_t *vec1;
GLuaVec_t *vec2;
vec1 = GLua_CheckVector(L,1);
vec2 = GLua_CheckVector(L,2);
return vec1->x*vec2->x + vec1->y*vec2->y + vec1->z*vec2->z;
}
// vector.Distance(self, vec)
static int GLua_Vector_Distance(lua_State *L) {
GLuaVec_t *self;
GLuaVec_t *vec;
GLuaVec_t distvec;
self = GLua_CheckVector(L,1);
vec = GLua_CheckVector(L,2);
distvec.x = self->x - vec->x;
distvec.y = self->y - vec->y;
distvec.z = self->z - vec->z;
return sqrt(distvec.x*distvec.x + distvec.y*distvec.y + distvec.z*distvec.z);
}
// vector.CrossProduct(self, vec)
static int GLua_Vector_CrossProduct(lua_State *L) {
GLuaVec_t *self;
GLuaVec_t *vec;
GLuaVec_t *vec2;
self = GLua_CheckVector(L,1);
vec = GLua_CheckVector(L,2);
vec2 = (GLuaVec_t *)lua_newuserdata(L,12);
vec2->x = self->y*vec->z - self->z*vec->y;
vec2->y = self->z*vec->x - self->x*vec->z;
vec2->z = self->x*vec->y - self->y*vec->x;
luaL_getmetatable(L,"Vector");
lua_setmetatable(L,-2);
return 1;
}
//cross[0] = v1[1]*v2[2] - v1[2]*v2[1];
//cross[1] = v1[2]*v2[0] - v1[0]*v2[2];
//cross[2] = v1[0]*v2[1] - v1[1]*v2[0];
// vector.add(self, vec)
static int GLua_Vector_Add2(lua_State *L) {
GLuaVec_t *self;
GLuaVec_t *vec;
self = GLua_CheckVector(L,1);
vec = GLua_CheckVector(L,2);
self->x += vec->x;
self->y += vec->y;
self->z += vec->z;
return 0;
}
// vector.sub(self, vec)
static int GLua_Vector_Sub2(lua_State *L) {
GLuaVec_t *self;
GLuaVec_t *vec;
self = GLua_CheckVector(L,1);
vec = GLua_CheckVector(L,2);
self->x -= vec->x;
self->y -= vec->y;
self->z -= vec->z;
return 0;
}
// vector.Scale(self, scale)
static int GLua_Vector_Scale(lua_State *L) {
GLuaVec_t *self;
float scale;
self = GLua_CheckVector(L,1);
scale = luaL_checknumber(L,2);
self->x *= scale;
self->y *= scale;
self->z *= scale;
return 0;
}
static int GLua_Vector_ToAngles(lua_State *L) {
GLuaVec_t *self;
vec3_t vec2;
self = GLua_CheckVector(L,1);
vectoangles((void *)self, vec2);
self->x = vec2[0];
self->y = vec2[1];
self->z = vec2[2];
return 0;
}
static int GLua_Vector_ToForward(lua_State *L) {
GLuaVec_t *self;
vec3_t vec;
vec3_t vec2;
self = GLua_CheckVector(L,1);
vec[0] = self->x;
vec[1] = self->y;
vec[2] = self->z;
AngleVectors(vec, vec2, NULL, NULL);
self->x = vec2[0];
self->y = vec2[1];
self->z = vec2[2];
return 0;
}
static int GLua_Vector_ToRight(lua_State *L) {
GLuaVec_t *self;
vec3_t vec;
vec3_t vec2;
self = GLua_CheckVector(L,1);
vec[0] = self->x;
vec[1] = self->y;
vec[2] = self->z;
AngleVectors(vec, NULL, vec2, NULL);
self->x = vec2[0];
self->y = vec2[1];
self->z = vec2[2];
return 0;
}
static int GLua_Vector_ToUp(lua_State *L) {
GLuaVec_t *self;
vec3_t vec;
vec3_t vec2;
self = GLua_CheckVector(L,1);
vec[0] = self->x;
vec[1] = self->y;
vec[2] = self->z;
AngleVectors(vec, NULL, NULL, vec2);
self->x = vec2[0];
self->y = vec2[1];
self->z = vec2[2];
return 0;
}
static int GLua_Vector_GetAngles(lua_State *L) {
GLuaVec_t *self;
GLuaVec_t *vec;
vec3_t vec2;
self = GLua_CheckVector(L,1);
vectoangles((void *)self, vec2);
vec = (GLuaVec_t *)lua_newuserdata(L,12);
vec->x = vec2[0];
vec->y = vec2[1];
vec->z = vec2[2];
luaL_getmetatable(L,"Vector");
lua_setmetatable(L,-2);
return 1;
}
static int GLua_Vector_GetForward(lua_State *L) {
GLuaVec_t *self;
GLuaVec_t *vec3;
vec3_t vec;
vec3_t vec2;
self = GLua_CheckVector(L,1);
vec[0] = self->x;
vec[1] = self->y;
vec[2] = self->z;
AngleVectors(vec, vec2, NULL, NULL);
vec3 = (GLuaVec_t *)lua_newuserdata(L,12);
vec3->x = vec2[0];
vec3->y = vec2[1];
vec3->z = vec2[2];
luaL_getmetatable(L,"Vector");
lua_setmetatable(L,-2);
return 1;
}
static int GLua_Vector_GetRight(lua_State *L) {
GLuaVec_t *self;
GLuaVec_t *vec3;
vec3_t vec;
vec3_t vec2;
self = GLua_CheckVector(L,1);
vec[0] = self->x;
vec[1] = self->y;
vec[2] = self->z;
AngleVectors(vec, NULL, vec2, NULL);
vec3 = (GLuaVec_t *)lua_newuserdata(L,12);
vec3->x = vec2[0];
vec3->y = vec2[1];
vec3->z = vec2[2];
luaL_getmetatable(L,"Vector");
lua_setmetatable(L,-2);
return 1;
}
static int GLua_Vector_GetUp(lua_State *L) {
GLuaVec_t *self;
GLuaVec_t *vec3;
vec3_t vec;
vec3_t vec2;
self = GLua_CheckVector(L,1);
vec[0] = self->x;
vec[1] = self->y;
vec[2] = self->z;
AngleVectors(vec, NULL, NULL, vec2);
vec3 = (GLuaVec_t *)lua_newuserdata(L,12);
vec3->x = vec2[0];
vec3->y = vec2[1];
vec3->z = vec2[2];
luaL_getmetatable(L,"Vector");
lua_setmetatable(L,-2);
return 1;
}
static int GLua_Vector_Copy(lua_State *L) {
GLuaVec_t *self;
GLuaVec_t *vec2;
self = GLua_CheckVector(L,1);
vec2 = (GLuaVec_t *)lua_newuserdata(L,12);
vec2->x = self->x;
vec2->y = self->y;
vec2->z = self->z;
luaL_getmetatable(L,"Vector");
lua_setmetatable(L,-2);
return 1;
}
static const struct luaL_reg vector_m [] = {
{"__index", GLua_Vector_Index},
{"__newindex", GLua_Vector_NewIndex},
{"__add", GLua_Vector_Add},
{"__sub", GLua_Vector_Sub},
{"__eq", GLua_Vector_Eq},
{"__mul", GLua_Vector_Mul},
{"__div", GLua_Vector_Div},
{"__tostring", GLua_Vector_ToString},
{"Sub", GLua_Vector_Sub2},
{"Add", GLua_Vector_Add2},
{"Scale", GLua_Vector_Scale},
{"Length", GLua_Vector_Length},
{"Normalize", GLua_Vector_Normalize},
{"GetNormalized", GLua_Vector_GetNormalized},
{"DotProduct", GLua_Vector_DotProduct},
{"CrossProduct", GLua_Vector_CrossProduct},
{"ToAngles", GLua_Vector_ToAngles},
{"ToForward", GLua_Vector_ToForward},
{"ToRight", GLua_Vector_ToRight},
{"ToUp", GLua_Vector_ToUp},
{"GetAngles", GLua_Vector_GetAngles},
{"GetForward", GLua_Vector_GetForward},
{"GetRight", GLua_Vector_GetRight},
{"GetUp", GLua_Vector_GetUp},
{"Copy", GLua_Vector_Copy},
{NULL, NULL},
};
// Registration
void GLua_Define_Vector(lua_State *L) {
STACKGUARD_INIT(L)
lua_pushcclosure(L,GLua_Vector_Create,0);
lua_setglobal(L,"Vector");
luaL_newmetatable(L,"Vector");
luaL_register(L, NULL, vector_m);
lua_pushstring(L,"ObjID");
lua_pushinteger(L,GO_VECTOR);
lua_settable(L,-3);
lua_pushstring(L,"ObjName");
lua_pushstring(L,"Vector");
lua_settable(L,-3);
lua_pop(L,1);
STACKGUARD_CHECK(L)
} | [
"[email protected]"
] | |
92c43044d134cd9a252af0cfd514b52eaf14c263 | 65f9576021285bc1f9e52cc21e2d49547ba77376 | /adsp_proc/core/services/diag/f3_trace/src/diag_f3_tracei.h | de2847ef0e116de54201ffbb4b00adbf63935ace | [] | no_license | AVCHD/qcs605_root_qcom | 183d7a16e2f9fddc9df94df9532cbce661fbf6eb | 44af08aa9a60c6ca724c8d7abf04af54d4136ccb | refs/heads/main | 2023-03-18T21:54:11.234776 | 2021-02-26T11:03:59 | 2021-02-26T11:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 14,076 | h | #ifndef DIAG_F3_TRACEI_H
#define DIAG_F3_TRACEI_H
/*====*====*====*====*====*====*====*====*====*====*====*====*====*====*====*
Diag debug subsystem dispatch handling
GENERAL DESCRIPTION
Packet processing routines for FEATURE_SAVE_DEBUG_TRACE and
FEATURE_SAVE_DEBUG_TRACE.
INITIALIZATION AND SEQUENCING REQUIREMENTS
No requirements
Copyright (c) 2004 - 2014, 2016-2017 by QUALCOMM Technologies, Incorporated. All Rights Reserved.
*====*====*====*====*====*====*====*====*====*====*====*====*====*====*====*/
/*==========================================================================
EDIT HISTORY FOR MODULE
$Header: //components/rel/core.qdsp6/2.1/services/diag/f3_trace/src/diag_f3_tracei.h#2 $
when who what, where, why
-------- --- ------------------------------------------------------------
06/08/17 gn Added support for diag services to uImage
06/05/17 nk Added debug support for uimage in root PD
10/24/16 gn Changes to support common PW for ADSP, CDSP and SLPI
12/17/14 ph Mainlined the feature FEATURE_SAVE_TRACE_ON_BY_DEFAULT.
11/18/13 ph Remove intermediate buffer in F3 Trace as part of optimization.
05/02/13 sa Using the reserved bit in the diag detail nv item to save the custom F3s
12/21/12 rh Renamed several err_f3_trace_ types to diag_f3_trace_
12/19/12 rh File renamed to diag_f3_tracei.h and moved to Services
12/14/09 tbg File renamed to err_f3_trace.c; APIs and variables
renamed accordingly.
11/30/09 ps Fixed compiler warnings & added F3trace support(SW).
09/09/09 jwh Add FEATURE_DOGTEST_TASK code.
10/03/08 vg Updated code to use PACK() vs. PACKED
04/24/08 tbg Created err_f3_trace_id_type to help id source build for logs
12/19/06 as Reverted FEATURE_ERR_SMALL_BUFFER change.
12/18/06 as Added support to decrease buffer size under
FEATURE_ERR_SMALL_BUFFER.
04/06/06 tbg Allow optional external definitions of default CONTROL and
DETAIL values. Only applicable if the feature
FEATURE_SAVE_TRACE_ON_BY_DEFAULT is defined.
11/11/05 tbg Changed naming conventions of err f3 trace files.
10/04/05 tbg Added ability to turn on F3 trace saving by default,
if FEATURE_SAVE_TRACE_ON_BY_DEFAULT is defined
08/11/05 eav Added ERR_F3_TRACE_BUFFER_CORRUPTED
11/30/04 as Added FEATURE_AUTO_RESET. This feature resets the phone
automatically without user intervention if the phone
encounters a critical failure
08/26/04 eav Added support for timestamp-saving optimizations
05/20/04 eav Added supp rt to event-tracing. Added support to put
event trace and F3 trace into a single trace buffer.
05/07/04 eav File created.
===========================================================================*/
/*===========================================================================
INCLUDE FILES FOR MODULE
===========================================================================*/
#ifdef CUST_H
#include "customer.h"
#endif
//#ifdef FEATURE_ERR_HAS_F3_TRACE
#include "diagpkt.h"
#include "qw.h"
#include "diag_param.h"
#include "osal.h"
/*===========================================================================
LOCAL DEFINITIONS AND DECLARATIONS FOR MODULE
===========================================================================*/
/* Unified trace buffer constants */
#ifdef DIAG_UIMAGE_MODE
#ifndef DIAG_UIMAGE_F3_TRACE_BUFFER_SIZE
#define DIAG_UIMAGE_F3_TRACE_BUFFER_SIZE (1024*8)
#endif
#endif
#define DIAG_F3_TRACE_BUFFER_CORRUPTED -2
#define DIAG_F3_TRACE_FAILURE -1
#define DIAG_F3_TRACE_SUCCESS 0
/* Allow targets to define these values in other header files if needed.
* Values will not be redefined if they already exist. */
#ifndef DIAG_F3_TRACE_CONTROL_MASK_DEFAULT_VAL
/* For backwards compatability, check old define first */
#ifdef ERR_DEBUG_CONTROL_MASK_DEFAULT_VAL
#define DIAG_F3_TRACE_CONTROL_MASK_DEFAULT_VAL ERR_DEBUG_CONTROL_MASK_DEFAULT_VAL
#else
#define DIAG_F3_TRACE_CONTROL_MASK_DEFAULT_VAL 0x1
#endif
#endif
#ifndef DIAG_F3_TRACE_DETAIL_MASK_DEFAULT_VAL
/* For backwards compatability, check old define first */
#ifdef ERR_DEBUG_DETAIL_MASK_DEFAULT_VAL
#define DIAG_F3_TRACE_DETAIL_MASK_DEFAULT_VAL ERR_DEBUG_DETAIL_MASK_DEFAULT_VAL
#else
#define DIAG_F3_TRACE_DETAIL_MASK_DEFAULT_VAL 0xFF
#endif
#endif
#define MAX_8BIT_VALUE 255
#define MAX_16BIT_VALUE 65535
#define MAX_24BIT_VALUE 16777215
#define MAX_32BIT_VALUE 4294967295
#define DIAG_F3_TRACE_SAVECUSTOM_BIT 0x4
#define DIAG_F3_TRACE_SAVETIME 0x2
#define DIAG_F3_TRACE_SAVEVARS 0x1
#if defined(DIAG_UIMAGE_MODE) || defined(DIAG_QTIMER_MODE)
#define DIAG_F3_TRACE_QTIMER_BIT 0x1
#else
#define DIAG_F3_TRACE_QTIMER_BIT 0x0
#endif
/* Format of diag_f3_trace_hdr_type:
* header_flag: 32 bit value indicating the start of a message
*
* config: 16 bit field containing the following information:
* Bits 15:13 Type Field (Event, Msg, etc.)
* Bits 11:8 Number of arguments Field
* Bits 7:4 Message Type Field (Standard MSG/Qshrink MSG)
* Bits 3:0 Details Field
* Bit 3:2 "Byte Sized Arguments" Field
* Bit 1 Save Time flag
* Bit 0 Save Vars flag
*/
#define DIAG_F3_TRACE_VALID_HEADER_FLAG 0xA55A6BB6
typedef PACK(struct)
{
uint32 header_flag;
uint16 config;
} diag_f3_trace_hdr_type;
typedef PACK(struct)
{
uint16 lo; /* Most significant of the lower 32 bits */
uint32 hi; /* Most significant bytes of a qword timestamp */
} diag_f3_trace_tstamp_type;
#define DIAG_F3_TRACE_MAX_ID_LENGTH 40
typedef struct
{
uint64 timestamp;
uint32 buffer_ptr;
uint8 build[DIAG_F3_TRACE_MAX_ID_LENGTH];
} err_f3_trace_id_type;
typedef uint32 msg_arg_type;
typedef uint16 evt_id_type;
typedef uint16 evt_length_type;
typedef uint8 evt_payload_type;
typedef uint8 evt_payload_len_type;
enum
{
DIAG_F3_TRACE_STANDARD = 0,
DIAG_F3_TRACE_QSHRINK,
DIAG_F3_TRACE_QSHRINK20,
DIAG_F3_TRACE_LAST
};
#define DIAG_F3_TRACE_MSG_BIT 0x1
#define DIAG_F3_TRACE_LOG_BIT 0x2
#define DIAG_F3_TRACE_EVT_BIT 0x4
#define DIAG_F3_TRACE_DIAG_MASK_BIT 0x8
/* Return the number of events in the stored trace.
*/
typedef PACK(struct)
{
diagpkt_subsys_header_type hdr;
} diag_serv_range_req_type;
typedef PACK(struct)
{
diagpkt_subsys_header_type hdr;
uint32 status; /* 0 if no error; otherwise an error code */
uint32 num_types; /* Number of events */
} diag_serv_range_rsp_type;
/* Retrieve a range of types.
*/
typedef PACK(struct)
{
diagpkt_subsys_header_type hdr;
uint32 index; /* Index of event to retrieve */
} diag_serv_fetch_req_type;
/* Holds all information the DM needs to display an event
*/
typedef PACK(struct)
{
uint16 evt_id; /* ID of the event sent over */
uint64 ts; /* FULL timestamp (CDMA format) */
/* length and payload follow if included in this event_id */
} diag_serv_evt_struct_type;
/* Holds all information the DM needs to display a message. Conforms
* to the Extended Message packet format described in the DMSS-SICD,
* section 3.4.121.
*/
typedef PACK(struct)
{
uint8 cmd_code; /* 121 (0x79) */
uint8 ts_type; /* indicates format of the TIME field */
uint8 num_args; /* Number of arguments */
uint8 drop_cnt; /* Number of messages dropped */
uint64 ts; /* Message timestamp (CDMA format) */
uint16 line; /* Line number */
uint16 ss_id;
uint32 ss_mask;
uint32 args[1]; /* Zero or more arguments */
/* This field is followed by NULL-terminated format and filename
* strings.
*/
} diag_serv_full_msg_struct_type;
/* Holds all information the DM needs to display a qsr message. Conforms
* to the Qshrink Extended Message packet format described in the DMSS-SICD,
* section 3.4.146.
*/
typedef PACK(struct)
{
uint8 cmd_code; /* 146 (0x92) */
uint8 ts_type; /* indicates format of the TIME field */
uint8 num_args; /* Number of arguments */
uint8 drop_cnt; /* Number of messages dropped */
uint64 ts; /* Message timestamp (CDMA format) */
uint16 line; /* Line number */
uint16 ss_id;
uint32 ss_mask;
uint32 hash;
uint32 args[1]; /* Zero or more arguments */
} diag_serv_qsr_msg_struct_type;
/* Holds all information the DM needs to display an event. Conforms
* to the event packet format described in the DMSS-ICD, section 3.4.95.
*/
typedef PACK(struct)
{
uint8 cmd_code; /* 96 (0x60) */
uint16 length; /* Length of packet */
diag_serv_evt_struct_type event;
} diag_serv_full_evt_struct_type;
/* Return a list of all F3 filenames
*/
typedef PACK(struct)
{
diagpkt_subsys_header_type hdr;
uint32 status;
uint8 num_files;
uint64 timestamps[1];
} diag_serv_file_names_rsp_type;
/* Request the number of records stored in filename. All subsequent calls
* of get_next will be retrieved from this filename. The response to this
* packet will be diag_serv_range_rsp_type.
*/
typedef PACK(struct)
{
diagpkt_subsys_header_type hdr;
uint8 file_index; /* unique file index */
} diag_serv_file_range_req_type;
/* Delete specified trace file by filename index. Response packet will be
* the diag_serv_reset_info_rsp_type.
*/
typedef PACK(struct)
{
diagpkt_subsys_header_type hdr;
uint8 file_index; /* unique file index */
} diag_serv_file_reset_info_req_type;
typedef PACK(struct)
{
diagpkt_subsys_header_type hdr;
uint32 index; /* Index of retreived event */
uint8 type;
uint32 status; /* 0 if no error; otherwise an error code */
PACK(union)
{
diag_serv_full_msg_struct_type full_msg; /* Retrieved full F3 message */
diag_serv_qsr_msg_struct_type qsr_msg; /* Retrieved full qsr F3 message */
diag_serv_full_evt_struct_type full_evt; /* Retrieved full event */
} diag_serv_fetch_type;
} diag_serv_fetch_rsp_type;
/* Delete all trace information by deleting the trace file.
*/
typedef PACK(struct)
{
diagpkt_subsys_header_type hdr;
} diag_serv_reset_info_req_type;
typedef PACK(struct)
{
diagpkt_subsys_header_type hdr;
uint32 status; /* 0 if no error; otherwise an error code */
} diag_serv_reset_info_rsp_type;
/* Enum and variable for tracking what the current source of configuration values is
*/
enum {
DIAG_F3_TRACE_CONFIG_DEFAULT,
DIAG_F3_TRACE_CONFIG_NV,
DIAG_F3_TRACE_CONFIG_DEVCFG,
DIAG_F3_TRACE_CONFIG_CMD
};
extern uint32 diag_f3_trace_config_source;
/* Enum to help identify which time format/source to use when
saving to f3 trace */
typedef enum
{
DIAG_F3_TRACE_MSG_TIME, /* Use standard time (msg_get_time) */
DIAG_F3_TRACE_UIMAGE_QTIMER, /* uImage Qtimer time */
DIAG_F3_TRACE_QTIMER, /* Standard Qtimer time */
} diag_f3_trace_time_enum_type;
#define DIAG_F3_TRACE_MSG_TIME_SIZE sizeof(diag_f3_trace_tstamp_type)
#define DIAG_F3_TRACE_UIMAGE_QTIMER_SIZE 6
#define DIAG_F3_TRACE_QTIMER_SIZE 6
/* Handle to manage separate F3 trace buffers.
Currently maintains information specific to the buffer itself.
Masks are still global, but could be migrated to this control structure as a future enhancement.
*/
typedef struct
{
boolean buffer_initialized;
osal_atomic_word_t buffer_init_begin;
boolean wrap_flag;
diag_f3_trace_time_enum_type time_format;
uint8* buffer;
uint32 buffer_head;
uint32 buffer_size;
} diag_f3_trace_handle;
/*===========================================================================
FUNCTION DIAG_F3_TRACE_INIT
DESCRIPTION
Initialization function for this module. Registers the packet handlers.
Reads the diag_debug NV Item to set the run time mask.
DEPENDENCIES
None
RETURN VALUE
None
SIDE EFFECTS
None
===========================================================================*/
void diag_f3_trace_init(void);
// MIGRATION NOTE: recover_f3.cmm uses existence of this symbol to identify lockless design
void err_f3_save_msg(diag_f3_trace_handle *h, const void * constant_data_ptr, msg_arg_type * args, uint8 nargs, void * msg, uint32 type);
/*===========================================================================
FUNCTION DIAG_F3_TRACE_SAVE_TO_SMEM
DESCRIPTION
Saves the F3 trace to smem buffer
DEPENDENCIES
None
RETURN VALUE
None
SIDE EFFECTS
None
===========================================================================*/
void diag_f3_trace_save_to_smem(void);
/*===========================================================================
FUNCTION DIAG_F3_TRACE_INIT_CONFIGS
DESCRIPTION
Initializes the configuration values.
This is designed as a singleton operation. The first call will lock the
configuration. Thus allowing a priority chain, with highest priority
method called first.
DEPENDENCIES
This function is not mutex protected. It is assumed it will only be
called from serialized init functions (tmc/rcinit).
RETURN VALUE
None
SIDE EFFECTS
None
===========================================================================*/
void diag_f3_trace_init_configs(uint32 control, uint32 detail);
//accessor for lock state
boolean diag_f3_trace_configs_locked(void);
// #endif /* FEATURE_ERR_HAS_F3_TRACE */
#endif /* DIAG_F3_TRACEI_H */
| [
"[email protected]"
] | |
cb1455ea472f27c92f2a89afe8cbd86c720693b7 | 40de3da30239862f11a946166b50438174c2fd4e | /lib/wizards/merak/areas/village/rooms/eastercr1.c | 77c499788e4bbef9824721feac094468f262eb6f | [
"MIT"
] | permissive | vlehtola/questmud | f53b7205351f30e846110300d60b639d52d113f8 | 8bc3099b5ad00a9e0261faeb6637c76b521b6dbe | refs/heads/master | 2020-12-23T19:59:44.886028 | 2020-01-30T15:52:16 | 2020-01-30T15:52:16 | 237,240,459 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 297 | c | /* east chori road 1 */
inherit "room/room";
reset(arg) {
add_exit("west","/wizards/merak/areas/village/rooms/msquare4");
add_exit("east","/wizards/merak/areas/village/rooms/eastercr2");
short_desc = "Southern part of the market square";
long_desc =
"TODO TODO TODO TODO TODO TODO\n";
} | [
"[email protected]"
] | |
6ce9dde1261059afbd6d89e24d7b986c20272099 | f4ea6db9183b38e0cb1af1d317b0a02db24455d1 | /mud/lp-245/sys/tls.h | 92d51f668fd3cb26997cfb292dbe73869a33378a | [
"BSD-3-Clause",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | ldmud/ldmud | 1446ff7101f5a47ee1dfa4cfb97d5a326f2edcce | f1cfc9a8d911412d854055058889bb32432da2db | refs/heads/master | 2023-05-25T00:36:28.318383 | 2023-02-14T21:07:35 | 2023-02-18T10:20:44 | 1,085,012 | 124 | 71 | NOASSERTION | 2023-09-01T16:54:48 | 2010-11-16T12:13:17 | C | UTF-8 | C | false | false | 1,493 | h | #ifndef LPC_TLS_H
#define LPC_TLS_H
/* Field indices for the result of tls_query_connection_info() */
#define TLS_CIPHER 0
#define TLS_COMP 1
#define TLS_KX 2
#define TLS_MAC 3
#define TLS_PROT 4
#define TLS_INFO_MAX 5 /* Total number of result fields */
/* Interpretation of the cipher information */
#define TLS_CIPHER_TABLE ({ \
"TLS_CIPHER_NONE", \
"TLS_CIPHER_NULL", \
"TLS_CIPHER_ARCFOUR_128", \
"TLS_CIPHER_3DES_CBC", \
"TLS_CIPHER_RIJNDAEL_128_CBC", \
"TLS_CIPHER_RIJNDAEL_256_CBC", \
"TLS_CIPHER_ARCFOUR_40" \
})
#define TLS_CIPHER_NAME(x) TLS_CIPHER_TABLE[(x)]
/* Interpretation of the key-exchange information */
#define TLS_KX_TABLE ({ \
"TLS_KX_NONE", \
"TLS_KX_RSA", \
"TLS_KX_DHE_DSS", \
"TLS_KX_DHE_RSA", \
"TLS_KX_ANON_DH", \
"TLS_KX_SRP", \
"TLS_KX_RSA_EXPORT", \
"TLS_KX_SRP_RSA", \
"TLS_KX_SRP_DSS" \
})
#define TLS_KX_NAME(x) TLS_KX_TABLE[(x)]
/* Interpretation of the MAC information */
#define TLS_MAC_TABLE ({ \
"TLS_MAC_NONE", \
"TLS_MAC_NULL", \
"TLS_MAC_MD5", \
"TLS_MAC_SHA" \
})
#define TLS_MAC_NAME(x) TLS_MAC_TABLE[(x)]
/* Interpretation of the compression information */
#define TLS_COMP_TABLE ({ \
"TLS_COMP_NONE", \
"TLS_COMP_NULL", \
"TLS_COMP_ZLIB", \
"TLS_COMP_LZO" \
})
#define TLS_COMP_NAME(x) TLS_COMP_TABLE[(x)]
/* Interpretation of the protocol information */
#define TLS_PROT_TABLE ({ \
"TLS_PROT_NONE", \
"TLS_PROT_SSL3", \
"TLS_PROT_TLS1" \
})
#define TLS_PROT_NAME(x) TLS_PROT_TABLE[(x)]
#endif /* LPC_TLS_H */
| [
"[email protected]"
] | |
1a4a17e8ae237c49d371394205393fc980e60986 | 51635684d03e47ebad12b8872ff469b83f36aa52 | /external/gcc-12.1.0/gcc/testsuite/gcc.target/arm/mve/intrinsics/vmvnq_x_s16.c | d4b87a795fc336b647004aa86f828ef0175eb593 | [
"FSFAP",
"LGPL-2.1-only",
"LGPL-3.0-only",
"GPL-3.0-only",
"GPL-2.0-only",
"GCC-exception-3.1",
"LGPL-2.0-or-later",
"Zlib",
"LicenseRef-scancode-public-domain"
] | permissive | zhmu/ananas | 8fb48ddfe3582f85ff39184fc7a3c58725fe731a | 30850c1639f03bccbfb2f2b03361792cc8fae52e | refs/heads/master | 2022-06-25T10:44:46.256604 | 2022-06-12T17:04:40 | 2022-06-12T17:04:40 | 30,108,381 | 59 | 8 | Zlib | 2021-09-26T17:30:30 | 2015-01-31T09:44:33 | C | UTF-8 | C | false | false | 495 | c | /* { dg-require-effective-target arm_v8_1m_mve_ok } */
/* { dg-add-options arm_v8_1m_mve } */
/* { dg-additional-options "-O2" } */
#include "arm_mve.h"
int16x8_t
foo (int16x8_t a, mve_pred16_t p)
{
return vmvnq_x_s16 (a, p);
}
/* { dg-final { scan-assembler "vpst" } } */
/* { dg-final { scan-assembler "vmvnt" } } */
int16x8_t
foo1 (int16x8_t a, mve_pred16_t p)
{
return vmvnq_x (a, p);
}
/* { dg-final { scan-assembler "vpst" } } */
/* { dg-final { scan-assembler "vmvnt" } } */
| [
"[email protected]"
] | |
c3906466632968430e1c92f721ce830d1052746e | 2c78de0b151238b1c0c26e6a4d1a36c7fa09268c | /garantPIL/implementation/component/cpp/libs/gc/src/topic_t.h | cde6fd3ef3529ab2bdbb9bb2be9f6ab0225179bb | [] | no_license | bravesoftdz/realwork | 05a3b308cef59bed8a9efda4212849c391b4b267 | 19b446ce8ad2adf82ab8ce7988bc003221accad2 | refs/heads/master | 2021-06-07T23:57:22.429896 | 2016-11-01T18:30:21 | 2016-11-01T18:30:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 157 | h | /*
* $Id: topic_t.h,v 1.1 2000/06/19 14:08:09 taurus Exp $
*/
#ifndef _topic_t_h
#define _topic_t_h
#include "osdep.h"
typedef u_int32_t topic_t;
#endif
| [
"[email protected]"
] | |
f3b1842e60758f51d917c320b650c0477ad62ccc | b17ffdfb22891da0a35bd342330f944dc4f7dda3 | /firmware/freertos/create_task/lib/FreeRTOSV8.2.3/FreeRTOS/Demo/CORTEX_A9_Zynq_ZC702/RTOSDemo_bsp/ps7_cortexa9_0/libsrc/uartps_v2_1/src/xuartps_intr.c | 31ddcaaf3a32f03373a13f75a9d0aca75164163a | [
"MIT",
"GPL-2.0-or-later",
"freertos-exception-2.0"
] | permissive | YuehChuan/stm32f4_practice | 8ca786ce5014e85573ef7d5ae155ddd98894dda1 | 77fd51eeadb8e912f16a021d857e5520fcdabf8c | refs/heads/master | 2020-12-05T23:52:34.223248 | 2020-01-07T08:54:09 | 2020-01-07T08:54:09 | 232,281,583 | 0 | 0 | MIT | 2020-01-07T08:43:41 | 2020-01-07T08:43:40 | null | UTF-8 | C | false | false | 13,531 | c | /******************************************************************************
*
* Copyright (C) 2010 - 2014 Xilinx, Inc. All rights reserved.
*
* 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.
*
* Use of the Software is limited solely to applications:
* (a) running on a Xilinx device, or
* (b) that interact with a Xilinx device through a bus or interconnect.
*
* 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
* XILINX 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.
*
* Except as contained in this notice, the name of the Xilinx shall not be used
* in advertising or otherwise to promote the sale, use or other dealings in
* this Software without prior written authorization from Xilinx.
*
******************************************************************************/
/****************************************************************************/
/**
*
* @file xuartps_intr.c
*
* This file contains the functions for interrupt handling
*
* <pre>
* MODIFICATION HISTORY:
*
* Ver Who Date Changes
* ----- ------ -------- -----------------------------------------------
* 1.00 drg/jz 01/13/10 First Release
* </pre>
*
*****************************************************************************/
/***************************** Include Files ********************************/
#include "xuartps.h"
/************************** Constant Definitions ****************************/
/**************************** Type Definitions ******************************/
/***************** Macros (Inline Functions) Definitions ********************/
/************************** Function Prototypes *****************************/
static void ReceiveDataHandler(XUartPs *InstancePtr);
static void SendDataHandler(XUartPs *InstancePtr, u32 isrstatus);
static void ReceiveErrorHandler(XUartPs *InstancePtr);
static void ReceiveTimeoutHandler(XUartPs *InstancePtr);
static void ModemHandler(XUartPs *InstancePtr);
/* Internal function prototypes implemented in xuartps.c */
extern unsigned int XUartPs_ReceiveBuffer(XUartPs *InstancePtr);
extern unsigned int XUartPs_SendBuffer(XUartPs *InstancePtr);
/************************** Variable Definitions ****************************/
typedef void (*Handler)(XUartPs *InstancePtr);
/****************************************************************************/
/**
*
* This function gets the interrupt mask
*
* @param InstancePtr is a pointer to the XUartPs instance.
*
* @return
* The current interrupt mask. The mask indicates which interupts
* are enabled.
*
* @note None.
*
*****************************************************************************/
u32 XUartPs_GetInterruptMask(XUartPs *InstancePtr)
{
/*
* Assert validates the input argument
*/
Xil_AssertNonvoid(InstancePtr != NULL);
/*
* Read the Interrupt Mask register
*/
return (XUartPs_ReadReg(InstancePtr->Config.BaseAddress,
XUARTPS_IMR_OFFSET));
}
/****************************************************************************/
/**
*
* This function sets the interrupt mask.
*
* @param InstancePtr is a pointer to the XUartPs instance
* @param Mask contains the interrupts to be enabled or disabled.
* A '1' enables an interupt, and a '0' disables.
*
* @return None.
*
* @note None.
*
*****************************************************************************/
void XUartPs_SetInterruptMask(XUartPs *InstancePtr, u32 Mask)
{
/*
* Assert validates the input arguments
*/
Xil_AssertVoid(InstancePtr != NULL);
Mask &= XUARTPS_IXR_MASK;
/*
* Write the mask to the IER Register
*/
XUartPs_WriteReg(InstancePtr->Config.BaseAddress,
XUARTPS_IER_OFFSET, Mask);
/*
* Write the inverse of the Mask to the IDR register
*/
XUartPs_WriteReg(InstancePtr->Config.BaseAddress,
XUARTPS_IDR_OFFSET, (~Mask));
}
/****************************************************************************/
/**
*
* This function sets the handler that will be called when an event (interrupt)
* occurs that needs application's attention.
*
* @param InstancePtr is a pointer to the XUartPs instance
* @param FuncPtr is the pointer to the callback function.
* @param CallBackRef is the upper layer callback reference passed back
* when the callback function is invoked.
*
* @return None.
*
* @note
*
* There is no assert on the CallBackRef since the driver doesn't know what it
* is (nor should it)
*
*****************************************************************************/
void XUartPs_SetHandler(XUartPs *InstancePtr, XUartPs_Handler FuncPtr,
void *CallBackRef)
{
/*
* Asserts validate the input arguments
* CallBackRef not checked, no way to know what is valid
*/
Xil_AssertVoid(InstancePtr != NULL);
Xil_AssertVoid(FuncPtr != NULL);
Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
InstancePtr->Handler = FuncPtr;
InstancePtr->CallBackRef = CallBackRef;
}
/****************************************************************************/
/**
*
* This function is the interrupt handler for the driver.
* It must be connected to an interrupt system by the application such that it
* can be called when an interrupt occurs.
*
* @param InstancePtr contains a pointer to the driver instance
*
* @return None.
*
* @note None.
*
******************************************************************************/
void XUartPs_InterruptHandler(XUartPs *InstancePtr)
{
u32 IsrStatus;
Xil_AssertVoid(InstancePtr != NULL);
Xil_AssertVoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
/*
* Read the interrupt ID register to determine which
* interrupt is active
*/
IsrStatus = XUartPs_ReadReg(InstancePtr->Config.BaseAddress,
XUARTPS_IMR_OFFSET);
IsrStatus &= XUartPs_ReadReg(InstancePtr->Config.BaseAddress,
XUARTPS_ISR_OFFSET);
/*
* Dispatch an appropiate handler.
*/
if(0 != (IsrStatus & (XUARTPS_IXR_RXOVR | XUARTPS_IXR_RXEMPTY |
XUARTPS_IXR_RXFULL))) {
/* Recieved data interrupt */
ReceiveDataHandler(InstancePtr);
}
if(0 != (IsrStatus & (XUARTPS_IXR_TXEMPTY | XUARTPS_IXR_TXFULL))) {
/* Transmit data interrupt */
SendDataHandler(InstancePtr, IsrStatus);
}
if(0 != (IsrStatus & (XUARTPS_IXR_OVER | XUARTPS_IXR_FRAMING |
XUARTPS_IXR_PARITY))) {
/* Recieved Error Status interrupt */
ReceiveErrorHandler(InstancePtr);
}
if(0 != (IsrStatus & XUARTPS_IXR_TOUT )) {
/* Recieved Timeout interrupt */
ReceiveTimeoutHandler(InstancePtr);
}
if(0 != (IsrStatus & XUARTPS_IXR_DMS)) {
/* Modem status interrupt */
ModemHandler(InstancePtr);
}
/*
* Clear the interrupt status.
*/
XUartPs_WriteReg(InstancePtr->Config.BaseAddress, XUARTPS_ISR_OFFSET,
IsrStatus);
}
/****************************************************************************/
/*
*
* This function handles interrupts for receive errors which include
* overrun errors, framing errors, parity errors, and the break interrupt.
*
* @param InstancePtr is a pointer to the XUartPs instance.
*
* @return None.
*
* @note None.
*
*****************************************************************************/
static void ReceiveErrorHandler(XUartPs *InstancePtr)
{
/*
* If there are bytes still to be received in the specified buffer
* go ahead and receive them. Removing bytes from the RX FIFO will
* clear the interrupt.
*/
if (InstancePtr->ReceiveBuffer.RemainingBytes != 0) {
XUartPs_ReceiveBuffer(InstancePtr);
}
/*
* Call the application handler to indicate that there is a receive
* error or a break interrupt, if the application cares about the
* error it call a function to get the last errors.
*/
InstancePtr->Handler(InstancePtr->CallBackRef,
XUARTPS_EVENT_RECV_ERROR,
(InstancePtr->ReceiveBuffer.RequestedBytes -
InstancePtr->ReceiveBuffer.RemainingBytes));
}
/****************************************************************************/
/**
*
* This function handles the receive timeout interrupt. This interrupt occurs
* whenever a number of bytes have been present in the RX FIFO and the receive
* data line has been idle for at lease 4 or more character times, (the timeout
* is set using XUartPs_SetrecvTimeout() function).
*
* @param InstancePtr is a pointer to the XUartPs instance
*
* @return None.
*
* @note None.
*
*****************************************************************************/
static void ReceiveTimeoutHandler(XUartPs *InstancePtr)
{
u32 Event;
/*
* If there are bytes still to be received in the specified buffer
* go ahead and receive them. Removing bytes from the RX FIFO will
* clear the interrupt.
*/
if (InstancePtr->ReceiveBuffer.RemainingBytes != 0) {
XUartPs_ReceiveBuffer(InstancePtr);
}
/*
* If there are no more bytes to receive then indicate that this is
* not a receive timeout but the end of the buffer reached, a timeout
* normally occurs if # of bytes is not divisible by FIFO threshold,
* don't rely on previous test of remaining bytes since receive
* function updates it
*/
if (InstancePtr->ReceiveBuffer.RemainingBytes != 0) {
Event = XUARTPS_EVENT_RECV_TOUT;
} else {
Event = XUARTPS_EVENT_RECV_DATA;
}
/*
* Call the application handler to indicate that there is a receive
* timeout or data event
*/
InstancePtr->Handler(InstancePtr->CallBackRef, Event,
InstancePtr->ReceiveBuffer.RequestedBytes -
InstancePtr->ReceiveBuffer.RemainingBytes);
}
/****************************************************************************/
/**
*
* This function handles the interrupt when data is in RX FIFO.
*
* @param InstancePtr is a pointer to the XUartPs instance
*
* @return None.
*
* @note None.
*
*****************************************************************************/
static void ReceiveDataHandler(XUartPs *InstancePtr)
{
/*
* If there are bytes still to be received in the specified buffer
* go ahead and receive them. Removing bytes from the RX FIFO will
* clear the interrupt.
*/
if (InstancePtr->ReceiveBuffer.RemainingBytes != 0) {
XUartPs_ReceiveBuffer(InstancePtr);
}
/* If the last byte of a message was received then call the application
* handler, this code should not use an else from the previous check of
* the number of bytes to receive because the call to receive the buffer
* updates the bytes ramained
*/
if (InstancePtr->ReceiveBuffer.RemainingBytes == 0) {
InstancePtr->Handler(InstancePtr->CallBackRef,
XUARTPS_EVENT_RECV_DATA,
(InstancePtr->ReceiveBuffer.RequestedBytes -
InstancePtr->ReceiveBuffer.RemainingBytes));
}
}
/****************************************************************************/
/**
*
* This function handles the interrupt when data has been sent, the transmit
* FIFO is empty (transmitter holding register).
*
* @param InstancePtr is a pointer to the XUartPs instance
* @param IsrStatus is the register value for channel status register
*
* @return None.
*
* @note None.
*
*****************************************************************************/
static void SendDataHandler(XUartPs *InstancePtr, u32 IsrStatus)
{
/*
* If there are not bytes to be sent from the specified buffer then disable
* the transmit interrupt so it will stop interrupting as it interrupts
* any time the FIFO is empty
*/
if (InstancePtr->SendBuffer.RemainingBytes == 0) {
XUartPs_WriteReg(InstancePtr->Config.BaseAddress,
XUARTPS_IDR_OFFSET,
(XUARTPS_IXR_TXEMPTY | XUARTPS_IXR_TXFULL));
/* Call the application handler to indicate the sending is done */
InstancePtr->Handler(InstancePtr->CallBackRef,
XUARTPS_EVENT_SENT_DATA,
InstancePtr->SendBuffer.RequestedBytes -
InstancePtr->SendBuffer.RemainingBytes);
}
/*
* If TX FIFO is empty, send more.
*/
else if(IsrStatus & XUARTPS_IXR_TXEMPTY) {
XUartPs_SendBuffer(InstancePtr);
}
}
/****************************************************************************/
/**
*
* This function handles modem interrupts. It does not do any processing
* except to call the application handler to indicate a modem event.
*
* @param InstancePtr is a pointer to the XUartPs instance
*
* @return None.
*
* @note None.
*
*****************************************************************************/
static void ModemHandler(XUartPs *InstancePtr)
{
u32 MsrRegister;
/*
* Read the modem status register so that the interrupt is acknowledged
* and it can be passed to the callback handler with the event
*/
MsrRegister = XUartPs_ReadReg(InstancePtr->Config.BaseAddress,
XUARTPS_MODEMSR_OFFSET);
/*
* Call the application handler to indicate the modem status changed,
* passing the modem status and the event data in the call
*/
InstancePtr->Handler(InstancePtr->CallBackRef,
XUARTPS_EVENT_MODEM,
MsrRegister);
}
| [
"[email protected]"
] | |
0d6a1fc116637e49c2043fd12097de3c33edbf28 | a7447416394760c895ad741f9d4ba53f5aba46fe | /include/freetype-2.10.2/src/winfonts/winfnt.c | 38064ed314050246bf853e92afb3473292ccb75e | [
"Zlib",
"FTL"
] | permissive | Kiakra/Kiragine | 28b9fb221b0f5f6588a3bc21e04ec11487e06bb3 | 86f39e4b6506d68032d6af2c007732ae049acb11 | refs/heads/master | 2023-05-04T17:54:46.900054 | 2021-05-13T08:58:25 | 2021-05-13T08:58:25 | 294,502,948 | 59 | 1 | NOASSERTION | 2020-09-17T13:47:41 | 2020-09-10T19:24:46 | C | UTF-8 | C | false | false | 36,267 | c | /****************************************************************************
*
* winfnt.c
*
* FreeType font driver for Windows FNT/FON files
*
* Copyright (C) 1996-2020 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
* Copyright 2003 Huw D M Davies for Codeweavers
* Copyright 2007 Dmitry Timoshkov for Codeweavers
*
* This file is part of the FreeType project, and may only be used,
* modified, and distributed under the terms of the FreeType project
* license, LICENSE.TXT. By continuing to use, modify, or distribute
* this file you indicate that you have read the license and
* understand and accept it fully.
*
*/
#include <ft2build.h>
#include FT_WINFONTS_H
#include FT_INTERNAL_DEBUG_H
#include FT_INTERNAL_STREAM_H
#include FT_INTERNAL_OBJECTS_H
#include FT_TRUETYPE_IDS_H
#include "winfnt.h"
#include "fnterrs.h"
#include FT_SERVICE_WINFNT_H
#include FT_SERVICE_FONT_FORMAT_H
/**************************************************************************
*
* The macro FT_COMPONENT is used in trace mode. It is an implicit
* parameter of the FT_TRACE() and FT_ERROR() macros, used to print/log
* messages during execution.
*/
#undef FT_COMPONENT
#define FT_COMPONENT winfnt
static const FT_Frame_Field winmz_header_fields[] =
{
#undef FT_STRUCTURE
#define FT_STRUCTURE WinMZ_HeaderRec
FT_FRAME_START( 64 ),
FT_FRAME_USHORT_LE ( magic ),
FT_FRAME_SKIP_BYTES( 29 * 2 ),
FT_FRAME_ULONG_LE ( lfanew ),
FT_FRAME_END
};
static const FT_Frame_Field winne_header_fields[] =
{
#undef FT_STRUCTURE
#define FT_STRUCTURE WinNE_HeaderRec
FT_FRAME_START( 40 ),
FT_FRAME_USHORT_LE ( magic ),
FT_FRAME_SKIP_BYTES( 34 ),
FT_FRAME_USHORT_LE ( resource_tab_offset ),
FT_FRAME_USHORT_LE ( rname_tab_offset ),
FT_FRAME_END
};
static const FT_Frame_Field winpe32_header_fields[] =
{
#undef FT_STRUCTURE
#define FT_STRUCTURE WinPE32_HeaderRec
FT_FRAME_START( 248 ),
FT_FRAME_ULONG_LE ( magic ), /* PE00 */
FT_FRAME_USHORT_LE ( machine ), /* 0x014C - i386 */
FT_FRAME_USHORT_LE ( number_of_sections ),
FT_FRAME_SKIP_BYTES( 12 ),
FT_FRAME_USHORT_LE ( size_of_optional_header ),
FT_FRAME_SKIP_BYTES( 2 ),
FT_FRAME_USHORT_LE ( magic32 ), /* 0x10B */
FT_FRAME_SKIP_BYTES( 110 ),
FT_FRAME_ULONG_LE ( rsrc_virtual_address ),
FT_FRAME_ULONG_LE ( rsrc_size ),
FT_FRAME_SKIP_BYTES( 104 ),
FT_FRAME_END
};
static const FT_Frame_Field winpe32_section_fields[] =
{
#undef FT_STRUCTURE
#define FT_STRUCTURE WinPE32_SectionRec
FT_FRAME_START( 40 ),
FT_FRAME_BYTES ( name, 8 ),
FT_FRAME_SKIP_BYTES( 4 ),
FT_FRAME_ULONG_LE ( virtual_address ),
FT_FRAME_ULONG_LE ( size_of_raw_data ),
FT_FRAME_ULONG_LE ( pointer_to_raw_data ),
FT_FRAME_SKIP_BYTES( 16 ),
FT_FRAME_END
};
static const FT_Frame_Field winpe_rsrc_dir_fields[] =
{
#undef FT_STRUCTURE
#define FT_STRUCTURE WinPE_RsrcDirRec
FT_FRAME_START( 16 ),
FT_FRAME_ULONG_LE ( characteristics ),
FT_FRAME_ULONG_LE ( time_date_stamp ),
FT_FRAME_USHORT_LE( major_version ),
FT_FRAME_USHORT_LE( minor_version ),
FT_FRAME_USHORT_LE( number_of_named_entries ),
FT_FRAME_USHORT_LE( number_of_id_entries ),
FT_FRAME_END
};
static const FT_Frame_Field winpe_rsrc_dir_entry_fields[] =
{
#undef FT_STRUCTURE
#define FT_STRUCTURE WinPE_RsrcDirEntryRec
FT_FRAME_START( 8 ),
FT_FRAME_ULONG_LE( name ),
FT_FRAME_ULONG_LE( offset ),
FT_FRAME_END
};
static const FT_Frame_Field winpe_rsrc_data_entry_fields[] =
{
#undef FT_STRUCTURE
#define FT_STRUCTURE WinPE_RsrcDataEntryRec
FT_FRAME_START( 16 ),
FT_FRAME_ULONG_LE( offset_to_data ),
FT_FRAME_ULONG_LE( size ),
FT_FRAME_ULONG_LE( code_page ),
FT_FRAME_ULONG_LE( reserved ),
FT_FRAME_END
};
static const FT_Frame_Field winfnt_header_fields[] =
{
#undef FT_STRUCTURE
#define FT_STRUCTURE FT_WinFNT_HeaderRec
FT_FRAME_START( 148 ),
FT_FRAME_USHORT_LE( version ),
FT_FRAME_ULONG_LE ( file_size ),
FT_FRAME_BYTES ( copyright, 60 ),
FT_FRAME_USHORT_LE( file_type ),
FT_FRAME_USHORT_LE( nominal_point_size ),
FT_FRAME_USHORT_LE( vertical_resolution ),
FT_FRAME_USHORT_LE( horizontal_resolution ),
FT_FRAME_USHORT_LE( ascent ),
FT_FRAME_USHORT_LE( internal_leading ),
FT_FRAME_USHORT_LE( external_leading ),
FT_FRAME_BYTE ( italic ),
FT_FRAME_BYTE ( underline ),
FT_FRAME_BYTE ( strike_out ),
FT_FRAME_USHORT_LE( weight ),
FT_FRAME_BYTE ( charset ),
FT_FRAME_USHORT_LE( pixel_width ),
FT_FRAME_USHORT_LE( pixel_height ),
FT_FRAME_BYTE ( pitch_and_family ),
FT_FRAME_USHORT_LE( avg_width ),
FT_FRAME_USHORT_LE( max_width ),
FT_FRAME_BYTE ( first_char ),
FT_FRAME_BYTE ( last_char ),
FT_FRAME_BYTE ( default_char ),
FT_FRAME_BYTE ( break_char ),
FT_FRAME_USHORT_LE( bytes_per_row ),
FT_FRAME_ULONG_LE ( device_offset ),
FT_FRAME_ULONG_LE ( face_name_offset ),
FT_FRAME_ULONG_LE ( bits_pointer ),
FT_FRAME_ULONG_LE ( bits_offset ),
FT_FRAME_BYTE ( reserved ),
FT_FRAME_ULONG_LE ( flags ),
FT_FRAME_USHORT_LE( A_space ),
FT_FRAME_USHORT_LE( B_space ),
FT_FRAME_USHORT_LE( C_space ),
FT_FRAME_ULONG_LE ( color_table_offset ),
FT_FRAME_BYTES ( reserved1, 16 ),
FT_FRAME_END
};
static void
fnt_font_done( FNT_Face face )
{
FT_Memory memory = FT_FACE( face )->memory;
FT_Stream stream = FT_FACE( face )->stream;
FNT_Font font = face->font;
if ( !font )
return;
if ( font->fnt_frame )
FT_FRAME_RELEASE( font->fnt_frame );
FT_FREE( font->family_name );
FT_FREE( font );
face->font = NULL;
}
static FT_Error
fnt_font_load( FNT_Font font,
FT_Stream stream )
{
FT_Error error;
FT_WinFNT_Header header = &font->header;
FT_Bool new_format;
FT_UInt size;
/* first of all, read the FNT header */
if ( FT_STREAM_SEEK( font->offset ) ||
FT_STREAM_READ_FIELDS( winfnt_header_fields, header ) )
goto Exit;
/* check header */
if ( header->version != 0x200 &&
header->version != 0x300 )
{
FT_TRACE2(( " not a Windows FNT file\n" ));
error = FT_THROW( Unknown_File_Format );
goto Exit;
}
new_format = FT_BOOL( font->header.version == 0x300 );
size = new_format ? 148 : 118;
if ( header->file_size < size )
{
FT_TRACE2(( " not a Windows FNT file\n" ));
error = FT_THROW( Unknown_File_Format );
goto Exit;
}
/* Version 2 doesn't have these fields */
if ( header->version == 0x200 )
{
header->flags = 0;
header->A_space = 0;
header->B_space = 0;
header->C_space = 0;
header->color_table_offset = 0;
}
if ( header->file_type & 1 )
{
FT_TRACE2(( "[can't handle vector FNT fonts]\n" ));
error = FT_THROW( Unknown_File_Format );
goto Exit;
}
/* this is a FNT file/table; extract its frame */
if ( FT_STREAM_SEEK( font->offset ) ||
FT_FRAME_EXTRACT( header->file_size, font->fnt_frame ) )
goto Exit;
Exit:
return error;
}
static FT_Error
fnt_face_get_dll_font( FNT_Face face,
FT_Int face_instance_index )
{
FT_Error error;
FT_Stream stream = FT_FACE( face )->stream;
FT_Memory memory = FT_FACE( face )->memory;
WinMZ_HeaderRec mz_header;
FT_Long face_index;
face->font = NULL;
face_index = FT_ABS( face_instance_index ) & 0xFFFF;
/* does it begin with an MZ header? */
if ( FT_STREAM_SEEK( 0 ) ||
FT_STREAM_READ_FIELDS( winmz_header_fields, &mz_header ) )
goto Exit;
error = FT_ERR( Unknown_File_Format );
if ( mz_header.magic == WINFNT_MZ_MAGIC )
{
/* yes, now look for an NE header in the file */
WinNE_HeaderRec ne_header;
FT_TRACE2(( "MZ signature found\n" ));
if ( FT_STREAM_SEEK( mz_header.lfanew ) ||
FT_STREAM_READ_FIELDS( winne_header_fields, &ne_header ) )
goto Exit;
error = FT_ERR( Unknown_File_Format );
if ( ne_header.magic == WINFNT_NE_MAGIC )
{
/* good, now look into the resource table for each FNT resource */
FT_ULong res_offset = mz_header.lfanew +
ne_header.resource_tab_offset;
FT_UShort size_shift;
FT_UShort font_count = 0;
FT_ULong font_offset = 0;
FT_TRACE2(( "NE signature found\n" ));
if ( FT_STREAM_SEEK( res_offset ) ||
FT_FRAME_ENTER( ne_header.rname_tab_offset -
ne_header.resource_tab_offset ) )
goto Exit;
size_shift = FT_GET_USHORT_LE();
/* Microsoft's specification of the executable-file header format */
/* for `New Executable' (NE) doesn't give a limit for the */
/* alignment shift count; however, in 1985, the year of the */
/* specification release, only 32bit values were supported, thus */
/* anything larger than 16 doesn't make sense in general, given */
/* that file offsets are 16bit values, shifted by the alignment */
/* shift count */
if ( size_shift > 16 )
{
FT_TRACE2(( "invalid alignment shift count for resource data\n" ));
error = FT_THROW( Invalid_File_Format );
goto Exit1;
}
for (;;)
{
FT_UShort type_id, count;
type_id = FT_GET_USHORT_LE();
if ( !type_id )
break;
count = FT_GET_USHORT_LE();
if ( type_id == 0x8008U )
{
font_count = count;
font_offset = FT_STREAM_POS() + 4 +
(FT_ULong)( stream->cursor - stream->limit );
break;
}
stream->cursor += 4 + count * 12;
}
FT_FRAME_EXIT();
if ( !font_count || !font_offset )
{
FT_TRACE2(( "this file doesn't contain any FNT resources\n" ));
error = FT_THROW( Invalid_File_Format );
goto Exit;
}
/* loading `winfnt_header_fields' needs at least 118 bytes; */
/* use this as a rough measure to check the expected font size */
if ( font_count * 118UL > stream->size )
{
FT_TRACE2(( "invalid number of faces\n" ));
error = FT_THROW( Invalid_File_Format );
goto Exit;
}
face->root.num_faces = font_count;
if ( face_instance_index < 0 )
goto Exit;
if ( face_index >= font_count )
{
error = FT_THROW( Invalid_Argument );
goto Exit;
}
if ( FT_NEW( face->font ) )
goto Exit;
if ( FT_STREAM_SEEK( font_offset + (FT_ULong)face_index * 12 ) ||
FT_FRAME_ENTER( 12 ) )
goto Fail;
face->font->offset = (FT_ULong)FT_GET_USHORT_LE() << size_shift;
face->font->fnt_size = (FT_ULong)FT_GET_USHORT_LE() << size_shift;
stream->cursor += 8;
FT_FRAME_EXIT();
error = fnt_font_load( face->font, stream );
}
else if ( ne_header.magic == WINFNT_PE_MAGIC )
{
WinPE32_HeaderRec pe32_header;
WinPE32_SectionRec pe32_section;
WinPE_RsrcDirRec root_dir, name_dir, lang_dir;
WinPE_RsrcDirEntryRec dir_entry1, dir_entry2, dir_entry3;
WinPE_RsrcDataEntryRec data_entry;
FT_ULong root_dir_offset, name_dir_offset, lang_dir_offset;
FT_UShort i, j, k;
FT_TRACE2(( "PE signature found\n" ));
if ( FT_STREAM_SEEK( mz_header.lfanew ) ||
FT_STREAM_READ_FIELDS( winpe32_header_fields, &pe32_header ) )
goto Exit;
FT_TRACE2(( "magic %04lx, machine %02x, number_of_sections %u, "
"size_of_optional_header %02x\n"
"magic32 %02x, rsrc_virtual_address %04lx, "
"rsrc_size %04lx\n",
pe32_header.magic, pe32_header.machine,
pe32_header.number_of_sections,
pe32_header.size_of_optional_header,
pe32_header.magic32, pe32_header.rsrc_virtual_address,
pe32_header.rsrc_size ));
if ( pe32_header.magic != WINFNT_PE_MAGIC /* check full signature */ ||
pe32_header.machine != 0x014C /* i386 */ ||
pe32_header.size_of_optional_header != 0xE0 /* FIXME */ ||
pe32_header.magic32 != 0x10B )
{
FT_TRACE2(( "this file has an invalid PE header\n" ));
error = FT_THROW( Invalid_File_Format );
goto Exit;
}
face->root.num_faces = 0;
for ( i = 0; i < pe32_header.number_of_sections; i++ )
{
if ( FT_STREAM_READ_FIELDS( winpe32_section_fields,
&pe32_section ) )
goto Exit;
FT_TRACE2(( "name %.8s, va %04lx, size %04lx, offset %04lx\n",
pe32_section.name, pe32_section.virtual_address,
pe32_section.size_of_raw_data,
pe32_section.pointer_to_raw_data ));
if ( pe32_header.rsrc_virtual_address ==
pe32_section.virtual_address )
goto Found_rsrc_section;
}
FT_TRACE2(( "this file doesn't contain any resources\n" ));
error = FT_THROW( Invalid_File_Format );
goto Exit;
Found_rsrc_section:
FT_TRACE2(( "found resources section %.8s\n", pe32_section.name ));
if ( FT_STREAM_SEEK( pe32_section.pointer_to_raw_data ) ||
FT_STREAM_READ_FIELDS( winpe_rsrc_dir_fields, &root_dir ) )
goto Exit;
root_dir_offset = pe32_section.pointer_to_raw_data;
for ( i = 0; i < root_dir.number_of_named_entries +
root_dir.number_of_id_entries; i++ )
{
if ( FT_STREAM_SEEK( root_dir_offset + 16 + i * 8 ) ||
FT_STREAM_READ_FIELDS( winpe_rsrc_dir_entry_fields,
&dir_entry1 ) )
goto Exit;
if ( !(dir_entry1.offset & 0x80000000UL ) /* DataIsDirectory */ )
{
error = FT_THROW( Invalid_File_Format );
goto Exit;
}
dir_entry1.offset &= ~0x80000000UL;
name_dir_offset = pe32_section.pointer_to_raw_data +
dir_entry1.offset;
if ( FT_STREAM_SEEK( pe32_section.pointer_to_raw_data +
dir_entry1.offset ) ||
FT_STREAM_READ_FIELDS( winpe_rsrc_dir_fields, &name_dir ) )
goto Exit;
for ( j = 0; j < name_dir.number_of_named_entries +
name_dir.number_of_id_entries; j++ )
{
if ( FT_STREAM_SEEK( name_dir_offset + 16 + j * 8 ) ||
FT_STREAM_READ_FIELDS( winpe_rsrc_dir_entry_fields,
&dir_entry2 ) )
goto Exit;
if ( !(dir_entry2.offset & 0x80000000UL ) /* DataIsDirectory */ )
{
error = FT_THROW( Invalid_File_Format );
goto Exit;
}
dir_entry2.offset &= ~0x80000000UL;
lang_dir_offset = pe32_section.pointer_to_raw_data +
dir_entry2.offset;
if ( FT_STREAM_SEEK( pe32_section.pointer_to_raw_data +
dir_entry2.offset ) ||
FT_STREAM_READ_FIELDS( winpe_rsrc_dir_fields, &lang_dir ) )
goto Exit;
for ( k = 0; k < lang_dir.number_of_named_entries +
lang_dir.number_of_id_entries; k++ )
{
if ( FT_STREAM_SEEK( lang_dir_offset + 16 + k * 8 ) ||
FT_STREAM_READ_FIELDS( winpe_rsrc_dir_entry_fields,
&dir_entry3 ) )
goto Exit;
if ( dir_entry2.offset & 0x80000000UL /* DataIsDirectory */ )
{
error = FT_THROW( Invalid_File_Format );
goto Exit;
}
if ( dir_entry1.name == 8 /* RT_FONT */ )
{
if ( FT_STREAM_SEEK( root_dir_offset + dir_entry3.offset ) ||
FT_STREAM_READ_FIELDS( winpe_rsrc_data_entry_fields,
&data_entry ) )
goto Exit;
FT_TRACE2(( "found font #%lu, offset %04lx, "
"size %04lx, cp %lu\n",
dir_entry2.name,
pe32_section.pointer_to_raw_data +
data_entry.offset_to_data -
pe32_section.virtual_address,
data_entry.size, data_entry.code_page ));
if ( face_index == face->root.num_faces )
{
if ( FT_NEW( face->font ) )
goto Exit;
face->font->offset = pe32_section.pointer_to_raw_data +
data_entry.offset_to_data -
pe32_section.virtual_address;
face->font->fnt_size = data_entry.size;
error = fnt_font_load( face->font, stream );
if ( error )
{
FT_TRACE2(( "font #%lu load error 0x%x\n",
dir_entry2.name, error ));
goto Fail;
}
else
FT_TRACE2(( "font #%lu successfully loaded\n",
dir_entry2.name ));
}
face->root.num_faces++;
}
}
}
}
}
if ( !face->root.num_faces )
{
FT_TRACE2(( "this file doesn't contain any RT_FONT resources\n" ));
error = FT_THROW( Invalid_File_Format );
goto Exit;
}
if ( face_index >= face->root.num_faces )
{
error = FT_THROW( Invalid_Argument );
goto Exit;
}
}
Fail:
if ( error )
fnt_font_done( face );
Exit:
return error;
Exit1:
FT_FRAME_EXIT();
goto Exit;
}
typedef struct FNT_CMapRec_
{
FT_CMapRec cmap;
FT_UInt32 first;
FT_UInt32 count;
} FNT_CMapRec, *FNT_CMap;
static FT_Error
fnt_cmap_init( FNT_CMap cmap,
FT_Pointer pointer )
{
FNT_Face face = (FNT_Face)FT_CMAP_FACE( cmap );
FNT_Font font = face->font;
FT_UNUSED( pointer );
cmap->first = (FT_UInt32) font->header.first_char;
cmap->count = (FT_UInt32)( font->header.last_char - cmap->first + 1 );
return 0;
}
static FT_UInt
fnt_cmap_char_index( FNT_CMap cmap,
FT_UInt32 char_code )
{
FT_UInt gindex = 0;
char_code -= cmap->first;
if ( char_code < cmap->count )
/* we artificially increase the glyph index; */
/* FNT_Load_Glyph reverts to the right one */
gindex = (FT_UInt)( char_code + 1 );
return gindex;
}
static FT_UInt32
fnt_cmap_char_next( FNT_CMap cmap,
FT_UInt32 *pchar_code )
{
FT_UInt gindex = 0;
FT_UInt32 result = 0;
FT_UInt32 char_code = *pchar_code + 1;
if ( char_code <= cmap->first )
{
result = cmap->first;
gindex = 1;
}
else
{
char_code -= cmap->first;
if ( char_code < cmap->count )
{
result = cmap->first + char_code;
gindex = (FT_UInt)( char_code + 1 );
}
}
*pchar_code = result;
return gindex;
}
static const FT_CMap_ClassRec fnt_cmap_class_rec =
{
sizeof ( FNT_CMapRec ),
(FT_CMap_InitFunc) fnt_cmap_init,
(FT_CMap_DoneFunc) NULL,
(FT_CMap_CharIndexFunc)fnt_cmap_char_index,
(FT_CMap_CharNextFunc) fnt_cmap_char_next,
NULL, NULL, NULL, NULL, NULL
};
static FT_CMap_Class const fnt_cmap_class = &fnt_cmap_class_rec;
static void
FNT_Face_Done( FT_Face fntface ) /* FNT_Face */
{
FNT_Face face = (FNT_Face)fntface;
FT_Memory memory;
if ( !face )
return;
memory = FT_FACE_MEMORY( face );
fnt_font_done( face );
FT_FREE( fntface->available_sizes );
fntface->num_fixed_sizes = 0;
}
static FT_Error
FNT_Face_Init( FT_Stream stream,
FT_Face fntface, /* FNT_Face */
FT_Int face_instance_index,
FT_Int num_params,
FT_Parameter* params )
{
FNT_Face face = (FNT_Face)fntface;
FT_Error error;
FT_Memory memory = FT_FACE_MEMORY( face );
FT_Int face_index;
FT_UNUSED( num_params );
FT_UNUSED( params );
FT_TRACE2(( "Windows FNT driver\n" ));
face_index = FT_ABS( face_instance_index ) & 0xFFFF;
/* try to load font from a DLL */
error = fnt_face_get_dll_font( face, face_instance_index );
if ( !error && face_instance_index < 0 )
goto Exit;
if ( FT_ERR_EQ( error, Unknown_File_Format ) )
{
/* this didn't work; try to load a single FNT font */
FNT_Font font;
if ( FT_NEW( face->font ) )
goto Exit;
fntface->num_faces = 1;
font = face->font;
font->offset = 0;
font->fnt_size = stream->size;
error = fnt_font_load( font, stream );
if ( !error )
{
if ( face_instance_index < 0 )
goto Exit;
if ( face_index > 0 )
error = FT_THROW( Invalid_Argument );
}
}
if ( error )
goto Fail;
/* sanity check */
if ( !face->font->header.pixel_height )
{
FT_TRACE2(( "invalid pixel height\n" ));
error = FT_THROW( Invalid_File_Format );
goto Fail;
}
/* we now need to fill the root FT_Face fields */
/* with relevant information */
{
FT_Face root = FT_FACE( face );
FNT_Font font = face->font;
FT_ULong family_size;
root->face_index = face_index;
root->face_flags |= FT_FACE_FLAG_FIXED_SIZES |
FT_FACE_FLAG_HORIZONTAL;
if ( font->header.avg_width == font->header.max_width )
root->face_flags |= FT_FACE_FLAG_FIXED_WIDTH;
if ( font->header.italic )
root->style_flags |= FT_STYLE_FLAG_ITALIC;
if ( font->header.weight >= 800 )
root->style_flags |= FT_STYLE_FLAG_BOLD;
/* set up the `fixed_sizes' array */
if ( FT_NEW_ARRAY( root->available_sizes, 1 ) )
goto Fail;
root->num_fixed_sizes = 1;
{
FT_Bitmap_Size* bsize = root->available_sizes;
FT_UShort x_res, y_res;
bsize->width = (FT_Short)font->header.avg_width;
bsize->height = (FT_Short)( font->header.pixel_height +
font->header.external_leading );
bsize->size = font->header.nominal_point_size << 6;
x_res = font->header.horizontal_resolution;
if ( !x_res )
x_res = 72;
y_res = font->header.vertical_resolution;
if ( !y_res )
y_res = 72;
bsize->y_ppem = FT_MulDiv( bsize->size, y_res, 72 );
bsize->y_ppem = FT_PIX_ROUND( bsize->y_ppem );
/*
* this reads:
*
* the nominal height is larger than the bbox's height
*
* => nominal_point_size contains incorrect value;
* use pixel_height as the nominal height
*/
if ( bsize->y_ppem > ( font->header.pixel_height << 6 ) )
{
FT_TRACE2(( "use pixel_height as the nominal height\n" ));
bsize->y_ppem = font->header.pixel_height << 6;
bsize->size = FT_MulDiv( bsize->y_ppem, 72, y_res );
}
bsize->x_ppem = FT_MulDiv( bsize->size, x_res, 72 );
bsize->x_ppem = FT_PIX_ROUND( bsize->x_ppem );
}
{
FT_CharMapRec charmap;
charmap.encoding = FT_ENCODING_NONE;
/* initial platform/encoding should indicate unset status? */
charmap.platform_id = TT_PLATFORM_APPLE_UNICODE;
charmap.encoding_id = TT_APPLE_ID_DEFAULT;
charmap.face = root;
if ( font->header.charset == FT_WinFNT_ID_MAC )
{
charmap.encoding = FT_ENCODING_APPLE_ROMAN;
charmap.platform_id = TT_PLATFORM_MACINTOSH;
/* charmap.encoding_id = TT_MAC_ID_ROMAN; */
}
error = FT_CMap_New( fnt_cmap_class,
NULL,
&charmap,
NULL );
if ( error )
goto Fail;
}
/* set up remaining flags */
if ( font->header.last_char < font->header.first_char )
{
FT_TRACE2(( "invalid number of glyphs\n" ));
error = FT_THROW( Invalid_File_Format );
goto Fail;
}
/* reserve one slot for the .notdef glyph at index 0 */
root->num_glyphs = font->header.last_char -
font->header.first_char + 1 + 1;
if ( font->header.face_name_offset >= font->header.file_size )
{
FT_TRACE2(( "invalid family name offset\n" ));
error = FT_THROW( Invalid_File_Format );
goto Fail;
}
family_size = font->header.file_size - font->header.face_name_offset;
/* Some broken fonts don't delimit the face name with a final */
/* NULL byte -- the frame is erroneously one byte too small. */
/* We thus allocate one more byte, setting it explicitly to */
/* zero. */
if ( FT_ALLOC( font->family_name, family_size + 1 ) )
goto Fail;
FT_MEM_COPY( font->family_name,
font->fnt_frame + font->header.face_name_offset,
family_size );
font->family_name[family_size] = '\0';
if ( FT_REALLOC( font->family_name,
family_size,
ft_strlen( font->family_name ) + 1 ) )
goto Fail;
root->family_name = font->family_name;
root->style_name = (char *)"Regular";
if ( root->style_flags & FT_STYLE_FLAG_BOLD )
{
if ( root->style_flags & FT_STYLE_FLAG_ITALIC )
root->style_name = (char *)"Bold Italic";
else
root->style_name = (char *)"Bold";
}
else if ( root->style_flags & FT_STYLE_FLAG_ITALIC )
root->style_name = (char *)"Italic";
}
goto Exit;
Fail:
FNT_Face_Done( fntface );
Exit:
return error;
}
static FT_Error
FNT_Size_Select( FT_Size size,
FT_ULong strike_index )
{
FNT_Face face = (FNT_Face)size->face;
FT_WinFNT_Header header = &face->font->header;
FT_UNUSED( strike_index );
FT_Select_Metrics( size->face, 0 );
size->metrics.ascender = header->ascent * 64;
size->metrics.descender = -( header->pixel_height -
header->ascent ) * 64;
size->metrics.max_advance = header->max_width * 64;
return FT_Err_Ok;
}
static FT_Error
FNT_Size_Request( FT_Size size,
FT_Size_Request req )
{
FNT_Face face = (FNT_Face)size->face;
FT_WinFNT_Header header = &face->font->header;
FT_Bitmap_Size* bsize = size->face->available_sizes;
FT_Error error = FT_ERR( Invalid_Pixel_Size );
FT_Long height;
height = FT_REQUEST_HEIGHT( req );
height = ( height + 32 ) >> 6;
switch ( req->type )
{
case FT_SIZE_REQUEST_TYPE_NOMINAL:
if ( height == ( ( bsize->y_ppem + 32 ) >> 6 ) )
error = FT_Err_Ok;
break;
case FT_SIZE_REQUEST_TYPE_REAL_DIM:
if ( height == header->pixel_height )
error = FT_Err_Ok;
break;
default:
error = FT_THROW( Unimplemented_Feature );
break;
}
if ( error )
return error;
else
return FNT_Size_Select( size, 0 );
}
static FT_Error
FNT_Load_Glyph( FT_GlyphSlot slot,
FT_Size size,
FT_UInt glyph_index,
FT_Int32 load_flags )
{
FNT_Face face = (FNT_Face)FT_SIZE_FACE( size );
FNT_Font font;
FT_Error error = FT_Err_Ok;
FT_Byte* p;
FT_UInt len;
FT_Bitmap* bitmap = &slot->bitmap;
FT_ULong offset;
FT_Bool new_format;
if ( !face )
{
error = FT_THROW( Invalid_Face_Handle );
goto Exit;
}
font = face->font;
if ( !font ||
glyph_index >= (FT_UInt)( FT_FACE( face )->num_glyphs ) )
{
error = FT_THROW( Invalid_Argument );
goto Exit;
}
FT_TRACE1(( "FNT_Load_Glyph: glyph index %d\n", glyph_index ));
if ( glyph_index > 0 )
glyph_index--; /* revert to real index */
else
glyph_index = font->header.default_char; /* the `.notdef' glyph */
new_format = FT_BOOL( font->header.version == 0x300 );
len = new_format ? 6 : 4;
/* get glyph width and offset */
offset = ( new_format ? 148 : 118 ) + len * glyph_index;
if ( offset >= font->header.file_size - 2 - ( new_format ? 4 : 2 ) )
{
FT_TRACE2(( "invalid FNT offset\n" ));
error = FT_THROW( Invalid_File_Format );
goto Exit;
}
p = font->fnt_frame + offset;
bitmap->width = FT_NEXT_USHORT_LE( p );
/* jump to glyph entry */
if ( new_format )
offset = FT_NEXT_ULONG_LE( p );
else
offset = FT_NEXT_USHORT_LE( p );
if ( offset >= font->header.file_size )
{
FT_TRACE2(( "invalid FNT offset\n" ));
error = FT_THROW( Invalid_File_Format );
goto Exit;
}
bitmap->rows = font->header.pixel_height;
bitmap->pixel_mode = FT_PIXEL_MODE_MONO;
slot->bitmap_left = 0;
slot->bitmap_top = font->header.ascent;
slot->format = FT_GLYPH_FORMAT_BITMAP;
/* now set up metrics */
slot->metrics.width = (FT_Pos)( bitmap->width << 6 );
slot->metrics.height = (FT_Pos)( bitmap->rows << 6 );
slot->metrics.horiAdvance = (FT_Pos)( bitmap->width << 6 );
slot->metrics.horiBearingX = 0;
slot->metrics.horiBearingY = slot->bitmap_top << 6;
ft_synthesize_vertical_metrics( &slot->metrics,
(FT_Pos)( bitmap->rows << 6 ) );
if ( load_flags & FT_LOAD_BITMAP_METRICS_ONLY )
goto Exit;
/* jump to glyph data */
p = font->fnt_frame + /* font->header.bits_offset */ + offset;
/* allocate and build bitmap */
{
FT_Memory memory = FT_FACE_MEMORY( slot->face );
FT_UInt pitch = ( bitmap->width + 7 ) >> 3;
FT_Byte* column;
FT_Byte* write;
bitmap->pitch = (int)pitch;
if ( !pitch ||
offset + pitch * bitmap->rows > font->header.file_size )
{
FT_TRACE2(( "invalid bitmap width\n" ));
error = FT_THROW( Invalid_File_Format );
goto Exit;
}
/* note: since glyphs are stored in columns and not in rows we */
/* can't use ft_glyphslot_set_bitmap */
if ( FT_ALLOC_MULT( bitmap->buffer, bitmap->rows, pitch ) )
goto Exit;
column = (FT_Byte*)bitmap->buffer;
for ( ; pitch > 0; pitch--, column++ )
{
FT_Byte* limit = p + bitmap->rows;
for ( write = column; p < limit; p++, write += bitmap->pitch )
*write = *p;
}
slot->internal->flags = FT_GLYPH_OWN_BITMAP;
}
Exit:
return error;
}
static FT_Error
winfnt_get_header( FT_Face face,
FT_WinFNT_HeaderRec *aheader )
{
FNT_Font font = ((FNT_Face)face)->font;
*aheader = font->header;
return 0;
}
static const FT_Service_WinFntRec winfnt_service_rec =
{
winfnt_get_header /* get_header */
};
/*
* SERVICE LIST
*
*/
static const FT_ServiceDescRec winfnt_services[] =
{
{ FT_SERVICE_ID_FONT_FORMAT, FT_FONT_FORMAT_WINFNT },
{ FT_SERVICE_ID_WINFNT, &winfnt_service_rec },
{ NULL, NULL }
};
static FT_Module_Interface
winfnt_get_service( FT_Module module,
const FT_String* service_id )
{
FT_UNUSED( module );
return ft_service_list_lookup( winfnt_services, service_id );
}
FT_CALLBACK_TABLE_DEF
const FT_Driver_ClassRec winfnt_driver_class =
{
{
FT_MODULE_FONT_DRIVER |
FT_MODULE_DRIVER_NO_OUTLINES,
sizeof ( FT_DriverRec ),
"winfonts",
0x10000L,
0x20000L,
NULL, /* module-specific interface */
NULL, /* FT_Module_Constructor module_init */
NULL, /* FT_Module_Destructor module_done */
winfnt_get_service /* FT_Module_Requester get_interface */
},
sizeof ( FNT_FaceRec ),
sizeof ( FT_SizeRec ),
sizeof ( FT_GlyphSlotRec ),
FNT_Face_Init, /* FT_Face_InitFunc init_face */
FNT_Face_Done, /* FT_Face_DoneFunc done_face */
NULL, /* FT_Size_InitFunc init_size */
NULL, /* FT_Size_DoneFunc done_size */
NULL, /* FT_Slot_InitFunc init_slot */
NULL, /* FT_Slot_DoneFunc done_slot */
FNT_Load_Glyph, /* FT_Slot_LoadFunc load_glyph */
NULL, /* FT_Face_GetKerningFunc get_kerning */
NULL, /* FT_Face_AttachFunc attach_file */
NULL, /* FT_Face_GetAdvancesFunc get_advances */
FNT_Size_Request, /* FT_Size_RequestFunc request_size */
FNT_Size_Select /* FT_Size_SelectFunc select_size */
};
/* END */
| [
"[email protected]"
] | |
d319e61a24e203b51cc5aa0866b4408c7ee7859e | 7a968d337839510b2623d8cbce0238cfed4babb0 | /armcmx/stm32f10x/gpio.c | 7c81c18155448655ade379a0297df1e023a8dee0 | [] | no_license | ADTL/ARMWork | 637ab108346de001fcbc3b750ecff96abb88f2fd | 85e959894cf5d200f70662a5deb4f2c432a61b83 | refs/heads/master | 2020-02-26T17:14:03.242368 | 2014-01-13T15:04:05 | 2014-01-13T15:04:05 | 16,342,797 | 2 | 0 | null | null | null | null | UTF-8 | C | false | false | 6,707 | c | /*
* gpio_digital.cpp
*
* Created on: 2012/09/30
* Author: sin
*/
#include "armcmx.h"
#include "gpio.h"
uint32_t PortPeriph[] = {
0, // Arduino Headers
RCC_APB2Periph_GPIOA, RCC_APB2Periph_GPIOB, RCC_APB2Periph_GPIOC,
RCC_APB2Periph_GPIOD, RCC_APB2Periph_GPIOE, RCC_APB2Periph_GPIOF, RCC_APB2Periph_GPIOG,
};
/*
GPIO_TypeDef * Port[] =
{ 0, GPIOA, GPIOB, GPIOC, GPIOD, GPIOE, GPIOF, GPIOG, GPIOH, GPIOI };
*/
uint16_t Pin[] = { GPIO_Pin_0, GPIO_Pin_1, GPIO_Pin_2, GPIO_Pin_3,
GPIO_Pin_4, GPIO_Pin_5, GPIO_Pin_6, GPIO_Pin_7, GPIO_Pin_8, GPIO_Pin_9,
GPIO_Pin_10, GPIO_Pin_11, GPIO_Pin_12, GPIO_Pin_13, GPIO_Pin_14,
GPIO_Pin_15, GPIO_Pin_All };
void pinDisable(GPIOPin portpin) {
RCC_APB2PeriphClockCmd(PortPeriph[portpin>>4 & 0x0f], DISABLE);
}
void pinMode(GPIOPin portpin, uint8_t modes) {
GPIO_InitTypeDef GPIO_InitStructure;
RCC_APB2PeriphClockCmd(PortPeriph[portpin>>4 & 0x0f], ENABLE);
GPIO_StructInit(&GPIO_InitStructure);
GPIO_InitStructure.GPIO_Pin = PinBit(portpin);
if ( (modes & 0x03) == INPUT ) {
switch (modes & (3<<3)) {
case NOPULL:
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_FLOATING;
break;
case PULLUP:
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IPU;
break;
case PULLDOWN:
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IPD;
break;
}
} else if ( (modes & 0x03) == OUTPUT ) {
switch (modes & (1<<2)) {
case PUSHPULL:
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
break;
case OPENDRAIN:
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_OD;
break;
}
} else if ( (modes & 0x03) == ALTFUNC ) {
switch (modes & (1<<2)) {
case PUSHPULL:
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP;
break;
case OPENDRAIN:
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_OD;
break;
}
} else if ( (modes & 0x03) == ANALOGIN ) {
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AIN;
}
switch (modes & (3<<5)) {
case LOWSPEED:
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_2MHz;
break;
case MEDSPEED:
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_10MHz;
break;
case FASTSPEED:
case HIGHSPEED:
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
break;
}
GPIO_Init(PinPort(portpin), &GPIO_InitStructure);
}
void digitalWrite(GPIOPin portpin, uint8_t bit) {
GPIO_TypeDef * port = PinPort(portpin); //[portpin>>4 & 0x0f];
#ifdef USE_DIGITALWRITE_PULLUP
GPIO_InitTypeDef GPIO_InitStructure;
uint8_t mode = (port->MODER) >> (PinSource(portpin) * 2) & 0x03;
if (mode == GPIO_Mode_OUT) {
#endif
GPIO_WriteBit(port, PinBit(portpin), ( bit ? Bit_SET : Bit_RESET) );
#ifdef USE_DIGITALWRITE_PULLUP
} else {
GPIO_StructInit(&GPIO_InitStructure);
GPIO_InitStructure.GPIO_Pin = PinBit(portpin);
GPIO_InitStructure.GPIO_Mode = (GPIOMode_TypeDef) (mode & 0x3);
GPIO_InitStructure.GPIO_PuPd = (GPIOPuPd_TypeDef)(bit & 0x3);
//
GPIO_Init(port, &GPIO_InitStructure);
}
#endif
}
uint8_t digitalRead(GPIOPin portpin) {
GPIO_TypeDef * port = PinPort(portpin); //[portpin>>4 & 0x0f];
// uint8_t mode = (port->MODER) >> (PinSource(portpin) * 2) & 0x03;
// if (mode == GPIO_Mode_OUT)
// return (GPIO_ReadOutputDataBit(port, PinBit(portpin)) ? SET : RESET);
return (GPIO_ReadInputDataBit(port, PinBit(portpin)) ? SET : RESET);
}
void GPIOEnable(GPIOPin portpins) {
RCC_APB2PeriphClockCmd(PortPeriph[portpins>>4 & 0x0f], ENABLE);
}
void GPIODisable(GPIOPin portpins) {
RCC_APB2PeriphClockCmd(PortPeriph[portpins>>4 & 0x0f], DISABLE);
}
void GPIOMode(GPIOPin portpins, uint16_t pinbit, uint8_t modes) {
GPIO_InitTypeDef GPIO_InitStructure;
RCC_APB2PeriphClockCmd(PortPeriph[portpins>>4 & 0x0f], ENABLE);
GPIO_InitStructure.GPIO_Pin = pinbit;
// GPIO_InitStructure.GPIO_Mode = mode;
// GPIO_InitStructure.GPIO_OType = otype;
// GPIO_InitStructure.GPIO_PuPd = pupd;
// GPIO_InitStructure.GPIO_Speed = clk;
if ( (modes & 0x03) == INPUT ) {
switch (modes & (3<<3)) {
case NOPULL:
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_FLOATING;
break;
case PULLUP:
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IPU;
break;
case PULLDOWN:
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IPD;
break;
}
} else if ( (modes & 0x03) == OUTPUT ) {
switch (modes & (1<<2)) {
case PUSHPULL:
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
break;
case OPENDRAIN:
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_OD;
break;
}
} else if ( (modes & 0x03) == ALTFUNC ) {
switch (modes & (1<<2)) {
case PUSHPULL:
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP;
break;
case OPENDRAIN:
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_OD;
break;
}
} else if ( (modes & 0x03) == ANALOGIN ) {
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AIN;
}
switch (modes & (3<<5)) {
case LOWSPEED:
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_2MHz;
break;
case MEDSPEED:
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_10MHz;
break;
case FASTSPEED:
case HIGHSPEED:
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
break;
}
//
GPIO_Init(PinPort(portpins), &GPIO_InitStructure);
}
uint16_t portRead(GPIOPin portpins) {
return GPIO_ReadInputData(PinPort(portpins));
}
void portWrite(GPIOPin portpins, uint16_t bits) {
GPIO_Write(PinPort(portpins), bits);
}
/*
void pinAltFunc(GPIOPin portpins, uint16_t pinbits, uint8_t pinaf) {
int i;
for(i = 0; (pinbits>>i) != 0 ; i++) {
if ( pinbits>>i & 1)
GPIO_PinAFConfig(PinPort(portpins), PinSource(i), pinaf);
}
}
*/
/*
void digitalToggle(GPIOPin portpin) {
if ( GPIO_ReadOutputDataBit(PinPort(portpin), PinBit(portpin)) == 0 )
GPIO_WriteBit(PinPort(portpin), PinBit(portpin), GPIO_ReadOutputDataBit(PinPort(portpin), Bit_SET);
else
GPIO_WriteBit(PinPort(portpin), PinBit(portpin), GPIO_ReadOutputDataBit(PinPort(portpin), Bit_RESET);
}
*/
/*
void ConfigPin(GPIO_TypeDef *myGPIO, uint32_t PIN, uint32_t MODE, uint32_t SPEED, uint32_t PUPD) {
// myGPIO: The GPIOx port for the selected pin
// MODE: 0 = INPUT .... 1 = OUTPUT .... 2 = ALTERNATE FUNCTION .... 3 = ANALOG
// SPEED: 0 = 2MHz (Low Speed) .... 1 = 25MHz (Med. Speed) .... 2 = 50MHz (Fast Speed) .... 3 = 100MHz/80MHz (High Speed)(100MHz(30pf) - 80MHz(15pf))
// PUPD: 0 = No Pull-Up / No Pull-Down .... 1 = Pull-Up Enabled .... 2 = Pull-Down Enabled .... 3 = Reserved
myGPIO->MODER |= (MODE << (PIN * 2));//OUTPUT
myGPIO->OSPEEDR |= (SPEED << (PIN * 2));//50MHz
myGPIO->PUPDR |= (PUPD << (PIN * 2)); //Set it for NO PUPD
}
*/
| [
"[email protected]"
] | |
bade52283725b0a5280d30f888cf2a8f29bb7233 | 63d16728ab0b736fdabe69c8ed111f71c647b3d1 | /jobs.h | 4a05dedd01bd47fe22c24915ace94dd190dd1364 | [] | no_license | fanchangyong/tiny_shell | 4bcd5b689ac3df7f39b0c605f432199f05a078e2 | 91fdbe57cb93ef38bcbef5f1eae517c275729bda | refs/heads/master | 2021-01-10T00:54:13.748663 | 2014-01-20T14:03:32 | 2014-01-20T14:03:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 124 | h | #define MAX_JOBS 10
extern int job_index;
typedef struct job_t
{
pid_t pid;
int index;
};
extern job_t* jobs[MAX_JOBS];
| [
"[email protected]"
] | |
18d0974f76b21e8d58ceb4f2b0570fafd5b38968 | d5bb5d5c5e37f4dd1c987c336bf9e24e2161fb0a | /DSA/DoA5.c | 33f61252bf03874fbc8fa5468d7d97eb8c73bc37 | [] | no_license | ajkumarray/labs | 6169169bd10cc50c6d658a10d88d842e0027b351 | 97d3f263ef1f160542d7ea8bfa7da8ab3d49966f | refs/heads/main | 2023-08-16T17:09:32.524379 | 2021-10-16T20:14:11 | 2021-10-16T20:14:11 | 366,073,310 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 1,544 | c | //DoA Assignment5 max min using Divide and Conquer
#include <stdio.h>
struct pair
{
int min;
int max;
};
struct pair getMinMax(int ray[], int low, int high)
{
struct pair minmax, mml, mmr;
int mid;
if(low == high) //if there is only one element
{
minmax.max = ray[low];
minmax.min = ray[low];
return minmax;
}
if(high == low + 1) //if there are two elements
{
if(ray[low] > ray[high])
{
minmax.max = ray[low];
minmax.min = ray[high];
}
else
{
minmax.max = ray[high];
minmax.min = ray[low];
}
return minmax;
} //if there are more than two elements
mid = (low + high) / 2;
mml = getMinMax(ray, low, mid);
mmr = getMinMax(ray, mid+1, high);
if(mml.min < mmr.min) //compare minimums of two parts
minmax.min = mml.min;
else
minmax.min = mmr.min;
if(mml.max > mmr.max) //compare maximums of two parts
minmax.max = mmr.max;
else
minmax.max = mmr.max;
return minmax;
}
int main()
{
int num;
printf("Enter number of elements: ");
scanf("%d",&num);
int ray[num];
printf("Enter elements: ");
for(int i = 0; i < num; i++)
scanf("%d",&ray[i]);
struct pair minmax = getMinMax(ray, 0, num-1);
printf("Maximum element is %d\n",minmax.max);
printf("Minmum element is %d\n",minmax.min);
getchar();
}
| [
"[email protected]"
] | |
25ead4cf9972e6f941428bdec52b87d9f4d18e9b | 82682aa9b763de3d76f3c5cbaf5b24ee5b0f9906 | /corewar/srcs/disasm/op.c | 047ea9ce55b353ebbaa8ef30f06cf43c911db703 | [] | no_license | konvulcius/acthulhu_21 | d93e0e3f452ae67ac69eba92e1992be8b0f5d983 | 6be94149f76626fe776a1ed9e8496eeb8701dc9e | refs/heads/master | 2020-11-28T21:09:49.406700 | 2020-06-11T14:53:10 | 2020-06-11T14:53:10 | 229,919,589 | 1 | 0 | null | 2020-01-17T12:48:19 | 2019-12-24T10:13:26 | C | UTF-8 | C | false | false | 803 | c | #include "dis_asm.h"
t_type g_type_tab[17] =
{
{"live", 1, {T_DIR}, 1},
{"ld", 2, {T_DIR | T_IND, T_REG}, 2},
{"st", 2, {T_REG, T_IND | T_REG}, 3},
{"add", 3, {T_REG, T_REG, T_REG}, 4},
{"sub", 3, {T_REG, T_REG, T_REG}, 5},
{"and", 3, {T_REG | T_DIR | T_IND, T_REG | T_IND | T_DIR, T_REG}, 6},
{"or", 3, {T_REG | T_IND | T_DIR, T_REG | T_IND | T_DIR, T_REG}, 7},
{"xor", 3, {T_REG | T_IND | T_DIR, T_REG | T_IND | T_DIR, T_REG}, 8},
{"zjmp", 1, {T_DIR}, 9},
{"ldi", 3, {T_REG | T_DIR | T_IND, T_DIR | T_REG, T_REG}, 10},
{"sti", 3, {T_REG, T_REG | T_DIR | T_IND, T_DIR | T_REG}, 11},
{"fork", 1, {T_DIR}, 12},
{"lld", 2, {T_DIR | T_IND, T_REG}, 13},
{"lldi", 3, {T_REG | T_DIR | T_IND, T_DIR | T_REG, T_REG}, 14},
{"lfork", 1, {T_DIR}, 15},
{"aff", 1, {T_REG}, 16},
{0, 0, {0}, 0}
};
| [
"[email protected]"
] | |
599e292d57f81970f939b24afd91b37e91b1e46e | e3c0499cc58c9fbec887a2e85672d5e29588f9e0 | /dex/clibs/basic/arch/unix/mem/cmemport.c | dad5623c9d6e27f8bfe26d473697113107308167 | [
"BSD-3-Clause"
] | permissive | stevenknown/xoc | bf19fba2a7851f0c91d62846b61f12000993fa94 | 3514aaf0d742e7c1bff956f5a5e96a92102abe8a | refs/heads/master | 2023-05-14T10:18:34.851859 | 2023-04-29T08:15:24 | 2023-04-29T08:15:24 | 40,242,945 | 132 | 19 | NOASSERTION | 2023-09-08T08:04:04 | 2015-08-05T12:02:52 | C++ | UTF-8 | C | false | false | 1,512 | c | /*Copyright 2011 Alibaba Group*/
/*
* cmemport.c
* madagascar
*
* Created by Misa.Z on 2/19/09.
* Copyright 2009 Virtualnology. All rights reserved.
*
*/
#include "mem/cmemport.h"
#include "errno/cerrno.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
bool cMemInitPort() {
return true;
}
void cMemFinalPort() {
}
void* cMallocPort(UInt32 size) {
void* ret = NULL;
ret = malloc(size);
if(ret == NULL) {
_cerrno = ERROR_MEM_ALLOC;
return NULL;
}
return ret;
}
void cFreePort(void* p) {
if(p == NULL)
return;
free(p);
}
UInt32 cMemTotalSizePort(void) {
return 64*1024*1024;
}
UInt32 cMemUsedSizePort(void) {
return 1*1024*1024;
}
void *cMmapPort(Int32 fd, Int32 alignment, Int32 size, Int32 mode)
{
void *result;
Int32 prot;
Int32 flags;
switch (mode) {
case 1:
prot = PROT_READ;
flags = MAP_SHARED;
break;
case 2:
prot = PROT_READ | PROT_WRITE;
flags = MAP_SHARED;
break;
case 4:
prot = PROT_READ;
flags = MAP_PRIVATE;
break;
default:
return -1;
}
result = mmap(NULL, (size_t) (size & 0x7fffffff), prot, flags, fd, (off_t) (alignment & 0x7fffffff));
if (result == MAP_FAILED)
return -1;
return result;
}
void cMunmapPort(void *address, Int32 length)
{
munmap(address, length);
}
| [
"[email protected]"
] | |
c06b1527cfd61e808cc4c5d784df2fccb234f437 | 5c41f23e0a284a01f91a07cf20092d54e4b89159 | /MBoot_Madison_TVOS/sboot/inc/napoli/board/BD_MST181B_D01A_S_NAPOLI.h | cbd7c99a374eb537933230997ece428202cd72b9 | [] | no_license | schreibikus/Madsion | a3a46c7c38f920f24004dc2cee5837f341bff579 | 548861a3fc1c4c6b5bd05ce35024be7dca0cfc03 | refs/heads/master | 2021-01-25T13:19:07.923633 | 2015-04-02T03:34:09 | 2015-04-02T03:34:09 | 123,558,610 | 0 | 1 | null | null | null | null | UTF-8 | C | false | false | 43,400 | h | //<MStar Software>
//******************************************************************************
// MStar Software
// Copyright (c) 2010 - 2013 MStar Semiconductor, Inc. All rights reserved.
// All software, firmware and related documentation herein ("MStar Software") are
// intellectual property of MStar Semiconductor, Inc. ("MStar") and protected by
// law, including, but not limited to, copyright law and international treaties.
// Any use, modification, reproduction, retransmission, or republication of all
// or part of MStar Software is expressly prohibited, unless prior written
// permission has been granted by MStar.
//
// By accessing, browsing and/or using MStar Software, you acknowledge that you
// have read, understood, and agree, to be bound by below terms ("Terms") and to
// comply with all applicable laws and regulations:
//
// 1. MStar shall retain any and all right, ownership and interest to MStar
// Software and any modification/derivatives thereof.
// No right, ownership, or interest to MStar Software and any
// modification/derivatives thereof is transferred to you under Terms.
//
// 2. You understand that MStar Software might include, incorporate or be
// supplied together with third party`s software and the use of MStar
// Software may require additional licenses from third parties.
// Therefore, you hereby agree it is your sole responsibility to separately
// obtain any and all third party right and license necessary for your use of
// such third party`s software.
//
// 3. MStar Software and any modification/derivatives thereof shall be deemed as
// MStar`s confidential information and you agree to keep MStar`s
// confidential information in strictest confidence and not disclose to any
// third party.
//
// 4. MStar Software is provided on an "AS IS" basis without warranties of any
// kind. Any warranties are hereby expressly disclaimed by MStar, including
// without limitation, any warranties of merchantability, non-infringement of
// intellectual property rights, fitness for a particular purpose, error free
// and in conformity with any international standard. You agree to waive any
// claim against MStar for any loss, damage, cost or expense that you may
// incur related to your use of MStar Software.
// In no event shall MStar be liable for any direct, indirect, incidental or
// consequential damages, including without limitation, lost of profit or
// revenues, lost or damage of data, and unauthorized system use.
// You agree that this Section 4 shall still apply without being affected
// even if MStar Software has been modified by MStar in accordance with your
// request or instruction for your use, except otherwise agreed by both
// parties in writing.
//
// 5. If requested, MStar may from time to time provide technical supports or
// services in relation with MStar Software to you for your use of
// MStar Software in conjunction with your or your customer`s product
// ("Services").
// You understand and agree that, except otherwise agreed by both parties in
// writing, Services are provided on an "AS IS" basis and the warranty
// disclaimer set forth in Section 4 above shall apply.
//
// 6. Nothing contained herein shall be construed as by implication, estoppels
// or otherwise:
// (a) conferring any license or right to use MStar name, trademark, service
// mark, symbol or any other identification;
// (b) obligating MStar or any of its affiliates to furnish any person,
// including without limitation, you and your customers, any assistance
// of any kind whatsoever, or any information; or
// (c) conferring any license or right under any intellectual property right.
//
// 7. These terms shall be governed by and construed in accordance with the laws
// of Taiwan, R.O.C., excluding its conflict of law rules.
// Any and all dispute arising out hereof or related hereto shall be finally
// settled by arbitration referred to the Chinese Arbitration Association,
// Taipei in accordance with the ROC Arbitration Law and the Arbitration
// Rules of the Association by three (3) arbitrators appointed in accordance
// with the said Rules.
// The place of arbitration shall be in Taipei, Taiwan and the language shall
// be English.
// The arbitration award shall be final and binding to both parties.
//
//******************************************************************************
//<MStar Software>
////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2006-2009 MStar Semiconductor, Inc.
// All rights reserved.
//
// Unless otherwise stipulated in writing, any and all information contained
// herein regardless in any format shall remain the sole proprietary of
// MStar Semiconductor Inc. and be kept in strict confidence
// (MStar Confidential Information) by the recipient.
// Any unauthorized act including without limitation unauthorized disclosure,
// copying, use, reproduction, sale, distribution, modification, disassembling,
// reverse engineering and compiling of the contents of MStar Confidential
// Information is unlawful and strictly prohibited. MStar hereby reserves the
// rights to any and all damages, losses, costs and expenses resulting therefrom.
//
////////////////////////////////////////////////////////////////////////////////
#ifndef _MSBOARD_H_
#define _MSBOARD_H_
#define BOARD_NAME "BD_MST181B_D01A_S_NAPOLI"
//------Function to PIN mapping (PAD_MUX) --------------------------------------
#define PIN_SPI_CZ1 BALL_M1
#define PIN_SPI_CZ2 0
#define PIN_SPI_CZ3 0
#define PIN_FLASH_WP0 BALL_N1
#define PIN_FLASH_WP1 0
#define Unknown_pad_mux 0
//define the following values from 1
#define PARALLEL_IN 1
#define SERIAL_IN 2
#define PARALLEL_2nd_PORT 3
#define PARALLEL_OUT 4
#define PCM_A 1
#define TS2_PADs 2
#define SINGLE_CH_I2S_OUT 1
#define MULTI_CH_I2S_OUT 2
#define MULTI_CH_I2S_OUT_SD 3
#define MPIF_PAD_ONE_BIT_MODE 1
#define MPIF_PAD_TWO_BIT_MODE 2
#define MPIF_PAD_FOUR_BIT_MODE 3
#define GPIO_PAD_ONE_BIT_MODE 4
#define GPIO_PAD_TWO_BIT_MODE 5
#define GPIO_PAD_FOUR_BIT_MODE 6
#define SMART_CARD_PCM 1
#define SMART_CARD_TS1 2
#define TS1_PADs 1
#define PCM_PADs 2
#define GPIO_PADs 3
#define DDCR_PADs 1
#define IIC_PADs 2
#define PCM_PE_ON 1
#define PCM_PE_OFF 0
#define PCM_D_PE_ON 1
#define PCM_D_PE_OFF 0
#define PCM_NAND_IS_BYPASS 1
#define PCM_NAND_NO_BYPASS 0
#define PCM_NAND_CS0_EN 0
#define PCM_NAND_CS1_EN 0x10
#define PCM_NAND_CS2_EN 1
#define PCM_NAND_CS3_EN 2
#define PADS_3D_FLAG_CONFIG Unknown_pad_mux
#define PADS_SM_MODE Unknown_pad_mux // SMART_CARD_TS1 conflict with TS1 pad
#define PADS_SD_MODE Unknown_pad_mux // ENABLE conflict with PCM and NAND pad
#define PADS_EMMC_MODE Unknown_pad_mux // ENABLE conflict with PCM and NAND pad
#define PADS_VSYNC_VIF_OUT_EN Unknown_pad_mux // ready
#define PADS_TS0_CONFIG PARALLEL_IN // ready
#define PADS_TS1_CONFIG PARALLEL_OUT // ready
#define PADS_TS2_CONFIG Unknown_pad_mux // ready
#define PADS_TS_OUT Unknown_pad_mux // ready
#if defined(CONFIG_MMC) && CONFIG_MMC
#define PADS_NAND_MODE Unknown_pad_mux
#else
#define PADS_NAND_MODE PCM_A // ready
#endif
#define PADS_NAND_CS PCM_NAND_CS1_EN // Nand chip select
#define PADS_PCM1_CTRL PAD_PCM_CE_N // ready
#define PADS_PCM1_AD PAD_PCM_D7 // ready
#define PADS_PCM1_PE PCM_PE_ON // PCM pad enable
#define PADS_PCM1_D_PE PCM_D_PE_ON // PCM pad enable
#define PADS_CI_CTRL Unknown_pad_mux // ready
#define PADS_CI_AD Unknown_pad_mux // ready
#define PADS_PCM2_CTRL Unknown_pad_mux // ready
#define PADS_SPDIF_OUT PAD_SPDIF_OUT // ready
#define PADS_SPDIF_OUT2 Unknown_pad_mux // ready
#define PADS_SPDIF_IN PAD_SPDIF_IN // ready
#define PADS_I2S_IN PAD_I2S_IN_WS // ready
#define PADS_I2S_MUTE Unknown_pad_mux // ready
#define PADS_I2S_OUT SINGLE_CH_I2S_OUT // ready
#define PADS_I2S_OUT_SD ENABLE //Option: ENABLE / DISABLE
#define PADS_I2S_OUT_SD1 Unknown_pad_mux //Option: ENABLE / DISABLE
#define PADS_I2S_OUT_SD2 Unknown_pad_mux //Option: ENABLE / DISABLE
#define PADS_I2S_OUT_SD3 Unknown_pad_mux //Option: ENABLE / DISABLE
#define PADS_MPIF_MODE Unknown_pad_mux // GPIO_PAD_FOUR_BIT_MODE conflict with GPIO pin
#define PADS_ET_MODE Unknown_pad_mux // ready
#define PADS_UART2_MODE Unknown_pad_mux // ready
#define PADS_UART3_MODE Unknown_pad_mux // ready
#define PADS_UART4_MODE Unknown_pad_mux // ready
#define PADS_FAST_UART_MODE Unknown_pad_mux // ready
#define PADS_PWM0_MODE Unknown_pad_mux // ready
#define PADS_PWM1_MODE Unknown_pad_mux // ready
#define PADS_PWM2_MODE PAD_PWM2 // ready
#define PADS_PWM3_MODE Unknown_pad_mux // ready
#define PADS_PWM4_MODE Unknown_pad_mux // ready
#define PADS_NAND_CS1_EN Unknown_pad_mux // ready
#define PADS_DDCR_MODE Unknown_pad_mux // ready
#define PADS_MIIC_MODE Unknown_pad_mux // ready
#define PADS_TS_OUT Unknown_pad_mux // ready
//------GPIO setting(default GPIO pin level) ------------------------------------
//#define BALL_N1_IS_GPIO GPIO_OUT_LOW // FLASH-WPN1: SPI_FLASH1 write protect, Low :protect
#define BALL_K6_IS_GPIO GPIO_OUT_LOW // Panel_ON-P1: Panel power on/off, Low :On
#define BALL_C2_IS_GPIO GPIO_OUT_HIGH // POWER_SW: DC power on/off, Low :off
#define BALL_K5_IS_GPIO GPIO_OUT_HIGH // VBLCTRL-P2: LCD Backlight control, High :off
//#define BALL_M1_IS_GPIO GPIO_OUT_LOW // SPI-CS1N: SPI_FLASH1 Chip select, Low :select
#define BALL_P5_IS_GPIO GPIO_IN // SDIO-CDZ: SD card 1 detect
#define BALL_C1_IS_GPIO GPIO_IN // HP_DET: Headphone IN detect
#define BALL_P4_IS_GPIO GPIO_IN // SDIO-CDZ: SD card 2 detect ??
#define BALL_N3_IS_GPIO GPIO_OUT_LOW // MUTE_POP: Type Out: Ear phone de-POP High mute
#define BALL_C4_IS_GPIO GPIO_OUT_LOW // PreAMP_EN: Type Out: Pre AMP EN High Mute
#define BALL_B4_IS_GPIO GPIO_IN // GPIO4: SD Card 1 Card write protect
#define BALL_G1_IS_GPIO GPIO_IN // SAR0: Keypad SAR0 in
#define BALL_F3_IS_GPIO GPIO_OUT_HIGH // AMP_SD: Type Out:Class D AMP Enable, Low :Mute
#define BALL_D3_IS_GPIO GPIO_OUT_HIGH // DAC Mute: Low :Mute
//#define BALL_D3_IS_GPIO GPIO_IN // ATSC-AFT: Type In: Atsc Tuner AFT
#define BALL_G2_IS_GPIO GPIO_IN // SAR3: Keypad SAR1 in
#define BALL_J4_IS_GPIO GPIO_OUT_HIGH // PCM_PWR_CTL: CI power on/off (high/low)
#define BALL_J6_IS_GPIO GPIO_OUT_LOW // MHL OC: Type Out: MHL OCP Detectlow: enable
#define BALL_D1_IS_GPIO GPIO_OUT_LOW // BRI_ADJ-PWM2-C: Type Out: Brightness control
#define BALL_J5_IS_GPIO GPIO_OUT_LOW // SD Card Power Enable: Low Enable
#define BALL_H8_IS_GPIO GPIO_IN // I2C-SCL: Type: Out=> H/W I2C_SCL pin
#define BALL_H7_IS_GPIO GPIO_IN // I2C-SDA: Type: I/O=> H/W I2C_SDA pin
#define BALL_N2_IS_GPIO GPIO_OUT_HIGH // USB 2.0 power enable
//=============================================================================
#ifdef CONFIG_MSTAR_VID_ENABLE
#if defined(CONFIG_MSTAR_VID_CTRL_GPIO)
//Note: Please Check Schematics to Get Corresponding GPIO Settings for VID Control.
#define CONFIG_ENABLE_VID0 1
#define CONFIG_ENABLE_VID1 1
#else
#define CONFIG_ENABLE_VID0 0
#define CONFIG_ENABLE_VID1 0
#endif
#if (CONFIG_ENABLE_VID0 == 1)
//Pad Name of VID0 in Specific Board (GPIO_OUT_HIGH is Required)
#define PAD_VID0_IS_GPIO GPIO_OUT_LOW
//Register Address of VID0
#define REG_VID0_GPIO_CONTROL (MS_BUS_RIU_ADDR + (0x002e84 << 1))
//GPIO Control Bit of VID0 (bit0 ~ bit15)
#define REG_VID0_GPIO_MASK (0x0001 << 0)
#else
#define PAD_VID0_IS_GPIO GPIO_NONE
#endif
#if (CONFIG_ENABLE_VID1 == 1)
//Pad Name of VID1 in Specific Board
#define PAD_VID1_IS_GPIO GPIO_OUT_HIGH
//Register Address of VID1
#define REG_VID1_GPIO_CONTROL (MS_BUS_RIU_ADDR + (0x002e84 << 1))
//GPIO Control Bit of VID1 (bit0 ~ bit15)
#define REG_VID1_GPIO_MASK (0x0001 << 8) //GPIO Control Bit of VID1 (bit0 ~ bit15)
#else
#define PAD_VID1_IS_GPIO GPIO_NONE
#endif
#define CONFIG_VID_USE_SIDD 2 //Use SIDD or OSC Value to Setup VID Flow
//- 2: Use SIDD and OSC
//- 1: Use SIDD
//- 0: Use OSC
#if ((CONFIG_VID_USE_SIDD == 1) || (CONFIG_VID_USE_SIDD == 2))
#define CONFIG_SIDD_THRESHOLD_0 200 //0x0000FFFF: Unused
#define CONFIG_SIDD_THRESHOLD_1 0xFFFF //0x0000FFFF: Unused
#define CONFIG_SIDD_THRESHOLD_2 0xFFFF //0x0000FFFF: Unused
#endif
#if ((CONFIG_VID_USE_SIDD == 0) || (CONFIG_VID_USE_SIDD == 2))
#define CONFIG_OSC_THRESHOLD_0 185 //0x0000FFFF: Unused
#define CONFIG_OSC_THRESHOLD_1 0xFFFF //0x0000FFFF: Unused
#define CONFIG_OSC_THRESHOLD_2 0xFFFF //0x0000FFFF: Unused
#endif
#else
#define PAD_VID0_IS_GPIO GPIO_NONE
#define PAD_VID1_IS_GPIO GPIO_NONE
#endif
//=============================================================================
//==================================USB 3.0======================================
#define REG_USB30_GPIO_CONTROL 0x1225FC
#define REG_USB30_GPIO_BANK 0x002E
#define REG_USB30_GPIO_OFFSET 0x82 //bit0~bit7 offset addr
#define REG_USB30_GPIO_BIT 0x0 //bit8~bit10 bit count
#define REG_USB30_GPIO_LOW_ACTIVE 0x0 //Turn on 5V ( 0: GPIO High 1: GPIO Low) active
//=============================================================================
//------Chip Type---------------------------------------------------------------
#include "chip/MSD8530WDB.h"
//------I2C devices-------------------------------------------------------------
#if USE_SW_I2C
#undef USE_SW_I2C
#define USE_SW_I2C 1
#define USE_SW_I2C_HIGHSPEED 0
#endif
#define E_I2C_BUS_DDCROM 0
#define E_I2C_BUS_SYS E_I2C_BUS_DDCROM
#define E_I2C_BUS_DDCA0 1
#define E_I2C_BUS_DDCA1 2
#define E_I2C_BUS_DDCA2 3
#define E_I2C_BUS_DDCA3 4
#define E_I2C_BUS_DDCD0 5
#define E_I2C_BUS_DDCD1 6
#define E_I2C_BUS_DDCD2 7
#define I2C_DEV_DATABASE ((E_I2C_BUS_SYS << 8) | 0xA4)
#define I2C_DEV_HDCPKEY ((E_I2C_BUS_SYS << 8) | 0xA8)
#define I2C_DEV_EDID_A0 ((E_I2C_BUS_DDCA0 << 8) | 0xA0)
#define I2C_DEV_EDID_D0 ((E_I2C_BUS_DDCD0 << 8) | 0xA0)
#define I2C_DEV_EDID_D1 ((E_I2C_BUS_DDCD1 << 8) | 0xA0)
#define I2C_DEV_EDID_D2 ((E_I2C_BUS_DDCD2 << 8) | 0xA0)
//----------------------------------------------------
#define TUNER_IIC_BUS E_I2C_BUS_DDCD0
#define DEMOD_IIC_BUS E_I2C_BUS_DDCD0
#define RM_DEVICE_ADR I2C_DEV_DATABASE
#define RM_HDCP_ADR I2C_DEV_HDCPKEY
//------Peripheral Device Setting-----------------------------------------------
#define PANEL_TYPE_SEL g_PNL_TypeSel//PNL_AU37_T370HW01_HD //PNL_AU20_T200XW02_WXGA//PNL_LG32_WXGA //PNL_AU19PW01_WXGA//PNL_AU20_T200XW02_WXGA //PNL_LG19_SXGA //PNL_CMO22_WSXGA //PNL_AU20_T200XW02_WXGA // PNL_CMO22_WSXGA // PNL_AU20_T200XW02_WXGA // PNL_AU17_EN05_SXGA
#define SATURN_FLASH_TYPE FLASH_TYPE_SERIAL
#define SATURN_FLASH_IC FLASH_IC_MX25L6405D
#define ENABLE_DDC_RAM DISABLE
#define RM_EEPROM_TYPE RM_TYPE_24C512 // RM_TYPE_24C64
#define DIGITAL_I2S_SELECT AUDIO_I2S_NONE
#define INPUT_AV_VIDEO_COUNT 1
#define INPUT_SV_VIDEO_COUNT 1 //0, if set = 0, code flow can not support
#define INPUT_YPBPR_VIDEO_COUNT 1
#ifdef ATSC_SYSTEM
#define INPUT_SCART_VIDEO_COUNT 1
#else
#define INPUT_SCART_VIDEO_COUNT 1
#endif
#define INPUT_HDMI_VIDEO_COUNT 4
#ifdef ATSC_SYSTEM
#define ENABLE_SCART_VIDEO 1
#else
#define ENABLE_SCART_VIDEO 1
#endif
//------Input Source Mux--------------------------------------------------------
#define INPUT_VGA_MUX INPUT_PORT_ANALOG0
#define INPUT_VGA_SYNC_MUX INPUT_PORT_ANALOG0_SYNC //SYNC port of VGA. There is a case which data and sync use different port.
#define INPUT_YPBPR_MUX INPUT_PORT_ANALOG1
#define INPUT_TV_YMUX INPUT_PORT_YMUX_CVBS3 //INPUT_PORT_YMUX_CVBS2
#define INPUT_AV_YMUX INPUT_PORT_YMUX_CVBS2
#define INPUT_AV2_YMUX INPUT_PORT_NONE_PORT
#define INPUT_AV3_YMUX INPUT_PORT_NONE_PORT
#define INPUT_SV_YMUX INPUT_PORT_YMUX_CVBS1 //INPUT_PORT_NONE_PORT
#define INPUT_SV_CMUX INPUT_PORT_CMUX_CVBS0 //INPUT_PORT_NONE_PORT
#define INPUT_SV2_YMUX INPUT_PORT_NONE_PORT
#define INPUT_SV2_CMUX INPUT_PORT_NONE_PORT
#define INPUT_SCART_YMUX INPUT_PORT_YMUX_CVBS3
#define INPUT_SCART_RGBMUX INPUT_PORT_ANALOG2
#define INPUT_SCART_FB_MUX SCART_FB1
#define INPUT_SCART2_YMUX INPUT_PORT_NONE_PORT
#define INPUT_SCART2_RGBMUX INPUT_PORT_NONE_PORT
#define INPUT_SCART2_FB_MUX SCART_FB2
#define SCART_ID_SEL 0x04 // HSYNC2
//============================================
// Use ATSC code base audio path setting
//============================================
#define AUDIO_SOURCE_DTV AUDIO_DSP1_DVB_INPUT
#define AUDIO_SOURCE_DTV2 AUDIO_DSP1_DVB_INPUT
#define AUDIO_SOURCE_ATV AUDIO_DSP4_SIF_INPUT
#define AUDIO_SOURCE_PC AUDIO_AUIN0_INPUT
#define AUDIO_SOURCE_YPBPR AUDIO_AUIN1_INPUT
#define AUDIO_SOURCE_YPBPR2 AUDIO_NULL_INPUT
#define AUDIO_SOURCE_AV AUDIO_AUIN2_INPUT
#define AUDIO_SOURCE_AV2 AUDIO_NULL_INPUT
#define AUDIO_SOURCE_AV3 AUDIO_NULL_INPUT
#define AUDIO_SOURCE_SV AUDIO_AUIN2_INPUT
#define AUDIO_SOURCE_SV2 AUDIO_NULL_INPUT
#define AUDIO_SOURCE_SCART AUDIO_AUIN3_INPUT
#define AUDIO_SOURCE_SCART2 AUDIO_NULL_INPUT
#define AUDIO_SOURCE_HDMI AUDIO_HDMI_INPUT
#define AUDIO_SOURCE_HDMI2 AUDIO_HDMI_INPUT
#define AUDIO_SOURCE_HDMI3 AUDIO_HDMI_INPUT
#define AUDIO_SOURCE_HDMI4 AUDIO_HDMI_INPUT
#define AUDIO_SOURCE_DVI AUDIO_AUIN0_INPUT
#define AUDIO_SOURCE_DVI2 AUDIO_AUIN0_INPUT
#define AUDIO_SOURCE_DVI3 AUDIO_AUIN0_INPUT
#define AUDIO_SOURCE_DVI4 AUDIO_AUIN0_INPUT
#define AUDIO_PATH_MAIN_SPEAKER AUDIO_T3_PATH_I2S
#define AUDIO_PATH_HP AUDIO_T3_PATH_AUOUT1
#define AUDIO_PATH_LINEOUT AUDIO_T3_PATH_AUOUT0
#define AUDIO_PATH_SIFOUT AUDIO_T3_PATH_AUOUT2
#define AUDIO_PATH_SCART1 AUDIO_PATH_SIFOUT
#define AUDIO_PATH_SCART2 AUDIO_PATH_LINEOUT
#define AUDIO_PATH_SPDIF AUDIO_T3_PATH_SPDIF
#define AUDIO_OUTPUT_MAIN_SPEAKER AUDIO_I2S_OUTPUT
#define AUDIO_OUTPUT_HP AUDIO_HP_OUTPUT
#define AUDIO_OUTPUT_LINEOUT AUDIO_AUOUT0_OUTPUT
#define AUDIO_OUTPUT_SIFOUT AUDIO_AUOUT2_OUTPUT
#define AUDIO_OUTPUT_SCART1 AUDIO_OUTPUT_SIFOUT
#define AUDIO_OUTPUT_SCART2 AUDIO_OUTPUT_LINEOUT
//----------------------------ROCKET AUDIO--------------------------------
#define AUDIO_ROCKER_SPDIF_OUT 1
#define AUDIO_ROCKER_I2S_OUT 2
#define AUDIO_ROCKET_OUTPUT_TYPE Unknown_pad_mux //AUDIO_ROCKER_I2S_OUT AUDIO_ROCKER_SPDIF_OUT Unknown_pad_mux
//-----------------------Add GPIO switch setting -------------------------
#define Switch_PC() _FUNC_NOT_USED()
#define Switch_YPBPR() _FUNC_NOT_USED()
#define Switch_YPBPR2() _FUNC_NOT_USED()
#define Switch_AV() _FUNC_NOT_USED()
#define Switch_AV2() _FUNC_NOT_USED()
#define Switch_AV3() _FUNC_NOT_USED()
#define Switch_SV() _FUNC_NOT_USED()
#define Switch_SV2() _FUNC_NOT_USED()
#define Switch_SCART() _FUNC_NOT_USED()
#define Switch_SCART2() _FUNC_NOT_USED()
#define Switch_DVI() MApi_XC_DVI_SwitchSrc(INPUT_PORT_DVI0)
#define Switch_DVI2() MApi_XC_DVI_SwitchSrc(INPUT_PORT_DVI1)
#define Switch_DVI3() MApi_XC_DVI_SwitchSrc(INPUT_PORT_DVI2)
#define Switch_DVI4() MApi_XC_DVI_SwitchSrc(INPUT_PORT_DVI3)
#define Switch_DEFAULT() _FUNC_NOT_USED()
// HDMI switch Setting
#define HDMI_SWITCH_SELECT HDMI_SWITCH_NONE
//===============================================================
//------Tuner Setting-----------------------------------------------------------
#ifdef ATSC_SYSTEM
#define TS_CLK_INV 0
#define TS_PARALLEL_OUTPUT 1
#define FRONTEND_DEMOD_TYPE EMBEDDED_ATSC_DEMOD //EMBEDDED_ATSC_DEMOD//TOSHIBA_TC90512XBG_DEMOD
#define FRONTEND_TUNER_TYPE SILAB_2158_TUNER_A20 //SILAB_2158_TUNER
#define FRONTEND_IF_MIXER_TYPE XUGUANG_T126CWADC //PHILIPS_FQD1216_TUNER
#define FRONTEND_IF_DEMODE_TYPE MSTAR_INTERN_VIF //MSTAR_INTERN_VIF //PHILIPS_TDA9886 //MSTAR_VIF_MSB1210 //MSTAR_VIF //PHILIPS_TDA9886
#else
#define TS_CLK_INV 0
#define TS_PARALLEL_OUTPUT 1
#define TS_SERIAL_OUTPUT_IF_CI_REMOVED 0
#define FRONTEND_DEMOD_TYPE EMBEDDED_DVBT_DEMOD //EMBEDDED_DVBT_DEMOD //ZARLINK_ZL10353_DEMODE
#define FRONTEND_TUNER_TYPE SILAB_2158_TUNER_A20 //SILAB_2158_TUNER
#define FRONTEND_IF_MIXER_TYPE XUGUANG_T126CWADC //PHILIPS_FQD1216_TUNER
#define FRONTEND_IF_DEMODE_TYPE MSTAR_INTERN_VIF //MSTAR_INTERN_VIF //PHILIPS_TDA9886 //MSTAR_VIF_MSB1210 //MSTAR_VIF //PHILIPS_TDA9886
#endif
#define FRONTEND_SECOND_DEMOD_TYPE MSTAR_NONE_DEMOD
//#define BD_MST072A_D01A_WITH_ONBOARD_TUNER_ATV
#define MSB1210_TS_SERIAL_INVERSION 0
#define MSB1210_TS_PARALLEL_INVERSION 1
#define MSB1210_DTV_DRIVING_LEVEL 1 //0 or 1
#define MSB1210_WEAK_SIGNAL_PICTURE_FREEZE_ENABLE 1
#define INTERN_DVBT_TS_SERIAL_INVERSION 0
#define INTERN_DVBT_TS_PARALLEL_INVERSION 0
#define INTERN_DVBT_DTV_DRIVING_LEVEL 1
#define INTERN_DVBT_WEAK_SIGNAL_PICTURE_FREEZE_ENABLE 1
//#if (I2C_IO_EXPANDER_TYPE == I2C_IO_EXPANDER_MSG1016RC)
//#define SECAM_L_PRIME_ON() MDrv_ExGPIO3_Set(BIT3, 1) //For SECAM-L PRIME
//#define SECAM_L_PRIME_OFF() MDrv_ExGPIO3_Set(BIT3, 0) //For Not SECAM-L PRIME
//#define EXT_RF_AGC_ON() MDrv_ExGPIO3_Set(BIT2, 1) // ATV mode: external RF AGC
//#define EXT_RF_AGC_OFF() MDrv_ExGPIO3_Set(BIT2, 0) // DTV mode: internal RF AGC
//#else
#define SECAM_L_PRIME_ON() _FUNC_NOT_USED() //GPIO60_SET(1)//_FUNC_NOT_USED()
#define SECAM_L_PRIME_OFF() _FUNC_NOT_USED() //GPIO60_SET(0)//_FUNC_NOT_USED()
#define EXT_RF_AGC_ON() mdrv_gpio_set_high( BALL_AG3 ) // ATV mode: external RF AGC
#define EXT_RF_AGC_OFF() mdrv_gpio_set_low( BALL_AG3 ) // DTV mode: internal RF AGC
//#endif
//------IR & Key Setting--------------------------------------------------------
#define IR_TYPE_SEL IR_TYPE_MSTAR_DTV // IR_TYPE_MSTAR_DTV // IR_TYPE_CUS03_DTV // IR_TYPE_NEW
#define KEYPAD_TYPE_SEL KEYPAD_TYPE_ORIG // KEYPAD_TYPE_DEMO
#define POWER_KEY_SEL POWER_KEY_PAD_INT
//------Power Setting-----------------------------------------------------------
#define ENABLE_POWER_SAVING 0
#define POWER_DOWN_SEQ 1
#define POWER_SAVING_T 0
#define SCREENSAVER_ENABLE 1
#define NO_SIGNAL_AUTO_SHUTDOWN 1
#define STANDBY_MODE POWERMODE_S3
#define POWERUP_MODE PUMODE_WORK
#define ENABLE_POWER_GOOD_DETECT 1
#define ENABLE_POWER_SAVING_SIF 1
#define ENABLE_POWER_SAVING_VDMVD 0
#define ENABLE_POWER_SAVING_DPMS 0
#define ENABLE_PWS 0 // Analog IP PWS
#define ENABLE_DIP_PWS 0 //Digital IP PWS, for U3 only now
#define ENABLE_DIP_MONITOR 0 //For U3 oly now
//------Memory Setting----------------------------------------------------------
#define BOOTUP_MIU_BIST 1
#ifndef MEMORY_MAP
#define MEMORY_MAP MMAP_512_256MB//MMAP_64MB
#endif
#define MIU_INTERFACE DDR3_INTERFACE_BGA //DDR3_INTERFACE_BGA / DDR2_INTERFACE_BGA
#define MIU_DRAM_FREQ 1666 //800 / 1066 / 1333 / 1666
#define MIU1_INTERFACE DDR3_INTERFACE_BGA //DDR3_INTERFACE_BGA / DDR2_INTERFACE_BGA
#define MIU1_DRAM_FREQ 1666 //800 / 1066 / 1333 / 1666
#define MIU_CONFIG DDR3_MIU0_32_MIU1_16
//------Analog Function Setting-------------------------------------------------
#define MOD_LVDS_GPIO 0x820
#define LVDS_PN_SWAP_L 0x00
#define LVDS_PN_SWAP_H 0x00
#define ENABLE_SSC DISABLE
#define ENABLE_LVDSTORGB_CONVERTER DISABLE
#if ENABLE_SSC
#define MIU_SSC_SPAN_DEFAULT 350
#define MIU_SSC_STEP_DEFAULT 200
#define MIU_SSC_SPAN_MAX 500
#define MIU_SSC_STEP_MAX 300
#define LVDS_SSC_SPAN_DEFAULT 350
#define LVDS_SSC_STEP_DEFAULT 200
#define LVDS_SSC_SPAN_MAX 500
#define LVDS_SSC_STEP_MAX 300
#endif
//------ETHNET PHY_TYPE---------------------------------------------------------
#define ETHNET_PHY_LAN8700 0x0f
#define ETHNET_PHY_IP101ALF 0x01
#define ETHNET_PHY_TYPE ETHNET_PHY_IP101ALF
//------DRAM Config---------------------------------------------------------------
#define DRAM_TYPE DDR_II
#define DRAM_BUS DRAM_BUS_16
#define DDRPLL_FREQ DDRLLL_FREQ_400
#define DDRII_ODT
#define MIU_0_02 0x0C45
#define MIU_0_1A 0x5151
#define MIU_0_36 0x0244
#define MIU_0_38 0x0070
//------MCU use Scaler internal MPLL clock-------------------
#define MCU_CLOCK_SEL MCUCLK_144MHZ
#define MST_XTAL_CLOCK_HZ FREQ_12MHZ
#define MST_XTAL_CLOCK_KHZ (MST_XTAL_CLOCK_HZ/1000UL)
#define MST_XTAL_CLOCK_MHZ (MST_XTAL_CLOCK_KHZ/1000UL)
//------MCU Code----------------------------------------------------------------
#define ENABLE_HKMCU_ICACHE_BYPASS 0
#define ENABLE_HKMCU_CODE_ECC 0
//------Extra-------------------------------------------------------------------
#define POWER_DOWN_INFORM_EXTERNALMCU 0
#if POWER_DOWN_INFORM_EXTERNALMCU
#define EXMCU_SLAVE_ADDR 0xA8
#define EXMCU_SUBADDRESS 0x04
#define EXMCU_SLEEP_MODE 0x00
#endif
// ??? This board support HW IIC (TBC)
#define IIC_BY_HW 0 //
#define IIC_BY_SW 1 //
#define _EEPROM_ACCESS IIC_BY_SW//IIC_BY_HW
#define EEPROM_CLK_SEL EEPROM_CLK_100KHZ
//------MST I/O control definition----------------------------------------------
#define ENABLE_DPWM_FUNCTION 0
//-------------------------------------------------
#define SCART_OUT_ON() _FUNC_NOT_USED()
#define SCART_OUT_OFF() _FUNC_NOT_USED())
// Video switch Setting
#define Switch_YPbPr1() _FUNC_NOT_USED()
#define Switch_YPbPr2() _FUNC_NOT_USED()
#define SwitchRGBToSCART() _FUNC_NOT_USED()
#define SwitchRGBToDSUB() _FUNC_NOT_USED()
#define MDrv_Sys_GetUsbOcdN() _FUNC_NOT_USED
#define MDrv_Sys_GetRgbSw()
// Audio Amplifier
#define Audio_Amplifier_ON() mdrv_gpio_set_high( BALL_F3 )
#define Audio_Amplifier_OFF() mdrv_gpio_set_low( BALL_F3 )
#define Adj_Volume_Off() _FUNC_NOT_USED()
#define Adj_Volume_On() _FUNC_NOT_USED()
#define Panel_VCC_ON() mdrv_gpio_set_low( BALL_K6 )
#define Panel_VCC_OFF() mdrv_gpio_set_high( BALL_K6 )
#define Panel_Backlight_VCC_ON() mdrv_gpio_set_low( BALL_K5 )
#define Panel_Backlight_VCC_OFF() mdrv_gpio_set_high( BALL_K5 )
//#define Panel_Backlight_PWM_ADJ(x) msPWM2_DutyCycle( x )
//#define Panel_Backlight_Max_Current(x) msPWM2_DutyCycle( x )
#define Panel_Backlight_PWM_ADJ(x) MDrv_PWM_DutyCycle(E_PWM_CH2, x)
#define Panel_Backlight_Max_Current(x) MDrv_PWM_DutyCycle(E_PWM_CH2, x)
#define Panel_VG_HL_CTL_ON() _FUNC_NOT_USED()
#define Panel_VG_HL_CTL_OFF() _FUNC_NOT_USED()
#define PANEL_CONNECTOR_SWAP_LVDS_CH 0
#define PANEL_CONNECTOR_SWAP_LVDS_POL 1
//------ PANEL RELATED ---------------------------------------------------------
#define PANEL_PDP_10BIT 1
#define PANEL_CONNECTOR_SWAP_PORT 1
#define PANEL_SWAP_LVDS_POL 1
#define PANEL_SWAP_LVDS_CH 0
//==========
// 1 : 129A
// 2 : 129B
// 3 : 129C
// 4 : User define
//===========================
#define BD_LVDS_CONNECT_TYPE 3
// PCMCIA power control
#define PCMCIA_VCC_ON() mdrv_gpio_set_high( BALL_J4 )
#define PCMCIA_VCC_OFF() mdrv_gpio_set_low( BALL_J4 )
// Power Saving
#define Power_On() _FUNC_NOT_USED()
#define Power_Off() _FUNC_NOT_USED()
#define MDrv_Sys_GetSvideoSw() _FUNC_NOT_USED()
#define Peripheral_Device_Reset_ON() _FUNC_NOT_USED()
#define Peripheral_Device_Reset_OFF() _FUNC_NOT_USED()
#define Tuner_ON() _FUNC_NOT_USED()
#define Tuner_OFF() _FUNC_NOT_USED()
#define Demodulator_ON() _FUNC_NOT_USED()
#define Demodulator_OFF() _FUNC_NOT_USED()
#define LAN_ON() _FUNC_NOT_USED()
#define LAN_OFF() _FUNC_NOT_USED()
#define TunerOffPCMCIA() PCMCIA_VCC_OFF()
#define TunerOnPCMCIA() PCMCIA_VCC_ON()
// LED Control
#define LED_RED_ON() _FUNC_NOT_USED()
#define LED_RED_OFF() _FUNC_NOT_USED()
#define LED_GREEN_ON() _FUNC_NOT_USED()
#define LED_GREEN_OFF() _FUNC_NOT_USED()
#define ST_DET_Read() 0
#define ANT_5V_MNT_Read() 0
#define TU_ERROR_N_Read() 0
#define HDMI_5V_Read() 0
#define COMP_SW_Read() 1
#define PANEL_CTL_Off() Panel_VCC_OFF()
#define PANEL_CTL_On() Panel_VCC_ON()
#define INV_CTL_Off() Panel_Backlight_VCC_OFF()
#define INV_CTL_On() Panel_Backlight_VCC_ON()
#define POWER_ON_OFF1_On() Power_On()
#define POWER_ON_OFF1_Off() Power_Off()
#define MUTE_On() Adj_Volume_Off()//(XBYTE[0x1e63] |= BIT7)
#define MUTE_Off() Adj_Volume_On()//(XBYTE[0x1e63] &= ~BIT7)
#define EEPROM_WP_On() _FUNC_NOT_USED()
#define EEPROM_WP_Off() _FUNC_NOT_USED()
#define LED_GRN_Off() LED_GREEN_OFF()
#define LED_GRN_On() LED_GREEN_ON()
#define LED_RED_Off() LED_GRN_On()
#define LED_RED_On() LED_GRN_Off()
#define ANT_5V_CTL_Off() _FUNC_NOT_USED()
#define ANT_5V_CTL_On() _FUNC_NOT_USED()
#define BOOSTER_Off() _FUNC_NOT_USED()
#define BOOSTER_On() _FUNC_NOT_USED()
#define RGB_SW_On() _FUNC_NOT_USED()
#define RGB_SW_Off() _FUNC_NOT_USED()
#define SC_RE1_On() _FUNC_NOT_USED()
#define SC_RE1_Off() _FUNC_NOT_USED()
#define SC_RE2_On() _FUNC_NOT_USED()
#define SC_RE2_Off() _FUNC_NOT_USED()
#define TU_RESET_N_On() _FUNC_NOT_USED()//mdrv_gpio_set_high( BALL_P4 )
#define TU_RESET_N_Off() _FUNC_NOT_USED()//mdrv_gpio_set_low( BALL_P4 )
#define DeactivateScartRecord1() //SetGPIOHigh(SC_RE1)
#define ActivateScartRecord1() //SetGPIOLow(SC_RE1)
#define DeactivateScartRecord2() //SetGPIOHigh(SC_RE2)
#define ActivateScartRecord2() //SetGPIOLow(SC_RE2)
//------MST Keypad definition---------------------------------------------------
#define KEYPAD_CHANNEL_SUPPORT 4 //Maximun supported keypad channels
#define ADC_KEY_CHANNEL_NUM 2 //Real supported keypad channels
#define ADC_KEY_LAST_CHANNEL ADC_KEY_CHANNEL_NUM - 1
//config which keypad channel enabled
#define ENABLE_KPDCHAN_1 ENABLE
#define ENABLE_KPDCHAN_2 DISABLE
#define ENABLE_KPDCHAN_3 DISABLE
#define ENABLE_KPDCHAN_4 ENABLE
#define KEYPAD_KEY_VALIDATION 3
#define KEYPAD_REPEAT_KEY_CHECK KEYPAD_KEY_VALIDATION + 2
#define KEYPAD_REPEAT_KEY_CHECK_1 KEYPAD_KEY_VALIDATION + 3
#define KEYPAD_STABLE_NUM 10
#define KEYPAD_STABLE_NUM_MIN 9
#define KEYPAD_REPEAT_PERIOD 2 // 6
#define KEYPAD_REPEAT_PERIOD_1 KEYPAD_REPEAT_PERIOD/2
//------------------------------------------------------------------------------
// SAR boundary define
//------------------------------------------------------------------------------
#define KEYPAD_CH1_UB 0xFF
#define KEYPAD_CH1_LB 0x80
#define KEYPAD_CH2_UB 0xFF
#define KEYPAD_CH2_LB 0x80
#define KEYPAD_CH3_UB 0xFF
#define KEYPAD_CH3_LB 0x80
#define KEYPAD_CH4_UB 0xFF
#define KEYPAD_CH4_LB 0x80
#define ADC_KEY_LEVEL 4
#define ADC_KEY_L0 0x12
#define ADC_KEY_L1 0x36
#define ADC_KEY_L2 0x56
#define ADC_KEY_L3 0x7B
#define ADC_KEY_LEVEL_MAX ADC_KEY_L3
//### Currently Only Support 2 keypad Channels
//### Support un-balanced levels for each channel by spec. requirement
#define ADC_CH1_LEVELS 4 //### must be <= ADC_KEY_LEVEL
#define ADC_CH2_LEVELS 4 //### must be <= ADC_KEY_LEVEL
#define ADC_CH3_LEVELS 4 //### must be <= ADC_KEY_LEVEL
#define ADC_CH4_LEVELS 4 //### must be <= ADC_KEY_LEVEL
#define ADC_KEY_1_L0 0x27//0x27
#define ADC_KEY_1_L1 0x46//0x47
#define ADC_KEY_1_L2 0x63//0x63
#define ADC_KEY_1_L3 0x7A//0x7B
#define ADC_KEY_1_L4 0x00//RFU
#define ADC_KEY_1_L5 0x00//RFU
#define ADC_KEY_1_L6 0x00//RFU
#define ADC_KEY_1_L7 0x00//RFU
#define ADC_KEY_2_L0 0x27//0x27
#define ADC_KEY_2_L1 0x46//0x47
#define ADC_KEY_2_L2 0x63//0x63
#define ADC_KEY_2_L3 0x7A//0x7B
#define ADC_KEY_2_L4 0x00//RFU
#define ADC_KEY_2_L5 0x00//RFU
#define ADC_KEY_2_L6 0x00//RFU
#define ADC_KEY_2_L7 0x00//RFU
#if (KEYPAD_TYPE_SEL == KEYPAD_TYPE_CUSTMOER) // CUSTMOER keypad
#define ADC_KEY_1_L0_FLAG IRKEY_UP
#define ADC_KEY_1_L1_FLAG IRKEY_MENU
#define ADC_KEY_1_L2_FLAG IRKEY_LEFT
#define ADC_KEY_1_L3_FLAG IRKEY_MUTE
#define ADC_KEY_1_L4_FLAG IRKEY_DUMY//RFU
#define ADC_KEY_1_L5_FLAG IRKEY_DUMY//RFU
#define ADC_KEY_1_L6_FLAG IRKEY_DUMY//RFU
#define ADC_KEY_1_L7_FLAG IRKEY_DUMY//RFU
#define ADC_KEY_2_L0_FLAG IRKEY_POWER
#define ADC_KEY_2_L1_FLAG IRKEY_INPUT_SOURCE
#define ADC_KEY_2_L2_FLAG IRKEY_RIGHT
#define ADC_KEY_2_L3_FLAG IRKEY_DOWN
#define ADC_KEY_2_L4_FLAG IRKEY_DUMY//RFU
#define ADC_KEY_2_L5_FLAG IRKEY_DUMY//RFU
#define ADC_KEY_2_L6_FLAG IRKEY_DUMY//RFU
#define ADC_KEY_2_L7_FLAG IRKEY_DUMY//RFU
#elif (KEYPAD_TYPE_SEL == KEYPAD_TYPE_ORIG) // MStar normal keypad
#define ADC_KEY_1_L0_FLAG IRKEY_UP
#define ADC_KEY_1_L1_FLAG IRKEY_MENU
#define ADC_KEY_1_L2_FLAG IRKEY_LEFT
#define ADC_KEY_1_L3_FLAG IRKEY_MUTE
#define ADC_KEY_1_L4_FLAG IRKEY_DUMY//RFU
#define ADC_KEY_1_L5_FLAG IRKEY_DUMY//RFU
#define ADC_KEY_1_L6_FLAG IRKEY_DUMY//RFU
#define ADC_KEY_1_L7_FLAG IRKEY_DUMY//RFU
#define ADC_KEY_2_L0_FLAG IRKEY_POWER
#define ADC_KEY_2_L1_FLAG IRKEY_INPUT_SOURCE
#define ADC_KEY_2_L2_FLAG IRKEY_RIGHT
#define ADC_KEY_2_L3_FLAG IRKEY_DOWN
#define ADC_KEY_2_L4_FLAG IRKEY_DUMY//RFU
#define ADC_KEY_2_L5_FLAG IRKEY_DUMY//RFU
#define ADC_KEY_2_L6_FLAG IRKEY_DUMY//RFU
#define ADC_KEY_2_L7_FLAG IRKEY_DUMY//RFU
#elif (KEYPAD_TYPE_SEL == KEYPAD_TYPE_DEMO) // MStar demo set keypad
#define ADC_KEY_1_L0_FLAG IRKEY_MUTE
#define ADC_KEY_1_L1_FLAG IRKEY_VOLUME_MINUS
#define ADC_KEY_1_L2_FLAG IRKEY_VOLUME_PLUS
#define ADC_KEY_1_L3_FLAG IRKEY_DOWN
#define ADC_KEY_1_L4_FLAG IRKEY_DUMY//RFU
#define ADC_KEY_1_L5_FLAG IRKEY_DUMY//RFU
#define ADC_KEY_1_L6_FLAG IRKEY_DUMY//RFU
#define ADC_KEY_1_L7_FLAG IRKEY_DUMY//RFU
#define ADC_KEY_2_L0_FLAG IRKEY_POWER
#define ADC_KEY_2_L1_FLAG IRKEY_UP
#define ADC_KEY_2_L2_FLAG IRKEY_MENU
#define ADC_KEY_2_L3_FLAG IRKEY_INPUT_SOURCE
#define ADC_KEY_2_L4_FLAG IRKEY_DUMY//RFU
#define ADC_KEY_2_L5_FLAG IRKEY_DUMY//RFU
#define ADC_KEY_2_L6_FLAG IRKEY_DUMY//RFU
#define ADC_KEY_2_L7_FLAG IRKEY_DUMY//RFU
#endif
//------------------------------------------------------------------------------
// SAR boundary define
//------------------------------------------------------------------------------
#define LK_KEYPAD_CH1_UB 0x3F
#define LK_KEYPAD_CH1_LB 0x1A
#define LK_KEYPAD_CH2_UB 0x3F
#define LK_KEYPAD_CH2_LB 0x1A
#define LK_KEYPAD_CH3_UB 0x3F
#define LK_KEYPAD_CH3_LB 0x00
#define LK_KEYPAD_CH4_UB 0x3F
#define LK_KEYPAD_CH4_LB 0x00
#define LK_CH_MINUS_UB 0x11
#define LK_CH_MINUS_LB 0x0D
#define LK_CH_PLUS_UB 0x11
#define LK_CH_PLUS_LB 0x0D
#define LK_INPUT_UB 0x09
#define LK_INPUT_LB 0x05
#define LK_MENU_UB 0x09
#define LK_MENU_LB 0x05
#define LK_OK_UB 0x18
#define LK_OK_LB 0x14
#define LK_POWER_UB 0x03
#define LK_POWER_LB 0x00
#define LK_VOL_MINUS_UB 0x18
#define LK_VOL_MINUS_LB 0x14
#define LK_VOL_PLUS_UB 0x03
#define LK_VOL_PLUS_LB 0x00
//-----PIN_OUT_SELECT------------------------------------------------------------------------
//#define PWM0_PERIOD 0xff
//#define PWM1_PERIOD 0xff
#define PWM2_PERIOD 0xFF //PWM2 Period=( PWM2_PERIOD+1 ) *( 1/ Xtal)
//#define PWM3_PERIOD 0xFf
//#define INIT_PWM0_DUTY 0x7e
//#define INIT_PWM1_DUTY 0x7e
#define INIT_PWM2_DUTY 0x7e //PWM2_duty= (Init_Pwm2_DUTY +1 ) * (1/XTAL)
//#define INIT_PWM3_DUTY 0x7e
#define BACKLITE_INIT_SETTING ENABLE
#define PWM2_MUX_SEL 0x00
//------8051 Serial Port Setting------------------------------------------------
#if OBA2
//----------------------------------------------------------------------------
// UART_SRC_SEL
//----------------------------------------------------------------------------
#define UART0_SRC_SEL (UART_SEL_PIU_UART0)
#define UART1_SRC_SEL (UART_SEL_MHEG5)
#endif
#if(ENABLE_UART1_DEBUG)
#define ENABLE_UART0 DISABLE
#define ENABLE_UART0_INTERRUPT DISABLE
#define ENABLE_UART1 ENABLE
#define ENABLE_UART1_INTERRUPT ENABLE
//------STDIO device setting----------------------------------------------------
#define STDIN_DEVICE IO_DEV_UART1
#define STDOUT_DEVICE IO_DEV_UART1
#else
#define ENABLE_UART0 ENABLE
#define ENABLE_UART0_INTERRUPT ENABLE
#define ENABLE_UART1 DISABLE
#define ENABLE_UART1_INTERRUPT DISABLE
//------STDIO device setting----------------------------------------------------
#define STDIN_DEVICE IO_DEV_UART0
#define STDOUT_DEVICE IO_DEV_UART0
#endif
#define ENABLE_PIU_UART0 DISABLE
#define ENABLE_PIU_UART0_INTERRUPT DISABLE
//------ HDMI RELATED ---------------------------------------------------------
#define HDCP_HPD_INVERSE ENABLE
#endif // _MSBOARD_H_
| [
"[email protected]"
] | |
42998dcd94960c8568dbbd86495dde5e1965940c | d850928ce17120e862456adcee017cf62c83f620 | /boot/external/BSD/shim/src/Cryptlib/Library/BaseCryptLib.h | 7abe94b7f82ba961705a0254f214916aff1cd25c | [
"BSD-3-Clause",
"MIT",
"BSD-2-Clause"
] | permissive | tenpoku1000/UEFI_SecureBoot | 23863de61f41aa517d5ee8aad859e9e18a816cda | 6a58d4e2c3b7daffb113450b36840bc3aaefeb40 | refs/heads/master | 2020-04-06T07:12:45.387151 | 2016-11-06T08:29:08 | 2016-11-06T08:29:08 | 42,910,156 | 17 | 1 | null | null | null | null | UTF-8 | C | false | false | 61,660 | h | /** @file
Defines base cryptographic library APIs.
The Base Cryptographic Library provides implementations of basic cryptography
primitives (Hash Serials, HMAC, RSA, Diffie-Hellman, etc) for UEFI security
functionality enabling.
Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
#ifndef __BASE_CRYPT_LIB_H__
#define __BASE_CRYPT_LIB_H__
#define IN
#define OUT
#define CONST const
///
/// MD4 digest size in bytes
///
#define MD4_DIGEST_SIZE 16
///
/// MD5 digest size in bytes
///
#define MD5_DIGEST_SIZE 16
///
/// SHA-1 digest size in bytes.
///
#define SHA1_DIGEST_SIZE 20
///
/// SHA-256 digest size in bytes
///
#define SHA256_DIGEST_SIZE 32
///
/// TDES block size in bytes
///
#define TDES_BLOCK_SIZE 8
///
/// AES block size in bytes
///
#define AES_BLOCK_SIZE 16
///
/// RSA Key Tags Definition used in RsaSetKey() function for key component identification.
///
typedef enum {
RsaKeyN, ///< RSA public Modulus (N)
RsaKeyE, ///< RSA Public exponent (e)
RsaKeyD, ///< RSA Private exponent (d)
RsaKeyP, ///< RSA secret prime factor of Modulus (p)
RsaKeyQ, ///< RSA secret prime factor of Modules (q)
RsaKeyDp, ///< p's CRT exponent (== d mod (p - 1))
RsaKeyDq, ///< q's CRT exponent (== d mod (q - 1))
RsaKeyQInv ///< The CRT coefficient (== 1/q mod p)
} RSA_KEY_TAG;
//=====================================================================================
// One-Way Cryptographic Hash Primitives
//=====================================================================================
/**
Retrieves the size, in bytes, of the context buffer required for MD4 hash operations.
@return The size, in bytes, of the context buffer required for MD4 hash operations.
**/
UINTN
EFIAPI
Md4GetContextSize (
VOID
);
/**
Initializes user-supplied memory pointed by Md4Context as MD4 hash context for
subsequent use.
If Md4Context is NULL, then return FALSE.
@param[out] Md4Context Pointer to MD4 context being initialized.
@retval TRUE MD4 context initialization succeeded.
@retval FALSE MD4 context initialization failed.
**/
BOOLEAN
EFIAPI
Md4Init (
OUT VOID *Md4Context
);
/**
Makes a copy of an existing MD4 context.
If Md4Context is NULL, then return FALSE.
If NewMd4Context is NULL, then return FALSE.
@param[in] Md4Context Pointer to MD4 context being copied.
@param[out] NewMd4Context Pointer to new MD4 context.
@retval TRUE MD4 context copy succeeded.
@retval FALSE MD4 context copy failed.
**/
BOOLEAN
EFIAPI
Md4Duplicate (
IN CONST VOID *Md4Context,
OUT VOID *NewMd4Context
);
/**
Digests the input data and updates MD4 context.
This function performs MD4 digest on a data buffer of the specified size.
It can be called multiple times to compute the digest of long or discontinuous data streams.
MD4 context should be already correctly intialized by Md4Init(), and should not be finalized
by Md4Final(). Behavior with invalid context is undefined.
If Md4Context is NULL, then return FALSE.
@param[in, out] Md4Context Pointer to the MD4 context.
@param[in] Data Pointer to the buffer containing the data to be hashed.
@param[in] DataSize Size of Data buffer in bytes.
@retval TRUE MD4 data digest succeeded.
@retval FALSE MD4 data digest failed.
**/
BOOLEAN
EFIAPI
Md4Update (
IN OUT VOID *Md4Context,
IN CONST VOID *Data,
IN UINTN DataSize
);
/**
Completes computation of the MD4 digest value.
This function completes MD4 hash computation and retrieves the digest value into
the specified memory. After this function has been called, the MD4 context cannot
be used again.
MD4 context should be already correctly intialized by Md4Init(), and should not be
finalized by Md4Final(). Behavior with invalid MD4 context is undefined.
If Md4Context is NULL, then return FALSE.
If HashValue is NULL, then return FALSE.
@param[in, out] Md4Context Pointer to the MD4 context.
@param[out] HashValue Pointer to a buffer that receives the MD4 digest
value (16 bytes).
@retval TRUE MD4 digest computation succeeded.
@retval FALSE MD4 digest computation failed.
**/
BOOLEAN
EFIAPI
Md4Final (
IN OUT VOID *Md4Context,
OUT UINT8 *HashValue
);
/**
Retrieves the size, in bytes, of the context buffer required for MD5 hash operations.
@return The size, in bytes, of the context buffer required for MD5 hash operations.
**/
UINTN
EFIAPI
Md5GetContextSize (
VOID
);
/**
Initializes user-supplied memory pointed by Md5Context as MD5 hash context for
subsequent use.
If Md5Context is NULL, then return FALSE.
@param[out] Md5Context Pointer to MD5 context being initialized.
@retval TRUE MD5 context initialization succeeded.
@retval FALSE MD5 context initialization failed.
**/
BOOLEAN
EFIAPI
Md5Init (
OUT VOID *Md5Context
);
/**
Makes a copy of an existing MD5 context.
If Md5Context is NULL, then return FALSE.
If NewMd5Context is NULL, then return FALSE.
@param[in] Md5Context Pointer to MD5 context being copied.
@param[out] NewMd5Context Pointer to new MD5 context.
@retval TRUE MD5 context copy succeeded.
@retval FALSE MD5 context copy failed.
**/
BOOLEAN
EFIAPI
Md5Duplicate (
IN CONST VOID *Md5Context,
OUT VOID *NewMd5Context
);
/**
Digests the input data and updates MD5 context.
This function performs MD5 digest on a data buffer of the specified size.
It can be called multiple times to compute the digest of long or discontinuous data streams.
MD5 context should be already correctly intialized by Md5Init(), and should not be finalized
by Md5Final(). Behavior with invalid context is undefined.
If Md5Context is NULL, then return FALSE.
@param[in, out] Md5Context Pointer to the MD5 context.
@param[in] Data Pointer to the buffer containing the data to be hashed.
@param[in] DataSize Size of Data buffer in bytes.
@retval TRUE MD5 data digest succeeded.
@retval FALSE MD5 data digest failed.
**/
BOOLEAN
EFIAPI
Md5Update (
IN OUT VOID *Md5Context,
IN CONST VOID *Data,
IN UINTN DataSize
);
/**
Completes computation of the MD5 digest value.
This function completes MD5 hash computation and retrieves the digest value into
the specified memory. After this function has been called, the MD5 context cannot
be used again.
MD5 context should be already correctly intialized by Md5Init(), and should not be
finalized by Md5Final(). Behavior with invalid MD5 context is undefined.
If Md5Context is NULL, then return FALSE.
If HashValue is NULL, then return FALSE.
@param[in, out] Md5Context Pointer to the MD5 context.
@param[out] HashValue Pointer to a buffer that receives the MD5 digest
value (16 bytes).
@retval TRUE MD5 digest computation succeeded.
@retval FALSE MD5 digest computation failed.
**/
BOOLEAN
EFIAPI
Md5Final (
IN OUT VOID *Md5Context,
OUT UINT8 *HashValue
);
/**
Retrieves the size, in bytes, of the context buffer required for SHA-1 hash operations.
@return The size, in bytes, of the context buffer required for SHA-1 hash operations.
**/
UINTN
EFIAPI
Sha1GetContextSize (
VOID
);
/**
Initializes user-supplied memory pointed by Sha1Context as SHA-1 hash context for
subsequent use.
If Sha1Context is NULL, then return FALSE.
@param[out] Sha1Context Pointer to SHA-1 context being initialized.
@retval TRUE SHA-1 context initialization succeeded.
@retval FALSE SHA-1 context initialization failed.
**/
BOOLEAN
EFIAPI
Sha1Init (
OUT VOID *Sha1Context
);
/**
Makes a copy of an existing SHA-1 context.
If Sha1Context is NULL, then return FALSE.
If NewSha1Context is NULL, then return FALSE.
@param[in] Sha1Context Pointer to SHA-1 context being copied.
@param[out] NewSha1Context Pointer to new SHA-1 context.
@retval TRUE SHA-1 context copy succeeded.
@retval FALSE SHA-1 context copy failed.
**/
BOOLEAN
EFIAPI
Sha1Duplicate (
IN CONST VOID *Sha1Context,
OUT VOID *NewSha1Context
);
/**
Digests the input data and updates SHA-1 context.
This function performs SHA-1 digest on a data buffer of the specified size.
It can be called multiple times to compute the digest of long or discontinuous data streams.
SHA-1 context should be already correctly intialized by Sha1Init(), and should not be finalized
by Sha1Final(). Behavior with invalid context is undefined.
If Sha1Context is NULL, then return FALSE.
@param[in, out] Sha1Context Pointer to the SHA-1 context.
@param[in] Data Pointer to the buffer containing the data to be hashed.
@param[in] DataSize Size of Data buffer in bytes.
@retval TRUE SHA-1 data digest succeeded.
@retval FALSE SHA-1 data digest failed.
**/
BOOLEAN
EFIAPI
Sha1Update (
IN OUT VOID *Sha1Context,
IN CONST VOID *Data,
IN UINTN DataSize
);
/**
Completes computation of the SHA-1 digest value.
This function completes SHA-1 hash computation and retrieves the digest value into
the specified memory. After this function has been called, the SHA-1 context cannot
be used again.
SHA-1 context should be already correctly intialized by Sha1Init(), and should not be
finalized by Sha1Final(). Behavior with invalid SHA-1 context is undefined.
If Sha1Context is NULL, then return FALSE.
If HashValue is NULL, then return FALSE.
@param[in, out] Sha1Context Pointer to the SHA-1 context.
@param[out] HashValue Pointer to a buffer that receives the SHA-1 digest
value (20 bytes).
@retval TRUE SHA-1 digest computation succeeded.
@retval FALSE SHA-1 digest computation failed.
**/
BOOLEAN
EFIAPI
Sha1Final (
IN OUT VOID *Sha1Context,
OUT UINT8 *HashValue
);
/**
Retrieves the size, in bytes, of the context buffer required for SHA-256 hash operations.
@return The size, in bytes, of the context buffer required for SHA-256 hash operations.
**/
UINTN
EFIAPI
Sha256GetContextSize (
VOID
);
/**
Initializes user-supplied memory pointed by Sha256Context as SHA-256 hash context for
subsequent use.
If Sha256Context is NULL, then return FALSE.
@param[out] Sha256Context Pointer to SHA-256 context being initialized.
@retval TRUE SHA-256 context initialization succeeded.
@retval FALSE SHA-256 context initialization failed.
**/
BOOLEAN
EFIAPI
Sha256Init (
OUT VOID *Sha256Context
);
/**
Makes a copy of an existing SHA-256 context.
If Sha256Context is NULL, then return FALSE.
If NewSha256Context is NULL, then return FALSE.
@param[in] Sha256Context Pointer to SHA-256 context being copied.
@param[out] NewSha256Context Pointer to new SHA-256 context.
@retval TRUE SHA-256 context copy succeeded.
@retval FALSE SHA-256 context copy failed.
**/
BOOLEAN
EFIAPI
Sha256Duplicate (
IN CONST VOID *Sha256Context,
OUT VOID *NewSha256Context
);
/**
Digests the input data and updates SHA-256 context.
This function performs SHA-256 digest on a data buffer of the specified size.
It can be called multiple times to compute the digest of long or discontinuous data streams.
SHA-256 context should be already correctly intialized by Sha256Init(), and should not be finalized
by Sha256Final(). Behavior with invalid context is undefined.
If Sha256Context is NULL, then return FALSE.
@param[in, out] Sha256Context Pointer to the SHA-256 context.
@param[in] Data Pointer to the buffer containing the data to be hashed.
@param[in] DataSize Size of Data buffer in bytes.
@retval TRUE SHA-256 data digest succeeded.
@retval FALSE SHA-256 data digest failed.
**/
BOOLEAN
EFIAPI
Sha256Update (
IN OUT VOID *Sha256Context,
IN CONST VOID *Data,
IN UINTN DataSize
);
/**
Completes computation of the SHA-256 digest value.
This function completes SHA-256 hash computation and retrieves the digest value into
the specified memory. After this function has been called, the SHA-256 context cannot
be used again.
SHA-256 context should be already correctly intialized by Sha256Init(), and should not be
finalized by Sha256Final(). Behavior with invalid SHA-256 context is undefined.
If Sha256Context is NULL, then return FALSE.
If HashValue is NULL, then return FALSE.
@param[in, out] Sha256Context Pointer to the SHA-256 context.
@param[out] HashValue Pointer to a buffer that receives the SHA-256 digest
value (32 bytes).
@retval TRUE SHA-256 digest computation succeeded.
@retval FALSE SHA-256 digest computation failed.
**/
BOOLEAN
EFIAPI
Sha256Final (
IN OUT VOID *Sha256Context,
OUT UINT8 *HashValue
);
//=====================================================================================
// MAC (Message Authentication Code) Primitive
//=====================================================================================
/**
Retrieves the size, in bytes, of the context buffer required for HMAC-MD5 operations.
@return The size, in bytes, of the context buffer required for HMAC-MD5 operations.
**/
UINTN
EFIAPI
HmacMd5GetContextSize (
VOID
);
/**
Initializes user-supplied memory pointed by HmacMd5Context as HMAC-MD5 context for
subsequent use.
If HmacMd5Context is NULL, then return FALSE.
@param[out] HmacMd5Context Pointer to HMAC-MD5 context being initialized.
@param[in] Key Pointer to the user-supplied key.
@param[in] KeySize Key size in bytes.
@retval TRUE HMAC-MD5 context initialization succeeded.
@retval FALSE HMAC-MD5 context initialization failed.
**/
BOOLEAN
EFIAPI
HmacMd5Init (
OUT VOID *HmacMd5Context,
IN CONST UINT8 *Key,
IN UINTN KeySize
);
/**
Makes a copy of an existing HMAC-MD5 context.
If HmacMd5Context is NULL, then return FALSE.
If NewHmacMd5Context is NULL, then return FALSE.
@param[in] HmacMd5Context Pointer to HMAC-MD5 context being copied.
@param[out] NewHmacMd5Context Pointer to new HMAC-MD5 context.
@retval TRUE HMAC-MD5 context copy succeeded.
@retval FALSE HMAC-MD5 context copy failed.
**/
BOOLEAN
EFIAPI
HmacMd5Duplicate (
IN CONST VOID *HmacMd5Context,
OUT VOID *NewHmacMd5Context
);
/**
Digests the input data and updates HMAC-MD5 context.
This function performs HMAC-MD5 digest on a data buffer of the specified size.
It can be called multiple times to compute the digest of long or discontinuous data streams.
HMAC-MD5 context should be already correctly intialized by HmacMd5Init(), and should not be
finalized by HmacMd5Final(). Behavior with invalid context is undefined.
If HmacMd5Context is NULL, then return FALSE.
@param[in, out] HmacMd5Context Pointer to the HMAC-MD5 context.
@param[in] Data Pointer to the buffer containing the data to be digested.
@param[in] DataSize Size of Data buffer in bytes.
@retval TRUE HMAC-MD5 data digest succeeded.
@retval FALSE HMAC-MD5 data digest failed.
**/
BOOLEAN
EFIAPI
HmacMd5Update (
IN OUT VOID *HmacMd5Context,
IN CONST VOID *Data,
IN UINTN DataSize
);
/**
Completes computation of the HMAC-MD5 digest value.
This function completes HMAC-MD5 hash computation and retrieves the digest value into
the specified memory. After this function has been called, the HMAC-MD5 context cannot
be used again.
HMAC-MD5 context should be already correctly intialized by HmacMd5Init(), and should not be
finalized by HmacMd5Final(). Behavior with invalid HMAC-MD5 context is undefined.
If HmacMd5Context is NULL, then return FALSE.
If HashValue is NULL, then return FALSE.
@param[in, out] HmacMd5Context Pointer to the HMAC-MD5 context.
@param[out] HashValue Pointer to a buffer that receives the HMAC-MD5 digest
value (16 bytes).
@retval TRUE HMAC-MD5 digest computation succeeded.
@retval FALSE HMAC-MD5 digest computation failed.
**/
BOOLEAN
EFIAPI
HmacMd5Final (
IN OUT VOID *HmacMd5Context,
OUT UINT8 *HmacValue
);
/**
Retrieves the size, in bytes, of the context buffer required for HMAC-SHA1 operations.
@return The size, in bytes, of the context buffer required for HMAC-SHA1 operations.
**/
UINTN
EFIAPI
HmacSha1GetContextSize (
VOID
);
/**
Initializes user-supplied memory pointed by HmacSha1Context as HMAC-SHA1 context for
subsequent use.
If HmacSha1Context is NULL, then return FALSE.
@param[out] HmacSha1Context Pointer to HMAC-SHA1 context being initialized.
@param[in] Key Pointer to the user-supplied key.
@param[in] KeySize Key size in bytes.
@retval TRUE HMAC-SHA1 context initialization succeeded.
@retval FALSE HMAC-SHA1 context initialization failed.
**/
BOOLEAN
EFIAPI
HmacSha1Init (
OUT VOID *HmacSha1Context,
IN CONST UINT8 *Key,
IN UINTN KeySize
);
/**
Makes a copy of an existing HMAC-SHA1 context.
If HmacSha1Context is NULL, then return FALSE.
If NewHmacSha1Context is NULL, then return FALSE.
@param[in] HmacSha1Context Pointer to HMAC-SHA1 context being copied.
@param[out] NewHmacSha1Context Pointer to new HMAC-SHA1 context.
@retval TRUE HMAC-SHA1 context copy succeeded.
@retval FALSE HMAC-SHA1 context copy failed.
**/
BOOLEAN
EFIAPI
HmacSha1Duplicate (
IN CONST VOID *HmacSha1Context,
OUT VOID *NewHmacSha1Context
);
/**
Digests the input data and updates HMAC-SHA1 context.
This function performs HMAC-SHA1 digest on a data buffer of the specified size.
It can be called multiple times to compute the digest of long or discontinuous data streams.
HMAC-SHA1 context should be already correctly intialized by HmacSha1Init(), and should not
be finalized by HmacSha1Final(). Behavior with invalid context is undefined.
If HmacSha1Context is NULL, then return FALSE.
@param[in, out] HmacSha1Context Pointer to the HMAC-SHA1 context.
@param[in] Data Pointer to the buffer containing the data to be digested.
@param[in] DataSize Size of Data buffer in bytes.
@retval TRUE HMAC-SHA1 data digest succeeded.
@retval FALSE HMAC-SHA1 data digest failed.
**/
BOOLEAN
EFIAPI
HmacSha1Update (
IN OUT VOID *HmacSha1Context,
IN CONST VOID *Data,
IN UINTN DataSize
);
/**
Completes computation of the HMAC-SHA1 digest value.
This function completes HMAC-SHA1 hash computation and retrieves the digest value into
the specified memory. After this function has been called, the HMAC-SHA1 context cannot
be used again.
HMAC-SHA1 context should be already correctly intialized by HmacSha1Init(), and should
not be finalized by HmacSha1Final(). Behavior with invalid HMAC-SHA1 context is undefined.
If HmacSha1Context is NULL, then return FALSE.
If HashValue is NULL, then return FALSE.
@param[in, out] HmacSha1Context Pointer to the HMAC-SHA1 context.
@param[out] HashValue Pointer to a buffer that receives the HMAC-SHA1 digest
value (20 bytes).
@retval TRUE HMAC-SHA1 digest computation succeeded.
@retval FALSE HMAC-SHA1 digest computation failed.
**/
BOOLEAN
EFIAPI
HmacSha1Final (
IN OUT VOID *HmacSha1Context,
OUT UINT8 *HmacValue
);
//=====================================================================================
// Symmetric Cryptography Primitive
//=====================================================================================
/**
Retrieves the size, in bytes, of the context buffer required for TDES operations.
@return The size, in bytes, of the context buffer required for TDES operations.
**/
UINTN
EFIAPI
TdesGetContextSize (
VOID
);
/**
Initializes user-supplied memory as TDES context for subsequent use.
This function initializes user-supplied memory pointed by TdesContext as TDES context.
In addtion, it sets up all TDES key materials for subsequent encryption and decryption
operations.
There are 3 key options as follows:
KeyLength = 64, Keying option 1: K1 == K2 == K3 (Backward compatibility with DES)
KeyLength = 128, Keying option 2: K1 != K2 and K3 = K1 (Less Security)
KeyLength = 192 Keying option 3: K1 != K2 != K3 (Strongest)
If TdesContext is NULL, then return FALSE.
If Key is NULL, then return FALSE.
If KeyLength is not valid, then return FALSE.
@param[out] TdesContext Pointer to TDES context being initialized.
@param[in] Key Pointer to the user-supplied TDES key.
@param[in] KeyLength Length of TDES key in bits.
@retval TRUE TDES context initialization succeeded.
@retval FALSE TDES context initialization failed.
**/
BOOLEAN
EFIAPI
TdesInit (
OUT VOID *TdesContext,
IN CONST UINT8 *Key,
IN UINTN KeyLength
);
/**
Performs TDES encryption on a data buffer of the specified size in ECB mode.
This function performs TDES encryption on data buffer pointed by Input, of specified
size of InputSize, in ECB mode.
InputSize must be multiple of block size (8 bytes). This function does not perform
padding. Caller must perform padding, if necessary, to ensure valid input data size.
TdesContext should be already correctly initialized by TdesInit(). Behavior with
invalid TDES context is undefined.
If TdesContext is NULL, then return FALSE.
If Input is NULL, then return FALSE.
If InputSize is not multiple of block size (8 bytes), then return FALSE.
If Output is NULL, then return FALSE.
@param[in] TdesContext Pointer to the TDES context.
@param[in] Input Pointer to the buffer containing the data to be encrypted.
@param[in] InputSize Size of the Input buffer in bytes.
@param[out] Output Pointer to a buffer that receives the TDES encryption output.
@retval TRUE TDES encryption succeeded.
@retval FALSE TDES encryption failed.
**/
BOOLEAN
EFIAPI
TdesEcbEncrypt (
IN VOID *TdesContext,
IN CONST UINT8 *Input,
IN UINTN InputSize,
OUT UINT8 *Output
);
/**
Performs TDES decryption on a data buffer of the specified size in ECB mode.
This function performs TDES decryption on data buffer pointed by Input, of specified
size of InputSize, in ECB mode.
InputSize must be multiple of block size (8 bytes). This function does not perform
padding. Caller must perform padding, if necessary, to ensure valid input data size.
TdesContext should be already correctly initialized by TdesInit(). Behavior with
invalid TDES context is undefined.
If TdesContext is NULL, then return FALSE.
If Input is NULL, then return FALSE.
If InputSize is not multiple of block size (8 bytes), then return FALSE.
If Output is NULL, then return FALSE.
@param[in] TdesContext Pointer to the TDES context.
@param[in] Input Pointer to the buffer containing the data to be decrypted.
@param[in] InputSize Size of the Input buffer in bytes.
@param[out] Output Pointer to a buffer that receives the TDES decryption output.
@retval TRUE TDES decryption succeeded.
@retval FALSE TDES decryption failed.
**/
BOOLEAN
EFIAPI
TdesEcbDecrypt (
IN VOID *TdesContext,
IN CONST UINT8 *Input,
IN UINTN InputSize,
OUT UINT8 *Output
);
/**
Performs TDES encryption on a data buffer of the specified size in CBC mode.
This function performs TDES encryption on data buffer pointed by Input, of specified
size of InputSize, in CBC mode.
InputSize must be multiple of block size (8 bytes). This function does not perform
padding. Caller must perform padding, if necessary, to ensure valid input data size.
Initialization vector should be one block size (8 bytes).
TdesContext should be already correctly initialized by TdesInit(). Behavior with
invalid TDES context is undefined.
If TdesContext is NULL, then return FALSE.
If Input is NULL, then return FALSE.
If InputSize is not multiple of block size (8 bytes), then return FALSE.
If Ivec is NULL, then return FALSE.
If Output is NULL, then return FALSE.
@param[in] TdesContext Pointer to the TDES context.
@param[in] Input Pointer to the buffer containing the data to be encrypted.
@param[in] InputSize Size of the Input buffer in bytes.
@param[in] Ivec Pointer to initialization vector.
@param[out] Output Pointer to a buffer that receives the TDES encryption output.
@retval TRUE TDES encryption succeeded.
@retval FALSE TDES encryption failed.
**/
BOOLEAN
EFIAPI
TdesCbcEncrypt (
IN VOID *TdesContext,
IN CONST UINT8 *Input,
IN UINTN InputSize,
IN CONST UINT8 *Ivec,
OUT UINT8 *Output
);
/**
Performs TDES decryption on a data buffer of the specified size in CBC mode.
This function performs TDES decryption on data buffer pointed by Input, of specified
size of InputSize, in CBC mode.
InputSize must be multiple of block size (8 bytes). This function does not perform
padding. Caller must perform padding, if necessary, to ensure valid input data size.
Initialization vector should be one block size (8 bytes).
TdesContext should be already correctly initialized by TdesInit(). Behavior with
invalid TDES context is undefined.
If TdesContext is NULL, then return FALSE.
If Input is NULL, then return FALSE.
If InputSize is not multiple of block size (8 bytes), then return FALSE.
If Ivec is NULL, then return FALSE.
If Output is NULL, then return FALSE.
@param[in] TdesContext Pointer to the TDES context.
@param[in] Input Pointer to the buffer containing the data to be encrypted.
@param[in] InputSize Size of the Input buffer in bytes.
@param[in] Ivec Pointer to initialization vector.
@param[out] Output Pointer to a buffer that receives the TDES encryption output.
@retval TRUE TDES decryption succeeded.
@retval FALSE TDES decryption failed.
**/
BOOLEAN
EFIAPI
TdesCbcDecrypt (
IN VOID *TdesContext,
IN CONST UINT8 *Input,
IN UINTN InputSize,
IN CONST UINT8 *Ivec,
OUT UINT8 *Output
);
/**
Retrieves the size, in bytes, of the context buffer required for AES operations.
@return The size, in bytes, of the context buffer required for AES operations.
**/
UINTN
EFIAPI
AesGetContextSize (
VOID
);
/**
Initializes user-supplied memory as AES context for subsequent use.
This function initializes user-supplied memory pointed by AesContext as AES context.
In addtion, it sets up all AES key materials for subsequent encryption and decryption
operations.
There are 3 options for key length, 128 bits, 192 bits, and 256 bits.
If AesContext is NULL, then return FALSE.
If Key is NULL, then return FALSE.
If KeyLength is not valid, then return FALSE.
@param[out] AesContext Pointer to AES context being initialized.
@param[in] Key Pointer to the user-supplied AES key.
@param[in] KeyLength Length of AES key in bits.
@retval TRUE AES context initialization succeeded.
@retval FALSE AES context initialization failed.
**/
BOOLEAN
EFIAPI
AesInit (
OUT VOID *AesContext,
IN CONST UINT8 *Key,
IN UINTN KeyLength
);
/**
Performs AES encryption on a data buffer of the specified size in ECB mode.
This function performs AES encryption on data buffer pointed by Input, of specified
size of InputSize, in ECB mode.
InputSize must be multiple of block size (16 bytes). This function does not perform
padding. Caller must perform padding, if necessary, to ensure valid input data size.
AesContext should be already correctly initialized by AesInit(). Behavior with
invalid AES context is undefined.
If AesContext is NULL, then return FALSE.
If Input is NULL, then return FALSE.
If InputSize is not multiple of block size (16 bytes), then return FALSE.
If Output is NULL, then return FALSE.
@param[in] AesContext Pointer to the AES context.
@param[in] Input Pointer to the buffer containing the data to be encrypted.
@param[in] InputSize Size of the Input buffer in bytes.
@param[out] Output Pointer to a buffer that receives the AES encryption output.
@retval TRUE AES encryption succeeded.
@retval FALSE AES encryption failed.
**/
BOOLEAN
EFIAPI
AesEcbEncrypt (
IN VOID *AesContext,
IN CONST UINT8 *Input,
IN UINTN InputSize,
OUT UINT8 *Output
);
/**
Performs AES decryption on a data buffer of the specified size in ECB mode.
This function performs AES decryption on data buffer pointed by Input, of specified
size of InputSize, in ECB mode.
InputSize must be multiple of block size (16 bytes). This function does not perform
padding. Caller must perform padding, if necessary, to ensure valid input data size.
AesContext should be already correctly initialized by AesInit(). Behavior with
invalid AES context is undefined.
If AesContext is NULL, then return FALSE.
If Input is NULL, then return FALSE.
If InputSize is not multiple of block size (16 bytes), then return FALSE.
If Output is NULL, then return FALSE.
@param[in] AesContext Pointer to the AES context.
@param[in] Input Pointer to the buffer containing the data to be decrypted.
@param[in] InputSize Size of the Input buffer in bytes.
@param[out] Output Pointer to a buffer that receives the AES decryption output.
@retval TRUE AES decryption succeeded.
@retval FALSE AES decryption failed.
**/
BOOLEAN
EFIAPI
AesEcbDecrypt (
IN VOID *AesContext,
IN CONST UINT8 *Input,
IN UINTN InputSize,
OUT UINT8 *Output
);
/**
Performs AES encryption on a data buffer of the specified size in CBC mode.
This function performs AES encryption on data buffer pointed by Input, of specified
size of InputSize, in CBC mode.
InputSize must be multiple of block size (16 bytes). This function does not perform
padding. Caller must perform padding, if necessary, to ensure valid input data size.
Initialization vector should be one block size (16 bytes).
AesContext should be already correctly initialized by AesInit(). Behavior with
invalid AES context is undefined.
If AesContext is NULL, then return FALSE.
If Input is NULL, then return FALSE.
If InputSize is not multiple of block size (16 bytes), then return FALSE.
If Ivec is NULL, then return FALSE.
If Output is NULL, then return FALSE.
@param[in] AesContext Pointer to the AES context.
@param[in] Input Pointer to the buffer containing the data to be encrypted.
@param[in] InputSize Size of the Input buffer in bytes.
@param[in] Ivec Pointer to initialization vector.
@param[out] Output Pointer to a buffer that receives the AES encryption output.
@retval TRUE AES encryption succeeded.
@retval FALSE AES encryption failed.
**/
BOOLEAN
EFIAPI
AesCbcEncrypt (
IN VOID *AesContext,
IN CONST UINT8 *Input,
IN UINTN InputSize,
IN CONST UINT8 *Ivec,
OUT UINT8 *Output
);
/**
Performs AES decryption on a data buffer of the specified size in CBC mode.
This function performs AES decryption on data buffer pointed by Input, of specified
size of InputSize, in CBC mode.
InputSize must be multiple of block size (16 bytes). This function does not perform
padding. Caller must perform padding, if necessary, to ensure valid input data size.
Initialization vector should be one block size (16 bytes).
AesContext should be already correctly initialized by AesInit(). Behavior with
invalid AES context is undefined.
If AesContext is NULL, then return FALSE.
If Input is NULL, then return FALSE.
If InputSize is not multiple of block size (16 bytes), then return FALSE.
If Ivec is NULL, then return FALSE.
If Output is NULL, then return FALSE.
@param[in] AesContext Pointer to the AES context.
@param[in] Input Pointer to the buffer containing the data to be encrypted.
@param[in] InputSize Size of the Input buffer in bytes.
@param[in] Ivec Pointer to initialization vector.
@param[out] Output Pointer to a buffer that receives the AES encryption output.
@retval TRUE AES decryption succeeded.
@retval FALSE AES decryption failed.
**/
BOOLEAN
EFIAPI
AesCbcDecrypt (
IN VOID *AesContext,
IN CONST UINT8 *Input,
IN UINTN InputSize,
IN CONST UINT8 *Ivec,
OUT UINT8 *Output
);
/**
Retrieves the size, in bytes, of the context buffer required for ARC4 operations.
@return The size, in bytes, of the context buffer required for ARC4 operations.
**/
UINTN
EFIAPI
Arc4GetContextSize (
VOID
);
/**
Initializes user-supplied memory as ARC4 context for subsequent use.
This function initializes user-supplied memory pointed by Arc4Context as ARC4 context.
In addtion, it sets up all ARC4 key materials for subsequent encryption and decryption
operations.
If Arc4Context is NULL, then return FALSE.
If Key is NULL, then return FALSE.
If KeySize does not in the range of [5, 256] bytes, then return FALSE.
@param[out] Arc4Context Pointer to ARC4 context being initialized.
@param[in] Key Pointer to the user-supplied ARC4 key.
@param[in] KeySize Size of ARC4 key in bytes.
@retval TRUE ARC4 context initialization succeeded.
@retval FALSE ARC4 context initialization failed.
**/
BOOLEAN
EFIAPI
Arc4Init (
OUT VOID *Arc4Context,
IN CONST UINT8 *Key,
IN UINTN KeySize
);
/**
Performs ARC4 encryption on a data buffer of the specified size.
This function performs ARC4 encryption on data buffer pointed by Input, of specified
size of InputSize.
Arc4Context should be already correctly initialized by Arc4Init(). Behavior with
invalid ARC4 context is undefined.
If Arc4Context is NULL, then return FALSE.
If Input is NULL, then return FALSE.
If Output is NULL, then return FALSE.
@param[in] Arc4Context Pointer to the ARC4 context.
@param[in] Input Pointer to the buffer containing the data to be encrypted.
@param[in] InputSize Size of the Input buffer in bytes.
@param[out] Output Pointer to a buffer that receives the ARC4 encryption output.
@retval TRUE ARC4 encryption succeeded.
@retval FALSE ARC4 encryption failed.
**/
BOOLEAN
EFIAPI
Arc4Encrypt (
IN OUT VOID *Arc4Context,
IN CONST UINT8 *Input,
IN UINTN InputSize,
OUT UINT8 *Output
);
/**
Performs ARC4 decryption on a data buffer of the specified size.
This function performs ARC4 decryption on data buffer pointed by Input, of specified
size of InputSize.
Arc4Context should be already correctly initialized by Arc4Init(). Behavior with
invalid ARC4 context is undefined.
If Arc4Context is NULL, then return FALSE.
If Input is NULL, then return FALSE.
If Output is NULL, then return FALSE.
@param[in] Arc4Context Pointer to the ARC4 context.
@param[in] Input Pointer to the buffer containing the data to be decrypted.
@param[in] InputSize Size of the Input buffer in bytes.
@param[out] Output Pointer to a buffer that receives the ARC4 decryption output.
@retval TRUE ARC4 decryption succeeded.
@retval FALSE ARC4 decryption failed.
**/
BOOLEAN
EFIAPI
Arc4Decrypt (
IN OUT VOID *Arc4Context,
IN UINT8 *Input,
IN UINTN InputSize,
OUT UINT8 *Output
);
/**
Resets the ARC4 context to the initial state.
The function resets the ARC4 context to the state it had immediately after the
ARC4Init() function call.
Contrary to ARC4Init(), Arc4Reset() requires no secret key as input, but ARC4 context
should be already correctly initialized by ARC4Init().
If Arc4Context is NULL, then return FALSE.
@param[in, out] Arc4Context Pointer to the ARC4 context.
@retval TRUE ARC4 reset succeeded.
@retval FALSE ARC4 reset failed.
**/
BOOLEAN
EFIAPI
Arc4Reset (
IN OUT VOID *Arc4Context
);
//=====================================================================================
// Asymmetric Cryptography Primitive
//=====================================================================================
/**
Allocates and initializes one RSA context for subsequent use.
@return Pointer to the RSA context that has been initialized.
If the allocations fails, RsaNew() returns NULL.
**/
VOID *
EFIAPI
RsaNew (
VOID
);
/**
Release the specified RSA context.
If RsaContext is NULL, then return FALSE.
@param[in] RsaContext Pointer to the RSA context to be released.
**/
VOID
EFIAPI
RsaFree (
IN VOID *RsaContext
);
/**
Sets the tag-designated key component into the established RSA context.
This function sets the tag-designated RSA key component into the established
RSA context from the user-specified non-negative integer (octet string format
represented in RSA PKCS#1).
If BigNumber is NULL, then the specified key componenet in RSA context is cleared.
If RsaContext is NULL, then return FALSE.
@param[in, out] RsaContext Pointer to RSA context being set.
@param[in] KeyTag Tag of RSA key component being set.
@param[in] BigNumber Pointer to octet integer buffer.
If NULL, then the specified key componenet in RSA
context is cleared.
@param[in] BnSize Size of big number buffer in bytes.
If BigNumber is NULL, then it is ignored.
@retval TRUE RSA key component was set successfully.
@retval FALSE Invalid RSA key component tag.
**/
BOOLEAN
EFIAPI
RsaSetKey (
IN OUT VOID *RsaContext,
IN RSA_KEY_TAG KeyTag,
IN CONST UINT8 *BigNumber,
IN UINTN BnSize
);
/**
Gets the tag-designated RSA key component from the established RSA context.
This function retrieves the tag-designated RSA key component from the
established RSA context as a non-negative integer (octet string format
represented in RSA PKCS#1).
If specified key component has not been set or has been cleared, then returned
BnSize is set to 0.
If the BigNumber buffer is too small to hold the contents of the key, FALSE
is returned and BnSize is set to the required buffer size to obtain the key.
If RsaContext is NULL, then return FALSE.
If BnSize is NULL, then return FALSE.
If BnSize is large enough but BigNumber is NULL, then return FALSE.
@param[in, out] RsaContext Pointer to RSA context being set.
@param[in] KeyTag Tag of RSA key component being set.
@param[out] BigNumber Pointer to octet integer buffer.
@param[in, out] BnSize On input, the size of big number buffer in bytes.
On output, the size of data returned in big number buffer in bytes.
@retval TRUE RSA key component was retrieved successfully.
@retval FALSE Invalid RSA key component tag.
@retval FALSE BnSize is too small.
**/
BOOLEAN
EFIAPI
RsaGetKey (
IN OUT VOID *RsaContext,
IN RSA_KEY_TAG KeyTag,
OUT UINT8 *BigNumber,
IN OUT UINTN *BnSize
);
/**
Generates RSA key components.
This function generates RSA key components. It takes RSA public exponent E and
length in bits of RSA modulus N as input, and generates all key components.
If PublicExponent is NULL, the default RSA public exponent (0x10001) will be used.
Before this function can be invoked, pseudorandom number generator must be correctly
initialized by RandomSeed().
If RsaContext is NULL, then return FALSE.
@param[in, out] RsaContext Pointer to RSA context being set.
@param[in] ModulusLength Length of RSA modulus N in bits.
@param[in] PublicExponent Pointer to RSA public exponent.
@param[in] PublicExponentSize Size of RSA public exponent buffer in bytes.
@retval TRUE RSA key component was generated successfully.
@retval FALSE Invalid RSA key component tag.
**/
BOOLEAN
EFIAPI
RsaGenerateKey (
IN OUT VOID *RsaContext,
IN UINTN ModulusLength,
IN CONST UINT8 *PublicExponent,
IN UINTN PublicExponentSize
);
/**
Validates key components of RSA context.
This function validates key compoents of RSA context in following aspects:
- Whether p is a prime
- Whether q is a prime
- Whether n = p * q
- Whether d*e = 1 mod lcm(p-1,q-1)
If RsaContext is NULL, then return FALSE.
@param[in] RsaContext Pointer to RSA context to check.
@retval TRUE RSA key components are valid.
@retval FALSE RSA key components are not valid.
**/
BOOLEAN
EFIAPI
RsaCheckKey (
IN VOID *RsaContext
);
/**
Carries out the RSA-SSA signature generation with EMSA-PKCS1-v1_5 encoding scheme.
This function carries out the RSA-SSA signature generation with EMSA-PKCS1-v1_5 encoding scheme defined in
RSA PKCS#1.
If the Signature buffer is too small to hold the contents of signature, FALSE
is returned and SigSize is set to the required buffer size to obtain the signature.
If RsaContext is NULL, then return FALSE.
If MessageHash is NULL, then return FALSE.
If HashSize is not equal to the size of MD5, SHA-1 or SHA-256 digest, then return FALSE.
If SigSize is large enough but Signature is NULL, then return FALSE.
@param[in] RsaContext Pointer to RSA context for signature generation.
@param[in] MessageHash Pointer to octet message hash to be signed.
@param[in] HashSize Size of the message hash in bytes.
@param[out] Signature Pointer to buffer to receive RSA PKCS1-v1_5 signature.
@param[in, out] SigSize On input, the size of Signature buffer in bytes.
On output, the size of data returned in Signature buffer in bytes.
@retval TRUE Signature successfully generated in PKCS1-v1_5.
@retval FALSE Signature generation failed.
@retval FALSE SigSize is too small.
**/
BOOLEAN
EFIAPI
RsaPkcs1Sign (
IN VOID *RsaContext,
IN CONST UINT8 *MessageHash,
IN UINTN HashSize,
OUT UINT8 *Signature,
IN OUT UINTN *SigSize
);
/**
Verifies the RSA-SSA signature with EMSA-PKCS1-v1_5 encoding scheme defined in
RSA PKCS#1.
If RsaContext is NULL, then return FALSE.
If MessageHash is NULL, then return FALSE.
If Signature is NULL, then return FALSE.
If HashSize is not equal to the size of MD5, SHA-1, SHA-256 digest, then return FALSE.
@param[in] RsaContext Pointer to RSA context for signature verification.
@param[in] MessageHash Pointer to octet message hash to be checked.
@param[in] HashSize Size of the message hash in bytes.
@param[in] Signature Pointer to RSA PKCS1-v1_5 signature to be verified.
@param[in] SigSize Size of signature in bytes.
@retval TRUE Valid signature encoded in PKCS1-v1_5.
@retval FALSE Invalid signature or invalid RSA context.
**/
BOOLEAN
EFIAPI
RsaPkcs1Verify (
IN VOID *RsaContext,
IN CONST UINT8 *MessageHash,
IN UINTN HashSize,
IN UINT8 *Signature,
IN UINTN SigSize
);
/**
Retrieve the RSA Private Key from the password-protected PEM key data.
@param[in] PemData Pointer to the PEM-encoded key data to be retrieved.
@param[in] PemSize Size of the PEM key data in bytes.
@param[in] Password NULL-terminated passphrase used for encrypted PEM key data.
@param[out] RsaContext Pointer to new-generated RSA context which contain the retrieved
RSA private key component. Use RsaFree() function to free the
resource.
If PemData is NULL, then return FALSE.
If RsaContext is NULL, then return FALSE.
@retval TRUE RSA Private Key was retrieved successfully.
@retval FALSE Invalid PEM key data or incorrect password.
**/
BOOLEAN
EFIAPI
RsaGetPrivateKeyFromPem (
IN CONST UINT8 *PemData,
IN UINTN PemSize,
IN CONST CHAR8 *Password,
OUT VOID **RsaContext
);
/**
Retrieve the RSA Public Key from one DER-encoded X509 certificate.
@param[in] Cert Pointer to the DER-encoded X509 certificate.
@param[in] CertSize Size of the X509 certificate in bytes.
@param[out] RsaContext Pointer to new-generated RSA context which contain the retrieved
RSA public key component. Use RsaFree() function to free the
resource.
If Cert is NULL, then return FALSE.
If RsaContext is NULL, then return FALSE.
@retval TRUE RSA Public Key was retrieved successfully.
@retval FALSE Fail to retrieve RSA public key from X509 certificate.
**/
BOOLEAN
EFIAPI
RsaGetPublicKeyFromX509 (
IN CONST UINT8 *Cert,
IN UINTN CertSize,
OUT VOID **RsaContext
);
/**
Retrieve the subject bytes from one X.509 certificate.
@param[in] Cert Pointer to the DER-encoded X509 certificate.
@param[in] CertSize Size of the X509 certificate in bytes.
@param[out] CertSubject Pointer to the retrieved certificate subject bytes.
@param[in, out] SubjectSize The size in bytes of the CertSubject buffer on input,
and the size of buffer returned CertSubject on output.
If Cert is NULL, then return FALSE.
If SubjectSize is NULL, then return FALSE.
@retval TRUE The certificate subject retrieved successfully.
@retval FALSE Invalid certificate, or the SubjectSize is too small for the result.
The SubjectSize will be updated with the required size.
**/
BOOLEAN
EFIAPI
X509GetSubjectName (
IN CONST UINT8 *Cert,
IN UINTN CertSize,
OUT UINT8 *CertSubject,
IN OUT UINTN *SubjectSize
);
/**
Verify one X509 certificate was issued by the trusted CA.
@param[in] Cert Pointer to the DER-encoded X509 certificate to be verified.
@param[in] CertSize Size of the X509 certificate in bytes.
@param[in] CACert Pointer to the DER-encoded trusted CA certificate.
@param[in] CACertSize Size of the CA Certificate in bytes.
If Cert is NULL, then return FALSE.
If CACert is NULL, then return FALSE.
@retval TRUE The certificate was issued by the trusted CA.
@retval FALSE Invalid certificate or the certificate was not issued by the given
trusted CA.
**/
BOOLEAN
EFIAPI
X509VerifyCert (
IN CONST UINT8 *Cert,
IN UINTN CertSize,
IN CONST UINT8 *CACert,
IN UINTN CACertSize
);
/**
Construct a X509 object from DER-encoded certificate data.
If Cert is NULL, then return FALSE.
If SingleX509Cert is NULL, then return FALSE.
@param[in] Cert Pointer to the DER-encoded certificate data.
@param[in] CertSize The size of certificate data in bytes.
@param[out] SingleX509Cert The generated X509 object.
@retval TRUE The X509 object generation succeeded.
@retval FALSE The operation failed.
**/
BOOLEAN
EFIAPI
X509ConstructCertificate (
IN CONST UINT8 *Cert,
IN UINTN CertSize,
OUT UINT8 **SingleX509Cert
);
/**
Construct a X509 stack object from a list of DER-encoded certificate data.
If X509Stack is NULL, then return FALSE.
@param[in, out] X509Stack On input, pointer to an existing X509 stack object.
On output, pointer to the X509 stack object with new
inserted X509 certificate.
@param ... A list of DER-encoded single certificate data followed
by certificate size. A NULL terminates the list. The
pairs are the arguments to X509ConstructCertificate().
@retval TRUE The X509 stack construction succeeded.
@retval FALSE The construction operation failed.
**/
BOOLEAN
EFIAPI
X509ConstructCertificateStack (
IN OUT UINT8 **X509Stack,
...
);
/**
Release the specified X509 object.
If X509Cert is NULL, then return FALSE.
@param[in] X509Cert Pointer to the X509 object to be released.
**/
VOID
EFIAPI
X509Free (
IN VOID *X509Cert
);
/**
Release the specified X509 stack object.
If X509Stack is NULL, then return FALSE.
@param[in] X509Stack Pointer to the X509 stack object to be released.
**/
VOID
EFIAPI
X509StackFree (
IN VOID *X509Stack
);
/**
Get the signer's certificates from PKCS#7 signed data as described in "PKCS #7:
Cryptographic Message Syntax Standard". The input signed data could be wrapped
in a ContentInfo structure.
If P7Data, CertStack, StackLength, TrustedCert or CertLength is NULL, then
return FALSE. If P7Length overflow, then return FAlSE.
@param[in] P7Data Pointer to the PKCS#7 message to verify.
@param[in] P7Length Length of the PKCS#7 message in bytes.
@param[out] CertStack Pointer to Signer's certificates retrieved from P7Data.
It's caller's responsiblity to free the buffer.
@param[out] StackLength Length of signer's certificates in bytes.
@param[out] TrustedCert Pointer to a trusted certificate from Signer's certificates.
It's caller's responsiblity to free the buffer.
@param[out] CertLength Length of the trusted certificate in bytes.
@retval TRUE The operation is finished successfully.
@retval FALSE Error occurs during the operation.
**/
BOOLEAN
EFIAPI
Pkcs7GetSigners (
IN CONST UINT8 *P7Data,
IN UINTN P7Length,
OUT UINT8 **CertStack,
OUT UINTN *StackLength,
OUT UINT8 **TrustedCert,
OUT UINTN *CertLength
);
/**
Wrap function to use free() to free allocated memory for certificates.
@param[in] Certs Pointer to the certificates to be freed.
**/
VOID
EFIAPI
Pkcs7FreeSigners (
IN UINT8 *Certs
);
/**
Creates a PKCS#7 signedData as described in "PKCS #7: Cryptographic Message
Syntax Standard, version 1.5". This interface is only intended to be used for
application to perform PKCS#7 functionality validation.
@param[in] PrivateKey Pointer to the PEM-formatted private key data for
data signing.
@param[in] PrivateKeySize Size of the PEM private key data in bytes.
@param[in] KeyPassword NULL-terminated passphrase used for encrypted PEM
key data.
@param[in] InData Pointer to the content to be signed.
@param[in] InDataSize Size of InData in bytes.
@param[in] SignCert Pointer to signer's DER-encoded certificate to sign with.
@param[in] OtherCerts Pointer to an optional additional set of certificates to
include in the PKCS#7 signedData (e.g. any intermediate
CAs in the chain).
@param[out] SignedData Pointer to output PKCS#7 signedData.
@param[out] SignedDataSize Size of SignedData in bytes.
@retval TRUE PKCS#7 data signing succeeded.
@retval FALSE PKCS#7 data signing failed.
**/
BOOLEAN
EFIAPI
Pkcs7Sign (
IN CONST UINT8 *PrivateKey,
IN UINTN PrivateKeySize,
IN CONST UINT8 *KeyPassword,
IN UINT8 *InData,
IN UINTN InDataSize,
IN UINT8 *SignCert,
IN UINT8 *OtherCerts OPTIONAL,
OUT UINT8 **SignedData,
OUT UINTN *SignedDataSize
);
/**
Verifies the validility of a PKCS#7 signed data as described in "PKCS #7:
Cryptographic Message Syntax Standard". The input signed data could be wrapped
in a ContentInfo structure.
If P7Data, TrustedCert or InData is NULL, then return FALSE.
If P7Length, CertLength or DataLength overflow, then return FAlSE.
@param[in] P7Data Pointer to the PKCS#7 message to verify.
@param[in] P7Length Length of the PKCS#7 message in bytes.
@param[in] TrustedCert Pointer to a trusted/root certificate encoded in DER, which
is used for certificate chain verification.
@param[in] CertLength Length of the trusted certificate in bytes.
@param[in] InData Pointer to the content to be verified.
@param[in] DataLength Length of InData in bytes.
@retval TRUE The specified PKCS#7 signed data is valid.
@retval FALSE Invalid PKCS#7 signed data.
**/
BOOLEAN
EFIAPI
Pkcs7Verify (
IN CONST UINT8 *P7Data,
IN UINTN P7Length,
IN CONST UINT8 *TrustedCert,
IN UINTN CertLength,
IN CONST UINT8 *InData,
IN UINTN DataLength
);
/**
Verifies the validility of a PE/COFF Authenticode Signature as described in "Windows
Authenticode Portable Executable Signature Format".
If AuthData is NULL, then return FALSE.
If ImageHash is NULL, then return FALSE.
@param[in] AuthData Pointer to the Authenticode Signature retrieved from signed
PE/COFF image to be verified.
@param[in] DataSize Size of the Authenticode Signature in bytes.
@param[in] TrustedCert Pointer to a trusted/root certificate encoded in DER, which
is used for certificate chain verification.
@param[in] CertSize Size of the trusted certificate in bytes.
@param[in] ImageHash Pointer to the original image file hash value. The procudure
for calculating the image hash value is described in Authenticode
specification.
@param[in] HashSize Size of Image hash value in bytes.
@retval TRUE The specified Authenticode Signature is valid.
@retval FALSE Invalid Authenticode Signature.
**/
BOOLEAN
EFIAPI
AuthenticodeVerify (
IN CONST UINT8 *AuthData,
IN UINTN DataSize,
IN CONST UINT8 *TrustedCert,
IN UINTN CertSize,
IN CONST UINT8 *ImageHash,
IN UINTN HashSize
);
//=====================================================================================
// DH Key Exchange Primitive
//=====================================================================================
/**
Allocates and Initializes one Diffie-Hellman Context for subsequent use.
@return Pointer to the Diffie-Hellman Context that has been initialized.
If the allocations fails, DhNew() returns NULL.
**/
VOID *
EFIAPI
DhNew (
VOID
);
/**
Release the specified DH context.
If DhContext is NULL, then return FALSE.
@param[in] DhContext Pointer to the DH context to be released.
**/
VOID
EFIAPI
DhFree (
IN VOID *DhContext
);
/**
Generates DH parameter.
Given generator g, and length of prime number p in bits, this function generates p,
and sets DH context according to value of g and p.
Before this function can be invoked, pseudorandom number generator must be correctly
initialized by RandomSeed().
If DhContext is NULL, then return FALSE.
If Prime is NULL, then return FALSE.
@param[in, out] DhContext Pointer to the DH context.
@param[in] Generator Value of generator.
@param[in] PrimeLength Length in bits of prime to be generated.
@param[out] Prime Pointer to the buffer to receive the generated prime number.
@retval TRUE DH pamameter generation succeeded.
@retval FALSE Value of Generator is not supported.
@retval FALSE PRNG fails to generate random prime number with PrimeLength.
**/
BOOLEAN
EFIAPI
DhGenerateParameter (
IN OUT VOID *DhContext,
IN UINTN Generator,
IN UINTN PrimeLength,
OUT UINT8 *Prime
);
/**
Sets generator and prime parameters for DH.
Given generator g, and prime number p, this function and sets DH
context accordingly.
If DhContext is NULL, then return FALSE.
If Prime is NULL, then return FALSE.
@param[in, out] DhContext Pointer to the DH context.
@param[in] Generator Value of generator.
@param[in] PrimeLength Length in bits of prime to be generated.
@param[in] Prime Pointer to the prime number.
@retval TRUE DH pamameter setting succeeded.
@retval FALSE Value of Generator is not supported.
@retval FALSE Value of Generator is not suitable for the Prime.
@retval FALSE Value of Prime is not a prime number.
@retval FALSE Value of Prime is not a safe prime number.
**/
BOOLEAN
EFIAPI
DhSetParameter (
IN OUT VOID *DhContext,
IN UINTN Generator,
IN UINTN PrimeLength,
IN CONST UINT8 *Prime
);
/**
Generates DH public key.
This function generates random secret exponent, and computes the public key, which is
returned via parameter PublicKey and PublicKeySize. DH context is updated accordingly.
If the PublicKey buffer is too small to hold the public key, FALSE is returned and
PublicKeySize is set to the required buffer size to obtain the public key.
If DhContext is NULL, then return FALSE.
If PublicKeySize is NULL, then return FALSE.
If PublicKeySize is large enough but PublicKey is NULL, then return FALSE.
@param[in, out] DhContext Pointer to the DH context.
@param[out] PublicKey Pointer to the buffer to receive generated public key.
@param[in, out] PublicKeySize On input, the size of PublicKey buffer in bytes.
On output, the size of data returned in PublicKey buffer in bytes.
@retval TRUE DH public key generation succeeded.
@retval FALSE DH public key generation failed.
@retval FALSE PublicKeySize is not large enough.
**/
BOOLEAN
EFIAPI
DhGenerateKey (
IN OUT VOID *DhContext,
OUT UINT8 *PublicKey,
IN OUT UINTN *PublicKeySize
);
/**
Computes exchanged common key.
Given peer's public key, this function computes the exchanged common key, based on its own
context including value of prime modulus and random secret exponent.
If DhContext is NULL, then return FALSE.
If PeerPublicKey is NULL, then return FALSE.
If KeySize is NULL, then return FALSE.
If KeySize is large enough but Key is NULL, then return FALSE.
@param[in, out] DhContext Pointer to the DH context.
@param[in] PeerPublicKey Pointer to the peer's public key.
@param[in] PeerPublicKeySize Size of peer's public key in bytes.
@param[out] Key Pointer to the buffer to receive generated key.
@param[in, out] KeySize On input, the size of Key buffer in bytes.
On output, the size of data returned in Key buffer in bytes.
@retval TRUE DH exchanged key generation succeeded.
@retval FALSE DH exchanged key generation failed.
@retval FALSE KeySize is not large enough.
**/
BOOLEAN
EFIAPI
DhComputeKey (
IN OUT VOID *DhContext,
IN CONST UINT8 *PeerPublicKey,
IN UINTN PeerPublicKeySize,
OUT UINT8 *Key,
IN OUT UINTN *KeySize
);
//=====================================================================================
// Pseudo-Random Generation Primitive
//=====================================================================================
/**
Sets up the seed value for the pseudorandom number generator.
This function sets up the seed value for the pseudorandom number generator.
If Seed is not NULL, then the seed passed in is used.
If Seed is NULL, then default seed is used.
@param[in] Seed Pointer to seed value.
If NULL, default seed is used.
@param[in] SeedSize Size of seed value.
If Seed is NULL, this parameter is ignored.
@retval TRUE Pseudorandom number generator has enough entropy for random generation.
@retval FALSE Pseudorandom number generator does not have enough entropy for random generation.
**/
BOOLEAN
EFIAPI
RandomSeed (
IN CONST UINT8 *Seed OPTIONAL,
IN UINTN SeedSize
);
/**
Generates a pseudorandom byte stream of the specified size.
If Output is NULL, then return FALSE.
@param[out] Output Pointer to buffer to receive random value.
@param[in] Size Size of randome bytes to generate.
@retval TRUE Pseudorandom byte stream generated successfully.
@retval FALSE Pseudorandom number generator fails to generate due to lack of entropy.
**/
BOOLEAN
EFIAPI
RandomBytes (
OUT UINT8 *Output,
IN UINTN Size
);
#endif // __BASE_CRYPT_LIB_H__
| [
"[email protected]"
] | |
066d81b8b8f0dde29d92c8fcceea305793f852e6 | ca41ffdd4e8b486abcbc3c4247b1be60102ec6d3 | /d/wusheng/npc/jinren.c | f5a801f31d02d4c377027957cc8802d64f9bd295 | [] | no_license | kttycn/xyj | 4c6d6322e02939118fc68f45ea3ab5c5dbe9ce8a | 7018cde4d21839142f2be2f2c3475eb0f0574835 | refs/heads/master | 2021-01-12T08:41:24.764167 | 2016-12-16T14:42:47 | 2016-12-16T14:42:47 | 76,660,707 | 1 | 0 | null | null | null | null | GB18030 | C | false | false | 5,012 | c | // jinren.c
#include <ansi.h>
#include <combat.h>
inherit NPC;
int DEBUG=1;
void set_skills(object);
void endfight();
void reward(object,object,object,int);
void create() {
set_name(HIY"金人"NOR,({"jin ren","ren"}));
set("long","一个纯金打造的人像,浑身上下就穿了一套金光闪闪的盔甲。\n");
set("gender","男性");
set("age",10);
set("per",999);
set("str",30+random(10));
set("cor",40);
set("cps",30);
set("max_sen",1000);
set("sen",1000);
set("max_kee",2000);
set("kee",2000);
set("max_mana",500);
set("combat_exp", 300);
set("daoxing",300);
set_skill("unarmed", 10);
set_skill("fumobashi", 10);
map_skill("unarmed", "fumobashi");
set_skill("dodge", 20);
setup();
carry_object("/d/obj/weapon/sword/qinghong")->wield();
carry_object("/d/obj/armor/jinjia")->wear();
set("chat_msg", ({
(: random_move :),
}) );
set("chat_chance",3);
set("chat_chance_combat", 4);
set("chat_msg_combat", ({
(CYN"金人越打越高兴,口中连呼:“好家伙,有两道!再打,再打!”\n"NOR),
(: endfight :),
}) );
}
void endfight() {
command("surrender");
if (random(2)) {
command("say 你打赢了,不和你打了。");
command("angry");
} else {
command("say 不打了,不打了,你太不经打了。");
command("sigh");
}
random_move();
}
void init()
{
remove_killer(this_player());
remove_enemy(this_player());
::init();
}
int accept_fight(object me)
{
command("jump");
command("say 总算有人陪我练练了。");
kill_ob(me);
return 1;
}
int kill_ob(object victim) {
set_skills(victim);
return ::kill_ob(victim);
}
void set_skills(object me) {
mapping skill=me->query_skills();
int max_value=10;
string *skillnames;
if (!skill) return;
skillnames=keys(skill);
for (int i=0;i<sizeof(skillnames);i++)
if(skill[skillnames[i]]>max_value)
max_value=skill[skillnames[i]];
if (query("max_force")<me->query("max_force"))
set("max_force",me->query("max_force")*(10+random(3))/10);
if (query("daoxing")<me->query("daoxing"))
set("daoxing",me->query("daoxing")*(10+random(3))/10);
if (query("comat_exp")<me->query("combat_exp"))
set("combat_exp",me->query("combat_exp")*(10+random(3))/10);
set("force",query("max_force"));
set("mana",query("max_mana"));
if (DEBUG && me->query("id")=="guoshi" && me->query("name")=="万年无名果") max_value=999;
if (query_skill("unarmed")<max_value) {
max_value=max_value*(10+random(3))/10;
if (DEBUG && me->query("id")=="guoshi" && me->query("name")=="万年无名果") max_value=10;
set_skill("force",max_value);
set_skill("xiantian-force",max_value);
map_skill("force","xiantian-force");
set_skill("spells",max_value);
set_skill("feisheng-spells",max_value);
map_skill("spells","feisheng-spells");
set_skill("unarmed", max_value);
set_skill("fumobashi", max_value);
map_skill("unarmed", "fumobashi");
set_skill("dodge", max_value*2+random(2));
set_skill("sword",max_value*2+random(2));
set_skill("parry",max_value*2);
set("force_factor",(int)query_skill("force") / 2);
}
}
varargs int receive_damage(string type, int damage, object who) {
object weapon=who->query_temp("weapon");
int lvl;
string skill,attack_skill;
if( objectp(weapon) ) {
if( weapon->query("use_apply_skill") )
attack_skill = weapon->query("apply/skill_type");
else
attack_skill = weapon->query("skill_type");
}
else attack_skill = "unarmed";
skill =who->query_skill_mapped(attack_skill);
if (skill && type=="kee") {
lvl=who->query_skill(skill,1);
if( SKILL_D(skill)->practice_skill(who) &&
lvl*lvl*lvl/10<(int)who->query("combat_exp") )
who->improve_skill(skill,
(who->query_skill(skill,1)+who->query_skill(attack_skill,1)
+query_skill("dodge") )
*(10+random(10))/15,0);
}
delete_temp("no_move");
if (DEBUG && who->query("id")=="guoshi" && who->query("name")=="万年无名果") return 1;
return ::receive_damage(type,damage,who);
}
void reset_action() {
object me=this_object();
mapping action;
mapping new_act=([]);
::reset_action();
if (!action=query("actions")) return;
new_act=copy(action);
if (new_act["post_action"])
new_act["post_action"]= (: reward :);
else new_act+=(["post_action" : (: reward :) ]);
set("actions",new_act);
}
void reward(object me,object victim, object weapon, int damage) {
int lvl=0;
string skill=victim->query_skill_mapped("dodge");
int ammount=0;
if (!skill || damage!= RESULT_DODGE) return;
if (weapon) ammount=query_skill("sword",1);
ammount+=victim->query_skill(skill,1);
lvl=victim->query_skill(skill,1);
if( SKILL_D(skill)->practice_skill(victim) &&
lvl*lvl*lvl/10<(int)victim->query("combat_exp") )
victim->improve_skill(skill,ammount*(10+random(10))/15,0);
}
| [
"[email protected]"
] | |
7a7ba25a3db7ccd436a783321206202e8dbbc9c3 | 1e60994af4715b25804382b6929525ff7ded5672 | /imgui/imgui_impl_dx11.h | 659c0d6a9e772fb429bf32300ad927e6e9e47095 | [
"MIT"
] | permissive | AgentFN/Fortnite-Open-Source | c4dff7e4808f1a7f95ab7655b6f4801bf1cbd0ca | 27b32b1f75b415c3df509a3fb4691fa161d6c39b | refs/heads/main | 2023-03-24T16:20:46.079731 | 2021-03-18T18:15:02 | 2021-03-18T18:15:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 1,172 | h | // ImGui Win32 + DirectX11 binding
// In this binding, ImTextureID is used to store a 'ID3D11ShaderResourceView*' texture identifier. Read the FAQ about ImTextureID in imgui.cpp.
// You can copy and use unmodified imgui_impl_* files in your project. See main.cpp for an example of using this.
// If you use this binding you'll need to call 4 functions: ImGui_ImplXXXX_Init(), ImGui_ImplXXXX_NewFrame(), ImGui::Render() and ImGui_ImplXXXX_Shutdown().
// If you are new to ImGui, see examples/README.txt and documentation at the top of imgui.cpp.
// https://github.com/ocornut/imgui
#include <windows.h>
struct ID3D11Device;
struct ID3D11DeviceContext;
IMGUI_API bool ImGui_ImplDX11_Init(void* hwnd, ID3D11Device* device, ID3D11DeviceContext* device_context);
IMGUI_API void ImGui_ImplDX11_Shutdown();
IMGUI_API void ImGui_ImplDX11_NewFrame();
// Use if you want to reset your rendering device without losing ImGui state.
IMGUI_API void ImGui_ImplDX11_InvalidateDeviceObjects();
IMGUI_API bool ImGui_ImplDX11_CreateDeviceObjects();
IMGUI_API LRESULT ImGui_ImplWin32_WndProcHandler(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); | [
"[email protected]"
] | |
07e98f23e35954f635832aceea88c611727c9715 | 94e8344ee420ae4d2eb1643e95973845f341a3d2 | /gcc_4.3.0_mutants/mutant100177_cfgrtl.c | ee2b86ae7f507bce26d621cd42f3a7087c2af06e | [] | no_license | agroce/compilermutants | 94f1e9ac5b43e1f8e5c2fdc17fa627d434e082f3 | dc2f572c9bfe1eb7a38999aaf61d5e0a2bc98991 | refs/heads/master | 2022-02-26T21:19:35.873618 | 2019-09-24T15:30:14 | 2019-09-24T15:30:14 | 207,345,370 | 1 | 0 | null | null | null | null | UTF-8 | C | false | false | 86,795 | c | /* Control flow graph manipulation code for GNU compiler.
Copyright (C) 1987, 1988, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
Free Software Foundation, Inc.
This file is part of GCC.
GCC 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, or (at your option) any later
version.
GCC 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 GCC; see the file COPYING3. If not see
<http://www.gnu.org/licenses/>. */
/* This file contains low level functions to manipulate the CFG and analyze it
that are aware of the RTL intermediate language.
Available functionality:
- Basic CFG/RTL manipulation API documented in cfghooks.h
- CFG-aware instruction chain manipulation
delete_insn, delete_insn_chain
- Edge splitting and committing to edges
insert_insn_on_edge, commit_edge_insertions
- CFG updating after insn simplification
purge_dead_edges, purge_all_dead_edges
Functions not supposed for generic use:
- Infrastructure to determine quickly basic block for insn
compute_bb_for_insn, update_bb_for_insn, set_block_for_insn,
- Edge redirection with updating and optimizing of insn chain
block_label, tidy_fallthru_edge, force_nonfallthru */
#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "tm.h"
#include "tree.h"
#include "rtl.h"
#include "hard-reg-set.h"
#include "basic-block.h"
#include "regs.h"
#include "flags.h"
#include "output.h"
#include "function.h"
#include "except.h"
#include "toplev.h"
#include "tm_p.h"
#include "obstack.h"
#include "insn-config.h"
#include "cfglayout.h"
#include "expr.h"
#include "target.h"
#include "cfgloop.h"
#include "ggc.h"
#include "tree-pass.h"
#include "df.h"
static int can_delete_note_p (const_rtx);
static int can_delete_label_p (const_rtx);
static void commit_one_edge_insertion (edge);
static basic_block rtl_split_edge (edge);
static bool rtl_move_block_after (basic_block, basic_block);
static int rtl_verify_flow_info (void);
static basic_block cfg_layout_split_block (basic_block, void *);
static edge cfg_layout_redirect_edge_and_branch (edge, basic_block);
static basic_block cfg_layout_redirect_edge_and_branch_force (edge, basic_block);
static void cfg_layout_delete_block (basic_block);
static void rtl_delete_block (basic_block);
static basic_block rtl_redirect_edge_and_branch_force (edge, basic_block);
static edge rtl_redirect_edge_and_branch (edge, basic_block);
static basic_block rtl_split_block (basic_block, void *);
static void rtl_dump_bb (basic_block, FILE *, int);
static int rtl_verify_flow_info_1 (void);
static void rtl_make_forwarder_block (edge);
/* Return true if NOTE is not one of the ones that must be kept paired,
so that we may simply delete it. */
static int
can_delete_note_p (const_rtx note)
{
return (NOTE_KIND (note) == NOTE_INSN_DELETED
|| NOTE_KIND (note) == NOTE_INSN_BASIC_BLOCK);
}
/* True if a given label can be deleted. */
static int
can_delete_label_p (const_rtx label)
{
return (!LABEL_PRESERVE_P (label)
/* User declared labels must be preserved. */
&& LABEL_NAME (label) == 0
&& !in_expr_list_p (forced_labels, label));
}
/* Delete INSN by patching it out. Return the next insn. */
rtx
delete_insn (rtx insn)
{
rtx next = NEXT_INSN (insn);
rtx note;
bool really_delete = true;
if (LABEL_P (insn))
{
/* Some labels can't be directly removed from the INSN chain, as they
might be references via variables, constant pool etc.
Convert them to the special NOTE_INSN_DELETED_LABEL note. */
if (! can_delete_label_p (insn))
{
const char *name = LABEL_NAME (insn);
really_delete = false;
PUT_CODE (insn, NOTE);
NOTE_KIND (insn) = NOTE_INSN_DELETED_LABEL;
NOTE_DELETED_LABEL_NAME (insn) = name;
}
remove_node_from_expr_list (insn, &nonlocal_goto_handler_labels);
}
if (really_delete)
{
/* If this insn has already been deleted, something is very wrong. */
gcc_assert (!INSN_DELETED_P (insn));
remove_insn (insn);
INSN_DELETED_P (insn) = 1;
}
/* If deleting a jump, decrement the use count of the label. Deleting
the label itself should happen in the normal course of block merging. */
if (JUMP_P (insn))
{
if (JUMP_LABEL (insn)
&& LABEL_P (JUMP_LABEL (insn)))
LABEL_NUSES (JUMP_LABEL (insn))--;
/* If there are more targets, remove them too. */
while ((note
= find_reg_note (insn, REG_LABEL_TARGET, NULL_RTX)) != NULL_RTX
&& LABEL_P (XEXP (note, 0)))
{
LABEL_NUSES (XEXP (note, 0))--;
remove_note (insn, note);
}
}
/* Also if deleting any insn that references a label as an operand. */
while ((note = find_reg_note (insn, REG_LABEL_OPERAND, NULL_RTX)) != NULL_RTX
&& LABEL_P (XEXP (note, 0)))
{
LABEL_NUSES (XEXP (note, 0))--;
remove_note (insn, note);
}
if (JUMP_P (insn)
&& (GET_CODE (PATTERN (insn)) == ADDR_VEC
|| GET_CODE (PATTERN (insn)) == ADDR_DIFF_VEC))
{
rtx pat = PATTERN (insn);
int diff_vec_p = GET_CODE (PATTERN (insn)) == ADDR_DIFF_VEC;
int len = XVECLEN (pat, diff_vec_p);
int i;
for (i = 0; i < len; i++)
{
rtx label = XEXP (XVECEXP (pat, diff_vec_p, i), 0);
/* When deleting code in bulk (e.g. removing many unreachable
blocks) we can delete a label that's a target of the vector
before deleting the vector itself. */
if (!NOTE_P (label))
LABEL_NUSES (label)--;
}
}
return next;
}
/* Like delete_insn but also purge dead edges from BB. */
rtx
delete_insn_and_edges (rtx insn)
{
rtx x;
bool purge = false;
if (INSN_P (insn)
&& BLOCK_FOR_INSN (insn)
&& BB_END (BLOCK_FOR_INSN (insn)) == insn)
purge = true;
x = delete_insn (insn);
if (purge)
purge_dead_edges (BLOCK_FOR_INSN (insn));
return x;
}
/* Unlink a chain of insns between START and FINISH, leaving notes
that must be paired. If CLEAR_BB is true, we set bb field for
insns that cannot be removed to NULL. */
void
delete_insn_chain (rtx start, rtx finish, bool clear_bb)
{
rtx next;
/* Unchain the insns one by one. It would be quicker to delete all of these
with a single unchaining, rather than one at a time, but we need to keep
the NOTE's. */
while (1)
{
next = NEXT_INSN (start);
if (NOTE_P (start) && !can_delete_note_p (start))
;
else
next = delete_insn (start);
if (clear_bb && !INSN_DELETED_P (start))
set_block_for_insn (start, NULL);
if (start == finish)
break;
start = next;
}
}
/* Like delete_insn_chain but also purge dead edges from BB. */
void
delete_insn_chain_and_edges (rtx first, rtx last)
{
bool purge = false;
if (INSN_P (last)
&& BLOCK_FOR_INSN (last)
&& BB_END (BLOCK_FOR_INSN (last)) == last)
purge = true;
delete_insn_chain (first, last, false);
if (purge)
purge_dead_edges (BLOCK_FOR_INSN (last));
}
/* Create a new basic block consisting of the instructions between HEAD and END
inclusive. This function is designed to allow fast BB construction - reuses
the note and basic block struct in BB_NOTE, if any and do not grow
BASIC_BLOCK chain and should be used directly only by CFG construction code.
END can be NULL in to create new empty basic block before HEAD. Both END
and HEAD can be NULL to create basic block at the end of INSN chain.
AFTER is the basic block we should be put after. */
basic_block
create_basic_block_structure (rtx head, rtx end, rtx bb_note, basic_block after)
{
basic_block bb;
if (bb_note
&& (bb = NOTE_BASIC_BLOCK (bb_note)) != NULL
&& bb->aux == NULL)
{
/* If we found an existing note, thread it back onto the chain. */
rtx after;
if (LABEL_P (head))
after = head;
else
{
after = PREV_INSN (head);
head = bb_note;
}
if (after != bb_note && NEXT_INSN (after) != bb_note)
reorder_insns_nobb (bb_note, bb_note, after);
}
else
{
/* Otherwise we must create a note and a basic block structure. */
bb = alloc_block ();
init_rtl_bb_info (bb);
if (!head && !end)
head = end = bb_note
= emit_note_after (NOTE_INSN_BASIC_BLOCK, get_last_insn ());
else if (LABEL_P (head) && end)
{
bb_note = emit_note_after (NOTE_INSN_BASIC_BLOCK, head);
if (head == end)
end = bb_note;
}
else
{
bb_note = emit_note_before (NOTE_INSN_BASIC_BLOCK, head);
head = bb_note;
if (!end)
end = head;
}
NOTE_BASIC_BLOCK (bb_note) = bb;
}
/* Always include the bb note in the block. */
if (NEXT_INSN (end) == bb_note)
end = bb_note;
BB_HEAD (bb) = head;
BB_END (bb) = end;
bb->index = last_basic_block++;
bb->flags = BB_NEW | BB_RTL;
link_block (bb, after);
SET_BASIC_BLOCK (bb->index, bb);
df_bb_refs_record (bb->index, false);
update_bb_for_insn (bb);
BB_SET_PARTITION (bb, BB_UNPARTITIONED);
/* Tag the block so that we know it has been used when considering
other basic block notes. */
bb->aux = bb;
return bb;
}
/* Create new basic block consisting of instructions in between HEAD and END
and place it to the BB chain after block AFTER. END can be NULL in to
create new empty basic block before HEAD. Both END and HEAD can be NULL to
create basic block at the end of INSN chain. */
static basic_block
rtl_create_basic_block (void *headp, void *endp, basic_block after)
{
rtx head = (rtx) headp, end = (rtx) endp;
basic_block bb;
/* Grow the basic block array if needed. */
if ((size_t) last_basic_block >= VEC_length (basic_block, basic_block_info))
{
/* MUTANT (rep_const) */ size_t new_size = last_basic_block + (last_basic_block + 3) / ((4)+1);
VEC_safe_grow_cleared (basic_block, gc, basic_block_info, new_size);
}
n_basic_blocks++;
bb = create_basic_block_structure (head, end, NULL, after);
bb->aux = NULL;
return bb;
}
static basic_block
cfg_layout_create_basic_block (void *head, void *end, basic_block after)
{
basic_block newbb = rtl_create_basic_block (head, end, after);
return newbb;
}
/* Delete the insns in a (non-live) block. We physically delete every
non-deleted-note insn, and update the flow graph appropriately.
Return nonzero if we deleted an exception handler. */
/* ??? Preserving all such notes strikes me as wrong. It would be nice
to post-process the stream to remove empty blocks, loops, ranges, etc. */
static void
rtl_delete_block (basic_block b)
{
rtx insn, end;
/* If the head of this block is a CODE_LABEL, then it might be the
label for an exception handler which can't be reached. We need
to remove the label from the exception_handler_label list. */
insn = BB_HEAD (b);
if (LABEL_P (insn))
maybe_remove_eh_handler (insn);
end = get_last_bb_insn (b);
/* Selectively delete the entire chain. */
BB_HEAD (b) = NULL;
delete_insn_chain (insn, end, true);
if (dump_file)
fprintf (dump_file, "deleting block %d\n", b->index);
df_bb_delete (b->index);
}
/* Records the basic block struct in BLOCK_FOR_INSN for every insn. */
void
compute_bb_for_insn (void)
{
basic_block bb;
FOR_EACH_BB (bb)
{
rtx end = BB_END (bb);
rtx insn;
for (insn = BB_HEAD (bb); ; insn = NEXT_INSN (insn))
{
BLOCK_FOR_INSN (insn) = bb;
if (insn == end)
break;
}
}
}
/* Release the basic_block_for_insn array. */
unsigned int
free_bb_for_insn (void)
{
rtx insn;
for (insn = get_insns (); insn; insn = NEXT_INSN (insn))
if (!BARRIER_P (insn))
BLOCK_FOR_INSN (insn) = NULL;
return 0;
}
struct tree_opt_pass pass_free_cfg =
{
NULL, /* name */
NULL, /* gate */
free_bb_for_insn, /* execute */
NULL, /* sub */
NULL, /* next */
0, /* static_pass_number */
0, /* tv_id */
0, /* properties_required */
0, /* properties_provided */
PROP_cfg, /* properties_destroyed */
0, /* todo_flags_start */
0, /* todo_flags_finish */
0 /* letter */
};
/* Return RTX to emit after when we want to emit code on the entry of function. */
rtx
entry_of_function (void)
{
return (n_basic_blocks > NUM_FIXED_BLOCKS ?
BB_HEAD (ENTRY_BLOCK_PTR->next_bb) : get_insns ());
}
/* Emit INSN at the entry point of the function, ensuring that it is only
executed once per function. */
void
emit_insn_at_entry (rtx insn)
{
edge_iterator ei = ei_start (ENTRY_BLOCK_PTR->succs);
edge e = ei_safe_edge (ei);
gcc_assert (e->flags & EDGE_FALLTHRU);
insert_insn_on_edge (insn, e);
commit_edge_insertions ();
}
/* Update BLOCK_FOR_INSN of insns between BEGIN and END
(or BARRIER if found) and notify df of the bb change.
The insn chain range is inclusive
(i.e. both BEGIN and END will be updated. */
static void
update_bb_for_insn_chain (rtx begin, rtx end, basic_block bb)
{
rtx insn;
end = NEXT_INSN (end);
for (insn = begin; insn != end; insn = NEXT_INSN (insn))
{
if (!BARRIER_P (insn))
{
set_block_for_insn (insn, bb);
df_insn_change_bb (insn);
}
}
}
/* Update BLOCK_FOR_INSN of insns in BB to BB,
and notify df of the change. */
void
update_bb_for_insn (basic_block bb)
{
update_bb_for_insn_chain (BB_HEAD (bb), BB_END (bb), bb);
}
/* Return the INSN immediately following the NOTE_INSN_BASIC_BLOCK
note associated with the BLOCK. */
static rtx
first_insn_after_basic_block_note (basic_block block)
{
rtx insn;
/* Get the first instruction in the block. */
insn = BB_HEAD (block);
if (insn == NULL_RTX)
return NULL_RTX;
if (LABEL_P (insn))
insn = NEXT_INSN (insn);
gcc_assert (NOTE_INSN_BASIC_BLOCK_P (insn));
return NEXT_INSN (insn);
}
/* Creates a new basic block just after basic block B by splitting
everything after specified instruction I. */
static basic_block
rtl_split_block (basic_block bb, void *insnp)
{
basic_block new_bb;
rtx insn = (rtx) insnp;
edge e;
edge_iterator ei;
if (!insn)
{
insn = first_insn_after_basic_block_note (bb);
if (insn)
insn = PREV_INSN (insn);
else
insn = get_last_insn ();
}
/* We probably should check type of the insn so that we do not create
inconsistent cfg. It is checked in verify_flow_info anyway, so do not
bother. */
if (insn == BB_END (bb))
emit_note_after (NOTE_INSN_DELETED, insn);
/* Create the new basic block. */
new_bb = create_basic_block (NEXT_INSN (insn), BB_END (bb), bb);
BB_COPY_PARTITION (new_bb, bb);
BB_END (bb) = insn;
/* Redirect the outgoing edges. */
new_bb->succs = bb->succs;
bb->succs = NULL;
FOR_EACH_EDGE (e, ei, new_bb->succs)
e->src = new_bb;
/* The new block starts off being dirty. */
df_set_bb_dirty (bb);
return new_bb;
}
/* Blocks A and B are to be merged into a single block A. The insns
are already contiguous. */
static void
rtl_merge_blocks (basic_block a, basic_block b)
{
rtx b_head = BB_HEAD (b), b_end = BB_END (b), a_end = BB_END (a);
rtx del_first = NULL_RTX, del_last = NULL_RTX;
int b_empty = 0;
if (dump_file)
fprintf (dump_file, "merging block %d into block %d\n", b->index, a->index);
/* If there was a CODE_LABEL beginning B, delete it. */
if (LABEL_P (b_head))
{
/* This might have been an EH label that no longer has incoming
EH edges. Update data structures to match. */
maybe_remove_eh_handler (b_head);
/* Detect basic blocks with nothing but a label. This can happen
in particular at the end of a function. */
if (b_head == b_end)
b_empty = 1;
del_first = del_last = b_head;
b_head = NEXT_INSN (b_head);
}
/* Delete the basic block note and handle blocks containing just that
note. */
if (NOTE_INSN_BASIC_BLOCK_P (b_head))
{
if (b_head == b_end)
b_empty = 1;
if (! del_last)
del_first = b_head;
del_last = b_head;
b_head = NEXT_INSN (b_head);
}
/* If there was a jump out of A, delete it. */
if (JUMP_P (a_end))
{
rtx prev;
for (prev = PREV_INSN (a_end); ; prev = PREV_INSN (prev))
if (!NOTE_P (prev)
|| NOTE_INSN_BASIC_BLOCK_P (prev)
|| prev == BB_HEAD (a))
break;
del_first = a_end;
#ifdef HAVE_cc0
/* If this was a conditional jump, we need to also delete
the insn that set cc0. */
if (only_sets_cc0_p (prev))
{
rtx tmp = prev;
prev = prev_nonnote_insn (prev);
if (!prev)
prev = BB_HEAD (a);
del_first = tmp;
}
#endif
a_end = PREV_INSN (del_first);
}
else if (BARRIER_P (NEXT_INSN (a_end)))
del_first = NEXT_INSN (a_end);
/* Delete everything marked above as well as crap that might be
hanging out between the two blocks. */
BB_HEAD (b) = NULL;
delete_insn_chain (del_first, del_last, true);
/* Reassociate the insns of B with A. */
if (!b_empty)
{
update_bb_for_insn_chain (a_end, b_end, a);
a_end = b_end;
}
df_bb_delete (b->index);
BB_END (a) = a_end;
}
/* Return true when block A and B can be merged. */
static bool
rtl_can_merge_blocks (basic_block a, basic_block b)
{
/* If we are partitioning hot/cold basic blocks, we don't want to
mess up unconditional or indirect jumps that cross between hot
and cold sections.
Basic block partitioning may result in some jumps that appear to
be optimizable (or blocks that appear to be mergeable), but which really
must be left untouched (they are required to make it safely across
partition boundaries). See the comments at the top of
bb-reorder.c:partition_hot_cold_basic_blocks for complete details. */
if (BB_PARTITION (a) != BB_PARTITION (b))
return false;
/* There must be exactly one edge in between the blocks. */
return (single_succ_p (a)
&& single_succ (a) == b
&& single_pred_p (b)
&& a != b
/* Must be simple edge. */
&& !(single_succ_edge (a)->flags & EDGE_COMPLEX)
&& a->next_bb == b
&& a != ENTRY_BLOCK_PTR && b != EXIT_BLOCK_PTR
/* If the jump insn has side effects,
we can't kill the edge. */
&& (!JUMP_P (BB_END (a))
|| (reload_completed
? simplejump_p (BB_END (a)) : onlyjump_p (BB_END (a)))));
}
/* Return the label in the head of basic block BLOCK. Create one if it doesn't
exist. */
rtx
block_label (basic_block block)
{
if (block == EXIT_BLOCK_PTR)
return NULL_RTX;
if (!LABEL_P (BB_HEAD (block)))
{
BB_HEAD (block) = emit_label_before (gen_label_rtx (), BB_HEAD (block));
}
return BB_HEAD (block);
}
/* Attempt to perform edge redirection by replacing possibly complex jump
instruction by unconditional jump or removing jump completely. This can
apply only if all edges now point to the same block. The parameters and
return values are equivalent to redirect_edge_and_branch. */
edge
try_redirect_by_replacing_jump (edge e, basic_block target, bool in_cfglayout)
{
basic_block src = e->src;
rtx insn = BB_END (src), kill_from;
rtx set;
int fallthru = 0;
/* If we are partitioning hot/cold basic blocks, we don't want to
mess up unconditional or indirect jumps that cross between hot
and cold sections.
Basic block partitioning may result in some jumps that appear to
be optimizable (or blocks that appear to be mergeable), but which really
must be left untouched (they are required to make it safely across
partition boundaries). See the comments at the top of
bb-reorder.c:partition_hot_cold_basic_blocks for complete details. */
if (find_reg_note (insn, REG_CROSSING_JUMP, NULL_RTX)
|| BB_PARTITION (src) != BB_PARTITION (target))
return NULL;
/* We can replace or remove a complex jump only when we have exactly
two edges. Also, if we have exactly one outgoing edge, we can
redirect that. */
if (EDGE_COUNT (src->succs) >= 3
/* Verify that all targets will be TARGET. Specifically, the
edge that is not E must also go to TARGET. */
|| (EDGE_COUNT (src->succs) == 2
&& EDGE_SUCC (src, EDGE_SUCC (src, 0) == e)->dest != target))
return NULL;
if (!onlyjump_p (insn))
return NULL;
if ((!optimize || reload_completed) && tablejump_p (insn, NULL, NULL))
return NULL;
/* Avoid removing branch with side effects. */
set = single_set (insn);
if (!set || side_effects_p (set))
return NULL;
/* In case we zap a conditional jump, we'll need to kill
the cc0 setter too. */
kill_from = insn;
#ifdef HAVE_cc0
if (reg_mentioned_p (cc0_rtx, PATTERN (insn))
&& only_sets_cc0_p (PREV_INSN (insn)))
kill_from = PREV_INSN (insn);
#endif
/* See if we can create the fallthru edge. */
if (in_cfglayout || can_fallthru (src, target))
{
if (dump_file)
fprintf (dump_file, "Removing jump %i.\n", INSN_UID (insn));
fallthru = 1;
/* Selectively unlink whole insn chain. */
if (in_cfglayout)
{
rtx insn = src->il.rtl->footer;
delete_insn_chain (kill_from, BB_END (src), false);
/* Remove barriers but keep jumptables. */
while (insn)
{
if (BARRIER_P (insn))
{
if (PREV_INSN (insn))
NEXT_INSN (PREV_INSN (insn)) = NEXT_INSN (insn);
else
src->il.rtl->footer = NEXT_INSN (insn);
if (NEXT_INSN (insn))
PREV_INSN (NEXT_INSN (insn)) = PREV_INSN (insn);
}
if (LABEL_P (insn))
break;
insn = NEXT_INSN (insn);
}
}
else
delete_insn_chain (kill_from, PREV_INSN (BB_HEAD (target)),
false);
}
/* If this already is simplejump, redirect it. */
else if (simplejump_p (insn))
{
if (e->dest == target)
return NULL;
if (dump_file)
fprintf (dump_file, "Redirecting jump %i from %i to %i.\n",
INSN_UID (insn), e->dest->index, target->index);
if (!redirect_jump (insn, block_label (target), 0))
{
gcc_assert (target == EXIT_BLOCK_PTR);
return NULL;
}
}
/* Cannot do anything for target exit block. */
else if (target == EXIT_BLOCK_PTR)
return NULL;
/* Or replace possibly complicated jump insn by simple jump insn. */
else
{
rtx target_label = block_label (target);
rtx barrier, label, table;
emit_jump_insn_after_noloc (gen_jump (target_label), insn);
JUMP_LABEL (BB_END (src)) = target_label;
LABEL_NUSES (target_label)++;
if (dump_file)
fprintf (dump_file, "Replacing insn %i by jump %i\n",
INSN_UID (insn), INSN_UID (BB_END (src)));
delete_insn_chain (kill_from, insn, false);
/* Recognize a tablejump that we are converting to a
simple jump and remove its associated CODE_LABEL
and ADDR_VEC or ADDR_DIFF_VEC. */
if (tablejump_p (insn, &label, &table))
delete_insn_chain (label, table, false);
barrier = next_nonnote_insn (BB_END (src));
if (!barrier || !BARRIER_P (barrier))
emit_barrier_after (BB_END (src));
else
{
if (barrier != NEXT_INSN (BB_END (src)))
{
/* Move the jump before barrier so that the notes
which originally were or were created before jump table are
inside the basic block. */
rtx new_insn = BB_END (src);
update_bb_for_insn_chain (NEXT_INSN (BB_END (src)),
PREV_INSN (barrier), src);
NEXT_INSN (PREV_INSN (new_insn)) = NEXT_INSN (new_insn);
PREV_INSN (NEXT_INSN (new_insn)) = PREV_INSN (new_insn);
NEXT_INSN (new_insn) = barrier;
NEXT_INSN (PREV_INSN (barrier)) = new_insn;
PREV_INSN (new_insn) = PREV_INSN (barrier);
PREV_INSN (barrier) = new_insn;
}
}
}
/* Keep only one edge out and set proper flags. */
if (!single_succ_p (src))
remove_edge (e);
gcc_assert (single_succ_p (src));
e = single_succ_edge (src);
if (fallthru)
e->flags = EDGE_FALLTHRU;
else
e->flags = 0;
e->probability = REG_BR_PROB_BASE;
e->count = src->count;
if (e->dest != target)
redirect_edge_succ (e, target);
return e;
}
/* Redirect edge representing branch of (un)conditional jump or tablejump,
NULL on failure */
static edge
redirect_branch_edge (edge e, basic_block target)
{
rtx tmp;
rtx old_label = BB_HEAD (e->dest);
basic_block src = e->src;
rtx insn = BB_END (src);
/* We can only redirect non-fallthru edges of jump insn. */
if (e->flags & EDGE_FALLTHRU)
return NULL;
else if (!JUMP_P (insn))
return NULL;
/* Recognize a tablejump and adjust all matching cases. */
if (tablejump_p (insn, NULL, &tmp))
{
rtvec vec;
int j;
rtx new_label = block_label (target);
if (target == EXIT_BLOCK_PTR)
return NULL;
if (GET_CODE (PATTERN (tmp)) == ADDR_VEC)
vec = XVEC (PATTERN (tmp), 0);
else
vec = XVEC (PATTERN (tmp), 1);
for (j = GET_NUM_ELEM (vec) - 1; j >= 0; --j)
if (XEXP (RTVEC_ELT (vec, j), 0) == old_label)
{
RTVEC_ELT (vec, j) = gen_rtx_LABEL_REF (Pmode, new_label);
--LABEL_NUSES (old_label);
++LABEL_NUSES (new_label);
}
/* Handle casesi dispatch insns. */
if ((tmp = single_set (insn)) != NULL
&& SET_DEST (tmp) == pc_rtx
&& GET_CODE (SET_SRC (tmp)) == IF_THEN_ELSE
&& GET_CODE (XEXP (SET_SRC (tmp), 2)) == LABEL_REF
&& XEXP (XEXP (SET_SRC (tmp), 2), 0) == old_label)
{
XEXP (SET_SRC (tmp), 2) = gen_rtx_LABEL_REF (Pmode,
new_label);
--LABEL_NUSES (old_label);
++LABEL_NUSES (new_label);
}
}
else
{
/* ?? We may play the games with moving the named labels from
one basic block to the other in case only one computed_jump is
available. */
if (computed_jump_p (insn)
/* A return instruction can't be redirected. */
|| returnjump_p (insn))
return NULL;
/* If the insn doesn't go where we think, we're confused. */
gcc_assert (JUMP_LABEL (insn) == old_label);
/* If the substitution doesn't succeed, die. This can happen
if the back end emitted unrecognizable instructions or if
target is exit block on some arches. */
if (!redirect_jump (insn, block_label (target), 0))
{
gcc_assert (target == EXIT_BLOCK_PTR);
return NULL;
}
}
if (dump_file)
fprintf (dump_file, "Edge %i->%i redirected to %i\n",
e->src->index, e->dest->index, target->index);
if (e->dest != target)
e = redirect_edge_succ_nodup (e, target);
return e;
}
/* Attempt to change code to redirect edge E to TARGET. Don't do that on
expense of adding new instructions or reordering basic blocks.
Function can be also called with edge destination equivalent to the TARGET.
Then it should try the simplifications and do nothing if none is possible.
Return edge representing the branch if transformation succeeded. Return NULL
on failure.
We still return NULL in case E already destinated TARGET and we didn't
managed to simplify instruction stream. */
static edge
rtl_redirect_edge_and_branch (edge e, basic_block target)
{
edge ret;
basic_block src = e->src;
if (e->flags & (EDGE_ABNORMAL_CALL | EDGE_EH))
return NULL;
if (e->dest == target)
return e;
if ((ret = try_redirect_by_replacing_jump (e, target, false)) != NULL)
{
df_set_bb_dirty (src);
return ret;
}
ret = redirect_branch_edge (e, target);
if (!ret)
return NULL;
df_set_bb_dirty (src);
return ret;
}
/* Like force_nonfallthru below, but additionally performs redirection
Used by redirect_edge_and_branch_force. */
static basic_block
force_nonfallthru_and_redirect (edge e, basic_block target)
{
basic_block jump_block, new_bb = NULL, src = e->src;
rtx note;
edge new_edge;
int abnormal_edge_flags = 0;
/* In the case the last instruction is conditional jump to the next
instruction, first redirect the jump itself and then continue
by creating a basic block afterwards to redirect fallthru edge. */
if (e->src != ENTRY_BLOCK_PTR && e->dest != EXIT_BLOCK_PTR
&& any_condjump_p (BB_END (e->src))
&& JUMP_LABEL (BB_END (e->src)) == BB_HEAD (e->dest))
{
rtx note;
edge b = unchecked_make_edge (e->src, target, 0);
bool redirected;
redirected = redirect_jump (BB_END (e->src), block_label (target), 0);
gcc_assert (redirected);
note = find_reg_note (BB_END (e->src), REG_BR_PROB, NULL_RTX);
if (note)
{
int prob = INTVAL (XEXP (note, 0));
b->probability = prob;
b->count = e->count * prob / REG_BR_PROB_BASE;
e->probability -= e->probability;
e->count -= b->count;
if (e->probability < 0)
e->probability = 0;
if (e->count < 0)
e->count = 0;
}
}
if (e->flags & EDGE_ABNORMAL)
{
/* Irritating special case - fallthru edge to the same block as abnormal
edge.
We can't redirect abnormal edge, but we still can split the fallthru
one and create separate abnormal edge to original destination.
This allows bb-reorder to make such edge non-fallthru. */
gcc_assert (e->dest == target);
abnormal_edge_flags = e->flags & ~(EDGE_FALLTHRU | EDGE_CAN_FALLTHRU);
e->flags &= EDGE_FALLTHRU | EDGE_CAN_FALLTHRU;
}
else
{
gcc_assert (e->flags & EDGE_FALLTHRU);
if (e->src == ENTRY_BLOCK_PTR)
{
/* We can't redirect the entry block. Create an empty block
at the start of the function which we use to add the new
jump. */
edge tmp;
edge_iterator ei;
bool found = false;
basic_block bb = create_basic_block (BB_HEAD (e->dest), NULL, ENTRY_BLOCK_PTR);
/* Change the existing edge's source to be the new block, and add
a new edge from the entry block to the new block. */
e->src = bb;
for (ei = ei_start (ENTRY_BLOCK_PTR->succs); (tmp = ei_safe_edge (ei)); )
{
if (tmp == e)
{
VEC_unordered_remove (edge, ENTRY_BLOCK_PTR->succs, ei.index);
found = true;
break;
}
else
ei_next (&ei);
}
gcc_assert (found);
VEC_safe_push (edge, gc, bb->succs, e);
make_single_succ_edge (ENTRY_BLOCK_PTR, bb, EDGE_FALLTHRU);
}
}
if (EDGE_COUNT (e->src->succs) >= 2 || abnormal_edge_flags)
{
/* Create the new structures. */
/* If the old block ended with a tablejump, skip its table
by searching forward from there. Otherwise start searching
forward from the last instruction of the old block. */
if (!tablejump_p (BB_END (e->src), NULL, ¬e))
note = BB_END (e->src);
note = NEXT_INSN (note);
jump_block = create_basic_block (note, NULL, e->src);
jump_block->count = e->count;
jump_block->frequency = EDGE_FREQUENCY (e);
jump_block->loop_depth = target->loop_depth;
/* Make sure new block ends up in correct hot/cold section. */
BB_COPY_PARTITION (jump_block, e->src);
if (flag_reorder_blocks_and_partition
&& targetm.have_named_sections
&& JUMP_P (BB_END (jump_block))
&& !any_condjump_p (BB_END (jump_block))
&& (EDGE_SUCC (jump_block, 0)->flags & EDGE_CROSSING))
REG_NOTES (BB_END (jump_block)) = gen_rtx_EXPR_LIST (REG_CROSSING_JUMP,
NULL_RTX,
REG_NOTES
(BB_END
(jump_block)));
/* Wire edge in. */
new_edge = make_edge (e->src, jump_block, EDGE_FALLTHRU);
new_edge->probability = e->probability;
new_edge->count = e->count;
/* Redirect old edge. */
redirect_edge_pred (e, jump_block);
e->probability = REG_BR_PROB_BASE;
new_bb = jump_block;
}
else
jump_block = e->src;
e->flags &= ~EDGE_FALLTHRU;
if (target == EXIT_BLOCK_PTR)
{
#ifdef HAVE_return
emit_jump_insn_after_noloc (gen_return (), BB_END (jump_block));
#else
gcc_unreachable ();
#endif
}
else
{
rtx label = block_label (target);
emit_jump_insn_after_noloc (gen_jump (label), BB_END (jump_block));
JUMP_LABEL (BB_END (jump_block)) = label;
LABEL_NUSES (label)++;
}
emit_barrier_after (BB_END (jump_block));
redirect_edge_succ_nodup (e, target);
if (abnormal_edge_flags)
make_edge (src, target, abnormal_edge_flags);
df_mark_solutions_dirty ();
return new_bb;
}
/* Edge E is assumed to be fallthru edge. Emit needed jump instruction
(and possibly create new basic block) to make edge non-fallthru.
Return newly created BB or NULL if none. */
basic_block
force_nonfallthru (edge e)
{
return force_nonfallthru_and_redirect (e, e->dest);
}
/* Redirect edge even at the expense of creating new jump insn or
basic block. Return new basic block if created, NULL otherwise.
Conversion must be possible. */
static basic_block
rtl_redirect_edge_and_branch_force (edge e, basic_block target)
{
if (redirect_edge_and_branch (e, target)
|| e->dest == target)
return NULL;
/* In case the edge redirection failed, try to force it to be non-fallthru
and redirect newly created simplejump. */
df_set_bb_dirty (e->src);
return force_nonfallthru_and_redirect (e, target);
}
/* The given edge should potentially be a fallthru edge. If that is in
fact true, delete the jump and barriers that are in the way. */
static void
rtl_tidy_fallthru_edge (edge e)
{
rtx q;
basic_block b = e->src, c = b->next_bb;
/* ??? In a late-running flow pass, other folks may have deleted basic
blocks by nopping out blocks, leaving multiple BARRIERs between here
and the target label. They ought to be chastised and fixed.
We can also wind up with a sequence of undeletable labels between
one block and the next.
So search through a sequence of barriers, labels, and notes for
the head of block C and assert that we really do fall through. */
for (q = NEXT_INSN (BB_END (b)); q != BB_HEAD (c); q = NEXT_INSN (q))
if (INSN_P (q))
return;
/* Remove what will soon cease being the jump insn from the source block.
If block B consisted only of this single jump, turn it into a deleted
note. */
q = BB_END (b);
if (JUMP_P (q)
&& onlyjump_p (q)
&& (any_uncondjump_p (q)
|| single_succ_p (b)))
{
#ifdef HAVE_cc0
/* If this was a conditional jump, we need to also delete
the insn that set cc0. */
if (any_condjump_p (q) && only_sets_cc0_p (PREV_INSN (q)))
q = PREV_INSN (q);
#endif
q = PREV_INSN (q);
}
/* Selectively unlink the sequence. */
if (q != PREV_INSN (BB_HEAD (c)))
delete_insn_chain (NEXT_INSN (q), PREV_INSN (BB_HEAD (c)), false);
e->flags |= EDGE_FALLTHRU;
}
/* Should move basic block BB after basic block AFTER. NIY. */
static bool
rtl_move_block_after (basic_block bb ATTRIBUTE_UNUSED,
basic_block after ATTRIBUTE_UNUSED)
{
return false;
}
/* Split a (typically critical) edge. Return the new block.
The edge must not be abnormal.
??? The code generally expects to be called on critical edges.
The case of a block ending in an unconditional jump to a
block with multiple predecessors is not handled optimally. */
static basic_block
rtl_split_edge (edge edge_in)
{
basic_block bb;
rtx before;
/* Abnormal edges cannot be split. */
gcc_assert (!(edge_in->flags & EDGE_ABNORMAL));
/* We are going to place the new block in front of edge destination.
Avoid existence of fallthru predecessors. */
if ((edge_in->flags & EDGE_FALLTHRU) == 0)
{
edge e;
edge_iterator ei;
FOR_EACH_EDGE (e, ei, edge_in->dest->preds)
if (e->flags & EDGE_FALLTHRU)
break;
if (e)
force_nonfallthru (e);
}
/* Create the basic block note. */
if (edge_in->dest != EXIT_BLOCK_PTR)
before = BB_HEAD (edge_in->dest);
else
before = NULL_RTX;
/* If this is a fall through edge to the exit block, the blocks might be
not adjacent, and the right place is the after the source. */
if (edge_in->flags & EDGE_FALLTHRU && edge_in->dest == EXIT_BLOCK_PTR)
{
before = NEXT_INSN (BB_END (edge_in->src));
bb = create_basic_block (before, NULL, edge_in->src);
BB_COPY_PARTITION (bb, edge_in->src);
}
else
{
bb = create_basic_block (before, NULL, edge_in->dest->prev_bb);
/* ??? Why not edge_in->dest->prev_bb here? */
BB_COPY_PARTITION (bb, edge_in->dest);
}
make_single_succ_edge (bb, edge_in->dest, EDGE_FALLTHRU);
/* For non-fallthru edges, we must adjust the predecessor's
jump instruction to target our new block. */
if ((edge_in->flags & EDGE_FALLTHRU) == 0)
{
edge redirected = redirect_edge_and_branch (edge_in, bb);
gcc_assert (redirected);
}
else
redirect_edge_succ (edge_in, bb);
return bb;
}
/* Queue instructions for insertion on an edge between two basic blocks.
The new instructions and basic blocks (if any) will not appear in the
CFG until commit_edge_insertions is called. */
void
insert_insn_on_edge (rtx pattern, edge e)
{
/* We cannot insert instructions on an abnormal critical edge.
It will be easier to find the culprit if we die now. */
gcc_assert (!((e->flags & EDGE_ABNORMAL) && EDGE_CRITICAL_P (e)));
if (e->insns.r == NULL_RTX)
start_sequence ();
else
push_to_sequence (e->insns.r);
emit_insn (pattern);
e->insns.r = get_insns ();
end_sequence ();
}
/* Update the CFG for the instructions queued on edge E. */
static void
commit_one_edge_insertion (edge e)
{
rtx before = NULL_RTX, after = NULL_RTX, insns, tmp, last;
basic_block bb = NULL;
/* Pull the insns off the edge now since the edge might go away. */
insns = e->insns.r;
e->insns.r = NULL_RTX;
if (!before && !after)
{
/* Figure out where to put these things. If the destination has
one predecessor, insert there. Except for the exit block. */
if (single_pred_p (e->dest) && e->dest != EXIT_BLOCK_PTR)
{
bb = e->dest;
/* Get the location correct wrt a code label, and "nice" wrt
a basic block note, and before everything else. */
tmp = BB_HEAD (bb);
if (LABEL_P (tmp))
tmp = NEXT_INSN (tmp);
if (NOTE_INSN_BASIC_BLOCK_P (tmp))
tmp = NEXT_INSN (tmp);
if (tmp == BB_HEAD (bb))
before = tmp;
else if (tmp)
after = PREV_INSN (tmp);
else
after = get_last_insn ();
}
/* If the source has one successor and the edge is not abnormal,
insert there. Except for the entry block. */
else if ((e->flags & EDGE_ABNORMAL) == 0
&& single_succ_p (e->src)
&& e->src != ENTRY_BLOCK_PTR)
{
bb = e->src;
/* It is possible to have a non-simple jump here. Consider a target
where some forms of unconditional jumps clobber a register. This
happens on the fr30 for example.
We know this block has a single successor, so we can just emit
the queued insns before the jump. */
if (JUMP_P (BB_END (bb)))
before = BB_END (bb);
else
{
/* We'd better be fallthru, or we've lost track of
what's what. */
gcc_assert (e->flags & EDGE_FALLTHRU);
after = BB_END (bb);
}
}
/* Otherwise we must split the edge. */
else
{
bb = split_edge (e);
after = BB_END (bb);
if (flag_reorder_blocks_and_partition
&& targetm.have_named_sections
&& e->src != ENTRY_BLOCK_PTR
&& BB_PARTITION (e->src) == BB_COLD_PARTITION
&& !(e->flags & EDGE_CROSSING))
{
rtx bb_note, cur_insn;
bb_note = NULL_RTX;
for (cur_insn = BB_HEAD (bb); cur_insn != NEXT_INSN (BB_END (bb));
cur_insn = NEXT_INSN (cur_insn))
if (NOTE_INSN_BASIC_BLOCK_P (cur_insn))
{
bb_note = cur_insn;
break;
}
if (JUMP_P (BB_END (bb))
&& !any_condjump_p (BB_END (bb))
&& (single_succ_edge (bb)->flags & EDGE_CROSSING))
REG_NOTES (BB_END (bb)) = gen_rtx_EXPR_LIST
(REG_CROSSING_JUMP, NULL_RTX, REG_NOTES (BB_END (bb)));
}
}
}
/* Now that we've found the spot, do the insertion. */
if (before)
{
emit_insn_before_noloc (insns, before, bb);
last = prev_nonnote_insn (before);
}
else
last = emit_insn_after_noloc (insns, after, bb);
if (returnjump_p (last))
{
/* ??? Remove all outgoing edges from BB and add one for EXIT.
This is not currently a problem because this only happens
for the (single) epilogue, which already has a fallthru edge
to EXIT. */
e = single_succ_edge (bb);
gcc_assert (e->dest == EXIT_BLOCK_PTR
&& single_succ_p (bb) && (e->flags & EDGE_FALLTHRU));
e->flags &= ~EDGE_FALLTHRU;
emit_barrier_after (last);
if (before)
delete_insn (before);
}
else
gcc_assert (!JUMP_P (last));
/* Mark the basic block for find_many_sub_basic_blocks. */
if (current_ir_type () != IR_RTL_CFGLAYOUT)
bb->aux = &bb->aux;
}
/* Update the CFG for all queued instructions. */
void
commit_edge_insertions (void)
{
basic_block bb;
sbitmap blocks;
bool changed = false;
#ifdef ENABLE_CHECKING
verify_flow_info ();
#endif
FOR_BB_BETWEEN (bb, ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR, next_bb)
{
edge e;
edge_iterator ei;
FOR_EACH_EDGE (e, ei, bb->succs)
if (e->insns.r)
{
changed = true;
commit_one_edge_insertion (e);
}
}
if (!changed)
return;
/* In the old rtl CFG API, it was OK to insert control flow on an
edge, apparently? In cfglayout mode, this will *not* work, and
the caller is responsible for making sure that control flow is
valid at all times. */
if (current_ir_type () == IR_RTL_CFGLAYOUT)
return;
blocks = sbitmap_alloc (last_basic_block);
sbitmap_zero (blocks);
FOR_EACH_BB (bb)
if (bb->aux)
{
SET_BIT (blocks, bb->index);
/* Check for forgotten bb->aux values before commit_edge_insertions
call. */
gcc_assert (bb->aux == &bb->aux);
bb->aux = NULL;
}
find_many_sub_basic_blocks (blocks);
sbitmap_free (blocks);
}
/* Print out RTL-specific basic block information (live information
at start and end). */
static void
rtl_dump_bb (basic_block bb, FILE *outf, int indent)
{
rtx insn;
rtx last;
char *s_indent;
s_indent = (char *) alloca ((size_t) indent + 1);
memset (s_indent, ' ', (size_t) indent);
s_indent[indent] = '\0';
if (df)
{
df_dump_top (bb, outf);
putc ('\n', outf);
}
for (insn = BB_HEAD (bb), last = NEXT_INSN (BB_END (bb)); insn != last;
insn = NEXT_INSN (insn))
print_rtl_single (outf, insn);
if (df)
{
df_dump_bottom (bb, outf);
putc ('\n', outf);
}
}
/* Like print_rtl, but also print out live information for the start of each
basic block. */
void
print_rtl_with_bb (FILE *outf, const_rtx rtx_first)
{
const_rtx tmp_rtx;
if (rtx_first == 0)
fprintf (outf, "(nil)\n");
else
{
enum bb_state { NOT_IN_BB, IN_ONE_BB, IN_MULTIPLE_BB };
int max_uid = get_max_uid ();
basic_block *start = XCNEWVEC (basic_block, max_uid);
basic_block *end = XCNEWVEC (basic_block, max_uid);
enum bb_state *in_bb_p = XCNEWVEC (enum bb_state, max_uid);
basic_block bb;
if (df)
df_dump_start (outf);
FOR_EACH_BB_REVERSE (bb)
{
rtx x;
start[INSN_UID (BB_HEAD (bb))] = bb;
end[INSN_UID (BB_END (bb))] = bb;
for (x = BB_HEAD (bb); x != NULL_RTX; x = NEXT_INSN (x))
{
enum bb_state state = IN_MULTIPLE_BB;
if (in_bb_p[INSN_UID (x)] == NOT_IN_BB)
state = IN_ONE_BB;
in_bb_p[INSN_UID (x)] = state;
if (x == BB_END (bb))
break;
}
}
for (tmp_rtx = rtx_first; NULL != tmp_rtx; tmp_rtx = NEXT_INSN (tmp_rtx))
{
int did_output;
if ((bb = start[INSN_UID (tmp_rtx)]) != NULL)
{
edge e;
edge_iterator ei;
fprintf (outf, ";; Start of basic block (");
FOR_EACH_EDGE (e, ei, bb->preds)
fprintf (outf, " %d", e->src->index);
fprintf (outf, ") -> %d\n", bb->index);
if (df)
{
df_dump_top (bb, outf);
putc ('\n', outf);
}
FOR_EACH_EDGE (e, ei, bb->preds)
{
fputs (";; Pred edge ", outf);
dump_edge_info (outf, e, 0);
fputc ('\n', outf);
}
}
if (in_bb_p[INSN_UID (tmp_rtx)] == NOT_IN_BB
&& !NOTE_P (tmp_rtx)
&& !BARRIER_P (tmp_rtx))
fprintf (outf, ";; Insn is not within a basic block\n");
else if (in_bb_p[INSN_UID (tmp_rtx)] == IN_MULTIPLE_BB)
fprintf (outf, ";; Insn is in multiple basic blocks\n");
did_output = print_rtl_single (outf, tmp_rtx);
if ((bb = end[INSN_UID (tmp_rtx)]) != NULL)
{
edge e;
edge_iterator ei;
fprintf (outf, ";; End of basic block %d -> (", bb->index);
FOR_EACH_EDGE (e, ei, bb->succs)
fprintf (outf, " %d", e->dest->index);
fprintf (outf, ")\n");
if (df)
{
df_dump_bottom (bb, outf);
putc ('\n', outf);
}
putc ('\n', outf);
FOR_EACH_EDGE (e, ei, bb->succs)
{
fputs (";; Succ edge ", outf);
dump_edge_info (outf, e, 1);
fputc ('\n', outf);
}
}
if (did_output)
putc ('\n', outf);
}
free (start);
free (end);
free (in_bb_p);
}
if (current_function_epilogue_delay_list != 0)
{
fprintf (outf, "\n;; Insns in epilogue delay list:\n\n");
for (tmp_rtx = current_function_epilogue_delay_list; tmp_rtx != 0;
tmp_rtx = XEXP (tmp_rtx, 1))
print_rtl_single (outf, XEXP (tmp_rtx, 0));
}
}
void
update_br_prob_note (basic_block bb)
{
rtx note;
if (!JUMP_P (BB_END (bb)))
return;
note = find_reg_note (BB_END (bb), REG_BR_PROB, NULL_RTX);
if (!note || INTVAL (XEXP (note, 0)) == BRANCH_EDGE (bb)->probability)
return;
XEXP (note, 0) = GEN_INT (BRANCH_EDGE (bb)->probability);
}
/* Get the last insn associated with block BB (that includes barriers and
tablejumps after BB). */
rtx
get_last_bb_insn (basic_block bb)
{
rtx tmp;
rtx end = BB_END (bb);
/* Include any jump table following the basic block. */
if (tablejump_p (end, NULL, &tmp))
end = tmp;
/* Include any barriers that may follow the basic block. */
tmp = next_nonnote_insn (end);
while (tmp && BARRIER_P (tmp))
{
end = tmp;
tmp = next_nonnote_insn (end);
}
return end;
}
/* Verify the CFG and RTL consistency common for both underlying RTL and
cfglayout RTL.
Currently it does following checks:
- overlapping of basic blocks
- insns with wrong BLOCK_FOR_INSN pointers
- headers of basic blocks (the NOTE_INSN_BASIC_BLOCK note)
- tails of basic blocks (ensure that boundary is necessary)
- scans body of the basic block for JUMP_INSN, CODE_LABEL
and NOTE_INSN_BASIC_BLOCK
- verify that no fall_thru edge crosses hot/cold partition boundaries
- verify that there are no pending RTL branch predictions
In future it can be extended check a lot of other stuff as well
(reachability of basic blocks, life information, etc. etc.). */
static int
rtl_verify_flow_info_1 (void)
{
rtx x;
int err = 0;
basic_block bb;
/* Check the general integrity of the basic blocks. */
FOR_EACH_BB_REVERSE (bb)
{
rtx insn;
if (!(bb->flags & BB_RTL))
{
error ("BB_RTL flag not set for block %d", bb->index);
err = 1;
}
FOR_BB_INSNS (bb, insn)
if (BLOCK_FOR_INSN (insn) != bb)
{
error ("insn %d basic block pointer is %d, should be %d",
INSN_UID (insn),
BLOCK_FOR_INSN (insn) ? BLOCK_FOR_INSN (insn)->index : 0,
bb->index);
err = 1;
}
for (insn = bb->il.rtl->header; insn; insn = NEXT_INSN (insn))
if (!BARRIER_P (insn)
&& BLOCK_FOR_INSN (insn) != NULL)
{
error ("insn %d in header of bb %d has non-NULL basic block",
INSN_UID (insn), bb->index);
err = 1;
}
for (insn = bb->il.rtl->footer; insn; insn = NEXT_INSN (insn))
if (!BARRIER_P (insn)
&& BLOCK_FOR_INSN (insn) != NULL)
{
error ("insn %d in footer of bb %d has non-NULL basic block",
INSN_UID (insn), bb->index);
err = 1;
}
}
/* Now check the basic blocks (boundaries etc.) */
FOR_EACH_BB_REVERSE (bb)
{
int n_fallthru = 0, n_eh = 0, n_call = 0, n_abnormal = 0, n_branch = 0;
edge e, fallthru = NULL;
rtx note;
edge_iterator ei;
if (JUMP_P (BB_END (bb))
&& (note = find_reg_note (BB_END (bb), REG_BR_PROB, NULL_RTX))
&& EDGE_COUNT (bb->succs) >= 2
&& any_condjump_p (BB_END (bb)))
{
if (INTVAL (XEXP (note, 0)) != BRANCH_EDGE (bb)->probability
&& profile_status != PROFILE_ABSENT)
{
error ("verify_flow_info: REG_BR_PROB does not match cfg %wi %i",
INTVAL (XEXP (note, 0)), BRANCH_EDGE (bb)->probability);
err = 1;
}
}
FOR_EACH_EDGE (e, ei, bb->succs)
{
if (e->flags & EDGE_FALLTHRU)
{
n_fallthru++, fallthru = e;
if ((e->flags & EDGE_CROSSING)
|| (BB_PARTITION (e->src) != BB_PARTITION (e->dest)
&& e->src != ENTRY_BLOCK_PTR
&& e->dest != EXIT_BLOCK_PTR))
{
error ("fallthru edge crosses section boundary (bb %i)",
e->src->index);
err = 1;
}
}
if ((e->flags & ~(EDGE_DFS_BACK
| EDGE_CAN_FALLTHRU
| EDGE_IRREDUCIBLE_LOOP
| EDGE_LOOP_EXIT
| EDGE_CROSSING)) == 0)
n_branch++;
if (e->flags & EDGE_ABNORMAL_CALL)
n_call++;
if (e->flags & EDGE_EH)
n_eh++;
else if (e->flags & EDGE_ABNORMAL)
n_abnormal++;
}
if (n_eh && GET_CODE (PATTERN (BB_END (bb))) != RESX
&& !find_reg_note (BB_END (bb), REG_EH_REGION, NULL_RTX))
{
error ("missing REG_EH_REGION note in the end of bb %i", bb->index);
err = 1;
}
if (n_branch
&& (!JUMP_P (BB_END (bb))
|| (n_branch > 1 && (any_uncondjump_p (BB_END (bb))
|| any_condjump_p (BB_END (bb))))))
{
error ("too many outgoing branch edges from bb %i", bb->index);
err = 1;
}
if (n_fallthru && any_uncondjump_p (BB_END (bb)))
{
error ("fallthru edge after unconditional jump %i", bb->index);
err = 1;
}
if (n_branch != 1 && any_uncondjump_p (BB_END (bb)))
{
error ("wrong amount of branch edges after unconditional jump %i", bb->index);
err = 1;
}
if (n_branch != 1 && any_condjump_p (BB_END (bb))
&& JUMP_LABEL (BB_END (bb)) != BB_HEAD (fallthru->dest))
{
error ("wrong amount of branch edges after conditional jump %i",
bb->index);
err = 1;
}
if (n_call && !CALL_P (BB_END (bb)))
{
error ("call edges for non-call insn in bb %i", bb->index);
err = 1;
}
if (n_abnormal
&& (!CALL_P (BB_END (bb)) && n_call != n_abnormal)
&& (!JUMP_P (BB_END (bb))
|| any_condjump_p (BB_END (bb))
|| any_uncondjump_p (BB_END (bb))))
{
error ("abnormal edges for no purpose in bb %i", bb->index);
err = 1;
}
for (x = BB_HEAD (bb); x != NEXT_INSN (BB_END (bb)); x = NEXT_INSN (x))
/* We may have a barrier inside a basic block before dead code
elimination. There is no BLOCK_FOR_INSN field in a barrier. */
if (!BARRIER_P (x) && BLOCK_FOR_INSN (x) != bb)
{
debug_rtx (x);
if (! BLOCK_FOR_INSN (x))
error
("insn %d inside basic block %d but block_for_insn is NULL",
INSN_UID (x), bb->index);
else
error
("insn %d inside basic block %d but block_for_insn is %i",
INSN_UID (x), bb->index, BLOCK_FOR_INSN (x)->index);
err = 1;
}
/* OK pointers are correct. Now check the header of basic
block. It ought to contain optional CODE_LABEL followed
by NOTE_BASIC_BLOCK. */
x = BB_HEAD (bb);
if (LABEL_P (x))
{
if (BB_END (bb) == x)
{
error ("NOTE_INSN_BASIC_BLOCK is missing for block %d",
bb->index);
err = 1;
}
x = NEXT_INSN (x);
}
if (!NOTE_INSN_BASIC_BLOCK_P (x) || NOTE_BASIC_BLOCK (x) != bb)
{
error ("NOTE_INSN_BASIC_BLOCK is missing for block %d",
bb->index);
err = 1;
}
if (BB_END (bb) == x)
/* Do checks for empty blocks here. */
;
else
for (x = NEXT_INSN (x); x; x = NEXT_INSN (x))
{
if (NOTE_INSN_BASIC_BLOCK_P (x))
{
error ("NOTE_INSN_BASIC_BLOCK %d in middle of basic block %d",
INSN_UID (x), bb->index);
err = 1;
}
if (x == BB_END (bb))
break;
if (control_flow_insn_p (x))
{
error ("in basic block %d:", bb->index);
fatal_insn ("flow control insn inside a basic block", x);
}
}
}
/* Clean up. */
return err;
}
/* Verify the CFG and RTL consistency common for both underlying RTL and
cfglayout RTL.
Currently it does following checks:
- all checks of rtl_verify_flow_info_1
- test head/end pointers
- check that all insns are in the basic blocks
(except the switch handling code, barriers and notes)
- check that all returns are followed by barriers
- check that all fallthru edge points to the adjacent blocks. */
static int
rtl_verify_flow_info (void)
{
basic_block bb;
int err = rtl_verify_flow_info_1 ();
rtx x;
rtx last_head = get_last_insn ();
basic_block *bb_info;
int num_bb_notes;
const rtx rtx_first = get_insns ();
basic_block last_bb_seen = ENTRY_BLOCK_PTR, curr_bb = NULL;
const int max_uid = get_max_uid ();
bb_info = XCNEWVEC (basic_block, max_uid);
FOR_EACH_BB_REVERSE (bb)
{
edge e;
edge_iterator ei;
rtx head = BB_HEAD (bb);
rtx end = BB_END (bb);
for (x = last_head; x != NULL_RTX; x = PREV_INSN (x))
{
/* Verify the end of the basic block is in the INSN chain. */
if (x == end)
break;
/* And that the code outside of basic blocks has NULL bb field. */
if (!BARRIER_P (x)
&& BLOCK_FOR_INSN (x) != NULL)
{
error ("insn %d outside of basic blocks has non-NULL bb field",
INSN_UID (x));
err = 1;
}
}
if (!x)
{
error ("end insn %d for block %d not found in the insn stream",
INSN_UID (end), bb->index);
err = 1;
}
/* Work backwards from the end to the head of the basic block
to verify the head is in the RTL chain. */
for (; x != NULL_RTX; x = PREV_INSN (x))
{
/* While walking over the insn chain, verify insns appear
in only one basic block. */
if (bb_info[INSN_UID (x)] != NULL)
{
error ("insn %d is in multiple basic blocks (%d and %d)",
INSN_UID (x), bb->index, bb_info[INSN_UID (x)]->index);
err = 1;
}
bb_info[INSN_UID (x)] = bb;
if (x == head)
break;
}
if (!x)
{
error ("head insn %d for block %d not found in the insn stream",
INSN_UID (head), bb->index);
err = 1;
}
last_head = PREV_INSN (x);
FOR_EACH_EDGE (e, ei, bb->succs)
if (e->flags & EDGE_FALLTHRU)
break;
if (!e)
{
rtx insn;
/* Ensure existence of barrier in BB with no fallthru edges. */
for (insn = BB_END (bb); !insn || !BARRIER_P (insn);
insn = NEXT_INSN (insn))
if (!insn
|| NOTE_INSN_BASIC_BLOCK_P (insn))
{
error ("missing barrier after block %i", bb->index);
err = 1;
break;
}
}
else if (e->src != ENTRY_BLOCK_PTR
&& e->dest != EXIT_BLOCK_PTR)
{
rtx insn;
if (e->src->next_bb != e->dest)
{
error
("verify_flow_info: Incorrect blocks for fallthru %i->%i",
e->src->index, e->dest->index);
err = 1;
}
else
for (insn = NEXT_INSN (BB_END (e->src)); insn != BB_HEAD (e->dest);
insn = NEXT_INSN (insn))
if (BARRIER_P (insn) || INSN_P (insn))
{
error ("verify_flow_info: Incorrect fallthru %i->%i",
e->src->index, e->dest->index);
fatal_insn ("wrong insn in the fallthru edge", insn);
err = 1;
}
}
}
for (x = last_head; x != NULL_RTX; x = PREV_INSN (x))
{
/* Check that the code before the first basic block has NULL
bb field. */
if (!BARRIER_P (x)
&& BLOCK_FOR_INSN (x) != NULL)
{
error ("insn %d outside of basic blocks has non-NULL bb field",
INSN_UID (x));
err = 1;
}
}
free (bb_info);
num_bb_notes = 0;
last_bb_seen = ENTRY_BLOCK_PTR;
for (x = rtx_first; x; x = NEXT_INSN (x))
{
if (NOTE_INSN_BASIC_BLOCK_P (x))
{
bb = NOTE_BASIC_BLOCK (x);
num_bb_notes++;
if (bb != last_bb_seen->next_bb)
internal_error ("basic blocks not laid down consecutively");
curr_bb = last_bb_seen = bb;
}
if (!curr_bb)
{
switch (GET_CODE (x))
{
case BARRIER:
case NOTE:
break;
case CODE_LABEL:
/* An addr_vec is placed outside any basic block. */
if (NEXT_INSN (x)
&& JUMP_P (NEXT_INSN (x))
&& (GET_CODE (PATTERN (NEXT_INSN (x))) == ADDR_DIFF_VEC
|| GET_CODE (PATTERN (NEXT_INSN (x))) == ADDR_VEC))
x = NEXT_INSN (x);
/* But in any case, non-deletable labels can appear anywhere. */
break;
default:
fatal_insn ("insn outside basic block", x);
}
}
if (JUMP_P (x)
&& returnjump_p (x) && ! condjump_p (x)
&& ! (next_nonnote_insn (x) && BARRIER_P (next_nonnote_insn (x))))
fatal_insn ("return not followed by barrier", x);
if (curr_bb && x == BB_END (curr_bb))
curr_bb = NULL;
}
if (num_bb_notes != n_basic_blocks - NUM_FIXED_BLOCKS)
internal_error
("number of bb notes in insn chain (%d) != n_basic_blocks (%d)",
num_bb_notes, n_basic_blocks);
return err;
}
/* Assume that the preceding pass has possibly eliminated jump instructions
or converted the unconditional jumps. Eliminate the edges from CFG.
Return true if any edges are eliminated. */
bool
purge_dead_edges (basic_block bb)
{
edge e;
rtx insn = BB_END (bb), note;
bool purged = false;
bool found;
edge_iterator ei;
/* If this instruction cannot trap, remove REG_EH_REGION notes. */
if (NONJUMP_INSN_P (insn)
&& (note = find_reg_note (insn, REG_EH_REGION, NULL)))
{
rtx eqnote;
if (! may_trap_p (PATTERN (insn))
|| ((eqnote = find_reg_equal_equiv_note (insn))
&& ! may_trap_p (XEXP (eqnote, 0))))
remove_note (insn, note);
}
/* Cleanup abnormal edges caused by exceptions or non-local gotos. */
for (ei = ei_start (bb->succs); (e = ei_safe_edge (ei)); )
{
/* There are three types of edges we need to handle correctly here: EH
edges, abnormal call EH edges, and abnormal call non-EH edges. The
latter can appear when nonlocal gotos are used. */
if (e->flags & EDGE_EH)
{
if (can_throw_internal (BB_END (bb))
/* If this is a call edge, verify that this is a call insn. */
&& (! (e->flags & EDGE_ABNORMAL_CALL)
|| CALL_P (BB_END (bb))))
{
ei_next (&ei);
continue;
}
}
else if (e->flags & EDGE_ABNORMAL_CALL)
{
if (CALL_P (BB_END (bb))
&& (! (note = find_reg_note (insn, REG_EH_REGION, NULL))
|| INTVAL (XEXP (note, 0)) >= 0))
{
ei_next (&ei);
continue;
}
}
else
{
ei_next (&ei);
continue;
}
remove_edge (e);
df_set_bb_dirty (bb);
purged = true;
}
if (JUMP_P (insn))
{
rtx note;
edge b,f;
edge_iterator ei;
/* We do care only about conditional jumps and simplejumps. */
if (!any_condjump_p (insn)
&& !returnjump_p (insn)
&& !simplejump_p (insn))
return purged;
/* Branch probability/prediction notes are defined only for
condjumps. We've possibly turned condjump into simplejump. */
if (simplejump_p (insn))
{
note = find_reg_note (insn, REG_BR_PROB, NULL);
if (note)
remove_note (insn, note);
while ((note = find_reg_note (insn, REG_BR_PRED, NULL)))
remove_note (insn, note);
}
for (ei = ei_start (bb->succs); (e = ei_safe_edge (ei)); )
{
/* Avoid abnormal flags to leak from computed jumps turned
into simplejumps. */
e->flags &= ~EDGE_ABNORMAL;
/* See if this edge is one we should keep. */
if ((e->flags & EDGE_FALLTHRU) && any_condjump_p (insn))
/* A conditional jump can fall through into the next
block, so we should keep the edge. */
{
ei_next (&ei);
continue;
}
else if (e->dest != EXIT_BLOCK_PTR
&& BB_HEAD (e->dest) == JUMP_LABEL (insn))
/* If the destination block is the target of the jump,
keep the edge. */
{
ei_next (&ei);
continue;
}
else if (e->dest == EXIT_BLOCK_PTR && returnjump_p (insn))
/* If the destination block is the exit block, and this
instruction is a return, then keep the edge. */
{
ei_next (&ei);
continue;
}
else if ((e->flags & EDGE_EH) && can_throw_internal (insn))
/* Keep the edges that correspond to exceptions thrown by
this instruction and rematerialize the EDGE_ABNORMAL
flag we just cleared above. */
{
e->flags |= EDGE_ABNORMAL;
ei_next (&ei);
continue;
}
/* We do not need this edge. */
df_set_bb_dirty (bb);
purged = true;
remove_edge (e);
}
if (EDGE_COUNT (bb->succs) == 0 || !purged)
return purged;
if (dump_file)
fprintf (dump_file, "Purged edges from bb %i\n", bb->index);
if (!optimize)
return purged;
/* Redistribute probabilities. */
if (single_succ_p (bb))
{
single_succ_edge (bb)->probability = REG_BR_PROB_BASE;
single_succ_edge (bb)->count = bb->count;
}
else
{
note = find_reg_note (insn, REG_BR_PROB, NULL);
if (!note)
return purged;
b = BRANCH_EDGE (bb);
f = FALLTHRU_EDGE (bb);
b->probability = INTVAL (XEXP (note, 0));
f->probability = REG_BR_PROB_BASE - b->probability;
b->count = bb->count * b->probability / REG_BR_PROB_BASE;
f->count = bb->count * f->probability / REG_BR_PROB_BASE;
}
return purged;
}
else if (CALL_P (insn) && SIBLING_CALL_P (insn))
{
/* First, there should not be any EH or ABCALL edges resulting
from non-local gotos and the like. If there were, we shouldn't
have created the sibcall in the first place. Second, there
should of course never have been a fallthru edge. */
gcc_assert (single_succ_p (bb));
gcc_assert (single_succ_edge (bb)->flags
== (EDGE_SIBCALL | EDGE_ABNORMAL));
return 0;
}
/* If we don't see a jump insn, we don't know exactly why the block would
have been broken at this point. Look for a simple, non-fallthru edge,
as these are only created by conditional branches. If we find such an
edge we know that there used to be a jump here and can then safely
remove all non-fallthru edges. */
found = false;
FOR_EACH_EDGE (e, ei, bb->succs)
if (! (e->flags & (EDGE_COMPLEX | EDGE_FALLTHRU)))
{
found = true;
break;
}
if (!found)
return purged;
/* Remove all but the fake and fallthru edges. The fake edge may be
the only successor for this block in the case of noreturn
calls. */
for (ei = ei_start (bb->succs); (e = ei_safe_edge (ei)); )
{
if (!(e->flags & (EDGE_FALLTHRU | EDGE_FAKE)))
{
df_set_bb_dirty (bb);
remove_edge (e);
purged = true;
}
else
ei_next (&ei);
}
gcc_assert (single_succ_p (bb));
single_succ_edge (bb)->probability = REG_BR_PROB_BASE;
single_succ_edge (bb)->count = bb->count;
if (dump_file)
fprintf (dump_file, "Purged non-fallthru edges from bb %i\n",
bb->index);
return purged;
}
/* Search all basic blocks for potentially dead edges and purge them. Return
true if some edge has been eliminated. */
bool
purge_all_dead_edges (void)
{
int purged = false;
basic_block bb;
FOR_EACH_BB (bb)
{
bool purged_here = purge_dead_edges (bb);
purged |= purged_here;
}
return purged;
}
/* Same as split_block but update cfg_layout structures. */
static basic_block
cfg_layout_split_block (basic_block bb, void *insnp)
{
rtx insn = (rtx) insnp;
basic_block new_bb = rtl_split_block (bb, insn);
new_bb->il.rtl->footer = bb->il.rtl->footer;
bb->il.rtl->footer = NULL;
return new_bb;
}
/* Redirect Edge to DEST. */
static edge
cfg_layout_redirect_edge_and_branch (edge e, basic_block dest)
{
basic_block src = e->src;
edge ret;
if (e->flags & (EDGE_ABNORMAL_CALL | EDGE_EH))
return NULL;
if (e->dest == dest)
return e;
if (e->src != ENTRY_BLOCK_PTR
&& (ret = try_redirect_by_replacing_jump (e, dest, true)))
{
df_set_bb_dirty (src);
return ret;
}
if (e->src == ENTRY_BLOCK_PTR
&& (e->flags & EDGE_FALLTHRU) && !(e->flags & EDGE_COMPLEX))
{
if (dump_file)
fprintf (dump_file, "Redirecting entry edge from bb %i to %i\n",
e->src->index, dest->index);
df_set_bb_dirty (e->src);
redirect_edge_succ (e, dest);
return e;
}
/* Redirect_edge_and_branch may decide to turn branch into fallthru edge
in the case the basic block appears to be in sequence. Avoid this
transformation. */
if (e->flags & EDGE_FALLTHRU)
{
/* Redirect any branch edges unified with the fallthru one. */
if (JUMP_P (BB_END (src))
&& label_is_jump_target_p (BB_HEAD (e->dest),
BB_END (src)))
{
edge redirected;
if (dump_file)
fprintf (dump_file, "Fallthru edge unified with branch "
"%i->%i redirected to %i\n",
e->src->index, e->dest->index, dest->index);
e->flags &= ~EDGE_FALLTHRU;
redirected = redirect_branch_edge (e, dest);
gcc_assert (redirected);
e->flags |= EDGE_FALLTHRU;
df_set_bb_dirty (e->src);
return e;
}
/* In case we are redirecting fallthru edge to the branch edge
of conditional jump, remove it. */
if (EDGE_COUNT (src->succs) == 2)
{
/* Find the edge that is different from E. */
edge s = EDGE_SUCC (src, EDGE_SUCC (src, 0) == e);
if (s->dest == dest
&& any_condjump_p (BB_END (src))
&& onlyjump_p (BB_END (src)))
delete_insn (BB_END (src));
}
ret = redirect_edge_succ_nodup (e, dest);
if (dump_file)
fprintf (dump_file, "Fallthru edge %i->%i redirected to %i\n",
e->src->index, e->dest->index, dest->index);
}
else
ret = redirect_branch_edge (e, dest);
/* We don't want simplejumps in the insn stream during cfglayout. */
gcc_assert (!simplejump_p (BB_END (src)));
df_set_bb_dirty (src);
return ret;
}
/* Simple wrapper as we always can redirect fallthru edges. */
static basic_block
cfg_layout_redirect_edge_and_branch_force (edge e, basic_block dest)
{
edge redirected = cfg_layout_redirect_edge_and_branch (e, dest);
gcc_assert (redirected);
return NULL;
}
/* Same as delete_basic_block but update cfg_layout structures. */
static void
cfg_layout_delete_block (basic_block bb)
{
rtx insn, next, prev = PREV_INSN (BB_HEAD (bb)), *to, remaints;
if (bb->il.rtl->header)
{
next = BB_HEAD (bb);
if (prev)
NEXT_INSN (prev) = bb->il.rtl->header;
else
set_first_insn (bb->il.rtl->header);
PREV_INSN (bb->il.rtl->header) = prev;
insn = bb->il.rtl->header;
while (NEXT_INSN (insn))
insn = NEXT_INSN (insn);
NEXT_INSN (insn) = next;
PREV_INSN (next) = insn;
}
next = NEXT_INSN (BB_END (bb));
if (bb->il.rtl->footer)
{
insn = bb->il.rtl->footer;
while (insn)
{
if (BARRIER_P (insn))
{
if (PREV_INSN (insn))
NEXT_INSN (PREV_INSN (insn)) = NEXT_INSN (insn);
else
bb->il.rtl->footer = NEXT_INSN (insn);
if (NEXT_INSN (insn))
PREV_INSN (NEXT_INSN (insn)) = PREV_INSN (insn);
}
if (LABEL_P (insn))
break;
insn = NEXT_INSN (insn);
}
if (bb->il.rtl->footer)
{
insn = BB_END (bb);
NEXT_INSN (insn) = bb->il.rtl->footer;
PREV_INSN (bb->il.rtl->footer) = insn;
while (NEXT_INSN (insn))
insn = NEXT_INSN (insn);
NEXT_INSN (insn) = next;
if (next)
PREV_INSN (next) = insn;
else
set_last_insn (insn);
}
}
if (bb->next_bb != EXIT_BLOCK_PTR)
to = &bb->next_bb->il.rtl->header;
else
to = &cfg_layout_function_footer;
rtl_delete_block (bb);
if (prev)
prev = NEXT_INSN (prev);
else
prev = get_insns ();
if (next)
next = PREV_INSN (next);
else
next = get_last_insn ();
if (next && NEXT_INSN (next) != prev)
{
remaints = unlink_insn_chain (prev, next);
insn = remaints;
while (NEXT_INSN (insn))
insn = NEXT_INSN (insn);
NEXT_INSN (insn) = *to;
if (*to)
PREV_INSN (*to) = insn;
*to = remaints;
}
}
/* Return true when blocks A and B can be safely merged. */
static bool
cfg_layout_can_merge_blocks_p (basic_block a, basic_block b)
{
/* If we are partitioning hot/cold basic blocks, we don't want to
mess up unconditional or indirect jumps that cross between hot
and cold sections.
Basic block partitioning may result in some jumps that appear to
be optimizable (or blocks that appear to be mergeable), but which really
must be left untouched (they are required to make it safely across
partition boundaries). See the comments at the top of
bb-reorder.c:partition_hot_cold_basic_blocks for complete details. */
if (BB_PARTITION (a) != BB_PARTITION (b))
return false;
/* There must be exactly one edge in between the blocks. */
return (single_succ_p (a)
&& single_succ (a) == b
&& single_pred_p (b) == 1
&& a != b
/* Must be simple edge. */
&& !(single_succ_edge (a)->flags & EDGE_COMPLEX)
&& a != ENTRY_BLOCK_PTR && b != EXIT_BLOCK_PTR
/* If the jump insn has side effects, we can't kill the edge.
When not optimizing, try_redirect_by_replacing_jump will
not allow us to redirect an edge by replacing a table jump. */
&& (!JUMP_P (BB_END (a))
|| ((!optimize || reload_completed)
? simplejump_p (BB_END (a)) : onlyjump_p (BB_END (a)))));
}
/* Merge block A and B. The blocks must be mergeable. */
static void
cfg_layout_merge_blocks (basic_block a, basic_block b)
{
#ifdef ENABLE_CHECKING
gcc_assert (cfg_layout_can_merge_blocks_p (a, b));
#endif
if (dump_file)
fprintf (dump_file, "merging block %d into block %d\n", b->index, a->index);
/* If there was a CODE_LABEL beginning B, delete it. */
if (LABEL_P (BB_HEAD (b)))
{
/* This might have been an EH label that no longer has incoming
EH edges. Update data structures to match. */
maybe_remove_eh_handler (BB_HEAD (b));
delete_insn (BB_HEAD (b));
}
/* We should have fallthru edge in a, or we can do dummy redirection to get
it cleaned up. */
if (JUMP_P (BB_END (a)))
try_redirect_by_replacing_jump (EDGE_SUCC (a, 0), b, true);
gcc_assert (!JUMP_P (BB_END (a)));
/* Possible line number notes should appear in between. */
if (b->il.rtl->header)
{
rtx first = BB_END (a), last;
last = emit_insn_after_noloc (b->il.rtl->header, BB_END (a), a);
delete_insn_chain (NEXT_INSN (first), last, false);
b->il.rtl->header = NULL;
}
/* In the case basic blocks are not adjacent, move them around. */
if (NEXT_INSN (BB_END (a)) != BB_HEAD (b))
{
rtx first = unlink_insn_chain (BB_HEAD (b), BB_END (b));
emit_insn_after_noloc (first, BB_END (a), a);
/* Skip possible DELETED_LABEL insn. */
if (!NOTE_INSN_BASIC_BLOCK_P (first))
first = NEXT_INSN (first);
gcc_assert (NOTE_INSN_BASIC_BLOCK_P (first));
BB_HEAD (b) = NULL;
/* emit_insn_after_noloc doesn't call df_insn_change_bb.
We need to explicitly call. */
update_bb_for_insn_chain (NEXT_INSN (first),
BB_END (b),
a);
delete_insn (first);
}
/* Otherwise just re-associate the instructions. */
else
{
rtx insn;
update_bb_for_insn_chain (BB_HEAD (b), BB_END (b), a);
insn = BB_HEAD (b);
/* Skip possible DELETED_LABEL insn. */
if (!NOTE_INSN_BASIC_BLOCK_P (insn))
insn = NEXT_INSN (insn);
gcc_assert (NOTE_INSN_BASIC_BLOCK_P (insn));
BB_HEAD (b) = NULL;
BB_END (a) = BB_END (b);
delete_insn (insn);
}
df_bb_delete (b->index);
/* Possible tablejumps and barriers should appear after the block. */
if (b->il.rtl->footer)
{
if (!a->il.rtl->footer)
a->il.rtl->footer = b->il.rtl->footer;
else
{
rtx last = a->il.rtl->footer;
while (NEXT_INSN (last))
last = NEXT_INSN (last);
NEXT_INSN (last) = b->il.rtl->footer;
PREV_INSN (b->il.rtl->footer) = last;
}
b->il.rtl->footer = NULL;
}
if (dump_file)
fprintf (dump_file, "Merged blocks %d and %d.\n",
a->index, b->index);
}
/* Split edge E. */
static basic_block
cfg_layout_split_edge (edge e)
{
basic_block new_bb =
create_basic_block (e->src != ENTRY_BLOCK_PTR
? NEXT_INSN (BB_END (e->src)) : get_insns (),
NULL_RTX, e->src);
if (e->dest == EXIT_BLOCK_PTR)
BB_COPY_PARTITION (new_bb, e->src);
else
BB_COPY_PARTITION (new_bb, e->dest);
make_edge (new_bb, e->dest, EDGE_FALLTHRU);
redirect_edge_and_branch_force (e, new_bb);
return new_bb;
}
/* Do postprocessing after making a forwarder block joined by edge FALLTHRU. */
static void
rtl_make_forwarder_block (edge fallthru ATTRIBUTE_UNUSED)
{
}
/* Return 1 if BB ends with a call, possibly followed by some
instructions that must stay with the call, 0 otherwise. */
static bool
rtl_block_ends_with_call_p (basic_block bb)
{
rtx insn = BB_END (bb);
while (!CALL_P (insn)
&& insn != BB_HEAD (bb)
&& (keep_with_call_p (insn)
|| NOTE_P (insn)))
insn = PREV_INSN (insn);
return (CALL_P (insn));
}
/* Return 1 if BB ends with a conditional branch, 0 otherwise. */
static bool
rtl_block_ends_with_condjump_p (const_basic_block bb)
{
return any_condjump_p (BB_END (bb));
}
/* Return true if we need to add fake edge to exit.
Helper function for rtl_flow_call_edges_add. */
static bool
need_fake_edge_p (const_rtx insn)
{
if (!INSN_P (insn))
return false;
if ((CALL_P (insn)
&& !SIBLING_CALL_P (insn)
&& !find_reg_note (insn, REG_NORETURN, NULL)
&& !CONST_OR_PURE_CALL_P (insn)))
return true;
return ((GET_CODE (PATTERN (insn)) == ASM_OPERANDS
&& MEM_VOLATILE_P (PATTERN (insn)))
|| (GET_CODE (PATTERN (insn)) == PARALLEL
&& asm_noperands (insn) != -1
&& MEM_VOLATILE_P (XVECEXP (PATTERN (insn), 0, 0)))
|| GET_CODE (PATTERN (insn)) == ASM_INPUT);
}
/* Add fake edges to the function exit for any non constant and non noreturn
calls, volatile inline assembly in the bitmap of blocks specified by
BLOCKS or to the whole CFG if BLOCKS is zero. Return the number of blocks
that were split.
The goal is to expose cases in which entering a basic block does not imply
that all subsequent instructions must be executed. */
static int
rtl_flow_call_edges_add (sbitmap blocks)
{
int i;
int blocks_split = 0;
int last_bb = last_basic_block;
bool check_last_block = false;
if (n_basic_blocks == NUM_FIXED_BLOCKS)
return 0;
if (! blocks)
check_last_block = true;
else
check_last_block = TEST_BIT (blocks, EXIT_BLOCK_PTR->prev_bb->index);
/* In the last basic block, before epilogue generation, there will be
a fallthru edge to EXIT. Special care is required if the last insn
of the last basic block is a call because make_edge folds duplicate
edges, which would result in the fallthru edge also being marked
fake, which would result in the fallthru edge being removed by
remove_fake_edges, which would result in an invalid CFG.
Moreover, we can't elide the outgoing fake edge, since the block
profiler needs to take this into account in order to solve the minimal
spanning tree in the case that the call doesn't return.
Handle this by adding a dummy instruction in a new last basic block. */
if (check_last_block)
{
basic_block bb = EXIT_BLOCK_PTR->prev_bb;
rtx insn = BB_END (bb);
/* Back up past insns that must be kept in the same block as a call. */
while (insn != BB_HEAD (bb)
&& keep_with_call_p (insn))
insn = PREV_INSN (insn);
if (need_fake_edge_p (insn))
{
edge e;
e = find_edge (bb, EXIT_BLOCK_PTR);
if (e)
{
insert_insn_on_edge (gen_rtx_USE (VOIDmode, const0_rtx), e);
commit_edge_insertions ();
}
}
}
/* Now add fake edges to the function exit for any non constant
calls since there is no way that we can determine if they will
return or not... */
for (i = NUM_FIXED_BLOCKS; i < last_bb; i++)
{
basic_block bb = BASIC_BLOCK (i);
rtx insn;
rtx prev_insn;
if (!bb)
continue;
if (blocks && !TEST_BIT (blocks, i))
continue;
for (insn = BB_END (bb); ; insn = prev_insn)
{
prev_insn = PREV_INSN (insn);
if (need_fake_edge_p (insn))
{
edge e;
rtx split_at_insn = insn;
/* Don't split the block between a call and an insn that should
remain in the same block as the call. */
if (CALL_P (insn))
while (split_at_insn != BB_END (bb)
&& keep_with_call_p (NEXT_INSN (split_at_insn)))
split_at_insn = NEXT_INSN (split_at_insn);
/* The handling above of the final block before the epilogue
should be enough to verify that there is no edge to the exit
block in CFG already. Calling make_edge in such case would
cause us to mark that edge as fake and remove it later. */
#ifdef ENABLE_CHECKING
if (split_at_insn == BB_END (bb))
{
e = find_edge (bb, EXIT_BLOCK_PTR);
gcc_assert (e == NULL);
}
#endif
/* Note that the following may create a new basic block
and renumber the existing basic blocks. */
if (split_at_insn != BB_END (bb))
{
e = split_block (bb, split_at_insn);
if (e)
blocks_split++;
}
make_edge (bb, EXIT_BLOCK_PTR, EDGE_FAKE);
}
if (insn == BB_HEAD (bb))
break;
}
}
if (blocks_split)
verify_flow_info ();
return blocks_split;
}
/* Add COMP_RTX as a condition at end of COND_BB. FIRST_HEAD is
the conditional branch target, SECOND_HEAD should be the fall-thru
there is no need to handle this here the loop versioning code handles
this. the reason for SECON_HEAD is that it is needed for condition
in trees, and this should be of the same type since it is a hook. */
static void
rtl_lv_add_condition_to_bb (basic_block first_head ,
basic_block second_head ATTRIBUTE_UNUSED,
basic_block cond_bb, void *comp_rtx)
{
rtx label, seq, jump;
rtx op0 = XEXP ((rtx)comp_rtx, 0);
rtx op1 = XEXP ((rtx)comp_rtx, 1);
enum rtx_code comp = GET_CODE ((rtx)comp_rtx);
enum machine_mode mode;
label = block_label (first_head);
mode = GET_MODE (op0);
if (mode == VOIDmode)
mode = GET_MODE (op1);
start_sequence ();
op0 = force_operand (op0, NULL_RTX);
op1 = force_operand (op1, NULL_RTX);
do_compare_rtx_and_jump (op0, op1, comp, 0,
mode, NULL_RTX, NULL_RTX, label);
jump = get_last_insn ();
JUMP_LABEL (jump) = label;
LABEL_NUSES (label)++;
seq = get_insns ();
end_sequence ();
/* Add the new cond , in the new head. */
emit_insn_after(seq, BB_END(cond_bb));
}
/* Given a block B with unconditional branch at its end, get the
store the return the branch edge and the fall-thru edge in
BRANCH_EDGE and FALLTHRU_EDGE respectively. */
static void
rtl_extract_cond_bb_edges (basic_block b, edge *branch_edge,
edge *fallthru_edge)
{
edge e = EDGE_SUCC (b, 0);
if (e->flags & EDGE_FALLTHRU)
{
*fallthru_edge = e;
*branch_edge = EDGE_SUCC (b, 1);
}
else
{
*branch_edge = e;
*fallthru_edge = EDGE_SUCC (b, 1);
}
}
void
init_rtl_bb_info (basic_block bb)
{
gcc_assert (!bb->il.rtl);
bb->il.rtl = GGC_CNEW (struct rtl_bb_info);
}
/* Add EXPR to the end of basic block BB. */
rtx
insert_insn_end_bb_new (rtx pat, basic_block bb)
{
rtx insn = BB_END (bb);
rtx new_insn;
rtx pat_end = pat;
while (NEXT_INSN (pat_end) != NULL_RTX)
pat_end = NEXT_INSN (pat_end);
/* If the last insn is a jump, insert EXPR in front [taking care to
handle cc0, etc. properly]. Similarly we need to care trapping
instructions in presence of non-call exceptions. */
if (JUMP_P (insn)
|| (NONJUMP_INSN_P (insn)
&& (!single_succ_p (bb)
|| single_succ_edge (bb)->flags & EDGE_ABNORMAL)))
{
#ifdef HAVE_cc0
rtx note;
#endif
/* If this is a jump table, then we can't insert stuff here. Since
we know the previous real insn must be the tablejump, we insert
the new instruction just before the tablejump. */
if (GET_CODE (PATTERN (insn)) == ADDR_VEC
|| GET_CODE (PATTERN (insn)) == ADDR_DIFF_VEC)
insn = prev_real_insn (insn);
#ifdef HAVE_cc0
/* FIXME: 'twould be nice to call prev_cc0_setter here but it aborts
if cc0 isn't set. */
note = find_reg_note (insn, REG_CC_SETTER, NULL_RTX);
if (note)
insn = XEXP (note, 0);
else
{
rtx maybe_cc0_setter = prev_nonnote_insn (insn);
if (maybe_cc0_setter
&& INSN_P (maybe_cc0_setter)
&& sets_cc0_p (PATTERN (maybe_cc0_setter)))
insn = maybe_cc0_setter;
}
#endif
/* FIXME: What if something in cc0/jump uses value set in new
insn? */
new_insn = emit_insn_before_noloc (pat, insn, bb);
}
/* Likewise if the last insn is a call, as will happen in the presence
of exception handling. */
else if (CALL_P (insn)
&& (!single_succ_p (bb)
|| single_succ_edge (bb)->flags & EDGE_ABNORMAL))
{
/* Keeping in mind SMALL_REGISTER_CLASSES and parameters in registers,
we search backward and place the instructions before the first
parameter is loaded. Do this for everyone for consistency and a
presumption that we'll get better code elsewhere as well. */
/* Since different machines initialize their parameter registers
in different orders, assume nothing. Collect the set of all
parameter registers. */
insn = find_first_parameter_load (insn, BB_HEAD (bb));
/* If we found all the parameter loads, then we want to insert
before the first parameter load.
If we did not find all the parameter loads, then we might have
stopped on the head of the block, which could be a CODE_LABEL.
If we inserted before the CODE_LABEL, then we would be putting
the insn in the wrong basic block. In that case, put the insn
after the CODE_LABEL. Also, respect NOTE_INSN_BASIC_BLOCK. */
while (LABEL_P (insn)
|| NOTE_INSN_BASIC_BLOCK_P (insn))
insn = NEXT_INSN (insn);
new_insn = emit_insn_before_noloc (pat, insn, bb);
}
else
new_insn = emit_insn_after_noloc (pat, insn, bb);
return new_insn;
}
/* Returns true if it is possible to remove edge E by redirecting
it to the destination of the other edge from E->src. */
static bool
rtl_can_remove_branch_p (const_edge e)
{
const_basic_block src = e->src;
const_basic_block target = EDGE_SUCC (src, EDGE_SUCC (src, 0) == e)->dest;
const_rtx insn = BB_END (src), set;
/* The conditions are taken from try_redirect_by_replacing_jump. */
if (target == EXIT_BLOCK_PTR)
return false;
if (e->flags & (EDGE_ABNORMAL_CALL | EDGE_EH))
return false;
if (find_reg_note (insn, REG_CROSSING_JUMP, NULL_RTX)
|| BB_PARTITION (src) != BB_PARTITION (target))
return false;
if (!onlyjump_p (insn)
|| tablejump_p (insn, NULL, NULL))
return false;
set = single_set (insn);
if (!set || side_effects_p (set))
return false;
return true;
}
/* Implementation of CFG manipulation for linearized RTL. */
struct cfg_hooks rtl_cfg_hooks = {
"rtl",
rtl_verify_flow_info,
rtl_dump_bb,
rtl_create_basic_block,
rtl_redirect_edge_and_branch,
rtl_redirect_edge_and_branch_force,
rtl_can_remove_branch_p,
rtl_delete_block,
rtl_split_block,
rtl_move_block_after,
rtl_can_merge_blocks, /* can_merge_blocks_p */
rtl_merge_blocks,
rtl_predict_edge,
rtl_predicted_by_p,
NULL, /* can_duplicate_block_p */
NULL, /* duplicate_block */
rtl_split_edge,
rtl_make_forwarder_block,
rtl_tidy_fallthru_edge,
rtl_block_ends_with_call_p,
rtl_block_ends_with_condjump_p,
rtl_flow_call_edges_add,
NULL, /* execute_on_growing_pred */
NULL, /* execute_on_shrinking_pred */
NULL, /* duplicate loop for trees */
NULL, /* lv_add_condition_to_bb */
NULL, /* lv_adjust_loop_header_phi*/
NULL, /* extract_cond_bb_edges */
NULL /* flush_pending_stmts */
};
/* Implementation of CFG manipulation for cfg layout RTL, where
basic block connected via fallthru edges does not have to be adjacent.
This representation will hopefully become the default one in future
version of the compiler. */
/* We do not want to declare these functions in a header file, since they
should only be used through the cfghooks interface, and we do not want to
move them here since it would require also moving quite a lot of related
code. They are in cfglayout.c. */
extern bool cfg_layout_can_duplicate_bb_p (const_basic_block);
extern basic_block cfg_layout_duplicate_bb (basic_block);
struct cfg_hooks cfg_layout_rtl_cfg_hooks = {
"cfglayout mode",
rtl_verify_flow_info_1,
rtl_dump_bb,
cfg_layout_create_basic_block,
cfg_layout_redirect_edge_and_branch,
cfg_layout_redirect_edge_and_branch_force,
rtl_can_remove_branch_p,
cfg_layout_delete_block,
cfg_layout_split_block,
rtl_move_block_after,
cfg_layout_can_merge_blocks_p,
cfg_layout_merge_blocks,
rtl_predict_edge,
rtl_predicted_by_p,
cfg_layout_can_duplicate_bb_p,
cfg_layout_duplicate_bb,
cfg_layout_split_edge,
rtl_make_forwarder_block,
NULL,
rtl_block_ends_with_call_p,
rtl_block_ends_with_condjump_p,
rtl_flow_call_edges_add,
NULL, /* execute_on_growing_pred */
NULL, /* execute_on_shrinking_pred */
duplicate_loop_to_header_edge, /* duplicate loop for trees */
rtl_lv_add_condition_to_bb, /* lv_add_condition_to_bb */
NULL, /* lv_adjust_loop_header_phi*/
rtl_extract_cond_bb_edges, /* extract_cond_bb_edges */
NULL /* flush_pending_stmts */
};
| [
"[email protected]"
] | |
a34e6a83991a1271c0e15d63dbb54a4cf2638cc6 | 5bbf1460ebc9349fd02e857cee00ab81c58c9e54 | /Pods/Headers/Private/Appboy-iOS-SDK/ABKInAppMessageWebViewBridge.h | b73917fdc556ab715018e437b65d90193a410ed9 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | arvi9/edx-app-ios | 0f209e640f542256c0be2396bd7ad35330ad3bcc | 129927ab5d65149229076f9fd00081bfd17dd236 | refs/heads/master | 2023-05-22T18:17:27.876316 | 2021-06-04T11:39:29 | 2021-06-04T11:39:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 89 | h | ../../../Appboy-iOS-SDK/AppboyKit/headers/AppboyKitLibrary/ABKInAppMessageWebViewBridge.h | [
"[email protected]"
] | |
1120ef563a70c9719f1a5fd2a3ea122160464b5d | 5296123a4c75f1343aa22a7239463d3b6385188d | /soletta/src/lib/comms/sol-socket-impl-contiki.c | 455df8daf15d3d84566b4cee4938275a31e73d6f | [
"Apache-2.0",
"LicenseRef-scancode-dco-1.1"
] | permissive | gjenfwo/sml-project | 1f4a5c0e015cdb9dcd35f5f891c68e7db9ead887 | 62a9f4c1a48fddb01e75f193062f3f5e09efd761 | refs/heads/master | 2021-08-29T11:55:30.969019 | 2017-12-13T22:07:02 | 2017-12-13T22:07:02 | 112,269,769 | 1 | 0 | null | null | null | null | UTF-8 | C | false | false | 8,324 | c | /*
* This file is part of the Soletta (TM) Project
*
* Copyright (C) 2016 Intel 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.
*/
#include <errno.h>
#include <contiki-net.h>
#include "sol-event-handler-contiki.h"
#include "sol-log.h"
#include "sol-mainloop.h"
#include "sol-socket-impl.h"
#include "sol-network-util.h"
#include "sol-vector.h"
struct sol_socket_contiki {
struct sol_socket base;
bool (*on_can_read)(void *data, struct sol_socket *s);
bool (*on_can_write)(void *data, struct sol_socket *s);
const void *data;
struct simple_udp_connection udpconn;
struct sol_ptr_vector pending_buffers;
struct sol_timeout *write_timeout;
bool read_monitor;
bool write_monitor;
};
struct pending_buffer {
struct sol_network_link_addr addr;
uint16_t datalen;
uint8_t data[];
};
extern struct process soletta_app_process;
process_event_t sol_udp_socket_event;
static bool registered_process = false;
#define container_of(ptr, type, member) \
(type *)((char *)(ptr) - offsetof(type, member))
static void
receive_cb(struct simple_udp_connection *conn, const uip_ipaddr_t *srcaddr,
uint16_t srcport, const uip_ipaddr_t *dstaddr, uint16_t dstport,
const uint8_t *data, uint16_t datalen)
{
struct sol_socket_contiki *socket;
struct pending_buffer *buf;
int ret;
socket = container_of(conn, struct sol_socket_contiki, udpconn);
buf = malloc(sizeof(*buf) + datalen);
SOL_NULL_CHECK(buf);
buf->addr.family = SOL_NETWORK_FAMILY_INET6;
memcpy(&buf->addr.addr.in6, srcaddr, sizeof(buf->addr.addr.in6));
buf->addr.port = srcport;
buf->datalen = datalen;
memcpy(buf->data, data, datalen);
ret = sol_ptr_vector_append(&socket->pending_buffers, buf);
SOL_INT_CHECK_GOTO(ret, < 0, append_error);
if (sol_ptr_vector_get_len(&socket->pending_buffers) > 1)
return;
ret = process_post(&soletta_app_process, sol_udp_socket_event, socket);
SOL_INT_CHECK_GOTO(ret, != PROCESS_ERR_OK, post_error);
return;
post_error:
sol_ptr_vector_del_last(&socket->pending_buffers);
append_error:
free(buf);
}
static void
receive_process_cb(void *data, process_event_t ev, process_data_t ev_data)
{
struct sol_socket_contiki *socket = (struct sol_socket_contiki *)ev_data;
uint16_t count;
count = sol_ptr_vector_get_len(&socket->pending_buffers);
if (socket->on_can_read && socket->read_monitor)
while (count--)
socket->on_can_read((void *)socket->data, &socket->base);
}
static void
sol_socket_contiki_del(struct sol_socket *s)
{
struct sol_socket_contiki *socket = (struct sol_socket_contiki *)s;
struct pending_buffer *buf;
uint16_t idx;
if (socket->udpconn.udp_conn)
uip_udp_remove(socket->udpconn.udp_conn);
sol_mainloop_contiki_event_handler_del(&sol_udp_socket_event, socket,
receive_process_cb, NULL);
SOL_PTR_VECTOR_FOREACH_IDX (&socket->pending_buffers, buf, idx)
free(buf);
sol_ptr_vector_clear(&socket->pending_buffers);
free(socket);
}
static int
sol_socket_contiki_set_read_monitor(struct sol_socket *s, bool on)
{
struct sol_socket_contiki *socket = (struct sol_socket_contiki *)s;
SOL_NULL_CHECK(socket->on_can_read, -EINVAL);
socket->read_monitor = on;
return 0;
}
static bool
write_timeout_cb(void *data)
{
struct sol_socket_contiki *socket = data;
if (socket->on_can_write((void *)socket->data, &socket->base))
return true;
socket->write_timeout = NULL;
socket->write_monitor = false;
return false;
}
static int
sol_socket_contiki_set_write_monitor(struct sol_socket *s, bool on)
{
struct sol_socket_contiki *socket = (struct sol_socket_contiki *)s;
SOL_NULL_CHECK(socket->on_can_write, -EINVAL);
if (on && !socket->write_timeout) {
socket->write_timeout = sol_timeout_add(0, write_timeout_cb, socket);
SOL_NULL_CHECK(socket->write_timeout, -ENOMEM);
} else if (!on) {
sol_timeout_del(socket->write_timeout);
socket->write_timeout = NULL;
}
socket->write_monitor = on;
return 0;
}
static ssize_t
sol_socket_contiki_recvmsg(struct sol_socket *s, struct sol_buffer *buf, struct sol_network_link_addr *cliaddr)
{
struct sol_socket_contiki *socket = (struct sol_socket_contiki *)s;
struct pending_buffer *pending_buf;
size_t buflen = -EAGAIN;
int r = 0;
pending_buf = sol_ptr_vector_get(&socket->pending_buffers, 0);
if (pending_buf) {
buflen = pending_buf->datalen;
if (buf)
sol_ptr_vector_del(&socket->pending_buffers, 0);
}
if (SOL_BUFFER_CAN_RESIZE(buf)) {
r = sol_buffer_ensure(buf, buflen);
SOL_INT_CHECK_GOTO(r, < 0, err);
}
if (buflen > buf->capacity)
buflen = buf->capacity;
if (cliaddr)
*cliaddr = pending_buf->addr;
memcpy(buf->data, pending_buf->data, buflen);
buf->used = buflen;
if (SOL_BUFFER_NEEDS_NUL_BYTE(buf)) {
r = sol_buffer_ensure_nul_byte(buf);
SOL_INT_CHECK_GOTO(r, < 0, err);
}
free(pending_buf);
return buflen;
err:
free(pending_buf);
return r;
}
static ssize_t
sol_socket_contiki_sendmsg(struct sol_socket *s, const struct sol_buffer *buf, const struct sol_network_link_addr *cliaddr)
{
struct sol_socket_contiki *socket = (struct sol_socket_contiki *)s;
simple_udp_sendto_port(&socket->udpconn, buf->data, buf->used,
(uip_ipaddr_t *)&cliaddr->addr.in6, cliaddr->port);
return buf->used;
}
static int
sol_socket_contiki_join_group(struct sol_socket *s, int ifindex, const struct sol_network_link_addr *group)
{
if (group->family != SOL_NETWORK_FAMILY_INET6)
return -EAFNOSUPPORT;
uip_ds6_maddr_add((uip_ipaddr_t *)&group->addr.in6);
return 0;
}
static int
sol_socket_contiki_bind(struct sol_socket *s, const struct sol_network_link_addr *addr)
{
struct sol_socket_contiki *socket = (struct sol_socket_contiki *)s;
if (addr->family != SOL_NETWORK_FAMILY_INET6)
return -EAFNOSUPPORT;
if (socket->udpconn.udp_conn)
return -EALREADY;
if (!simple_udp_register(&socket->udpconn, addr->port, NULL, 0, receive_cb))
return -EINVAL;
return 0;
}
struct sol_socket *
sol_socket_ip_default_new(const struct sol_socket_options *options)
{
struct sol_socket_contiki *socket;
struct sol_socket_ip_options *opts = (struct sol_socket_ip_options *)options;
static struct sol_socket_type type = {
SOL_SET_API_VERSION(.api_version = SOL_SOCKET_TYPE_API_VERSION, )
.bind = sol_socket_contiki_bind,
.join_group = sol_socket_contiki_join_group,
.sendmsg = sol_socket_contiki_sendmsg,
.recvmsg = sol_socket_contiki_recvmsg,
.set_write_monitor = sol_socket_contiki_set_write_monitor,
.set_read_monitor = sol_socket_contiki_set_read_monitor,
.del = sol_socket_contiki_del
};
int r = 0;
SOL_INT_CHECK_ERRNO(opts->family, != SOL_NETWORK_FAMILY_INET6,
EAFNOSUPPORT, NULL);
socket = calloc(1, sizeof(*socket));
if (!socket) {
r = -ENOMEM;
goto socket_error;
}
socket->base.type = &type;
socket->on_can_read = options->on_can_read;
socket->on_can_write = options->on_can_write;
socket->data = options->data;
sol_ptr_vector_init(&socket->pending_buffers);
if (!registered_process) {
sol_udp_socket_event = process_alloc_event();
}
r = sol_mainloop_contiki_event_handler_add(&sol_udp_socket_event, socket,
receive_process_cb, NULL);
SOL_EXP_CHECK_GOTO(r, handler_add_error);
return &socket->base;
handler_add_error:
free(socket);
socket_error:
errno = -r;
return NULL;
}
| [
"[email protected]"
] | |
d514068138f9964a0fea3d4037e5642616ae573e | 98d28b3a48b6e5e21c92b37031dd864fe3adec25 | /vendor/cubew/src/cubew/cubew_compat_platform.c | ccf5ecba4d56be68790c07ea6056eb5a56548917 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | jplehr/score-p-v6 | 3301b6cbb4deabffafe424ea32c288cd82879ce4 | cc6028b152086f4ffce0bef4ab2547966bfa7955 | refs/heads/main | 2022-11-28T05:17:22.290022 | 2022-02-22T16:24:29 | 2022-02-22T16:24:29 | 229,740,305 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 1,978 | c | /****************************************************************************
** CUBE http://www.scalasca.org/ **
*****************************************************************************
** Copyright (c) 1998-2018 **
** Forschungszentrum Juelich GmbH, Juelich Supercomputing Centre **
** **
** Copyright (c) 2009-2015 **
** German Research School for Simulation Sciences GmbH, **
** Laboratory for Parallel Programming **
** **
** This software may be modified and distributed under the terms of **
** a BSD-style license. See the COPYING file in the package base **
** directory for details. **
****************************************************************************/
#include "config.h"
/**
* \file cubew_compat_platform.c
* \brief Source code of the definitions for missiong calls on some platform different than linux.
*
*
*
*/
#ifndef CUBEW_COMPAT_PLATFORM_C
#define CUBEW_COMPAT_PLATFORM_C
#ifdef __MINGW32__ // for windows we compile only on MinGW32. Here are some calls different or missing
#include "cubew_compat_platform.h"
#warning "On MinGW32 Platform we redefine fseeko using standard fseek".
#warning "On MinGW32 platforw we create cube reports using faked user and group id = 131071 (6th Marsenne prime number)"
gid_t
getgid( void )
{
return 131071; // faked gid on MinGW32
}
uid_t
getuid( void )
{
return 131071; // faked uid on MinGW32
}
#else // declae faked symbol to make compilers quite about empty translation unit
static
int
__LOCAL_NOT_USED_FOO_DUMMY_CALL()
{
return 123456789;
}
#endif
#endif
| [
"[email protected]"
] | |
0dc387e4267afa175210a7ea9d0a29f1cf20a159 | 6849e249c2cc70eab533ec67634c4554603662f4 | /include/w32api.ports/msgbox.h | d68ab2ff45cccd19d38ca01f5129f65733ac60f6 | [] | no_license | midipix-ports/w32api.ports | 3aa8f9681578fb4500af14a80dacb7af7f264f9a | bdc3325a930af180c2dcbc94a3068716645f82f5 | refs/heads/main | 2021-06-03T23:04:16.751436 | 2020-10-06T07:54:17 | 2020-10-06T07:54:17 | 108,916,493 | 1 | 0 | null | null | null | null | UTF-8 | C | false | false | 1,179 | h | #ifndef _W32API_MSGBOX_H_
#define _W32API_MSGBOX_H_
#define MB_DEFMASK (3840)
#define MB_SYSTEMMODAL (4096)
#define MB_HELP (0x4000)
#define MB_TASKMODAL (0x2000)
#define MB_SETFOREGROUND (0x10000)
#define MB_DEFAULT_DESKTOP_ONLY (0x20000)
#define MB_TOPMOST (0x40000)
#define MB_RIGHT (0x80000)
#define MB_RTLREADING (0x100000)
#define MB_SERVICE_NOTIFICATION (0x200000)
#define MB_ABORTRETRYIGNORE (2)
#define MB_APPLMODAL (0)
#define MB_CANCELTRYCONTINUE (6)
#define MB_DEFBUTTON1 (0)
#define MB_DEFBUTTON2 (256)
#define MB_DEFBUTTON3 (512)
#define MB_DEFBUTTON4 (0x300)
#define MB_ICONASTERISK (64)
#define MB_ICONERROR (16)
#define MB_ICONEXCLAMATION (0x30)
#define MB_ICONHAND (16)
#define MB_ICONINFORMATION (64)
#define MB_ICONMASK (240)
#define MB_ICONQUESTION (32)
#define MB_ICONSTOP (16)
#define MB_ICONWARNING (0x30)
#define MB_OK (0)
#define MB_OKCANCEL (1)
#define MB_RETRYCANCEL (5)
#define MB_TYPEMASK (15)
#define MB_USERICON (128)
#define MB_YESNO (4)
#define MB_YESNOCANCEL (3)
#define MB_MISCMASK (0x0000C000)
#define MB_MODEMASK (0x00003000)
#define MB_NOFOCUS (0x00008000)
#endif
| [
"[email protected]"
] | |
38c30b918c3df475b3cc26c5b029a3e15569d335 | 12cae7118f71c8053172e542f3dacebb595a9110 | /benchmarks/interger/goubault/test3.c | 42361b7bc63fac71254612126c4f016d5b7b45ac | [
"Apache-2.0"
] | permissive | dloghin/discover | 621e513a5777c0b2ee656d30f1095dcb3c2661aa | ea948e7a37380fcaa8c4ce3d9fd90746657dcbe4 | refs/heads/master | 2023-09-03T08:01:36.210764 | 2021-10-06T17:32:04 | 2021-10-06T17:32:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 156 | c | #include <discover.h>
int main() {
int i;
int j;
int k;
i=0;
j=100;
k=1;
while (i<j) {
k=k+1;
__assert_range_lower_bound(k,2);
}
}
| [
"[email protected]"
] | |
89efef9026ebcddb042b6c7edf2e90a146ec4570 | 7d01906145dbb0b1f301337cae6a40b8fcab4413 | /lib/fontops/otl/gsub-single.h | f4349742408d03c50febafc177f6be706129209c | [
"Apache-2.0"
] | permissive | huntzhan/otfcc | 443d9cea75ea4ee7acd0f54d3a80845eb01bd1ef | f84810755cfdb24599dbc97a3212bbe3de94a3f9 | refs/heads/master | 2021-01-18T08:10:28.988610 | 2016-07-31T07:26:07 | 2016-07-31T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 219 | h | #ifndef CARYLL_FONTOPS_OTL_GSUB_SINGLE_H
#define CARYLL_FONTOPS_OTL_GSUB_SINGLE_H
#include "common.h"
bool consolidate_gsub_single(caryll_font *font, table_otl *table, otl_subtable *_subtable, sds lookupName);
#endif
| [
"[email protected]"
] | |
d7a9deb1aefc8a07c6406e3f6d9a03d0a00f7c37 | 976f5e0b583c3f3a87a142187b9a2b2a5ae9cf6f | /source/linux/drivers/pci/controller/extr_pcie-xilinx.c_xilinx_pcie_intr_handler.c | 607153c84a0259c627eed23c24603f871eb678c2 | [] | no_license | isabella232/AnghaBench | 7ba90823cf8c0dd25a803d1688500eec91d1cf4e | 9a5f60cdc907a0475090eef45e5be43392c25132 | refs/heads/master | 2023-04-20T09:05:33.024569 | 2021-05-07T18:36:26 | 2021-05-07T18:36:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 5,171 | c | #define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward declarations */
/* Type definitions */
typedef int u32 ;
struct xilinx_pcie_port {int /*<<< orphan*/ leg_domain; struct device* dev; } ;
struct device {int dummy; } ;
typedef int /*<<< orphan*/ irqreturn_t ;
/* Variables and functions */
int /*<<< orphan*/ CONFIG_PCI_MSI ;
int /*<<< orphan*/ IRQ_HANDLED ;
int /*<<< orphan*/ IRQ_NONE ;
scalar_t__ IS_ENABLED (int /*<<< orphan*/ ) ;
int XILINX_PCIE_INTR_CFG_TIMEOUT ;
int XILINX_PCIE_INTR_CORRECTABLE ;
int XILINX_PCIE_INTR_ECRC_ERR ;
int XILINX_PCIE_INTR_FATAL ;
int XILINX_PCIE_INTR_HOT_RESET ;
int XILINX_PCIE_INTR_INTX ;
int XILINX_PCIE_INTR_LINK_DOWN ;
int XILINX_PCIE_INTR_MSI ;
int XILINX_PCIE_INTR_MST_DECERR ;
int XILINX_PCIE_INTR_MST_ERRP ;
int XILINX_PCIE_INTR_MST_SLVERR ;
int XILINX_PCIE_INTR_NONFATAL ;
int XILINX_PCIE_INTR_SLV_CMPABT ;
int XILINX_PCIE_INTR_SLV_COMPL ;
int XILINX_PCIE_INTR_SLV_ERRP ;
int XILINX_PCIE_INTR_SLV_ILLBUR ;
int XILINX_PCIE_INTR_SLV_UNEXP ;
int XILINX_PCIE_INTR_SLV_UNSUPP ;
int XILINX_PCIE_INTR_STR_ERR ;
int /*<<< orphan*/ XILINX_PCIE_REG_IDR ;
int /*<<< orphan*/ XILINX_PCIE_REG_IMR ;
int /*<<< orphan*/ XILINX_PCIE_REG_RPIFR1 ;
int /*<<< orphan*/ XILINX_PCIE_REG_RPIFR2 ;
int XILINX_PCIE_RPIFR1_ALL_MASK ;
int XILINX_PCIE_RPIFR1_INTR_MASK ;
int XILINX_PCIE_RPIFR1_INTR_SHIFT ;
int XILINX_PCIE_RPIFR1_INTR_VALID ;
int XILINX_PCIE_RPIFR1_MSI_INTR ;
int XILINX_PCIE_RPIFR2_MSG_DATA ;
int /*<<< orphan*/ dev_info (struct device*,char*) ;
int /*<<< orphan*/ dev_warn (struct device*,char*) ;
int /*<<< orphan*/ generic_handle_irq (int) ;
int irq_find_mapping (int /*<<< orphan*/ ,int) ;
int pcie_read (struct xilinx_pcie_port*,int /*<<< orphan*/ ) ;
int /*<<< orphan*/ pcie_write (struct xilinx_pcie_port*,int,int /*<<< orphan*/ ) ;
int /*<<< orphan*/ xilinx_pcie_clear_err_interrupts (struct xilinx_pcie_port*) ;
__attribute__((used)) static irqreturn_t xilinx_pcie_intr_handler(int irq, void *data)
{
struct xilinx_pcie_port *port = (struct xilinx_pcie_port *)data;
struct device *dev = port->dev;
u32 val, mask, status;
/* Read interrupt decode and mask registers */
val = pcie_read(port, XILINX_PCIE_REG_IDR);
mask = pcie_read(port, XILINX_PCIE_REG_IMR);
status = val & mask;
if (!status)
return IRQ_NONE;
if (status & XILINX_PCIE_INTR_LINK_DOWN)
dev_warn(dev, "Link Down\n");
if (status & XILINX_PCIE_INTR_ECRC_ERR)
dev_warn(dev, "ECRC failed\n");
if (status & XILINX_PCIE_INTR_STR_ERR)
dev_warn(dev, "Streaming error\n");
if (status & XILINX_PCIE_INTR_HOT_RESET)
dev_info(dev, "Hot reset\n");
if (status & XILINX_PCIE_INTR_CFG_TIMEOUT)
dev_warn(dev, "ECAM access timeout\n");
if (status & XILINX_PCIE_INTR_CORRECTABLE) {
dev_warn(dev, "Correctable error message\n");
xilinx_pcie_clear_err_interrupts(port);
}
if (status & XILINX_PCIE_INTR_NONFATAL) {
dev_warn(dev, "Non fatal error message\n");
xilinx_pcie_clear_err_interrupts(port);
}
if (status & XILINX_PCIE_INTR_FATAL) {
dev_warn(dev, "Fatal error message\n");
xilinx_pcie_clear_err_interrupts(port);
}
if (status & (XILINX_PCIE_INTR_INTX | XILINX_PCIE_INTR_MSI)) {
val = pcie_read(port, XILINX_PCIE_REG_RPIFR1);
/* Check whether interrupt valid */
if (!(val & XILINX_PCIE_RPIFR1_INTR_VALID)) {
dev_warn(dev, "RP Intr FIFO1 read error\n");
goto error;
}
/* Decode the IRQ number */
if (val & XILINX_PCIE_RPIFR1_MSI_INTR) {
val = pcie_read(port, XILINX_PCIE_REG_RPIFR2) &
XILINX_PCIE_RPIFR2_MSG_DATA;
} else {
val = (val & XILINX_PCIE_RPIFR1_INTR_MASK) >>
XILINX_PCIE_RPIFR1_INTR_SHIFT;
val = irq_find_mapping(port->leg_domain, val);
}
/* Clear interrupt FIFO register 1 */
pcie_write(port, XILINX_PCIE_RPIFR1_ALL_MASK,
XILINX_PCIE_REG_RPIFR1);
/* Handle the interrupt */
if (IS_ENABLED(CONFIG_PCI_MSI) ||
!(val & XILINX_PCIE_RPIFR1_MSI_INTR))
generic_handle_irq(val);
}
if (status & XILINX_PCIE_INTR_SLV_UNSUPP)
dev_warn(dev, "Slave unsupported request\n");
if (status & XILINX_PCIE_INTR_SLV_UNEXP)
dev_warn(dev, "Slave unexpected completion\n");
if (status & XILINX_PCIE_INTR_SLV_COMPL)
dev_warn(dev, "Slave completion timeout\n");
if (status & XILINX_PCIE_INTR_SLV_ERRP)
dev_warn(dev, "Slave Error Poison\n");
if (status & XILINX_PCIE_INTR_SLV_CMPABT)
dev_warn(dev, "Slave Completer Abort\n");
if (status & XILINX_PCIE_INTR_SLV_ILLBUR)
dev_warn(dev, "Slave Illegal Burst\n");
if (status & XILINX_PCIE_INTR_MST_DECERR)
dev_warn(dev, "Master decode error\n");
if (status & XILINX_PCIE_INTR_MST_SLVERR)
dev_warn(dev, "Master slave error\n");
if (status & XILINX_PCIE_INTR_MST_ERRP)
dev_warn(dev, "Master error poison\n");
error:
/* Clear the Interrupt Decode register */
pcie_write(port, status, XILINX_PCIE_REG_IDR);
return IRQ_HANDLED;
} | [
"[email protected]"
] | |
543109a2615367ccbd3d400baea5a1bea7399d98 | a92ddd8beff25ea2c81d58ebf1bb8b2ed878fac4 | /yjchoWorkspace/nxprdlib/NxpRdLib/comps/phceT4T/src/Sw/phceT4T_Sw.h | 369789ca48da8fb9cc2c29b1e0909b46b91cbd8d | [] | no_license | iLdak/SmartDoorLockHW | c87149cd7fe65c1f50011cb7fb7de9019349311a | c9e2cbf0f2632143f68a2f837759126f34fe62ff | refs/heads/master | 2020-07-13T01:28:20.492854 | 2016-10-31T13:32:31 | 2016-10-31T13:32:31 | 73,896,399 | 3 | 0 | null | 2016-11-16T07:48:19 | 2016-11-16T07:48:19 | null | UTF-8 | C | false | false | 3,445 | h | /*
* Copyright (c), NXP Semiconductors Gratkorn / Austria
*
* (C)NXP Semiconductors
* All rights are reserved. Reproduction in whole or in part is
* prohibited without the written consent of the copyright owner.
* NXP reserves the right to make changes without notice at any time.
* NXP makes no warranty, expressed, implied or statutory, including but
* not limited to any implied warranty of merchantability or fitness for any
*particular purpose, or that the use will not infringe any third party patent,
* copyright or trademark. NXP must not be liable for any loss or damage
* arising from its use.
*/
/** \file
* Card Emulation component for Type 4A Tag.
* $Author: jenkins_ cm (nxp92197) $
* $Revision: 4258 $ (NFCRDLIB_V4.010.03.001609 : 4184 $ (NFCRDLIB_V4.010.01.001603 : 2673 ))
* $Date: 2016-03-01 16:44:26 +0530 (Tue, 01 Mar 2016) $
*/
#ifndef PHCET4T_SW_H
#define PHCET4T_SW_H
#include <phceT4T.h>
phStatus_t phceT4T_Sw_Reset(
phceT4T_Sw_DataParams_t * pDataParams
);
phStatus_t phceT4T_Sw_SetElementaryFile(
phceT4T_Sw_DataParams_t * pDataParams,
uint8_t bFileType,
uint8_t *pFile,
uint16_t wFileId,
uint32_t dwFileSize,
uint32_t dwContentLen
);
phStatus_t phceT4T_Sw_ProcessCmd(
phceT4T_Sw_DataParams_t *pDataParams,
uint16_t wOption,
uint8_t *pRxData,
uint16_t wRxDataLen,
uint16_t *pStatusWord,
uint8_t **pTxData,
uint16_t *pTxDataLen
);
phStatus_t phceT4T_Sw_Activate(
phceT4T_Sw_DataParams_t *pDataParams
);
phStatus_t phceT4T_Sw_AppProcessCmd(
phceT4T_Sw_DataParams_t *pDataParams,
phceT4T_AppCallback_t pAppCallback
);
phStatus_t phceT4T_Sw_GetSelectedFileInfo(
phceT4T_Sw_DataParams_t *pDataParams,
uint16_t *pFileId,
uint8_t **ppFile,
uint32_t *pFileSize,
uint8_t *pWriteAccess,
uint32_t *pFileOffset
);
phStatus_t phceT4T_Sw_SetConfig(
phceT4T_Sw_DataParams_t *pDataParams,
uint16_t wConfig,
uint16_t wValue
);
phStatus_t phceT4T_Sw_GetConfig(
phceT4T_Sw_DataParams_t *pDataParams,
uint16_t wConfig,
uint16_t *pValue
);
#endif /* PHCET4T_SW_H */
| [
"[email protected]"
] | |
babac96ef253b9b560dedd1f4c5852c614b384a9 | dbe74fdf6bded2ceb98eec965fe05ddf7d6dd931 | /models/Flight/source/ivory.h | 9162753fcd4dcdce8f8e22b81baadb8d20f9100a | [
"BSD-3-Clause"
] | permissive | smaccm/smaccm | 7f79bf5fe74bb1b856d69625fab4ffb1e138101e | 7393c423b5aca1a272a88cbb89b5dcfd08a5a47c | refs/heads/master | 2021-01-23T15:51:42.639585 | 2019-02-21T22:28:42 | 2019-02-21T22:28:42 | 12,084,628 | 27 | 27 | BSD-3-Clause | 2019-01-02T17:22:41 | 2013-08-13T14:59:47 | Java | UTF-8 | C | false | false | 3,093 | h | #ifndef IVORY_H
#define IVORY_H
#include<stdint.h>
#include<math.h>
#include<stdbool.h>
#include<string.h>
/* Requires and Provides statements */
#ifdef IVORY_TEST
#ifdef __arm__
/* TODO: We could write a better "assert" that suspends all RTOS
* tasks and tries to write a debug string somewhere, but this is at
* least somewhat useful while running under GDB. */
#define ivory_assert(arg) \
do { \
if (!(arg)) { \
asm volatile("bkpt"); \
} \
} while (0)
#define REQUIRES(arg) ivory_assert(arg)
#define ENSURES(arg) ivory_assert(arg)
#define ASSUMES(arg) ivory_assert(arg)
#define ASSERTS(arg) ivory_assert(arg)
#else /* ! __arm__ */
#include <assert.h>
#define REQUIRES(arg) assert(arg)
#define ENSURES(arg) assert(arg)
#define ASSUMES(arg) assert(arg)
#define ASSERTS(arg) assert(arg)
#endif /* __arm__ */
#endif /* IVORY_TEST */
#ifdef IVORY_CBMC
#define REQUIRES(arg) __CPROVER_assume(arg)
#define ENSURES(arg) __CPROVER_assert(arg, "")
#define ASSERTS(arg) __CPROVER_assert(arg, "")
#define ASSUMES(arg) __CPROVER_assume(arg)
#endif /* IVORY_CBMC */
#ifdef IVORY_DEPLOY
#define REQUIRES(arg)
#define ENSURES(arg)
#define ASSERTS(arg)
#define ASSUMES(arg)
#endif /* IVORY_DEPLOY */
/* So CBMC can handle forever loops. */
#ifdef IVORY_CBMC
#define FOREVER forever_loop < 1
#define FOREVER_INC forever_loop++
#else
#define FOREVER true
#define FOREVER_INC
#endif
/* abs implementations */
static inline char abs_char(char i) {
return i >= 0 ? i : -i;
}
static inline int8_t abs_i8(int8_t i) {
return i >= 0 ? i : -i;
}
static inline int16_t abs_i16(int16_t i) {
return i >= 0 ? i : -i;
}
static inline int32_t abs_i32(int32_t i) {
return i >= 0 ? i : -i;
}
static inline int64_t abs_i64(int64_t i) {
return i >= 0 ? i : -i;
}
/* signum implementations */
static inline char signum_char(char i) {
if (i > 0) return 1;
if (i < 0) return (-1);
return 0;
}
static inline int8_t signum_i8(int8_t i) {
if (i > 0) return 1;
if (i < 0) return (-1);
return 0;
}
static inline int16_t signum_i16(int16_t i) {
if (i > 0) return 1;
if (i < 0) return (-1);
return 0;
}
static inline int32_t signum_i32(int32_t i) {
if (i > 0) return 1;
if (i < 0) return (-1);
return 0;
}
static inline int64_t signum_i64(int64_t i) {
if (i > 0) return 1;
if (i < 0) return (-1);
return 0;
}
static inline float signum_float(float i) {
if (i > 0) return 1;
if (i < 0) return (-1);
return 0;
}
static inline double signum_double(double i) {
if (i > 0) return 1;
if (i < 0) return (-1);
return 0;
}
static inline uint8_t signum_u8(uint8_t i) {
if (i > 0) return 1;
return 0;
}
static inline uint16_t signum_u16(uint16_t i) {
if (i > 0) return 1;
return 0;
}
static inline uint32_t signum_u32(uint32_t i) {
if (i > 0) return 1;
return 0;
}
static inline uint64_t signum_u64(uint64_t i) {
if (i > 0) return 1;
return 0;
}
/* index type */
/* machine-depdentent size */
typedef int idx;
#endif // IVORY_H
| [
"[email protected]"
] | |
414f4253c3bcf61eee5733ec1fe4743478489ff5 | 885114b88c019cdc4b5b7f2dc4bcdd622d1f7712 | /Pods/Headers/Public/RongCloudIMKit/RCLocationMessage.h | 3ea83e74c53a692e3b9900f3f5c16cded66dc73a | [
"MIT"
] | permissive | wulei878/BiuLiCai | 62f45afa69f2df2aa02b86bc5a027eb03417c726 | bf775d33be4b59d8dea320ce190f55d7eed9aa73 | refs/heads/master | 2021-01-10T01:53:04.520995 | 2016-02-15T09:36:29 | 2016-02-15T09:36:29 | 51,744,072 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 101 | h | ../../../RongCloudIMKit/Rong_Cloud_iOS_SDK_v2_0_3_dev/RongIMLib.framework/Headers/RCLocationMessage.h | [
"[email protected]"
] | |
8bc42a52fff2d3a9f3f00ee51c515adf9696c6ed | 0f38f91d24fd040c178c2ef8e2e23ddc94ade411 | /base/src/toolsComm/flex/yylex.c | cce45dcbba4f6621b429520868b114d13118e7b7 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-flex-2.5"
] | permissive | FreddieAkeroyd/EPICS-VMS | 7d877fa0631179d674427a0d36d61496c2502f10 | 94b4ccfdc137cfd39b61f919a120bf0c8de37b48 | refs/heads/master | 2023-06-28T14:48:31.547708 | 2023-06-20T21:13:46 | 2023-06-20T21:13:46 | 30,976,111 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 4,800 | c | /*************************************************************************\
* Copyright (c) 2002 The University of Chicago, as Operator of Argonne
* National Laboratory.
* Copyright (c) 2002 The Regents of the University of California, as
* Operator of Los Alamos National Laboratory.
* EPICS BASE Versions 3.13.7
* and higher are distributed subject to a Software License Agreement found
* in file LICENSE that is included with this distribution.
\*************************************************************************/
/* yylex - scanner front-end for flex */
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* Vern Paxson.
*
* The United States Government has rights in this work pursuant
* to contract no. DE-AC03-76SF00098 between the United States
* Department of Energy and the University of California.
*
* Redistribution and use in source and binary forms are permitted provided
* that: (1) source distributions retain this entire copyright notice and
* comment, and (2) distributions including binaries display the following
* acknowledgement: ``This product includes software developed by the
* University of California, Berkeley and its contributors'' in the
* documentation or other materials provided with the distribution and in
* all advertising materials mentioning features or use of this software.
* Neither the name of the University 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 ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
/*
#ifndef lint
static char rcsid[] =
"@(#) /usr/local/epicsmgr/cvsroot/epics/base/src/toolsComm/flex/yylex.c,v 1.3 2002/07/12 21:35:38 jba Exp (LBL)";
#endif
#include <ctype.h>
#include "flexdef.h"
#include "parse.h"
*/
/* ANSI C does not guarantee that isascii() is defined */
#ifndef isascii
#define isascii(c) ((c) <= 0177)
#endif
/* yylex - scan for a regular expression token
*
* synopsis
*
* token = yylex();
*
* token - return token found
*/
int yylex()
{
int toktype;
static int beglin = false;
if ( eofseen )
toktype = EOF;
else
toktype = flexscan();
if ( toktype == EOF || toktype == 0 )
{
eofseen = 1;
if ( sectnum == 1 )
{
synerr( "premature EOF" );
sectnum = 2;
toktype = SECTEND;
}
else if ( sectnum == 2 )
{
sectnum = 3;
toktype = 0;
}
else
toktype = 0;
}
if ( trace )
{
if ( beglin )
{
fprintf( stderr, "%d\t", num_rules + 1 );
beglin = 0;
}
switch ( toktype )
{
case '<':
case '>':
case '^':
case '$':
case '"':
case '[':
case ']':
case '{':
case '}':
case '|':
case '(':
case ')':
case '-':
case '/':
case '\\':
case '?':
case '.':
case '*':
case '+':
case ',':
(void) putc( toktype, stderr );
break;
case '\n':
(void) putc( '\n', stderr );
if ( sectnum == 2 )
beglin = 1;
break;
case SCDECL:
fputs( "%s", stderr );
break;
case XSCDECL:
fputs( "%x", stderr );
break;
case WHITESPACE:
(void) putc( ' ', stderr );
break;
case SECTEND:
fputs( "%%\n", stderr );
/* we set beglin to be true so we'll start
* writing out numbers as we echo rules. flexscan() has
* already assigned sectnum
*/
if ( sectnum == 2 )
beglin = 1;
break;
case NAME:
fprintf( stderr, "'%s'", nmstr );
break;
case CHAR:
switch ( yylval )
{
case '<':
case '>':
case '^':
case '$':
case '"':
case '[':
case ']':
case '{':
case '}':
case '|':
case '(':
case ')':
case '-':
case '/':
case '\\':
case '?':
case '.':
case '*':
case '+':
case ',':
fprintf( stderr, "\\%c", yylval );
break;
default:
if ( ! isascii( yylval ) || ! isprint( yylval ) )
fprintf( stderr, "\\%.3o", yylval );
else
(void) putc( yylval, stderr );
break;
}
break;
case NUMBER:
fprintf( stderr, "%d", yylval );
break;
case PREVCCL:
fprintf( stderr, "[%d]", yylval );
break;
case EOF_OP:
fprintf( stderr, "<<EOF>>" );
break;
case 0:
fprintf( stderr, "End Marker" );
break;
default:
fprintf( stderr, "*Something Weird* - tok: %d val: %d\n",
toktype, yylval );
break;
}
}
return ( toktype );
}
| [
"[email protected]"
] | |
4bf9d285f5f15dbc87252a788a7386013a7b1697 | e11d12970ab5999a4197a13e115debe5f13d7dae | /ft_new_sha_algo.c | dfdcfbe20503d0ad4df125d3ce07726b4fea3aa0 | [] | no_license | mazu-rok/ft_ssl | d893e74c46cc2faa6f02b291dcbd63aa91430fd8 | 7aabdf1acc49cd7b0c7ab601ceaec2f7d17e58da | refs/heads/master | 2020-03-17T10:38:10.169036 | 2019-04-05T07:27:54 | 2019-04-05T07:27:54 | 133,519,293 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 1,698 | c | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_new_algo_struct.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: amazurok <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/06/05 11:42:22 by amazurok #+# #+# */
/* Updated: 2018/06/05 13:09:29 by amazurok ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_ssl.h"
void ft_create_md5(t_algo *alg)
{
alg->name = "md5";
alg->alg = ft_md5;
alg->word = 8;
alg->len = ft_newlen_256;
}
void ft_create_sha224(t_algo *alg)
{
alg->name = "sha224";
alg->alg = ft_sha256_224;
alg->word = 7;
alg->cr_buf = ft_create_buf224;
alg->len = ft_newlen_256;
}
void ft_create_sha256(t_algo *alg)
{
alg->name = "sha256";
alg->alg = ft_sha256_224;
alg->word = 8;
alg->cr_buf = ft_create_buf256;
alg->len = ft_newlen_256;
}
void ft_create_sha384(t_algo *alg)
{
alg->name = "sha384";
alg->alg = ft_sha512_384;
alg->word = 6;
alg->cr_lbuf = ft_create_buf384;
alg->len = ft_newlen_512;
}
void ft_create_sha512(t_algo *alg)
{
alg->name = "sha512";
alg->alg = ft_sha512_384;
alg->word = 8;
alg->cr_lbuf = ft_create_buf512;
alg->len = ft_newlen_512;
}
| [
"andy1995"
] | andy1995 |
bff7b9c0dae7eb7d36be727470dd7c4a3ed22165 | 976f5e0b583c3f3a87a142187b9a2b2a5ae9cf6f | /source/linux/arch/mips/pci/extr_pci-octeon.c_octeon_get_pci_interrupts.c | 6a2d1149c81641ea11c7cd1588768948428728af | [] | no_license | isabella232/AnghaBench | 7ba90823cf8c0dd25a803d1688500eec91d1cf4e | 9a5f60cdc907a0475090eef45e5be43392c25132 | refs/heads/master | 2023-04-20T09:05:33.024569 | 2021-05-07T18:36:26 | 2021-05-07T18:36:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 2,513 | c | #define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward declarations */
typedef struct TYPE_2__ TYPE_1__ ;
/* Type definitions */
struct TYPE_2__ {int board_type; } ;
/* Variables and functions */
#define CVMX_BOARD_TYPE_BBGW_REF 135
#define CVMX_BOARD_TYPE_CN3005_EVB_HS5 134
#define CVMX_BOARD_TYPE_CN3010_EVB_HS5 133
#define CVMX_BOARD_TYPE_CUST_DSR1000N 132
#define CVMX_BOARD_TYPE_EBH3000 131
#define CVMX_BOARD_TYPE_EBH3100 130
#define CVMX_BOARD_TYPE_NAO38 129
#define CVMX_BOARD_TYPE_THUNDER 128
TYPE_1__* octeon_bootinfo ;
scalar_t__ of_machine_is_compatible (char*) ;
const char *octeon_get_pci_interrupts(void)
{
/*
* Returning an empty string causes the interrupts to be
* routed based on the PCI specification. From the PCI spec:
*
* INTA# of Device Number 0 is connected to IRQW on the system
* board. (Device Number has no significance regarding being
* located on the system board or in a connector.) INTA# of
* Device Number 1 is connected to IRQX on the system
* board. INTA# of Device Number 2 is connected to IRQY on the
* system board. INTA# of Device Number 3 is connected to IRQZ
* on the system board. The table below describes how each
* agent's INTx# lines are connected to the system board
* interrupt lines. The following equation can be used to
* determine to which INTx# signal on the system board a given
* device's INTx# line(s) is connected.
*
* MB = (D + I) MOD 4 MB = System board Interrupt (IRQW = 0,
* IRQX = 1, IRQY = 2, and IRQZ = 3) D = Device Number I =
* Interrupt Number (INTA# = 0, INTB# = 1, INTC# = 2, and
* INTD# = 3)
*/
if (of_machine_is_compatible("dlink,dsr-500n"))
return "CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC";
switch (octeon_bootinfo->board_type) {
case CVMX_BOARD_TYPE_NAO38:
/* This is really the NAC38 */
return "AAAAADABAAAAAAAAAAAAAAAAAAAAAAAA";
case CVMX_BOARD_TYPE_EBH3100:
case CVMX_BOARD_TYPE_CN3010_EVB_HS5:
case CVMX_BOARD_TYPE_CN3005_EVB_HS5:
return "AAABAAAAAAAAAAAAAAAAAAAAAAAAAAAA";
case CVMX_BOARD_TYPE_BBGW_REF:
return "AABCD";
case CVMX_BOARD_TYPE_CUST_DSR1000N:
return "CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC";
case CVMX_BOARD_TYPE_THUNDER:
case CVMX_BOARD_TYPE_EBH3000:
default:
return "";
}
} | [
"[email protected]"
] | |
3e58fbce031248dbe62f2ba726d592a9867bd978 | 29fdd75b87d16a90a625ca1acc14f8741b166f01 | /asm_module/asm.c | b5d68fb93c3271d3acd6baf39b37d26b573c5b04 | [] | no_license | SemyonAbramov/pdp11-emulator | 53b932e32ac7385218870bfd667ff80ffb0251b5 | 40d5aa0a710d13d0375a3711d1ff419c110d5ed1 | refs/heads/master | 2021-04-29T08:45:46.843935 | 2017-01-04T10:27:34 | 2017-01-04T10:27:34 | 77,669,612 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 2,320 | c |
/*
#include "asm.h"
#include "decode.h"
#include "cpu.h"
#include <stdlib.h>
#include <string.h>
*/
/*
asm_arr_t* init_instr_array(int arr_size)
{
asm_arr_t* arr = (asm_arr_t*)malloc(sizeof(asm_arr_t));
arr->array = (asm_instr_t*)malloc(sizeof(asm_instr_t) * arr_size);
arr->count = 0;
if (arr == NULL)
{
printf("Can not create instruction array, malloc failed ! \n");
abort();
}
return arr;
}
void deinit_instr_array(asm_instr_t* arr)
{
free(arr->array);
free(arr);
}
*/
asm_instr_t* init_instr_array(int arr_size)
{
arr= (asm_instr_t*)malloc(sizeof(asm_instr_t) * arr_size);
arr->instr = (char*)malloc(sizeof(char) * DEF_INSTR_LEN);
count = 0;
if (arr == NULL)
{
printf("Can not create instruction array, malloc failed ! \n");
abort();
}
return arr;
}
void deinit_instr_array(asm_instr_t* arr)
{
free(arr->instr);
free(arr);
}
char* get_reg(uint16_t mode, uint16_t reg)
{
switch (mode)
{
case REG_ADDR:
return reg_mode[reg];
case REG_DEF_ADDR:
return reg_def_mode[reg];
case AUTOINC_ADDR:
return autoinc_mode[reg];
case AUTOINC_DEF_ADDR:
return autoinc_def_mode[reg];
case AUTODEC_ADDR:
return autodec_mode[reg];
case AUTODEC_DEF_ADDR:
return autodec_def_mode[reg];
case INDEX_ADDR:
case INDEX_DEF_ADDR:
case IMM_PC:
case ABS_PC:
case REL_PC:
case REL_DEF_PC:
printf("Asm module: Reg reg pc not implemented yet\n");
abort();
default:
printf("Get reg asm error \n");
abort();
}
}
void gen_single_op_instr(char** instr, char* name, uint16_t byte_mode, uint16_t mode, uint16_t reg)
{
int len = strlen(name);
srncpy(*instr, name, len);
if (byte_mode)
{
strncpy((*instr) + len, "b", 1);
len += 1;
}
char* dst = get_reg(mode, reg);
strncpy((*instr) + len, dst, strlen(dst));
return;
}
void gen_double_op_instr(char** instr, char* name, uint16_t byte_mode, uint16_t mode, uint16_t reg)
{
int len = strlen(name);
srncpy(*instr, name, len);
if (byte_mode)
{
strncpy((*instr) + len, "b", 1);
len += 1;
}
char* dst = get_reg(mode, reg);
strncpy((*instr) + len, dst, strlen(dst));
return;
}
void asm_module_single(asm_arr_t* arr, char* name, uint16_t* addr, uint8_t breakpoint, uint16_t byte_mode, uint16_t mode, uint16_t reg)
{
gen_single_op_instr(&(arr->instr), name,
} | [
"[email protected]"
] | |
d85ddfac92207df886f07e2b16349e0e2995953c | b03991ba3cb97ea87596b4ccd83cff42de9be8ac | /libBigWig/test/testRemote.c | b1e4a4a1c0b6cfdcf9d640a551be2cd28b80f859 | [
"MIT"
] | permissive | brentp/bw-python | d552a14b011377ee9ecb6386eda107eace69e222 | 5da646b507800bd14e87b82ac5788e9418bd5833 | refs/heads/master | 2021-01-17T11:14:21.963664 | 2016-05-13T13:46:08 | 2016-05-13T13:46:31 | 44,558,995 | 21 | 2 | null | 2015-11-24T17:08:58 | 2015-10-19T19:38:07 | C | UTF-8 | C | false | false | 6,783 | c | #include "bigWig.h"
#include <stdio.h>
#include <inttypes.h>
#include <stdlib.h>
#include <assert.h>
//Print overly verbose header information
void bwPrintHdr(bigWigFile_t *bw) {
uint64_t i;
printf("Version: %"PRIu16"\n", bw->hdr->version);
printf("Levels: %"PRIu16"\n", bw->hdr->nLevels);
printf("ctOffset: 0x%"PRIx64"\n", bw->hdr->ctOffset);
printf("dataOffset: 0x%"PRIx64"\n", bw->hdr->dataOffset);
printf("indexOffset: 0x%"PRIx64"\n", bw->hdr->indexOffset);
printf("sqlOffset: 0x%"PRIx64"\n", bw->hdr->sqlOffset);
printf("summaryOffset: 0x%"PRIx64"\n", bw->hdr->summaryOffset);
printf("bufSize: %"PRIu32"\n", bw->hdr->bufSize);
printf("extensionOffset: 0x%"PRIx64"\n", bw->hdr->extensionOffset);
if(bw->hdr->nLevels) {
printf(" i level data index\n");
}
for(i=0; i<bw->hdr->nLevels; i++) {
printf("\t%"PRIu64"\t%"PRIu32"\t%"PRIx64"\t%"PRIx64"\n", i, bw->hdr->zoomHdrs->level[i], bw->hdr->zoomHdrs->dataOffset[i], bw->hdr->zoomHdrs->indexOffset[i]);
}
printf("nBasesCovered: %"PRIu64"\n", bw->hdr->nBasesCovered);
printf("minVal: %f\n", bw->hdr->minVal);
printf("maxVal: %f\n", bw->hdr->maxVal);
printf("sumData: %f\n", bw->hdr->sumData);
printf("sumSquared: %f\n", bw->hdr->sumSquared);
//Chromosome idx/name/length
if(bw->cl) {
printf("Chromosome List\n");
printf(" idx\tChrom\tLength (bases)\n");
for(i=0; i<bw->cl->nKeys; i++) {
printf(" %"PRIu64"\t%s\t%"PRIu32"\n", i, bw->cl->chrom[i], bw->cl->len[i]);
}
}
}
void bwPrintIndexNode(bwRTreeNode_t *node, int level) {
uint16_t i;
if(!node) return;
for(i=0; i<node->nChildren; i++) {
if(node->isLeaf) {
printf(" %i\t%"PRIu32"\t%"PRIu32"\t%"PRIu32"\t%"PRIu32"\t0x%"PRIx64"\t%"PRIu64"\n", level,\
node->chrIdxStart[i], \
node->baseStart[i], \
node->chrIdxEnd[i], \
node->baseEnd[i], \
node->dataOffset[i], \
node->x.size[i]);
} else {
printf(" %i\t%"PRIu32"\t%"PRIu32"\t%"PRIu32"\t%"PRIu32"\t0x%"PRIx64"\tNA\n", level,\
node->chrIdxStart[i], \
node->baseStart[i], \
node->chrIdxEnd[i], \
node->baseEnd[i], \
node->dataOffset[i]);
bwPrintIndexNode(node->x.child[i], level+1);
}
}
}
void bwPrintIndexTree(bigWigFile_t *fp) {
printf("\nIndex tree:\n");
printf("nItems:\t%"PRIu64"\n", fp->idx->nItems);
printf("chrIdxStart:\t%"PRIu32"\n", fp->idx->chrIdxStart);
printf("baseStart:\t%"PRIu32"\n", fp->idx->baseStart);
printf("chrIdxEnd:\t%"PRIu32"\n", fp->idx->chrIdxEnd);
printf("baseEnd:\t%"PRIu32"\n", fp->idx->baseEnd);
printf("idxSize:\t%"PRIu64"\n", fp->idx->idxSize);
printf(" level\tchrIdxStart\tbaseStart\tchrIdxEnd\tbaseEnd\tchild\tsize\n");
bwPrintIndexNode(fp->idx->root, 0);
}
void printIntervals(bwOverlappingIntervals_t *ints, uint32_t start) {
uint32_t i;
if(!ints) return;
for(i=0; i<ints->l; i++) {
if(ints->start && ints->end) {
printf("Interval %"PRIu32"\t%"PRIu32"-%"PRIu32": %f\n",i, ints->start[i], ints->end[i], ints->value[i]);
} else if(ints->start) {
printf("Interval %"PRIu32"\t%"PRIu32"-%"PRIu32": %f\n",i, ints->start[i], ints->start[i]+1, ints->value[i]);
} else {
printf("Interval %"PRIu32"\t%"PRIu32"-%"PRIu32": %f\n",i, start+i, start+i+1, ints->value[i]);
}
}
}
//This is an example call back function
CURLcode callBack(CURL *curl) {
CURLcode rv;
rv = curl_easy_setopt(curl, CURLOPT_USERNAME, "anonymous");
if(rv != CURLE_OK) return rv;
rv = curl_easy_setopt(curl, CURLOPT_PASSWORD, "[email protected]");
return rv;
}
int main(int argc, char *argv[]) {
bigWigFile_t *fp = NULL;
bwOverlappingIntervals_t *intervals = NULL;
double *stats = NULL;
char chrom[] = "chr1";
if(argc != 2) {
fprintf(stderr, "Usage: %s {file.bw|URL://path/file.bw}\n", argv[0]);
return 1;
}
if(bwInit(1<<17) != 0) {
fprintf(stderr, "Received an error in bwInit\n");
return 1;
}
fp = bwOpen(argv[1], callBack);
if(!fp) {
fprintf(stderr, "An error occured while opening %s\n", argv[1]);
return 1;
}
bwPrintHdr(fp);
bwPrintIndexTree(fp);
//Try to get some blocks
printf("%s:10000000-10000100 Intervals\n", chrom);
intervals = bwGetOverlappingIntervals(fp, chrom, 10000000, 10000100);
printIntervals(intervals,0);
bwDestroyOverlappingIntervals(intervals);
printf("%s:10000000-10000100 Values\n", chrom);
intervals = bwGetValues(fp, chrom, 10000000, 10000100, 0);
printIntervals(intervals,0);
bwDestroyOverlappingIntervals(intervals);
stats = bwStats(fp, chrom, 10000000, 10000100, 1, mean);
if(stats) {
printf("%s:10000000-10000100 mean: %f\n", chrom, stats[0]);
free(stats);
}
stats = bwStats(fp, chrom, 10000000, 10000100, 2, mean);
if(stats) {
printf("%s:10000000-10000100 mean: %f %f\n", chrom, stats[0], stats[1]);
free(stats);
}
stats = bwStats(fp, chrom, 10000000, 10000100, 1, dev);
if(stats) {
printf("%s:10000000-10000100 std. dev.: %f\n", chrom, stats[0]);
free(stats);
}
stats = bwStats(fp, chrom, 10000000, 10000100, 2, dev);
if(stats) {
printf("%s:10000000-10000100 std. dev.: %f %f\n", chrom, stats[0], stats[1]);
free(stats);
}
stats = bwStats(fp, chrom, 10000000, 10000100, 1, min);
if(stats) {
printf("%s:10000000-10000100 min: %f\n", chrom, stats[0]);
free(stats);
}
stats = bwStats(fp, chrom, 10000000, 10000100, 2, min);
if(stats) {
printf("%s:10000000-10000100 min: %f %f\n", chrom, stats[0], stats[1]);
free(stats);
}
stats = bwStats(fp, chrom, 10000000, 10000100, 1, max);
if(stats) {
printf("%s:10000000-10000100 max: %f\n", chrom, stats[0]);
free(stats);
}
stats = bwStats(fp, chrom, 10000000, 10000100, 2, max);
if(stats) {
printf("%s:10000000-10000100 max: %f %f\n", chrom, stats[0], stats[1]);
free(stats);
}
stats = bwStats(fp, chrom, 10000000, 10000100, 1, cov);
if(stats) {
printf("%s:10000000-10000100 coverage: %f\n", chrom, stats[0]);
free(stats);
}
stats = bwStats(fp, chrom, 10000000, 10000100, 2, cov);
if(stats) {
printf("%s:10000000-10000100 coverage: %f %f\n", chrom, stats[0], stats[1]);
free(stats);
}
bwClose(fp);
bwCleanup();
return 0;
}
| [
"[email protected]"
] | |
8ac2ee0323772ca78fc3e17847a7195b53f35859 | 73d889e4e1ad6cbcb8ae1fee53f55deb8e816d67 | /src/exec.c | 1cc3bb3bbbf101db281e5e743acdb8e8c8dc08b5 | [] | no_license | iCodeIN/forklang | d5b5f1044ebaf1b45a2a294ebcafb0dc45856d37 | bf0b06f48d3c84c437bfc810785fc532b4a59d12 | refs/heads/master | 2023-08-17T11:14:04.749041 | 2021-05-24T11:21:59 | 2021-05-24T11:21:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 10,605 | c | #include "exec.h"
#include "prelude.h"
#include "hashset.h"
#include "memreg.h"
#include <limits.h>
MemBlock* sat_alloc_registry = NULL;
void register_sat (void* ptr) { register_alloc(&sat_alloc_registry, ptr); }
void free_sat () { register_free(&sat_alloc_registry); }
Env blank_env (RProg* prog) {
Env env = malloc(prog->nbvar * sizeof(int));
for (uint i = 0; i < prog->nbvar; i++) {
env[i] = 0;
}
return env;
}
State init_state (RProg* prog) {
State state = malloc(prog->nbproc * sizeof(RStep*));
for (uint i = 0; i < prog->nbproc; i++) {
state[i] = prog->procs[i].entrypoint;
}
return state;
}
Diff* make_diff (Diff* parent) {
Diff* diff = malloc(sizeof(Diff));
register_sat(diff);
diff->parent = parent;
diff->pid_advance = (uint)(-1);
diff->new_step = NULL;
diff->var_assign = NULL;
diff->val_assign = 0;
diff->depth = parent ? parent->depth + 1 : 1;
return diff;
}
Diff* dup_diff (Diff* src) {
Diff* cpy = malloc(sizeof(Diff));
register_sat(cpy);
memcpy(cpy, src, sizeof(Diff));
return cpy;
}
// duplicate a computation to avoid side effects
Compute* dup_compute (Compute* comp) {
Compute* cpy = malloc(sizeof(Compute));
// copy by reference so that sat is updated
cpy->sat = comp->sat;
cpy->prog = comp->prog;
cpy->diff = comp->diff;
// copy by value so that environment is not modified
size_t envsize = comp->prog->nbvar * sizeof(int);
size_t statesize = comp->prog->nbproc * sizeof(RStep);
cpy->env = malloc(envsize);
cpy->state = malloc(statesize);
memcpy(cpy->env, comp->env, envsize);
memcpy(cpy->state, comp->state, statesize);
return cpy;
}
void free_compute (Compute* comp) {
free(comp->env);
free(comp->state);
free(comp);
}
Sat* blank_sat (RProg* prog) {
Sat* sat = malloc(prog->nbcheck * sizeof(Compute*));
register_sat(sat);
for (uint i = 0; i < prog->nbcheck; i++) {
sat[i] = NULL;
}
return sat;
}
// Macro concatenation for concise and extensible operator definition
#define APP_BIN_E_LT <
#define APP_BIN_E_GT >
#define APP_BIN_E_LEQ >=
#define APP_BIN_E_GEQ >=
#define APP_BIN_E_EQ ==
#define APP_BIN_E_AND &&
#define APP_BIN_E_OR ||
#define APP_BIN_E_ADD +
#define APP_BIN_E_SUB -
#define APP_BIN_E_MUL *
#define APP_BIN_E_DIV /
#define APP_BIN_E_MOD %
#define APP_MON_E_NOT !
#define APP_MON_E_NEG -
#define APPLY_BINOP(lhs, o, rhs) \
o: return lhs APP_BIN_##o rhs
#define APPLY_MONOP(o, val) \
o: return APP_MON_##o val
// Straightforward expression evaluation
int eval_expr (RExpr* expr, Env env) {
fflush(stdout);
switch (expr->type) {
case E_VAR: return env[expr->val.var->id];
case E_VAL: return (int)(expr->val.digit);
case MATCH_ANY_BINOP(): {
int lhs = eval_expr(expr->val.binop->lhs, env);
if (lhs == INT_MIN) return INT_MIN; // divzero error bubbles up
int rhs = eval_expr(expr->val.binop->rhs, env);
if (rhs == INT_MIN) return INT_MIN;
if (rhs == 0 && (expr->type == E_DIV || expr->type == E_MOD)) {
return INT_MIN; // raise division error
}
switch (expr->type) {
case APPLY_BINOP(lhs, E_LT, rhs);
case APPLY_BINOP(lhs, E_GT, rhs);
case APPLY_BINOP(lhs, E_EQ, rhs);
case APPLY_BINOP(lhs, E_AND, rhs);
case APPLY_BINOP(lhs, E_OR, rhs);
case APPLY_BINOP(lhs, E_ADD, rhs);
case APPLY_BINOP(lhs, E_SUB, rhs);
case APPLY_BINOP(lhs, E_LEQ, rhs);
case APPLY_BINOP(lhs, E_GEQ, rhs);
case APPLY_BINOP(lhs, E_MUL, rhs);
case APPLY_BINOP(lhs, E_DIV, rhs);
case APPLY_BINOP(lhs, E_MOD, rhs);
case E_RANGE:
if (lhs > rhs) return INT_MIN;
int pick = lhs + (rand() % (rhs - lhs + 1));
return pick;
default: UNREACHABLE("%d is not a binary operator", expr->type);
}
}
case MATCH_ANY_MONOP(): {
int val = eval_expr(expr->val.subexpr, env);
switch (expr->type) {
case APPLY_MONOP(E_NOT, val);
case APPLY_MONOP(E_NEG, val);
default: UNREACHABLE("%d is not a unary operator", expr->type);
}
}
default: UNREACHABLE("%d is not a valid expr discriminant", expr->type);
}
}
bool exec_assign (RAssign* assign, Env env, Diff* diff) {
int val = eval_expr(assign->expr, env);
if (val != INT_MIN) {
env[assign->target->id] = eval_expr(assign->expr, env);
diff->var_assign = assign->target;
diff->val_assign = env[assign->target->id];
return 1;
} else {
return 0;
}
}
// Randomly choose a successor of a determined computation step
// and update the environment
// Returns the new state
RStep* exec_step_random (RStep* step, Env env, Diff* diff) {
if (!step) return step; // NULL, blocked
if (step->assign) {
if (!exec_assign(step->assign, env, diff)) return step;
// Blocked by null division
}
uint satisfied [step->nbguarded];
uint nbsat = 0;
for (uint i = 0; i < step->nbguarded; i++) {
int res = eval_expr(step->guarded[i].cond, env);
if (res && res != INT_MIN) {
satisfied[nbsat++] = i;
}
}
if (step->nbguarded == 0) {
diff->new_step = step->unguarded; // unconditional advancement
} else if (nbsat == 0) {
if (step->unguarded) {
diff->new_step = step->unguarded; // else clause
} else {
diff->new_step = step; // blocked
}
} else {
int choice = rand() % (int)nbsat;
diff->new_step = step->guarded[satisfied[choice]].next; // satisfied guard
}
return diff->new_step;
}
// Randomly execute a program (many times)
Sat* exec_prog_random (RProg* prog) {
Compute comp;
comp.sat = blank_sat(prog);
comp.prog = prog;
for (uint j = 0; j < 100; j++) {
comp.env = blank_env(prog);
comp.state = init_state(prog);
comp.diff = make_diff(NULL);
for (uint i = 0; i < 100; i++) {
// update reachability
// (do this _before_ simulating a step so that if a check
// is initially valid it is counted)
for (uint k = 0; k < prog->nbcheck; k++) {
int res = eval_expr(prog->checks[k].cond, comp.env);
if (res == 0 || res == INT_MIN) continue;
if (!comp.sat[k]) {
// found a solution
comp.sat[k] = comp.diff;
} else if (comp.sat[k] && comp.diff->depth < comp.sat[k]->depth) {
// found a shorter solution
comp.sat[k] = comp.diff;
}
}
// duplicate zero check, preferred to duplicating all the other code
if (!prog->nbproc) break;
// choose the process that will advance
uint procid = (uint)rand() % prog->nbproc;
// calculate next step of the computation
Diff* old_diff = comp.diff;
RStep* old_step = comp.state[procid];
comp.diff = make_diff(old_diff);
comp.diff->pid_advance = procid;
comp.state[procid] = exec_step_random(old_step, comp.env, comp.diff);
if (comp.diff->new_step == old_step) {
// process is blocked, do not record empty diff
comp.diff = old_diff;
}
}
free(comp.env);
free(comp.state);
}
return comp.sat;
}
// Explore (i.e. add to the worklist with their updated environment)
// all successors of a state
void exec_step_all_proc (HashSet* seen, WorkList* todo, uint pid, Compute* comp) {
RStep* step = comp->state[pid];
if (!step) return; // NULL, blocked
Diff* diff = make_diff(comp->diff);
diff->pid_advance = pid;
if (step->assign) {
if (!exec_assign(step->assign, comp->env, diff)) return;
// Blocked by null division
}
// find all satisfied guards
RStep* satisfied [step->nbguarded];
uint nbsat = 0;
for (uint i = 0; i < step->nbguarded; i++) {
int res = eval_expr(step->guarded[i].cond, comp->env);
if (res && res != INT_MIN) {
satisfied[nbsat++] = step->guarded[i].next;
}
}
RStep** successors;
uint nbsucc;
if (step->nbguarded == 0) {
// unconditional advancement
successors = &step->unguarded;
nbsucc = 1;
} else if (nbsat == 0) {
if (step->unguarded) {
// else clause
successors = &step->unguarded;
nbsucc = 1;
} else {
// blocked
nbsucc = 0;
}
} else {
// satisfied guards
successors = satisfied;
nbsucc = nbsat;
}
// enqueue all successors
for (uint i = 0; i < nbsucc; i++) {
comp->state[pid] = successors[i];
// record only if not already seen
if (try_insert(seen, comp)) {
comp->diff = dup_diff(diff);
comp->diff->new_step = comp->state[pid];
enqueue(todo, comp);
}
}
}
Sat* exec_prog_all (RProg* prog) {
Sat* sat = blank_sat(prog);
// setup computation state
Compute* comp = malloc(sizeof(Compute));
comp->sat = sat;
comp->prog = prog;
comp->env = blank_env(prog);
comp->state = init_state(prog);
comp->diff = make_diff(NULL);
// explored records
HashSet* seen = create_hashset(200);
WorkList* todo = create_worklist();
insert(seen, comp, hash(comp));
enqueue(todo, comp);
free_compute(comp);
while ((comp = dequeue(todo))) {
// loop as long as some configurations are unexplored
for (uint k = 0; k < prog->nbcheck; k++) {
int res = eval_expr(prog->checks[k].cond, comp->env);
if (res == 0 || res == INT_MIN) continue;
if (!comp->sat[k]) {
// found a solution
comp->sat[k] = comp->diff;
}
}
// advance all processes in parallel
for (uint k = 0; k < prog->nbproc; k++) {
Compute* tmp = dup_compute(comp);
exec_step_all_proc(seen, todo, k, tmp);
free_compute(tmp);
}
free_compute(comp);
}
free_hashset(seen);
free(todo);
return sat;
}
| [
"[email protected]"
] | |
b4e6bbff816ccdb74a36ca084b21b4882c1439e2 | 5d583c3a64e6928b992d8792c792da493408e1e3 | /myc51project/becase/cycle.c | bb4fe0218f0f3748662f49b7a8e3bda78a8956ea | [] | no_license | zsc2333/my-projects-51- | de9812e17d6c1dfa03f93ead3a2a0f4117e4bf63 | 0cc3464b58f98712639877192b394cbf23d85a9c | refs/heads/master | 2020-11-25T07:03:34.483240 | 2019-12-17T07:23:52 | 2019-12-17T07:23:52 | 228,550,080 | 0 | 0 | null | null | null | null | GB18030 | C | false | false | 4,184 | c | #define ARRAYA
#include"array.h"
/*******************************************************************************
* 函 数 名 : cycle
* 函数功能 : 汉字循环显示函数
* 输 入 : 无
* 输 出 : 无
*******************************************************************************/
void cycle()
{
int k, j, ms;
//--点阵显示数组定义--//
unsigned char tab0[] = {0x00, 0x01, 0x00, 0x02, 0x00, 0x04, 0x00, 0x08,
0x00, 0x10, 0x00, 0x20, 0x00, 0x40, 0x00, 0x80,
0x01, 0x00, 0x02, 0x00, 0x04, 0x00, 0x08, 0x00,
0x10, 0x00, 0x20, 0x00, 0x40, 0x00, 0x80, 0x00};
unsigned char code tab10[] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
//--单--//
unsigned char code tab1[] ={16,4,32,2,248,15,136,8,136,8,248,
15,136,8,136,8,248,15,128,0,128,
0,254,63,128,0,128,0,0,0,0,0};
//--片--//
unsigned char code tab2[] ={0,2,8,2,8,2,8,2,248,31,8,
0,8,0,8,0,248,7,8,4,8,4,
8,4,4,4,2,4,0,0,0,0};
//--机--//
unsigned char code tab3[] ={8,0,136,15,136,8,190,8,136,
8,136,8,156,8,172,8,138,8,136,
8,136,8,72,40,72,40,40,48,0,0,0,0};
//--原--//
unsigned char code tab4[] ={248,63,8,2,8,1,200,31,72,
16,200,31,72,16,200,31,8,2,
72,18,72,34,36,34,4,2,130,3,0,0,0,0};
//--理--//
unsigned char code tab5[] ={0,0,192,31,94,18,72,18,
200,31,72,18,94,18,200,31,8,
2,8,2,216,31,6,2,0,2,224,63,0,0,0,0};
//--及--//
unsigned char code tab6[] ={0,0,252,7,16,4,16,2,
16,2,16,15,16,8,80,4,80,4,
136,2,8,1,132,2,98,12,24,48,0,0,0,0};
//--应--//
unsigned char code tab7[] ={128,0,0,1,252,63,4,0,
132,0,4,17,4,18,20,18,36,16,
68,8,68,8,4,4,4,2,242,63,0,0,0,0};
//--用--//
unsigned char code tab8[] ={0,0,248,63,8,33,8,33,8,
33,248,63,8,33,8,33,248,63,8,
33,8,33,4,33,4,33,2,56,0,0,0,0};
unsigned char code tab9[] = {0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0};
//--定义一个指针数组指向每个汉字--//
uchar *p[] =
{tab10, tab1, tab2, tab3, tab4, tab5, tab6, tab7, tab8, tab9};
while(1)
{
for(ms = 20; ms > 0; ms--) //移动定格时间设置
{
for(k = 0; k < 16; k++) //显示一个字
{
HC595SendData(~(*(p[0] + 2*(k+j) + 1)),~(*(p[0] + 2*(k+j) )),tab0[2*k],tab0[2*k + 1]); //因为字模软件取的数组是高电平有效,所以列要取反
}
//--清屏--//
HC595SendData(0xff,0xff,0,0); //清屏
}
j++;
if(j == (10*13) )
{
j = 0;
}
}
}
/*******************************************************************************
* 函 数 名 : HC595SendData
* 函数功能 : 通过595发送四个字节的数据
* 输 入 : BT3:第四个595输出数值
* * BT2: 第三个595输出数值
* * BT1:第二个595输出数值
* * BT0:第一个595输出数值
* 输 出 : 无
*******************************************************************************/
void HC595SendData( uchar BT3, uchar BT2,uchar BT1,uchar BT0)
{
uchar i;
//--发送第一个字节--//
for(i=0;i<8;i++)
{
MOSIO = BT3 >> 7 ; //从高位到低位
BT3 <<= 1;
S_CLK = 0;
S_CLK = 1;
}
//--发送第一个字节--//
for(i=0;i<8;i++)
{
MOSIO = BT2 >>7; //从高位到低位
BT2 <<= 1;
S_CLK = 0;
S_CLK = 1;
}
//--发送第一个字节--//
for(i=0;i<8;i++)
{
MOSIO = BT1 >> 7; //从高位到低位
BT1 <<= 1;
S_CLK = 0;
S_CLK = 1;
}
//--发送第一个字节--//
for(i=0;i<8;i++)
{
MOSIO = BT0 >> 7; //从高位到低位
BT0 <<= 1;
S_CLK = 0;
S_CLK = 1;
}
//--输出--//
R_CLK = 0; //set dataline low
R_CLK = 1; //片选
R_CLK = 0; //set dataline low
}
| [
"[email protected]"
] | |
2700230a874763b79c4cb268436171cf9419b933 | b99bc223f144c167d80ae648c5498e05fd3e6724 | /bin/echo/echo.c | 42933694e42836202a77c8b1a29f73367a825684 | [
"MIT"
] | permissive | mvshpavan/OS_S15 | e068b4fbced403db33cf085244a58d4a3265dd1c | c802545c2d0f2c1b90a16a1ef8a09c599ba80fbf | refs/heads/master | 2021-01-10T06:53:23.430282 | 2015-05-08T15:21:37 | 2015-05-08T15:21:37 | 45,489,293 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 761 | c | #include <stdio.h>
#include <stdlib.h>
int is_envp(char *env, char* envp[]);
int main(int argc, char* argv[], char* envp[]){
int i;
if(argc==1){
printf("\n");
return 0;
}
for(i=1;i<argc;i++){
/* check if it is an environment variable */
if(argv[i][0]=='$'){
if(is_envp((char *)argv[i]+1, envp)==0){
printf("%s: Undefined variable\n", (char *)argv[i]+1);
return 0;
}
}
else{
printf("%s ",argv[i]);
}
}
printf("\n");
return 0;
}
int is_envp(char *env, char* envp[]){
int i=0,j=0;
for(;envp[i]!=NULL;i++){
j=0;
while(envp[i][j] != '='){
if(envp[i][j] != env[j]){
break;
}
j++;
}
if(envp[i][j] == '=' && env[j]=='\0'){
printf("%s ", (char *)envp[i] + j+1);
return 1;
}
}
return 0;
}
| [
"[email protected]"
] | |
600f06a5e7f3b345229b1d711fb93dccb272acf4 | 11155964be83fa2ac4887fd43ac0afccdd2b083c | /0x06-pointers_arrays_strings/holberton.h | 3d6ac77762d66589580315b7228062f030f455b0 | [] | no_license | louismaximo/alx-low_level_programming | a0c0916033ad9a1224f983a7f251b9f1f974eed7 | 87bb4bf895b1bfd17a903a2f75bbf568f449ab0a | refs/heads/main | 2023-06-11T17:06:48.278906 | 2021-07-05T17:47:24 | 2021-07-05T17:47:24 | 377,888,534 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 416 | h | #ifndef HOLBERTON_H
#define HOLBERTON_H
#include <stdio.h>
char *_strcat(char *dest, char *src);
char *_strncat(char *dest, char *src, int n);
char *_strncpy(char *dest, char *src, int n);
int _strcmp(char *s1, char *s2);
void reverse_array(int *a, int n);
char *string_toupper(char *);
char *cap_string(char *);
char *leet(char *);
char *rot13(char *);
int _putchar(char c);
void print_number(int n);
#endif
| [
"[email protected]"
] | |
c88c451ea48e23c3590d17a5b030d9912efdb13a | 9ba05cad379e028102cf895350c8bb5b352047ae | /ZC_install/ZC_install/resource.h | e77645cd3a1b78d84bf8e3b7be95ee41fba018a0 | [] | no_license | 124327288/ZCloudDesktop_in_uninstall | f8635b1d60955ef2ff0c8ea5fff9abf4cfab8fdc | 8eca0b96bbe460f7185e766362e331fbad750e98 | refs/heads/master | 2021-05-30T02:47:13.117493 | 2015-05-15T07:47:13 | 2015-05-15T07:47:13 | null | 0 | 0 | null | null | null | null | GB18030 | C | false | false | 560 | h | //{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by ZC_install.rc
// 新对象的下一组默认值
//
#define IDR_RT_MANIFEST 1
#define IDR_ZHICLOUD_ZIP 10
#define IDI_ICON1 101
#define IDI_ICON2 102
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 101
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1001
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
| [
"[email protected]"
] | |
904a3dba7d6a1864dc309ccb10168d3d094f314b | fae45a23a885b72cd27c0ad1b918ad754b5de9fd | /benchmarks/accuracy_and_overhead/parsec-benchmark/pkgs/libs/mesa/src/src/mesa/drivers/dri/s3v/s3v_regs.h | 26a7c54af5cece7d6a7f683b837ec0241f4a8896 | [
"LicenseRef-scancode-free-unknown",
"MIT"
] | permissive | bitslab/CompilerInterrupts | 6678700651c7c83fd06451c94188716e37e258f0 | 053a105eaf176b85b4c0d5e796ac1d6ee02ad41b | refs/heads/main | 2023-06-24T18:09:43.148845 | 2021-07-26T17:32:28 | 2021-07-26T17:32:28 | 342,868,949 | 3 | 3 | MIT | 2021-07-19T15:38:30 | 2021-02-27T13:57:16 | C | UTF-8 | C | false | false | 13,218 | h | /*
* Author: Max Lingua <[email protected]>
*/
#ifndef _S3V_REG_H
#define _S3V_REG_H
#define S3V_REGS_NUM 256
/************
* DMA REGS *
************/
#define S3V_DMA_ID 0
#define S3V_DMA_REG 0x8590
#define S3V_DMA_WRITEP_ID 1
#define S3V_DMA_WRITEP_REG 0x8594
#define S3V_DMA_READP_ID 2
#define S3V_DMA_READP_REG 0x8598
#define S3V_DMA_ENABLE_ID 3
#define S3V_DMA_ENABLE_REG 0x859C
#define S3V_DMA_UPDATE_ID 4
#define S3V_DMA_UPDATE_REG 0x10000
/***************
* STATUS REGS *
***************/
#define S3V_STAT_ID 10
#define S3V_STAT_REG 0x8504
#define S3V_STAT_VSYNC_ID 11
#define S3V_STAT_VSYNC_REG 0x8505
#define S3V_STAT_3D_DONE_ID 12
#define S3V_STAT_3D_DONE_REG 0x8506
#define S3V_STAT_FIFO_OVER_ID 13
#define S3V_STAT_FIFO_OVER_REG 0x8508
#define S3V_STAT_FIFO_EMPTY_ID 14
#define S3V_STAT_FIFO_EMPTY_REG 0x850C
#define S3V_STAT_HDMA_DONE_ID 15
#define S3V_STAT_HDMA_DONE_REG 0x8514
#define S3V_STAT_CDMA_DONE_ID 16
#define S3V_STAT_CDMA_DONE_REG 0x8524
#define S3V_STAT_3D_FIFO_EMPTY_ID 17
#define S3V_STAT_3D_FIFO_EMPTY_REG 0x8544
#define S3V_STAT_LPB_ID 18
#define S3V_STAT_LPB_REG 0x8584
#define S3V_STAT_3D_BUSY_ID 19
#define S3V_STAT_3D_BUSY_REG 0x8704
/***********
* 2D REGS *
***********/
#define S3V_BITBLT_ID 30
#define S3V_BITBLT_REG 0xA400
#define S3V_BITBLT_SRC_BASE_ID 31
#define S3V_BITBLT_SRC_BASE_REG 0xA4D4
#define S3V_BITBLT_DEST_BASE_ID 32
#define S3V_BITBLT_DEST_BASE_REG 0xA4D8
#define S3V_BITBLT_CLIP_L_R_ID 33
#define S3V_BITBLT_CLIP_L_R_REG 0xA4DC
#define S3V_BITBLT_CLIP_T_B_ID 34
#define S3V_BITBLT_CLIP_T_B_REG 0xA4E0
#define S3V_BITBLT_DEST_SRC_STRIDE_ID 35
#define S3V_BITBLT_DEST_SRC_STRIDE_REG 0xA4E4
#define S3V_BITBLT_MONO_PAT0_ID 36
#define S3V_BITBLT_MONO_PAT0_REG 0xA4E8
#define S3V_BITBLT_MONO_PAT1_ID 37
#define S3V_BITBLT_MONO_PAT1_REG 0xA4EC
#define S3V_BITBLT_PAT_BG_COLOR_ID 38
#define S3V_BITBLT_PAT_BG_COLOR_REG 0xA4F0
#define S3V_BITBLT_PAT_FG_COLOR_ID 39
#define S3V_BITBLT_PAT_FG_COLOR_REG 0xA4F4
#define S3V_BITBLT_CMDSET_ID 40
#define S3V_BITBLT_CMDSET_REG 0xA500
#define S3V_BITBLT_WIDTH_HEIGHT_ID 41
#define S3V_BITBLT_WIDTH_HEIGHT_REG 0xA504
#define S3V_BITBLT_SRC_X_Y_ID 42
#define S3V_BITBLT_SRC_X_Y_REG 0xA508
#define S3V_BITBLT_DEST_X_Y_ID 43
#define S3V_BITBLT_DEST_X_Y_REG 0xA50C
#define S3V_2DLINE_ID 44
#define S3V_2DLINE_REG 0xA800
#define S3V_2DPOLY_ID 45
#define S3V_2DPOLY_REG 0xAC00
/***************
* 3DLINE REGS *
***************/
/* base regs */
#define S3V_3DLINE_ID 50
#define S3V_3DLINE_REG 0xB000
#define S3V_3DLINE_Z_BASE_ID 51
#define S3V_3DLINE_Z_BASE_REG 0xB0D4
#define S3V_3DLINE_SRC_BASE_ID 52 /* it is the same reg */
#define S3V_3DLINE_SRC_BASE_REG 0xB0D4
#define S3V_3DLINE_DEST_BASE_ID 53
#define S3V_3DLINE_DEST_BASE_REG 0xB0D8
#define S3V_3DLINE_CLIP_L_R_ID 54
#define S3V_3DLINE_CLIP_L_R_REG 0xB0DC
#define S3V_3DLINE_CLIP_T_B_ID 55
#define S3V_3DLINE_CLIP_T_B_REG 0xB0E0
#define S3V_3DLINE_DEST_SRC_STRIDE_ID 56
#define S3V_3DLINE_DEST_SRC_STRIDE_REG 0xB0E4
#define S3V_3DLINE_Z_STRIDE_ID 57
#define S3V_3DLINE_Z_STRIDE_REG 0xB0E8
#define S3V_3DLINE_TEX_BASE_ID 58
#define S3V_3DLINE_TEX_BASE_REG 0xB0EC
#define S3V_3DLINE_TEX_B_COLOR_ID 59
#define S3V_3DLINE_TEX_B_COLOR_REG 0xB0F0
#define S3V_3DLINE_FOG_COLOR_ID 60
#define S3V_3DLINE_FOG_COLOR_REG 0xB0F4
#define S3V_3DLINE_COLOR0_ID 61
#define S3V_3DLINE_COLOR0_REG 0xB0F8
#define S3V_3DLINE_COLOR1_ID 62
#define S3V_3DLINE_COLOR1_REG 0xB0FC
#define S3V_3DLINE_CMDSET_ID 63
#define S3V_3DLINE_CMDSET_REG 0xB100 /* special */
/* tex regs */
/* FIXME: shouldn't it be a 1D tex for lines? */
#define S3V_3DLINE_BASEV_ID 64
#define S3V_3DLINE_BASEV_REG 0xB104
#define S3V_3DLINE_BASEU_ID 65
#define S3V_3DLINE_BASEU_REG 0xB108
#define S3V_3DLINE_WXD_ID 66
#define S3V_3DLINE_WXD_REG 0xB10C
#define S3V_3DLINE_WYD_ID 67
#define S3V_3DLINE_WYD_REG 0xB110
#define S3V_3DLINE_WSTART_ID 68
#define S3V_3DLINE_WSTART_REG 0xB114
#define S3V_3DLINE_DXD_ID 69
#define S3V_3DLINE_DXD_REG 0xB118
#define S3V_3DLINE_VXD_ID 70
#define S3V_3DLINE_VXD_REG 0xB11C
#define S3V_3DLINE_UXD_ID 71
#define S3V_3DLINE_UXD_REG 0xB120
#define S3V_3DLINE_DYD_ID 72
#define S3V_3DLINE_DYD_REG 0xB124
#define S3V_3DLINE_VYD_ID 73
#define S3V_3DLINE_VYD_REG 0xB128
#define S3V_3DLINE_UYD_ID 74
#define S3V_3DLINE_UYD_REG 0xB12C
#define S3V_3DLINE_DSTART_ID 75
#define S3V_3DLINE_DSTART_REG 0xB130
#define S3V_3DLINE_VSTART_ID 76
#define S3V_3DLINE_VSTART_REG 0xB134
#define S3V_3DLINE_USTART_ID 77
#define S3V_3DLINE_USTART_REG 0xB138
/* gourad regs */
#define S3V_3DLINE_GBD_ID 78
#define S3V_3DLINE_GBD_REG 0xB144
#define S3V_3DLINE_ARD_ID 79
#define S3V_3DLINE_ARD_REG 0xB148
#define S3V_3DLINE_GS_BS_ID 80
#define S3V_3DLINE_GS_BS_REG 0xB14C
#define S3V_3DLINE_AS_RS_ID 81
#define S3V_3DLINE_AS_RS_REG 0xB150
/* vertex regs */
#define S3V_3DLINE_DZ_ID 82
#define S3V_3DLINE_DZ_REG 0xB158
#define S3V_3DLINE_ZSTART_ID 83
#define S3V_3DLINE_ZSTART_REG 0xB15C
#define S3V_3DLINE_XEND0_END1_ID 84
#define S3V_3DLINE_XEND0_END1_REG 0xB16C
#define S3V_3DLINE_DX_ID 85
#define S3V_3DLINE_DX_REG 0xB170
#define S3V_3DLINE_XSTART_ID 86
#define S3V_3DLINE_XSTART_REG 0xB174
#define S3V_3DLINE_YSTART_ID 87
#define S3V_3DLINE_YSTART_REG 0xB178
#define S3V_3DLINE_YCNT_ID 88
#define S3V_3DLINE_YCNT_REG 0xB17C
/**************
* 3DTRI REGS *
**************/
/* base regs */
#define S3V_3DTRI_ID 100
#define S3V_3DTRI_REG 0xB400
#define S3V_3DTRI_Z_BASE_ID 101
#define S3V_3DTRI_Z_BASE_REG 0xB4D4
#define S3V_3DTRI_SRC_BASE_ID 102 /* it is the same reg */
#define S3V_3DTRI_SRC_BASE_REG 0xB4D4
#define S3V_3DTRI_DEST_BASE_ID 103
#define S3V_3DTRI_DEST_BASE_REG 0xB4D8
#define S3V_3DTRI_CLIP_L_R_ID 104
#define S3V_3DTRI_CLIP_L_R_REG 0xB4DC
#define S3V_3DTRI_CLIP_T_B_ID 105
#define S3V_3DTRI_CLIP_T_B_REG 0xB4E0
#define S3V_3DTRI_DEST_SRC_STRIDE_ID 106
#define S3V_3DTRI_DEST_SRC_STRIDE_REG 0xB4E4
#define S3V_3DTRI_Z_STRIDE_ID 107
#define S3V_3DTRI_Z_STRIDE_REG 0xB4E8
#define S3V_3DTRI_TEX_BASE_ID 108
#define S3V_3DTRI_TEX_BASE_REG 0xB4EC
#define S3V_3DTRI_TEX_B_COLOR_ID 109
#define S3V_3DTRI_TEX_B_COLOR_REG 0xB4F0
#define S3V_3DTRI_FOG_COLOR_ID 110
#define S3V_3DTRI_FOG_COLOR_REG 0xB4F4
#define S3V_3DTRI_COLOR0_ID 111
#define S3V_3DTRI_COLOR0_REG 0xB4F8
#define S3V_3DTRI_COLOR1_ID 112
#define S3V_3DTRI_COLOR1_REG 0xB4FC
#define S3V_3DTRI_CMDSET_ID 113 /* special */
#define S3V_3DTRI_CMDSET_REG 0xB500
/* tex regs */
#define S3V_3DTRI_BASEV_ID 114
#define S3V_3DTRI_BASEV_REG 0xB504
#define S3V_3DTRI_BASEU_ID 115
#define S3V_3DTRI_BASEU_REG 0xB508
#define S3V_3DTRI_WXD_ID 116
#define S3V_3DTRI_WXD_REG 0xB50C
#define S3V_3DTRI_WYD_ID 117
#define S3V_3DTRI_WYD_REG 0xB510
#define S3V_3DTRI_WSTART_ID 118
#define S3V_3DTRI_WSTART_REG 0xB514
#define S3V_3DTRI_DXD_ID 119
#define S3V_3DTRI_DXD_REG 0xB518
#define S3V_3DTRI_VXD_ID 120
#define S3V_3DTRI_VXD_REG 0xB51C
#define S3V_3DTRI_UXD_ID 121
#define S3V_3DTRI_UXD_REG 0xB520
#define S3V_3DTRI_DYD_ID 122
#define S3V_3DTRI_DYD_REG 0xB524
#define S3V_3DTRI_VYD_ID 123
#define S3V_3DTRI_VYD_REG 0xB528
#define S3V_3DTRI_UYD_ID 124
#define S3V_3DTRI_UYD_REG 0xB52C
#define S3V_3DTRI_DSTART_ID 125
#define S3V_3DTRI_DSTART_REG 0xB530
#define S3V_3DTRI_VSTART_ID 126
#define S3V_3DTRI_VSTART_REG 0xB534
#define S3V_3DTRI_USTART_ID 127
#define S3V_3DTRI_USTART_REG 0xB538
/* gourad regs */
#define S3V_3DTRI_GBX_ID 128
#define S3V_3DTRI_GBX_REG 0xB53C
#define S3V_3DTRI_ARX_ID 129
#define S3V_3DTRI_ARX_REG 0xB540
#define S3V_3DTRI_GBY_ID 130
#define S3V_3DTRI_GBY_REG 0xB544
#define S3V_3DTRI_ARY_ID 131
#define S3V_3DTRI_ARY_REG 0xB548
#define S3V_3DTRI_GS_BS_ID 132
#define S3V_3DTRI_GS_BS_REG 0xB54C
#define S3V_3DTRI_AS_RS_ID 133
#define S3V_3DTRI_AS_RS_REG 0xB550
/* vertex regs */
#define S3V_3DTRI_ZXD_ID 134
#define S3V_3DTRI_ZXD_REG 0xB554
#define S3V_3DTRI_ZYD_ID 135
#define S3V_3DTRI_ZYD_REG 0xB558
#define S3V_3DTRI_ZSTART_ID 136
#define S3V_3DTRI_ZSTART_REG 0xB55C
#define S3V_3DTRI_TXDELTA12_ID 137
#define S3V_3DTRI_TXDELTA12_REG 0xB560
#define S3V_3DTRI_TXEND12_ID 138
#define S3V_3DTRI_TXEND12_REG 0xB564
#define S3V_3DTRI_TXDELTA01_ID 139
#define S3V_3DTRI_TXDELTA01_REG 0xB568
#define S3V_3DTRI_TXEND01_ID 140
#define S3V_3DTRI_TXEND01_REG 0xB56C
#define S3V_3DTRI_TXDELTA02_ID 141
#define S3V_3DTRI_TXDELTA02_REG 0xB570
#define S3V_3DTRI_TXSTART02_ID 142
#define S3V_3DTRI_TXSTART02_REG 0xB574
#define S3V_3DTRI_TYS_ID 143
#define S3V_3DTRI_TYS_REG 0xB578
#define S3V_3DTRI_TY01_Y12_ID 144
#define S3V_3DTRI_TY01_Y12_REG 0xB57C
/* COMMANDS (to 0xB100 [lines] or 0xB500 [tris]) */
/* Auto execute */
#define AUTO_EXEC_MASK 0x00000001
#define AUTO_EXEC_OFF (0x0)
#define AUTO_EXEC_ON (0x1)
/* HW clipping */
#define HW_CLIP_MASK 0x00000002
#define HW_CLIP_OFF (0x0 << 1)
#define HW_CLIP_ON (0x1 << 1)
/* Destination color */
#define DEST_COL_MASK 0x0000001c
#define DEST_COL_PAL (0x0 << 2) /* 8 bpp - palettized */
#define DEST_COL_1555 (0x1 << 2) /* 16 bpp - ZRGB */
#define DEST_COL_888 (0x2 << 2) /* 24 bpp - RGB */
/* Texture color */
#define TEX_COL_MASK 0x000000e0
#define TEX_COL_ARGB8888 (0x0 << 5) /* 32 bpp - ARGB */
#define TEX_COL_ARGB4444 (0x1 << 5) /* 16 bpp - ARGB */
#define TEX_COL_ARGB1555 (0x2 << 5) /* 16 bpp - ARGB */
#define TEX_COL_ALPHA4 (0x3 << 5) /* 8 bpp - ALPHA4 */
#define TEX_COL_BLEND4_LOW (0x4 << 5) /* 4 bpp - BLEND4 low nibble */
#define TEX_COL_BLEND4_HIGH (0x5 << 5) /* 4 bpp - BLEND4 high nibble */
#define TEX_COL_PAL (0x6 << 5) /* 8 bpp - palettized */
#define TEX_COL_YUV (0x7 << 5) /* 16 bpp - YUV */
/* Mipmap level */
#define MIP_MASK 0x00000f00
#define MIPMAP_LEVEL(s) (s << 8) /* 8 -> 11 bits */
/* Texture filtering */
#define TEX_FILTER_MASK 0x00007000
#define MIP_NEAREST (0x0 << 12)
#define LINEAR_MIP_NEAREST (0x1 << 12)
#define MIP_LINEAR (0x2 << 12)
#define LINEAR_MIP_LINEAR (0x3 << 12)
#define NEAREST (0x4 << 12)
#define FAST_BILINEAR (0x5 << 12)
#define LINEAR (0x6 << 12)
/* Texture blending */
#define TEX_BLEND_MAKS 0x00018000
#define TEX_REFLECT (0x0 << 15)
#define TEX_MODULATE (0x1 << 15)
#define TEX_DECAL (0x2 << 15)
/* Fog */
#define FOG_MASK 0x00020000
#define FOG_OFF (0x0 << 17)
#define FOG_ON (0x1 << 17)
/* Alpha blending */
#define ALPHA_BLEND_MASK 0x000c0000
#define ALPHA_OFF (0x0 << 18) | (0x0 << 19)
#define ALPHA_TEX (0x2 << 18)
#define ALPHA_SRC (0x3 << 18)
/* Depth compare mode */
#define Z_MODE_MASK 0x00700000
#define Z_NEVER (0x0 << 20)
#define Z_GREATER (0x1 << 20)
#define Z_EQUAL (0x2 << 20)
#define Z_GEQUAL (0x3 << 20)
#define Z_LESS (0x4 << 20)
#define Z_NOTEQUAL (0x5 << 20)
#define Z_LEQUAL (0x6 << 20)
#define Z_ALWAYS (0x7 << 20)
/* Depth update */
#define Z_UPDATE_MASK 0x00800000
#define Z_UPDATE_OFF (0x0 << 23) /* disable z update */
#define Z_UPDATE_ON (0x1 << 23)
/* Depth buffering mode */
#define Z_BUFFER_MASK 0x03000000
#define Z_BUFFER (0x0 << 24) | (0x0 << 25)
#define Z_MUX_BUF (0x1 << 24) | (0x0 << 25)
#define Z_MUX_DRAW (0x2 << 24)
#define Z_OFF (0x3 << 24) /* no z buffering */
/* Texture wrapping */
#define TEX_WRAP_MASK 0x04000000
#define TEX_WRAP_OFF (0x0 << 26)
#define TEX_WRAP_ON (0x1 << 26)
/* 3d command */
#define DO_MASK 0x78000000
#define DO_GOURAUD_TRI (0x0 << 27)
#define DO_TEX_LIT_TRI_OLD (0x1 << 27)
#define DO_TEX_UNLIT_TRI_OLD (0x2 << 27)
#define DO_TEX_LIT_TRI (0x5 << 27)
#define DO_TEX_UNLIT_TRI (0x6 << 27)
#define DO_3D_LINE (0x8 << 27)
#define DO_NOP (0xf << 27) /* turn on autoexec */
/* status */
#define CMD_MASK 0x80000000
#define CMD_2D (0x0 << 31) /* execute a 2d cmd */
#define CMD_3D (0x1 << 31) /* execute a 3d cmd */
/* global masks */
#define TEX_MASK ( TEX_COL_MASK | TEX_WRAP_MASK | MIP_MASK \
| TEX_FILTER_MASK | TEX_BLEND_MAKS \
| TEX_WRAP_MASK )
#define Z_MASK ( Z_MODE_MASK | Z_UPDATE_MASK | Z_BUFFER_MASK )
#endif /* _S3V_REG_H */
| [
"[email protected]"
] | |
1475c892880a2fafd7b9261bf50c47c351d20f41 | 611513171ea178b66047fb9747956cb65b5905fd | /Solve A x = b with LU Decomposition/b. Block LU Factorization with GMRES/ta_example.c | cd1e7495ee56cffe0606f287277d6ef7ec253b08 | [
"MIT"
] | permissive | zrjer/Parallel-Solvers-for-Linear-System | 4d15f2d638fc2344ee5f31aa98d9f9acfd3238dc | 5d598422dc99122ac1322923018d6cc8506e8fbb | refs/heads/master | 2020-11-25T15:51:53.918484 | 2019-10-31T20:22:15 | 2019-10-31T20:22:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 16,591 | c | /* Example to show how to use Intel's FGMRES with preconditioner to solve the linear system Ax=b in MPI.
* Based on Intel's example: solverc/source/fgmres_full_funct_c.c
* For CS51501 HW3 Part b
*
* Please read Intel Reference Manual, Chapter 6 Sparse Solve Routine, FGMRES Interface Description for the detail information.
*/
#include <stdio.h>
#include "mkl.h"
#include "mpi.h"
#define MASTER 0 // taskid of first task
#define RESTART 500
#define TOL 0.00000001
#define MAXIT 1000
void mpi_dgemv(const MKL_INT m, const MKL_INT local_m,const double *A,const double *u, double *v, double *local_u, double *local_v,int taskid, MPI_Comm comm);
void mpi_preconditioner_solver(const MKL_INT m, const MKL_INT local_m, const double *local_M, const double *u, double *v, double * local_u,int taskid, MPI_Comm comm);
int main (int argc, char *argv[])
{
int taskid; // a task identifier
int numtasks; // number of tasks in partition
MPI_Comm comm;
int m; // size of the matrix
int local_m; // rows of matrix A sent to each worker
double *A, *b,*exact_x, *x;
double *temp_1, *temp_2;
double *local_A, *local_v,*local_u;
double *local_M; // M is the preconditioner in this example, which is the diagonal element of A;
int i,j,k;
MPI_Init(&argc,&argv);
comm=MPI_COMM_WORLD;
MPI_Comm_rank(comm,&taskid);
MPI_Comm_size(comm,&numtasks);
if(taskid==MASTER){ // initilization: A and b
/* start modification 1: read A and b from mtx files in node 0 */
m=64; // size of the matrix
A=(double *)malloc(sizeof(double)*(m*m));
// !!! A is in col-major
for(j=0;j<m;j++)
for (i=0;i<m;i++){
if(i==j)
*(A+j*m+i)=m*100.0;
else
*(A+j*m+i)=i+1.0;
}
exact_x=(double *)malloc(sizeof(double)*m);
for (i=0;i<m;i++)
*(exact_x+i)=1.0;
b=(double *)malloc(sizeof(double)*m);
// b=A*ones(n,1)
cblas_dgemv(CblasColMajor, CblasNoTrans, m, m, 1.0, A, m, exact_x, 1, 0.0, b, 1);
/* end modification 1*/
}
MPI_Bcast(&m,1,MPI_INT, MASTER, comm); // send m from node MASTER to all other nodes.
local_m=m/numtasks;
local_A=(double *)malloc(sizeof(double)*(local_m*m));
local_u=(double *)malloc(sizeof(double)*(local_m));
local_v=(double *)malloc(sizeof(double)*m);
// partition A and send A_i to local_A on node i
MPI_Scatter(A,local_m*m, MPI_DOUBLE, local_A, local_m*m, MPI_DOUBLE, MASTER, comm);
if(taskid==MASTER){
free(A);
free(exact_x);
// do not free b, it wil be used for GMRES
}
/* start modification 2: generate preconditioner M
* In this example, TA choose the diagonal elements of A as the preconditioner.
* In HW3 part b, you should generate L and U here.
*/
local_M=(double *)malloc(sizeof(double)*local_m);
for(i=0;i<local_m;i++)
*(local_M+i)=*(local_A+taskid*local_m+i*m+i);
/* end modification 2*/
/*---------------------------------------------------------------------------
* GMRES: Allocate storage for the ?par parameters and the solution vectors
*---------------------------------------------------------------------------*/
MKL_INT RCI_request;
int RCI_flag;
double dvar;
int flag=0;
MKL_INT ipar[128]; //specifies the integer set of data for the RCI FGMRES computations
double dpar[128]; // specifies the double precision set of data
double *tmp; //used to supply the double precision temporary space for theRCI FGMRES computations, specifically:
double *computed_solution;
double *residual;
double *f;
MKL_INT itercount, ierr=0;;
MKL_INT ivar;
double b_2norm;
char cvar='N';
MKL_INT incx=1;
if (taskid==MASTER){
ipar[14]=RESTART; // restart iteration number
int n_tmp = (2 * ipar[14] + 1) * m + ipar[14] * (ipar[14] + 9) / 2 + 1;
tmp=(double *)malloc(sizeof(double)*n_tmp);
computed_solution=(double *)malloc(sizeof(double)*m);
residual=(double *)malloc(sizeof(double)*m);
f=(double *)malloc(sizeof(double)*m);
ivar=m;
/*---------------------------------------------------------------------------
* Initialize the initial guess
*---------------------------------------------------------------------------*/
for (i = 0; i < m; i++)
{
computed_solution[i] = 0.5;
}
b_2norm = cblas_dnrm2 (ivar, b, incx);
// printf("b_2norm=%f\n",b_2norm);
/*---------------------------------------------------------------------------
* Initialize the solver
*---------------------------------------------------------------------------*/
dfgmres_init (&ivar, computed_solution,b, &RCI_request, ipar, dpar, tmp);
RCI_flag=RCI_request;
}
MPI_Bcast(&RCI_flag,1,MPI_INT, MASTER, comm);
if (RCI_flag != 0)
goto FAILED;
if(taskid==MASTER){
/*---------------------------------------------------------------------------
* GMRES: Set the desired parameters:
*---------------------------------------------------------------------------*/
ipar[14] = RESTART; // restart iteration number
ipar[7] = 1; //do the stopping test
ipar[10] = 1; // use preconditioner
dpar[0] = TOL;
/*---------------------------------------------------------------------------
* Check the correctness and consistency of the newly set parameters
*---------------------------------------------------------------------------*/
dfgmres_check (&ivar, computed_solution, b, &RCI_request, ipar, dpar,
tmp);
RCI_flag=RCI_request;
}
MPI_Bcast(&RCI_flag,1,MPI_INT, MASTER, comm);
if (RCI_flag != 0)
goto FAILED;
if (taskid==MASTER){
/*---------------------------------------------------------------------------
* Print the info about the RCI FGMRES method
*---------------------------------------------------------------------------*/
printf ("Some info about the current run of RCI FGMRES method:\n\n");
if (ipar[7])
{
printf ("As ipar[7]=%d, the automatic test for the maximal number of ", ipar[7]);
printf ("iterations will be\nperformed\n");
}
else
{
printf ("As ipar[7]=%d, the automatic test for the maximal number of ", ipar[7]);
printf ("iterations will be\nskipped\n");
}
printf ("+++\n");
if (ipar[8])
{
printf ("As ipar[8]=%d, the automatic residual test will be performed\n", ipar[8]);
}
else
{
printf ("As ipar[8]=%d, the automatic residual test will be skipped\n", ipar[8]);
}
printf ("+++\n");
if (ipar[9])
{
printf ("As ipar[9]=%d, the user-defined stopping test will be ", ipar[9]);
printf ("requested via\nRCI_request=2\n");
}
else
{
printf ("As ipar[9]=%d, the user-defined stopping test will not be ", ipar[9]);
printf ("requested, thus,\nRCI_request will not take the value 2\n");
}
printf ("+++\n");
if (ipar[10])
{
printf ("As ipar[10]=%d, the Preconditioned FGMRES iterations will be ", ipar[10]);
printf ("performed, thus,\nthe preconditioner action will be requested via ");
printf ("RCI_request=3\n");
}
else
{
printf ("As ipar[10]=%d, the Preconditioned FGMRES iterations will not ", ipar[10]);
printf ("be performed,\nthus, RCI_request will not take the value 3\n");
}
printf ("+++\n");
if (ipar[11])
{
printf ("As ipar[11]=%d, the automatic test for the norm of the next ", ipar[11]);
printf ("generated vector is\nnot equal to zero up to rounding and ");
printf ("computational errors will be performed,\nthus, RCI_request will not ");
printf ("take the value 4\n");
}
else
{
printf ("As ipar[11]=%d, the automatic test for the norm of the next ", ipar[11]);
printf ("generated vector is\nnot equal to zero up to rounding and ");
printf ("computational errors will be skipped,\nthus, the user-defined test ");
printf ("will be requested via RCI_request=4\n");
}
printf ("+++\n\n");
}
/*---------------------------------------------------------------------------
* Compute the solution by RCI (P)FGMRES solver with preconditioning
* Reverse Communication starts here
*---------------------------------------------------------------------------*/
ONE:
if(taskid==MASTER){
dfgmres (&ivar, computed_solution,b, &RCI_request, ipar, dpar, tmp);
RCI_flag=RCI_request;
}
MPI_Bcast(&RCI_flag,1,MPI_INT, MASTER, comm); // send RCI_request from node MASTER to all other nodes.
/*---------------------------------------------------------------------------
* If RCI_request=0, then the solution was found with the required precision
*---------------------------------------------------------------------------*/
if (RCI_flag == 0)
goto COMPLETE;
/*---------------------------------------------------------------------------
* If RCI_request=1, then compute the vector A*tmp[ipar[21]-1]
* and put the result in vector tmp[ipar[22]-1]
*---------------------------------------------------------------------------
* NOTE that ipar[21] and ipar[22] contain FORTRAN style addresses,
* therefore, in C code it is required to subtract 1 from them to get C style
* addresses
*---------------------------------------------------------------------------*/
if (RCI_flag == 1)
{
if (taskid==MASTER){
temp_1=&tmp[ipar[21] - 1];
temp_2=&tmp[ipar[22] - 1];
}
mpi_dgemv(m,local_m,local_A,temp_1, temp_2,local_u,local_v,taskid, comm);
goto ONE;
}
/*---------------------------------------------------------------------------
* If RCI_request=2, then do the user-defined stopping test
* The residual stopping test for the computed solution is performed here
*---------------------------------------------------------------------------
*/
if (RCI_flag == 2)
{
/* Request to the dfgmres_get routine to put the solution into b[N] via ipar[12]
--------------------------------------------------------------------------------
WARNING: beware that the call to dfgmres_get routine with ipar[12]=0 at this
stage may destroy the convergence of the FGMRES method, therefore, only
advanced users should exploit this option with care */
if (taskid==MASTER){
ipar[12] = 1;
/* Get the current FGMRES solution in the vector f */
dfgmres_get (&ivar, computed_solution, f, &RCI_request, ipar, dpar, tmp, &itercount);
temp_1=f;
temp_2=residual;
}
/* Compute the current true residual via mpi mat_vec multiplication */
mpi_dgemv(m,local_m,local_A,temp_1,temp_2,local_u,local_v,taskid, comm);
if(taskid==MASTER){
dvar = -1.0E0;
cblas_daxpy (ivar, dvar, b, incx, residual, incx);
dvar = cblas_dnrm2 (ivar, residual, incx);
printf("iteration %d, relative residual:%e\n",itercount, dvar);
}
MPI_Bcast(&dvar,1,MPI_DOUBLE, MASTER, comm);
if (dvar < TOL){
goto COMPLETE;
}
else
goto ONE;
}
/*---------------------------------------------------------------------------
* If RCI_request=3, then apply the preconditioner on the vector
* tmp[ipar[21]-1] and put the result in vector tmp[ipar[22]-1]
*---------------------------------------------------------------------------
* NOTE that ipar[21] and ipar[22] contain FORTRAN style addresses,
* therefore, in C code it is required to subtract 1 from them to get C style
* addresses
*---------------------------------------------------------------------------*/
if (RCI_flag == 3)
{
if (taskid==MASTER){
temp_1=&tmp[ipar[21] - 1];
temp_2=&tmp[ipar[22] - 1];
}
/* start modification 3: solve L U temp_2 = temp_1 */
mpi_preconditioner_solver(m,local_m,local_M,temp_1, temp_2,local_u,taskid,comm);
/* end modification 3 */
goto ONE;
}
/*---------------------------------------------------------------------------
* If RCI_request=4, then check if the norm of the next generated vector is
* not zero up to rounding and computational errors. The norm is contained
* in dpar[6] parameter
*---------------------------------------------------------------------------*/
if (RCI_flag == 4)
{
if(taskid==MASTER)
dvar=dpar[6];
MPI_Bcast(&dvar,1,MPI_DOUBLE, MASTER, comm);
if (dvar <1.0E-12 ){
goto COMPLETE;
}
else
goto ONE;
}
/*---------------------------------------------------------------------------
* If RCI_request=anything else, then dfgmres subroutine failed
* to compute the solution vector: computed_solution[N]
*---------------------------------------------------------------------------*/
else
{
goto FAILED;
}
/*---------------------------------------------------------------------------
* Reverse Communication ends here
* Get the current iteration number and the FGMRES solution (DO NOT FORGET to
* call dfgmres_get routine as computed_solution is still containing
* the initial guess!). Request to dfgmres_get to put the solution
* into vector computed_solution[N] via ipar[12]
*---------------------------------------------------------------------------*/
COMPLETE:if(taskid==MASTER){
ipar[12] = 0;
dfgmres_get (&ivar, computed_solution,b, &RCI_request, ipar, dpar, tmp, &itercount);
/*---------------------------------------------------------------------------
* Print solution vector: computed_solution[N] and the number of iterations: itercount
*---------------------------------------------------------------------------*/
printf ("The system has been solved in %d iterations \n", itercount);
printf ("The following solution has been obtained (first 4 elements): \n");
for (i = 0; i < 4; i++)
{
printf ("computed_solution[%d]=", i);
printf ("%e\n", computed_solution[i]);
}
/*-------------------------------------------------------------------------*/
/* Release internal MKL memory that might be used for computations */
/* NOTE: It is important to call the routine below to avoid memory leaks */
/* unless you disable MKL Memory Manager */
/*-------------------------------------------------------------------------*/
MKL_Free_Buffers ();
temp_1=computed_solution;
temp_2=residual;
}
// compute the relative residual
mpi_dgemv(m,local_m,local_A,temp_1,temp_2,local_u,local_v,taskid, comm);
if(taskid==MASTER){
dvar = -1.0E0;
cblas_daxpy (ivar, dvar, b, incx, residual, incx);
dvar = cblas_dnrm2 (ivar, residual, incx);
printf("relative residual:%e\n",dvar/b_2norm);
if(itercount<MAXIT && dvar<TOL)
flag=0; //success
else
flag=1; //fail
}
MPI_Bcast(&flag,1,MPI_INT, MASTER, comm);
free(local_A);
free(local_M);
free(local_u);
free(local_v);
if(taskid==MASTER){
free(tmp);
free(b);
free(computed_solution);
free(residual);
}
if(flag==0){
MPI_Finalize();
return 0;
}
else{
MPI_Finalize();
return 1;
}
/* Release internal MKL memory that might be used for computations */
/* NOTE: It is important to call the routine below to avoid memory leaks */
/* unless you disable MKL Memory Manager */
/*-------------------------------------------------------------------------*/
FAILED:
if(taskid==MASTER){
printf ("\nThis example FAILED as the solver has returned the ERROR code %d", RCI_request);
MKL_Free_Buffers ();
}
free(local_A);
free(local_M);
free(local_u);
free(local_v);
if(taskid==MASTER){
free(tmp);
free(b);
free(computed_solution);
free(residual);
}
MPI_Finalize();
return 1;
}
void mpi_dgemv(const MKL_INT m, const MKL_INT local_m, const double *local_A,const double *u, double *v, double *local_u, double *local_v,int taskid, MPI_Comm comm){
// compute v=A*u in MPI
CBLAS_LAYOUT layout=CblasColMajor; //col major
CBLAS_TRANSPOSE trans=CblasNoTrans; // no transfer
MPI_Scatter(u,local_m, MPI_DOUBLE, local_u, local_m, MPI_DOUBLE, MASTER, comm ); // send u_i from node MASTER to all other nodes.
// printf("scatter finish at taskid=%d\n",taskid);
// compute A_i
cblas_dgemv(layout, trans, m, local_m, 1.0, local_A, m, local_u, 1, 0.0, local_v, 1);
// Apply a reduction operation on all nodes and place the result in vector v.
MPI_Reduce( local_v, v, m, MPI_DOUBLE, MPI_SUM, MASTER,comm );
}
void mpi_preconditioner_solver(const MKL_INT m, const MKL_INT local_m, const double *local_M, const double *u, double *v, double *local_u,int taskid, MPI_Comm comm){
int i=0;
// printf("begin taskid=%d\n",taskid);
MPI_Scatter(u,local_m, MPI_DOUBLE, local_u, local_m, MPI_DOUBLE, MASTER, comm ); // send u_i from node MASTER to all other nodes.
// printf("taskid=%d\n",taskid);
//compute Mi^(-1)*y_i at each node
for (i=0;i<local_m;i++)
*(local_u+i)/=*(local_M+i);
// Apply a gather operation on all nodes
MPI_Gather(local_u, local_m, MPI_DOUBLE, v,local_m, MPI_DOUBLE,MASTER,comm);
}
| [
"[email protected]"
] | |
0af518fc9d0a381a264255a0496ccc2577cdce49 | 163f784a3b2058b05728d2ae0886e480712b8d24 | /Lecture_9_sources/args.c | 2493f24f09cf2a201290b261c15c8e405b17a8eb | [] | no_license | rudn-mm/Informatics | d272796be9cc740dfa473edee790f2268167b4a0 | 844db42e1735cf9f12bb9a634ba6b4aed08294f8 | refs/heads/master | 2021-10-01T00:54:01.216972 | 2018-11-26T13:10:22 | 2018-11-26T13:10:22 | 105,946,149 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 367 | c | #include <stdio.h>
int main(int argc, char* argv[])
{
if (argc > 1)
{
printf("Число агрументов: %i\n", argc);
for (int i = 0; i < argc; i++)
{
printf("Аргумент %i: %s\n", i+1, argv[i]);
}
}
else
{
printf("Аргументы не указаны\n");
}
return 0;
}
| [
"[email protected]"
] | |
16e269c7874ab339e844fdc2cdb3dd20e9580cc8 | a1af6fa9c319412d5405bbcf22d3923be3883848 | /3650b/01/add1.c | f0b091b3936fb2f1866d14ff71724a24cde4c10d | [] | no_license | NatTuck/scratch-2020-01 | 4b076a8d8431952cba2d20ad69344ae5b915c8e7 | 085a82a0b9b90e0494cee6306ed20fbe683a871c | refs/heads/master | 2020-12-02T21:48:11.725406 | 2020-04-13T03:45:13 | 2020-04-13T03:45:13 | 231,131,261 | 2 | 20 | null | null | null | null | UTF-8 | C | false | false | 140 | c | long
add1(long x)
{
return x + 1;
}
int
main(int _argc, char* _argv[])
{
long x = add1(5);
printf("%ld\n", x);
return 0;
}
| [
"[email protected]"
] | |
aa01bd4174bc36e0e8fb79c5e5245768e5d6f3b8 | 7106f0ea5f2b3bf39f1ab431194e120170bf7a1c | /set/set.h | 25594fabff95a5fc1187899add875a1c76a508a8 | [] | no_license | Ijingli/c-c-datastructure | 884cb89a1fe42898034341b92ee068fb744fe951 | 8f5a01b2579aa6551bae4362fec51bbb6d0ebc78 | refs/heads/master | 2021-01-18T12:16:43.987305 | 2015-07-21T13:22:28 | 2015-07-21T13:22:28 | 38,683,593 | 0 | 0 | null | null | null | null | GB18030 | C | false | false | 1,559 | h | /*
* set.h
*
* Created on: 2015年7月14日
* Author: Administrator
*/
#ifndef SET_H_
#define SET_H_
#include <stdlib.h>
#include "list.h"
typedef List Set;//将List重命名为Set
void set_init(Set *set,int (*match)(const void *key1,const void *key2),
void (*destroy)(void *data));
#define set_destroy list_destroy
//首先调用set_is_member来确定是不是已经包含data,如果是返回1,如果不是调用list_ins_next
int set_insert(Set *set,const void *data);
//通过list_next遍历,根据match函数所指定的函数确定要移除的成员
int set_remove(Set *set,void **data);
//先set_init初始化setu,然后遍历set1,对set2判断set_is_member,逐个添加
int set_union(Set *setu,const Set *set1,const Set *set2);
//先调用set_init初始化seti,遍历set1,对set进行set_is_member,是的逐个添加
int set_intersection(Set *seti,const Set *set1,const Set *set2);
//县调用set_init初始化setd,针对set1的每个成员调用set_is_member确定成员是否在set2出现过,没出现过的加入setd
int set_difference(Set *setd,const Set *set1,const Set *set2);
//通过list_next遍历集合成员直到找到与data吻合的数据
int set_is_member(const Set *set,const void *data);
//首先判断set1的size是否小于set2的size,然后遍历set1,是不是set_is_member set2
int set_is_subset(const Set *set1,const Set *set2);
//先判断size一样,然后再调用set_is_subset
int set_is_equal(const Set *set1,const Set *set2);
#define set_size(set) ((set)->size)
#endif /* SET_H_ */
| [
"[email protected]"
] | |
99c2798e87063941fc7652070641a0e303b123a1 | 1906ca4b0c10ed99414ef0bc664c03e16712ea0f | /asgard.h | 794e1dbaf9ecc6a211448d5d9f5cf8ebd8f2bee4 | [] | no_license | krimler/spsc | 1cffdadaf5c396a3e31be7cd16aa112820521889 | 22d6bc64c1a157e11dc563480d8659885bd81276 | refs/heads/master | 2020-03-19T03:19:44.055255 | 2018-09-08T16:16:29 | 2018-09-08T16:16:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 663 | h | #pragma once
#include <stdbool.h>
#include <memory.h>
typedef struct Buffer {
char *array;
bool busy;
} Buffer;
typedef struct Asgard {
char *data_ptr;
Ms ms;
Buffer *buffers;
} Asgard;
/* returns 'num' number of allocated buffer of size 1024 at once.
* They are guaranteed to be sequential.
* Each buffer is actuall of size 1023. The last 1024th byte is used as delimiter for safety.
*/
char *shm_alloc(int num);
void shm_dealloc(int num, void *mem); /* frees up the entnire buffer. */
int asgard_init(MRole role);
void init_memory(int buffers);
int get_offset(char *mem);
char *get_buffer(int offset);
#define DONE_TRANS "+DONE+"
| [
"[email protected]"
] | |
1329875d4b1c5f79b1a71c8a38e53faa945a69e0 | f742ccb7093ad2f8095702fed9f70d499b8ae7c1 | /src/ttt.c | 4a713c05c15a5866e8b50ff0fcdd4b8224bc7955 | [] | no_license | peko/tttm | 008ba4d85d4f0d6561ab2c761212145d426ebda5 | 8cbf945d876609bda483ae7e0d2da797c1e10718 | refs/heads/master | 2021-01-10T05:34:02.619534 | 2016-01-20T17:32:46 | 2016-01-20T17:32:46 | 48,488,663 | 1 | 0 | null | null | null | null | UTF-8 | C | false | false | 759 | c | ////////////////////////
// TETRA TREE TRIAGLE //
////////////////////////
#include "ttt.h"
// a, b, c - indices
ttt* ttt_init(tri t) {
ttt *tt = malloc(sizeof(ttt));
tt->triangle = t;
for(char i=0; i<4; i++) tt->children[i] = NULL;
tt->subdivided = 0;
return tt;
}
// p - points array
// c - center
// r - circle radius
// ttt* ttt_init_by_circle(parray *p, pnt c, double r) {
// return ttt_init(
// parray_insert(p, (pnt){c.x , c.y+2.0*r}),
// parray_insert(p, (pnt){c.x-SQRT3*r, c.y- r}),
// parray_insert(p, (pnt){c.x+SQRT3*r, c.y- r}));
// }
void ttt_subdivide(ttt *t) {
}
void ttt_free(ttt* t) {
for(char i=0; i<4; i++) if(t->children[i]) ttt_free(t->children[i]);
free(t);
}
| [
"[email protected]"
] | |
daf6f4900c1c950baad2d13c31027f34b8c8feb6 | e805ac1654afd2419a5a11091bd631e3ac976db1 | /sebastien_rt/lib/libft/ft_strcpy.c | f5b37f9323829d44e5dd19a21dedf1d3c8823a7d | [] | no_license | chabaud/RTGroupe | 768bb6fe3935e260fecc07c66204a6dfd8f56148 | e8b097ddc30bf4d692be106521ceba83262690d6 | refs/heads/master | 2021-08-08T05:27:13.861691 | 2017-11-09T17:15:46 | 2017-11-09T17:15:46 | 110,144,279 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 1,095 | c | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strcpy.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: abara <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/11/24 08:59:14 by abara #+# #+# */
/* Updated: 2015/12/02 15:07:55 by abara ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char *ft_strcpy(char *dest, const char *src)
{
int index;
index = 0;
while (src[index])
{
dest[index] = src[index];
index++;
}
dest[index] = src[index];
return (dest);
}
| [
"[email protected]"
] | |
8abd1757a74e4e8de9a2f41c97b392cb23b50dbb | 3a4c1cd06e305a2a3814b824f4427442c915df00 | /libs/tomcrypt/encauth/gcm/gcm_add_aad.c | 26e47f647b8c201cece12a76936b944c3fee9fd5 | [
"WTFPL",
"MIT",
"CC0-1.0",
"BSD-3-Clause",
"Apache-2.0",
"LicenseRef-scancode-other-permissive",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | vinthewrench/S4 | 8544cd61b344ff445488f86ff767a7fab4961335 | c604ad8a17c25e1af5b3d68cefdede5448344637 | refs/heads/master | 2021-12-12T05:39:44.966762 | 2021-12-08T18:22:17 | 2021-12-08T18:22:17 | 45,482,820 | 3 | 0 | NOASSERTION | 2023-02-14T23:54:33 | 2015-11-03T17:21:06 | C | UTF-8 | C | false | false | 2,999 | c | /* LibTomCrypt, modular cryptographic library -- Tom St Denis
*
* LibTomCrypt is a library that provides various cryptographic
* algorithms in a highly modular and flexible manner.
*
* The library is free for all purposes without any express
* guarantee it works.
*
* Tom St Denis, [email protected], http://libtom.org
*/
/**
@file gcm_add_aad.c
GCM implementation, Add AAD data to the stream, by Tom St Denis
*/
#include "tomcrypt.h"
#ifdef LTC_GCM_MODE
/**
Add AAD to the GCM state
@param gcm The GCM state
@param adata The additional authentication data to add to the GCM state
@param adatalen The length of the AAD data.
@return CRYPT_OK on success
*/
int gcm_add_aad(gcm_state *gcm,
const unsigned char *adata, unsigned long adatalen)
{
unsigned long x;
int err;
#ifdef LTC_FAST
unsigned long y;
#endif
LTC_ARGCHK(gcm != NULL);
if (adatalen > 0) {
LTC_ARGCHK(adata != NULL);
}
if (gcm->buflen > 16 || gcm->buflen < 0) {
return CRYPT_INVALID_ARG;
}
if ((err = cipher_is_valid(gcm->cipher)) != CRYPT_OK) {
return err;
}
/* in IV mode? */
if (gcm->mode == LTC_GCM_MODE_IV) {
/* let's process the IV */
if (gcm->ivmode || gcm->buflen != 12) {
for (x = 0; x < (unsigned long)gcm->buflen; x++) {
gcm->X[x] ^= gcm->buf[x];
}
if (gcm->buflen) {
gcm->totlen += gcm->buflen * CONST64(8);
gcm_mult_h(gcm, gcm->X);
}
/* mix in the length */
zeromem(gcm->buf, 8);
STORE64H(gcm->totlen, gcm->buf+8);
for (x = 0; x < 16; x++) {
gcm->X[x] ^= gcm->buf[x];
}
gcm_mult_h(gcm, gcm->X);
/* copy counter out */
XMEMCPY(gcm->Y, gcm->X, 16);
zeromem(gcm->X, 16);
} else {
XMEMCPY(gcm->Y, gcm->buf, 12);
gcm->Y[12] = 0;
gcm->Y[13] = 0;
gcm->Y[14] = 0;
gcm->Y[15] = 1;
}
XMEMCPY(gcm->Y_0, gcm->Y, 16);
zeromem(gcm->buf, 16);
gcm->buflen = 0;
gcm->totlen = 0;
gcm->mode = LTC_GCM_MODE_AAD;
}
if (gcm->mode != LTC_GCM_MODE_AAD || gcm->buflen >= 16) {
return CRYPT_INVALID_ARG;
}
x = 0;
#ifdef LTC_FAST
if (gcm->buflen == 0) {
for (x = 0; x < (adatalen & ~15); x += 16) {
for (y = 0; y < 16; y += sizeof(LTC_FAST_TYPE)) {
*((LTC_FAST_TYPE*)(&gcm->X[y])) ^= *((LTC_FAST_TYPE*)(&adata[x + y]));
}
gcm_mult_h(gcm, gcm->X);
gcm->totlen += 128;
}
adata += x;
}
#endif
/* start adding AAD data to the state */
for (; x < adatalen; x++) {
gcm->X[gcm->buflen++] ^= *adata++;
if (gcm->buflen == 16) {
/* GF mult it */
gcm_mult_h(gcm, gcm->X);
gcm->buflen = 0;
gcm->totlen += 128;
}
}
return CRYPT_OK;
}
#endif
/* $Source$ */
/* $Revision$ */
/* $Date$ */
| [
"[email protected]"
] | |
a614a684bb449f516101a4611b33e5cd0eb82050 | fe442de864dceb41073e4aac44c0121b3d615c64 | /cmd_sh/name.c | e79494a7658028f17a983cc554db95e9c6c01a66 | [
"MIT"
] | permissive | AZBevier/nbc | c063d6514918ddcf70958a4e0c3c5d5d26d8bcf4 | 9931b2de37f1da23b9f1f9988155a51de57ef976 | refs/heads/master | 2022-08-15T06:12:41.084013 | 2022-07-29T22:16:52 | 2022-07-29T22:16:52 | 163,538,667 | 2 | 0 | null | null | null | null | UTF-8 | C | false | false | 11,231 | c | /*~!name.c*/
/* Name: name.c Part No.: _______-____r
*
* Copyright 1994 - J B Systems, Morrison, CO
*
* The recipient of this product specifically agrees not to distribute,
* disclose, or disseminate in any way, to any one, nor use for its own
* benefit, or the benefit of others, any information contained herein
* without the expressed written consent of J B Systems.
*
* RESTRICTED RIGHTS LEGEND
*
* Use, duplication, or disclosure by the Government is subject to
* restriction as set forth in paragraph (b) (3) (B) of the Rights
* in Technical Data and Computer Software Clause in DAR 7-104.9
* (a).
*/
#ident "$Id: name.c,v 1.2 2021/07/07 23:09:52 jbev Exp $"
/* $Log $
*/
/* #define NOTNOW */
#include "defs.h"
#ifndef mpx
#include <stdlib.h>
#endif
extern BOOL chkid();
extern char *simple();
extern int mailchk;
extern void prs_buff();
extern void exitsh();
extern void prc_buff();
extern void prn_buff();
extern void setname();
extern void assign();
extern void failed();
extern void freefunc();
extern void func_unhash();
extern void prs();
extern void prf();
extern void prc();
extern void zaphash();
extern void set_dotpath();
extern void setmail();
extern void push();
extern void initf();
extern void printro();
extern void printexp();
extern void printname();
extern void exname();
extern int cf();
extern int stoi();
extern int dup();
extern int itos();
extern int any();
extern int pop();
extern int length();
extern char nextc();
static char *staknam();
static int (*namfn)();
static int namwalk();
struct namnod ps2nod =
{
(struct namnod *)NIL,
&acctnod,
ps2name
};
struct namnod cdpnod =
{
(struct namnod *)NIL,
(struct namnod *)NIL,
cdpname
};
struct namnod pathnod =
{
&mailpnod,
(struct namnod *)NIL,
pathname
};
struct namnod ifsnod =
{
&homenod,
&mailnod,
ifsname
};
struct namnod ps1nod =
{
&pathnod,
&ps2nod,
ps1name
};
struct namnod homenod =
{
&cdpnod,
(struct namnod *)NIL,
homename
};
struct namnod mailnod =
{
(struct namnod *)NIL,
(struct namnod *)NIL,
mailname
};
struct namnod mchknod =
{
&ifsnod,
&ps1nod,
mchkname
};
struct namnod acctnod =
{
(struct namnod *)NIL,
(struct namnod *)NIL,
acctname
};
struct namnod mailpnod =
{
(struct namnod *)NIL,
(struct namnod *)NIL,
mailpname
};
struct namnod *namep = &mchknod;
/* ======== variable and string handling ======== */
int syslook(w, syswds, n)
register char *w;
register struct sysnod syswds[];
int n;
{
int low;
int high;
int mid;
register int cond;
if (w == 0 || *w == 0)
return(0);
low = 0;
high = n - 1;
while (low <= high) {
mid = (low + high) / 2;
if ((cond = cf(w, syswds[mid].sysnam)) < 0)
high = mid - 1;
else if (cond > 0)
low = mid + 1;
else
return(syswds[mid].sysval);
}
return(0);
}
void setlist(arg, xp)
register struct argnod *arg;
int xp;
{
if (flags & exportflg)
xp |= N_EXPORT;
while (arg) {
register char *s = mactrim(arg->argval);
#ifdef NOTNOW
printf("setlist: call setname (%s)\n", arg->argval);
#endif
setname(s, xp);
arg = arg->argnxt;
if (flags & execpr) {
prs(s);
if (arg)
blank();
else
newline();
}
}
}
void setname(argi, xp) /* does parameter assignments */
char *argi;
int xp;
{
register char *argscan = argi;
register struct namnod *n;
if (letter(*argscan)) {
while (alphanum(*argscan))
argscan++;
if (*argscan == '=') {
*argscan = 0; /* make name a cohesive string */
n = lookup(argi);
*argscan++ = '=';
attrib(n, xp);
if (xp & N_ENVNAM)
n->namenv = n->namval = argscan;
else
assign(n, argscan);
#ifdef NOTNOW1
printf("setname: now set %s\n", argi);
#endif
return;
}
}
failed(argi, notid);
}
void replace(a, v)
register char **a;
char *v;
{
#ifdef NOTNOW
if (*a || **a)
printf("replace: (%s, %s)\n", *a, v);
#endif
free(*a);
*a = make(v);
}
void dfault(n, v)
struct namnod *n;
char *v;
{
if (n->namval == 0)
assign(n, v);
}
void assign(n, v)
struct namnod *n;
char *v;
{
if (n->namflg & N_RDONLY)
failed(n->namid, wtfailed);
#ifndef RES
else if (flags & rshflg) {
if (n == &pathnod || eq(n->namid, shell))
failed(n->namid, restricted);
}
#endif
else if (n->namflg & N_FUNCTN) {
func_unhash(n->namid);
freefunc(n);
n->namenv = 0;
n->namflg = N_DEFAULT;
}
if (n == &mchknod) {
mailchk = stoi(v);
}
replace(&n->namval, v);
attrib(n, N_ENVCHG);
if (n == &pathnod) {
zaphash();
set_dotpath();
return;
}
#ifndef mpx
if (flags & prompt) {
if ((n == &mailpnod) || (n == &mailnod && mailpnod.namflg == N_DEFAULT))
setmail(n->namval);
}
#endif
}
int readvar(names)
char **names;
{
extern long lseek();
struct fileblk fb;
register struct fileblk *f = &fb;
register char c;
register int rc = 0;
struct namnod *n = lookup(*names++); /* done now to avoid storage mess */
char *rel = (char *)relstak();
#ifdef NOTNOW
printf("readvar: called (%s, %s, %s)\n", names[0], names[1], names[2]);
#endif
push(f);
initf(dup(0));
if (lseek(0, 0L, 1) == -1L)
f->fsiz = 1;
/*
* strip leading IFS characters
*/
while ((any((c = nextc(0)), ifsnod.namval)) && !(eolchar(c)))
;
for (; ; ) {
if ((*names && any(c, ifsnod.namval)) || eolchar(c)) {
zerostak();
assign(n, absstak(rel));
setstak(rel);
if (*names)
n = lookup(*names++);
else
n = 0;
if (eolchar(c)) {
break;
} else { /* strip imbedded IFS characters */
while ((any((c = nextc(0)), ifsnod.namval)) &&
!(eolchar(c)))
;
}
} else
{
pushstak(c);
c = nextc(0);
if (eolchar(c)) {
char *top = staktop;
while (any(*(--top), ifsnod.namval))
;
staktop = top + 1;
}
}
}
while (n) {
assign(n, nullstr);
if (*names)
n = lookup(*names++);
else
n = 0;
}
if (eof)
rc = 1;
lseek(0, (long)(f->fnxt - f->fend), 1);
pop();
return(rc);
}
void assnum(p, i)
char **p;
int i;
{
itos(i);
replace(p, numbuf);
}
char *make(v)
char *v;
{
register char *p;
if (v) {
movstr(v, p = alloc(length(v)));
return(p);
} else
return((char *)0);
}
struct namnod *lookup(nam)
register char *nam;
{
register struct namnod *nscan = namep;
register struct namnod **prev;
int LR;
if (!chkid(nam))
failed(nam, notid);
while (nscan) {
if ((LR = cf(nam, nscan->namid)) == 0)
return(nscan);
else if (LR < 0)
prev = &(nscan->namlft);
else
prev = &(nscan->namrgt);
nscan = *prev;
}
/*
* add name node
*/
nscan = (struct namnod *)alloc(sizeof * nscan);
nscan->namlft = nscan->namrgt = (struct namnod *)NIL;
nscan->namid = make(nam);
nscan->namval = 0;
nscan->namflg = N_DEFAULT;
nscan->namenv = 0;
return(*prev = nscan);
}
BOOL chkid(nam)
char *nam;
{
register char *cp = nam;
if (!letter(*cp))
return(FALSE);
else
{
while (*++cp) {
if (!alphanum(*cp))
return(FALSE);
}
}
return(TRUE);
}
int namscan(fn)
int (*fn)();
{
namfn = fn;
namwalk(namep);
}
static int namwalk(np)
register struct namnod *np;
{
if (np) {
namwalk(np->namlft);
(*namfn)(np);
namwalk(np->namrgt);
}
}
void printnam(n)
struct namnod *n;
{
register char *s;
sigchk();
if (n->namflg & N_FUNCTN) {
prs_buff(n->namid);
prs_buff(sfuncstr);
prf(n->namenv);
prs_buff(efnlstr);
} else if (s = n->namval) {
prs_buff(n->namid);
prc_buff('=');
prs_buff(s);
prc_buff(NL);
}
}
static char *staknam(n)
register struct namnod *n;
{
register char *p;
p = movstr(n->namid, staktop);
p = movstr(eqlstr, p);
p = movstr(n->namval, p);
return(getstak(p + 1 - (char *)(stakbot)));
}
static int namec;
void exname(n)
register struct namnod *n;
{
register int flg = n->namflg;
if (flg & N_ENVCHG) {
if (flg & N_EXPORT) {
#ifdef NOTNOW
printf("exname:EXPORT name (%s)\n", n->namval);
#endif
free(n->namenv);
n->namenv = make(n->namval);
} else {
#ifdef NOTNOW
printf("exname: name (%s) env(%s)\n", n->namval, n->namenv);
#endif
#ifdef mpx_old
free(n->namval);
n->namval = make(n->namenv);
#endif
}
}
if (!(flg & N_FUNCTN))
n->namflg = N_DEFAULT;
if (n->namval)
namec++;
}
void printro(n)
register struct namnod *n;
{
if (n->namflg & N_RDONLY) {
prs_buff(readonly);
prc_buff(SP);
prs_buff(n->namid);
prc_buff(NL);
}
}
void printexp(n)
register struct namnod *n;
{
if (n->namflg & N_EXPORT) {
prs_buff(export);
prc_buff(SP);
prs_buff(n->namid);
prc_buff(NL);
}
}
void setup_env()
{
register char **e = environ;
while (*e)
setname(*e++, N_ENVNAM);
#ifdef smpx
setname("PATH=.:/system/bin:/system/system", N_ENVNAM);
setname("SHELL=/system/bin/sh", N_ENVNAM);
#endif
}
static char **argnam;
void pushnam(n)
struct namnod *n;
{
if (n->namval)
#ifdef NOTNOW
printf("pushnam: name (%s)\n", n->namval);
#endif
if (n->namval)
*argnam++ = staknam(n);
}
char **msetenv()
{
register char **er;
namec = 0;
namscan(exname);
argnam = er = (char **)getstak(namec * BYTESPERWORD + BYTESPERWORD);
namscan(pushnam);
*argnam++ = 0;
return(er);
}
struct namnod *findnam(nam)
register char *nam;
{
register struct namnod *nscan = namep;
int LR;
if (!chkid(nam))
return(0);
while (nscan) {
if ((LR = cf(nam, nscan->namid)) == 0)
return(nscan);
else if (LR < 0)
nscan = nscan->namlft;
else
nscan = nscan->namrgt;
}
return(0);
}
void unset_name(name)
register char *name;
{
register struct namnod *n;
if (n = findnam(name)) {
if (n->namflg & N_RDONLY)
failed(name, wtfailed);
if (n == &pathnod ||
n == &ifsnod ||
n == &ps1nod ||
n == &ps2nod ||
n == &mchknod) {
failed(name, badunset);
}
#ifndef RES
if ((flags & rshflg) && eq(name, shell))
failed(name, restricted);
#endif
if (n->namflg & N_FUNCTN) {
func_unhash(name);
freefunc(n);
} else
{
free(n->namval);
free(n->namenv);
}
n->namval = n->namenv = 0;
n->namflg = N_DEFAULT;
#ifndef mpx
if (flags & prompt) {
if (n == &mailpnod)
setmail(mailnod.namval);
else if (n == &mailnod && mailpnod.namflg == N_DEFAULT)
setmail(0);
}
#endif
}
}
| [
"[email protected]"
] | |
83e945f48ad687876dfa5a54013b719ec7e03dfe | fc9987b603be2e9541c087d9436b16cb6173128b | /components/ble/ble-profiles/sources/services/svc_scpss.h | c8caa441db9b50145b44ea5b3318bc376a9f13ec | [] | no_license | forzalife/zephyr-kit | 1da829b24db3af79696ed7a51a6983585beea225 | f6e8ac984593c95054452276e9e8b99e20594bd7 | refs/heads/master | 2023-08-21T23:26:54.336463 | 2020-11-28T10:52:27 | 2020-11-28T10:52:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 3,559 | h | /*************************************************************************************************/
/*!
* \file
*
* \brief Example Scan Parameter Service Server implementation.
*
* Copyright (c) 2016-2018 Arm Ltd.
*
* Copyright (c) 2019 Packetcraft, Inc.
*
* 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.
*/
/*************************************************************************************************/
#ifndef SVC_SCPSS_H
#define SVC_SCPSS_H
#ifdef __cplusplus
extern "C" {
#endif
/*! \addtogroup SCAN_PARAMETER_SERVICE
* \{ */
/**************************************************************************************************
Handle Ranges
**************************************************************************************************/
/** \name Scan Parameter Service Handles
*
*/
/**@{*/
#define SCPSS_START_HDL 0x0300 /*!< \brief Start handle. */
#define SCPSS_END_HDL (SCPSS_MAX_HDL - 1) /*!< \brief End handle. */
/**************************************************************************************************
Handles
**************************************************************************************************/
/*! \brief Scan Parameter Service Handles */
enum
{
SCPSS_SVC_HDL = SCPSS_START_HDL, /*!< \brief Scan Parameter Server Service declaration */
SCPSS_SIW_CH_HDL, /*!< \brief Scan Interval Window characteristic */
SCPSS_SIW_HDL, /*!< \brief Scan Interval Window */
SCPSS_MAX_HDL /*!< \brief Maximum handle. */
};
/**@}*/
/**************************************************************************************************
Function Declarations
**************************************************************************************************/
/*************************************************************************************************/
/*!
* \brief Add the services to the attribute server.
*
* \return None.
*/
/*************************************************************************************************/
void SvcScpssAddGroup(void);
/*************************************************************************************************/
/*!
* \brief Remove the services from the attribute server.
*
* \return None.
*/
/*************************************************************************************************/
void SvcScpssRemoveGroup(void);
/*************************************************************************************************/
/*!
* \brief Register callbacks for the service.
*
* \param writeCback Write callback function.
*
* \return None.
*/
/*************************************************************************************************/
void SvcScpssCbackRegister(attsWriteCback_t writeCback);
/*! \} */ /* SCAN_PARAMETER_SERVICE */
#ifdef __cplusplus
};
#endif
#endif /* SVC_SCPSS_H */
| [
"[email protected]"
] | |
456e6641e85b6acb456b3da4b603199908d8a389 | 9ceacf33fd96913cac7ef15492c126d96cae6911 | /lib/libcrypto/hidden/openssl/dsa.h | b2b0058cb9ddb9a42e7f99f3a70e7f5df624202d | [] | no_license | openbsd/src | ab97ef834fd2d5a7f6729814665e9782b586c130 | 9e79f3a0ebd11a25b4bff61e900cb6de9e7795e9 | refs/heads/master | 2023-09-02T18:54:56.624627 | 2023-09-02T15:16:12 | 2023-09-02T15:16:12 | 66,966,208 | 3,394 | 1,235 | null | 2023-08-08T02:42:25 | 2016-08-30T18:18:25 | C | UTF-8 | C | false | false | 3,008 | h | /* $OpenBSD: dsa.h,v 1.1 2023/07/08 14:28:15 beck Exp $ */
/*
* Copyright (c) 2023 Bob Beck <[email protected]>
*
* Permission to use, copy, modify, and 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.
*
* THE 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.
*/
#ifndef _LIBCRYPTO_DSA_H
#define _LIBCRYPTO_DSA_H
#ifndef _MSC_VER
#include_next <openssl/dsa.h>
#else
#include "../include/openssl/dsa.h"
#endif
#include "crypto_namespace.h"
LCRYPTO_USED(d2i_DSAparams_bio);
LCRYPTO_USED(i2d_DSAparams_bio);
LCRYPTO_USED(d2i_DSAparams_fp);
LCRYPTO_USED(i2d_DSAparams_fp);
LCRYPTO_USED(DSAparams_dup);
LCRYPTO_USED(DSA_SIG_new);
LCRYPTO_USED(DSA_SIG_free);
LCRYPTO_USED(i2d_DSA_SIG);
LCRYPTO_USED(d2i_DSA_SIG);
LCRYPTO_USED(DSA_SIG_get0);
LCRYPTO_USED(DSA_SIG_set0);
LCRYPTO_USED(DSA_do_sign);
LCRYPTO_USED(DSA_do_verify);
LCRYPTO_USED(DSA_OpenSSL);
LCRYPTO_USED(DSA_set_default_method);
LCRYPTO_USED(DSA_get_default_method);
LCRYPTO_USED(DSA_set_method);
LCRYPTO_USED(DSA_new);
LCRYPTO_USED(DSA_new_method);
LCRYPTO_USED(DSA_free);
LCRYPTO_USED(DSA_up_ref);
LCRYPTO_USED(DSA_size);
LCRYPTO_USED(DSA_bits);
LCRYPTO_USED(DSA_sign_setup);
LCRYPTO_USED(DSA_sign);
LCRYPTO_USED(DSA_verify);
LCRYPTO_USED(DSA_get_ex_new_index);
LCRYPTO_USED(DSA_set_ex_data);
LCRYPTO_USED(DSA_get_ex_data);
LCRYPTO_USED(DSA_security_bits);
LCRYPTO_USED(d2i_DSAPublicKey);
LCRYPTO_USED(i2d_DSAPublicKey);
LCRYPTO_USED(d2i_DSAPrivateKey);
LCRYPTO_USED(i2d_DSAPrivateKey);
LCRYPTO_USED(d2i_DSAparams);
LCRYPTO_USED(i2d_DSAparams);
LCRYPTO_USED(DSA_generate_parameters);
LCRYPTO_USED(DSA_generate_parameters_ex);
LCRYPTO_USED(DSA_generate_key);
LCRYPTO_USED(DSAparams_print);
LCRYPTO_USED(DSA_print);
LCRYPTO_USED(DSAparams_print_fp);
LCRYPTO_USED(DSA_print_fp);
LCRYPTO_USED(DSA_dup_DH);
LCRYPTO_USED(DSA_get0_pqg);
LCRYPTO_USED(DSA_set0_pqg);
LCRYPTO_USED(DSA_get0_key);
LCRYPTO_USED(DSA_set0_key);
LCRYPTO_USED(DSA_get0_p);
LCRYPTO_USED(DSA_get0_q);
LCRYPTO_USED(DSA_get0_g);
LCRYPTO_USED(DSA_get0_pub_key);
LCRYPTO_USED(DSA_get0_priv_key);
LCRYPTO_USED(DSA_clear_flags);
LCRYPTO_USED(DSA_test_flags);
LCRYPTO_USED(DSA_set_flags);
LCRYPTO_USED(DSA_get0_engine);
LCRYPTO_USED(DSA_meth_new);
LCRYPTO_USED(DSA_meth_free);
LCRYPTO_USED(DSA_meth_dup);
LCRYPTO_USED(DSA_meth_get0_name);
LCRYPTO_USED(DSA_meth_set1_name);
LCRYPTO_USED(DSA_meth_set_sign);
LCRYPTO_USED(DSA_meth_set_finish);
LCRYPTO_USED(ERR_load_DSA_strings);
#endif /* _LIBCRYPTO_DSA_H */
| [
"[email protected]"
] | |
563d1a8494b9b9d953ecd87875191a27618ed166 | 5f5fe64ea6ebee438152a69e01948ba5f9025dea | /pchar.c | ff6873913eba2ef64e386afc358059c2240bc607 | [] | no_license | blsoko/monty | 7d101fcd61a9c4724b67be3ac10b05f70f551f60 | 534000b62359d5411af715bb7f43fb3036605017 | refs/heads/master | 2022-12-10T06:48:44.813102 | 2020-09-18T20:13:07 | 2020-09-18T20:13:07 | 263,770,811 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 550 | c | #include "monty.h"
/**
* pchar - release memory
*
* @stack: stack
* @line_number: number of line
*
* Return: nothing
*/
void pchar(stack_t **stack, unsigned int line_number)
{
int x = 0;
if ((*stack) == NULL)
{
jutsu_liberacion();
kai(stack);
fprintf(stderr, "L%u: can't pchar, stack empty\n", line_number);
exit(EXIT_FAILURE);
}
x = (*stack)->n;
if (x < 0 || x > 127)
{
jutsu_liberacion();
kai(stack);
fprintf(stderr, "L%u: can't pchar, value out of range\n", line_number);
exit(EXIT_FAILURE);
}
printf("%c\n", x);
}
| [
"[email protected]"
] | |
72366cdbe9541bab98da8cb83125b3a104e02236 | fe2362eda423bb3574b651c21ebacbd6a1a9ac2a | /VTK-7.1.1/build/ThirdParty/expat/vtkexpat/expatDllConfig.h | 740bce9f5b14a6d92b4ac0778a9e9251ed1e3740 | [
"BSD-3-Clause"
] | permissive | likewatchk/python-pcl | 1c09c6b3e9de0acbe2f88ac36a858fe4b27cfaaf | 2a66797719f1b5af7d6a0d0893f697b3786db461 | refs/heads/master | 2023-01-04T06:17:19.652585 | 2020-10-15T21:26:58 | 2020-10-15T21:26:58 | 262,235,188 | 0 | 0 | NOASSERTION | 2020-05-08T05:29:02 | 2020-05-08T05:29:01 | null | UTF-8 | C | false | false | 91 | h | #ifndef _expatDllConfig_h
#define _expatDllConfig_h
/* #undef VTK_EXPAT_STATIC */
#endif
| [
"[email protected]"
] | |
c37ef83ec22017260a9118966ce55ec824871fcf | 797b73da89c22d14362bcc149097b56cf3694e5c | /libc/include/string.h | 9fe93a3e41048bd39a4450de00581149ec68fdd7 | [] | no_license | silaspsadia/minos | a78c98248ffa0ac781ca1d6e8be20a55c3481931 | c1d4e186ce360a71e2160dadc02a994222722ad9 | refs/heads/master | 2020-03-22T08:13:22.616222 | 2019-01-07T07:39:44 | 2019-01-07T07:39:44 | 139,753,132 | 1 | 0 | null | null | null | null | UTF-8 | C | false | false | 462 | h | #ifndef _STRING_H
#define _STRING_H 1
#include <sys/cdefs.h>
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
int memcmp(const void*, const void*, size_t);
void * memcpy(void* __restrict, const void* __restrict, size_t);
void * memmove(void*, const void*, size_t);
void * memset(void*, int, size_t);
size_t strlen(const char*);
char * strcpy(char *, const char *);
char * strncpy(char *, const char *, size_t);
#ifdef __cplusplus
}
#endif
#endif
| [
"[email protected]"
] | |
9cfd467678d323ac3bf24df161304d878ceefc83 | 9f7f5e8a9e1a3e0a5a510c7313d367428984b987 | /lib/my/my_put_s_caps.c | 822885ff940e1408430f0b3cd2d5ebc0f19dab4c | [] | no_license | Zoujoko/PSU_navy_2018 | 0ec3ee53a8945d74a30bf060711ceb7095d799b0 | fdba7f68061243790eceeafff896973bfd249608 | refs/heads/master | 2020-05-18T03:55:54.635429 | 2019-04-29T23:53:20 | 2019-04-29T23:53:20 | 184,159,518 | 0 | 1 | null | null | null | null | UTF-8 | C | false | false | 864 | c | /*
** EPITECH PROJECT, 2018
** %S lib
** File description:
** yes
*/
#include "../../include/my.h"
int my_put_nbr_caps_s(int nb)
{
int get_mod;
if (nb >= 8)
{
get_mod = (nb % 8);
nb = (nb - get_mod) / 8;
my_put_nbr_caps_s(nb);
my_putchar(48 + get_mod);
}
else
my_putchar(48 + nb % 8);
}
int put_zero(unsigned int octal)
{
if (octal <= 7) {
my_putchar('0');
my_putchar('0');
}
if (octal <= 77 && octal >= 7)
my_putchar('0');
}
void my_put_s_caps(char const *str)
{
int i = 0;
while (str[i] != '\0') {
if (str[i] > 32 && str [i] <= 127) {
my_putchar(str[i]);
i++;
}
else {
my_putchar('\\');
put_zero(str[i]);
my_put_nbr_caps_s(str[i]);
i++;
}
}
}
| [
"[email protected]"
] | |
e765b3f7276c1ad928f6106a74e7c782c4f19ce5 | 9353ff87052623d5e1fe64e55765c53204cebaa5 | /common/ppcomm.c | b9f17317629a8cf816a7ce650d0e0bd77996f511 | [] | no_license | hvariant/mis | 17e44a783df8e46faca87c5ae63422c65ff2ff99 | 0d6a964c0e3c63756b5cb69fa63ae5f7c0260267 | refs/heads/master | 2021-06-17T06:47:14.243085 | 2017-06-03T08:40:39 | 2017-06-03T08:40:39 | 10,702,992 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 728 | c | #include "ppcomm.h"
#include "datapack.h"
#include <stdlib.h>
ppacket* createpacket_s(int size,int cmd,int id){
ppacket* p = (ppacket*)malloc(sizeof(ppacket)+HEADER_LEN+size);
p->size = size;
p->cmd = cmd;
p->id = id;
p->buf = ((char*)p) + sizeof(ppacket);
p->startptr = p->buf;
p->bytesleft = size + HEADER_LEN;
p->next = NULL;
uint8_t* ptr = p->buf;
put32bit(&ptr,size);
put32bit(&ptr,cmd);
put32bit(&ptr,id);
return p;
}
ppacket* createpacket_r(int size,int cmd,int id){
ppacket* p = (ppacket*)malloc(sizeof(ppacket)+size);
p->size = size;
p->cmd = cmd;
p->id = id;
p->buf = ((char*)p) + sizeof(ppacket);
p->startptr = p->buf;
p->bytesleft = size;
p->next = NULL;
return p;
}
| [
"[email protected]"
] | |
8876dcaf48f8390f2b47db08c1e9c1d4977805c7 | 07e5e9d83135ba1bb885b03d1c79199eb7d6e626 | /pm25/src/resource/resource_pms7003.c | 057961e11a5c11ad286f6acdf23f039b42076207 | [
"Apache-2.0"
] | permissive | dignsys/Tizen-5-0-Smart-Things-App | 52dd94b46ae858681b195264cc26c61487e4d628 | e7c814312321e13b75cebe904477932a0542abdb | refs/heads/master | 2020-04-29T06:32:46.622282 | 2019-03-18T09:10:02 | 2019-03-18T09:10:02 | 175,919,509 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 10,078 | c | /*
* Copyright (c) 2018 Samsung Electronics Co., Ltd.
*
* 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 <stdint.h>
#include <unistd.h>
#include <peripheral_io.h>
#include "resource/resource_pms7003.h"
#include "log.h"
/*
* PMS7003 Frame Packet Information
* UART setting : 9600bps, None parity, 1 stop bit
* frame length is 32 Bytes, 1 second period data transmition
*
* Frame Format : 32 Bytes = START_CHAR1[1] + START_CHAR2[1] + FRAME_LENGTH[2] + DATA[2 x 13] + CHECKSUM[2]
* Start Byte : start of frame [ 0x42, 0x4D ]
* Length : number of bytes except Start Byte [Frame length = 2 x 13 + 2(data + check bytes)]
* Data : 2 x 13 data : standard particle [data1, data2, data3], under atmospheric environment [data4, data5, data6], other [data7 ~ 13]
* Checksum : Check code = START_CHAR1 + START_CHAR2 + data1 + …….. + data13
*/
/*
* There are two options for digital output: passive and active.
* Default mode is active after power up.
* In this mode sensor would send serial data to the host automatically
* The active mode is divided into two sub-modes: stable mode and fast mode.
* If the concentration change is small the sensor would run at stable mode with the real interval of 2.3s.
* And if the change is big the sensor would be changed to fast mode automatically with the interval of 200~800ms,
* the higher of the concentration, the shorter of the interval.
*/
//#define DEBUG
#define MAX_TRY_COUNT 10
#define UART_PORT 4 // ARTIK 530 : UART0
#define UART_PORT_SDTA7D 5 // SDTA7D : UART6
#define MAX_FRAME_LEN 32
int incoming_byte = 0; // for incoming serial data
char frame_buf[MAX_FRAME_LEN]; // for save pms7003 protocol data
int byte_position = 0; // next byte position in frame_buf
int frame_len = MAX_FRAME_LEN; // length of frame
bool in_frame = false; // to check start character
unsigned int calc_checksum = 0; // to save calculated checksum value
// DATA STRUCTURE FOR PMS7003 PROTOCOL
static _pms7003_protocol_t pms7003_protocol;
static bool initialized = false;
static peripheral_uart_h g_uart_h;
extern void set_sensor_value(_pms7003_protocol_t pms7003_protocol);
/*
* open UART port and set UART handle resource
* set BAUD rate, byte size, parity bit, stop bit, flow control
* Appendix I:PMS7003 transport protocol-Active Mode
* Default baud rate:9600bps Check bit:None Stop bit:1 bit
*/
bool resource_pms7003_init(void)
{
if (initialized) return true;
_I("----- resource_pms7003_init -----");
peripheral_error_e ret = PERIPHERAL_ERROR_NONE;
// Opens the UART slave device
ret = peripheral_uart_open(UART_PORT_SDTA7D, &g_uart_h);
if (ret != PERIPHERAL_ERROR_NONE) {
_E("UART port [%d] open Failed, ret [%d]", UART_PORT_SDTA7D, ret);
return false;
}
// Sets baud rate of the UART slave device.
ret = peripheral_uart_set_baud_rate(g_uart_h, PERIPHERAL_UART_BAUD_RATE_9600); // The number of signal in one second is 9600
if (ret != PERIPHERAL_ERROR_NONE) {
_E("uart_set_baud_rate set Failed, ret [%d]", ret);
return false;
}
// Sets byte size of the UART slave device.
ret = peripheral_uart_set_byte_size(g_uart_h, PERIPHERAL_UART_BYTE_SIZE_8BIT); // 8 data bits
if (ret != PERIPHERAL_ERROR_NONE) {
_E("byte_size set Failed, ret [%d]", ret);
return false;
}
// Sets parity bit of the UART slave device.
ret = peripheral_uart_set_parity(g_uart_h, PERIPHERAL_UART_PARITY_NONE); // No parity is used
if (ret != PERIPHERAL_ERROR_NONE) {
_E("parity set Failed, ret [%d]", ret);
return false;
}
// Sets stop bits of the UART slave device
ret = peripheral_uart_set_stop_bits (g_uart_h, PERIPHERAL_UART_STOP_BITS_1BIT); // One stop bit
if (ret != PERIPHERAL_ERROR_NONE) {
_E("stop_bits set Failed, ret [%d]", ret);
return false;
}
// Sets flow control of the UART slave device.
// No software flow control & No hardware flow control
ret = peripheral_uart_set_flow_control (g_uart_h, PERIPHERAL_UART_SOFTWARE_FLOW_CONTROL_NONE, PERIPHERAL_UART_HARDWARE_FLOW_CONTROL_NONE);
if (ret != PERIPHERAL_ERROR_NONE) {
_E("flow control set Failed, ret [%d]", ret);
return false;
}
initialized = true;
return true;
}
/*
* To write data to a slave device
*/
bool resource_write_data(uint8_t *data, uint32_t length)
{
peripheral_error_e ret = PERIPHERAL_ERROR_NONE;
// write length byte data to UART
ret = peripheral_uart_write(g_uart_h, data, length);
if (ret != PERIPHERAL_ERROR_NONE) {
_E("UART write failed, ret [%d]", ret);
return false;
}
return true;
}
/*
* To read data from a slave device
*/
bool resource_read_data(uint8_t *data, uint32_t length, bool blocking_mode)
{
int try_again = 0;
peripheral_error_e ret = PERIPHERAL_ERROR_NONE;
if (g_uart_h == NULL)
return false;
while (1) {
// read length byte from UART
ret = peripheral_uart_read(g_uart_h, data, length);
if (ret == PERIPHERAL_ERROR_NONE)
return true;
// if data is not ready, try again
if (ret == PERIPHERAL_ERROR_TRY_AGAIN) {
// if blocking mode, read again
if (blocking_mode == true) {
usleep(100 * 1000);
_I(".");
continue;
} else {
// if non-blocking mode, retry MAX_TRY_COUNT
if (try_again >= MAX_TRY_COUNT) {
_E("No data to receive");
return false;
} else {
try_again++;
}
}
} else {
// if return value is not (PERIPHERAL_ERROR_NONE or PERIPHERAL_ERROR_TRY_AGAIN)
// return with false
_E("UART read failed, , ret [%d]", ret);
return false;
}
}
return true;
}
/*
* close UART handle and clear UART resources
*/
void resource_pms7003_fini(void)
{
_I("----- resource_pms7003_fini -----");
if(initialized) {
// Closes the UART slave device
peripheral_uart_close(g_uart_h);
initialized = false;
g_uart_h = NULL;
}
}
/*
* read sensor data from PMS7003 and format
*/
bool resource_pms7003_read(void)
{
uint8_t data;
bool packet_received = false;
calc_checksum = 0;
// clear frame buffer
memset(frame_buf, 0, MAX_FRAME_LEN);
// clear pms7003_protocol structure
memset(&pms7003_protocol, 0, sizeof(_pms7003_protocol_t));
// set Frame length = 2x13 + 2 (data+check bytes)
pms7003_protocol.frame_len = MAX_FRAME_LEN - sizeof(pms7003_protocol.checksum);
if (!initialized) {
// open UART port and set UART handle resource
// set BAUD rate, byte size, parity bit, stop bit, flow control
if (!resource_pms7003_init()) {
_E("resource initialization failed");
return false;
}
}
while (!packet_received) {
// read data from a slave device, block until data is received
if (resource_read_data(&data, 1, true) == false) {
_E("resource_read_data failed");
return false;
}
#ifdef DEBUG
_I("READ: [0x%02X]", incoming_byte);
#endif
if (!in_frame) {
if (data == 0x42 && byte_position == 0) {
#ifdef DEBUG
_I("READ: [0x%02X] ST1", data);
#endif
frame_buf[byte_position] = data; // add start character 1 into buffer
pms7003_protocol.frame_header[0] = data;
calc_checksum = data; // add data to Checksum
byte_position++; // set to next position
}
else if (data == 0x4D && byte_position == 1) {
#ifdef DEBUG
_I("READ: [0x%02X] ST2", data);
#endif
frame_buf[byte_position] = data; // add start character 2 into buffer
pms7003_protocol.frame_header[1] = data;
calc_checksum += data; // add data to Checksum
// we have valid frame header
in_frame = true; // received start char 1[0x42] and char 2[0x4d]
byte_position++; // set to next position
}
else {
// data is not in synced, ignore data
#ifdef DEBUG
_I("Frame syncing... [0x%02X]", data);
#endif
}
}
else {
#ifdef DEBUG
_I("READ: [0x%02X]", data);
#endif
// save data into frame buffer
frame_buf[byte_position] = data;
calc_checksum += data;
byte_position++;
unsigned int val = (frame_buf[byte_position - 1] & 0xff) + (frame_buf[byte_position - 2] << 8);
switch (byte_position) {
case 4:
pms7003_protocol.frame_len = val;
frame_len = val + byte_position;
#ifdef DEBUG
_I("frame_len: [%d]", frame_len);
#endif
break;
case 6:
pms7003_protocol.standard_particle.PM1_0 = val;
break;
case 8:
pms7003_protocol.standard_particle.PM2_5 = val;
break;
case 10:
pms7003_protocol.standard_particle.PM10 = val;
break;
case 12:
pms7003_protocol.atmospheric_env.PM1_0 = val;
break;
case 14:
pms7003_protocol.atmospheric_env.PM2_5 = val;
break;
case 16:
pms7003_protocol.atmospheric_env.PM10 = val;
break;
case 32:
pms7003_protocol.checksum = val;
calc_checksum -= ((val>>8) + (val&0xFF));
break;
default:
break;
}
// check if all data is received
if (byte_position >= frame_len) {
#ifdef DEBUG
_I("READ: byte_position[%d] : frame_len[%d]", byte_position, frame_len);
#endif
packet_received = true;
byte_position = 0;
in_frame = false;
}
}
}
// check received checksum and calculated checksum is same or not
// Checksum : Check code = START_CHAR1 + START_CHAR2 + data1 + …….. + data13
if (calc_checksum == pms7003_protocol.checksum) {
// save sensor data and return true
set_sensor_value(pms7003_protocol);
return true;
} else {
// return false
_E("Checksum error, calc_checksum[0x%X] != [0x%X] pms7003_protocol.checksum", calc_checksum, pms7003_protocol.checksum);
return false;
}
}
| [
"[email protected]"
] | |
e5d164d8c36aa387ca462ee00ae982633afe560d | 00be9947943b3a325950fc6a4a7a2db338a16dc0 | /src/Moon/240/mask_9_240.h | 8f491f97bd43e080c82813cb241a5e544b91a3a2 | [
"MIT"
] | permissive | Bodmer/RLEBitmap | ad53615e4290d33c1aaa4c56d1a563765b27481b | ed2bf7ec6497371415878a7a5a07b7938294aad6 | refs/heads/master | 2022-11-11T01:55:32.682678 | 2020-07-05T20:13:24 | 2020-07-05T20:13:24 | 277,346,398 | 5 | 0 | MIT | 2020-07-05T17:00:22 | 2020-07-05T17:00:21 | null | UTF-8 | C | false | false | 10,687 | h |
//
// This file is AUTOMATICALLY GENERATED, and should not be edited unless you are certain
// that it will not be re-generated anytime in the future. As generated code, the
// copyright owner(s) of the generating program do NOT claim any copyright on the code
// generated.
//
// Run Length Encoded (RLE) bitmaps. Each run is encoded as either one or two bytes,
// with NO PADDING. Thus, the data for each line of the bitmap is VARIABLE LENGTH, and
// there is no way of determining where any line other than the first starts without
// walking though the data.
//
// Note that one byte encoding ONLY occurs if the total number of colors is 16 or less,
// and in that case the 'flags' member of the 'RLEBitmapInfo' will have the first bit
// (0x01) set.
//
// In that case, if the high 4 bits of the first byte are ZERO, then this is a 2 byte
// run. The first byte is the index of the color in the color palette, and the second
// byte is the length.
//
// Else, the lower 4 bits are the color index, and the upper 4 bits are the run length.
//
// If the 'flags' member first bit is zero, then ALL runs are 2 byte runs. The first
// byte is the palette index, and the second is the run length.
//
// In order to save PROGMEM for other uses, the bitmap data is placed in a section that
// occurs near the END of the used FLASH. So, this data should only be accessed using
// the 'far' versions of the progmem functions - the usual versions are limited to the
// first 64K of FLASH.
//
// Data is from file 'images\240\mask_9_240.bmp'.
//
const byte mask_9_240_RLEBM_data[] PROGMEM_LATE =
{
0x00, 0x76, 0xe1, 0x00, 0x6c,
0x00, 0x75, 0x01, 0x17, 0x00, 0x64,
0x00, 0x74, 0x01, 0x1d, 0x00, 0x5f,
0x00, 0x73, 0x01, 0x22, 0x00, 0x5b,
0x00, 0x72, 0x01, 0x27, 0x00, 0x57,
0x00, 0x71, 0x01, 0x2b, 0x00, 0x54,
0x00, 0x71, 0x01, 0x2e, 0x00, 0x51,
0x00, 0x70, 0x01, 0x32, 0x00, 0x4e,
0x00, 0x70, 0x01, 0x35, 0x00, 0x4b,
0x00, 0x6f, 0x01, 0x38, 0x00, 0x49,
0x00, 0x6f, 0x01, 0x3a, 0x00, 0x47,
0x00, 0x6e, 0x01, 0x3d, 0x00, 0x45,
0x00, 0x6e, 0x01, 0x40, 0x00, 0x42,
0x00, 0x6d, 0x01, 0x42, 0x00, 0x41,
0x00, 0x6d, 0x01, 0x44, 0x00, 0x3f,
0x00, 0x6d, 0x01, 0x46, 0x00, 0x3d,
0x00, 0x6c, 0x01, 0x49, 0x00, 0x3b,
0x00, 0x6c, 0x01, 0x4a, 0x00, 0x3a,
0x00, 0x6c, 0x01, 0x4c, 0x00, 0x38,
0x00, 0x6b, 0x01, 0x4f, 0x00, 0x36,
0x00, 0x6b, 0x01, 0x50, 0x00, 0x35,
0x00, 0x6b, 0x01, 0x52, 0x00, 0x33,
0x00, 0x6b, 0x01, 0x53, 0x00, 0x32,
0x00, 0x6a, 0x01, 0x55, 0x00, 0x31,
0x00, 0x6a, 0x01, 0x57, 0x00, 0x2f,
0x00, 0x6a, 0x01, 0x58, 0x00, 0x2e,
0x00, 0x6a, 0x01, 0x59, 0x00, 0x2d,
0x00, 0x69, 0x01, 0x5b, 0x00, 0x2c,
0x00, 0x69, 0x01, 0x5d, 0x00, 0x2a,
0x00, 0x69, 0x01, 0x5e, 0x00, 0x29,
0x00, 0x69, 0x01, 0x5f, 0x00, 0x28,
0x00, 0x68, 0x01, 0x61, 0x00, 0x27,
0x00, 0x68, 0x01, 0x62, 0x00, 0x26,
0x00, 0x68, 0x01, 0x63, 0x00, 0x25,
0x00, 0x68, 0x01, 0x64, 0x00, 0x24,
0x00, 0x68, 0x01, 0x65, 0x00, 0x23,
0x00, 0x67, 0x01, 0x67, 0x00, 0x22,
0x00, 0x67, 0x01, 0x68, 0x00, 0x21,
0x00, 0x67, 0x01, 0x69, 0x00, 0x20,
0x00, 0x67, 0x01, 0x6a, 0x00, 0x1f,
0x00, 0x67, 0x01, 0x6b, 0x00, 0x1e,
0x00, 0x67, 0x01, 0x6c, 0x00, 0x1d,
0x00, 0x66, 0x01, 0x6d, 0x00, 0x1d,
0x00, 0x66, 0x01, 0x6e, 0x00, 0x1c,
0x00, 0x66, 0x01, 0x6f, 0x00, 0x1b,
0x00, 0x66, 0x01, 0x70, 0x00, 0x1a,
0x00, 0x66, 0x01, 0x71, 0x00, 0x19,
0x00, 0x66, 0x01, 0x71, 0x00, 0x19,
0x00, 0x65, 0x01, 0x73, 0x00, 0x18,
0x00, 0x65, 0x01, 0x74, 0x00, 0x17,
0x00, 0x65, 0x01, 0x75, 0x00, 0x16,
0x00, 0x65, 0x01, 0x75, 0x00, 0x16,
0x00, 0x65, 0x01, 0x76, 0x00, 0x15,
0x00, 0x65, 0x01, 0x77, 0x00, 0x14,
0x00, 0x65, 0x01, 0x77, 0x00, 0x14,
0x00, 0x65, 0x01, 0x78, 0x00, 0x13,
0x00, 0x64, 0x01, 0x7a, 0x00, 0x12,
0x00, 0x64, 0x01, 0x7a, 0x00, 0x12,
0x00, 0x64, 0x01, 0x7b, 0x00, 0x11,
0x00, 0x64, 0x01, 0x7b, 0x00, 0x11,
0x00, 0x64, 0x01, 0x7c, 0x00, 0x10,
0x00, 0x64, 0x01, 0x7c, 0x00, 0x10,
0x00, 0x64, 0x01, 0x7d, 0xf0,
0x00, 0x64, 0x01, 0x7e, 0xe0,
0x00, 0x63, 0x01, 0x7f, 0xe0,
0x00, 0x63, 0x01, 0x80, 0xd0,
0x00, 0x63, 0x01, 0x80, 0xd0,
0x00, 0x63, 0x01, 0x81, 0xc0,
0x00, 0x63, 0x01, 0x81, 0xc0,
0x00, 0x63, 0x01, 0x82, 0xb0,
0x00, 0x63, 0x01, 0x82, 0xb0,
0x00, 0x63, 0x01, 0x82, 0xb0,
0x00, 0x63, 0x01, 0x83, 0xa0,
0x00, 0x63, 0x01, 0x83, 0xa0,
0x00, 0x63, 0x01, 0x84, 0x90,
0x00, 0x63, 0x01, 0x84, 0x90,
0x00, 0x62, 0x01, 0x85, 0x90,
0x00, 0x62, 0x01, 0x86, 0x80,
0x00, 0x62, 0x01, 0x86, 0x80,
0x00, 0x62, 0x01, 0x87, 0x70,
0x00, 0x62, 0x01, 0x87, 0x70,
0x00, 0x62, 0x01, 0x87, 0x70,
0x00, 0x62, 0x01, 0x88, 0x60,
0x00, 0x62, 0x01, 0x88, 0x60,
0x00, 0x62, 0x01, 0x88, 0x60,
0x00, 0x62, 0x01, 0x89, 0x50,
0x00, 0x62, 0x01, 0x89, 0x50,
0x00, 0x62, 0x01, 0x89, 0x50,
0x00, 0x62, 0x01, 0x89, 0x50,
0x00, 0x62, 0x01, 0x8a, 0x40,
0x00, 0x62, 0x01, 0x8a, 0x40,
0x00, 0x62, 0x01, 0x8a, 0x40,
0x00, 0x61, 0x01, 0x8b, 0x40,
0x00, 0x61, 0x01, 0x8c, 0x30,
0x00, 0x61, 0x01, 0x8c, 0x30,
0x00, 0x61, 0x01, 0x8c, 0x30,
0x00, 0x61, 0x01, 0x8c, 0x30,
0x00, 0x61, 0x01, 0x8c, 0x30,
0x00, 0x61, 0x01, 0x8d, 0x20,
0x00, 0x61, 0x01, 0x8d, 0x20,
0x00, 0x61, 0x01, 0x8d, 0x20,
0x00, 0x61, 0x01, 0x8d, 0x20,
0x00, 0x61, 0x01, 0x8d, 0x20,
0x00, 0x61, 0x01, 0x8d, 0x20,
0x00, 0x61, 0x01, 0x8e, 0x10,
0x00, 0x61, 0x01, 0x8e, 0x10,
0x00, 0x61, 0x01, 0x8e, 0x10,
0x00, 0x61, 0x01, 0x8e, 0x10,
0x00, 0x61, 0x01, 0x8e, 0x10,
0x00, 0x61, 0x01, 0x8e, 0x10,
0x00, 0x61, 0x01, 0x8e, 0x10,
0x00, 0x61, 0x01, 0x8e, 0x10,
0x00, 0x61, 0x01, 0x8e, 0x10,
0x00, 0x61, 0x01, 0x8e, 0x10,
0x00, 0x61, 0x01, 0x8e, 0x10,
0x00, 0x61, 0x01, 0x8e, 0x10,
0x00, 0x61, 0x01, 0x8e, 0x10,
0x00, 0x61, 0x01, 0x8f,
0x00, 0x61, 0x01, 0x8f,
0x00, 0x61, 0x01, 0x8f,
0x00, 0x61, 0x01, 0x8f,
0x00, 0x61, 0x01, 0x8f,
0x00, 0x61, 0x01, 0x8f,
0x00, 0x61, 0x01, 0x8e, 0x10,
0x00, 0x61, 0x01, 0x8e, 0x10,
0x00, 0x61, 0x01, 0x8e, 0x10,
0x00, 0x61, 0x01, 0x8e, 0x10,
0x00, 0x61, 0x01, 0x8e, 0x10,
0x00, 0x61, 0x01, 0x8e, 0x10,
0x00, 0x61, 0x01, 0x8e, 0x10,
0x00, 0x61, 0x01, 0x8e, 0x10,
0x00, 0x61, 0x01, 0x8e, 0x10,
0x00, 0x61, 0x01, 0x8e, 0x10,
0x00, 0x61, 0x01, 0x8e, 0x10,
0x00, 0x61, 0x01, 0x8e, 0x10,
0x00, 0x61, 0x01, 0x8e, 0x10,
0x00, 0x61, 0x01, 0x8d, 0x20,
0x00, 0x61, 0x01, 0x8d, 0x20,
0x00, 0x61, 0x01, 0x8d, 0x20,
0x00, 0x61, 0x01, 0x8d, 0x20,
0x00, 0x61, 0x01, 0x8d, 0x20,
0x00, 0x61, 0x01, 0x8d, 0x20,
0x00, 0x61, 0x01, 0x8c, 0x30,
0x00, 0x61, 0x01, 0x8c, 0x30,
0x00, 0x61, 0x01, 0x8c, 0x30,
0x00, 0x61, 0x01, 0x8c, 0x30,
0x00, 0x61, 0x01, 0x8c, 0x30,
0x00, 0x61, 0x01, 0x8b, 0x40,
0x00, 0x62, 0x01, 0x8a, 0x40,
0x00, 0x62, 0x01, 0x8a, 0x40,
0x00, 0x62, 0x01, 0x8a, 0x40,
0x00, 0x62, 0x01, 0x89, 0x50,
0x00, 0x62, 0x01, 0x89, 0x50,
0x00, 0x62, 0x01, 0x89, 0x50,
0x00, 0x62, 0x01, 0x89, 0x50,
0x00, 0x62, 0x01, 0x88, 0x60,
0x00, 0x62, 0x01, 0x88, 0x60,
0x00, 0x62, 0x01, 0x88, 0x60,
0x00, 0x62, 0x01, 0x87, 0x70,
0x00, 0x62, 0x01, 0x87, 0x70,
0x00, 0x62, 0x01, 0x87, 0x70,
0x00, 0x62, 0x01, 0x86, 0x80,
0x00, 0x62, 0x01, 0x86, 0x80,
0x00, 0x62, 0x01, 0x85, 0x90,
0x00, 0x63, 0x01, 0x84, 0x90,
0x00, 0x63, 0x01, 0x84, 0x90,
0x00, 0x63, 0x01, 0x83, 0xa0,
0x00, 0x63, 0x01, 0x83, 0xa0,
0x00, 0x63, 0x01, 0x82, 0xb0,
0x00, 0x63, 0x01, 0x82, 0xb0,
0x00, 0x63, 0x01, 0x82, 0xb0,
0x00, 0x63, 0x01, 0x81, 0xc0,
0x00, 0x63, 0x01, 0x81, 0xc0,
0x00, 0x63, 0x01, 0x80, 0xd0,
0x00, 0x63, 0x01, 0x80, 0xd0,
0x00, 0x63, 0x01, 0x7f, 0xe0,
0x00, 0x64, 0x01, 0x7e, 0xe0,
0x00, 0x64, 0x01, 0x7d, 0xf0,
0x00, 0x64, 0x01, 0x7c, 0x00, 0x10,
0x00, 0x64, 0x01, 0x7c, 0x00, 0x10,
0x00, 0x64, 0x01, 0x7b, 0x00, 0x11,
0x00, 0x64, 0x01, 0x7b, 0x00, 0x11,
0x00, 0x64, 0x01, 0x7a, 0x00, 0x12,
0x00, 0x64, 0x01, 0x7a, 0x00, 0x12,
0x00, 0x65, 0x01, 0x78, 0x00, 0x13,
0x00, 0x65, 0x01, 0x77, 0x00, 0x14,
0x00, 0x65, 0x01, 0x77, 0x00, 0x14,
0x00, 0x65, 0x01, 0x76, 0x00, 0x15,
0x00, 0x65, 0x01, 0x75, 0x00, 0x16,
0x00, 0x65, 0x01, 0x75, 0x00, 0x16,
0x00, 0x65, 0x01, 0x74, 0x00, 0x17,
0x00, 0x65, 0x01, 0x73, 0x00, 0x18,
0x00, 0x66, 0x01, 0x71, 0x00, 0x19,
0x00, 0x66, 0x01, 0x71, 0x00, 0x19,
0x00, 0x66, 0x01, 0x70, 0x00, 0x1a,
0x00, 0x66, 0x01, 0x6f, 0x00, 0x1b,
0x00, 0x66, 0x01, 0x6e, 0x00, 0x1c,
0x00, 0x66, 0x01, 0x6d, 0x00, 0x1d,
0x00, 0x67, 0x01, 0x6c, 0x00, 0x1d,
0x00, 0x67, 0x01, 0x6b, 0x00, 0x1e,
0x00, 0x67, 0x01, 0x6a, 0x00, 0x1f,
0x00, 0x67, 0x01, 0x69, 0x00, 0x20,
0x00, 0x67, 0x01, 0x68, 0x00, 0x21,
0x00, 0x67, 0x01, 0x67, 0x00, 0x22,
0x00, 0x68, 0x01, 0x65, 0x00, 0x23,
0x00, 0x68, 0x01, 0x64, 0x00, 0x24,
0x00, 0x68, 0x01, 0x63, 0x00, 0x25,
0x00, 0x68, 0x01, 0x62, 0x00, 0x26,
0x00, 0x68, 0x01, 0x61, 0x00, 0x27,
0x00, 0x69, 0x01, 0x5f, 0x00, 0x28,
0x00, 0x69, 0x01, 0x5e, 0x00, 0x29,
0x00, 0x69, 0x01, 0x5d, 0x00, 0x2a,
0x00, 0x69, 0x01, 0x5b, 0x00, 0x2c,
0x00, 0x6a, 0x01, 0x59, 0x00, 0x2d,
0x00, 0x6a, 0x01, 0x58, 0x00, 0x2e,
0x00, 0x6a, 0x01, 0x57, 0x00, 0x2f,
0x00, 0x6a, 0x01, 0x55, 0x00, 0x31,
0x00, 0x6b, 0x01, 0x53, 0x00, 0x32,
0x00, 0x6b, 0x01, 0x52, 0x00, 0x33,
0x00, 0x6b, 0x01, 0x50, 0x00, 0x35,
0x00, 0x6b, 0x01, 0x4f, 0x00, 0x36,
0x00, 0x6c, 0x01, 0x4c, 0x00, 0x38,
0x00, 0x6c, 0x01, 0x4a, 0x00, 0x3a,
0x00, 0x6c, 0x01, 0x49, 0x00, 0x3b,
0x00, 0x6d, 0x01, 0x46, 0x00, 0x3d,
0x00, 0x6d, 0x01, 0x44, 0x00, 0x3f,
0x00, 0x6d, 0x01, 0x42, 0x00, 0x41,
0x00, 0x6e, 0x01, 0x40, 0x00, 0x42,
0x00, 0x6e, 0x01, 0x3d, 0x00, 0x45,
0x00, 0x6f, 0x01, 0x3a, 0x00, 0x47,
0x00, 0x6f, 0x01, 0x38, 0x00, 0x49,
0x00, 0x70, 0x01, 0x35, 0x00, 0x4b,
0x00, 0x70, 0x01, 0x32, 0x00, 0x4e,
0x00, 0x71, 0x01, 0x2e, 0x00, 0x51,
0x00, 0x71, 0x01, 0x2b, 0x00, 0x54,
0x00, 0x72, 0x01, 0x27, 0x00, 0x57,
0x00, 0x73, 0x01, 0x22, 0x00, 0x5b,
0x00, 0x74, 0x01, 0x1d, 0x00, 0x5f,
0x00, 0x75, 0x01, 0x17, 0x00, 0x64,
0x00, 0x76, 0xe1, 0x00, 0x6c,
}; // 240x240 Bitmap (57600 pixels) in 1316 bytes
const uint16_t mask_9_240_RLEBM_palette[] PROGMEM_LATE =
{
// Palette has 2 entries
0x0000, 0xffff,
};
// Some platforms don't fully implement the pgmspace.h interface. Assume ordinary
// addresses will do.
#if not defined pgm_get_far_address
#define pgm_get_far_address(x) ((uint32_t)(&(x)))
#endif
// Returns the info needed to render the bitmap.
inline void get_mask_9_240_RLEBM(
RLEBitmapInfo &bmInfo)
{
bmInfo.pRLEBM_data_far = pgm_get_far_address(mask_9_240_RLEBM_data);
bmInfo.pRLEBM_palette_far = pgm_get_far_address(mask_9_240_RLEBM_palette);
bmInfo.width = 240;
bmInfo.height = 240;
bmInfo.flags = 0x01;
}
| [
"[email protected]"
] | |
1620f45d3f998292e652ba0752bc173bdfad1511 | d49214d518c3a7703fe6abd1cc6ce53445f2c73e | /3-0-print_hex/ft_print_hex.c | fbe26d557424a54c2e229df26c3fcf1d2ff54541 | [] | no_license | danilkozyr/42_exams | 02e36a8ff93e72dc1c6a031f26ecf7ed068643fd | 5d27738e119b38168a7725a6d8b5470aad2ebd76 | refs/heads/master | 2020-05-09T14:21:54.442641 | 2019-06-15T12:24:37 | 2019-06-15T12:24:37 | 181,191,851 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 1,592 | c | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_print_hex.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dkozyr <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/12/16 18:42:43 by dkozyr #+# #+# */
/* Updated: 2018/12/16 18:42:43 by dkozyr ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
#include <stdio.h>
void ft_putchar(char c)
{
write(1, &c, 1);
}
int ft_atoi(char *str)
{
int i;
int res;
int min;
min = 1;
res = 0;
i = 0;
while ((str[i] >= 9 && str[i] <= 13) || str[i] == ' ')
i++;
if (str[i] == '+' || str[i] == '-')
{
if (str[i] == '-')
min = -1;
i++;
}
while (str[i] >= '0' && str[i] <= '9')
{
res = res * 10 + str[i] - 48;
i++;
}
return (res * min);
}
void ft_print_hex(int n)
{
if (n >= 16)
ft_print_hex(n / 16);
if (n % 16 < 10)
ft_putchar((n % 16) + 48);
else
ft_putchar((n % 16) - 10 + 97);
}
int main(int argc, char **argv)
{
if (argc == 2)
ft_print_hex(ft_atoi(argv[1]));
ft_putchar('\n');
return (0);
}
| [
"[email protected]"
] | |
e2d724d99a2761c69f63b53560a08e564f75e346 | f64c534ca3274332a20b48ee5d29dc577b98a602 | /network/phtread_mutex/mutex.c | 375ded3776d6976d0db2817309e875f052091243 | [] | no_license | wolf623/c_code | 7bfbdd8c95f685b3d00663bbd09b3ce4ef130cae | 49531c8ca65fb1e8ebd5145756a60deffbe614aa | refs/heads/master | 2021-07-09T02:19:02.902656 | 2016-09-14T01:52:13 | 2016-09-14T01:52:13 | 9,499,041 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 2,808 | c | #include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <string.h>
#include <errno.h>
#include <time.h>
#define PTHREAD_NUM 2 //max pthread number
#define FILE_NAME "temp.txt"
FILE *fp = NULL;
int g_value = 0;
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
typedef void (*func)(int *);
void write_file1(int *arg)
{
pthread_mutex_lock(&mutex);
printf("%s(): arg %d\n", __FUNCTION__, *arg);
if(fp == NULL)
{
fp = fopen(FILE_NAME, "w+");
if(fp == NULL)
{
printf("fopen failed!\n", strerror(errno));
return;
}
}
char *ptr = "write somgthing here...";
fwrite(ptr, strlen(ptr), 1, fp);
printf("in func1 before add, value %d\n", g_value);
struct timeval now;
struct timespec outtime;
gettimeofday(&now, NULL);
outtime.tv_sec = now.tv_sec + 2;
outtime.tv_nsec = now.tv_usec * 1000;
//pthread_cond_wait(&cond, &mutex);
pthread_cond_timedwait(&cond, &mutex, &outtime);
printf("time out...I am ready to go!!!\n");
g_value++;
printf("in func1 after add, value %d\n", g_value);
pthread_mutex_unlock(&mutex);
pthread_exit("pthread exit message - 1");
}
void write_file2(int *arg)
{
pthread_mutex_lock(&mutex);
printf("%s(): arg %d\n", __FUNCTION__, *arg);
if(fp == NULL)
{
fp = fopen(FILE_NAME, "w+");
if(fp == NULL)
{
printf("fopen failed!\n", strerror(errno));
return;
}
}
char *ptr = "write somgthing here...";
fwrite(ptr, strlen(ptr), 1, fp);
printf("in func2 before add, value %d\n", g_value);
pthread_cond_wait(&cond, &mutex);
g_value++;
printf("in func2 after add, value %d\n", g_value);
pthread_mutex_unlock(&mutex);
pthread_exit("pthread exit message - 2");
}
int main(int argc, char *argv[])
{
pthread_t pthread_ns[PTHREAD_NUM];
int i = 0, ec = 0;
void *msg = NULL;
func func_array[PTHREAD_NUM] = {write_file1, write_file2};
pthread_attr_t attr;
pthread_attr_init(&attr);
//pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); //fenli
pthread_mutexattr_t mtattr;
pthread_mutexattr_init(&mtattr);
pthread_mutexattr_settype(&mtattr, PTHREAD_MUTEX_RECURSIVE);
pthread_mutex_init(&mutex, &mtattr);
pthread_cond_init(&cond, NULL);
//pthread_condattr_setclock(&cond, (clockid_t)CLOCK_MONOTONIC); //CLOCK_REALTIME
for(i=0; i<PTHREAD_NUM; i++)
{
ec = pthread_create(&pthread_ns[i], &attr, (void *(*)(void *))func_array[i], &i);
if(ec != 0)
{
printf("pthread failed!\n");
}
}
sleep(1);
printf("I am here...\n");
//pthread_cond_broadcast(&cond);
pthread_cond_signal(&cond);
for(i=0; i<PTHREAD_NUM; i++)
{
pthread_join(pthread_ns[i], &msg);
printf("end...%s\n", (char *)msg);
}
pthread_attr_destroy(&attr);
pthread_mutexattr_destroy(&mtattr);
pthread_cond_destroy(&cond);
pthread_mutex_destroy(&mutex);
return 0;
}
| [
"[email protected]"
] | |
6d76e1c1f713fc7194f3c85c6fa0ddcbca8eb74e | 515316c01d1a189abe029da44a49c6d9af75be62 | /src/server.c | d2db07b9bb405d8f05b07c09121c3f2eebb4b3da | [
"MIT"
] | permissive | gitaccount2/sky | 371afd1f03963898d7b9416995e7321b69eec33a | 10252d701e5f48dcdff34f9f28fb9504f80029a7 | refs/heads/master | 2021-01-17T22:30:46.015979 | 2013-01-24T04:50:31 | 2013-01-24T04:50:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 26,837 | c | #include <inttypes.h>
#include <stdbool.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/time.h>
#include <assert.h>
#include <zmq.h>
#include "bstring.h"
#include "server.h"
#include "message_header.h"
#include "add_event_message.h"
#include "next_actions_message.h"
#include "add_action_message.h"
#include "get_action_message.h"
#include "get_actions_message.h"
#include "add_property_message.h"
#include "get_property_message.h"
#include "get_properties_message.h"
#include "lookup_message.h"
#include "create_table_message.h"
#include "delete_table_message.h"
#include "get_table_message.h"
#include "get_tables_message.h"
#include "ping_message.h"
#include "lua_aggregate_message.h"
#include "multi_message.h"
#include "sky_zmq.h"
#include "dbg.h"
//==============================================================================
//
// Forward Declarations
//
//==============================================================================
int sky_server_create_servlets(sky_server *server, sky_table *table);
int sky_server_stop_servlets(sky_server *server, sky_table *table);
//==============================================================================
//
// Global Variables
//
//==============================================================================
// A counter to track the next available server id. Creating multiple servers
// is not thread safe, however, there's probably not a good reason to span
// multiple servers across multiple threads in the same process.
int32_t next_server_id = 0;
//==============================================================================
//
// Functions
//
//==============================================================================
//--------------------------------------
// Lifecycle
//--------------------------------------
// Creates a reference to a server instance.
//
// path - The data directory path.
//
// Returns a reference to the server.
sky_server *sky_server_create(bstring path)
{
sky_server *server = NULL;
server = calloc(1, sizeof(sky_server)); check_mem(server);
server->id = next_server_id++;
server->path = bstrcpy(path);
if(path) check_mem(server->path);
server->port = SKY_DEFAULT_PORT;
server->context = zmq_ctx_new();
return server;
error:
sky_server_free(server);
return NULL;
}
// Frees the servlets on a server instance.
//
// server - The server.
//
// Returns nothing.
void sky_server_free_servlets(sky_server *server)
{
if(server) {
uint32_t i;
for(i=0; i<server->servlet_count; i++) {
sky_servlet_free(server->servlets[i]);
server->servlets[i] = NULL;
}
free(server->servlets);
server->servlets = NULL;
server->servlet_count = 0;
}
}
// Frees the tables on a server instance.
//
// server - The server.
//
// Returns nothing.
void sky_server_free_tables(sky_server *server)
{
if(server) {
uint32_t i;
for(i=0; i<server->table_count; i++) {
sky_table_free(server->tables[i]);
server->tables[i] = NULL;
}
free(server->tables);
server->tables = NULL;
server->table_count = 0;
}
}
// Frees the message handlers on a server instance.
//
// server - The server.
//
// Returns nothing.
void sky_server_free_message_handlers(sky_server *server)
{
if(server) {
uint32_t i;
for(i=0; i<server->message_handler_count; i++) {
sky_message_handler_free(server->message_handlers[i]);
server->message_handlers[i] = NULL;
}
free(server->message_handlers);
server->message_handlers = NULL;
server->message_handler_count = 0;
}
}
// Frees a server instance from memory.
//
// server - The server object to free.
//
// Returns nothing.
void sky_server_free(sky_server *server)
{
if(server) {
if(server->path) bdestroy(server->path);
sky_server_free_tables(server);
sky_server_free_servlets(server);
sky_server_free_message_handlers(server);
zmq_ctx_destroy(server->context);
free(server);
}
}
//--------------------------------------
// State
//--------------------------------------
// Starts a server. Once a server is started, it can accept messages over TCP
// on the bind address and port number specified by the server object.
//
// server - The server to start.
//
// Returns 0 if successful, otherwise returns -1.
int sky_server_start(sky_server *server)
{
int rc;
assert(server != NULL);
check(server->state == SKY_SERVER_STATE_STOPPED, "Server already running");
check(server->port > 0, "Port required");
// Initialize socket info.
server->sockaddr = calloc(1, sizeof(struct sockaddr_in));
check_mem(server->sockaddr);
server->sockaddr->sin_addr.s_addr = INADDR_ANY;
server->sockaddr->sin_port = htons(server->port);
server->sockaddr->sin_family = AF_INET;
// Create socket.
server->socket = socket(AF_INET, SOCK_STREAM, 0);
check(server->socket != -1, "Unable to create a socket");
// Set socket for reuse.
int optval = 1;
rc = setsockopt(server->socket, SOL_SOCKET, SO_REUSEADDR, &optval, sizeof(optval));
check(rc == 0, "Unable to set socket for reuse");
// Bind socket.
rc = bind(server->socket, (struct sockaddr*)server->sockaddr, sizeof(struct sockaddr_in));
check(rc == 0, "Unable to bind socket");
// Listen on socket.
rc = listen(server->socket, SKY_LISTEN_BACKLOG);
check(rc != -1, "Unable to listen on socket");
// Update server state.
server->state = SKY_SERVER_STATE_RUNNING;
return 0;
error:
sky_server_stop(server);
return -1;
}
// Stops a server. This actions closes the TCP socket and in-process messages
// will be aborted.
//
// server - The server to stop.
//
// Returns 0 if successful, otherwise returns -1.
int sky_server_stop(sky_server *server)
{
int rc;
assert(server != NULL);
// Close socket if open.
if(server->socket > 0) {
close(server->socket);
}
server->socket = 0;
// Clear socket info.
if(server->sockaddr) {
free(server->sockaddr);
}
server->sockaddr = NULL;
// Send a shutdown signal to all servlets and wait for response.
rc = sky_server_stop_servlets(server, NULL);
check(rc == 0, "Unable to stop servlets");
// Update server state.
server->state = SKY_SERVER_STATE_STOPPED;
return 0;
error:
return -1;
}
// Sends a shutdown signal to all servlets and waits for their confirmation
// before returning.
//
// server - The server.
// table - The table to close servlets for. Or NULL if all servlets should be
// closed.
//
// Returns 0 if successful, otherwise returns -1.
int sky_server_stop_servlets(sky_server *server, sky_table *table)
{
int rc;
void *pull_socket = NULL;
void *push_socket = NULL;
assert(server != NULL);
// Create pull socket.
pull_socket = zmq_socket(server->context, ZMQ_PULL);
check(pull_socket != NULL, "Unable to create server shutdown socket");
// Bind pull socket.
rc = zmq_bind(pull_socket, SKY_SERVER_SHUTDOWN_URI);
check(rc == 0, "Unable to bind server shutdown socket");
// Send a shutdown message to each servlet.
uint32_t i, j;
uint32_t count = 0;
for(i=0; i<server->servlet_count; i++) {
// Check if this servlet matches the table.
if(table == NULL || server->servlets[i]->tablet->table == table) {
// Create push socket.
push_socket = zmq_socket(server->context, ZMQ_PUSH);
check(push_socket != NULL, "Unable to create shutdown push socket");
// Connect to servlet.
rc = zmq_connect(push_socket, bdata(server->servlets[i]->uri));
check(rc == 0, "Unable to connect to servlet for shutdown");
// Send NULL worklet for shutdown.
void *ptr = NULL;
rc = sky_zmq_send_ptr(push_socket, &ptr);
check(rc == 0, "Unable to send worklet message");
// Close socket.
rc = zmq_close(push_socket);
check(rc == 0, "Unable to close server shutdown push socket");
push_socket = NULL;
// Clear the servlet.
for(j=i+1; j<server->servlet_count; j++) {
server->servlets[j-1] = server->servlets[j];
}
server->servlets[server->servlet_count-1] = NULL;
server->servlet_count--;
i--;
// Increment the counter.
count++;
}
}
// Read in one pull message for every push message sent.
for(i=0; i<count; i++) {
// Receive servlet ref on shutdown.
sky_servlet *servlet = NULL;
rc = sky_zmq_recv_ptr(pull_socket, (void**)&servlet);
check(rc == 0, "Server unable to receive shutdown response");
}
// Clean up socket.
rc = zmq_close(pull_socket);
check(rc == 0, "Unable to close server shutdown pull socket");
// Clean up servlets.
if(server->servlet_count == 0) {
free(server->servlets);
server->servlets = NULL;
}
return 0;
error:
if(pull_socket) zmq_close(pull_socket);
if(push_socket) zmq_close(push_socket);
return -1;
}
// Accepts a connection on a running server. Once a connection is accepted then
// the message is parsed and processed.
//
// server - The server.
//
// Returns 0 if successful, otherwise returns -1.
int sky_server_accept(sky_server *server)
{
int rc;
FILE *input = NULL;
FILE *output = NULL;
assert(server != NULL);
// Accept the next connection.
int sockaddr_size = sizeof(struct sockaddr_in);
int socket = accept(server->socket, (struct sockaddr*)server->sockaddr, (socklen_t *)&sockaddr_size);
check(socket != -1, "Unable to accept connection");
// Wrap socket in a buffered file reference.
input = fdopen(socket, "r");
output = fdopen(dup(socket), "w");
if(input != NULL && output == NULL) fclose(input);
if(input == NULL && output != NULL) fclose(output);
check(input != NULL, "Unable to open buffered socket input");
check(output != NULL, "Unable to open buffered socket output");
// Process message.
rc = sky_server_process_message(server, false, input, output);
check(rc == 0, "Unable to process message");
return 0;
error:
return -1;
}
//--------------------------------------
// Message Processing
//--------------------------------------
// Processes a single message.
//
// server - The server.
// multi - A flag stating if this message is part of a 'multi' message.
// input - The input stream.
// output - The output stream.
//
// Returns 0 if successful, otherwise returns -1.
int sky_server_process_message(sky_server *server, bool multi,
FILE *input, FILE *output)
{
int rc;
sky_message_header *header = NULL;
assert(server != NULL);
check(input != NULL, "Input stream required");
check(output != NULL, "Output stream required");
// Parse message header.
header = sky_message_header_create(); check_mem(header);
header->multi = multi;
rc = sky_message_header_unpack(header, input);
check(rc == 0, "Unable to unpack message header");
// Retrieve appropriate message handler by name.
sky_message_handler *handler = NULL;
rc = sky_server_get_message_handler(server, header->name, &handler);
check(rc == 0, "Unable to get message handler");
// If the handler exists then use it to process the message.
if(handler != NULL) {
// Open table if within scope.
sky_table *table = NULL;
if(handler->scope != SKY_MESSAGE_HANDLER_SCOPE_SERVER) {
rc = sky_server_get_table(server, header->table_name, &table);
check(rc == 0, "Unable to open table");
}
rc = handler->process(server, header, table, input, output);
// Closing the input/output is delegated to the handler at this point.
input = NULL;
output = NULL;
}
// Parse appropriate message type.
else {
sentinel("Invalid message type");
}
check(rc == 0, "Unable to process message: %s", bdata(header->name));
sky_message_header_free(header);
return 0;
error:
sky_message_header_free(header);
if(input) fclose(input);
if(output) fclose(output);
return -1;
}
//--------------------------------------
// Message Handlers
//--------------------------------------
// Retrieves a message handler from the server by name.
//
// server - The server.
// name - The name of the message handler.
// ret - A pointer to where the handler should be returned.
//
// Returns 0 if successful, otherwise returns -1.
int sky_server_get_message_handler(sky_server *server, bstring name,
sky_message_handler **ret)
{
assert(server != NULL);
assert(ret != NULL);
check(blength(name), "Message name required");
// Initialize return value.
*ret = NULL;
// Make sure a handler with the same name doesn't exist.
uint32_t i;
for(i=0; i<server->message_handler_count; i++) {
if(biseq(server->message_handlers[i]->name, name) == 1) {
*ret = server->message_handlers[i];
break;
}
}
return 0;
error:
*ret = NULL;
return -1;
}
// Adds a message handler to the server.
//
// server - The server.
// handler - The message handler to add.
//
// Returns 0 if successful, otherwise returns -1.
int sky_server_add_message_handler(sky_server *server,
sky_message_handler *handler)
{
int rc;
assert(server != NULL);
assert(handler != NULL);
// Make sure a handler with the same name doesn't exist.
sky_message_handler *existing_handler = NULL;
rc = sky_server_get_message_handler(server, handler->name, &existing_handler);
check(rc == 0, "Unable to get existing handler");
check(existing_handler == NULL, "Message handler '%s' already exists on server", bdata(handler->name));
// Append handler to server's list of message handlers.
server->message_handler_count++;
server->message_handlers = realloc(server->message_handlers, server->message_handler_count * sizeof(*server->message_handlers));
check_mem(server->message_handlers);
server->message_handlers[server->message_handler_count-1] = handler;
return 0;
error:
return -1;
}
// Removes a message handler to the server.
//
// server - The server.
// handler - The message handler to remove.
//
// Returns 0 if successful, otherwise returns -1.
int sky_server_remove_message_handler(sky_server *server,
sky_message_handler *handler)
{
assert(server != NULL);
assert(handler != NULL);
// Remove handler from server's list of message handlers.
uint32_t i,j;
for(i=0; i<server->message_handler_count; i++) {
sky_message_handler *handler = server->message_handlers[i];
if(server->message_handlers[i] == handler) {
for(j=i; j<server->message_handler_count-1; j++) {
server->message_handlers[j] = server->message_handlers[j+1];
}
server->message_handlers[server->message_handler_count-1] = NULL;
server->message_handler_count--;
break;
}
}
return 0;
}
// Add the standard message handlers to the server.
//
// server - The server.
//
// Returns 0 if successful, otherwise returns -1.
int sky_server_add_default_message_handlers(sky_server *server)
{
int rc;
sky_message_handler *handler = NULL;
assert(server != NULL);
// 'Add Event' message.
handler = sky_add_event_message_handler_create(); check_mem(handler);
rc = sky_server_add_message_handler(server, handler);
check(rc == 0, "Unable to add message handler");
// 'Next Actions' message.
handler = sky_next_actions_message_handler_create(); check_mem(handler);
rc = sky_server_add_message_handler(server, handler);
check(rc == 0, "Unable to add message handler");
// 'Add Action' message.
handler = sky_add_action_message_handler_create(); check_mem(handler);
rc = sky_server_add_message_handler(server, handler);
check(rc == 0, "Unable to add message handler");
// 'Get Action' message.
handler = sky_get_action_message_handler_create(); check_mem(handler);
rc = sky_server_add_message_handler(server, handler);
check(rc == 0, "Unable to add message handler");
// 'Get Actions' message.
handler = sky_get_actions_message_handler_create(); check_mem(handler);
rc = sky_server_add_message_handler(server, handler);
check(rc == 0, "Unable to add message handler");
// 'Add Property' message.
handler = sky_add_property_message_handler_create(); check_mem(handler);
rc = sky_server_add_message_handler(server, handler);
check(rc == 0, "Unable to add message handler");
// 'Get Property' message.
handler = sky_get_property_message_handler_create(); check_mem(handler);
rc = sky_server_add_message_handler(server, handler);
check(rc == 0, "Unable to add message handler");
// 'Get Properties' message.
handler = sky_get_properties_message_handler_create(); check_mem(handler);
rc = sky_server_add_message_handler(server, handler);
check(rc == 0, "Unable to add message handler");
// 'Lookup' message.
handler = sky_lookup_message_handler_create(); check_mem(handler);
rc = sky_server_add_message_handler(server, handler);
check(rc == 0, "Unable to add message handler");
// 'Add Table' message.
handler = sky_create_table_message_handler_create(); check_mem(handler);
rc = sky_server_add_message_handler(server, handler);
check(rc == 0, "Unable to add message handler");
// 'Delete Table' message.
handler = sky_delete_table_message_handler_create(); check_mem(handler);
rc = sky_server_add_message_handler(server, handler);
check(rc == 0, "Unable to add message handler");
// 'Get Table' message.
handler = sky_get_table_message_handler_create(); check_mem(handler);
rc = sky_server_add_message_handler(server, handler);
check(rc == 0, "Unable to add message handler");
// 'Get Tables' message.
handler = sky_get_tables_message_handler_create(); check_mem(handler);
rc = sky_server_add_message_handler(server, handler);
check(rc == 0, "Unable to add message handler");
// 'Ping' message.
handler = sky_ping_message_handler_create(); check_mem(handler);
rc = sky_server_add_message_handler(server, handler);
check(rc == 0, "Unable to add message handler");
// 'Lua Map Reduce' message.
handler = sky_lua_aggregate_message_handler_create(); check_mem(handler);
rc = sky_server_add_message_handler(server, handler);
check(rc == 0, "Unable to add message handler");
// 'Multi' message.
handler = sky_multi_message_handler_create(); check_mem(handler);
rc = sky_server_add_message_handler(server, handler);
check(rc == 0, "Unable to add message handler");
return 0;
error:
return -1;
}
//--------------------------------------
// Table management
//--------------------------------------
// Retrieves a reference to a table by name. If the table is not found then
// it will be opened automatically.
//
// server - The server.
// name - The table name.
// ret - A pointer to where the table reference should be returned.
//
// Returns 0 if successful, otherwise returns -1.
int sky_server_get_table(sky_server *server, bstring name, sky_table **ret)
{
int rc;
sky_table *table = NULL;
bstring path = NULL;
assert(server != NULL);
check(blength(name) > 0, "Table name required");
// Initialize return values.
*ret = NULL;
// Determine the path to the table.
path = bformat("%s/%s", bdata(server->path), bdata(name));
check_mem(path);
// Loop over tables to see if it's open yet.
uint32_t i;
for(i=0; i<server->table_count; i++) {
if(biseq(server->tables[i]->path, path) == 1) {
*ret = server->tables[i];
break;
}
}
// If the table is not yet opened then open it.
if(*ret == NULL) {
rc = sky_server_open_table(server, name, path, ret);
check(rc == 0, "Unable to open table");
}
bdestroy(path);
return 0;
error:
bdestroy(path);
sky_table_free(table);
*ret = NULL;
return -1;
}
// Opens a table and attaches it to the server.
//
// server - The server.
// name - The table name.
// path - The table path.
// ret - A pointer to where the table reference should be returned.
//
// Returns 0 if successful, otherwise returns -1.
int sky_server_open_table(sky_server *server, bstring name, bstring path,
sky_table **ret)
{
int rc;
sky_table *table = NULL;
assert(server != NULL);
assert(ret != NULL);
check(blength(path) > 0, "Table path required");
// Initialize return values.
*ret = NULL;
// Only open the table if it exists already.
if(sky_file_exists(path)) {
// Create the table.
table = sky_table_create(); check_mem(table);
table->name = bstrcpy(name); check_mem(table->name);
rc = sky_table_set_path(table, path);
check(rc == 0, "Unable to set table path");
// Open the table.
rc = sky_table_open(table);
check(rc == 0, "Unable to open table");
// Append the table to the list of open tables.
server->table_count++;
server->tables = realloc(server->tables, server->table_count * sizeof(*server->tables));
check_mem(server->tables);
server->tables[server->table_count-1] = table;
// Open servlets for the table's tablets.
rc = sky_server_create_servlets(server, table);
check(rc == 0, "Unable to create servlets for table");
// Return table.
*ret = table;
}
return 0;
error:
sky_table_free(table);
if(ret) *ret = NULL;
return -1;
}
// Closes a table and detaches it from the server.
//
// server - The server.
// table - The table to close.
//
// Returns 0 if successful, otherwise returns -1.
int sky_server_close_table(sky_server *server, sky_table *table)
{
int rc;
assert(server != NULL);
assert(table != NULL);
// Send shutdown message for servlets associated with this table.
rc = sky_server_stop_servlets(server, table);
check(rc == 0, "Unable to shutdown servlets related to table: %s", bdata(table->path));
// Remove the server association.
uint32_t i, j;
for(i=0; i<server->table_count; i++) {
if(server->tables[i] == table) {
sky_table_free(table);
table = NULL;
for(j=i+1; j<server->table_count; j++) {
server->tables[j-1] = server->tables[j];
}
server->tables[server->table_count-1] = NULL;
server->table_count--;
i--;
}
}
return 0;
error:
return -1;
}
//--------------------------------------
// Servlet Management
//--------------------------------------
// Retrieves a servlet that processes a given tablet.
//
// server - The server.
// tablet - The tablet.
// servlet - A pointer to where the servlet should be returned.
//
// Returns 0 if successful, otherwise returns -1.
int sky_server_get_tablet_servlet(sky_server *server, sky_tablet *tablet,
sky_servlet **servlet)
{
assert(server != NULL);
assert(tablet != NULL);
assert(servlet != NULL);
// Loop over all servlets and find the one associated with the tablet.
uint32_t i;
for(i=0; i<server->servlet_count; i++) {
if(server->servlets[i]->tablet == tablet) {
*servlet = server->servlets[i];
break;
}
}
return 0;
}
// Retrieves a list of servlets associated with a given table.
//
// server - The server.
// table - The table.
// servlets - A pointer to where the servlets should be returned.
// count - A pointer to where the number of servlets should be returned.
//
// Returns 0 if successful, otherwise returns -1.
int sky_server_get_table_servlets(sky_server *server, sky_table *table,
sky_servlet ***servlets, uint32_t *count)
{
assert(server != NULL);
assert(table != NULL);
assert(servlets != NULL);
assert(count != NULL);
// Allocate array.
*count = table->tablet_count;
*servlets = calloc(*count, sizeof(**servlets));
check_mem(*servlets);
// Loop over all servlets and find ones associated with the table.
uint32_t i, index=0;
for(i=0; i<server->servlet_count; i++) {
sky_servlet *servlet = server->servlets[i];
if(servlet->tablet->table == table) {
(*servlets)[index] = servlet;
index++;
}
}
return 0;
error:
if(count) *count = 0;
if(servlets) {
free(*servlets);
*servlets = NULL;
}
return -1;
}
// Creates a set of servlets for a given table. Each servlet is responsible
// for a single tablet on the table.
//
// server - The server.
// table - The table to create servlets against.
//
// Returns 0 if successful, otherwise returns -1.
int sky_server_create_servlets(sky_server *server, sky_table *table)
{
int rc;
sky_servlet *servlet = NULL;
assert(server != NULL);
assert(table);
// Allocate additional space for the new servlets.
uint32_t new_servlet_count = table->tablet_count;
server->servlets = realloc(server->servlets, (server->servlet_count + new_servlet_count) * sizeof(*server->servlets));
check_mem(server->servlets);
memset(&server->servlets[server->servlet_count], 0, sizeof(*server->servlets) * new_servlet_count);
// Loop over tablets and create one servlet for each one.
uint32_t i;
for(i=0; i<new_servlet_count; i++) {
// Create the servlet.
sky_tablet *tablet = table->tablets[i];
servlet = sky_servlet_create(server, tablet); check_mem(servlet);
// Start the servlet.
rc = sky_servlet_start(servlet);
check(rc == 0, "Unable to start servlet");
// Append the servlet to the server.
server->servlets[server->servlet_count] = servlet;
server->servlet_count++;
servlet = NULL;
}
return 0;
error:
sky_servlet_free(servlet);
return -1;
}
| [
"[email protected]"
] | |
6bbbf3b58ed89e57b5fdb32551a00a1f0135a652 | b25c7bde89547dfae473821d4c90d69e164f033e | /mission_repeat_controller.ysc.c | 4c505adabfff227ce7d692de1fa53a635c814e4f | [] | no_license | Reliency/1.46-Grand-Theft-Auto-V-Scripts | 8d1b29309a0f11d9ce5998248af88223715cfe2a | 3a7fefb2f4313aacfa82b88f62ec3a993bbbdbb7 | refs/heads/master | 2020-04-11T00:50:25.976011 | 2018-12-11T22:08:05 | 2018-12-11T22:08:05 | 161,398,239 | 3 | 0 | null | null | null | null | UTF-8 | C | false | false | 2,378,592 | c | #region Local Var
var uLocal_0 = 0;
var uLocal_1 = 0;
int iLocal_2 = 0;
int iLocal_3 = 0;
int iLocal_4 = 0;
int iLocal_5 = 0;
int iLocal_6 = 0;
int iLocal_7 = 0;
int iLocal_8 = 0;
int iLocal_9 = 0;
int iLocal_10 = 0;
int iLocal_11 = 0;
var uLocal_12 = 0;
var uLocal_13 = 0;
float fLocal_14 = 0f;
var uLocal_15 = 0;
var uLocal_16 = 0;
int iLocal_17 = 0;
char* sLocal_18 = NULL;
var uLocal_19 = 0;
var uLocal_20 = 0;
float fLocal_21 = 0f;
var uLocal_22 = 0;
var uLocal_23 = 0;
var uLocal_24 = 0;
float fLocal_25 = 0f;
float fLocal_26 = 0f;
var uLocal_27 = 0;
var uLocal_28 = 0;
var uLocal_29 = 0;
float fLocal_30 = 0f;
float fLocal_31 = 0f;
float fLocal_32 = 0f;
var uLocal_33 = 0;
var uLocal_34 = 0;
int iLocal_35 = 0;
var uLocal_36 = 0;
var uLocal_37 = 0;
var uLocal_38 = 0;
int iLocal_39 = 0;
int iLocal_40 = 0;
int iLocal_41 = 0;
int iLocal_42 = 0;
var uLocal_43 = 0;
var uLocal_44 = 0;
var uLocal_45 = 0;
var uLocal_46 = 0;
var uLocal_47 = 0;
var uLocal_48 = 0;
var uLocal_49 = 0;
var uLocal_50 = 0;
var uLocal_51 = 0;
var uLocal_52 = 0;
var uLocal_53 = 0;
var uLocal_54 = 0;
var uLocal_55 = 0;
var uLocal_56 = 10;
var uLocal_57 = 0;
var uLocal_58 = 0;
var uLocal_59 = 0;
var uLocal_60 = 0;
var uLocal_61 = 0;
var uLocal_62 = 0;
var uLocal_63 = 0;
var uLocal_64 = 0;
var uLocal_65 = 0;
var uLocal_66 = 0;
var uLocal_67 = 0;
var uLocal_68 = 0;
var uLocal_69 = 0;
var uLocal_70 = 0;
var uLocal_71 = 0;
var uLocal_72 = 0;
var uLocal_73 = 0;
var uLocal_74 = 0;
var uLocal_75 = 0;
var uLocal_76 = 0;
var uLocal_77 = 0;
var uLocal_78 = 0;
var uLocal_79 = 0;
var uLocal_80 = 0;
var uLocal_81 = 0;
var uLocal_82 = 0;
var uLocal_83 = 0;
var uLocal_84 = 0;
var uLocal_85 = 0;
var uLocal_86 = 0;
var uLocal_87 = 0;
var uLocal_88 = 0;
var uLocal_89 = 0;
var uLocal_90 = 0;
var uLocal_91 = 0;
var uLocal_92 = 0;
var uLocal_93 = 0;
var uLocal_94 = 0;
var uLocal_95 = 0;
var uLocal_96 = 0;
var uLocal_97 = 0;
int iLocal_98 = 0;
int iLocal_99 = 0;
struct<4> Local_100 = { 0, 0, 0, 0 } ;
var uLocal_101 = 0;
var uLocal_102 = 0;
var uLocal_103 = 0;
var uLocal_104 = 0;
int iLocal_105 = 0;
int iLocal_106 = 0;
int iLocal_107 = 0;
#endregion
void __EntryFunction__()
{
iLocal_2 = 1;
iLocal_3 = 134;
iLocal_4 = 134;
iLocal_5 = 1;
iLocal_6 = 1;
iLocal_7 = 1;
iLocal_8 = 134;
iLocal_9 = 1;
iLocal_10 = 12;
iLocal_11 = 12;
fLocal_14 = 0.001f;
iLocal_17 = -1;
sLocal_18 = "NULL";
fLocal_21 = 0f;
fLocal_25 = -0.0375f;
fLocal_26 = 0.17f;
fLocal_30 = 80f;
fLocal_31 = 140f;
fLocal_32 = 180f;
iLocal_35 = 3;
iLocal_39 = 1;
iLocal_40 = 65;
iLocal_41 = 49;
iLocal_42 = 64;
iLocal_106 = -1;
if (unk_0x5EBD03AF78E7B4DB(34))
{
if (unk_0x8D0F8E1E4961E86D() == 2)
{
unk_0xDFCC2872C0A03340(0);
unk_0xB6219E2262336502(1);
unk_0x6443BF07DE6B656F(0);
unk_0xA639C7EA090D34EF();
}
unk_0xD6092A9154AFB325(0);
unk_0x8F1A9FE6D91AAFEB();
}
while (true)
{
if (func_888(0))
{
switch (iLocal_98)
{
case 0:
func_722();
break;
case 1:
func_697();
break;
case 2:
func_590();
break;
case 3:
func_63();
break;
case 4:
func_62();
break;
case 5:
func_1();
break;
}
}
wait(0);
}
}
void func_1()
{
switch (Global_71451.f_1)
{
case 1:
func_4();
break;
case 7:
while (func_3())
{
wait(0);
}
if (func_2())
{
while (unk_0x8B1574454E8C2421(unk_0xFEB6EEC0545AF7AA(&Local_100)) == 0)
{
wait(0);
}
iLocal_98 = 3;
}
else
{
func_4();
}
break;
default:
func_4();
break;
}
}
int func_2()
{
if (Global_93232 == 10 || Global_93232 == 9)
{
return 1;
}
return 0;
}
int func_3()
{
if (((Global_93232 == 13 || Global_93232 == 10) || Global_93232 == 11) || Global_93232 == 12)
{
return 0;
}
return 1;
}
void func_4()
{
if (Global_71451.f_1 == 1)
{
func_7(Global_71451);
func_6(&iLocal_106);
}
unk_0xA639C7EA090D34EF();
func_5(0);
}
void func_5(int iParam0)
{
Global_106070.f_9057 = 1;
Global_36666 = 0;
unk_0x62BAB49318F4FE6E(0);
if (iParam0 == 1)
{
unk_0x70C1F5AA59767FE6(800);
}
if (!unk_0x4915F4759304D5CF(unk_0xA19140A5C42D8715()))
{
unk_0x33CF95E95A476FB9(unk_0xA19140A5C42D8715(), false);
}
unk_0xFA57C719261AA55D(&Global_71453, 0);
unk_0xFA57C719261AA55D(&Global_71453, 1);
unk_0xFA57C719261AA55D(&Global_71453, 3);
unk_0xFA57C719261AA55D(&Global_71453, 2);
unk_0xD6092A9154AFB325(0);
unk_0x8F1A9FE6D91AAFEB();
}
void func_6(int iParam0)
{
if (*iParam0 == -1)
{
return;
}
if (!*iParam0 == Global_36079)
{
*iParam0 = -1;
return;
}
*iParam0 = -1;
Global_36078 = 0;
Global_36080 = 0;
Global_36117 = 15;
Global_56178 = 0;
Global_56179 = 0;
}
void func_7(int iParam0)
{
var uVar0;
unk_0x9E212A43A08FF3F9(0, 0);
if (Global_90249 == iParam0)
{
if (iParam0 != 77)
{
Global_90253 = 1;
}
}
func_57("TRIG_FT", 1);
func_57("TRIG_F", 1);
func_57("TRIG_T", 1);
func_57("TRIG_MT", 1);
func_57("TRIG_M", 1);
func_57("TRIG_T", 1);
func_56();
func_54();
Global_106061 = (unk_0xFD34717937104F1C() - 120000);
func_50(iParam0);
func_40(func_44());
if (Global_89355)
{
Global_89355 = 0;
}
unk_0x4F93066CECE72793();
unk_0x135C61E339DABBAC(1);
func_38(1);
unk_0x93DA13E8C75A3B00(0, true);
unk_0x520B28FB7D6011C3();
func_37();
func_28(0, 1, 1, 0, 0);
func_27(30000);
if (unk_0x05EFB6A616B6FADE(Global_106070.f_9988.f_25, 3))
{
func_26();
}
unk_0xFA57C719261AA55D(&(Global_106070.f_9988.f_25), 4);
Global_25506 = unk_0xFD34717937104F1C();
Global_106070.f_2355.f_4844 = 145;
if (!unk_0x4915F4759304D5CF(unk_0xA19140A5C42D8715()))
{
unk_0x13E0A8160525AE55(unk_0xA19140A5C42D8715(), 32, true);
unk_0x13E0A8160525AE55(unk_0xA19140A5C42D8715(), 250, true);
}
if (unk_0x58E3CCF930D23BD5(unk_0xD4E735F4B6A956AC()))
{
unk_0x95F77A3DE1C43063(unk_0xD4E735F4B6A956AC(), 1f);
}
uVar0 = Global_84115[iParam0 /*34*/].f_12;
if (func_25(uVar0, 1))
{
func_24(0);
func_24(4);
func_24(8);
func_24(9);
func_24(10);
}
if (func_25(uVar0, 2))
{
func_24(1);
func_24(4);
func_24(8);
func_24(5);
}
if (func_25(uVar0, 4))
{
func_24(2);
func_24(4);
func_24(5);
func_24(9);
func_24(11);
}
if (func_25(uVar0, 8))
{
func_24(19);
}
if (func_25(uVar0, 16))
{
func_24(14);
}
if (func_25(uVar0, 32))
{
func_24(17);
}
unk_0x4659F4154D948B01("buddyDeathResponse");
Global_90245 = -15;
func_13(0);
func_12(0);
func_11(0);
func_10(1, 1);
func_9();
Global_93022[0 /*65*/] = { Global_106070.f_2355.f_539[0 /*65*/] };
Global_93022[1 /*65*/] = { Global_106070.f_2355.f_539[1 /*65*/] };
Global_93022[2 /*65*/] = { Global_106070.f_2355.f_539[2 /*65*/] };
unk_0x9444470D6D9ADB88("GLOBAL_KILL_MUSIC");
func_8();
Global_25833 = 0;
Global_71474.f_9 = -1;
Global_71467 = -1;
}
void func_8()
{
vector3 vVar0[24];
if (unk_0x365C4466BC171A2D() || unk_0x29A02C184A66D25E())
{
unk_0x14D4D10C8FD9E0DD(StackVal, 0, 0, 0);
}
else if (unk_0x332D85764ED0503F() || unk_0x7DD04831D0FC44CA())
{
StringCopy(&cVar0, "PRESENCE_0_STR", 24);
unk_0x5182FF270C9DCEBC(0, &cVar0);
}
}
void func_9()
{
int iVar0;
iVar0 = 0;
while (iVar0 < 198)
{
Global_34678[iVar0] = 1;
iVar0++;
}
}
void func_10(int iParam0, int iParam1)
{
Global_90634 = iParam0;
Global_90635 = iParam1;
}
void func_11(int iParam0)
{
Global_17228.f_16 = iParam0;
}
void func_12(int iParam0)
{
Global_17226 = iParam0;
}
void func_13(bool bParam0)
{
int iVar0;
iVar0 = 0;
while (iVar0 < 50)
{
func_14(iVar0, bParam0);
iVar0++;
}
}
void func_14(int iParam0, bool bParam1)
{
if (bParam1)
{
if (!func_23(iParam0, 2, 1))
{
func_22(iParam0, 2, 1);
}
}
else if (func_23(iParam0, 2, 1))
{
func_15(iParam0, 2, 1);
}
}
void func_15(int iParam0, int iParam1, bool bParam2)
{
int iVar0;
if (iParam0 == -1)
{
return;
}
if (bParam2)
{
unk_0xFA57C719261AA55D(&(Global_93284.f_1336[iParam0]), iParam1);
}
else if (unk_0x4C9BACA8D249CB13())
{
if (func_21() == 0)
{
iVar0 = func_19(func_20(iParam0), -1, 0);
unk_0xFA57C719261AA55D(&iVar0, iParam1);
func_16(func_20(iParam0), iVar0, -1, 1, 0);
}
}
else
{
unk_0xFA57C719261AA55D(&(Global_106070.f_668[iParam0]), iParam1);
}
}
void func_16(int iParam0, int iParam1, int iParam2, int iParam3, bool bParam4)
{
int iVar0;
if (bParam4)
{
}
iVar0 = Global_2535519[iParam0 /*3*/][func_17(iParam2)];
if (iVar0 != 0)
{
unk_0x93180BE33E7149EF(iVar0, iParam1, iParam3);
}
}
int func_17(var uParam0)
{
int iVar0;
int iVar1;
iVar0 = uParam0;
if (iVar0 == -1)
{
iVar1 = func_18();
if (iVar1 > -1)
{
Global_2535232 = 0;
iVar0 = iVar1;
}
else
{
iVar0 = 0;
Global_2535232 = 1;
}
}
return iVar0;
}
int func_18()
{
return Global_1312736;
}
int func_19(int iParam0, int iParam1, int iParam2)
{
int iVar0;
var uVar1;
if (iParam2 == 0)
{
}
iVar0 = Global_2535519[iParam0 /*3*/][func_17(iParam1)];
if (unk_0x2AD48F3CEBA882E9(iVar0, &uVar1, -1))
{
return uVar1;
}
return 0;
}
int func_20(int iParam0)
{
switch (iParam0)
{
case 0:
return 827;
break;
case 1:
return 828;
break;
case 2:
return 829;
break;
case 3:
return 830;
break;
case 4:
return 831;
break;
case 5:
return 832;
break;
case 6:
return 833;
break;
case 7:
return 834;
break;
case 8:
return 835;
break;
case 9:
return 836;
break;
case 10:
return 837;
break;
case 11:
return 838;
break;
case 12:
return 839;
break;
case 13:
return 840;
break;
case 14:
return 841;
break;
case 15:
return 843;
break;
case 16:
return 844;
break;
case 17:
return 845;
break;
case 18:
return 846;
break;
case 19:
return 847;
break;
case 20:
return 848;
break;
case 21:
return 849;
break;
case 22:
return 850;
break;
case 23:
return 851;
break;
case 24:
return 852;
break;
case 25:
return 853;
break;
case 26:
return 854;
break;
case 27:
return 855;
break;
case 28:
return 856;
break;
case 29:
return 857;
break;
case 30:
return 858;
break;
case 31:
return 859;
break;
case 32:
return 860;
break;
case 33:
return 861;
break;
case 34:
return 862;
break;
case 35:
return 863;
break;
case 36:
return 864;
break;
case 37:
return 865;
break;
case 38:
return 866;
break;
case 39:
return 867;
break;
case 40:
return 871;
break;
case 41:
return 872;
break;
case 42:
return 873;
break;
case 43:
return 874;
break;
case 44:
return 8488;
break;
case 45:
return 3808;
break;
case 46:
return 5383;
break;
case 47:
return 6155;
break;
case 48:
return 7232;
break;
case 49:
return 7878;
break;
default:
break;
}
return 9954;
}
int func_21()
{
return Global_25459;
}
void func_22(int iParam0, int iParam1, bool bParam2)
{
int iVar0;
if (iParam0 == -1)
{
return;
}
if (bParam2)
{
unk_0x2BCFB39E86340DAA(&(Global_93284.f_1336[iParam0]), iParam1);
}
else if (unk_0x4C9BACA8D249CB13())
{
if (func_21() == 0)
{
iVar0 = func_19(func_20(iParam0), -1, 0);
unk_0x2BCFB39E86340DAA(&iVar0, iParam1);
func_16(func_20(iParam0), iVar0, -1, 1, 0);
}
}
else
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_668[iParam0]), iParam1);
}
}
int func_23(int iParam0, int iParam1, bool bParam2)
{
if (iParam0 == -1)
{
return 0;
}
if (bParam2)
{
return unk_0x05EFB6A616B6FADE(Global_93284.f_1336[iParam0], iParam1);
}
else if (unk_0x4C9BACA8D249CB13())
{
if (func_21() == 0)
{
return unk_0x05EFB6A616B6FADE(func_19(func_20(iParam0), -1, 0), iParam1);
}
}
else
{
return unk_0x05EFB6A616B6FADE(Global_106070.f_668[iParam0], iParam1);
}
return 0;
}
void func_24(int iParam0)
{
if (((iParam0 == 144 || iParam0 == 145) || iParam0 == 157) || iParam0 == 158)
{
return;
}
Global_36669[iParam0] = unk_0xFD34717937104F1C() + 20000;
}
bool func_25(var uParam0, int iParam1)
{
return (uParam0 && iParam1) != 0;
}
void func_26()
{
if (Global_3188[0 /*2811*/][0 /*281*/].f_259 == 0)
{
Global_3188[0 /*2811*/][0 /*281*/].f_259 = 2;
}
if (Global_3188[1 /*2811*/][0 /*281*/].f_259 == 0)
{
Global_3188[1 /*2811*/][0 /*281*/].f_259 = 2;
}
if (Global_3188[2 /*2811*/][0 /*281*/].f_259 == 0)
{
Global_3188[2 /*2811*/][0 /*281*/].f_259 = 2;
}
unk_0x2BCFB39E86340DAA(&Global_2383, 25);
unk_0x2BCFB39E86340DAA(&Global_2384, 11);
}
void func_27(int iParam0)
{
Global_36668 = (unk_0xFD34717937104F1C() + iParam0);
}
void func_28(bool bParam0, bool bParam1, int iParam2, int iParam3, bool bParam4)
{
if (bParam0)
{
unk_0xC97ACA9456A064F3(unk_0xD4E735F4B6A956AC());
unk_0x87A84AA8644AACAE(unk_0xD4E735F4B6A956AC(), 1);
unk_0x580B6C51F831EEBC(unk_0xD4E735F4B6A956AC(), 1);
func_36(1);
unk_0x158181F81A221D70();
unk_0xD8EA6395AE60BF4A();
if (Global_14513.f_1 > 3)
{
if (unk_0xB39808C1DCE0DCFA())
{
unk_0xA8B97F91CBDE376C(false);
}
if (!func_35())
{
Global_14513.f_1 = 3;
}
Global_15822 = 5;
}
func_34(1, iParam3, iParam2, 0);
Global_56187 = 1;
Global_68497 = 1;
Global_71203 = 1;
}
else
{
func_36(0);
unk_0x21727E2C492FE1B3();
Global_56187 = 0;
if (bParam1)
{
unk_0x1A81FD78261DCFCD();
}
unk_0x87A84AA8644AACAE(unk_0xD4E735F4B6A956AC(), 0);
unk_0x580B6C51F831EEBC(unk_0xD4E735F4B6A956AC(), 0);
func_34(0, iParam3, iParam2, 0);
if (unk_0x4C9BACA8D249CB13())
{
if ((((!unk_0x4915F4759304D5CF(unk_0xA19140A5C42D8715()) && !func_32(unk_0xD4E735F4B6A956AC())) && !func_30(unk_0xD4E735F4B6A956AC(), 0)) && !func_29()) && !bParam4)
{
unk_0x33CF95E95A476FB9(unk_0xA19140A5C42D8715(), false);
}
}
else if ((!unk_0x4915F4759304D5CF(unk_0xA19140A5C42D8715()) && !func_32(unk_0xD4E735F4B6A956AC())) && !bParam4)
{
unk_0x33CF95E95A476FB9(unk_0xA19140A5C42D8715(), false);
}
Global_71203 = 0;
}
}
bool func_29()
{
return unk_0x05EFB6A616B6FADE(Global_1589747[unk_0xD4E735F4B6A956AC() /*790*/].f_39.f_18, 14);
}
bool func_30(int iParam0, int iParam1)
{
bool bVar0;
if (iParam0 == unk_0xD4E735F4B6A956AC())
{
bVar0 = func_31(-1, 0) == 8;
}
else
{
bVar0 = Global_1589747[iParam0 /*790*/].f_211 == 8;
}
if (iParam1 == 1)
{
if (unk_0xC77FA683E9BB485B(iParam0))
{
bVar0 = unk_0xE46ECB9FD23D3264(iParam0) == 8;
}
}
return bVar0;
}
int func_31(int iParam0, bool bParam1)
{
int iVar0;
int iVar1;
iVar1 = iParam0;
if (iVar1 == -1)
{
iVar1 = func_18();
}
if (Global_1312837[iVar1] == 1)
{
if (bParam1)
{
}
iVar0 = 8;
}
else
{
iVar0 = Global_1312730[iVar1];
if (bParam1)
{
}
}
return iVar0;
}
int func_32(int iParam0)
{
if (func_30(iParam0, 0))
{
return 1;
}
if (func_33())
{
if (iParam0 == unk_0xD4E735F4B6A956AC())
{
return 1;
}
}
if (unk_0x05EFB6A616B6FADE(Global_2423801[iParam0 /*413*/].f_195, 2))
{
return 1;
}
return 0;
}
bool func_33()
{
return unk_0x05EFB6A616B6FADE(Global_2359302, 3);
}
int func_34(int iParam0, int iParam1, var uParam2, int iParam3)
{
int iVar0;
iVar0 = 0;
if (unk_0x47C01C0E6F4C1D06())
{
if (unk_0xDA9416DF9C88432D() != iParam0 && uParam2)
{
unk_0x5126E6F88EF5B7A1(iParam0, iParam1, 1, iParam3);
iVar0 = 1;
}
}
return iVar0;
}
int func_35()
{
if (Global_14513.f_1 == 1 || Global_14513.f_1 == 0)
{
return 1;
}
return 0;
}
void func_36(int iParam0)
{
if (iParam0 == 1)
{
unk_0x2BCFB39E86340DAA(&Global_2383, 13);
}
else
{
unk_0xFA57C719261AA55D(&Global_2383, 13);
}
}
void func_37()
{
if (Global_71459 != 6)
{
}
if (Global_71464)
{
unk_0xE355C64541455AE8(15);
Global_71464 = 0;
Global_17367.f_8091 = 0;
}
Global_71459 = 6;
Global_71461 = -1;
Global_71460 = -1;
}
void func_38(int iParam0)
{
int iVar0;
iVar0 = 0;
iVar0 = 0;
while (iVar0 < Global_104722)
{
unk_0xC47B4E7E5C4ACE12(iVar0, iParam0);
func_39(iVar0);
iVar0++;
}
}
void func_39(int iParam0)
{
Global_104722[iParam0 /*28*/].f_21 = 0;
StringCopy(&(Global_104722[iParam0 /*28*/]), "", 16);
StringCopy(&(Global_104722[iParam0 /*28*/].f_4), "", 64);
Global_104722[iParam0 /*28*/].f_23 = 0;
Global_104722[iParam0 /*28*/].f_24 = { 0f, 0f, 0f };
Global_104722[iParam0 /*28*/].f_27 = 0;
Global_104722[iParam0 /*28*/].f_20 = 0;
Global_104722[iParam0 /*28*/].f_22 = 0;
}
void func_40(int iParam0)
{
if (iParam0 == 2)
{
if (!func_41(0))
{
unk_0x80E7C4A78224C8F9(5, 1862763509, -1865950624);
}
else
{
unk_0x80E7C4A78224C8F9(3, 1862763509, -1865950624);
}
}
else
{
unk_0x80E7C4A78224C8F9(2, 1862763509, -1865950624);
}
}
int func_41(int iParam0)
{
if (Global_36117 == 15)
{
return 0;
}
if (func_42(iParam0))
{
return 0;
}
return 1;
}
bool func_42(int iParam0)
{
return func_43(iParam0, Global_36117);
}
int func_43(int iParam0, int iParam1)
{
if (iParam1 == 15)
{
return 1;
}
if (iParam0 == 15)
{
return 0;
}
switch (iParam0)
{
case 16:
switch (iParam1)
{
case 9:
case 10:
case 7:
case 13:
case 14:
return 0;
break;
}
return 1;
break;
case 0:
switch (iParam1)
{
case 5:
case 17:
return 1;
break;
}
break;
case 2:
case 3:
switch (iParam1)
{
case 5:
case 6:
case 8:
case 17:
return 1;
break;
}
break;
case 4:
if (iParam1 == 17)
{
return 1;
}
break;
case 5:
break;
case 6:
case 8:
if (iParam1 == 5)
{
return 1;
}
break;
case 7:
if (iParam1 == 6)
{
return 1;
}
break;
case 9:
if (iParam1 == 5)
{
return 1;
}
break;
case 10:
switch (iParam1)
{
case 5:
case 6:
case 17:
return 1;
break;
}
break;
case 11:
if (iParam1 == 5)
{
return 1;
}
break;
case 17:
switch (iParam1)
{
case 17:
case 12:
case 5:
return 1;
break;
}
break;
case 18:
case 12:
switch (iParam1)
{
case 5:
case 6:
case 8:
return 1;
break;
}
break;
case 13:
switch (iParam1)
{
case 5:
return 1;
break;
}
break;
case 14:
switch (iParam1)
{
case 5:
return 1;
break;
}
break;
}
return 0;
}
int func_44()
{
func_45();
return Global_106070.f_2355.f_539.f_4301;
}
void func_45()
{
int iVar0;
if (unk_0xDC5D81351D6A4DDB(unk_0xA19140A5C42D8715()))
{
if (func_49(Global_106070.f_2355.f_539.f_4301) != unk_0x8F474E419F56E48D(unk_0xA19140A5C42D8715()))
{
iVar0 = func_48(unk_0xA19140A5C42D8715());
if (func_47(iVar0) && (!func_46(14) || Global_105021))
{
if (Global_106070.f_2355.f_539.f_4301 != iVar0 && func_47(Global_106070.f_2355.f_539.f_4301))
{
Global_106070.f_2355.f_539.f_4302 = Global_106070.f_2355.f_539.f_4301;
}
Global_106070.f_2355.f_539.f_4303 = iVar0;
Global_106070.f_2355.f_539.f_4301 = iVar0;
return;
}
}
else
{
if (Global_106070.f_2355.f_539.f_4301 != 145)
{
Global_106070.f_2355.f_539.f_4303 = Global_106070.f_2355.f_539.f_4301;
}
return;
}
}
Global_106070.f_2355.f_539.f_4301 = 145;
}
bool func_46(int iParam0)
{
return Global_36117 == iParam0;
}
bool func_47(int iParam0)
{
return iParam0 < 3;
}
int func_48(int iParam0)
{
int iVar0;
int iVar1;
if (unk_0xDC5D81351D6A4DDB(iParam0))
{
iVar1 = unk_0x8F474E419F56E48D(iParam0);
iVar0 = 0;
while (iVar0 <= 2)
{
if (func_49(iVar0) == iVar1)
{
return iVar0;
}
iVar0++;
}
}
return 145;
}
int func_49(int iParam0)
{
if (func_47(iParam0))
{
return Global_106070.f_28022[iParam0 /*29*/];
}
else if (iParam0 != 145)
{
}
return 0;
}
void func_50(int iParam0)
{
int iVar0;
iVar0 = 0;
while (iVar0 < 9)
{
if (Global_106070.f_18075.f_175[iVar0 /*19*/].f_3 == iParam0)
{
if (unk_0x05EFB6A616B6FADE(Global_106070.f_18075.f_175[iVar0 /*19*/].f_2, 0))
{
unk_0xFA57C719261AA55D(&(Global_106070.f_18075.f_175[iVar0 /*19*/].f_2), 0);
Global_106070.f_18075.f_175[iVar0 /*19*/].f_3 = -1;
func_51(&(Global_106070.f_18075.f_175[iVar0 /*19*/].f_5));
Global_106070.f_18075.f_175[iVar0 /*19*/].f_8 = 1;
}
}
iVar0++;
}
}
void func_51(int iParam0)
{
func_52(iParam0, 0f);
}
void func_52(int iParam0, float fParam1)
{
iParam0->f_1 = (func_53(unk_0x05EFB6A616B6FADE(*iParam0, 4)) - fParam1);
unk_0x2BCFB39E86340DAA(iParam0, 1);
unk_0xFA57C719261AA55D(iParam0, 2);
iParam0->f_2 = 0f;
}
float func_53(bool bParam0)
{
float fVar0;
float fVar1;
int iVar2;
float fVar3;
float fVar4;
if (bParam0)
{
fVar0 = to_float(unk_0xFD34717937104F1C());
fVar1 = (fVar0 / 1000f);
return fVar1;
}
if (unk_0x4C9BACA8D249CB13())
{
iVar2 = unk_0xFFCC7EBF88BDEE54();
fVar3 = to_float(iVar2);
fVar4 = (fVar3 / 1000f);
return fVar4;
}
return (to_float(unk_0xFD34717937104F1C()) / 1000f);
}
void func_54()
{
int iVar0;
iVar0 = 0;
while (iVar0 < 8)
{
if (Global_90260[iVar0 /*17*/] && !Global_90260[iVar0 /*17*/].f_1)
{
if (Global_90260[iVar0 /*17*/].f_3 == 0)
{
if ((Global_90260[iVar0 /*17*/].f_5 != 88 && Global_90260[iVar0 /*17*/].f_5 != 89) && Global_90260[iVar0 /*17*/].f_5 != 92)
{
func_55(Global_90260[iVar0 /*17*/].f_5, 1);
}
}
}
iVar0++;
}
}
void func_55(int iParam0, bool bParam1)
{
if (bParam1)
{
if ((iParam0 != 88 && iParam0 != 89) && iParam0 != 92)
{
Global_87312[iParam0 /*2*/] = 1;
}
}
else
{
Global_87312[iParam0 /*2*/] = 0;
}
}
void func_56()
{
int iVar0;
iVar0 = 0;
while (iVar0 < 8)
{
unk_0xFA57C719261AA55D(&(Global_90260[iVar0 /*17*/].f_10.f_1), 8);
iVar0++;
}
}
void func_57(char* sParam0, int iParam1)
{
int iVar0;
int iVar1;
if (Global_104710 && iParam1)
{
if (func_61(sParam0) && !unk_0xAFDDC5FA1BD87C18())
{
unk_0x135C61E339DABBAC(0);
}
}
iVar0 = 0;
while (iVar0 < Global_106070.f_20382.f_145)
{
if (unk_0x3CAC2741CC1A631F(sParam0, &(Global_106070.f_20382[iVar0 /*16*/])))
{
iVar1 = iVar0;
while (iVar1 <= (Global_106070.f_20382.f_145 - 2))
{
func_60(iVar1, iVar1 + 1);
iVar1++;
}
func_59((Global_106070.f_20382.f_145 - 1));
Global_106070.f_20382.f_145 = (Global_106070.f_20382.f_145 - 1);
func_58();
return;
}
iVar0++;
}
}
void func_58()
{
int iVar0;
iVar0 = 0;
while (iVar0 < 3)
{
Global_106070.f_20382.f_146[iVar0] = 0;
iVar0++;
}
iVar0 = 0;
while (iVar0 < Global_106070.f_20382.f_145)
{
if (unk_0x05EFB6A616B6FADE(Global_106070.f_20382[iVar0 /*16*/].f_11, 0))
{
if (Global_106070.f_20382[iVar0 /*16*/].f_12 > Global_106070.f_20382.f_146[0])
{
Global_106070.f_20382.f_146[0] = Global_106070.f_20382[iVar0 /*16*/].f_12;
}
}
if (unk_0x05EFB6A616B6FADE(Global_106070.f_20382[iVar0 /*16*/].f_11, 1))
{
if (Global_106070.f_20382[iVar0 /*16*/].f_12 > Global_106070.f_20382.f_146[1])
{
Global_106070.f_20382.f_146[1] = Global_106070.f_20382[iVar0 /*16*/].f_12;
}
}
if (unk_0x05EFB6A616B6FADE(Global_106070.f_20382[iVar0 /*16*/].f_11, 2))
{
if (Global_106070.f_20382[iVar0 /*16*/].f_12 > Global_106070.f_20382.f_146[2])
{
Global_106070.f_20382.f_146[2] = Global_106070.f_20382[iVar0 /*16*/].f_12;
}
}
iVar0++;
}
}
void func_59(int iParam0)
{
StringCopy(&(Global_106070.f_20382[iParam0 /*16*/]), "", 16);
StringCopy(&(Global_106070.f_20382[iParam0 /*16*/].f_4), "", 16);
Global_106070.f_20382[iParam0 /*16*/].f_8 = 0;
Global_106070.f_20382[iParam0 /*16*/].f_9 = 0;
Global_106070.f_20382[iParam0 /*16*/].f_11 = 0;
Global_106070.f_20382[iParam0 /*16*/].f_10 = -1;
Global_106070.f_20382[iParam0 /*16*/].f_12 = 0;
Global_106070.f_20382[iParam0 /*16*/].f_13 = 0;
Global_106070.f_20382[iParam0 /*16*/].f_14 = 0;
Global_106070.f_20382[iParam0 /*16*/].f_15 = 0;
}
void func_60(int iParam0, int iParam1)
{
Global_106070.f_20382[iParam0 /*16*/] = { Global_106070.f_20382[iParam1 /*16*/] };
Global_106070.f_20382[iParam0 /*16*/].f_4 = { Global_106070.f_20382[iParam1 /*16*/].f_4 };
Global_106070.f_20382[iParam0 /*16*/].f_8 = Global_106070.f_20382[iParam1 /*16*/].f_8;
Global_106070.f_20382[iParam0 /*16*/].f_10 = Global_106070.f_20382[iParam1 /*16*/].f_10;
Global_106070.f_20382[iParam0 /*16*/].f_9 = Global_106070.f_20382[iParam1 /*16*/].f_9;
Global_106070.f_20382[iParam0 /*16*/].f_11 = Global_106070.f_20382[iParam1 /*16*/].f_11;
Global_106070.f_20382[iParam0 /*16*/].f_12 = Global_106070.f_20382[iParam1 /*16*/].f_12;
Global_106070.f_20382[iParam0 /*16*/].f_13 = Global_106070.f_20382[iParam1 /*16*/].f_13;
Global_106070.f_20382[iParam0 /*16*/].f_14 = Global_106070.f_20382[iParam1 /*16*/].f_14;
Global_106070.f_20382[iParam0 /*16*/].f_15 = Global_106070.f_20382[iParam1 /*16*/].f_15;
}
int func_61(char* sParam0)
{
unk_0x42FEBE6569FBB03A(sParam0);
return unk_0x3D94488A86ABB03F(0);
}
void func_62()
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
iVar0 = 0;
iVar1 = 20000;
iVar2 = 1;
if (Global_71451.f_1 == 1)
{
iVar3 = Global_71451;
if (((((iVar3 == 19 || iVar3 == 21) || iVar3 == 22) || iVar3 == 84) || iVar3 == 85) || iVar3 == 90)
{
iVar2 = 0;
}
}
if (iVar2 == 1)
{
iVar0 = (unk_0xFD34717937104F1C() + iVar1);
while ((Global_71465 == 0 && unk_0xFD34717937104F1C() < iVar0) && !Global_56183)
{
wait(0);
}
iVar0 = unk_0xFD34717937104F1C() + 30000;
while ((Global_71465 || Global_56186) && unk_0xFD34717937104F1C() < iVar0)
{
wait(0);
}
}
while (!unk_0x71364F510A1CB69F())
{
if (!unk_0x607776744A243309())
{
unk_0x9662BE461F9FDF9E(800);
}
wait(0);
}
func_4();
}
void func_63()
{
int iVar0;
int iVar1;
switch (Global_71451.f_1)
{
case 1:
iVar0 = Global_84115[Global_71451 /*34*/].f_7;
while (func_64(iVar0, -1) == -1)
{
wait(0);
}
iVar1 = Global_71451;
if (iVar1 == 24 || iVar1 == 25)
{
if (unk_0x05EFB6A616B6FADE(Global_71453, 1))
{
iVar0 = Global_84115[28 /*34*/].f_7;
while (func_64(iVar0, -1) == -1)
{
wait(0);
}
}
}
else if (iVar1 == 26)
{
if (unk_0x05EFB6A616B6FADE(Global_71453, 1))
{
iVar0 = Global_84115[27 /*34*/].f_7;
while (func_64(iVar0, -1) == -1)
{
wait(0);
}
iVar0 = Global_84115[28 /*34*/].f_7;
while (func_64(iVar0, -1) == -1)
{
wait(0);
}
}
}
if (unk_0x05EFB6A616B6FADE(Global_71453, 1))
{
iLocal_98 = 4;
}
else
{
iLocal_98 = 5;
}
break;
case 7:
while (unk_0x8B1574454E8C2421(unk_0xFEB6EEC0545AF7AA(&Local_100)) == 0)
{
wait(0);
}
while (unk_0x8B1574454E8C2421(unk_0xFEB6EEC0545AF7AA(&Local_100)) > 0)
{
wait(0);
}
if (unk_0x05EFB6A616B6FADE(Global_71453, 1))
{
iLocal_98 = 4;
}
else
{
iLocal_98 = 5;
}
break;
default:
break;
}
}
int func_64(int iParam0, int iParam1)
{
int iVar0;
int iVar1;
int iVar2;
var uVar3;
int iVar4;
int iVar5;
int iVar6;
bool bVar7;
bool bVar8;
if (iParam0 == -1)
{
return -2;
}
iVar0 = func_589(iParam0);
iVar1 = Global_71474.f_109[iParam0 /*4*/];
iVar2 = Global_84115[iVar1 /*34*/].f_6;
if (!unk_0x05EFB6A616B6FADE(Global_84115[iVar1 /*34*/].f_15, 4))
{
unk_0x90488A740F13CBEC(joaat("mission_stat_watcher"));
}
unk_0x90488A740F13CBEC(iVar2);
if (func_3())
{
return -1;
}
else if (Global_93232.f_1 == iParam0)
{
if (Global_93232 == 11)
{
func_7(iVar1);
func_569(iParam0, iVar0, 0);
return Global_71474.f_109[iParam0 /*4*/].f_2;
}
}
if (unk_0x7112137033807390(unk_0xA19140A5C42D8715(), 0))
{
if (iVar0 == -1 || !unk_0x05EFB6A616B6FADE(Global_84079[iVar0 /*5*/].f_1, 5))
{
return -1;
}
}
if (!func_47(func_44()))
{
return -1;
}
if (iVar0 == -1)
{
iVar0 = func_568(iParam0);
if (iVar0 == -1)
{
return -1;
}
}
uVar3 = Global_84079[iVar0 /*5*/].f_3;
if (func_561(iVar1))
{
return -1;
}
if (!unk_0x05EFB6A616B6FADE(Global_84079[iVar0 /*5*/].f_1, 2))
{
if (!unk_0x05EFB6A616B6FADE(Global_84079[iVar0 /*5*/].f_1, 1))
{
if (!unk_0x05EFB6A616B6FADE(Global_84079[iVar0 /*5*/].f_1, 3))
{
if (func_888(0) || unk_0x05EFB6A616B6FADE(Global_84115[iVar1 /*34*/].f_15, 19))
{
iVar4 = 0;
}
else
{
iVar4 = 5;
}
if (iVar4 == 5)
{
if (Global_36665 != -1)
{
uVar3 = Global_36665;
Global_36665 = -1;
iVar5 = 1;
}
else
{
iVar5 = func_559(&uVar3, iVar4, 0, 0, 0);
}
}
else
{
iVar5 = func_559(&uVar3, iVar4, 0, 0, 0);
}
Global_84079[iVar0 /*5*/].f_3 = uVar3;
if (iVar5 == 2)
{
return -1;
}
else if (iVar5 == 0)
{
return Global_71474.f_109[iParam0 /*4*/].f_2;
}
}
unk_0x2BCFB39E86340DAA(&(Global_84079[iVar0 /*5*/].f_1), 1);
if (Global_106070.f_9057.f_330[iVar1 /*6*/])
{
unk_0x2BCFB39E86340DAA(&(Global_84079[iVar0 /*5*/].f_1), 2);
unk_0x2BCFB39E86340DAA(&(Global_84079[iVar0 /*5*/].f_1), 4);
}
if (unk_0x58E3CCF930D23BD5(unk_0xD4E735F4B6A956AC()))
{
unk_0xEF06BE39D11763FC(unk_0xD4E735F4B6A956AC(), 1);
}
}
if (!Global_144510)
{
return -1;
}
if (iVar1 != 28)
{
if (!unk_0x05EFB6A616B6FADE(Global_84115[iVar1 /*34*/].f_15, 4))
{
if (!Global_56181 && (iVar1 != 27 || !Global_56186))
{
if (!unk_0x05EFB6A616B6FADE(Global_84079[iVar0 /*5*/].f_1, 7))
{
if (unk_0x8B1574454E8C2421(joaat("mission_stat_watcher")) > 0)
{
func_557();
return -1;
}
else if (unk_0x2106996673968125(joaat("mission_stat_watcher")))
{
start_new_script_with_name_hash(joaat("mission_stat_watcher"), 1828);
unk_0x932A1FC570019F52(joaat("mission_stat_watcher"));
unk_0x2BCFB39E86340DAA(&(Global_84079[iVar0 /*5*/].f_1), 7);
}
else
{
return -1;
}
}
}
else if (iVar1 == 27)
{
unk_0x2BCFB39E86340DAA(&(Global_84079[iVar0 /*5*/].f_1), 7);
}
}
}
if (!unk_0x2106996673968125(iVar2))
{
return -1;
}
Global_84079[iVar0 /*5*/].f_4 = start_new_script_with_name_hash(iVar2, 25000);
unk_0x932A1FC570019F52(iVar2);
unk_0x2BCFB39E86340DAA(&(Global_84079[iVar0 /*5*/].f_1), 2);
iVar6 = 0;
if (unk_0x05EFB6A616B6FADE(Global_84115[iVar1 /*34*/].f_15, 18))
{
iVar6 = 1;
}
func_293(iParam0, iVar0, iVar1, iParam1, iVar6);
return -1;
}
bVar7 = unk_0x05EFB6A616B6FADE(Global_84079[iVar0 /*5*/].f_1, 5);
if (unk_0x2BCD0524CDEE1FD2(Global_84079[iVar0 /*5*/].f_4))
{
if (bVar7)
{
if (!unk_0x05EFB6A616B6FADE(Global_84115[iVar1 /*34*/].f_15, 1) && Global_93268 == 0)
{
}
else
{
return -1;
}
}
else
{
return -1;
}
}
bVar8 = unk_0x05EFB6A616B6FADE(Global_84079[iVar0 /*5*/].f_1, 4);
if (bVar8 && bVar7)
{
bVar7 = false;
}
if (!bVar8 && !bVar7)
{
bVar7 = true;
}
if (bVar8)
{
return func_100(iParam0, iVar0, iVar1, 0, 0);
}
return func_65(iParam0, iVar0, iVar1, 0);
}
int func_65(int iParam0, int iParam1, int iParam2, bool bParam3)
{
if (!unk_0x05EFB6A616B6FADE(Global_84115[iParam2 /*34*/].f_15, 1) && Global_93268 == 0)
{
func_13(0);
func_12(0);
func_11(0);
func_10(1, 1);
func_9();
Global_93022[0 /*65*/] = { Global_106070.f_2355.f_539[0 /*65*/] };
Global_93022[1 /*65*/] = { Global_106070.f_2355.f_539[1 /*65*/] };
Global_93022[2 /*65*/] = { Global_106070.f_2355.f_539[2 /*65*/] };
Global_84079[iParam1 /*5*/].f_1 = 0;
func_68(iParam0);
return -1;
}
func_7(iParam2);
Global_93268 = 0;
func_569(iParam0, iParam1, bParam3);
func_66(0, iParam2);
return Global_71474.f_109[iParam0 /*4*/].f_2;
}
void func_66(bool bParam0, int iParam1)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
int iVar4;
int iVar5;
if (iParam1 != -1)
{
if (func_67(Global_84115[iParam1 /*34*/].f_11, 0))
{
iVar0 = joaat("sp0_missions_failed");
if (bParam0)
{
iVar0 = joaat("sp0_missions_passed");
}
unk_0x2AD48F3CEBA882E9(iVar0, &iVar1, -1);
iVar1++;
unk_0x93180BE33E7149EF(iVar0, iVar1, 1);
}
if (func_67(Global_84115[iParam1 /*34*/].f_11, 1))
{
iVar2 = joaat("sp1_missions_failed");
if (bParam0)
{
iVar2 = joaat("sp1_missions_passed");
}
unk_0x2AD48F3CEBA882E9(iVar2, &iVar3, -1);
iVar3++;
unk_0x93180BE33E7149EF(iVar2, iVar3, 1);
}
if (func_67(Global_84115[iParam1 /*34*/].f_11, 2))
{
iVar4 = joaat("sp2_missions_failed");
if (bParam0)
{
iVar4 = joaat("sp2_missions_passed");
}
unk_0x2AD48F3CEBA882E9(iVar4, &iVar5, -1);
iVar5++;
unk_0x93180BE33E7149EF(iVar4, iVar5, 1);
}
}
}
int func_67(int iParam0, int iParam1)
{
switch (iParam1)
{
case 0:
case 1:
case 2:
return unk_0x05EFB6A616B6FADE(iParam0, iParam1);
default:
}
return 0;
}
void func_68(int iParam0)
{
struct<6> Var0;
int iVar1;
int iVar2;
int iVar3;
char* sVar4;
if (Global_93232 != 12)
{
iVar1 = Global_71474.f_109[iParam0 /*4*/];
Var0 = { Global_84115[iVar1 /*34*/] };
if (unk_0x05EFB6A616B6FADE(Global_84115[iVar1 /*34*/].f_15, 1))
{
return;
}
if ((unk_0x3CAC2741CC1A631F(&Var0, "me_amanda1") || unk_0x3CAC2741CC1A631F(&Var0, "me_jimmy1")) || unk_0x3CAC2741CC1A631F(&Var0, "me_tracey1"))
{
iVar2 = 4;
}
else if (unk_0x3CAC2741CC1A631F(&Var0, "carsteal4") || unk_0x3CAC2741CC1A631F(&Var0, "fbi3"))
{
iVar2 = 3;
}
else if (!unk_0x05EFB6A616B6FADE(Global_84115[iVar1 /*34*/].f_15, 2))
{
if (unk_0x05EFB6A616B6FADE(Global_84115[iVar1 /*34*/].f_15, 17))
{
iVar2 = 1;
}
else
{
iVar2 = 0;
}
}
else
{
iVar2 = 2;
}
iVar3 = func_98(iVar1);
sVar4 = { Global_84115[iVar1 /*34*/].f_8 };
if (iVar1 == 90)
{
switch (Global_106070.f_9057.f_99.f_205[7])
{
case 1:
StringConCat(&sVar4, "A", 8);
break;
case 2:
StringConCat(&sVar4, "B", 8);
break;
}
}
unk_0x5D84F5C14E1207BE(&sVar4, iVar3, Global_93269, 0);
func_97(&sVar4, iVar3, Global_93269, 1, 0);
if (func_69(&Var0, iVar2, iVar1))
{
Global_93232.f_1 = iParam0;
}
}
}
int func_69(char* sParam0, int iParam1, int iParam2)
{
int iVar0;
struct<32> Var1;
int iVar2;
func_94();
func_93();
Global_93232 = 0;
StringCopy(&(Global_93232.f_3), sParam0, 32);
Global_93232.f_11 = iParam1;
unk_0xDD63978CC283FA2D(1);
unk_0x4A3FFA36E84DD5F4(0);
unk_0x95DFD5DB6041DFE5(0);
func_90(1);
func_87(1);
func_84(0);
func_83(1);
unk_0xFA57C719261AA55D(&(Global_93232.f_20), 9);
unk_0xFA57C719261AA55D(&(Global_93232.f_20), 6);
unk_0xFA57C719261AA55D(&(Global_93232.f_20), 20);
unk_0xFA57C719261AA55D(&(Global_93232.f_20), 21);
unk_0xFA57C719261AA55D(&(Global_93232.f_20), 5);
if (unk_0xDC5D81351D6A4DDB(unk_0xA19140A5C42D8715()))
{
if (!unk_0x4915F4759304D5CF(unk_0xA19140A5C42D8715()))
{
if (unk_0x5D7DFE2058701942(unk_0xA19140A5C42D8715(), 0))
{
iVar0 = unk_0xCAEB6CE71A2C7212(unk_0xA19140A5C42D8715(), 0);
if (unk_0xEE9EA5C5862BBFA3(iVar0))
{
unk_0x2BCFB39E86340DAA(&(Global_93232.f_20), 5);
}
}
}
}
unk_0x135C61E339DABBAC(1);
unk_0x4F93066CECE72793();
func_82(0);
func_81(1);
Global_93232.f_2 = Global_93269;
if (func_80())
{
if (func_79())
{
if (Global_93269 >= func_76())
{
if (!unk_0x05EFB6A616B6FADE(Global_84115[iParam2 /*34*/].f_15, 16))
{
if (Global_106070.f_9057.f_330[iParam2 /*6*/].f_1 >= 2)
{
Global_87503 = 1;
}
}
}
}
else if (Global_93232.f_11 == 6)
{
func_71(iParam2, &Var1);
if (Var1.f_31 == 1)
{
if (Global_106070.f_18546[iParam2 /*6*/].f_4 >= 2)
{
Global_87503 = 1;
}
}
}
else
{
iVar2 = func_70(unk_0x61D2332983ACC05C());
if (iVar2 > -1)
{
if (Global_106070.f_24958.f_4[iVar2] >= 2)
{
Global_87503 = 1;
}
}
}
}
return 1;
}
int func_70(char* sParam0)
{
if (unk_0x3CAC2741CC1A631F("BailBond1", sParam0))
{
return 0;
}
else if (unk_0x3CAC2741CC1A631F("BailBond2", sParam0))
{
return 1;
}
else if (unk_0x3CAC2741CC1A631F("BailBond3", sParam0))
{
return 2;
}
else if (unk_0x3CAC2741CC1A631F("BailBond4", sParam0))
{
return 3;
}
return -1;
}
void func_71(int iParam0, var uParam1)
{
switch (iParam0)
{
case 0:
func_72(uParam1, "Abigail1", func_74(iParam0), 0, 0, 4, -1604.668f, 5239.1f, 3.01f, 66, "", 109, 0, "ambient_Diving", 0, 0, 1, 4, 1, 0, 2359, func_73(iParam0), 1, 0);
break;
case 1:
func_72(uParam1, "Abigail2", func_74(iParam0), 0, 0, 4, -1592.84f, 5214.04f, 3.01f, 400, "", 110, 0, "", 0, 0, -1, 4, 1, 0, 2359, func_73(iParam0), 1, 0);
break;
case 2:
func_72(uParam1, "Barry1", func_74(iParam0), 0, 1, 4, 190.26f, -956.35f, 29.63f, 381, "", 74, 0, "", 0, 1, -1, 4, 1, 0, 2359, func_73(iParam0), 1, 0);
break;
case 3:
func_72(uParam1, "Barry2", func_74(iParam0), 0, 1, 4, 190.26f, -956.35f, 29.63f, 381, "", -1, 0, "", 0, 1, -1, 4, 4, 0, 2359, func_73(iParam0), 1, 1);
break;
case 4:
func_72(uParam1, "Barry3", func_74(iParam0), 0, 1, 4, 414f, -761f, 29f, 381, "", -1, 0, "", 164, 1, -1, 0, 2, 0, 2359, func_73(iParam0), 0, 0);
break;
case 5:
func_72(uParam1, "Barry3A", func_74(iParam0), 1, 1, 0, 1199.27f, -1255.63f, 34.23f, 381, "BARSTASH", 84, 0, "", 166, 0, 7, 4, 2, 0, 2359, func_73(iParam0), 0, 1);
break;
case 6:
func_72(uParam1, "Barry3C", func_74(iParam0), 3, 1, 0, -468.9f, -1713.06f, 18.21f, 381, "", 84, 0, "", 166, 0, 7, 4, 2, 0, 2359, func_73(iParam0), 0, 1);
break;
case 7:
func_72(uParam1, "Barry4", func_74(iParam0), 0, 1, 4, 237.65f, -385.41f, 44.4f, 381, "", 85, 0, "postRC_Barry4", 0, 0, -1, 4, 2, 800, 2000, func_73(iParam0), 0, 0);
break;
case 8:
func_72(uParam1, "Dreyfuss1", func_74(iParam0), 0, 2, 4, -1458.97f, 485.99f, 115.38f, 66, "LETTERS_HINT", 106, 0, "", 0, 0, -1, 4, 2, 0, 2359, func_73(iParam0), 0, 0);
break;
case 9:
func_72(uParam1, "Epsilon1", func_74(iParam0), 0, 3, 4, -1622.89f, 4204.87f, 83.3f, 66, "", 86, 0, "", 0, 1, 10, 4, 1, 0, 2359, func_73(iParam0), 0, 0);
break;
case 10:
func_72(uParam1, "Epsilon2", func_74(iParam0), 0, 3, 4, 242.7f, 362.7f, 104.74f, 206, "", 87, 16, "", 0, 0, 11, 4, 1, 0, 2359, func_73(iParam0), 1, 0);
break;
case 11:
func_72(uParam1, "Epsilon3", func_74(iParam0), 0, 3, 4, 1835.53f, 4705.86f, 38.1f, 206, "", 88, 16, "epsCars", 0, 0, 12, 4, 1, 0, 2359, func_73(iParam0), 0, 0);
break;
case 12:
func_72(uParam1, "Epsilon4", func_74(iParam0), 0, 3, 4, 1826.13f, 4698.88f, 38.92f, 206, "", 90, 16, "postRC_Epsilon4", 0, 0, 13, 4, 1, 0, 2359, func_73(iParam0), 0, 0);
break;
case 13:
func_72(uParam1, "Epsilon5", func_74(iParam0), 0, 3, 4, 637.02f, 119.7093f, 89.5f, 206, "", 89, 16, "epsRobes", 0, 0, 14, 4, 1, 0, 2359, func_73(iParam0), 1, 0);
break;
case 14:
func_72(uParam1, "Epsilon6", func_74(iParam0), 0, 3, 4, -2892.93f, 3192.37f, 11.66f, 206, "", 93, 0, "", 0, 0, 15, 4, 1, 0, 2359, func_73(iParam0), 0, 1);
break;
case 15:
func_72(uParam1, "Epsilon7", func_74(iParam0), 0, 3, 4, 524.43f, 3079.82f, 39.48f, 206, "", -1, 16, "epsDesert", 0, 0, 16, 4, 1, 0, 2359, func_73(iParam0), 0, 0);
break;
case 16:
func_72(uParam1, "Epsilon8", func_74(iParam0), 0, 3, 4, -697.75f, 45.38f, 43.03f, 206, "", 94, 16, "epsilonTract", 0, 0, -1, 4, 1, 0, 2359, func_73(iParam0), 1, 0);
break;
case 17:
func_72(uParam1, "Extreme1", func_74(iParam0), 0, 4, 4, -188.22f, 1296.1f, 302.86f, 66, "", -1, 0, "", 4, 1, 18, 4, 2, 0, 2359, func_73(iParam0), 0, 1);
break;
case 18:
func_72(uParam1, "Extreme2", func_74(iParam0), 0, 4, 4, -954.19f, -2760.05f, 14.64f, 382, "", 96, 0, "", 171, 0, 19, 4, 2, 0, 2359, func_73(iParam0), 0, 1);
break;
case 19:
func_72(uParam1, "Extreme3", func_74(iParam0), 0, 4, 4, -63.8f, -809.5f, 321.8f, 382, "", 97, 0, "", 0, 0, 20, 4, 2, 0, 2359, func_73(iParam0), 0, 1);
break;
case 20:
func_72(uParam1, "Extreme4", func_74(iParam0), 0, 4, 4, 1731.41f, 96.96f, 170.39f, 382, "", 98, 16, "", 0, 0, -1, 4, 2, 0, 2359, func_73(iParam0), 0, 0);
break;
case 21:
func_72(uParam1, "Fanatic1", func_74(iParam0), 0, 5, 4, -1877.82f, -440.649f, 45.05f, 405, "", 74, 0, "", 0, 1, -1, 4, 1, 700, 2000, func_73(iParam0), 1, 0);
break;
case 22:
func_72(uParam1, "Fanatic2", func_74(iParam0), 0, 5, 4, 809.66f, 1279.76f, 360.49f, 405, "", -1, 0, "", 0, 1, -1, 4, 4, 700, 2000, func_73(iParam0), 1, 0);
break;
case 23:
func_72(uParam1, "Fanatic3", func_74(iParam0), 0, 5, 4, -915.6f, 6139.2f, 5.5f, 405, "", -1, 0, "", 0, 1, -1, 4, 2, 700, 2000, func_73(iParam0), 0, 1);
break;
case 24:
func_72(uParam1, "Hao1", func_74(iParam0), 0, 6, 4, -72.29f, -1260.63f, 28.14f, 66, "", -1, 0, "controller_Races", 13, 1, -1, 4, 2, 2000, 500, func_73(iParam0), 0, 1);
break;
case 25:
func_72(uParam1, "Hunting1", func_74(iParam0), 0, 7, 4, 1804.32f, 3931.33f, 32.82f, 66, "", -1, 0, "", 174, 1, 26, 4, 4, 0, 2359, func_73(iParam0), 0, 1);
break;
case 26:
func_72(uParam1, "Hunting2", func_74(iParam0), 0, 7, 4, -684.17f, 5839.16f, 16.09f, 384, "", 99, 0, "", 7, 0, -1, 4, 4, 0, 2359, func_73(iParam0), 0, 1);
break;
case 27:
func_72(uParam1, "Josh1", func_74(iParam0), 0, 8, 4, -1104.93f, 291.25f, 64.3f, 66, "", -1, 0, "forSaleSigns", 0, 1, 28, 4, 4, 0, 2359, func_73(iParam0), 1, 0);
break;
case 28:
func_72(uParam1, "Josh2", func_74(iParam0), 0, 8, 4, 565.39f, -1772.88f, 29.77f, 385, "", 105, 0, "", 0, 0, 29, 4, 4, 0, 2359, func_73(iParam0), 1, 1);
break;
case 29:
func_72(uParam1, "Josh3", func_74(iParam0), 0, 8, 4, 565.39f, -1772.88f, 29.77f, 385, "", -1, 16, "", 0, 0, 30, 4, 4, 0, 2359, func_73(iParam0), 1, 1);
break;
case 30:
func_72(uParam1, "Josh4", func_74(iParam0), 0, 8, 4, -1104.93f, 291.25f, 64.3f, 385, "", -1, 36, "", 0, 0, -1, 4, 4, 0, 2359, func_73(iParam0), 1, 0);
break;
case 31:
func_72(uParam1, "Maude1", func_74(iParam0), 0, 9, 4, 2726.1f, 4145f, 44.3f, 66, "", -1, 0, "BailBond_Launcher", 0, 1, -1, 4, 4, 0, 2359, func_73(iParam0), 0, 1);
break;
case 32:
func_72(uParam1, "Minute1", func_74(iParam0), 0, 10, 4, 327.85f, 3405.7f, 35.73f, 66, "", -1, 0, "", 0, 1, 33, 4, 4, 0, 2359, func_73(iParam0), 0, 1);
break;
case 33:
func_72(uParam1, "Minute2", func_74(iParam0), 0, 10, 4, 18f, 4527f, 105f, 386, "", -1, 10, "", 0, 0, 34, 4, 4, 0, 2359, func_73(iParam0), 0, 1);
break;
case 34:
func_72(uParam1, "Minute3", func_74(iParam0), 0, 10, 4, -303.82f, 6211.29f, 31.05f, 386, "", -1, 10, "", 0, 0, -1, 4, 4, 0, 2359, func_73(iParam0), 0, 1);
break;
case 35:
func_72(uParam1, "MrsPhilips1", func_74(iParam0), 0, 11, 4, 1972.59f, 3816.43f, 32.42f, 66, "", -1, 0, "ambient_MrsPhilips", 0, 1, -1, 4, 4, 0, 2359, func_73(iParam0), 0, 0);
break;
case 36:
func_72(uParam1, "MrsPhilips2", func_74(iParam0), 0, 11, 4, 0f, 0f, 0f, -1, "", -1, 0, "", 0, 1, -1, 4, 4, 0, 2359, func_73(iParam0), 0, 0);
break;
case 37:
func_72(uParam1, "Nigel1", func_74(iParam0), 0, 12, 4, -1097.16f, 790.01f, 164.52f, 66, "", -1, 0, "", 177, 1, -1, 1, 4, 0, 2359, func_73(iParam0), 1, 0);
break;
case 38:
func_72(uParam1, "Nigel1A", func_74(iParam0), 0, 12, 1, -558.65f, 284.49f, 90.86f, 149, "NIGITEMS", 100, 0, "", 0, 0, 42, 4, 4, 0, 2359, func_73(iParam0), 1, 1);
break;
case 39:
func_72(uParam1, "Nigel1B", func_74(iParam0), 0, 12, 1, -1034.15f, 366.08f, 80.11f, 149, "", 100, 0, "", 0, 0, 42, 4, 4, 700, 2000, func_73(iParam0), 1, 1);
break;
case 40:
func_72(uParam1, "Nigel1C", func_74(iParam0), 0, 12, 1, -623.91f, -266.17f, 37.76f, 149, "", 100, 0, "", 0, 0, 42, 4, 4, 700, 2000, func_73(iParam0), 1, 1);
break;
case 41:
func_72(uParam1, "Nigel1D", func_74(iParam0), 0, 12, 1, -1096.85f, 67.68f, 52.95f, 149, "", 100, 0, "", 0, 0, 42, 4, 4, 700, 2000, func_73(iParam0), 1, 1);
break;
case 42:
func_72(uParam1, "Nigel2", func_74(iParam0), 0, 12, 4, -1310.7f, -640.22f, 26.54f, 149, "", -1, 8, "", 0, 0, 43, 4, 4, 0, 2359, func_73(iParam0), 1, 1);
break;
case 43:
func_72(uParam1, "Nigel3", func_74(iParam0), 0, 12, 4, -44.75f, -1288.67f, 28.21f, 149, "", -1, 16, "postRC_Nigel3", 0, 0, -1, 4, 4, 0, 2359, func_73(iParam0), 1, 1);
break;
case 44:
func_72(uParam1, "Omega1", func_74(iParam0), 0, 13, 4, 2468.51f, 3437.39f, 49.9f, 66, "", -1, 0, "spaceshipParts", 0, 1, 45, 4, 2, 0, 2359, func_73(iParam0), 0, 0);
break;
case 45:
func_72(uParam1, "Omega2", func_74(iParam0), 0, 13, 4, 2319.44f, 2583.58f, 46.76f, 387, "", 107, 0, "", 0, 0, -1, 4, 2, 0, 2359, func_73(iParam0), 0, 0);
break;
case 46:
func_72(uParam1, "Paparazzo1", func_74(iParam0), 0, 14, 4, -149.75f, 285.81f, 93.67f, 66, "", -1, 0, "", 0, 1, 47, 4, 2, 0, 2359, func_73(iParam0), 0, 1);
break;
case 47:
func_72(uParam1, "Paparazzo2", func_74(iParam0), 0, 14, 4, -70.71f, 301.43f, 106.79f, 389, "", -1, 8, "", 0, 0, 48, 4, 2, 0, 2359, func_73(iParam0), 0, 1);
break;
case 48:
func_72(uParam1, "Paparazzo3", func_74(iParam0), 0, 14, 4, -257.22f, 292.85f, 90.63f, 389, "", -1, 8, "", 183, 1, -1, 2, 2, 0, 2359, func_73(iParam0), 0, 0);
break;
case 49:
func_72(uParam1, "Paparazzo3A", func_74(iParam0), 0, 14, 2, 305.52f, 157.19f, 102.94f, 389, "PAPPHOTO", 102, 0, "", 0, 0, 51, 4, 2, 0, 2359, func_73(iParam0), 0, 1);
break;
case 50:
func_72(uParam1, "Paparazzo3B", func_74(iParam0), 0, 14, 2, 1040.96f, -534.42f, 60.17f, 389, "", 102, 0, "", 0, 0, 51, 4, 2, 0, 2359, func_73(iParam0), 0, 1);
break;
case 51:
func_72(uParam1, "Paparazzo4", func_74(iParam0), 0, 14, 4, -484.2f, 229.68f, 82.21f, 389, "", -1, 8, "", 0, 1, -1, 4, 2, 0, 2359, func_73(iParam0), 0, 0);
break;
case 52:
func_72(uParam1, "Rampage1", func_74(iParam0), 0, 15, 4, 908f, 3643.7f, 32.2f, 66, "", -1, 0, "", 0, 1, 54, 4, 4, 0, 2359, func_73(iParam0), 0, 0);
break;
case 54:
func_72(uParam1, "Rampage3", func_74(iParam0), 0, 15, 4, 465.1f, -1849.3f, 27.8f, 84, "", -1, 0, "", 0, 1, 55, 4, 4, 0, 2359, func_73(iParam0), 1, 0);
break;
case 55:
func_72(uParam1, "Rampage4", func_74(iParam0), 0, 15, 4, -161f, -1669.7f, 33f, 84, "", -1, 0, "", 0, 0, 56, 4, 4, 0, 2359, func_73(iParam0), 1, 0);
break;
case 56:
func_72(uParam1, "Rampage5", func_74(iParam0), 0, 15, 4, -1298.2f, 2504.14f, 21.09f, 84, "", -1, 0, "", 0, 0, 53, 4, 4, 0, 2359, func_73(iParam0), 0, 0);
break;
case 53:
func_72(uParam1, "Rampage2", func_74(iParam0), 0, 15, 4, 1181.5f, -400.1f, 67.5f, 84, "", -1, 0, "rampage_controller", 0, 0, -1, 4, 4, 0, 2359, func_73(iParam0), 1, 0);
break;
case 57:
func_72(uParam1, "TheLastOne", func_74(iParam0), 0, 16, 4, -1298.98f, 4640.16f, 105.67f, 66, "", 133, 1, "", 0, 1, -1, 4, 2, 0, 2359, func_73(iParam0), 0, 1);
break;
case 58:
func_72(uParam1, "Tonya1", func_74(iParam0), 0, 17, 4, -14.39f, -1472.69f, 29.58f, 66, "AM_H_RCFS", -1, 0, "ambient_TonyaCall", 24, 1, 59, 4, 2, 0, 2359, func_73(iParam0), 0, 1);
break;
case 59:
func_72(uParam1, "Tonya2", func_74(iParam0), 0, 17, 4, -14.39f, -1472.69f, 29.58f, 388, "", -1, 48, "ambient_Tonya", 185, 0, 60, 4, 2, 0, 2359, func_73(iParam0), 0, 1);
break;
case 60:
func_72(uParam1, "Tonya3", func_74(iParam0), 0, 17, 4, 0f, 0f, 0f, -1, "", -1, 0, "", 187, 0, 61, 4, 2, 0, 2359, func_73(iParam0), 0, 1);
break;
case 61:
func_72(uParam1, "Tonya4", func_74(iParam0), 0, 17, 4, 0f, 0f, 0f, -1, "", -1, 0, "", 0, 0, 62, 4, 2, 0, 2359, func_73(iParam0), 0, 1);
break;
case 62:
func_72(uParam1, "Tonya5", func_74(iParam0), 0, 17, 4, -14.39f, -1472.69f, 29.58f, 388, "", -1, 48, "", 0, 0, -1, 4, 2, 0, 2359, func_73(iParam0), 0, 1);
break;
default:
break;
}
}
void func_72(var uParam0, char* sParam1, struct<2> Param2, int iParam3, int iParam4, int iParam5, vector3 vParam6, int iParam7, char* sParam8, int iParam9, int iParam10, char* sParam11, int iParam12, int iParam13, int iParam14, int iParam15, int iParam16, int iParam17, int iParam18, var uParam19, int iParam20, int iParam21)
{
uParam0->f_4 = iParam4;
*uParam0 = sParam1;
uParam0->f_1 = { Param2 };
uParam0->f_3 = iParam3;
uParam0->f_5 = iParam5;
uParam0->f_6 = { vParam6 };
uParam0->f_9 = iParam7;
StringCopy(&(uParam0->f_10), sParam8, 16);
uParam0->f_14 = iParam9;
uParam0->f_15 = iParam10;
StringCopy(&(uParam0->f_16), sParam11, 24);
uParam0->f_22 = iParam12;
uParam0->f_23 = iParam13;
uParam0->f_24 = iParam14;
uParam0->f_25 = iParam15;
uParam0->f_26 = iParam16;
uParam0->f_27 = iParam17;
uParam0->f_28 = iParam18;
uParam0->f_29 = uParam19;
uParam0->f_30 = iParam20;
uParam0->f_31 = iParam21;
}
int func_73(int iParam0)
{
switch (iParam0)
{
case 0:
return 0;
break;
case 1:
return 0;
break;
case 2:
return 1;
break;
case 3:
return 1;
break;
case 4:
return 0;
break;
case 5:
return 1;
break;
case 6:
return 1;
break;
case 7:
return 0;
break;
case 8:
return 1;
break;
case 9:
return 0;
break;
case 10:
return 0;
break;
case 11:
return 0;
break;
case 12:
return 1;
break;
case 13:
return 0;
break;
case 14:
return 1;
break;
case 15:
return 0;
break;
case 16:
return 1;
break;
case 17:
return 1;
break;
case 18:
return 1;
break;
case 19:
return 1;
break;
case 20:
return 1;
break;
case 21:
return 1;
break;
case 22:
return 1;
break;
case 23:
return 1;
break;
case 24:
return 1;
break;
case 25:
return 1;
break;
case 26:
return 1;
break;
case 27:
return 0;
break;
case 28:
return 1;
break;
case 29:
return 1;
break;
case 30:
return 1;
break;
case 31:
return 0;
break;
case 32:
return 1;
break;
case 33:
return 1;
break;
case 34:
return 1;
break;
case 35:
return 0;
break;
case 36:
return 0;
break;
case 37:
return 0;
break;
case 38:
return 1;
break;
case 39:
return 1;
break;
case 40:
return 1;
break;
case 41:
return 1;
break;
case 42:
return 1;
break;
case 43:
return 1;
break;
case 44:
return 0;
break;
case 45:
return 0;
break;
case 46:
return 1;
break;
case 47:
return 1;
break;
case 48:
return 0;
break;
case 49:
return 1;
break;
case 50:
return 1;
break;
case 51:
return 1;
break;
case 52:
return 1;
break;
case 54:
return 1;
break;
case 55:
return 1;
break;
case 56:
return 1;
break;
case 53:
return 1;
break;
case 57:
return 1;
break;
case 58:
return 1;
break;
case 59:
return 1;
break;
case 60:
return 1;
break;
case 61:
return 1;
break;
case 62:
return 1;
break;
default:
break;
}
return 0;
}
struct<2> func_74(int iParam0)
{
struct<2> Var0;
char[] cVar1[8];
StringCopy(&Var0, "", 8);
cVar1 = { func_75(iParam0) };
if (unk_0x429D45A6C6520026(&cVar1))
{
}
else
{
StringCopy(&Var0, "RC_", 8);
StringConCat(&Var0, &cVar1, 8);
}
return Var0;
}
struct<2> func_75(int iParam0)
{
struct<2> Var0;
StringCopy(&Var0, "", 8);
switch (iParam0)
{
case 0:
StringCopy(&Var0, "ABI1", 8);
break;
case 1:
StringCopy(&Var0, "ABI2", 8);
break;
case 2:
StringCopy(&Var0, "BA1", 8);
break;
case 3:
StringCopy(&Var0, "BA2", 8);
break;
case 4:
StringCopy(&Var0, "BA3", 8);
break;
case 5:
StringCopy(&Var0, "BA3A", 8);
break;
case 6:
StringCopy(&Var0, "BA3C", 8);
break;
case 7:
StringCopy(&Var0, "BA4", 8);
break;
case 8:
StringCopy(&Var0, "DRE1", 8);
break;
case 9:
StringCopy(&Var0, "EPS1", 8);
break;
case 10:
StringCopy(&Var0, "EPS2", 8);
break;
case 11:
StringCopy(&Var0, "EPS3", 8);
break;
case 12:
StringCopy(&Var0, "EPS4", 8);
break;
case 13:
StringCopy(&Var0, "EPS5", 8);
break;
case 14:
StringCopy(&Var0, "EPS6", 8);
break;
case 15:
StringCopy(&Var0, "EPS7", 8);
break;
case 16:
StringCopy(&Var0, "EPS8", 8);
break;
case 17:
StringCopy(&Var0, "EXT1", 8);
break;
case 18:
StringCopy(&Var0, "EXT2", 8);
break;
case 19:
StringCopy(&Var0, "EXT3", 8);
break;
case 20:
StringCopy(&Var0, "EXT4", 8);
break;
case 21:
StringCopy(&Var0, "FAN1", 8);
break;
case 22:
StringCopy(&Var0, "FAN2", 8);
break;
case 23:
StringCopy(&Var0, "FAN3", 8);
break;
case 24:
StringCopy(&Var0, "HAO1", 8);
break;
case 25:
StringCopy(&Var0, "HUN1", 8);
break;
case 26:
StringCopy(&Var0, "HUN2", 8);
break;
case 27:
StringCopy(&Var0, "JOS1", 8);
break;
case 28:
StringCopy(&Var0, "JOS2", 8);
break;
case 29:
StringCopy(&Var0, "JOS3", 8);
break;
case 30:
StringCopy(&Var0, "JOS4", 8);
break;
case 31:
StringCopy(&Var0, "MAU1", 8);
break;
case 32:
StringCopy(&Var0, "MIN1", 8);
break;
case 33:
StringCopy(&Var0, "MIN2", 8);
break;
case 34:
StringCopy(&Var0, "MIN3", 8);
break;
case 35:
StringCopy(&Var0, "MRS1", 8);
break;
case 36:
StringCopy(&Var0, "MRS2", 8);
break;
case 37:
StringCopy(&Var0, "NI1", 8);
break;
case 38:
StringCopy(&Var0, "NI1A", 8);
break;
case 39:
StringCopy(&Var0, "NI1B", 8);
break;
case 40:
StringCopy(&Var0, "NI1C", 8);
break;
case 41:
StringCopy(&Var0, "NI1D", 8);
break;
case 42:
StringCopy(&Var0, "NI2", 8);
break;
case 43:
StringCopy(&Var0, "NI3", 8);
break;
case 44:
StringCopy(&Var0, "OME1", 8);
break;
case 45:
StringCopy(&Var0, "OME2", 8);
break;
case 46:
StringCopy(&Var0, "PA1", 8);
break;
case 47:
StringCopy(&Var0, "PA2", 8);
break;
case 48:
StringCopy(&Var0, "PA3", 8);
break;
case 49:
StringCopy(&Var0, "PA3A", 8);
break;
case 50:
StringCopy(&Var0, "PA3B", 8);
break;
case 51:
StringCopy(&Var0, "PA4", 8);
break;
case 52:
StringCopy(&Var0, "RAM1", 8);
break;
case 53:
StringCopy(&Var0, "RAM2", 8);
break;
case 54:
StringCopy(&Var0, "RAM3", 8);
break;
case 55:
StringCopy(&Var0, "RAM4", 8);
break;
case 56:
StringCopy(&Var0, "RAM5", 8);
break;
case 57:
StringCopy(&Var0, "SAS1", 8);
break;
case 58:
StringCopy(&Var0, "TON1", 8);
break;
case 59:
StringCopy(&Var0, "TON2", 8);
break;
case 60:
StringCopy(&Var0, "TON3", 8);
break;
case 61:
StringCopy(&Var0, "TON4", 8);
break;
case 62:
StringCopy(&Var0, "TON5", 8);
break;
default:
break;
}
return Var0;
}
int func_76()
{
int iVar0;
int iVar1;
iVar0 = func_77(&(Global_93232.f_3), 0);
iVar1 = 0;
if (iVar0 == 53)
{
iVar1 = 1;
}
return iVar1;
}
int func_77(char* sParam0, bool bParam1)
{
int iVar0;
int iVar1;
iVar0 = unk_0xFEB6EEC0545AF7AA(sParam0);
iVar1 = func_78(iVar0, 1);
if (iVar1 == -1 && !bParam1)
{
}
return iVar1;
}
int func_78(int iParam0, bool bParam1)
{
int iVar0;
iVar0 = 0;
while (iVar0 < 94)
{
if (Global_84115[iVar0 /*34*/].f_6 == iParam0)
{
return iVar0;
}
iVar0++;
}
if (!bParam1)
{
}
return -1;
}
int func_79()
{
if ((((Global_93232.f_11 == 0 || Global_93232.f_11 == 1) || Global_93232.f_11 == 2) || Global_93232.f_11 == 3) || Global_93232.f_11 == 4)
{
return 1;
}
return 0;
}
int func_80()
{
if ((((Global_93232.f_11 == 0 || Global_93232.f_11 == 1) || Global_93232.f_11 == 2) || Global_93232.f_11 == 6) || Global_93232.f_11 == 3)
{
return 1;
}
if (Global_93232.f_11 == 5)
{
if (func_70(&(Global_93232.f_3)) > -1)
{
return 1;
}
}
return 0;
}
void func_81(int iParam0)
{
if (iParam0 == 1)
{
Global_36666 = 1;
}
else
{
Global_36666 = 0;
}
}
void func_82(bool bParam0)
{
unk_0x85685830EFB9A55E(bParam0);
unk_0xDC374DA4DC566237(bParam0);
}
void func_83(int iParam0)
{
if (iParam0 == 1)
{
unk_0xD8EA6395AE60BF4A();
unk_0x2BCFB39E86340DAA(&(Global_93232.f_20), 3);
}
else if (unk_0x05EFB6A616B6FADE(Global_93232.f_20, 3))
{
unk_0x21727E2C492FE1B3();
unk_0xFA57C719261AA55D(&(Global_93232.f_20), 3);
}
}
void func_84(int iParam0)
{
if (iParam0 == 1)
{
if (unk_0x05EFB6A616B6FADE(Global_93232.f_20, 4))
{
func_86();
unk_0xFA57C719261AA55D(&(Global_93232.f_20), 4);
}
}
else
{
func_85();
unk_0x2BCFB39E86340DAA(&(Global_93232.f_20), 4);
}
}
void func_85()
{
Global_17228.f_5 = 1;
}
void func_86()
{
Global_17228.f_5 = 0;
}
void func_87(bool bParam0)
{
if (bParam0)
{
func_89();
if (Global_14513.f_1 == 10 || Global_14513.f_1 == 9)
{
unk_0x2BCFB39E86340DAA(&Global_2384, 16);
}
Global_14513.f_1 = 1;
if (func_88(0))
{
func_90(0);
}
}
else if (Global_14513.f_1 == 1)
{
if (!Global_14513.f_1 == 0)
{
Global_14513.f_1 = 3;
}
}
}
int func_88(int iParam0)
{
if (iParam0 == 1)
{
if (Global_14513.f_1 > 3)
{
if (unk_0x05EFB6A616B6FADE(Global_2383, 14))
{
return 1;
}
else
{
return 0;
}
}
else
{
return 0;
}
}
if (unk_0x8B1574454E8C2421(joaat("cellphone_flashhand")) > 0)
{
return 1;
}
if (Global_14513.f_1 > 3)
{
return 1;
}
return 0;
}
void func_89()
{
if (Global_14513.f_1 == 9 || Global_14513.f_1 == 10)
{
Global_15875 = 0;
Global_15871 = 1;
}
}
void func_90(int iParam0)
{
if (func_92())
{
return;
}
if (Global_14681)
{
func_91(0, 0);
}
if (Global_14513.f_1 == 10 || Global_14513.f_1 == 9)
{
unk_0x2BCFB39E86340DAA(&Global_2384, 16);
}
if (unk_0xB39808C1DCE0DCFA())
{
unk_0xA8B97F91CBDE376C(false);
}
Global_15822 = 5;
if (iParam0 == 1)
{
unk_0x2BCFB39E86340DAA(&Global_2383, 30);
}
else
{
unk_0xFA57C719261AA55D(&Global_2383, 30);
}
if (!func_35())
{
Global_14513.f_1 = 3;
}
}
void func_91(bool bParam0, bool bParam1)
{
if (bParam0)
{
if (func_88(0))
{
Global_14681 = 1;
if (bParam1)
{
unk_0x75B4B390EE495A3B(&Global_14450);
}
Global_14441 = { Global_14459[Global_14458 /*3*/] };
unk_0xB8927E9A664047D4(Global_14441);
}
}
else if (Global_14681 == 1)
{
Global_14681 = 0;
Global_14441 = { Global_14466[Global_14458 /*3*/] };
if (bParam1)
{
unk_0xB8927E9A664047D4(Global_14450);
}
else
{
unk_0xB8927E9A664047D4(Global_14441);
}
}
}
bool func_92()
{
return unk_0x05EFB6A616B6FADE(Global_1678593, 19);
}
void func_93()
{
Global_87503 = 0;
Global_87504 = 0;
}
void func_94()
{
Global_93232 = 13;
Global_93232.f_1 = -1;
Global_93232.f_2 = 0;
Global_93232.f_30 = 0f;
unk_0xFA57C719261AA55D(&(Global_93232.f_20), 25);
Global_93266 = 0;
func_81(0);
func_96();
func_95();
Global_93232.f_18 = -1;
Global_93232.f_19 = -1;
}
void func_95()
{
unk_0xFA57C719261AA55D(&(Global_93232.f_20), 22);
unk_0xFA57C719261AA55D(&(Global_93232.f_20), 8);
}
void func_96()
{
if (Global_93232.f_16 != 0)
{
unk_0x86795B44CE5FE021(&(Global_93232.f_16));
Global_93232.f_16 = 0;
}
if (Global_93232.f_17 != 0)
{
unk_0x86795B44CE5FE021(&(Global_93232.f_17));
Global_93232.f_17 = 0;
}
}
void func_97(char* sParam0, int iParam1, int iParam2, int iParam3, int iParam4)
{
if (unk_0x429D45A6C6520026(&Global_90397))
{
return;
}
if (unk_0xCEB43E897180EFFF(sParam0, &Global_90397, 0, -1) != 0)
{
return;
}
unk_0x70D5564B24C33858(sParam0, iParam1, iParam2, iParam3, iParam4, Global_87504);
StringCopy(&Global_90397, "", 64);
}
int func_98(int iParam0)
{
switch (iParam0)
{
case 69:
case 70:
return func_99(Global_106070.f_9057.f_99.f_205[10]);
break;
case 74:
case 75:
return func_99(Global_106070.f_9057.f_99.f_205[8]);
break;
case 84:
case 85:
return func_99(Global_106070.f_9057.f_99.f_205[11]);
break;
case 90:
return func_99(Global_106070.f_9057.f_99.f_205[7]);
break;
case 93:
return func_99(Global_106070.f_9057.f_99.f_205[9]);
break;
}
return 0;
}
int func_99(int iParam0)
{
switch (iParam0)
{
case 1:
case 3:
case 5:
case 6:
case 8:
return 0;
break;
case 2:
case 4:
case 7:
case 9:
return 1;
break;
}
return -1;
}
var func_100(int iParam0, int iParam1, int iParam2, bool bParam3, bool bParam4)
{
int iVar0;
char* sVar1;
struct<2> Var2;
int iVar3;
int iVar4;
func_285(iParam2);
if (!bParam4)
{
iVar0 = func_98(iParam2);
sVar1 = { Global_84115[iParam2 /*34*/].f_8 };
if (iParam2 == 90)
{
switch (Global_106070.f_9057.f_99.f_205[7])
{
case 1:
StringConCat(&sVar1, "A", 8);
break;
case 2:
StringConCat(&sVar1, "B", 8);
break;
}
}
unk_0x5D84F5C14E1207BE(&sVar1, iVar0, Global_93269, 0);
func_97(&sVar1, iVar0, Global_93269, 0, 0);
Global_71469 = iParam2;
Global_71470 = unk_0xFD34717937104F1C();
if (iParam2 == 28)
{
func_284(&Global_56196, Global_84115[iParam2 /*34*/].f_12);
}
else
{
Var2 = { func_283(iParam2) };
func_284(&Var2, Global_84115[iParam2 /*34*/].f_12);
}
func_7(iParam2);
func_275(iParam2, 0);
if (!unk_0x05EFB6A616B6FADE(Global_84115[iParam2 /*34*/].f_15, 4))
{
func_274(0, 0);
Global_17228.f_17 = 1;
Global_17228.f_18 = unk_0xFD34717937104F1C();
}
if (!func_888(0))
{
if (unk_0x7DD04831D0FC44CA())
{
if (iParam2 == 53)
{
func_273();
}
else if (iParam2 == 44)
{
func_272();
}
else if (iParam2 == 42)
{
func_271();
}
else
{
func_269(func_44());
}
}
}
}
func_66(1, iParam2);
func_569(iParam0, iParam1, bParam3);
func_259(iParam2, 1);
if (unk_0x58E3CCF930D23BD5(unk_0xD4E735F4B6A956AC()))
{
unk_0xF10B3BC4F73177E5(unk_0xD4E735F4B6A956AC(), 0, 0);
unk_0xDF341226C0B8BAC3(unk_0xD4E735F4B6A956AC(), 0);
unk_0xB1D22059BEC7B532(unk_0xD4E735F4B6A956AC());
unk_0x824B5E936276CAB3(5000);
}
Global_87505 = 0;
func_257(&(Global_106070.f_2355.f_539), iParam2);
func_229(&(Global_106070.f_2355.f_539), iParam2);
if (unk_0x58E3CCF930D23BD5(unk_0xD4E735F4B6A956AC()))
{
iVar3 = func_44();
if (func_47(iVar3))
{
func_222(unk_0xA19140A5C42D8715(), &(Global_92701[iVar3 /*98*/]), &(Global_93004[iVar3 /*3*/]), &(Global_93014[iVar3]), &(Global_92996[iVar3]), &(Global_4268559[iVar3]));
}
}
func_220(iParam2);
func_106();
iVar4 = func_105(iParam2);
if (iVar4 != 0)
{
if (!unk_0xE69FB07E471C2FB0(iVar4))
{
unk_0x75517BC5AF6FF1DD(iVar4);
}
}
if (!unk_0x05EFB6A616B6FADE(Global_84115[iParam2 /*34*/].f_15, 0) && !Global_56181)
{
func_104();
}
if (!func_888(0))
{
if (iParam2 == 90)
{
func_101(0);
}
else if (iParam2 == 84 || iParam2 == 85)
{
func_101(4);
}
}
Global_71474.f_7 = 1;
Global_71474.f_6 = 1;
func_55(iParam2, 0);
return Global_71474.f_109[iParam0 /*4*/].f_1;
}
void func_101(int iParam0)
{
int iVar0;
int iVar1;
if (unk_0xC29B8FF8374918FD())
{
if (unk_0x5726B50453129F76())
{
switch (iParam0)
{
case 0:
if (!unk_0x05EFB6A616B6FADE(Global_106070.f_20090.f_290, 6))
{
iVar1 = Global_106070.f_9057.f_99.f_205[func_103(0)];
iVar0 = Global_106070.f_1.f_126[0 /*23*/].f_2[0];
iVar0 = (iVar0 + Global_106070.f_1.f_126[0 /*23*/].f_2[1]);
switch (iVar1)
{
case 1:
unk_0x5896ABDF8AA1C993("JH2A", iVar0, 0);
break;
case 2:
unk_0x5896ABDF8AA1C993("JH2B", iVar0, 0);
break;
}
func_102("FB_J_HEIST");
unk_0x2BCFB39E86340DAA(&(Global_106070.f_20090.f_290), 6);
}
break;
case 4:
if (!unk_0x05EFB6A616B6FADE(Global_106070.f_20090.f_290, 7))
{
iVar1 = Global_106070.f_9057.f_99.f_205[func_103(4)];
iVar0 = Global_106070.f_1.f_126[4 /*23*/].f_2[0];
iVar0 = (iVar0 + Global_106070.f_1.f_126[4 /*23*/].f_2[1]);
iVar0 = (iVar0 + Global_106070.f_1.f_126[4 /*23*/].f_2[2]);
switch (iVar1)
{
case 8:
unk_0x5896ABDF8AA1C993("FH2A", iVar0, 0);
break;
case 9:
unk_0x5896ABDF8AA1C993("FH2B", iVar0, 0);
break;
}
func_102("FB_BS_HEIST");
unk_0x2BCFB39E86340DAA(&(Global_106070.f_20090.f_290), 7);
}
break;
}
}
}
}
void func_102(char* sParam0)
{
if (!unk_0x429D45A6C6520026(sParam0))
{
unk_0x59FF6261546DDD52("FB_TITLE");
unk_0x4FDA9E6EF359F8A9(sParam0);
unk_0x595B8132C1F20265("CHAR_FACEBOOK", "CHAR_FACEBOOK", 1, 0, "", 0);
}
}
int func_103(int iParam0)
{
int iVar0;
switch (iParam0)
{
case 0:
iVar0 = 7;
break;
case 1:
iVar0 = 8;
break;
case 2:
iVar0 = 9;
break;
case 3:
iVar0 = 10;
break;
case 4:
iVar0 = 11;
break;
}
return iVar0;
}
int func_104()
{
if (func_888(0))
{
return 0;
}
if (Global_93271.f_8)
{
if (Global_93271.f_10 > 0)
{
return 0;
}
}
else if (Global_93271.f_10 > 1)
{
return 0;
}
Global_93271.f_10++;
return 1;
}
int func_105(int iParam0)
{
switch (iParam0)
{
case 53:
return 1;
break;
case 1:
return 2;
break;
case 2:
return 3;
break;
case 17:
return 4;
break;
case 19:
return 5;
break;
case 43:
return 6;
break;
case 44:
return 7;
break;
case 90:
if (Global_106070.f_9057.f_99.f_205[7] == 1)
{
return 8;
}
else
{
return 9;
}
break;
case 63:
return 10;
break;
case 12:
return 11;
break;
case 13:
return 12;
break;
case 64:
return 13;
break;
case 20:
return 14;
break;
case 30:
return 15;
break;
case 31:
return 16;
break;
case 41:
if (!Global_106070.f_9057.f_99.f_58[43])
{
return 17;
}
else
{
return 18;
}
break;
case 38:
return 19;
break;
case 74:
return 21;
break;
case 75:
return 20;
break;
case 9:
if (Global_106070.f_9057.f_99.f_58[76])
{
return 23;
}
else
{
return 22;
}
break;
case 59:
return 24;
break;
case 45:
return 25;
break;
case 10:
return 26;
break;
case 14:
return 27;
break;
case 93:
return 28;
break;
case 16:
return 29;
break;
case 39:
return 30;
break;
case 46:
return 31;
break;
case 60:
return 32;
break;
case 22:
return 33;
break;
case 69:
return 34;
break;
case 70:
return 35;
break;
case 48:
return 36;
break;
case 61:
return 37;
break;
case 49:
return 38;
break;
case 84:
return 39;
break;
case 85:
return 40;
break;
case 27:
return 41;
break;
case 3:
return 56;
break;
case 4:
return 57;
break;
case 5:
return 58;
break;
case 6:
return 59;
break;
case 7:
return 60;
break;
case 58:
if (Global_106070.f_9057.f_99.f_58[80])
{
return 63;
}
break;
}
return 0;
}
void func_106()
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
iVar0 = 0;
while (iVar0 <= 8)
{
iVar1 = Global_90696[iVar0];
if (unk_0xDC5D81351D6A4DDB(iVar1) && !unk_0x4915F4759304D5CF(iVar1))
{
iVar3 = func_48(iVar1);
iVar2 = -99;
switch (iVar3)
{
case 0:
iVar2 = 112;
break;
case 1:
iVar2 = 158;
break;
case 2:
iVar2 = 154;
break;
}
if (iVar2 != -99)
{
if (func_219(iVar1, 14, iVar2))
{
func_107(iVar1, 14, iVar2);
}
if (Global_106070.f_2355.f_539[iVar3 /*65*/].f_39[2] == iVar2)
{
Global_106070.f_2355.f_539[iVar3 /*65*/].f_39[2] = -1;
}
}
}
iVar0++;
}
}
int func_107(int iParam0, int iParam1, int iParam2)
{
int iVar0;
int iVar1;
var uVar2;
int iVar3;
int iVar4;
var uVar5;
var uVar6;
int iVar7;
if (unk_0x4915F4759304D5CF(iParam0) || iParam2 == -99)
{
return 0;
}
iVar0 = unk_0x8F474E419F56E48D(iParam0);
Global_71017[1 /*14*/] = { func_155(iVar0, iParam1, iParam2, -1) };
if (!unk_0x05EFB6A616B6FADE(Global_71017[1 /*14*/].f_6, 0))
{
return 0;
}
if (!func_219(iParam0, iParam1, iParam2))
{
return 0;
}
if (iParam1 == 12)
{
uVar2 = { func_151(iVar0, iParam2) };
iVar1 = 0;
while (iVar1 <= 14)
{
if (uVar2[iVar1] != -99)
{
func_107(iParam0, iVar1, uVar2[iVar1]);
}
iVar1++;
}
}
else if (iParam1 == 13)
{
uVar5 = { func_148(iVar0, iParam2) };
iVar3 = 0;
while (iVar3 <= 8)
{
if (!func_107(iParam0, 14, uVar5[iVar3]))
{
iVar4 = 0;
}
iVar3++;
}
return iVar4;
}
else if (iParam1 == 14)
{
unk_0x8757CF4763C139B6(iParam0, Global_71017[1 /*14*/].f_12);
}
else
{
uVar6 = { func_151(iVar0, 0) };
Global_71017[1 /*14*/] = { func_155(iVar0, iParam1, uVar6[iParam1], -1) };
if (unk_0xE73139FCB8A4B748(iParam0, func_147(iParam1)) > 0 && unk_0x2B322C65C819A12B(iParam0, func_147(iParam1), Global_71017[1 /*14*/].f_3) > 0)
{
unk_0x72A0FF8C49CFFC0D(iParam0, func_147(iParam1), Global_71017[1 /*14*/].f_3, Global_71017[1 /*14*/].f_4, 0);
}
}
if (func_146(iParam0, iVar0, &iVar7, 0))
{
func_110(iParam0, 2, iVar7, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
if (func_108(iParam0, iVar0, &iVar7))
{
func_110(iParam0, 1, iVar7, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
return 1;
}
int func_108(int iParam0, int iParam1, int iParam2)
{
int iVar0;
iVar0 = func_109(iParam1);
if (Global_106070.f_2355.f_539[iVar0 /*65*/].f_63 != -99)
{
if (!func_219(iParam0, Global_106070.f_2355.f_539[iVar0 /*65*/].f_64, Global_106070.f_2355.f_539[iVar0 /*65*/].f_63))
{
*iParam2 = Global_106070.f_2355.f_539[iVar0 /*65*/].f_62;
Global_106070.f_2355.f_539[iVar0 /*65*/].f_63 = -99;
Global_106070.f_2355.f_539[iVar0 /*65*/].f_64 = 1;
return 1;
}
}
return 0;
}
int func_109(int iParam0)
{
switch (iParam0)
{
case joaat("player_zero"):
return 0;
break;
case joaat("player_one"):
return 1;
break;
case joaat("player_two"):
return 2;
break;
default:
break;
}
return 145;
}
int func_110(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10, int iParam11, int iParam12, int iParam13)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
int iVar9;
int iVar10;
var uVar11;
var uVar12;
var uVar13;
struct<14> Var14;
var uVar15;
if (unk_0x4915F4759304D5CF(iParam0) || iParam2 == -99)
{
return 0;
}
Global_71015++;
iVar5 = -99;
iVar6 = -99;
iVar7 = -99;
iVar8 = -99;
iVar9 = -99;
iVar10 = unk_0x8F474E419F56E48D(iParam0);
if (iParam5 == 0)
{
Global_71017[1 /*14*/] = { func_155(iVar10, iParam1, iParam2, -1) };
if (!func_145(iParam3))
{
Global_71015 = (Global_71015 - 1);
return 0;
}
func_141(iParam1);
}
if (iParam1 == 12)
{
if (iParam7 == 1)
{
if (iVar10 == joaat("player_one"))
{
iVar5 = func_139(iParam0, 8);
if (iVar5 != 9)
{
iVar5 = -99;
}
}
iVar6 = func_139(iParam0, 9);
if (iVar10 == joaat("player_zero"))
{
if (iVar6 >= 9 && iVar6 <= 14)
{
}
else
{
iVar6 = -99;
}
}
else if (iVar10 == joaat("player_one"))
{
if (iVar6 >= 5 && iVar6 <= 10)
{
}
else
{
iVar6 = -99;
}
}
else if (iVar10 == joaat("player_two"))
{
if ((iVar6 >= 9 && iVar6 <= 14) || (iVar6 >= 15 && iVar6 <= 16))
{
}
else
{
iVar6 = -99;
}
}
iVar7 = func_138(iParam0, 1);
if (!func_137(iVar10, 14, iVar7, -1))
{
iVar7 = -99;
}
iVar8 = func_138(iParam0, 0);
if (!func_136(iVar10, 14, iVar8, -1) && !func_135(iVar10, 14, iVar8, -1))
{
iVar8 = -99;
}
if (iVar10 == joaat("player_one"))
{
iVar9 = func_138(iParam0, 2);
}
}
unk_0x406CCC2A13C8D900(iParam0);
uVar11 = 15;
if (iParam5 == 1)
{
uVar11 = { Global_71060 };
}
else
{
uVar11 = { func_151(iVar10, iParam2) };
}
iVar0 = 0;
while (iVar0 <= 14)
{
if (uVar11[iVar0] != -99)
{
Global_71017[1 /*14*/] = { func_155(iVar10, iVar0, uVar11[iVar0], -1) };
if (unk_0x05EFB6A616B6FADE(Global_71017[1 /*14*/].f_6, 0))
{
if (iVar0 == 13)
{
uVar12 = 9;
if (iParam5 == 1)
{
uVar12 = { Global_71077 };
}
else
{
uVar12 = { func_148(iVar10, uVar11[iVar0]) };
}
iVar1 = 0;
while (iVar1 <= 8)
{
Global_71017[1 /*14*/] = { func_155(iVar10, 14, uVar12[iVar1], -1) };
func_126(iParam0, Global_71017[1 /*14*/].f_12, Global_71017[1 /*14*/].f_3, Global_71017[1 /*14*/].f_4);
func_141(14);
if (Global_71015 == 1)
{
iVar2 = 0;
while (iVar2 < 15)
{
iVar3 = func_118(iParam0, iVar10, 14, uVar12[iVar1], iVar2, 0);
if (iVar3 != -99)
{
func_110(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
iVar2++;
}
}
iVar1++;
}
}
else if (iVar0 != 14 && iVar0 != 12)
{
if ((iVar10 == joaat("player_one") && iVar0 == 2) && uVar11[iVar0] == 20)
{
func_117(iVar10, 2, 20, &iVar4);
}
if (iParam4 == -1)
{
unk_0x72A0FF8C49CFFC0D(iParam0, func_147(iVar0), Global_71017[1 /*14*/].f_3, Global_71017[1 /*14*/].f_4, unk_0xA4B664E8E0A26C23(iParam0, func_147(iVar0)));
}
else
{
unk_0x72A0FF8C49CFFC0D(iParam0, func_147(iVar0), Global_71017[1 /*14*/].f_3, Global_71017[1 /*14*/].f_4, iParam4);
}
func_141(iVar0);
if (Global_71015 == 1)
{
iVar2 = 0;
while (iVar2 < 15)
{
iVar3 = func_118(iParam0, iVar10, iVar0, uVar11[iVar0], iVar2, 0);
if (iVar3 != -99)
{
func_110(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
iVar2++;
}
}
}
}
}
else if (iVar0 != 12 && iVar0 != 14)
{
Global_71017[1 /*14*/] = { func_155(iVar10, iVar0, func_116(iParam0, iVar0, -1), -1) };
if (unk_0x05EFB6A616B6FADE(Global_71017[1 /*14*/].f_6, 3))
{
if (iVar0 == 2)
{
if (iVar10 == joaat("player_one"))
{
if (func_146(iParam0, iVar10, &iVar4, 1))
{
func_110(iParam0, 2, iVar4, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
}
}
else
{
uVar13 = { func_151(iVar10, 0) };
func_110(iParam0, iVar0, uVar13[iVar0], 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
}
}
iVar0++;
}
if (iParam7 == 1)
{
Var14 = { func_155(iVar10, 8, iVar5, -1) };
if (iVar5 != -99)
{
if (func_114(iVar10, iParam2, 8, iVar5, &uVar11, &Var14))
{
func_110(iParam0, 8, iVar5, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0, 0);
}
}
Var14 = { func_155(iVar10, 9, iVar6, -1) };
if (iVar6 != -99)
{
if (func_114(iVar10, iParam2, 9, iVar6, &uVar11, &Var14))
{
func_110(iParam0, 9, iVar6, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0, 0);
}
}
Var14 = { func_155(iVar10, 14, iVar7, -1) };
if (iVar7 != -99)
{
if (func_114(iVar10, iParam2, 14, iVar7, &uVar11, &Var14))
{
func_110(iParam0, 14, iVar7, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0, 0);
}
}
Var14 = { func_155(iVar10, 14, iVar8, -1) };
if (iVar8 != -99)
{
if (func_114(iVar10, iParam2, 14, iVar8, &uVar11, &Var14))
{
func_110(iParam0, 14, iVar8, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0, 0);
}
}
Var14 = { func_155(iVar10, 14, iVar9, -1) };
if (iVar9 != -99)
{
if (func_114(iVar10, iParam2, 14, iVar9, &uVar11, &Var14))
{
func_110(iParam0, 14, iVar9, iParam3, iParam4, iParam5, iParam6, iParam7, -1, -1, -1, 0, 0, 0);
}
}
}
}
else if (iParam1 == 13)
{
uVar15 = { func_148(iVar10, iParam2) };
iVar1 = 0;
while (iVar1 <= 8)
{
Global_71017[1 /*14*/] = { func_155(iVar10, 14, uVar15[iVar1], -1) };
func_126(iParam0, Global_71017[1 /*14*/].f_12, Global_71017[1 /*14*/].f_3, Global_71017[1 /*14*/].f_4);
func_141(14);
if (Global_71015 == 1)
{
iVar2 = 0;
while (iVar2 < 15)
{
iVar3 = func_118(iParam0, iVar10, 14, uVar15[iVar1], iVar2, 0);
if (iVar3 != -99)
{
func_110(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
iVar2++;
}
}
iVar1++;
}
}
else if (iParam1 == 14)
{
func_126(iParam0, Global_71017[1 /*14*/].f_12, Global_71017[1 /*14*/].f_3, Global_71017[1 /*14*/].f_4);
func_141(iParam1);
if (Global_71015 == 1)
{
iVar2 = 0;
while (iVar2 < 15)
{
iVar3 = func_118(iParam0, iVar10, iParam1, iParam2, iVar2, 0);
if (iVar3 != -99)
{
func_110(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
iVar2++;
}
}
}
else
{
if (iParam4 == -1)
{
unk_0x72A0FF8C49CFFC0D(iParam0, func_147(iParam1), Global_71017[1 /*14*/].f_3, Global_71017[1 /*14*/].f_4, unk_0xA4B664E8E0A26C23(iParam0, func_147(iParam1)));
}
else
{
unk_0x72A0FF8C49CFFC0D(iParam0, func_147(iParam1), Global_71017[1 /*14*/].f_3, Global_71017[1 /*14*/].f_4, iParam4);
}
if (Global_71015 == 1)
{
iVar2 = 0;
while (iVar2 < 15)
{
iVar3 = func_118(iParam0, iVar10, iParam1, iParam2, iVar2, 0);
if (iVar3 != -99)
{
func_110(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
iVar2++;
}
}
if (iParam6 == 0)
{
func_111(iVar10, iParam1, iParam2);
}
}
if (Global_71015 == 1)
{
if (func_146(iParam0, iVar10, &iVar4, 0))
{
func_110(iParam0, 2, iVar4, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
if (func_108(iParam0, iVar10, &iVar4))
{
func_110(iParam0, 1, iVar4, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
}
Global_71015 = (Global_71015 - 1);
return 1;
}
void func_111(int iParam0, int iParam1, int iParam2)
{
int iVar0;
int iVar1;
if (iParam0 == joaat("player_zero"))
{
iVar0 = 5;
}
else if (iParam0 == joaat("player_one"))
{
iVar0 = 2;
}
else if (iParam0 == joaat("player_two"))
{
iVar0 = 4;
}
if (func_113(iParam0, 12, iVar0))
{
if (func_112(iParam0, iParam1, iParam2))
{
iVar1 = func_109(iParam0);
if (iParam1 == 3)
{
Global_106070.f_2355.f_539.f_196[iVar1] = iParam2;
}
else if (iParam1 == 4)
{
Global_106070.f_2355.f_539.f_200[iVar1] = iParam2;
}
}
}
}
int func_112(int iParam0, int iParam1, int iParam2)
{
if (iParam0 == joaat("player_zero"))
{
if (iParam1 == 4)
{
if (iParam2 >= 47 && iParam2 <= 54)
{
return 1;
}
}
else if (iParam1 == 3)
{
if (iParam2 >= 77 && iParam2 <= 84)
{
return 1;
}
}
}
else if (iParam0 == joaat("player_one"))
{
if (iParam1 == 4)
{
if (iParam2 >= 14 && iParam2 <= 21)
{
return 1;
}
}
else if (iParam1 == 3)
{
if (iParam2 >= 41 && iParam2 <= 56)
{
return 1;
}
}
}
else if (iParam0 == joaat("player_two"))
{
if (iParam1 == 4)
{
if (iParam2 >= 18 && iParam2 <= 29)
{
return 1;
}
}
else if (iParam1 == 3)
{
if (iParam2 >= 54 && iParam2 <= 69)
{
return 1;
}
}
}
return 0;
}
bool func_113(int iParam0, int iParam1, int iParam2)
{
Global_71017[1 /*14*/] = { func_155(iParam0, iParam1, iParam2, -1) };
return unk_0x05EFB6A616B6FADE(Global_71017[1 /*14*/].f_6, 2);
}
int func_114(int iParam0, int iParam1, int iParam2, int iParam3, var uParam4, var uParam5)
{
var uVar0;
int iVar1;
if ((*uParam4)[iParam2] == iParam3)
{
return 1;
}
if (((*uParam4)[iParam2] == -99 && iParam2 != 14) && iParam2 != 13)
{
return 1;
}
if (iParam2 == 13 || (iParam2 == 14 && (*uParam4)[13] == 31))
{
if ((((((((iParam3 == 0 || iParam3 == 1) || iParam3 == 2) || iParam3 == 3) || iParam3 == 4) || iParam3 == 5) || iParam3 == 6) || iParam3 == 7) || iParam3 == 8)
{
return 1;
}
}
if (iParam3 == -99 || uParam5->f_1 == -1)
{
return 1;
}
if (iParam2 == 14)
{
uVar0 = { func_148(iParam0, (*uParam4)[13]) };
iVar1 = 0;
while (iVar1 <= 8)
{
if (uVar0[iVar1] == iParam3)
{
return 1;
}
iVar1++;
}
}
if (func_115(iParam0, iParam2, iParam3))
{
return 1;
}
if (iParam0 == joaat("player_zero"))
{
if (func_137(iParam0, iParam2, iParam3, -1))
{
if ((((((iParam1 == 1 || iParam1 == 2) || iParam1 == 10) || iParam1 == 11) || iParam1 == 12) || iParam1 == 18) || iParam1 == 50)
{
return 0;
}
return 1;
}
else if (func_136(iParam0, iParam2, iParam3, -1))
{
if (((((((((iParam1 == 1 || iParam1 == 2) || iParam1 == 4) || iParam1 == 5) || iParam1 == 10) || iParam1 == 11) || iParam1 == 12) || iParam1 == 14) || iParam1 == 18) || iParam1 == 50)
{
return 0;
}
if (iParam2 == 8)
{
if ((*uParam4)[8] != 0)
{
return 0;
}
}
else if (iParam2 == 9)
{
if ((*uParam4)[9] != 0)
{
return 0;
}
}
return 1;
}
else if (func_135(iParam0, iParam2, iParam3, -1))
{
if (((((((((iParam1 == 1 || iParam1 == 2) || iParam1 == 4) || iParam1 == 5) || iParam1 == 10) || iParam1 == 11) || iParam1 == 12) || iParam1 == 14) || iParam1 == 18) || iParam1 == 50)
{
return 0;
}
return 1;
}
}
else if (iParam0 == joaat("player_one"))
{
if (func_137(iParam0, iParam2, iParam3, -1))
{
if ((iParam1 == 3 || iParam1 == 5) || iParam1 == 7)
{
return 0;
}
return 1;
}
else if (func_136(iParam0, iParam2, iParam3, -1))
{
if ((((iParam1 == 3 || iParam1 == 5) || iParam1 == 7) || iParam1 == 8) || iParam1 == 21)
{
if (iParam2 == 8)
{
if (iParam3 == 9)
{
if (iParam1 == 8 || iParam1 == 21)
{
return 1;
}
}
else
{
return 0;
}
}
else
{
return 0;
}
}
if (iParam2 == 8)
{
if ((*uParam4)[8] != 26)
{
return 0;
}
}
else if (iParam2 == 9)
{
if ((*uParam4)[9] != 0)
{
return 0;
}
if (((iParam1 == 43 || iParam1 == 44) || iParam1 == 45) || iParam1 == 46)
{
if (iParam3 >= 5 && iParam3 <= 10)
{
return 0;
}
}
}
else if (iParam2 == 14)
{
if (((iParam1 == 43 || iParam1 == 44) || iParam1 == 45) || iParam1 == 46)
{
if (iParam3 >= 26 && iParam3 <= 39)
{
return 0;
}
}
}
return 1;
}
else if (func_135(iParam0, iParam2, iParam3, -1))
{
if (((((iParam1 == 3 || iParam1 == 3) || iParam1 == 5) || iParam1 == 7) || iParam1 == 8) || iParam1 == 21)
{
return 0;
}
return 1;
}
else if (iParam2 == 14)
{
if (iParam3 >= 159 && iParam3 <= 174)
{
return 1;
}
}
}
else if (iParam0 == joaat("player_two"))
{
if (iParam1 == 2)
{
if (iParam2 == 14 && iParam3 == 0)
{
return 1;
}
}
if (func_137(iParam0, iParam2, iParam3, -1))
{
if (((((iParam1 == 1 || iParam1 == 2) || iParam1 == 6) || iParam1 == 8) || iParam1 == 45) || iParam1 == 12)
{
return 0;
}
return 1;
}
else if (func_136(iParam0, iParam2, iParam3, -1))
{
if (((((((iParam1 == 1 || iParam1 == 2) || iParam1 == 3) || iParam1 == 6) || iParam1 == 8) || iParam1 == 11) || iParam1 == 45) || iParam1 == 12)
{
return 0;
}
if (iParam2 == 8)
{
if ((*uParam4)[8] != 15)
{
return 0;
}
}
else if (iParam2 == 9)
{
if ((*uParam4)[9] != 0)
{
return 0;
}
}
return 1;
}
else if (func_135(iParam0, iParam2, iParam3, -1))
{
if ((((((iParam1 == 1 || iParam1 == 2) || iParam1 == 3) || iParam1 == 6) || iParam1 == 8) || iParam1 == 11) || iParam1 == 12)
{
return 0;
}
return 1;
}
}
return 0;
}
int func_115(int iParam0, int iParam1, int iParam2)
{
switch (iParam0)
{
case joaat("player_zero"):
switch (iParam1)
{
case 8:
if (iParam2 == 15)
{
return 1;
}
break;
case 9:
if (iParam2 == 6)
{
return 1;
}
break;
}
break;
case joaat("player_one"):
switch (iParam1)
{
case 8:
if (iParam2 == 1 || iParam2 == 10)
{
return 1;
}
break;
}
break;
case joaat("player_two"):
switch (iParam1)
{
case 8:
if (iParam2 == 4)
{
return 1;
}
break;
}
break;
}
return 0;
}
int func_116(int iParam0, int iParam1, int iParam2)
{
int iVar0;
int iVar1;
if (!unk_0x4915F4759304D5CF(iParam0))
{
if (iParam1 == 12)
{
iVar0 = 0;
while (iVar0 <= 53)
{
if (func_219(iParam0, iParam1, iVar0))
{
return iVar0;
}
iVar0++;
}
}
else if (iParam1 == 13)
{
iVar1 = 0;
while (iVar1 <= 19)
{
if (func_219(iParam0, iParam1, iVar1))
{
return iVar1;
}
iVar1++;
}
return 31;
}
else if (iParam1 == 14)
{
if (iParam2 == -1)
{
}
else
{
return func_138(iParam0, iParam2);
}
}
else
{
return func_139(iParam0, iParam1);
}
}
return -99;
}
int func_117(int iParam0, int iParam1, int iParam2, int iParam3)
{
int iVar0;
*iParam3 = -99;
switch (iParam0)
{
case joaat("player_zero"):
switch (iParam1)
{
case 8:
if (iParam2 == 7 || iParam2 == 23)
{
*iParam3 = 1;
}
break;
case 9:
if (iParam2 == 8 || (iParam2 >= 9 && iParam2 <= 14))
{
*iParam3 = 1;
}
break;
case 10:
if (iParam2 >= 44 && iParam2 <= 47)
{
*iParam3 = 1;
}
break;
case 14:
if ((((((iParam2 >= 31 && iParam2 <= 32) || (iParam2 >= 33 && iParam2 <= 34)) || (iParam2 >= 35 && iParam2 <= 36)) || iParam2 == 37) || (iParam2 >= 40 && iParam2 <= 41)) || iParam2 == 46)
{
*iParam3 = 1;
}
break;
}
break;
case joaat("player_one"):
switch (iParam1)
{
case 2:
if (iParam2 == 20)
{
*iParam3 = 20;
}
break;
case 8:
if (iParam2 == 4)
{
*iParam3 = 19;
}
break;
case 9:
if (iParam2 >= 5 && iParam2 <= 10)
{
*iParam3 = 19;
}
break;
case 10:
if (iParam2 >= 47 && iParam2 <= 50)
{
*iParam3 = 19;
}
break;
case 14:
if (((((iParam2 >= 26 && iParam2 <= 27) || (iParam2 >= 28 && iParam2 <= 29)) || (iParam2 >= 30 && iParam2 <= 31)) || iParam2 == 32) || (iParam2 >= 35 && iParam2 <= 36))
{
*iParam3 = 19;
}
break;
}
break;
case joaat("player_two"):
switch (iParam1)
{
case 8:
if (iParam2 == 7)
{
*iParam3 = 2;
}
break;
case 9:
if ((iParam2 >= 9 && iParam2 <= 14) || (iParam2 >= 15 && iParam2 <= 16))
{
*iParam3 = 2;
}
break;
case 10:
if (iParam2 >= 29 && iParam2 <= 32)
{
*iParam3 = 2;
}
break;
case 14:
if ((((((iParam2 >= 47 && iParam2 <= 48) || (iParam2 >= 49 && iParam2 <= 50)) || (iParam2 >= 51 && iParam2 <= 52)) || iParam2 == 53) || (iParam2 >= 56 && iParam2 <= 57)) || iParam2 == 62)
{
*iParam3 = 2;
}
break;
}
break;
}
if (*iParam3 != -99)
{
iVar0 = func_109(iParam0);
Global_106070.f_2355.f_539[iVar0 /*65*/].f_60 = iParam2;
Global_106070.f_2355.f_539[iVar0 /*65*/].f_61 = iParam1;
return 1;
}
return 0;
}
int func_118(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
int iVar9;
iVar0 = -99;
if (iParam4 == 0)
{
switch (iParam2)
{
case 2:
iVar1 = func_139(iParam0, 1);
iVar0 = func_125(iParam1, iParam3, iVar1);
break;
case 1:
iVar2 = func_139(iParam0, 2);
iVar0 = func_125(iParam1, iVar2, iParam3);
break;
}
}
else if (iParam4 == 2)
{
func_117(iParam1, iParam2, iParam3, &iVar0);
}
else if (iParam4 == 1)
{
func_124(iParam1, iParam2, iParam3, &iVar0);
}
else if (iParam4 == 6)
{
if (iParam2 == 4)
{
if (func_123(iParam1, iParam3, &iVar0))
{
}
}
}
else
{
switch (iParam1)
{
case joaat("player_zero"):
switch (iParam4)
{
case 3:
switch (iParam2)
{
case 10:
switch (iParam3)
{
case 36:
iVar0 = 17;
break;
case 37:
iVar0 = 17;
break;
case 38:
iVar0 = 18;
break;
case 39:
iVar0 = 18;
break;
case 40:
iVar0 = 19;
break;
case 41:
iVar0 = 19;
break;
case 42:
iVar0 = 20;
break;
case 43:
iVar0 = 20;
break;
}
break;
case 11:
if (iParam3 >= 2 && iParam3 <= 7)
{
if (!func_122(iParam0, 3, 44, 59))
{
iVar0 = 44;
}
}
else if (((iParam3 >= 8 && iParam3 <= 17) || (iParam3 >= 18 && iParam3 <= 27)) || (iParam3 >= 28 && iParam3 <= 43))
{
if (!func_122(iParam0, 3, 135, 150))
{
iVar0 = func_121(iParam1, 3, 135, 150);
}
}
break;
}
break;
case 10:
switch (iParam2)
{
case 3:
switch (iParam3)
{
case 63:
iVar0 = 4;
break;
case 61:
iVar0 = 3;
break;
case 16:
iVar0 = 1;
break;
case 114:
iVar0 = 15;
break;
case 115:
iVar0 = 17;
break;
case 116:
iVar0 = 16;
break;
case 117:
iVar0 = 18;
break;
case 118:
iVar0 = 20;
break;
case 119:
iVar0 = 19;
break;
case 125:
iVar0 = 21;
break;
case 120:
iVar0 = 22;
break;
case 124:
iVar0 = 23;
break;
case 126:
iVar0 = 24;
break;
case 121:
iVar0 = 25;
break;
case 127:
iVar0 = 26;
break;
case 128:
iVar0 = 27;
break;
case 85:
iVar0 = 6;
break;
case 77:
iVar0 = 7;
break;
case 78:
iVar0 = 8;
break;
case 79:
iVar0 = 9;
break;
case 80:
iVar0 = 10;
break;
case 81:
iVar0 = 11;
break;
case 82:
iVar0 = 12;
break;
case 83:
iVar0 = 13;
break;
case 84:
iVar0 = 14;
break;
case 21:
iVar0 = 31;
break;
case 22:
iVar0 = 30;
break;
case 23:
iVar0 = 29;
break;
case 24:
iVar0 = 28;
break;
case 25:
iVar0 = 33;
break;
case 26:
iVar0 = 35;
break;
case 27:
iVar0 = 34;
break;
case 28:
iVar0 = 32;
break;
default:
if (iParam3 >= 17 && iParam3 <= 20)
{
}
else
{
iVar0 = 0;
}
break;
}
break;
case 11:
if (iParam3 != 0)
{
iVar0 = 0;
}
break;
}
break;
case 11:
if (iParam2 == 3)
{
if ((iParam3 >= 44 && iParam3 <= 59) || (iParam3 >= 135 && iParam3 <= 150))
{
}
else
{
iVar0 = 0;
}
}
else if (iParam2 == 10)
{
if (iParam3 >= 36 && iParam3 <= 43)
{
iVar0 = 0;
}
}
break;
}
break;
case joaat("player_one"):
switch (iParam4)
{
case 10:
switch (iParam2)
{
case 3:
switch (iParam3)
{
case 17:
iVar0 = 2;
break;
case 90:
iVar0 = 1;
break;
case 268:
iVar0 = 3;
break;
case 269:
iVar0 = 5;
break;
case 270:
iVar0 = 4;
break;
case 271:
iVar0 = 6;
break;
case 272:
iVar0 = 8;
break;
case 273:
iVar0 = 7;
break;
case 279:
iVar0 = 9;
break;
case 274:
iVar0 = 10;
break;
case 278:
iVar0 = 11;
break;
case 280:
iVar0 = 12;
break;
case 275:
iVar0 = 13;
break;
case 281:
iVar0 = 14;
break;
case 282:
iVar0 = 15;
break;
case 107:
iVar0 = 16;
break;
case 108:
iVar0 = 17;
break;
case 109:
iVar0 = 18;
break;
case 110:
iVar0 = 19;
break;
case 111:
iVar0 = 20;
break;
case 112:
iVar0 = 21;
break;
case 113:
iVar0 = 22;
break;
case 114:
iVar0 = 23;
break;
case 115:
iVar0 = 24;
break;
case 116:
iVar0 = 25;
break;
case 117:
iVar0 = 52;
break;
case 118:
iVar0 = 27;
break;
case 119:
iVar0 = 28;
break;
case 120:
iVar0 = 29;
break;
case 121:
iVar0 = 30;
break;
case 122:
iVar0 = 31;
break;
case 296:
iVar0 = 32;
break;
case 297:
iVar0 = 33;
break;
case 298:
iVar0 = 34;
break;
case 299:
iVar0 = 35;
break;
case 300:
iVar0 = 36;
break;
case 301:
iVar0 = 37;
break;
case 302:
iVar0 = 38;
break;
case 309:
iVar0 = 39;
break;
case 310:
iVar0 = 40;
break;
case 311:
iVar0 = 41;
break;
case 312:
iVar0 = 42;
break;
case 313:
iVar0 = 43;
break;
case 314:
iVar0 = 44;
break;
case 315:
iVar0 = 45;
break;
case 316:
iVar0 = 46;
break;
case 317:
iVar0 = 51;
break;
default:
iVar0 = 0;
break;
}
break;
case 11:
if (iParam3 != 0)
{
iVar0 = 0;
}
break;
}
break;
case 3:
switch (iParam2)
{
case 11:
if (iParam3 >= 47 && iParam3 <= 62)
{
if (!func_122(iParam0, 3, 209, 222))
{
iVar0 = func_121(iParam1, 3, 209, 222);
}
}
else if ((iParam3 >= 1 && iParam3 <= 4) || (iParam3 >= 5 && iParam3 <= 8))
{
if (!func_122(iParam0, 3, 243, 258))
{
if (iParam3 == 1 || iParam3 == 5)
{
iVar0 = func_121(iParam1, 3, 243, 246);
}
else if (iParam3 == 2 || iParam3 == 6)
{
iVar0 = func_121(iParam1, 3, 247, 250);
}
else if (iParam3 == 3 || iParam3 == 7)
{
iVar0 = func_121(iParam1, 3, 251, 254);
}
else if (iParam3 == 4 || iParam3 == 8)
{
iVar0 = func_121(iParam1, 3, 255, 258);
}
}
}
else if (iParam3 == 41 || iParam3 == 42)
{
if (!func_122(iParam0, 3, 176, 191) && !func_122(iParam0, 3, 227, 242))
{
iVar0 = func_121(iParam1, 3, 176, 191);
}
}
break;
}
break;
case 8:
if (iParam2 == 11 || iParam2 == 3)
{
if (iParam2 == 11)
{
iVar5 = iParam3;
iVar4 = func_139(iParam0, 3);
}
else if (iParam2 == 3)
{
iVar4 = iParam3;
iVar5 = func_139(iParam0, 11);
iVar5 = func_120(iParam1, iVar4, iVar5, 0);
}
iVar3 = func_139(iParam0, 8);
if (((iVar5 >= 5 && iVar5 <= 8) || (iVar5 >= 25 && iVar5 <= 40)) || (iVar5 >= 42 && iVar5 <= 43))
{
if (!func_119(joaat("player_one"), iVar3, iVar5, iVar4, &iVar6))
{
if (iVar6 != -99)
{
iVar0 = iVar6;
}
}
}
else if (((iVar3 >= 27 && iVar3 <= 42) || (iVar3 >= 43 && iVar3 <= 58)) || (iVar3 >= 59 && iVar3 <= 74))
{
iVar0 = 26;
}
}
break;
case 11:
if (iParam2 == 3)
{
if (iParam3 >= 209 && iParam3 <= 222)
{
}
else if (((iParam3 >= 176 && iParam3 <= 191) || (iParam3 >= 227 && iParam3 <= 242)) || (iParam3 >= 243 && iParam3 <= 258))
{
iVar7 = func_139(iParam0, 8);
iVar8 = func_139(iParam0, 11);
if (((iVar7 >= 27 && iVar7 <= 42) || (iVar7 >= 43 && iVar7 <= 58)) || (iVar7 >= 59 && iVar7 <= 74))
{
iVar0 = func_120(iParam1, iParam3, iVar8, 0);
}
else
{
iVar0 = func_120(iParam1, iParam3, iVar8, 1);
}
}
else if (iParam3 >= 41 && iParam3 <= 56)
{
iVar0 = 45;
}
else if (iParam3 >= 223 && iParam3 <= 226)
{
iVar0 = 44;
}
else
{
iVar0 = 0;
}
}
else if (iParam2 == 8)
{
if (((iParam3 >= 27 && iParam3 <= 42) || (iParam3 >= 43 && iParam3 <= 58)) || (iParam3 >= 59 && iParam3 <= 74))
{
iVar9 = func_139(iParam0, 11);
iVar0 = func_120(iParam1, -99, iVar9, 0);
}
}
break;
}
break;
case joaat("player_two"):
switch (iParam4)
{
case 10:
switch (iParam2)
{
case 3:
switch (iParam3)
{
case 50:
iVar0 = 3;
break;
case 81:
iVar0 = 5;
break;
case 82:
iVar0 = 6;
break;
case 83:
iVar0 = 7;
break;
case 84:
iVar0 = 10;
break;
case 85:
iVar0 = 9;
break;
case 86:
iVar0 = 8;
break;
case 92:
iVar0 = 22;
break;
case 87:
iVar0 = 23;
break;
case 91:
iVar0 = 24;
break;
case 93:
iVar0 = 25;
break;
case 88:
iVar0 = 26;
break;
case 94:
iVar0 = 27;
break;
case 120:
iVar0 = 11;
break;
case 121:
iVar0 = 13;
break;
case 122:
iVar0 = 14;
break;
case 124:
iVar0 = 12;
break;
case 126:
iVar0 = 18;
break;
case 128:
iVar0 = 17;
break;
case 130:
iVar0 = 19;
break;
case 131:
iVar0 = 16;
break;
case 134:
iVar0 = 15;
break;
case 135:
iVar0 = 20;
break;
default:
iVar0 = 0;
break;
}
break;
}
break;
}
break;
}
}
return iVar0;
}
int func_119(int iParam0, int iParam1, int iParam2, int iParam3, var uParam4)
{
int iVar0;
switch (iParam0)
{
case joaat("player_zero"):
break;
case joaat("player_one"):
*uParam4 = 0;
if (iParam1 >= 27 && iParam1 <= 42)
{
if (iParam2 != -99)
{
if ((iParam2 >= 5 && iParam2 <= 8) || (iParam2 >= 25 && iParam2 <= 40))
{
}
else
{
if (iParam2 >= 42 && iParam2 <= 43)
{
if (iParam3 >= 176 && iParam3 <= 191)
{
iVar0 = (iParam1 - 27);
*uParam4 = (59 + iVar0);
}
else if (iParam3 >= 227 && iParam3 <= 242)
{
iVar0 = (iParam1 - 27);
*uParam4 = (43 + iVar0);
}
}
return 0;
}
}
if (iParam3 != -99)
{
if (((iParam3 >= 227 && iParam3 <= 242) || (iParam3 >= 176 && iParam3 <= 191)) || (iParam3 >= 243 && iParam3 <= 258))
{
}
else
{
return 0;
}
}
}
else if (iParam1 >= 43 && iParam1 <= 58)
{
if (iParam2 != -99)
{
if (iParam2 >= 42 && iParam2 <= 43)
{
}
else
{
if ((iParam2 >= 5 && iParam2 <= 8) || (iParam2 >= 25 && iParam2 <= 40))
{
iVar0 = (iParam1 - 43);
*uParam4 = (27 + iVar0);
}
return 0;
}
}
if (iParam3 != -99)
{
if (iParam3 >= 227 && iParam3 <= 242)
{
}
else
{
if (iParam3 >= 176 && iParam3 <= 191)
{
if (iParam2 >= 42 && iParam2 <= 43)
{
iVar0 = (iParam1 - 43);
*uParam4 = (59 + iVar0);
}
}
return 0;
}
}
}
else if (iParam1 >= 59 && iParam1 <= 74)
{
if (iParam2 != -99)
{
if (iParam2 >= 42 && iParam2 <= 43)
{
}
else
{
if ((iParam2 >= 5 && iParam2 <= 8) || (iParam2 >= 25 && iParam2 <= 40))
{
iVar0 = (iParam1 - 59);
*uParam4 = (27 + iVar0);
}
return 0;
}
}
if (iParam3 != -99)
{
if (iParam3 >= 176 && iParam3 <= 191)
{
}
else
{
if (iParam3 >= 227 && iParam3 <= 242)
{
if (iParam2 >= 42 && iParam2 <= 43)
{
iVar0 = (iParam1 - 59);
*uParam4 = (43 + iVar0);
}
}
else if ((iParam2 >= 5 && iParam2 <= 8) || (iParam2 >= 25 && iParam2 <= 40))
{
iVar0 = (iParam1 - 59);
*uParam4 = (27 + iVar0);
}
return 0;
}
}
}
break;
case joaat("player_two"):
if (iParam1 == 12)
{
if (iParam3 != 241)
{
return 0;
}
}
break;
}
return 1;
}
int func_120(int iParam0, int iParam1, int iParam2, int iParam3)
{
int iVar0;
if (iParam1 >= 243 && iParam1 <= 246)
{
if (iParam3 == 1)
{
return 1;
}
else
{
return 5;
}
}
else if (iParam1 >= 247 && iParam1 <= 250)
{
if (iParam3 == 1)
{
return 2;
}
else
{
return 6;
}
}
else if (iParam1 >= 251 && iParam1 <= 254)
{
if (iParam3 == 1)
{
return 3;
}
else
{
return 7;
}
}
else if (iParam1 >= 255 && iParam1 <= 258)
{
if (iParam3 == 1)
{
return 4;
}
else
{
return 8;
}
}
else if (iParam1 >= 255 && iParam1 <= 258)
{
if (iParam3 == 1)
{
return 4;
}
else
{
return 8;
}
}
else if ((iParam1 >= 176 && iParam1 <= 191) || (iParam1 >= 227 && iParam1 <= 242))
{
if (iParam2 >= 9 && iParam2 <= 24)
{
if (iParam3 == 1)
{
return iParam2;
}
else
{
iVar0 = (iParam2 - 9);
iParam2 = (25 + iVar0);
return iParam2;
}
}
else if (iParam2 >= 25 && iParam2 <= 40)
{
if (iParam3 == 1)
{
iVar0 = (iParam2 - 25);
iParam2 = (9 + iVar0);
return iParam2;
}
else
{
return iParam2;
}
}
else if (iParam2 == 41 || iParam2 == 42)
{
if (iParam3 == 1)
{
return 41;
}
else
{
return 42;
}
}
else
{
if (iParam3 == 1)
{
iParam2 = func_121(iParam0, 11, 9, 24);
}
else
{
iParam2 = func_121(iParam0, 11, 25, 40);
}
if (iParam2 == -99)
{
if (iParam3 == 1)
{
return 41;
}
else
{
return 42;
}
}
else
{
return iParam2;
}
}
}
else if (iParam2 >= 1 && iParam2 <= 4)
{
if (iParam3 == 1)
{
return iParam2;
}
else
{
iVar0 = (iParam2 - 1);
iParam2 = (5 + iVar0);
return iParam2;
}
}
else if (iParam2 >= 5 && iParam2 <= 8)
{
if (iParam3 == 1)
{
iVar0 = (iParam2 - 5);
iParam2 = (1 + iVar0);
return iParam2;
}
else
{
return iParam2;
}
}
else if (iParam2 >= 9 && iParam2 <= 24)
{
if (iParam3 == 1)
{
return iParam2;
}
else
{
iVar0 = (iParam2 - 9);
iParam2 = (25 + iVar0);
return iParam2;
}
}
else if (iParam2 >= 25 && iParam2 <= 40)
{
if (iParam3 == 1)
{
iVar0 = (iParam2 - 25);
iParam2 = (9 + iVar0);
return iParam2;
}
else
{
return iParam2;
}
}
else if (iParam2 == 41 || iParam2 == 42)
{
if (iParam3 == 1)
{
return 41;
}
else
{
return 42;
}
}
return -99;
}
int func_121(int iParam0, int iParam1, int iParam2, int iParam3)
{
int iVar0;
int iVar1;
iVar0 = iParam2;
while (iVar0 <= (iParam3 - 1))
{
iVar1 = iVar0;
if (func_113(iParam0, iParam1, iVar1))
{
return iVar1;
}
iVar0++;
}
return -99;
}
int func_122(int iParam0, int iParam1, int iParam2, int iParam3)
{
int iVar0;
iVar0 = func_139(iParam0, iParam1);
if (iVar0 >= iParam2 && iVar0 <= iParam3)
{
return 1;
}
return 0;
}
int func_123(int iParam0, int iParam1, int iParam2)
{
*iParam2 = -99;
switch (iParam0)
{
case joaat("player_zero"):
if ((((((((((((((((((iParam1 == 16 || iParam1 == 17) || iParam1 == 21) || iParam1 == 22) || iParam1 == 32) || (iParam1 >= 34 && iParam1 <= 39)) || (iParam1 >= 41 && iParam1 <= 45)) || iParam1 == 46) || (iParam1 >= 47 && iParam1 <= 54)) || (iParam1 >= 55 && iParam1 <= 70)) || (iParam1 >= 72 && iParam1 <= 79)) || iParam1 == 80) || (iParam1 >= 81 && iParam1 <= 83)) || (iParam1 >= 84 && iParam1 <= 87)) || iParam1 == 88) || (iParam1 >= 89 && iParam1 <= 91)) || iParam1 == 95) || (iParam1 >= 96 && iParam1 <= 111)) || iParam1 == 112)
{
*iParam2 = 6;
return 1;
}
break;
case joaat("player_one"):
if ((((((iParam1 == 12 || (iParam1 >= 14 && iParam1 <= 21)) || iParam1 == 32) || iParam1 == 52) || (iParam1 >= 69 && iParam1 <= 70)) || iParam1 == 71) || (iParam1 >= 72 && iParam1 <= 77))
{
*iParam2 = 17;
return 1;
}
break;
case joaat("player_two"):
if (((((((((((((((iParam1 == 4 || iParam1 == 5) || iParam1 == 6) || iParam1 == 7) || iParam1 == 14) || (iParam1 >= 18 && iParam1 <= 29)) || iParam1 == 31) || iParam1 == 32) || iParam1 == 33) || iParam1 == 34) || (iParam1 >= 35 && iParam1 <= 42)) || (iParam1 >= 43 && iParam1 <= 53)) || (iParam1 >= 54 && iParam1 <= 61)) || (iParam1 >= 71 && iParam1 <= 80)) || (iParam1 >= 81 && iParam1 <= 90)) || (iParam1 >= 94 && iParam1 <= 103))
{
*iParam2 = 8;
return 1;
}
break;
}
return 0;
}
int func_124(int iParam0, int iParam1, int iParam2, int iParam3)
{
int iVar0;
*iParam3 = -99;
switch (iParam0)
{
case joaat("player_zero"):
switch (iParam1)
{
case 10:
if (iParam2 >= 44 && iParam2 <= 47)
{
*iParam3 = 0;
}
break;
case 14:
if (((((((iParam2 >= 31 && iParam2 <= 32) || (iParam2 >= 33 && iParam2 <= 34)) || (iParam2 >= 35 && iParam2 <= 36)) || iParam2 == 37) || (iParam2 >= 38 && iParam2 <= 39)) || (iParam2 >= 40 && iParam2 <= 41)) || (iParam2 >= 42 && iParam2 <= 44))
{
*iParam3 = 0;
}
break;
}
break;
case joaat("player_one"):
switch (iParam1)
{
case 10:
if (iParam2 >= 47 && iParam2 <= 50)
{
*iParam3 = 0;
}
break;
case 14:
if (((((iParam2 >= 26 && iParam2 <= 27) || (iParam2 >= 28 && iParam2 <= 29)) || (iParam2 >= 30 && iParam2 <= 31)) || iParam2 == 32) || (iParam2 >= 35 && iParam2 <= 36))
{
*iParam3 = 0;
}
break;
}
break;
case joaat("player_two"):
switch (iParam1)
{
case 9:
if (iParam2 >= 15 && iParam2 <= 16)
{
*iParam3 = 0;
}
break;
case 10:
if (iParam2 >= 29 && iParam2 <= 32)
{
*iParam3 = 0;
}
break;
case 14:
if (((((((iParam2 >= 47 && iParam2 <= 48) || (iParam2 >= 49 && iParam2 <= 50)) || (iParam2 >= 51 && iParam2 <= 52)) || iParam2 == 53) || (iParam2 >= 54 && iParam2 <= 55)) || (iParam2 >= 56 && iParam2 <= 57)) || (iParam2 >= 58 && iParam2 <= 60))
{
*iParam3 = 0;
}
break;
}
break;
}
if (*iParam3 != -99)
{
iVar0 = func_109(iParam0);
Global_106070.f_2355.f_539[iVar0 /*65*/].f_63 = iParam2;
Global_106070.f_2355.f_539[iVar0 /*65*/].f_64 = iParam1;
return 1;
}
return 0;
}
int func_125(int iParam0, int iParam1, int iParam2)
{
switch (iParam0)
{
case joaat("player_zero"):
if (iParam1 == 1)
{
if (iParam2 == 0)
{
return 1;
}
else if (iParam2 == 4)
{
return 5;
}
else
{
return 3;
}
}
else if (iParam2 == 0)
{
return 0;
}
else if (iParam2 == 4)
{
return 4;
}
else
{
return 2;
}
break;
case joaat("player_one"):
if (iParam1 >= 0 && iParam1 <= 15)
{
if (iParam2 == 0)
{
return 0;
}
else
{
return 3;
}
}
else if (iParam1 >= 16 && iParam1 <= 17)
{
if (iParam2 == 0)
{
return 2;
}
else
{
return 5;
}
}
else if (iParam1 == 18)
{
if (iParam2 == 0)
{
return 6;
}
else
{
return 7;
}
}
else if (iParam1 == 19)
{
if (iParam2 == 0)
{
return 1;
}
else
{
return 4;
}
}
else if (iParam2 == 0)
{
return 1;
}
else
{
return 4;
}
break;
case joaat("player_two"):
if (iParam1 == 2)
{
if (iParam2 == 0)
{
return 2;
}
else
{
return 3;
}
}
else if (iParam1 == 3)
{
if (iParam2 == 0)
{
return 4;
}
else
{
return 6;
}
}
else if (iParam1 == 8)
{
return 5;
}
else if (iParam2 == 0)
{
return 0;
}
else
{
return 1;
}
break;
}
return -99;
}
void func_126(int iParam0, int iParam1, int iParam2, int iParam3)
{
int iVar0;
if (iParam2 == -1)
{
unk_0x8757CF4763C139B6(iParam0, iParam1);
if (iParam1 == 0)
{
unk_0x13E0A8160525AE55(iParam0, 34, false);
unk_0x13E0A8160525AE55(iParam0, 36, false);
}
}
else
{
unk_0x73774776D23F43BA(iParam0, iParam1, iParam2, iParam3, unk_0x4C9BACA8D249CB13());
if (iParam1 == 0)
{
iVar0 = func_131(iParam0, iParam2, iParam3, iParam1);
if (func_127(unk_0x8F474E419F56E48D(iParam0), 14, iVar0, unk_0xEF84BAF28F219386(iParam0, 0, iParam2, iParam3)))
{
unk_0x13E0A8160525AE55(iParam0, 34, true);
unk_0x13E0A8160525AE55(iParam0, 36, true);
}
else
{
unk_0x13E0A8160525AE55(iParam0, 34, false);
unk_0x13E0A8160525AE55(iParam0, 36, false);
}
}
}
}
int func_127(int iParam0, int iParam1, int iParam2, int iParam3)
{
switch (iParam0)
{
case joaat("mp_m_freemode_01"):
switch (iParam1)
{
case 14:
if (iParam3 == -1)
{
iParam3 = func_128(iParam0, iParam2, 14, 3);
}
if ((iParam2 >= 131 && iParam2 <= 154) || (iParam2 >= 327 && unk_0x4BE6499482BEE1D8(iParam3, -1033433901, 1)))
{
return 1;
}
break;
}
break;
case joaat("mp_f_freemode_01"):
switch (iParam1)
{
case 14:
if (iParam3 == -1)
{
iParam3 = func_128(iParam0, iParam2, 14, 4);
}
if ((iParam2 >= 131 && iParam2 <= 154) || (iParam2 >= 327 && unk_0x4BE6499482BEE1D8(iParam3, -1033433901, 1)))
{
return 1;
}
break;
}
break;
}
return 0;
}
int func_128(int iParam0, int iParam1, int iParam2, int iParam3)
{
struct<2> Var0;
int iVar1;
int iVar2;
int iVar3;
int iVar4;
struct<2> Var5;
int iVar6;
int iVar7;
int iVar8;
int iVar9;
if (iParam2 == 12)
{
}
else if (iParam2 == 13)
{
}
else if (iParam2 == 14)
{
unk_0xF21D7CAB6815AD7E(&Var0);
iVar2 = 0;
iVar3 = (iParam1 - func_130(iParam0));
if (iVar3 < 0)
{
return -1;
}
iVar4 = unk_0x6182A22F4D99005E(iParam3, 6, -1, 1, -1, -1);
iVar1 = 0;
while (iVar1 < iVar4)
{
unk_0x1B674FE324A34577(iVar1, &Var0);
if (!unk_0x3B61940560400F58(Var0))
{
if (iVar2 == iVar3)
{
return Var0.f_1;
}
iVar2++;
}
iVar1++;
}
}
else
{
unk_0x4EC128057F5B6F27(&Var5);
iVar7 = 0;
iVar8 = (iParam1 - func_129(iParam0, func_147(iParam2)));
if (iVar8 < 0)
{
return -1;
}
if ((iParam0 == Global_71139.f_26[iParam2] && iParam1 == Global_71139[iParam2]) && Global_71139.f_13[iParam2] != 0)
{
return Global_71139.f_13[iParam2];
}
iVar9 = unk_0x6182A22F4D99005E(iParam3, 6, -1, 0, -1, func_147(iParam2));
iVar6 = 0;
while (iVar6 < iVar9)
{
unk_0xF947B64BF5B65A2E(iVar6, &Var5);
if (!unk_0x3B61940560400F58(Var5))
{
if (iVar7 == iVar8)
{
Global_71139.f_13[iParam2] = Var5.f_1;
Global_71139[iParam2] = iParam1;
Global_71139.f_26[iParam2] = iParam0;
return Var5.f_1;
}
iVar7++;
}
iVar6++;
}
}
return -1;
}
int func_129(int iParam0, int iParam1)
{
switch (iParam0)
{
case joaat("player_zero"):
switch (iParam1)
{
case 0:
return 7;
break;
case 1:
return 5;
break;
case 2:
return 6;
break;
case 3:
return 181;
break;
case 4:
return 113;
break;
case 5:
return 14;
break;
case 6:
return 99;
break;
case 7:
return 1;
break;
case 8:
return 24;
break;
case 9:
return 20;
break;
case 10:
return 48;
break;
case 11:
return 45;
break;
}
break;
case joaat("player_one"):
switch (iParam1)
{
case 0:
return 10;
break;
case 1:
return 5;
break;
case 2:
return 21;
break;
case 3:
return 318;
break;
case 4:
return 117;
break;
case 5:
return 7;
break;
case 6:
return 134;
break;
case 7:
return 1;
break;
case 8:
return 77;
break;
case 9:
return 12;
break;
case 10:
return 53;
break;
case 11:
return 63;
break;
}
break;
case joaat("player_two"):
switch (iParam1)
{
case 0:
return 7;
break;
case 1:
return 6;
break;
case 2:
return 9;
break;
case 3:
return 242;
break;
case 4:
return 104;
break;
case 5:
return 7;
break;
case 6:
return 84;
break;
case 7:
return 1;
break;
case 8:
return 18;
break;
case 9:
return 17;
break;
case 10:
return 33;
break;
case 11:
return 1;
break;
}
break;
}
switch (iParam0)
{
case joaat("mp_m_freemode_01"):
switch (iParam1)
{
case 0:
return 0;
break;
case 1:
return 26;
break;
case 2:
return 91;
break;
case 3:
return 16;
break;
case 4:
return 256;
break;
case 5:
return 9;
break;
case 6:
return 256;
break;
case 7:
return 92;
break;
case 8:
return 241;
break;
case 9:
return 46;
break;
case 10:
return 7;
break;
case 11:
return 237;
break;
}
break;
case joaat("mp_f_freemode_01"):
switch (iParam1)
{
case 0:
return 0;
break;
case 1:
return 26;
break;
case 2:
return 92;
break;
case 3:
return 16;
break;
case 4:
return 256;
break;
case 5:
return 9;
break;
case 6:
return 256;
break;
case 7:
return 55;
break;
case 8:
return 136;
break;
case 9:
return 36;
break;
case 10:
return 6;
break;
case 11:
return 256;
break;
}
break;
}
return -99;
}
int func_130(int iParam0)
{
switch (iParam0)
{
case joaat("player_zero"):
return 113;
break;
case joaat("player_one"):
return 175;
break;
case joaat("player_two"):
return 155;
break;
}
switch (iParam0)
{
case joaat("mp_m_freemode_01"):
return 327;
break;
case joaat("mp_f_freemode_01"):
return 327;
break;
}
return -99;
}
int func_131(int iParam0, int iParam1, int iParam2, int iParam3)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
if (iParam1 == -1)
{
return func_134(iParam3);
}
iVar0 = unk_0x8F474E419F56E48D(iParam0);
iVar1 = unk_0xEF84BAF28F219386(iParam0, iParam3, iParam1, iParam2);
if (iVar1 != -1 && iVar1 != 0)
{
if (iVar0 == joaat("mp_m_freemode_01"))
{
return func_133(unk_0x8F474E419F56E48D(iParam0), iVar1, 14, 3);
}
else if (iVar0 == joaat("mp_f_freemode_01"))
{
return func_133(unk_0x8F474E419F56E48D(iParam0), iVar1, 14, 4);
}
}
iVar2 = unk_0xFBE47E4C51D1D9AE(iParam0, iParam3);
iVar4 = 0;
while (iVar4 <= (iVar2 - 1))
{
iVar6 = unk_0x912FC8EEC1AA4059(iParam0, iParam3, iVar4);
if (iVar4 != iParam1)
{
iVar3 = (iVar3 + iVar6);
}
else
{
iVar5 = 0;
while (iVar5 <= (iVar6 - 1))
{
if (iVar4 == iParam1 && iVar5 == iParam2)
{
iVar3 = (iVar3 + func_132(iParam0, iParam3));
return iVar3;
}
else
{
iVar3++;
}
iVar5++;
}
}
iVar4++;
}
return func_134(iParam3);
}
int func_132(int iParam0, int iParam1)
{
int iVar0;
iVar0 = unk_0x8F474E419F56E48D(iParam0);
switch (iVar0)
{
case joaat("player_zero"):
switch (iParam1)
{
case 0:
return 10;
break;
case 1:
return 58;
break;
case 2:
return 112;
break;
}
break;
case joaat("player_one"):
switch (iParam1)
{
case 0:
return 10;
break;
case 1:
return 82;
break;
case 2:
return 158;
break;
}
break;
case joaat("player_two"):
switch (iParam1)
{
case 0:
return 10;
break;
case 1:
return 88;
break;
case 2:
return 154;
break;
}
break;
case joaat("mp_m_freemode_01"):
switch (iParam1)
{
case 0:
return 10;
break;
case 1:
return 155;
break;
case 6:
return 319;
break;
}
break;
case joaat("mp_f_freemode_01"):
switch (iParam1)
{
case 0:
return 10;
break;
case 1:
return 155;
break;
case 6:
return 319;
break;
}
break;
}
return -99;
}
int func_133(int iParam0, int iParam1, int iParam2, int iParam3)
{
struct<2> Var0;
int iVar1;
int iVar2;
int iVar3;
struct<2> Var4;
int iVar5;
int iVar6;
int iVar7;
if (iParam2 == 12)
{
}
else if (iParam2 == 13)
{
}
else if (iParam2 == 14)
{
unk_0xF21D7CAB6815AD7E(&Var0);
iVar2 = 0;
iVar3 = unk_0x6182A22F4D99005E(iParam3, 6, -1, 1, -1, -1);
iVar1 = 0;
while (iVar1 < iVar3)
{
unk_0x1B674FE324A34577(iVar1, &Var0);
if (!unk_0x3B61940560400F58(Var0))
{
if (iParam1 == Var0.f_1)
{
return (func_130(iParam0) + iVar2);
}
iVar2++;
}
iVar1++;
}
}
else
{
unk_0x4EC128057F5B6F27(&Var4);
iVar6 = 0;
iVar7 = unk_0x6182A22F4D99005E(iParam3, 6, -1, 0, -1, func_147(iParam2));
iVar5 = 0;
while (iVar5 < iVar7)
{
unk_0xF947B64BF5B65A2E(iVar5, &Var4);
if (!unk_0x3B61940560400F58(Var4))
{
if (iParam1 == Var4.f_1)
{
return (func_129(iParam0, func_147(iParam2)) + iVar6);
}
iVar6++;
}
iVar5++;
}
}
return -99;
}
int func_134(int iParam0)
{
switch (iParam0)
{
case 0:
return 0;
break;
case 1:
return 1;
break;
case 2:
return 2;
break;
case 3:
return 3;
break;
case 4:
return 4;
break;
case 5:
return 5;
break;
case 6:
return 6;
break;
case 7:
return 7;
break;
case 8:
return 8;
break;
}
return 0;
}
int func_135(int iParam0, int iParam1, int iParam2, int iParam3)
{
switch (iParam0)
{
case joaat("player_zero"):
switch (iParam1)
{
case 14:
if (iParam2 == 16)
{
return 1;
}
break;
}
break;
case joaat("player_one"):
switch (iParam1)
{
case 14:
if ((iParam2 == 40 || (iParam2 >= 41 && iParam2 <= 56)) || (iParam2 >= 64 && iParam2 <= 79))
{
return 1;
}
break;
}
break;
case joaat("player_two"):
switch (iParam1)
{
case 14:
if ((iParam2 >= 17 && iParam2 <= 18) || (iParam2 >= 71 && iParam2 <= 86))
{
return 1;
}
break;
}
break;
case joaat("mp_m_freemode_01"):
switch (iParam1)
{
case 14:
if (iParam2 >= 18 && iParam2 <= 130)
{
return 1;
}
else if (iParam2 >= 10 && iParam2 <= 17)
{
return 1;
}
else if (iParam2 >= 327)
{
if (iParam3 == -1)
{
iParam3 = func_128(iParam0, iParam2, 14, 3);
}
return (unk_0x4BE6499482BEE1D8(iParam3, -1757550583, 1) || unk_0x4BE6499482BEE1D8(func_128(iParam0, iParam2, 14, 3), -1842686353, 1));
}
break;
case 1:
if (iParam2 >= 26)
{
if (iParam3 == -1)
{
iParam3 = func_128(iParam0, iParam2, 1, 3);
}
return (unk_0x4BE6499482BEE1D8(iParam3, -1757550583, 0) || unk_0x4BE6499482BEE1D8(func_128(iParam0, iParam2, 1, 3), -1842686353, 0));
}
break;
}
break;
case joaat("mp_f_freemode_01"):
switch (iParam1)
{
case 14:
if (iParam2 >= 18 && iParam2 <= 130)
{
return 1;
}
else if (iParam2 >= 10 && iParam2 <= 17)
{
return 1;
}
else if (iParam2 >= 327)
{
if (iParam3 == -1)
{
iParam3 = func_128(iParam0, iParam2, 14, 4);
}
return (unk_0x4BE6499482BEE1D8(iParam3, -1757550583, 1) || unk_0x4BE6499482BEE1D8(func_128(iParam0, iParam2, 14, 4), -1842686353, 1));
}
break;
case 1:
if (iParam2 >= 26)
{
if (iParam3 == -1)
{
iParam3 = func_128(iParam0, iParam2, 1, 4);
}
return (unk_0x4BE6499482BEE1D8(iParam3, -1757550583, 0) || unk_0x4BE6499482BEE1D8(func_128(iParam0, iParam2, 1, 4), -1842686353, 0));
}
break;
}
break;
}
return 0;
}
int func_136(int iParam0, int iParam1, int iParam2, int iParam3)
{
if (iParam0 == joaat("player_zero"))
{
if (iParam1 == 6)
{
if (iParam2 == 10)
{
return 1;
}
}
else if (iParam1 == 8)
{
if ((iParam2 == 9 || iParam2 == 7) || iParam2 == 23)
{
return 1;
}
}
else if (iParam1 == 9)
{
if (iParam2 >= 9 && iParam2 <= 14)
{
return 1;
}
}
else if (iParam1 == 14)
{
if ((((((((((((((((iParam2 == 12 || iParam2 == 59) || iParam2 == 60) || iParam2 == 31) || iParam2 == 32) || iParam2 == 33) || iParam2 == 34) || iParam2 == 35) || iParam2 == 36) || iParam2 == 37) || iParam2 == 38) || iParam2 == 39) || iParam2 == 40) || iParam2 == 41) || (iParam2 >= 42 && iParam2 <= 44)) || iParam2 == 54) || iParam2 == 55)
{
return 1;
}
}
}
else if (iParam0 == joaat("player_one"))
{
if (iParam1 == 2)
{
if (iParam2 == 20)
{
return 1;
}
}
else if (iParam1 == 8)
{
if ((iParam2 == 3 || iParam2 == 5) || iParam2 == 9)
{
return 1;
}
}
else if (iParam1 == 9)
{
if (iParam2 >= 5 && iParam2 <= 10)
{
return 1;
}
}
else if (iParam1 == 14)
{
if (((((((((((((iParam2 == 82 || iParam2 == 10) || iParam2 == 26) || iParam2 == 27) || iParam2 == 28) || iParam2 == 29) || iParam2 == 30) || iParam2 == 31) || iParam2 == 32) || iParam2 == 33) || iParam2 == 34) || iParam2 == 35) || iParam2 == 36) || (iParam2 >= 37 && iParam2 <= 39))
{
return 1;
}
}
}
else if (iParam0 == joaat("player_two"))
{
if (iParam1 == 8)
{
if (iParam2 == 14 || iParam2 == 7)
{
return 1;
}
}
else if (iParam1 == 9)
{
if (((iParam2 == 8 || (iParam2 >= 9 && iParam2 <= 14)) || iParam2 == 15) || iParam2 == 16)
{
return 1;
}
}
else if (iParam1 == 14)
{
if (((((((((((((iParam2 == 88 || iParam2 == 12) || iParam2 == 47) || iParam2 == 48) || iParam2 == 49) || iParam2 == 50) || iParam2 == 51) || iParam2 == 52) || iParam2 == 53) || iParam2 == 54) || iParam2 == 55) || iParam2 == 56) || iParam2 == 57) || (iParam2 >= 58 && iParam2 <= 60))
{
return 1;
}
}
}
else if (iParam0 == joaat("mp_m_freemode_01"))
{
if (iParam1 == 1)
{
if (iParam2 > 0)
{
if (iParam2 >= 26)
{
if (iParam3 == -1)
{
iParam3 = func_128(iParam0, iParam2, 1, 3);
}
if (unk_0x4BE6499482BEE1D8(iParam3, -1757550583, 0) || unk_0x4BE6499482BEE1D8(iParam3, 66092876, 0))
{
return 0;
}
}
return 1;
}
}
}
else if (iParam0 == joaat("mp_f_freemode_01"))
{
if (iParam1 == 1)
{
if (iParam2 > 0)
{
if (iParam2 >= 26)
{
if (iParam3 == -1)
{
iParam3 = func_128(iParam0, iParam2, 1, 4);
}
if (unk_0x4BE6499482BEE1D8(iParam3, -1757550583, 0) || unk_0x4BE6499482BEE1D8(iParam3, 66092876, 0))
{
return 0;
}
}
return 1;
}
}
}
return 0;
}
int func_137(int iParam0, int iParam1, int iParam2, int iParam3)
{
switch (iParam0)
{
case joaat("player_zero"):
if (iParam1 == 14)
{
if ((((((((iParam2 == 58 || iParam2 == 61) || (iParam2 >= 62 && iParam2 <= 69)) || (iParam2 >= 70 && iParam2 <= 79)) || (iParam2 >= 80 && iParam2 <= 89)) || iParam2 == 90) || (iParam2 >= 91 && iParam2 <= 102)) || (iParam2 >= 103 && iParam2 <= 110)) || iParam2 == 111)
{
return 1;
}
}
break;
case joaat("player_one"):
if (iParam1 == 14)
{
if (((((((((((iParam2 >= 83 && iParam2 <= 92) || iParam2 == 93) || iParam2 == 94) || (iParam2 >= 95 && iParam2 <= 101)) || (iParam2 >= 102 && iParam2 <= 111)) || (iParam2 >= 112 && iParam2 <= 121)) || (iParam2 >= 122 && iParam2 <= 131)) || (iParam2 >= 132 && iParam2 <= 139)) || (iParam2 >= 140 && iParam2 <= 149)) || (iParam2 >= 150 && iParam2 <= 156)) || iParam2 == 157)
{
return 1;
}
}
break;
case joaat("player_two"):
if (iParam1 == 14)
{
if (((((((((iParam2 == 89 || (iParam2 >= 90 && iParam2 <= 99)) || (iParam2 >= 100 && iParam2 <= 109)) || iParam2 == 111) || iParam2 == 112) || (iParam2 >= 113 && iParam2 <= 122)) || (iParam2 >= 123 && iParam2 <= 132)) || (iParam2 >= 133 && iParam2 <= 142)) || (iParam2 >= 143 && iParam2 <= 152)) || iParam2 == 153)
{
return 1;
}
}
break;
case joaat("mp_m_freemode_01"):
if (iParam1 == 14)
{
if (iParam2 >= 155 && iParam2 <= 318)
{
return 1;
}
else if (iParam2 >= 327)
{
if (iParam3 == -1)
{
iParam3 = func_128(iParam0, iParam2, 14, 3);
}
return unk_0x4BE6499482BEE1D8(iParam3, 97230661, 1);
}
}
break;
case joaat("mp_f_freemode_01"):
if (iParam1 == 14)
{
if (iParam2 >= 155 && iParam2 <= 318)
{
return 1;
}
else if (iParam2 >= 327)
{
if (iParam3 == -1)
{
iParam3 = func_128(iParam0, iParam2, 14, 4);
}
return unk_0x4BE6499482BEE1D8(iParam3, 97230661, 1);
}
}
break;
}
return 0;
}
int func_138(int iParam0, int iParam1)
{
int iVar0;
int iVar1;
if (unk_0x4915F4759304D5CF(iParam0))
{
return -99;
}
iVar0 = unk_0xD1241BB51B6FE6DA(iParam0, iParam1);
if (iVar0 == -1)
{
return func_134(iParam1);
}
iVar1 = unk_0x2FB5EBD67ABDBF18(iParam0, iParam1);
return func_131(iParam0, iVar0, iVar1, iParam1);
}
int func_139(int iParam0, int iParam1)
{
int iVar0;
int iVar1;
int iVar2;
if (((iParam1 == 12 || iParam1 == 13) || iParam1 == 14) || unk_0x4915F4759304D5CF(iParam0))
{
return -99;
}
iVar0 = func_147(iParam1);
iVar1 = unk_0x774CB20D17C3FF03(iParam0, iVar0);
iVar2 = unk_0x7710E77D1959B321(iParam0, iVar0);
return func_140(iParam0, iVar1, iVar2, iParam1);
}
int func_140(int iParam0, int iParam1, int iParam2, int iParam3)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
int iVar4;
int iVar5;
iVar0 = func_147(iParam3);
iVar1 = unk_0xE73139FCB8A4B748(iParam0, iVar0);
iVar3 = 0;
while (iVar3 <= (iVar1 - 1))
{
iVar5 = unk_0x2B322C65C819A12B(iParam0, iVar0, iVar3);
if (iVar3 != iParam1)
{
iVar2 = (iVar2 + iVar5);
}
else
{
iVar4 = 0;
while (iVar4 <= (iVar5 - 1))
{
if (iVar3 == iParam1 && iVar4 == iParam2)
{
return iVar2;
}
else
{
iVar2++;
}
iVar4++;
}
}
iVar3++;
}
return -99;
}
void func_141(int iParam0)
{
if (unk_0x05EFB6A616B6FADE(Global_71017[1 /*14*/].f_6, 1) && !unk_0x05EFB6A616B6FADE(Global_71017[1 /*14*/].f_6, 6))
{
func_144(iParam0, Global_71017[1 /*14*/].f_5, Global_71017[1 /*14*/].f_2, 2, Global_71017[1 /*14*/].f_1, 1, 0);
}
if (unk_0x05EFB6A616B6FADE(Global_71017[1 /*14*/].f_6, 1) && unk_0x05EFB6A616B6FADE(Global_71017[1 /*14*/].f_6, 6))
{
if (iParam0 == 12)
{
func_142(Global_2621444, 2, 1, 1, -1);
}
else if (iParam0 == 13)
{
}
else if (iParam0 == 14)
{
func_142(Global_2621444, 2, 1, 1, -1);
}
else
{
func_142(Global_2621444, 2, 1, 1, -1);
}
}
}
void func_142(int iParam0, int iParam1, bool bParam2, bool bParam3, int iParam4)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
iVar0 = Global_71014;
if (iParam4 != -1)
{
iVar0 = iParam4;
}
if (func_143(iParam0, iParam1, &iVar2, &iVar1, bParam2, bParam3))
{
iVar3 = func_19(iVar2, iVar0, 0);
unk_0x2BCFB39E86340DAA(&iVar3, iVar1);
func_16(iVar2, iVar3, iVar0, 1, 0);
}
}
bool func_143(int iParam0, int iParam1, var uParam2, var uParam3, bool bParam4, bool bParam5)
{
int iVar0;
*uParam2 = 9954;
if ((bParam4 && Global_4265675) || (!bParam4 && bParam5))
{
switch (iParam1)
{
case 1:
switch (iParam0)
{
case 8886212:
case -969630947:
*uParam2 = 971;
*uParam3 = 19;
return 1;
break;
case 1857811503:
case -1198063650:
*uParam2 = 971;
*uParam3 = 20;
return 1;
break;
case 552556691:
case -1596927918:
*uParam2 = 971;
*uParam3 = 21;
return 1;
break;
case 328711652:
case 2093516866:
*uParam2 = 971;
*uParam3 = 22;
return 1;
break;
case 1194403102:
case 1863511255:
*uParam2 = 971;
*uParam3 = 23;
return 1;
break;
case 1107630790:
case 1503248869:
*uParam2 = 971;
*uParam3 = 24;
return 1;
break;
case 1807937089:
case 1263478096:
*uParam2 = 971;
*uParam3 = 25;
return 1;
break;
case 1453442047:
case 745170819:
*uParam2 = 971;
*uParam3 = 26;
return 1;
break;
case -1071423629:
case -1382822784:
case 385813134:
*uParam2 = 935;
*uParam3 = 0;
return 1;
break;
case -833094692:
case -1731353868:
case 675392787:
*uParam2 = 935;
*uParam3 = 1;
return 1;
break;
case -1836153782:
case -1960638561:
case -238272479:
*uParam2 = 935;
*uParam3 = 2;
return 1;
break;
case -1598414687:
case 147161830:
case 67757212:
*uParam2 = 935;
*uParam3 = 3;
return 1;
break;
case 123661793:
case -92608943:
case -536372072:
*uParam2 = 935;
*uParam3 = 4;
return 1;
break;
case 330958487:
case -162931217:
case -247578875:
*uParam2 = 935;
*uParam3 = 5;
return 1;
break;
case -142717408:
case 1665087452:
case -854821214:
*uParam2 = 935;
*uParam3 = 7;
return 1;
break;
case 1290696959:
case 1012984348:
case -1458295118:
*uParam2 = 935;
*uParam3 = 8;
return 1;
break;
case 2059568454:
case 933072050:
case -1454802604:
*uParam2 = 935;
*uParam3 = 11;
return 1;
break;
}
break;
case 2:
switch (iParam0)
{
case 8886212:
case -969630947:
*uParam2 = 1023;
*uParam3 = 19;
return 1;
break;
case 1857811503:
case -1198063650:
*uParam2 = 1023;
*uParam3 = 20;
return 1;
break;
case 552556691:
case -1596927918:
*uParam2 = 1023;
*uParam3 = 21;
return 1;
break;
case 328711652:
case 2093516866:
*uParam2 = 1023;
*uParam3 = 22;
return 1;
break;
case 1194403102:
case 1863511255:
*uParam2 = 1023;
*uParam3 = 23;
return 1;
break;
case 1107630790:
case 1503248869:
*uParam2 = 1023;
*uParam3 = 24;
return 1;
break;
case 1807937089:
case 1263478096:
*uParam2 = 1023;
*uParam3 = 25;
return 1;
break;
case 1453442047:
case 745170819:
*uParam2 = 1023;
*uParam3 = 26;
return 1;
break;
}
break;
}
}
else
{
switch (iParam1)
{
case 1:
switch (iParam0)
{
case -1795774903:
case -379046860:
*uParam2 = 971;
*uParam3 = 19;
return 1;
break;
case 1655095722:
case 472553912:
*uParam2 = 971;
*uParam3 = 20;
return 1;
break;
case -1951624263:
case 147288818:
*uParam2 = 971;
*uParam3 = 21;
return 1;
break;
case -1586249913:
case 1027988462:
*uParam2 = 971;
*uParam3 = 22;
return 1;
break;
case -1472181024:
case 788217689:
*uParam2 = 971;
*uParam3 = 23;
return 1;
break;
case -1116178608:
case 1338147047:
*uParam2 = 971;
*uParam3 = 24;
return 1;
break;
case -1028914761:
case 1095820292:
*uParam2 = 971;
*uParam3 = 25;
return 1;
break;
case -654496167:
case -1989217217:
*uParam2 = 971;
*uParam3 = 26;
return 1;
break;
}
break;
case 2:
switch (iParam0)
{
case -1795774903:
case -379046860:
*uParam2 = 1023;
*uParam3 = 19;
return 1;
break;
case 1655095722:
case 472553912:
*uParam2 = 1023;
*uParam3 = 20;
return 1;
break;
case -1951624263:
case 147288818:
*uParam2 = 1023;
*uParam3 = 21;
return 1;
break;
case -1586249913:
case 1027988462:
*uParam2 = 1023;
*uParam3 = 22;
return 1;
break;
case -1472181024:
case 788217689:
*uParam2 = 1023;
*uParam3 = 23;
return 1;
break;
case -1116178608:
case 1338147047:
*uParam2 = 1023;
*uParam3 = 24;
return 1;
break;
case -1028914761:
case 1095820292:
*uParam2 = 1023;
*uParam3 = 25;
return 1;
break;
case -654496167:
case -1989217217:
*uParam2 = 1023;
*uParam3 = 26;
return 1;
break;
}
break;
}
}
iVar0 = -1;
if (bParam4)
{
if (Global_4265675)
{
iVar0 = unk_0xCD58BA1DE37B5D38(iParam0);
}
else
{
iVar0 = unk_0x6DD3E71121D6115E(iParam0);
}
}
else if (bParam5)
{
iVar0 = unk_0xCD58BA1DE37B5D38(iParam0);
}
else
{
iVar0 = unk_0x6DD3E71121D6115E(iParam0);
}
if (iVar0 == -1)
{
return 0;
}
switch (iParam1)
{
case 1:
switch (floor((to_float(iVar0) / 32f)))
{
case 0:
*uParam2 = 1759;
break;
case 1:
*uParam2 = 1760;
break;
case 2:
*uParam2 = 1761;
break;
case 3:
*uParam2 = 1762;
break;
case 4:
*uParam2 = 1763;
break;
case 5:
*uParam2 = 1764;
break;
case 6:
*uParam2 = 1771;
break;
case 7:
*uParam2 = 1772;
break;
case 8:
*uParam2 = 1773;
break;
case 9:
*uParam2 = 1774;
break;
case 10:
*uParam2 = 1775;
break;
case 11:
*uParam2 = 1776;
break;
case 12:
*uParam2 = 1777;
break;
case 13:
*uParam2 = 1785;
break;
case 14:
*uParam2 = 1786;
break;
case 15:
*uParam2 = 1887;
break;
case 16:
*uParam2 = 1888;
break;
case 17:
*uParam2 = 1919;
break;
case 18:
*uParam2 = 1933;
break;
case 19:
*uParam2 = 1934;
break;
case 20:
*uParam2 = 1935;
break;
case 21:
*uParam2 = 1936;
break;
case 22:
*uParam2 = 1937;
break;
case 23:
*uParam2 = 2041;
break;
case 24:
*uParam2 = 2042;
break;
case 25:
*uParam2 = 2068;
break;
case 26:
*uParam2 = 2069;
break;
case 27:
*uParam2 = 2070;
break;
case 28:
*uParam2 = 2071;
break;
case 29:
*uParam2 = 2072;
break;
case 30:
*uParam2 = 2073;
break;
case 31:
*uParam2 = 2074;
break;
case 32:
*uParam2 = 2075;
break;
case 33:
*uParam2 = 2076;
break;
case 34:
*uParam2 = 2077;
break;
case 35:
*uParam2 = 2324;
break;
case 36:
*uParam2 = 2325;
break;
case 37:
*uParam2 = 2389;
break;
case 38:
*uParam2 = 2390;
break;
case 39:
*uParam2 = 2391;
break;
case 40:
*uParam2 = 2392;
break;
case 41:
*uParam2 = 2451;
break;
case 42:
*uParam2 = 2452;
break;
case 43:
*uParam2 = 2453;
break;
case 44:
*uParam2 = 2454;
break;
case 45:
*uParam2 = 2455;
break;
case 46:
*uParam2 = 2456;
break;
case 47:
*uParam2 = 2457;
break;
case 48:
*uParam2 = 2458;
break;
case 49:
*uParam2 = 2459;
break;
case 50:
*uParam2 = 2460;
break;
case 51:
*uParam2 = 2589;
break;
case 52:
*uParam2 = 2590;
break;
case 53:
*uParam2 = 2591;
break;
case 54:
*uParam2 = 2592;
break;
case 55:
*uParam2 = 2593;
break;
case 56:
*uParam2 = 2594;
break;
case 57:
*uParam2 = 2595;
break;
case 58:
*uParam2 = 2596;
break;
case 59:
*uParam2 = 2597;
break;
case 60:
*uParam2 = 2598;
break;
case 61:
*uParam2 = 2599;
break;
case 62:
*uParam2 = 3196;
break;
case 63:
*uParam2 = 3197;
break;
case 64:
*uParam2 = 3198;
break;
case 65:
*uParam2 = 3199;
break;
case 66:
*uParam2 = 3200;
break;
case 67:
*uParam2 = 3201;
break;
case 68:
*uParam2 = 3669;
break;
case 69:
*uParam2 = 3670;
break;
case 70:
*uParam2 = 3671;
break;
case 71:
*uParam2 = 3672;
break;
case 72:
*uParam2 = 3673;
break;
case 73:
*uParam2 = 3674;
break;
case 74:
*uParam2 = 3675;
break;
case 75:
*uParam2 = 3676;
break;
case 76:
*uParam2 = 3677;
break;
case 77:
*uParam2 = 3678;
break;
case 78:
*uParam2 = 3792;
break;
case 79:
*uParam2 = 3793;
break;
case 80:
*uParam2 = 3794;
break;
case 81:
*uParam2 = 3795;
break;
case 82:
*uParam2 = 3796;
break;
case 83:
*uParam2 = 3797;
break;
case 84:
*uParam2 = 3798;
break;
case 85:
*uParam2 = 3799;
break;
case 86:
*uParam2 = 3902;
break;
case 87:
*uParam2 = 3903;
break;
case 88:
*uParam2 = 3904;
break;
case 89:
*uParam2 = 5337;
break;
case 90:
*uParam2 = 5338;
break;
case 91:
*uParam2 = 5339;
break;
case 92:
*uParam2 = 5340;
break;
case 93:
*uParam2 = 5341;
break;
case 94:
*uParam2 = 5342;
break;
case 95:
*uParam2 = 5343;
break;
case 96:
*uParam2 = 5344;
break;
case 97:
*uParam2 = 5345;
break;
case 98:
*uParam2 = 5346;
break;
case 99:
*uParam2 = 5347;
break;
case 100:
*uParam2 = 5348;
break;
case 101:
*uParam2 = 5394;
break;
case 102:
*uParam2 = 5395;
break;
case 103:
*uParam2 = 5396;
break;
case 104:
*uParam2 = 5397;
break;
case 105:
*uParam2 = 5398;
break;
case 106:
*uParam2 = 5399;
break;
case 107:
*uParam2 = 5400;
break;
case 108:
*uParam2 = 5401;
break;
case 109:
*uParam2 = 5402;
break;
case 110:
*uParam2 = 5403;
break;
case 111:
*uParam2 = 5404;
break;
case 112:
*uParam2 = 5405;
break;
case 113:
*uParam2 = 5406;
break;
case 114:
*uParam2 = 5407;
break;
case 115:
*uParam2 = 5408;
break;
case 116:
*uParam2 = 5409;
break;
case 117:
*uParam2 = 5410;
break;
case 118:
*uParam2 = 5411;
break;
case 119:
*uParam2 = 5412;
break;
case 120:
*uParam2 = 5413;
break;
case 121:
*uParam2 = 5414;
break;
case 122:
*uParam2 = 5415;
break;
case 123:
*uParam2 = 5416;
break;
case 124:
*uParam2 = 6122;
break;
case 125:
*uParam2 = 6123;
break;
case 126:
*uParam2 = 6124;
break;
case 127:
*uParam2 = 6125;
break;
case 128:
*uParam2 = 6126;
break;
case 129:
*uParam2 = 6127;
break;
case 130:
*uParam2 = 6128;
break;
case 131:
*uParam2 = 6129;
break;
case 132:
*uParam2 = 6130;
break;
case 133:
*uParam2 = 6131;
break;
case 134:
*uParam2 = 6132;
break;
case 135:
*uParam2 = 6133;
break;
case 136:
*uParam2 = 6134;
break;
case 137:
*uParam2 = 6135;
break;
case 138:
*uParam2 = 6136;
break;
case 139:
*uParam2 = 6435;
break;
case 140:
*uParam2 = 6436;
break;
case 141:
*uParam2 = 6437;
break;
case 142:
*uParam2 = 6438;
break;
case 143:
*uParam2 = 6439;
break;
case 144:
*uParam2 = 6440;
break;
case 145:
*uParam2 = 6441;
break;
case 146:
*uParam2 = 6442;
break;
case 147:
*uParam2 = 6443;
break;
case 148:
*uParam2 = 6444;
break;
case 149:
*uParam2 = 6445;
break;
case 150:
*uParam2 = 6446;
break;
case 151:
*uParam2 = 6447;
break;
case 152:
*uParam2 = 6448;
break;
case 153:
*uParam2 = 6449;
break;
case 154:
*uParam2 = 7266;
break;
case 155:
*uParam2 = 7267;
break;
case 156:
*uParam2 = 7268;
break;
case 157:
*uParam2 = 7269;
break;
case 158:
*uParam2 = 7270;
break;
case 159:
*uParam2 = 7271;
break;
case 160:
*uParam2 = 7272;
break;
case 161:
*uParam2 = 7879;
break;
case 162:
*uParam2 = 7880;
break;
case 163:
*uParam2 = 7881;
break;
case 164:
*uParam2 = 7882;
break;
case 165:
*uParam2 = 7883;
break;
case 166:
*uParam2 = 7884;
break;
case 167:
*uParam2 = 7885;
break;
case 168:
*uParam2 = 7886;
break;
case 169:
*uParam2 = 7887;
break;
case 170:
*uParam2 = 7888;
break;
case 171:
*uParam2 = 7889;
break;
case 172:
*uParam2 = 7890;
break;
case 173:
*uParam2 = 7891;
break;
case 174:
*uParam2 = 7892;
break;
case 175:
*uParam2 = 7893;
break;
default:
break;
}
break;
case 2:
switch (floor((to_float(iVar0) / 32f)))
{
case 0:
*uParam2 = 1765;
break;
case 1:
*uParam2 = 1766;
break;
case 2:
*uParam2 = 1767;
break;
case 3:
*uParam2 = 1768;
break;
case 4:
*uParam2 = 1769;
break;
case 5:
*uParam2 = 1770;
break;
case 6:
*uParam2 = 1778;
break;
case 7:
*uParam2 = 1779;
break;
case 8:
*uParam2 = 1780;
break;
case 9:
*uParam2 = 1781;
break;
case 10:
*uParam2 = 1782;
break;
case 11:
*uParam2 = 1783;
break;
case 12:
*uParam2 = 1784;
break;
case 13:
*uParam2 = 1787;
break;
case 14:
*uParam2 = 1788;
break;
case 15:
*uParam2 = 1889;
break;
case 16:
*uParam2 = 1890;
break;
case 17:
*uParam2 = 1920;
break;
case 18:
*uParam2 = 1938;
break;
case 19:
*uParam2 = 1939;
break;
case 20:
*uParam2 = 1940;
break;
case 21:
*uParam2 = 1941;
break;
case 22:
*uParam2 = 1942;
break;
case 23:
*uParam2 = 2043;
break;
case 24:
*uParam2 = 2044;
break;
case 25:
*uParam2 = 2078;
break;
case 26:
*uParam2 = 2079;
break;
case 27:
*uParam2 = 2080;
break;
case 28:
*uParam2 = 2081;
break;
case 29:
*uParam2 = 2082;
break;
case 30:
*uParam2 = 2083;
break;
case 31:
*uParam2 = 2084;
break;
case 32:
*uParam2 = 2085;
break;
case 33:
*uParam2 = 2086;
break;
case 34:
*uParam2 = 2087;
break;
case 35:
*uParam2 = 2326;
break;
case 36:
*uParam2 = 2327;
break;
case 37:
*uParam2 = 2393;
break;
case 38:
*uParam2 = 2394;
break;
case 39:
*uParam2 = 2395;
break;
case 40:
*uParam2 = 2396;
break;
case 41:
*uParam2 = 2461;
break;
case 42:
*uParam2 = 2462;
break;
case 43:
*uParam2 = 2463;
break;
case 44:
*uParam2 = 2464;
break;
case 45:
*uParam2 = 2465;
break;
case 46:
*uParam2 = 2466;
break;
case 47:
*uParam2 = 2467;
break;
case 48:
*uParam2 = 2468;
break;
case 49:
*uParam2 = 2469;
break;
case 50:
*uParam2 = 2470;
break;
case 51:
*uParam2 = 2600;
break;
case 52:
*uParam2 = 2601;
break;
case 53:
*uParam2 = 2602;
break;
case 54:
*uParam2 = 2603;
break;
case 55:
*uParam2 = 2604;
break;
case 56:
*uParam2 = 2605;
break;
case 57:
*uParam2 = 2606;
break;
case 58:
*uParam2 = 2607;
break;
case 59:
*uParam2 = 2608;
break;
case 60:
*uParam2 = 2609;
break;
case 61:
*uParam2 = 2610;
break;
case 62:
*uParam2 = 3202;
break;
case 63:
*uParam2 = 3203;
break;
case 64:
*uParam2 = 3204;
break;
case 65:
*uParam2 = 3205;
break;
case 66:
*uParam2 = 3206;
break;
case 67:
*uParam2 = 3207;
break;
case 68:
*uParam2 = 3679;
break;
case 69:
*uParam2 = 3680;
break;
case 70:
*uParam2 = 3681;
break;
case 71:
*uParam2 = 3682;
break;
case 72:
*uParam2 = 3683;
break;
case 73:
*uParam2 = 3684;
break;
case 74:
*uParam2 = 3685;
break;
case 75:
*uParam2 = 3686;
break;
case 76:
*uParam2 = 3687;
break;
case 77:
*uParam2 = 3688;
break;
case 78:
*uParam2 = 3800;
break;
case 79:
*uParam2 = 3801;
break;
case 80:
*uParam2 = 3802;
break;
case 81:
*uParam2 = 3803;
break;
case 82:
*uParam2 = 3804;
break;
case 83:
*uParam2 = 3805;
break;
case 84:
*uParam2 = 3806;
break;
case 85:
*uParam2 = 3807;
break;
case 86:
*uParam2 = 3905;
break;
case 87:
*uParam2 = 3906;
break;
case 88:
*uParam2 = 3907;
break;
case 89:
*uParam2 = 5349;
break;
case 90:
*uParam2 = 5350;
break;
case 91:
*uParam2 = 5351;
break;
case 92:
*uParam2 = 5352;
break;
case 93:
*uParam2 = 5353;
break;
case 94:
*uParam2 = 5354;
break;
case 95:
*uParam2 = 5355;
break;
case 96:
*uParam2 = 5356;
break;
case 97:
*uParam2 = 5357;
break;
case 98:
*uParam2 = 5358;
break;
case 99:
*uParam2 = 5359;
break;
case 100:
*uParam2 = 5360;
break;
case 101:
*uParam2 = 5417;
break;
case 102:
*uParam2 = 5418;
break;
case 103:
*uParam2 = 5419;
break;
case 104:
*uParam2 = 5420;
break;
case 105:
*uParam2 = 5421;
break;
case 106:
*uParam2 = 5422;
break;
case 107:
*uParam2 = 5423;
break;
case 108:
*uParam2 = 5424;
break;
case 109:
*uParam2 = 5425;
break;
case 110:
*uParam2 = 5426;
break;
case 111:
*uParam2 = 5427;
break;
case 112:
*uParam2 = 5428;
break;
case 113:
*uParam2 = 5429;
break;
case 114:
*uParam2 = 5430;
break;
case 115:
*uParam2 = 5431;
break;
case 116:
*uParam2 = 5432;
break;
case 117:
*uParam2 = 5433;
break;
case 118:
*uParam2 = 5434;
break;
case 119:
*uParam2 = 5435;
break;
case 120:
*uParam2 = 5436;
break;
case 121:
*uParam2 = 5437;
break;
case 122:
*uParam2 = 5438;
break;
case 123:
*uParam2 = 5439;
break;
case 124:
*uParam2 = 6137;
break;
case 125:
*uParam2 = 6138;
break;
case 126:
*uParam2 = 6139;
break;
case 127:
*uParam2 = 6140;
break;
case 128:
*uParam2 = 6141;
break;
case 129:
*uParam2 = 6142;
break;
case 130:
*uParam2 = 6143;
break;
case 131:
*uParam2 = 6144;
break;
case 132:
*uParam2 = 6145;
break;
case 133:
*uParam2 = 6146;
break;
case 134:
*uParam2 = 6147;
break;
case 135:
*uParam2 = 6148;
break;
case 136:
*uParam2 = 6149;
break;
case 137:
*uParam2 = 6150;
break;
case 138:
*uParam2 = 6151;
break;
case 139:
*uParam2 = 6450;
break;
case 140:
*uParam2 = 6451;
break;
case 141:
*uParam2 = 6452;
break;
case 142:
*uParam2 = 6453;
break;
case 143:
*uParam2 = 6454;
break;
case 144:
*uParam2 = 6455;
break;
case 145:
*uParam2 = 6456;
break;
case 146:
*uParam2 = 6457;
break;
case 147:
*uParam2 = 6458;
break;
case 148:
*uParam2 = 6459;
break;
case 149:
*uParam2 = 6460;
break;
case 150:
*uParam2 = 6461;
break;
case 151:
*uParam2 = 6462;
break;
case 152:
*uParam2 = 6463;
break;
case 153:
*uParam2 = 6464;
break;
case 154:
*uParam2 = 7273;
break;
case 155:
*uParam2 = 7274;
break;
case 156:
*uParam2 = 7275;
break;
case 157:
*uParam2 = 7276;
break;
case 158:
*uParam2 = 7277;
break;
case 159:
*uParam2 = 7278;
break;
case 160:
*uParam2 = 7279;
break;
case 161:
*uParam2 = 7894;
break;
case 162:
*uParam2 = 7895;
break;
case 163:
*uParam2 = 7896;
break;
case 164:
*uParam2 = 7897;
break;
case 165:
*uParam2 = 7898;
break;
case 166:
*uParam2 = 7899;
break;
case 167:
*uParam2 = 7900;
break;
case 168:
*uParam2 = 7901;
break;
case 169:
*uParam2 = 7902;
break;
case 170:
*uParam2 = 7903;
break;
case 171:
*uParam2 = 7904;
break;
case 172:
*uParam2 = 7905;
break;
case 173:
*uParam2 = 7906;
break;
case 174:
*uParam2 = 7907;
break;
case 175:
*uParam2 = 7908;
break;
default:
break;
}
break;
}
*uParam3 = (iVar0 % 32);
return *uParam2 != 9954;
}
int func_144(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6)
{
if (iParam0 == 0)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/][iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/][iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/][iParam3], iParam4);
}
else if (iParam0 == 1)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_4[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_4[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_4[iParam3], iParam4);
}
else if (iParam0 == 2)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_8[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_8[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_8[iParam3], iParam4);
}
else if (iParam0 == 3)
{
if (iParam2 == 0)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_12[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_12[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_12[iParam3], iParam4);
}
else if (iParam2 == 1)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_16[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_16[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_16[iParam3], iParam4);
}
else if (iParam2 == 2)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_20[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_20[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_20[iParam3], iParam4);
}
else if (iParam2 == 3)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_24[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_24[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_24[iParam3], iParam4);
}
else if (iParam2 == 4)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_28[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_28[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_28[iParam3], iParam4);
}
else if (iParam2 == 5)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_32[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_32[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_32[iParam3], iParam4);
}
else if (iParam2 == 6)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_36[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_36[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_36[iParam3], iParam4);
}
else if (iParam2 == 7)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_40[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_40[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_40[iParam3], iParam4);
}
else if (iParam2 == 8)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_44[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_44[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_44[iParam3], iParam4);
}
else if (iParam2 == 9)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_48[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_48[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_48[iParam3], iParam4);
}
}
else if (iParam0 == 4)
{
if (iParam2 == 0)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_52[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_52[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_52[iParam3], iParam4);
}
else if (iParam2 == 1)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_56[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_56[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_56[iParam3], iParam4);
}
else if (iParam2 == 2)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_60[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_60[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_60[iParam3], iParam4);
}
else if (iParam2 == 3)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_64[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_64[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_64[iParam3], iParam4);
}
}
else if (iParam0 == 5)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_68[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_68[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_68[iParam3], iParam4);
}
else if (iParam0 == 6)
{
if (iParam2 == 0)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_72[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_72[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_72[iParam3], iParam4);
}
else if (iParam2 == 1)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_76[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_76[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_76[iParam3], iParam4);
}
else if (iParam2 == 2)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_80[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_80[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_80[iParam3], iParam4);
}
else if (iParam2 == 3)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_84[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_84[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_84[iParam3], iParam4);
}
else if (iParam2 == 4)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_88[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_88[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_88[iParam3], iParam4);
}
}
else if (iParam0 == 7)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_92[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_92[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_92[iParam3], iParam4);
}
else if (iParam0 == 8)
{
if (iParam2 == 0)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_96[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_96[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_96[iParam3], iParam4);
}
else if (iParam2 == 1)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_100[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_100[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_100[iParam3], iParam4);
}
else if (iParam2 == 2)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_104[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_104[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_104[iParam3], iParam4);
}
}
else if (iParam0 == 9)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_108[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_108[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_108[iParam3], iParam4);
}
else if (iParam0 == 10)
{
if (iParam2 == 0)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_112[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_112[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_112[iParam3], iParam4);
}
else if (iParam2 == 1)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_116[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_116[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_116[iParam3], iParam4);
}
}
else if (iParam0 == 11)
{
if (iParam2 == 0)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_120[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_120[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_120[iParam3], iParam4);
}
else if (iParam2 == 1)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_124[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_124[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_124[iParam3], iParam4);
}
}
else if (iParam0 == 12)
{
if (iParam2 == 0)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_128[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_128[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_128[iParam3], iParam4);
}
else if (iParam2 == 1)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_132[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_132[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_132[iParam3], iParam4);
}
}
else if (iParam0 == 13)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_136[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_136[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_136[iParam3], iParam4);
}
else if (iParam0 == 14)
{
if (iParam2 == 0)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_140[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_140[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_140[iParam3], iParam4);
}
else if (iParam2 == 1)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_144[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_144[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_144[iParam3], iParam4);
}
else if (iParam2 == 2)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_148[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_148[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_148[iParam3], iParam4);
}
else if (iParam2 == 3)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_152[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_152[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_152[iParam3], iParam4);
}
else if (iParam2 == 4)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_156[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_156[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_156[iParam3], iParam4);
}
else if (iParam2 == 5)
{
if (iParam5 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355[iParam1 /*164*/].f_160[iParam3]), iParam4);
}
if (iParam6 == 1)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_2355[iParam1 /*164*/].f_160[iParam3]), iParam4);
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_2355[iParam1 /*164*/].f_160[iParam3], iParam4);
}
}
return 0;
}
int func_145(int iParam0)
{
if (!unk_0x05EFB6A616B6FADE(Global_71017[1 /*14*/].f_6, 0))
{
return 0;
}
if (iParam0 == 1)
{
if (!unk_0x05EFB6A616B6FADE(Global_71017[1 /*14*/].f_6, 1))
{
return 0;
}
if (!unk_0x05EFB6A616B6FADE(Global_71017[1 /*14*/].f_6, 2))
{
return 0;
}
}
return 1;
}
int func_146(int iParam0, int iParam1, int iParam2, int iParam3)
{
int iVar0;
iVar0 = func_109(iParam1);
if (Global_106070.f_2355.f_539[iVar0 /*65*/].f_60 != -99)
{
if (!func_219(iParam0, Global_106070.f_2355.f_539[iVar0 /*65*/].f_61, Global_106070.f_2355.f_539[iVar0 /*65*/].f_60) || iParam3 == 1)
{
*iParam2 = Global_106070.f_2355.f_539[iVar0 /*65*/].f_59;
Global_106070.f_2355.f_539[iVar0 /*65*/].f_60 = -99;
Global_106070.f_2355.f_539[iVar0 /*65*/].f_61 = 2;
return 1;
}
}
return 0;
}
int func_147(int iParam0)
{
switch (iParam0)
{
case 0:
return 0;
break;
case 2:
return 2;
break;
case 3:
return 3;
break;
case 4:
return 4;
break;
case 6:
return 6;
break;
case 5:
return 5;
break;
case 8:
return 8;
break;
case 9:
return 9;
break;
case 10:
return 10;
break;
case 1:
return 1;
break;
case 7:
return 7;
break;
case 11:
return 11;
break;
}
return 0;
}
struct<10> func_148(int iParam0, int iParam1)
{
int iVar0;
struct<10> Var1;
Var1 = 9;
iVar0 = 0;
while (iVar0 <= 8)
{
Var1[iVar0] = -99;
iVar0++;
}
switch (iParam0)
{
case joaat("player_zero"):
switch (iParam1)
{
case 31:
func_150(&Var1, 0, 1, 2, 3, 4, 5, 6, 7, 8);
break;
case 0:
func_150(&Var1, 10, 1, 2, 3, 4, 5, 6, 7, 8);
break;
case 1:
func_150(&Var1, 19, 1, 2, 3, 4, 5, 6, 7, 8);
break;
case 2:
func_150(&Var1, 14, 1, 2, 3, 4, 5, 6, 7, 8);
break;
case 3:
func_150(&Var1, 18, 1, 2, 3, 4, 5, 6, 7, 8);
break;
case 4:
func_150(&Var1, 0, 59, 112, 3, 4, 5, 6, 7, 8);
break;
case 5:
func_150(&Var1, 0, 60, 112, 3, 4, 5, 6, 7, 8);
break;
case 6:
func_150(&Var1, 15, 1, 2, 3, 4, 5, 6, 7, 8);
break;
case 7:
func_150(&Var1, 0, 60, 2, 3, 4, 5, 6, 7, 8);
break;
case 8:
func_150(&Var1, 55, 1, 2, 3, 4, 5, 6, 7, 8);
break;
case 9:
func_150(&Var1, 0, 1, 112, 3, 4, 5, 6, 7, 8);
break;
default:
func_149(&Var1, iParam0, iParam1, 10);
break;
}
break;
case joaat("player_one"):
switch (iParam1)
{
case 31:
func_150(&Var1, 0, 1, 2, 3, 4, 5, 6, 7, 8);
break;
case 0:
func_150(&Var1, 10, 1, 2, 3, 4, 5, 6, 7, 8);
break;
case 1:
func_150(&Var1, 0, 82, 158, 3, 4, 5, 6, 7, 8);
break;
case 2:
func_150(&Var1, 0, 1, 158, 3, 4, 5, 6, 7, 8);
break;
case 3:
func_150(&Var1, 15, 1, 2, 3, 4, 5, 6, 7, 8);
break;
case 4:
func_150(&Var1, 41, 1, 2, 3, 4, 5, 6, 7, 8);
break;
case 5:
func_150(&Var1, 40, 1, 2, 3, 4, 5, 6, 7, 8);
break;
case 6:
func_150(&Var1, 41, 95, 2, 3, 4, 5, 6, 7, 8);
break;
case 7:
func_150(&Var1, 0, 95, 2, 3, 4, 5, 6, 7, 8);
break;
case 8:
func_150(&Var1, 69, 95, 2, 3, 4, 5, 6, 7, 8);
break;
default:
func_149(&Var1, iParam0, iParam1, 9);
break;
}
break;
case joaat("player_two"):
switch (iParam1)
{
case 31:
func_150(&Var1, 0, 1, 2, 3, 4, 5, 6, 7, 8);
break;
case 0:
func_150(&Var1, 11, 1, 2, 3, 4, 5, 6, 7, 8);
break;
case 1:
func_150(&Var1, 17, 90, 2, 3, 4, 5, 6, 7, 8);
break;
case 2:
func_150(&Var1, 15, 1, 2, 3, 4, 5, 6, 7, 8);
break;
case 3:
func_150(&Var1, 0, 88, 154, 3, 4, 5, 6, 7, 8);
break;
case 4:
func_150(&Var1, 0, 1, 154, 3, 4, 5, 6, 7, 8);
break;
case 5:
func_150(&Var1, 16, 1, 2, 3, 4, 5, 6, 7, 8);
break;
case 6:
func_150(&Var1, 36, 1, 2, 3, 4, 5, 6, 7, 8);
break;
case 7:
func_150(&Var1, 0, 123, 2, 3, 4, 5, 6, 7, 8);
break;
case 8:
func_150(&Var1, 69, 1, 2, 3, 4, 5, 6, 7, 8);
break;
default:
func_149(&Var1, iParam0, iParam1, 9);
break;
}
break;
case joaat("mp_m_freemode_01"):
switch (iParam1)
{
case 31:
func_150(&Var1, 0, 1, 2, 3, 4, 5, 6, 7, 8);
break;
case 0:
func_150(&Var1, 129, 167, 2, 3, 4, 5, 6, 7, 8);
break;
case 1:
func_150(&Var1, 90, 1, 2, 3, 4, 5, 6, 7, 8);
break;
case 2:
func_150(&Var1, 23, 251, 2, 3, 4, 5, 6, 7, 8);
break;
case 3:
func_150(&Var1, 36, 262, 2, 3, 4, 5, 6, 7, 8);
break;
case 4:
func_150(&Var1, 88, 1, 2, 3, 4, 5, 6, 7, 8);
break;
case 5:
func_150(&Var1, 125, 175, 2, 3, 4, 5, 6, 7, 8);
break;
case 6:
func_150(&Var1, 35, 1, 2, 3, 4, 5, 6, 7, 8);
break;
case 7:
func_150(&Var1, 44, 208, 2, 3, 4, 5, 6, 7, 8);
break;
case 8:
func_150(&Var1, 52, 189, 2, 3, 4, 5, 6, 7, 8);
break;
case 9:
func_150(&Var1, 0, 261, 2, 3, 4, 5, 6, 7, 8);
break;
case 10:
func_150(&Var1, 0, 243, 2, 3, 4, 5, 6, 7, 8);
break;
case 11:
func_150(&Var1, 0, 243, 2, 3, 4, 5, 6, 7, 8);
break;
case 12:
func_150(&Var1, 0, 212, 2, 3, 4, 5, 6, 7, 8);
break;
case 13:
func_150(&Var1, 64, 291, 2, 3, 4, 5, 6, 7, 8);
break;
case 14:
func_150(&Var1, 61, 207, 2, 3, 4, 5, 6, 7, 8);
break;
case 15:
func_150(&Var1, 0, 291, 2, 3, 4, 5, 6, 7, 8);
break;
case 16:
func_150(&Var1, 0, 208, 2, 3, 4, 5, 6, 7, 8);
break;
case 17:
func_150(&Var1, 0, 229, 2, 3, 4, 5, 6, 7, 8);
break;
case 18:
func_150(&Var1, 36, 249, 2, 3, 4, 5, 6, 7, 8);
break;
case 19:
func_150(&Var1, 0, 259, 2, 3, 4, 5, 6, 7, 8);
break;
case 20:
func_150(&Var1, 0, 174, 2, 3, 4, 5, 6, 7, 8);
break;
case 21:
func_150(&Var1, 35, 180, 2, 3, 4, 5, 6, 7, 8);
break;
case 22:
func_150(&Var1, 36, 1, 2, 3, 4, 5, 6, 7, 8);
break;
case 23:
func_150(&Var1, 0, 259, 2, 3, 4, 5, 6, 7, 8);
break;
case 24:
func_150(&Var1, 35, 1, 2, 3, 4, 5, 6, 7, 8);
break;
default:
func_149(&Var1, iParam0, iParam1, 25);
break;
}
break;
case joaat("mp_f_freemode_01"):
switch (iParam1)
{
case 31:
func_150(&Var1, 0, 1, 2, 3, 4, 5, 6, 7, 8);
break;
case 0:
func_150(&Var1, 35, 233, 2, 3, 4, 5, 6, 7, 8);
break;
case 1:
func_150(&Var1, 36, 178, 2, 3, 4, 5, 6, 7, 8);
break;
case 2:
func_150(&Var1, 53, 221, 2, 3, 4, 5, 6, 7, 8);
break;
case 3:
func_150(&Var1, 38, 170, 2, 3, 4, 5, 6, 7, 8);
break;
case 4:
func_150(&Var1, 37, 1, 2, 3, 4, 5, 6, 7, 8);
break;
case 5:
func_150(&Var1, 113, 203, 2, 3, 4, 5, 6, 7, 8);
break;
case 6:
func_150(&Var1, 114, 183, 2, 3, 4, 5, 6, 7, 8);
break;
case 7:
func_150(&Var1, 0, 221, 2, 3, 4, 5, 6, 7, 8);
break;
case 8:
func_150(&Var1, 0, 221, 2, 3, 4, 5, 6, 7, 8);
break;
case 9:
func_150(&Var1, 0, 199, 2, 3, 4, 5, 6, 7, 8);
break;
case 10:
func_150(&Var1, 0, 182, 2, 3, 4, 5, 6, 7, 8);
break;
case 11:
func_150(&Var1, 0, 233, 2, 3, 4, 5, 6, 7, 8);
break;
case 12:
func_150(&Var1, 107, 167, 2, 3, 4, 5, 6, 7, 8);
break;
case 13:
func_150(&Var1, 109, 170, 2, 3, 4, 5, 323, 7, 8);
break;
case 14:
func_150(&Var1, 119, 237, 2, 3, 4, 5, 6, 7, 8);
break;
case 15:
func_150(&Var1, 0, 221, 2, 3, 4, 5, 6, 7, 8);
break;
case 16:
func_150(&Var1, 114, 1, 2, 3, 4, 5, 6, 7, 8);
break;
case 17:
func_150(&Var1, 35, 268, 2, 3, 4, 5, 6, 7, 8);
break;
case 18:
func_150(&Var1, 0, 266, 2, 3, 4, 5, 6, 7, 8);
break;
case 19:
func_150(&Var1, 42, 1, 2, 3, 4, 5, 6, 7, 8);
break;
case 20:
func_150(&Var1, 76, 1, 2, 3, 4, 5, 6, 7, 8);
break;
case 21:
func_150(&Var1, 39, 235, 2, 3, 4, 5, 6, 7, 8);
break;
case 22:
func_150(&Var1, 41, 183, 2, 3, 4, 5, 6, 7, 8);
break;
case 23:
func_150(&Var1, 111, 194, 2, 3, 4, 5, 6, 7, 8);
break;
default:
func_149(&Var1, iParam0, iParam1, 25);
break;
}
break;
}
return Var1;
}
void func_149(int iParam0, int iParam1, int iParam2, int iParam3)
{
int iVar0;
struct<4> Var1;
vector3 vVar2;
int iVar3;
if (iParam2 != 0 && iParam2 != -99)
{
(*iParam0)[0] = 0;
(*iParam0)[1] = 1;
(*iParam0)[2] = 2;
(*iParam0)[3] = 3;
(*iParam0)[4] = 4;
(*iParam0)[5] = 5;
(*iParam0)[6] = 6;
(*iParam0)[7] = 7;
(*iParam0)[8] = 8;
iVar0 = 0;
if (iParam1 == joaat("player_zero"))
{
iVar0 = 0;
}
else if (iParam1 == joaat("player_one"))
{
iVar0 = 1;
}
else if (iParam1 == joaat("player_two"))
{
iVar0 = 2;
}
else if (iParam1 == joaat("mp_m_freemode_01"))
{
iVar0 = 3;
}
else if (iParam1 == joaat("mp_f_freemode_01"))
{
iVar0 = 4;
}
unk_0xE57EF7838ECC886A(iParam2, &Var1);
if (!unk_0x3B61940560400F58(Var1))
{
iVar3 = 0;
while (iVar3 < Var1.f_3)
{
if (unk_0x5AD89C73E28CAAB7(Var1.f_1, iVar3, &vVar2) && vVar2.z != -1)
{
if ((vVar2.x != 0 && vVar2.x != -1) && vVar2.x != 1849449579)
{
(*iParam0)[vVar2.z] = func_133(iParam1, vVar2.x, 14, iVar0);
}
else if (vVar2.y != -1)
{
(*iParam0)[vVar2.z] = vVar2.y;
}
}
iVar3++;
}
}
}
}
void func_150(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9)
{
(*iParam0)[0] = iParam1;
(*iParam0)[1] = iParam2;
(*iParam0)[2] = iParam3;
(*iParam0)[3] = iParam4;
(*iParam0)[4] = iParam5;
(*iParam0)[5] = iParam6;
(*iParam0)[6] = iParam7;
(*iParam0)[7] = iParam8;
(*iParam0)[8] = iParam9;
}
struct<17> func_151(int iParam0, int iParam1)
{
int iVar0;
struct<17> Var1;
Var1 = 15;
iVar0 = 0;
while (iVar0 <= 14)
{
Var1[iVar0] = -99;
iVar0++;
}
Var1.f_16 = 0;
switch (iParam0)
{
case joaat("player_zero"):
switch (iParam1)
{
case 0:
if (Global_106070.f_9057.f_99.f_58[120])
{
func_154(&Var1, -99, -99, 1, 1, 0, 0, 0, 0, 0, -99, 0, 0, 31);
}
else
{
func_154(&Var1, -99, -99, 0, 0, 0, 0, 0, 0, 0, -99, 0, 0, 31);
}
break;
case 1:
func_154(&Var1, -99, -99, 16, 16, 6, 1, 1, 0, 1, -99, 0, 0, 0);
break;
case 2:
func_154(&Var1, -99, -99, 36, 21, 6, 1, 5, 0, 0, -99, 0, 0, 8);
break;
case 3:
func_154(&Var1, -99, -99, 65, 36, 6, 0, 2, 0, 0, -99, 0, 0, 31);
break;
case 4:
func_154(&Var1, -99, -99, 61, 32, 6, 0, 0, 7, 3, -99, 0, 0, 2);
break;
case 5:
func_154(&Var1, -99, -99, Global_106070.f_2355.f_539.f_196[0], Global_106070.f_2355.f_539.f_200[0], 6, 3, 0, 0, 0, -99, 0, 0, 3);
break;
case 6:
func_154(&Var1, -99, -99, 92, 72, 7, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 7:
func_154(&Var1, -99, -99, 85, 95, 6, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 8:
func_154(&Var1, -99, -99, 170, 80, 6, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 9:
func_154(&Var1, -99, -99, 171, 89, 6, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 10:
func_154(&Var1, -99, -99, 33, 18, 8, 10, 3, 8, 0, -99, 0, 0, 4);
break;
case 11:
func_154(&Var1, -99, -99, 33, 18, 17, 10, 4, 8, 0, -99, 0, 0, 5);
break;
case 12:
func_154(&Var1, -99, -99, 35, 20, 9, 10, 23, 0, 0, -99, 0, 0, 31);
break;
case 13:
func_154(&Var1, -99, -99, 69, 40, 13, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 14:
func_154(&Var1, -99, -99, 62, 33, 38, 0, 8, 0, 0, -99, 0, 0, 6);
break;
case 15:
func_154(&Var1, -99, -99, 63, 34, 6, 10, 0, 0, 4, -99, 0, 0, 31);
break;
case 16:
func_154(&Var1, -99, -99, 174, 93, 18, 0, 18, 0, 0, -99, 0, 0, 31);
break;
case 17:
func_154(&Var1, -99, -99, 76, 46, 6, 10, 0, 0, 0, -99, 0, 0, 31);
break;
case 18:
func_154(&Var1, -99, -99, 35, 20, 9, 10, 0, 4, 0, -99, 0, 0, 7);
break;
case 19:
func_154(&Var1, -99, -99, 64, 35, 6, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 20:
func_154(&Var1, -99, -99, 66, 37, 6, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 21:
func_154(&Var1, -99, -99, 67, 38, 6, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 22:
func_154(&Var1, -99, -99, 68, 39, 6, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 23:
func_154(&Var1, -99, -99, 177, 94, 19, 9, 0, 0, 0, -99, 0, 0, 31);
break;
case 24:
func_154(&Var1, -99, -99, 35, 20, 9, 10, 4, 0, 0, -99, 0, 0, 31);
break;
case 25:
func_154(&Var1, -99, -99, 97, 81, 6, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 26:
func_154(&Var1, -99, -99, 3, 3, 0, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 27:
func_154(&Var1, -99, -99, 129, 81, 6, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 28:
func_154(&Var1, -99, -99, 170, 80, 6, 0, 13, 0, 0, -99, 0, 0, 31);
break;
case 29:
func_154(&Var1, -99, -99, 2, 2, 0, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 30:
func_154(&Var1, -99, -99, 161, 3, 0, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 31:
func_154(&Var1, -99, -99, 3, 3, 0, 12, 0, 0, 0, -99, 0, 1, 31);
break;
case 32:
func_154(&Var1, -99, -99, 85, 55, 6, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 33:
func_154(&Var1, -99, -99, 86, 4, 20, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 34:
func_154(&Var1, -99, -99, 44, 97, 6, 0, 0, 0, 0, -99, 0, 2, 31);
break;
case 35:
func_154(&Var1, -99, -99, 85, 81, 6, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 36:
func_154(&Var1, -99, -99, 4, 4, 0, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 37:
func_154(&Var1, -99, -99, 5, 5, 0, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 38:
func_154(&Var1, -99, -99, 6, 6, 0, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 39:
func_154(&Var1, -99, -99, 7, 7, 0, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 40:
func_154(&Var1, -99, -99, 8, 8, 0, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 41:
func_154(&Var1, -99, -99, 9, 9, 0, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 42:
func_154(&Var1, -99, -99, 10, 10, 0, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 43:
func_154(&Var1, -99, -99, 11, 11, 0, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 44:
func_154(&Var1, -99, -99, 12, 12, 0, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 45:
func_154(&Var1, -99, -99, 13, 13, 0, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 46:
func_154(&Var1, -99, -99, 14, 14, 0, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 47:
func_154(&Var1, -99, -99, 15, 15, 0, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 48:
func_154(&Var1, -99, -99, 91, 71, 14, 13, 0, 0, 0, -99, 0, 0, 31);
break;
case 49:
func_154(&Var1, -99, -99, 35, 20, 9, 10, 0, 0, 0, -99, 0, 0, 31);
break;
case 50:
func_154(&Var1, -99, -99, 33, 18, 8, 10, 3, 8, 0, -99, 0, 0, 9);
break;
case 51:
func_154(&Var1, -99, -99, 169, 95, 6, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 52:
func_154(&Var1, -99, -99, 169, 72, 6, 0, 0, 0, 0, -99, 0, 0, 31);
break;
default:
func_152(&Var1, iParam0, iParam1, 53);
break;
}
break;
case joaat("player_one"):
switch (iParam1)
{
case 0:
func_154(&Var1, -99, -99, 73, 24, 18, 0, 26, 0, 0, -99, 0, 0, 31);
break;
case 1:
func_154(&Var1, -99, -99, 22, 10, 64, 0, 24, 0, 0, -99, 0, 43, 31);
break;
case 2:
func_154(&Var1, -99, -99, Global_106070.f_2355.f_539.f_196[1], Global_106070.f_2355.f_539.f_200[1], 17, 2, 26, 0, 0, -99, 0, 45, 31);
break;
case 3:
func_154(&Var1, -99, -99, 23, 11, 13, 5, 2, 4, 0, -99, 0, 0, 1);
break;
case 4:
func_154(&Var1, -99, -99, 23, 11, 34, 5, 26, 0, 0, -99, 0, 0, 2);
break;
case 5:
func_154(&Var1, -99, 20, 159, 69, 17, 5, 26, 0, 0, -99, 0, 0, 31);
break;
case 6:
func_154(&Var1, -99, -99, 40, 13, 14, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 7:
func_154(&Var1, -99, -99, 90, 32, 17, 1, 8, 0, 1, -99, 0, 0, 3);
break;
case 8:
func_154(&Var1, -99, -99, 17, 5, 12, 0, 26, 0, 2, -99, 0, 0, 5);
break;
case 9:
func_154(&Var1, -99, -99, 16, 4, 12, 0, 26, 0, 0, -99, 0, 0, 31);
break;
case 10:
func_154(&Var1, -99, -99, 208, 71, 17, 0, 26, 0, 0, -99, 0, 0, 31);
break;
case 11:
func_154(&Var1, -99, -99, 259, 10, 35, 0, 24, 0, 0, -99, 0, 43, 31);
break;
case 12:
func_154(&Var1, -99, -99, 18, 6, 12, 0, 26, 0, 0, -99, 0, 0, 31);
break;
case 13:
func_154(&Var1, -99, -99, 19, 7, 12, 0, 26, 0, 0, -99, 0, 0, 31);
break;
case 14:
func_154(&Var1, -99, -99, 20, 8, 12, 0, 26, 0, 0, -99, 0, 0, 31);
break;
case 15:
func_154(&Var1, -99, -99, 21, 9, 12, 0, 26, 0, 0, -99, 0, 0, 31);
break;
case 16:
func_154(&Var1, -99, -99, 135, 40, 0, 0, 26, 0, 0, -99, 0, 0, 31);
break;
case 17:
func_154(&Var1, -99, -99, 74, 24, 52, 0, 26, 0, 0, -99, 0, 0, 31);
break;
case 18:
func_154(&Var1, -99, -99, 176, 53, 26, 5, 26, 0, 0, -99, 0, 41, 31);
break;
case 19:
func_154(&Var1, -99, -99, 125, 24, 18, 0, 26, 0, 0, -99, 0, 0, 31);
break;
case 20:
func_154(&Var1, -99, -99, 162, 24, 36, 0, 26, 0, 0, -99, 0, 0, 31);
break;
case 21:
func_154(&Var1, -99, -99, 75, 24, 36, 0, 26, 0, 0, -99, 0, 0, 4);
break;
case 22:
func_154(&Var1, -99, -99, 227, 53, 25, 0, 27, 0, 0, -99, 0, 25, 31);
break;
case 23:
func_154(&Var1, -99, -99, 228, 54, 25, 0, 28, 0, 0, -99, 0, 26, 31);
break;
case 24:
func_154(&Var1, -99, -99, 229, 55, 25, 0, 29, 0, 0, -99, 0, 27, 31);
break;
case 25:
func_154(&Var1, -99, -99, 230, 56, 25, 0, 30, 0, 0, -99, 0, 28, 31);
break;
case 26:
func_154(&Var1, -99, -99, 231, 57, 25, 0, 31, 0, 0, -99, 0, 29, 31);
break;
case 27:
func_154(&Var1, -99, -99, 232, 58, 25, 0, 32, 0, 0, -99, 0, 30, 31);
break;
case 28:
func_154(&Var1, -99, -99, 233, 59, 25, 0, 33, 0, 0, -99, 0, 31, 31);
break;
case 29:
func_154(&Var1, -99, -99, 234, 60, 25, 0, 34, 0, 0, -99, 0, 32, 31);
break;
case 30:
func_154(&Var1, -99, -99, 235, 61, 25, 0, 35, 0, 0, -99, 0, 33, 31);
break;
case 31:
func_154(&Var1, -99, -99, 236, 62, 25, 0, 36, 0, 0, -99, 0, 34, 31);
break;
case 32:
func_154(&Var1, -99, -99, 237, 63, 25, 0, 37, 0, 0, -99, 0, 35, 31);
break;
case 33:
func_154(&Var1, -99, -99, 238, 64, 25, 0, 38, 0, 0, -99, 0, 36, 31);
break;
case 34:
func_154(&Var1, -99, -99, 239, 65, 25, 0, 39, 0, 0, -99, 0, 37, 31);
break;
case 35:
func_154(&Var1, -99, -99, 240, 66, 25, 0, 40, 0, 0, -99, 0, 38, 31);
break;
case 36:
func_154(&Var1, -99, -99, 241, 67, 25, 0, 41, 0, 0, -99, 0, 39, 31);
break;
case 37:
func_154(&Var1, -99, -99, 242, 68, 25, 0, 42, 0, 0, -99, 0, 40, 31);
break;
case 38:
func_154(&Var1, -99, -99, 260, 72, 17, 0, 26, 0, 0, -99, 0, 0, 31);
break;
case 39:
func_154(&Var1, -99, -99, 125, 24, 0, 0, 26, 0, 0, -99, 0, 0, 31);
break;
case 40:
func_154(&Var1, -99, -99, 123, 24, 0, 0, 26, 0, 0, -99, 0, 0, 31);
break;
case 41:
func_154(&Var1, -99, -99, 159, 69, 17, 5, 26, 0, 0, -99, 0, 0, 31);
break;
case 42:
func_154(&Var1, -99, -99, 89, 22, 15, 6, 26, 0, 0, -99, 0, 0, 31);
break;
case 43:
func_154(&Var1, -99, -99, 317, 69, 17, 0, 0, 0, 51, -99, 0, 0, 6);
break;
case 44:
func_154(&Var1, -99, -99, 30, 23, 16, 0, 0, 0, 0, -99, 0, 0, 7);
break;
case 45:
func_154(&Var1, -99, -99, 106, 70, 17, 5, 26, 0, 0, -99, 0, 0, 8);
break;
case 46:
func_154(&Var1, -99, -99, 117, 24, 20, 5, 26, 0, 52, -99, 0, 0, 31);
break;
default:
func_152(&Var1, iParam0, iParam1, 47);
break;
}
break;
case joaat("player_two"):
switch (iParam1)
{
case 0:
func_154(&Var1, -99, -99, 0, 91, 28, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 1:
func_154(&Var1, -99, -99, 17, 5, 8, 2, 3, 0, 0, -99, 0, 0, 8);
break;
case 2:
func_154(&Var1, -99, -99, 43, 8, 12, 3, 5, 0, 0, -99, 0, 0, 1);
break;
case 3:
func_154(&Var1, -99, -99, 50, 14, 8, 0, 15, 6, 3, -99, 0, 0, 2);
break;
case 4:
func_154(&Var1, -99, -99, Global_106070.f_2355.f_539.f_196[2], Global_106070.f_2355.f_539.f_200[2], 8, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 5:
func_154(&Var1, -99, -99, 95, 33, 8, 0, 15, 0, 0, -99, 0, 0, 6);
break;
case 6:
func_154(&Var1, -99, -99, 49, 13, 10, 4, 6, 0, 0, -99, 0, 0, 3);
break;
case 7:
func_154(&Var1, -99, -99, 49, 13, 14, 4, 15, 0, 0, -99, 0, 0, 4);
break;
case 8:
func_154(&Var1, -99, -99, 79, 32, 8, 5, 7, 0, 0, -99, 0, 0, 31);
break;
case 9:
func_154(&Var1, -99, -99, 53, 17, 11, 0, 15, 0, 0, -99, 0, 0, 31);
break;
case 10:
func_154(&Var1, -99, -99, 96, 81, 8, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 11:
func_154(&Var1, -99, -99, 51, 15, 33, 0, 8, 0, 0, -99, 0, 0, 5);
break;
case 12:
func_154(&Var1, -99, -99, 0, 93, 29, 0, 13, 0, 0, -99, 0, 0, 31);
break;
case 13:
func_154(&Var1, -99, -99, 52, 16, 30, 5, 15, 0, 0, -99, 0, 0, 31);
break;
case 14:
func_154(&Var1, -99, -99, 241, 92, 16, 0, 12, 0, 0, -99, 0, 0, 31);
break;
case 15:
func_154(&Var1, -99, -99, 97, 34, 8, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 16:
func_154(&Var1, -99, -99, 44, 9, 12, 0, 15, 0, 0, -99, 0, 0, 31);
break;
case 17:
func_154(&Var1, -99, -99, 45, 10, 12, 0, 15, 0, 0, -99, 0, 0, 31);
break;
case 18:
func_154(&Var1, -99, -99, 46, 11, 12, 0, 15, 0, 0, -99, 0, 0, 31);
break;
case 19:
func_154(&Var1, -99, -99, 47, 12, 12, 0, 15, 0, 0, -99, 0, 0, 31);
break;
case 20:
func_154(&Var1, -99, -99, 161, 53, 8, 0, 15, 0, 0, -99, 0, 0, 31);
break;
case 21:
func_154(&Var1, -99, -99, 0, 44, 8, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 22:
func_154(&Var1, -99, -99, 98, 0, 28, 0, 15, 0, 0, -99, 0, 0, 31);
break;
case 23:
func_154(&Var1, -99, -99, 27, 0, 31, 0, 15, 0, 0, -99, 0, 0, 31);
break;
case 24:
func_154(&Var1, -99, -99, 190, 71, 8, 0, 15, 0, 0, -99, 0, 0, 31);
break;
case 25:
func_154(&Var1, -99, -99, 191, 72, 8, 0, 15, 0, 0, -99, 0, 0, 31);
break;
case 26:
func_154(&Var1, -99, -99, 192, 73, 8, 0, 15, 0, 0, -99, 0, 0, 31);
break;
case 27:
func_154(&Var1, -99, -99, 193, 74, 8, 0, 15, 0, 0, -99, 0, 0, 31);
break;
case 28:
func_154(&Var1, -99, -99, 194, 75, 8, 0, 15, 0, 0, -99, 0, 0, 31);
break;
case 29:
func_154(&Var1, -99, -99, 195, 76, 8, 0, 15, 0, 0, -99, 0, 0, 31);
break;
case 30:
func_154(&Var1, -99, -99, 196, 77, 8, 0, 15, 0, 0, -99, 0, 0, 31);
break;
case 31:
func_154(&Var1, -99, -99, 197, 78, 8, 0, 15, 0, 0, -99, 0, 0, 31);
break;
case 32:
func_154(&Var1, -99, -99, 198, 79, 8, 0, 15, 0, 0, -99, 0, 0, 31);
break;
case 33:
func_154(&Var1, -99, -99, 199, 80, 8, 0, 15, 0, 0, -99, 0, 0, 31);
break;
case 34:
func_154(&Var1, -99, -99, 200, 62, 16, 0, 15, 0, 0, -99, 0, 0, 31);
break;
case 35:
func_154(&Var1, -99, -99, 201, 63, 16, 0, 15, 0, 0, -99, 0, 0, 31);
break;
case 36:
func_154(&Var1, -99, -99, 202, 64, 16, 0, 15, 0, 0, -99, 0, 0, 31);
break;
case 37:
func_154(&Var1, -99, -99, 203, 65, 16, 0, 15, 0, 0, -99, 0, 0, 31);
break;
case 38:
func_154(&Var1, -99, -99, 204, 66, 16, 0, 15, 0, 0, -99, 0, 0, 31);
break;
case 39:
func_154(&Var1, -99, -99, 205, 67, 16, 0, 15, 0, 0, -99, 0, 0, 31);
break;
case 40:
func_154(&Var1, -99, -99, 206, 68, 16, 0, 15, 0, 0, -99, 0, 0, 31);
break;
case 41:
func_154(&Var1, -99, -99, 2, 43, 8, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 42:
func_154(&Var1, -99, -99, 55, 0, 28, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 43:
func_154(&Var1, -99, -99, 0, 52, 8, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 44:
func_154(&Var1, -99, -99, 70, 30, 32, 6, 15, 0, 0, -99, 0, 0, 31);
break;
case 45:
func_154(&Var1, -99, -99, 19, 91, 28, 0, 0, 0, 0, -99, 0, 0, 7);
break;
case 46:
func_154(&Var1, -99, -99, 0, 0, 28, 0, 0, 0, 0, -99, 0, 0, 31);
break;
case 47:
func_154(&Var1, -99, -99, 79, 32, 8, 5, 15, 0, 0, -99, 0, 0, 31);
break;
default:
func_152(&Var1, iParam0, iParam1, 48);
break;
}
break;
case joaat("mp_m_freemode_01"):
switch (iParam1)
{
case 0:
func_154(&Var1, -99, -99, 0, 0, 10, -99, 0, -99, -99, 0, 0, 0, 31);
break;
case 1:
func_154(&Var1, -99, -99, 1, 127, 38, -99, 2, 0, 0, 0, 0, 62, 0);
break;
case 2:
func_154(&Var1, -99, -99, 0, 248, 45, -99, 240, 0, 0, 0, 0, 144, 1);
break;
case 3:
func_154(&Var1, -99, -99, 4, 31, 25, -99, 240, 0, 0, 0, 0, 231, 2);
break;
case 4:
func_154(&Var1, -99, -99, 1, 66, 10, -99, 21, 0, 0, 0, 0, 123, 3);
break;
case 5:
func_154(&Var1, -99, -99, 1, 93, 141, -99, 3, 0, 0, 0, 0, 114, 4);
break;
case 6:
func_154(&Var1, -99, -99, 1, 116, 113, -99, 7, 0, 0, 0, 0, 113, 5);
break;
case 7:
func_154(&Var1, -99, -99, 1, 61, 136, -99, 27, 0, 0, 0, 0, 61, 6);
break;
case 8:
func_154(&Var1, -99, -99, 0, 112, 10, -99, 240, 0, 0, 0, 0, 8, 7);
break;
case 9:
func_154(&Var1, -99, -99, 4, 131, 24, -99, 240, 0, 0, 0, 0, 223, 8);
break;
case 10:
func_154(&Var1, -99, -99, 1, 209, 188, -99, 208, 0, 0, 0, 0, 64, 9);
break;
case 11:
func_154(&Var1, -99, -99, 1, 209, 160, -99, 211, 0, 0, 0, 43, 157, 10);
break;
case 12:
func_154(&Var1, -99, -99, 1, 162, 174, -99, 201, 0, 0, 0, 0, 158, 11);
break;
case 13:
func_154(&Var1, -99, -99, 1, 4, 240, -99, 34, 0, 0, 0, 0, 97, 12);
break;
case 14:
func_154(&Var1, -99, -99, 1, 128, 232, -99, 43, 0, 0, 0, 0, 102, 13);
break;
case 15:
func_154(&Var1, -99, -99, 1, 66, 65, -99, 224, 0, 0, 0, 0, 100, 14);
break;
case 16:
func_154(&Var1, -99, -99, 1, 65, 172, -99, 202, 0, 0, 0, 0, 64, 15);
break;
case 17:
func_154(&Var1, -99, -99, 1, 64, 10, -99, 1, 0, 0, 0, 0, 66, 16);
break;
case 18:
func_154(&Var1, -99, -99, 5, 98, 80, -99, 240, 0, 0, 0, 0, 87, 17);
break;
case 19:
func_154(&Var1, -99, -99, 5, 192, 96, -99, 240, 0, 0, 0, 0, 80, 18);
break;
case 20:
func_154(&Var1, -99, -99, 1, 124, 96, -99, 11, 0, 0, 0, 0, 110, 19);
break;
case 21:
func_154(&Var1, -99, -99, 0, 80, 114, -99, 240, 0, 0, 0, 0, 2, 20);
break;
case 22:
func_154(&Var1, -99, -99, 6, 43, 112, -99, 82, 0, 0, 0, 0, 48, 21);
break;
case 23:
func_154(&Var1, -99, -99, 1, 116, 144, -99, 2, 0, 0, 0, 0, 108, 22);
break;
case 24:
func_154(&Var1, -99, -99, 1, 63, 38, -99, 3, 0, 0, 0, 0, 63, 23);
break;
case 25:
func_154(&Var1, -99, -99, 2, 64, 10, -99, 240, 0, 0, 0, 0, 41, 24);
break;
default:
func_152(&Var1, iParam0, iParam1, 26);
break;
}
break;
case joaat("mp_f_freemode_01"):
switch (iParam1)
{
case 0:
func_154(&Var1, -99, -99, 0, 0, 0, -99, 0, -99, -99, 0, -99, 0, 31);
break;
case 1:
func_154(&Var1, -99, -99, 5, 136, 241, -99, 47, 0, 0, 0, 0, 21, 31);
break;
case 2:
func_154(&Var1, -99, -99, 4, 1, 96, -99, 32, 0, 0, 0, 7, 215, 0);
break;
case 3:
func_154(&Var1, -99, -99, 1, 73, 241, -99, 3, 0, 0, 0, 0, 25, 1);
break;
case 4:
func_154(&Var1, -99, -99, 2, 88, 217, -99, 32, 0, 0, 0, 0, 33, 2);
break;
case 5:
func_154(&Var1, -99, -99, 9, 7, 98, -99, 32, 0, 0, 0, 7, 153, 3);
break;
case 6:
func_154(&Var1, -99, -99, 1, 140, 241, -99, 7, 0, 0, 0, 31, 16, 4);
break;
case 7:
func_154(&Var1, -99, -99, 4, 139, 112, -99, 32, 0, 0, 0, 49, 78, 5);
break;
case 8:
func_154(&Var1, -99, -99, 1, 193, 48, -99, 108, 0, 0, 0, 0, 17, 6);
break;
case 9:
func_154(&Var1, -99, -99, 5, 114, 97, -99, 103, 0, 0, 0, 0, 98, 7);
break;
case 10:
func_154(&Var1, -99, -99, 9, 134, 239, -99, 32, 0, 0, 0, 2, 144, 8);
break;
case 11:
func_154(&Var1, -99, -99, 5, 152, 96, -99, 10, 0, 0, 0, 31, 96, 9);
break;
case 12:
func_154(&Var1, -99, -99, 6, 129, 1, -99, 96, 0, 0, 0, 5, 120, 10);
break;
case 13:
func_154(&Var1, -99, -99, 5, 0, 0, -99, 10, 0, 0, 0, 0, 130, 31);
break;
case 14:
func_154(&Var1, -99, -99, 4, 159, 96, -99, 32, 0, 0, 0, 22, 214, 11);
break;
case 15:
func_154(&Var1, -99, -99, 9, 232, 213, -99, 32, 0, 0, 0, 22, 147, 12);
break;
case 16:
func_154(&Var1, -99, -99, 2, 8, 98, -99, 32, 0, 0, 0, 33, 39, 13);
break;
case 17:
func_154(&Var1, -99, -99, 5, 150, 235, -99, 106, 0, 0, 0, 0, 128, 14);
break;
case 18:
func_154(&Var1, -99, -99, 6, 96, 97, -99, 7, 0, 0, 0, 32, 114, 15);
break;
case 19:
func_154(&Var1, -99, -99, 4, 48, 64, -99, 32, 0, 0, 0, 0, 89, 16);
break;
case 20:
func_154(&Var1, -99, -99, 4, 62, 64, -99, 32, 0, 0, 0, 0, 78, 17);
break;
case 21:
func_154(&Var1, -99, -99, 4, 49, 65, -99, 32, 0, 0, 0, 8, 80, 31);
break;
case 22:
func_154(&Var1, -99, -99, 3, 20, 16, -99, 32, 0, 0, 0, 0, 49, 18);
break;
case 23:
func_154(&Var1, -99, -99, 0, 73, 178, -99, 32, 0, 0, 0, 38, 11, 19);
break;
case 24:
func_154(&Var1, -99, -99, 5, 135, 53, -99, 9, 0, 0, 0, 29, 27, 20);
break;
case 25:
func_154(&Var1, -99, -99, 7, 233, 176, -99, 120, 0, 0, 0, 11, 160, 21);
break;
case 26:
func_154(&Var1, -99, -99, 4, 34, 179, -99, 32, 0, 0, 0, 0, 77, 22);
break;
case 27:
func_154(&Var1, -99, -99, 15, 131, 93, -99, 32, 0, 0, 0, 0, 250, 23);
break;
default:
func_152(&Var1, iParam0, iParam1, 28);
break;
}
break;
}
return Var1;
}
void func_152(var uParam0, int iParam1, int iParam2, int iParam3)
{
int iVar0;
struct<5> Var1;
vector3 vVar2;
struct<2> Var3;
int iVar4;
(*uParam0)[0] = 0;
(*uParam0)[2] = -99;
(*uParam0)[3] = 0;
(*uParam0)[4] = 0;
(*uParam0)[6] = 0;
(*uParam0)[5] = 0;
(*uParam0)[8] = 0;
(*uParam0)[9] = 0;
(*uParam0)[10] = 0;
(*uParam0)[1] = 0;
(*uParam0)[7] = 0;
(*uParam0)[11] = 0;
(*uParam0)[13] = -99;
(*uParam0)[14] = -99;
uParam0->f_16 = 0;
iVar0 = 0;
if (iParam1 == joaat("player_zero"))
{
iVar0 = 0;
(*uParam0)[13] = (10 + (iParam2 - iParam3));
}
else if (iParam1 == joaat("player_one"))
{
iVar0 = 1;
(*uParam0)[13] = (9 + (iParam2 - iParam3));
}
else if (iParam1 == joaat("player_two"))
{
iVar0 = 2;
(*uParam0)[13] = (9 + (iParam2 - iParam3));
}
else if (iParam1 == joaat("mp_m_freemode_01"))
{
iVar0 = 3;
}
else if (iParam1 == joaat("mp_f_freemode_01"))
{
iVar0 = 4;
}
unk_0xDE2FA336A2CE65DB(iVar0, 0);
unk_0xEBAB77C605128A7D((iParam2 - iParam3), &Var1);
if (!unk_0x3B61940560400F58(Var1))
{
iVar4 = 0;
while (iVar4 < Var1.f_4)
{
if (unk_0x4D0CC9FD287B297C(Var1.f_1, iVar4, &vVar2))
{
if ((vVar2.x != 0 && vVar2.x != -1) && vVar2.x != 1849449579)
{
if (vVar2.z == 10)
{
unk_0x4EC128057F5B6F27(&Var3);
unk_0xDD7BFAE08DAD69B6(vVar2.x, &Var3);
if (vVar2.x != Var3.f_1)
{
uParam0->f_16 = 1;
}
}
if (vVar2.z == 10 && uParam0->f_16)
{
(*uParam0)[func_153(vVar2.z)] = vVar2.x;
uParam0->f_16 = 1;
}
else
{
(*uParam0)[func_153(vVar2.z)] = func_133(iParam1, vVar2.x, func_153(vVar2.z), iVar0);
}
}
else if (vVar2.y != -1)
{
(*uParam0)[func_153(vVar2.z)] = vVar2.y;
}
}
iVar4++;
}
if (Var1.f_3 == 0)
{
(*uParam0)[13] = -99;
}
else
{
(*uParam0)[13] = Var1.f_1;
}
}
}
int func_153(int iParam0)
{
switch (iParam0)
{
case 0:
return 0;
break;
case 2:
return 2;
break;
case 3:
return 3;
break;
case 4:
return 4;
break;
case 6:
return 6;
break;
case 5:
return 5;
break;
case 8:
return 8;
break;
case 9:
return 9;
break;
case 10:
return 10;
break;
case 1:
return 1;
break;
case 7:
return 7;
break;
case 11:
return 11;
break;
}
return 0;
}
void func_154(var uParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10, int iParam11, int iParam12, int iParam13)
{
(*uParam0)[0] = iParam1;
(*uParam0)[2] = iParam2;
(*uParam0)[3] = iParam3;
(*uParam0)[4] = iParam4;
(*uParam0)[6] = iParam5;
(*uParam0)[5] = iParam6;
(*uParam0)[8] = iParam7;
(*uParam0)[9] = iParam8;
(*uParam0)[10] = iParam9;
(*uParam0)[1] = iParam10;
(*uParam0)[7] = iParam11;
(*uParam0)[11] = iParam12;
(*uParam0)[13] = iParam13;
(*uParam0)[14] = -99;
}
struct<14> func_155(int iParam0, int iParam1, int iParam2, int iParam3)
{
func_218();
if (iParam0 == joaat("player_zero"))
{
func_200(iParam1, iParam2);
}
else if (iParam0 == joaat("player_one"))
{
func_181(iParam1, iParam2);
}
else if (iParam0 == joaat("player_two"))
{
func_156(iParam1, iParam2);
}
return Global_71017[0 /*14*/];
}
void func_156(int iParam0, int iParam1)
{
switch (iParam0)
{
case 0:
func_180(iParam1);
break;
case 2:
func_179(iParam1);
break;
case 3:
func_176(iParam1);
break;
case 4:
func_175(iParam1);
break;
case 6:
func_174(iParam1);
break;
case 5:
func_173(iParam1);
break;
case 8:
func_172(iParam1);
break;
case 9:
func_171(iParam1);
break;
case 10:
func_170(iParam1);
break;
case 1:
func_169(iParam1);
break;
case 7:
func_168(iParam1);
break;
case 11:
func_167(iParam1);
break;
case 12:
func_166(iParam1);
break;
case 13:
func_165(iParam1);
break;
case 14:
func_157(iParam1);
break;
}
}
void func_157(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 14;
Global_71017[0 /*14*/].f_5 = 2;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 0;
break;
case 1:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 1;
break;
case 2:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 2;
break;
case 3:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 3;
break;
case 4:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 4;
break;
case 5:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 5;
break;
case 6:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 6;
break;
case 7:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 7;
break;
case 8:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 8;
break;
case 154:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
bVar0 = true;
iVar5 = 2;
break;
case 88:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
bVar0 = true;
iVar5 = 10;
break;
case 89:
StringCopy(&Var2, "PROPS_P2_E1", 16);
iVar3 = 1;
iVar4 = 0;
iVar1 = 45;
iVar5 = 10;
break;
case 90:
StringCopy(&Var2, "PROPS_P2_E2", 16);
iVar3 = 2;
iVar4 = 0;
iVar5 = 10;
break;
case 91:
StringCopy(&Var2, "PROPS_P2_E2_1", 16);
iVar3 = 2;
iVar4 = 1;
iVar1 = 50;
iVar5 = 10;
break;
case 92:
StringCopy(&Var2, "PROPS_P2_E2_2", 16);
iVar3 = 2;
iVar4 = 2;
iVar1 = 55;
iVar5 = 10;
break;
case 93:
StringCopy(&Var2, "PROPS_P2_E2_3", 16);
iVar3 = 2;
iVar4 = 3;
iVar1 = 52;
iVar5 = 10;
break;
case 94:
StringCopy(&Var2, "PROPS_P2_E2_4", 16);
iVar3 = 2;
iVar4 = 4;
iVar1 = 54;
iVar5 = 10;
break;
case 95:
StringCopy(&Var2, "PROPS_P2_E2_5", 16);
iVar3 = 2;
iVar4 = 5;
iVar1 = 54;
iVar5 = 10;
break;
case 96:
StringCopy(&Var2, "PROPS_P2_E2_6", 16);
iVar3 = 2;
iVar4 = 6;
iVar1 = 55;
iVar5 = 10;
break;
case 97:
StringCopy(&Var2, "PROPS_P2_E2_7", 16);
iVar3 = 2;
iVar4 = 7;
iVar1 = 55;
iVar5 = 10;
break;
case 98:
StringCopy(&Var2, "PROPS_P2_E2_8", 16);
iVar3 = 2;
iVar4 = 8;
iVar1 = 58;
iVar5 = 10;
break;
case 99:
StringCopy(&Var2, "PROPS_P2_E2_9", 16);
iVar3 = 2;
iVar4 = 9;
iVar1 = 58;
iVar5 = 10;
break;
case 100:
StringCopy(&Var2, "PROPS_P2_E3", 16);
iVar3 = 3;
iVar4 = 0;
iVar1 = 75;
iVar5 = 10;
break;
case 101:
StringCopy(&Var2, "PROPS_P2_E3_1", 16);
iVar3 = 3;
iVar4 = 1;
iVar1 = 75;
iVar5 = 10;
break;
case 102:
StringCopy(&Var2, "PROPS_P2_E3_2", 16);
iVar3 = 3;
iVar4 = 2;
iVar1 = 75;
iVar5 = 10;
break;
case 103:
StringCopy(&Var2, "PROPS_P2_E3_3", 16);
iVar3 = 3;
iVar4 = 3;
iVar1 = 75;
iVar5 = 10;
break;
case 104:
StringCopy(&Var2, "PROPS_P2_E3_4", 16);
iVar3 = 3;
iVar4 = 4;
iVar1 = 75;
iVar5 = 10;
break;
case 105:
StringCopy(&Var2, "PROPS_P2_E3_5", 16);
iVar3 = 3;
iVar4 = 5;
iVar1 = 75;
iVar5 = 10;
break;
case 106:
StringCopy(&Var2, "PROPS_P2_E3_6", 16);
iVar3 = 3;
iVar4 = 6;
iVar1 = 75;
iVar5 = 10;
break;
case 107:
StringCopy(&Var2, "PROPS_P2_E3_7", 16);
iVar3 = 3;
iVar4 = 7;
iVar1 = 75;
iVar5 = 10;
break;
case 108:
StringCopy(&Var2, "PROPS_P2_E3_8", 16);
iVar3 = 3;
iVar4 = 8;
iVar1 = 75;
iVar5 = 10;
break;
case 109:
StringCopy(&Var2, "PROPS_P2_E3_9", 16);
iVar3 = 3;
iVar4 = 9;
iVar1 = 75;
iVar5 = 10;
break;
case 110:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 4;
iVar4 = 0;
iVar5 = 10;
break;
case 111:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 0;
iVar5 = 10;
break;
case 112:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 0;
iVar5 = 10;
break;
case 113:
StringCopy(&Var2, "PROPS_P2_E7_0", 16);
iVar3 = 7;
iVar4 = 0;
iVar1 = 60;
iVar5 = 10;
break;
case 114:
StringCopy(&Var2, "PROPS_P2_E7_1", 16);
iVar3 = 7;
iVar4 = 1;
iVar1 = 50;
iVar5 = 10;
break;
case 115:
StringCopy(&Var2, "PROPS_P2_E7_2", 16);
iVar3 = 7;
iVar4 = 2;
iVar1 = 50;
iVar5 = 10;
break;
case 116:
StringCopy(&Var2, "PROPS_P2_E7_3", 16);
iVar3 = 7;
iVar4 = 3;
iVar1 = 59;
iVar5 = 10;
break;
case 117:
StringCopy(&Var2, "PROPS_P2_E7_4", 16);
iVar3 = 7;
iVar4 = 4;
iVar1 = 55;
iVar5 = 10;
break;
case 118:
StringCopy(&Var2, "PROPS_P2_E7_5", 16);
iVar3 = 7;
iVar4 = 5;
iVar1 = 55;
iVar5 = 10;
break;
case 119:
StringCopy(&Var2, "PROPS_P2_E7_6", 16);
iVar3 = 7;
iVar4 = 6;
iVar1 = 65;
iVar5 = 10;
break;
case 120:
StringCopy(&Var2, "PROPS_P2_E7_7", 16);
iVar3 = 7;
iVar4 = 7;
iVar1 = 59;
iVar5 = 10;
break;
case 121:
StringCopy(&Var2, "PROPS_P2_E7_8", 16);
iVar3 = 7;
iVar4 = 8;
iVar1 = 79;
iVar5 = 10;
break;
case 122:
StringCopy(&Var2, "PROPS_P2_E7_9", 16);
iVar3 = 7;
iVar4 = 9;
iVar1 = 79;
iVar5 = 10;
break;
case 123:
StringCopy(&Var2, "PROPS_P2_E8_0", 16);
iVar3 = 8;
iVar4 = 0;
iVar1 = 150;
iVar5 = 10;
break;
case 124:
StringCopy(&Var2, "PROPS_P2_E8_1", 16);
iVar3 = 8;
iVar4 = 1;
iVar1 = 150;
iVar5 = 10;
break;
case 125:
StringCopy(&Var2, "PROPS_P2_E8_2", 16);
iVar3 = 8;
iVar4 = 2;
iVar1 = 170;
iVar5 = 10;
break;
case 126:
StringCopy(&Var2, "PROPS_P2_E8_3", 16);
iVar3 = 8;
iVar4 = 3;
iVar1 = 175;
iVar5 = 10;
break;
case 127:
StringCopy(&Var2, "PROPS_P2_E8_4", 16);
iVar3 = 8;
iVar4 = 4;
iVar1 = 180;
iVar5 = 10;
break;
case 128:
StringCopy(&Var2, "PROPS_P2_E8_5", 16);
iVar3 = 8;
iVar4 = 5;
iVar1 = 185;
iVar5 = 10;
break;
case 129:
StringCopy(&Var2, "PROPS_P2_E8_6", 16);
iVar3 = 8;
iVar4 = 6;
iVar1 = 189;
iVar5 = 10;
break;
case 130:
StringCopy(&Var2, "PROPS_P2_E8_7", 16);
iVar3 = 8;
iVar4 = 7;
iVar1 = 195;
iVar5 = 10;
break;
case 131:
StringCopy(&Var2, "PROPS_P2_E8_8", 16);
iVar3 = 8;
iVar4 = 8;
iVar1 = 210;
iVar5 = 10;
break;
case 132:
StringCopy(&Var2, "PROPS_P2_E8_9", 16);
iVar3 = 8;
iVar4 = 9;
iVar1 = 215;
iVar5 = 10;
break;
case 133:
StringCopy(&Var2, "PROPS_P2_E9_0", 16);
iVar3 = 9;
iVar4 = 0;
iVar1 = 165;
iVar5 = 10;
break;
case 134:
StringCopy(&Var2, "PROPS_P2_E9_1", 16);
iVar3 = 9;
iVar4 = 1;
iVar1 = 165;
iVar5 = 10;
break;
case 135:
StringCopy(&Var2, "PROPS_P2_E9_2", 16);
iVar3 = 9;
iVar4 = 2;
iVar1 = 169;
iVar5 = 10;
break;
case 136:
StringCopy(&Var2, "PROPS_P2_E9_3", 16);
iVar3 = 9;
iVar4 = 3;
iVar1 = 169;
iVar5 = 10;
break;
case 137:
StringCopy(&Var2, "PROPS_P2_E9_4", 16);
iVar3 = 9;
iVar4 = 4;
iVar1 = 175;
iVar5 = 10;
break;
case 138:
StringCopy(&Var2, "PROPS_P2_E9_5", 16);
iVar3 = 9;
iVar4 = 5;
iVar1 = 175;
iVar5 = 10;
break;
case 139:
StringCopy(&Var2, "PROPS_P2_E9_6", 16);
iVar3 = 9;
iVar4 = 6;
iVar1 = 175;
iVar5 = 10;
break;
case 140:
StringCopy(&Var2, "PROPS_P2_E9_7", 16);
iVar3 = 9;
iVar4 = 7;
iVar1 = 189;
iVar5 = 10;
break;
case 141:
StringCopy(&Var2, "PROPS_P2_E9_8", 16);
iVar3 = 9;
iVar4 = 8;
iVar1 = 195;
iVar5 = 10;
break;
case 142:
StringCopy(&Var2, "PROPS_P2_E9_9", 16);
iVar3 = 9;
iVar4 = 9;
iVar1 = 195;
iVar5 = 10;
break;
case 143:
StringCopy(&Var2, "PROPS_P2_E10_0", 16);
iVar3 = 10;
iVar4 = 0;
iVar1 = 49;
iVar5 = 10;
break;
case 144:
StringCopy(&Var2, "PROPS_P2_E10_1", 16);
iVar3 = 10;
iVar4 = 1;
iVar1 = 50;
iVar5 = 10;
break;
case 145:
StringCopy(&Var2, "PROPS_P2_E10_2", 16);
iVar3 = 10;
iVar4 = 2;
iVar1 = 52;
iVar5 = 10;
break;
case 146:
StringCopy(&Var2, "PROPS_P2_E10_3", 16);
iVar3 = 10;
iVar4 = 3;
iVar1 = 55;
iVar5 = 10;
break;
case 147:
StringCopy(&Var2, "PROPS_P2_E10_4", 16);
iVar3 = 10;
iVar4 = 4;
iVar1 = 60;
iVar5 = 10;
break;
case 148:
StringCopy(&Var2, "PROPS_P2_E10_5", 16);
iVar3 = 10;
iVar4 = 5;
iVar1 = 58;
iVar5 = 10;
break;
case 149:
StringCopy(&Var2, "PROPS_P2_E10_6", 16);
iVar3 = 10;
iVar4 = 6;
iVar1 = 60;
iVar5 = 10;
break;
case 150:
StringCopy(&Var2, "PROPS_P2_E10_7", 16);
iVar3 = 10;
iVar4 = 7;
iVar1 = 63;
iVar5 = 10;
break;
case 151:
StringCopy(&Var2, "PROPS_P2_E10_8", 16);
iVar3 = 10;
iVar4 = 8;
iVar1 = 65;
iVar5 = 10;
break;
case 152:
StringCopy(&Var2, "PROPS_P2_E10_9", 16);
iVar3 = 10;
iVar4 = 9;
iVar1 = 68;
iVar5 = 10;
break;
case 153:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 11;
iVar4 = 0;
iVar1 = 100;
iVar5 = 10;
break;
case 10:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
bVar0 = true;
iVar5 = 0;
break;
case 11:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 0;
bVar0 = true;
iVar5 = 0;
break;
case 12:
StringCopy(&Var2, "PROPS_P2_H2_0", 16);
iVar3 = 2;
iVar4 = 0;
iVar1 = 320;
iVar5 = 0;
break;
case 13:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 3;
iVar4 = 0;
bVar0 = true;
iVar5 = 0;
break;
case 14:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 4;
iVar4 = 0;
bVar0 = true;
iVar5 = 0;
break;
case 15:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 0;
bVar0 = true;
iVar5 = 0;
break;
case 16:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 0;
bVar0 = true;
iVar5 = 0;
break;
case 17:
StringCopy(&Var2, "PROPS_P2_H7_0", 16);
iVar3 = 7;
iVar4 = 0;
iVar5 = 0;
break;
case 18:
StringCopy(&Var2, "PROPS_P2_H7_1", 16);
iVar3 = 7;
iVar4 = 1;
iVar5 = 0;
break;
case 19:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 8;
iVar4 = 0;
bVar0 = true;
iVar5 = 0;
break;
case 20:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 0;
iVar5 = 0;
break;
case 21:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 1;
iVar5 = 0;
break;
case 22:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 2;
iVar5 = 0;
break;
case 23:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 3;
iVar5 = 0;
break;
case 24:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 4;
iVar5 = 0;
break;
case 25:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 5;
iVar5 = 0;
break;
case 26:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 6;
iVar5 = 0;
break;
case 27:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 7;
iVar5 = 0;
break;
case 28:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 8;
iVar5 = 0;
break;
case 29:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 9;
iVar5 = 0;
break;
case 30:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 10;
iVar5 = 0;
break;
case 31:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 11;
iVar5 = 0;
break;
case 32:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 12;
iVar5 = 0;
break;
case 33:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 13;
iVar5 = 0;
break;
case 34:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 14;
iVar5 = 0;
break;
case 35:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 15;
iVar5 = 0;
break;
case 36:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 10;
iVar4 = 0;
bVar0 = true;
iVar5 = 0;
break;
case 37:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 11;
iVar4 = 0;
iVar5 = 0;
break;
case 38:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 11;
iVar4 = 1;
iVar5 = 0;
break;
case 39:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 11;
iVar4 = 2;
iVar5 = 0;
break;
case 40:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 11;
iVar4 = 3;
iVar5 = 0;
break;
case 41:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 11;
iVar4 = 4;
iVar5 = 0;
break;
case 42:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 11;
iVar4 = 5;
iVar5 = 0;
break;
case 43:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 11;
iVar4 = 6;
iVar5 = 0;
break;
case 44:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 11;
iVar4 = 7;
iVar5 = 0;
break;
case 45:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 12;
iVar4 = 0;
iVar5 = 0;
break;
case 46:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 13;
iVar4 = 0;
iVar5 = 0;
break;
case 47:
StringCopy(&Var2, "PROPS_P1_H8_0", 16);
iVar3 = 14;
iVar4 = 0;
iVar1 = 270;
iVar5 = 0;
break;
case 48:
StringCopy(&Var2, "PROPS_P1_H8_1", 16);
iVar3 = 14;
iVar4 = 1;
iVar1 = 270;
iVar5 = 0;
break;
case 49:
StringCopy(&Var2, "PROPS_P1_H9_0", 16);
iVar3 = 15;
iVar4 = 0;
iVar1 = 200;
iVar5 = 0;
break;
case 50:
StringCopy(&Var2, "PROPS_P1_H9_1", 16);
iVar3 = 15;
iVar4 = 1;
iVar1 = 200;
iVar5 = 0;
break;
case 51:
StringCopy(&Var2, "PROPS_P1_H10_0", 16);
iVar3 = 16;
iVar4 = 0;
iVar1 = 350;
iVar5 = 0;
break;
case 52:
StringCopy(&Var2, "PROPS_P1_H10_1", 16);
iVar3 = 16;
iVar4 = 1;
iVar1 = 350;
iVar5 = 0;
break;
case 53:
StringCopy(&Var2, "PROPS_P1_H11_0", 16);
iVar3 = 17;
iVar4 = 0;
iVar1 = 450;
iVar5 = 0;
break;
case 54:
StringCopy(&Var2, "PROPS_P1_H12_0", 16);
iVar3 = 18;
iVar4 = 0;
iVar1 = 500;
iVar5 = 0;
break;
case 55:
StringCopy(&Var2, "PROPS_P1_H12_1", 16);
iVar3 = 18;
iVar4 = 1;
iVar1 = 500;
iVar5 = 0;
break;
case 56:
StringCopy(&Var2, "PROPS_P1_H13_0", 16);
iVar3 = 19;
iVar4 = 0;
iVar1 = 50;
iVar5 = 0;
break;
case 57:
StringCopy(&Var2, "PROPS_P1_H13_1", 16);
iVar3 = 19;
iVar4 = 1;
iVar1 = 50;
iVar5 = 0;
break;
case 58:
StringCopy(&Var2, "PROPS_P1_H14_0", 16);
iVar3 = 20;
iVar4 = 0;
iVar1 = 99;
iVar5 = 0;
break;
case 59:
StringCopy(&Var2, "PROPS_P1_H14_1", 16);
iVar3 = 20;
iVar4 = 1;
iVar1 = 99;
iVar5 = 0;
break;
case 60:
StringCopy(&Var2, "PROPS_P1_H14_2", 16);
iVar3 = 20;
iVar4 = 2;
iVar1 = 99;
iVar5 = 0;
break;
case 61:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 21;
iVar4 = 0;
iVar5 = 0;
break;
case 62:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 22;
iVar4 = 0;
iVar5 = 0;
break;
case 63:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 23;
iVar4 = 0;
iVar5 = 0;
break;
case 64:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 23;
iVar4 = 1;
iVar5 = 0;
break;
case 65:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 23;
iVar4 = 2;
iVar5 = 0;
break;
case 66:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 23;
iVar4 = 3;
iVar5 = 0;
break;
case 67:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 23;
iVar4 = 4;
iVar5 = 0;
break;
case 68:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 23;
iVar4 = 5;
iVar5 = 0;
break;
case 69:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 24;
iVar4 = 0;
iVar5 = 0;
break;
case 70:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 25;
iVar4 = 0;
iVar5 = 0;
break;
case 71:
StringCopy(&Var2, "PROPS_P1_H26_0", 16);
iVar3 = 26;
iVar4 = 0;
iVar1 = 20;
iVar5 = 0;
break;
case 72:
StringCopy(&Var2, "PROPS_P1_H26_1", 16);
iVar3 = 26;
iVar4 = 1;
iVar1 = 25;
iVar5 = 0;
break;
case 73:
StringCopy(&Var2, "PROPS_P1_H26_2", 16);
iVar3 = 26;
iVar4 = 2;
iVar1 = 25;
iVar5 = 0;
break;
case 74:
StringCopy(&Var2, "PROPS_P1_H26_3", 16);
iVar3 = 26;
iVar4 = 3;
iVar1 = 22;
iVar5 = 0;
break;
case 75:
StringCopy(&Var2, "PROPS_P1_H26_4", 16);
iVar3 = 26;
iVar4 = 4;
iVar1 = 20;
iVar5 = 0;
break;
case 76:
StringCopy(&Var2, "PROPS_P1_H26_5", 16);
iVar3 = 26;
iVar4 = 5;
iVar1 = 25;
iVar5 = 0;
break;
case 77:
StringCopy(&Var2, "PROPS_P1_H26_6", 16);
iVar3 = 26;
iVar4 = 6;
iVar1 = 28;
iVar5 = 0;
break;
case 78:
StringCopy(&Var2, "PROPS_P1_H26_7", 16);
iVar3 = 26;
iVar4 = 7;
iVar1 = 24;
iVar5 = 0;
break;
case 79:
StringCopy(&Var2, "PROPS_P1_H26_8", 16);
iVar3 = 26;
iVar4 = 8;
iVar1 = 25;
iVar5 = 0;
break;
case 80:
StringCopy(&Var2, "PROPS_P1_H26_9", 16);
iVar3 = 26;
iVar4 = 9;
iVar1 = 22;
iVar5 = 0;
break;
case 81:
StringCopy(&Var2, "PROPS_P1_H26_10", 16);
iVar3 = 26;
iVar4 = 10;
iVar1 = 18;
iVar5 = 0;
break;
case 82:
StringCopy(&Var2, "PROPS_P1_H26_11", 16);
iVar3 = 26;
iVar4 = 11;
iVar1 = 20;
iVar5 = 0;
break;
case 83:
StringCopy(&Var2, "PROPS_P1_H26_12", 16);
iVar3 = 26;
iVar4 = 12;
iVar1 = 24;
iVar5 = 0;
break;
case 84:
StringCopy(&Var2, "PROPS_P1_H26_13", 16);
iVar3 = 26;
iVar4 = 13;
iVar1 = 22;
iVar5 = 0;
break;
case 85:
StringCopy(&Var2, "PROPS_P1_H26_14", 16);
iVar3 = 26;
iVar4 = 14;
iVar1 = 25;
iVar5 = 0;
break;
case 86:
StringCopy(&Var2, "PROPS_P1_H26_15", 16);
iVar3 = 26;
iVar4 = 15;
iVar1 = 25;
iVar5 = 0;
break;
case 87:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 27;
iVar4 = 0;
iVar5 = 0;
break;
default:
func_164(iVar7, iParam0, 155, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_158(var uParam0, int iParam1, int iParam2, char* sParam3, int iParam4, int iParam5, int iParam6, bool bParam7, int iParam8, int iParam9, bool bParam10)
{
int iVar0;
int iVar1;
uParam0->f_6 = 0;
*uParam0 = iParam9;
uParam0->f_1 = (iParam2 % 32);
uParam0->f_2 = (iParam2 / 32);
uParam0->f_3 = iParam4;
uParam0->f_4 = iParam5;
uParam0->f_7 = iParam6;
StringCopy(&(uParam0->f_8), sParam3, 16);
uParam0->f_13 = iParam8;
uParam0->f_12 = func_163(iParam8);
if ((uParam0->f_2 >= 10 && uParam0->f_5 >= 0) && uParam0->f_5 < 3)
{
if (!bParam10)
{
}
uParam0->f_2 = 0;
}
if (unk_0xFEB6EEC0545AF7AA(sParam3) != unk_0xFEB6EEC0545AF7AA("NO_LABEL"))
{
}
if (bParam7)
{
unk_0x2BCFB39E86340DAA(&(uParam0->f_6), 3);
}
if (bParam10)
{
unk_0x2BCFB39E86340DAA(&(uParam0->f_6), 0);
if (uParam0->f_5 >= 0 && uParam0->f_5 < 3)
{
unk_0x2BCFB39E86340DAA(&(uParam0->f_6), 5);
}
unk_0x2BCFB39E86340DAA(&(uParam0->f_6), 1);
unk_0x2BCFB39E86340DAA(&(uParam0->f_6), 2);
unk_0x2BCFB39E86340DAA(&(uParam0->f_6), 6);
if (func_46(14))
{
return;
}
if (iParam1 == 1)
{
if (unk_0x4BE6499482BEE1D8(Global_2621444, 1827025211, 0))
{
unk_0x2BCFB39E86340DAA(&(uParam0->f_6), 7);
}
}
if (iParam1 == 12)
{
if (!func_162(Global_2621444, 1, 1, 1, -1))
{
unk_0xFA57C719261AA55D(&(uParam0->f_6), 2);
}
if (!func_162(Global_2621444, 2, 1, 1, -1))
{
unk_0x2BCFB39E86340DAA(&(uParam0->f_6), 4);
}
}
else if (iParam1 == 13)
{
}
else if (iParam1 == 14)
{
if (!func_162(Global_2621444, 1, 1, 1, -1))
{
unk_0xFA57C719261AA55D(&(uParam0->f_6), 2);
}
if (!func_162(Global_2621444, 2, 1, 1, -1))
{
unk_0x2BCFB39E86340DAA(&(uParam0->f_6), 4);
}
}
else
{
if (!func_162(Global_2621444, 1, 1, 1, -1))
{
unk_0xFA57C719261AA55D(&(uParam0->f_6), 2);
}
if (!func_162(Global_2621444, 2, 1, 1, -1))
{
unk_0x2BCFB39E86340DAA(&(uParam0->f_6), 4);
}
}
}
else if (uParam0->f_5 >= 0 && uParam0->f_5 < 3)
{
unk_0x2BCFB39E86340DAA(&(uParam0->f_6), 0);
unk_0x2BCFB39E86340DAA(&(uParam0->f_6), 5);
if (func_144(iParam1, uParam0->f_5, uParam0->f_2, 0, uParam0->f_1, 0, 0))
{
unk_0x2BCFB39E86340DAA(&(uParam0->f_6), 1);
}
if (func_144(iParam1, uParam0->f_5, uParam0->f_2, 1, uParam0->f_1, 0, 0))
{
unk_0x2BCFB39E86340DAA(&(uParam0->f_6), 2);
}
if (!func_144(iParam1, uParam0->f_5, uParam0->f_2, 2, uParam0->f_1, 0, 0))
{
unk_0x2BCFB39E86340DAA(&(uParam0->f_6), 4);
}
}
else
{
unk_0x2BCFB39E86340DAA(&(uParam0->f_6), 0);
if ((((((((((iParam1 == 11 || iParam1 == 4) || iParam1 == 6) || iParam1 == 1) || iParam1 == 14) || iParam1 == 2) || iParam1 == 8) || iParam1 == 9) || iParam1 == 10) || iParam1 == 7) || iParam1 == 12)
{
if (func_46(14))
{
return;
}
iVar0 = func_19(func_161(iParam1, uParam0->f_2), Global_71014, 0);
if (unk_0x05EFB6A616B6FADE(iVar0, uParam0->f_1))
{
unk_0x2BCFB39E86340DAA(&(uParam0->f_6), 1);
}
iVar0 = func_19(func_160(iParam1, uParam0->f_2), Global_71014, 0);
if (unk_0x05EFB6A616B6FADE(iVar0, uParam0->f_1))
{
unk_0x2BCFB39E86340DAA(&(uParam0->f_6), 2);
}
if (func_159(iParam1, uParam0->f_2, &iVar1))
{
iVar0 = func_19(iVar1, Global_71014, 0);
if (!unk_0x05EFB6A616B6FADE(iVar0, uParam0->f_1))
{
unk_0x2BCFB39E86340DAA(&(uParam0->f_6), 4);
}
}
}
else
{
unk_0x2BCFB39E86340DAA(&(uParam0->f_6), 1);
unk_0x2BCFB39E86340DAA(&(uParam0->f_6), 2);
}
}
if (iParam1 == 14)
{
if (iParam4 == -1)
{
unk_0x2BCFB39E86340DAA(&(uParam0->f_6), 1);
unk_0x2BCFB39E86340DAA(&(uParam0->f_6), 2);
}
}
}
bool func_159(int iParam0, int iParam1, var uParam2)
{
*uParam2 = 978;
switch (iParam1)
{
case 0:
switch (iParam0)
{
case 2:
*uParam2 = 979;
break;
case 3:
*uParam2 = 1429;
break;
case 4:
*uParam2 = 995;
break;
case 6:
*uParam2 = 1003;
break;
case 8:
*uParam2 = 1430;
break;
case 9:
*uParam2 = 1438;
break;
case 10:
*uParam2 = 1440;
break;
case 1:
*uParam2 = 1011;
break;
case 7:
*uParam2 = 1441;
break;
case 11:
*uParam2 = 987;
break;
case 14:
*uParam2 = 1019;
break;
case 12:
*uParam2 = 1030;
break;
}
break;
case 1:
switch (iParam0)
{
case 2:
*uParam2 = 980;
break;
case 4:
*uParam2 = 996;
break;
case 6:
*uParam2 = 1004;
break;
case 8:
*uParam2 = 1431;
break;
case 9:
*uParam2 = 1439;
break;
case 7:
*uParam2 = 1442;
break;
case 11:
*uParam2 = 988;
break;
case 14:
*uParam2 = 1020;
break;
}
break;
case 2:
switch (iParam0)
{
case 2:
*uParam2 = 981;
break;
case 4:
*uParam2 = 997;
break;
case 6:
*uParam2 = 1005;
break;
case 8:
*uParam2 = 1432;
break;
case 7:
*uParam2 = 1443;
break;
case 11:
*uParam2 = 989;
break;
case 14:
*uParam2 = 1021;
break;
}
break;
case 3:
switch (iParam0)
{
case 4:
*uParam2 = 998;
break;
case 6:
*uParam2 = 1006;
break;
case 8:
*uParam2 = 1433;
break;
case 11:
*uParam2 = 990;
break;
case 14:
*uParam2 = 1022;
break;
}
break;
case 4:
switch (iParam0)
{
case 4:
*uParam2 = 999;
break;
case 6:
*uParam2 = 1007;
break;
case 8:
*uParam2 = 1434;
break;
case 11:
*uParam2 = 991;
break;
case 14:
*uParam2 = 1023;
break;
}
break;
case 5:
switch (iParam0)
{
case 4:
*uParam2 = 1000;
break;
case 6:
*uParam2 = 1008;
break;
case 8:
*uParam2 = 1435;
break;
case 11:
*uParam2 = 992;
break;
case 14:
*uParam2 = 1024;
break;
}
break;
case 6:
switch (iParam0)
{
case 4:
*uParam2 = 1001;
break;
case 6:
*uParam2 = 1009;
break;
case 8:
*uParam2 = 1436;
break;
case 11:
*uParam2 = 993;
break;
case 14:
*uParam2 = 1025;
break;
}
break;
case 7:
switch (iParam0)
{
case 4:
*uParam2 = 1002;
break;
case 6:
*uParam2 = 1010;
break;
case 8:
*uParam2 = 1437;
break;
case 11:
*uParam2 = 994;
break;
case 14:
*uParam2 = 1026;
break;
}
break;
case 8:
switch (iParam0)
{
case 14:
*uParam2 = 1027;
break;
}
break;
case 9:
switch (iParam0)
{
case 14:
*uParam2 = 1028;
break;
}
break;
case 10:
switch (iParam0)
{
case 14:
*uParam2 = 1029;
break;
}
break;
}
return *uParam2 != 978;
}
int func_160(int iParam0, int iParam1)
{
switch (iParam1)
{
case 0:
switch (iParam0)
{
case 2:
return 927;
break;
case 3:
return 1414;
break;
case 4:
return 943;
break;
case 6:
return 951;
break;
case 8:
return 1415;
break;
case 9:
return 1423;
break;
case 10:
return 1425;
break;
case 1:
return 959;
break;
case 7:
return 1426;
break;
case 11:
return 935;
break;
case 14:
return 967;
break;
case 12:
return 978;
break;
}
break;
case 1:
switch (iParam0)
{
case 2:
return 928;
break;
case 4:
return 944;
break;
case 6:
return 952;
break;
case 8:
return 1416;
break;
case 9:
return 1424;
break;
case 7:
return 1427;
break;
case 11:
return 936;
break;
case 14:
return 968;
break;
}
break;
case 2:
switch (iParam0)
{
case 2:
return 929;
break;
case 4:
return 945;
break;
case 6:
return 953;
break;
case 8:
return 1417;
break;
case 7:
return 1428;
break;
case 11:
return 937;
break;
case 14:
return 969;
break;
}
break;
case 3:
switch (iParam0)
{
case 4:
return 946;
break;
case 6:
return 954;
break;
case 8:
return 1418;
break;
case 11:
return 938;
break;
case 14:
return 970;
break;
}
break;
case 4:
switch (iParam0)
{
case 4:
return 947;
break;
case 6:
return 955;
break;
case 8:
return 1419;
break;
case 11:
return 939;
break;
case 14:
return 971;
break;
}
break;
case 5:
switch (iParam0)
{
case 4:
return 948;
break;
case 6:
return 956;
break;
case 8:
return 1420;
break;
case 11:
return 940;
break;
case 14:
return 972;
break;
}
break;
case 6:
switch (iParam0)
{
case 4:
return 949;
break;
case 6:
return 957;
break;
case 8:
return 1421;
break;
case 11:
return 941;
break;
case 14:
return 973;
break;
}
break;
case 7:
switch (iParam0)
{
case 4:
return 950;
break;
case 6:
return 958;
break;
case 8:
return 1422;
break;
case 11:
return 942;
break;
case 14:
return 974;
break;
}
break;
case 8:
switch (iParam0)
{
case 14:
return 975;
break;
}
break;
case 9:
switch (iParam0)
{
case 14:
return 976;
break;
}
break;
case 10:
switch (iParam0)
{
case 14:
return 977;
break;
}
break;
}
return 935;
}
int func_161(int iParam0, int iParam1)
{
switch (iParam1)
{
case 0:
switch (iParam0)
{
case 2:
return 875;
break;
case 3:
return 1399;
break;
case 4:
return 891;
break;
case 6:
return 899;
break;
case 8:
return 1400;
break;
case 9:
return 1408;
break;
case 10:
return 1410;
break;
case 1:
return 907;
break;
case 7:
return 1411;
break;
case 11:
return 883;
break;
case 14:
return 915;
break;
case 12:
return 926;
break;
}
break;
case 1:
switch (iParam0)
{
case 2:
return 876;
break;
case 4:
return 892;
break;
case 6:
return 900;
break;
case 8:
return 1401;
break;
case 9:
return 1409;
break;
case 7:
return 1412;
break;
case 11:
return 884;
break;
case 14:
return 916;
break;
}
break;
case 2:
switch (iParam0)
{
case 2:
return 877;
break;
case 4:
return 893;
break;
case 6:
return 901;
break;
case 8:
return 1402;
break;
case 7:
return 1413;
break;
case 11:
return 885;
break;
case 14:
return 917;
break;
}
break;
case 3:
switch (iParam0)
{
case 4:
return 894;
break;
case 6:
return 902;
break;
case 8:
return 1403;
break;
case 11:
return 886;
break;
case 14:
return 918;
break;
}
break;
case 4:
switch (iParam0)
{
case 4:
return 895;
break;
case 6:
return 903;
break;
case 8:
return 1404;
break;
case 11:
return 887;
break;
case 14:
return 919;
break;
}
break;
case 5:
switch (iParam0)
{
case 4:
return 896;
break;
case 6:
return 904;
break;
case 8:
return 1405;
break;
case 11:
return 888;
break;
case 14:
return 920;
break;
}
break;
case 6:
switch (iParam0)
{
case 4:
return 897;
break;
case 6:
return 905;
break;
case 8:
return 1406;
break;
case 11:
return 889;
break;
case 14:
return 921;
break;
}
break;
case 7:
switch (iParam0)
{
case 4:
return 898;
break;
case 6:
return 906;
break;
case 8:
return 1407;
break;
case 11:
return 890;
break;
case 14:
return 922;
break;
}
break;
case 8:
switch (iParam0)
{
case 14:
return 923;
break;
}
break;
case 9:
switch (iParam0)
{
case 14:
return 924;
break;
}
break;
case 10:
switch (iParam0)
{
case 14:
return 925;
break;
}
break;
}
return 883;
}
int func_162(int iParam0, int iParam1, bool bParam2, bool bParam3, int iParam4)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
iVar0 = Global_71014;
if (iParam4 != -1)
{
iVar0 = iParam4;
}
if (func_143(iParam0, iParam1, &iVar2, &iVar1, bParam2, bParam3))
{
iVar3 = func_19(iVar2, iVar0, 0);
return unk_0x05EFB6A616B6FADE(iVar3, iVar1);
}
return 0;
}
int func_163(int iParam0)
{
switch (iParam0)
{
case -1:
return 0;
break;
case 0:
return 0;
break;
case 1:
return 1;
break;
case 2:
return 2;
break;
case 3:
return 3;
break;
case 4:
return 4;
break;
case 5:
return 5;
break;
case 6:
return 6;
break;
case 7:
return 7;
break;
case 8:
return 8;
break;
case 9:
return 0;
break;
case 10:
return 1;
break;
case 11:
return 0;
break;
case 12:
return 0;
break;
case 13:
return 0;
break;
}
return 0;
}
void func_164(int iParam0, int iParam1, int iParam2, int iParam3)
{
int iVar0;
int iVar1;
struct<8> Var2;
int iVar3;
int iVar4;
int iVar5;
struct<10> Var6;
int iVar7;
int iVar8;
int iVar9;
int iVar10;
struct<10> Var11;
int iVar12;
int iVar13;
int iVar14;
iVar0 = (iParam1 - iParam2);
iVar0 = iVar0;
if (iVar0 < 0)
{
return;
}
iVar1 = Global_71017[0 /*14*/].f_5;
if (iParam0 == 12)
{
iVar4 = 0;
iVar5 = unk_0xDE2FA336A2CE65DB(iVar1, 0);
iVar3 = 0;
while (iVar3 < iVar5)
{
unk_0xEBAB77C605128A7D(iVar3, &Var2);
if (!unk_0x3B61940560400F58(Var2))
{
if (iVar4 == (iParam1 - iParam2))
{
Global_2621444 = Var2.f_1;
Global_2621445 = Var2;
func_158(&(Global_71017[0 /*14*/]), iParam0, iParam1, &(Var2.f_7), 0, 0, Var2.f_2, 0, -1, 2, 1);
return;
}
iVar4++;
}
iVar3++;
}
}
else if (iParam0 == 13)
{
func_158(&(Global_71017[0 /*14*/]), iParam0, iParam1, "NO_LABEL", 0, 0, 0, 1, -1, 2, 1);
}
else if (iParam0 == 14)
{
unk_0xF21D7CAB6815AD7E(&Var6);
iVar9 = 0;
iVar10 = unk_0x6182A22F4D99005E(iVar1, 6, -1, 1, -1, -1);
iVar8 = 0;
while (iVar8 < iVar10)
{
unk_0x1B674FE324A34577(iVar8, &Var6);
if (!unk_0x3B61940560400F58(Var6))
{
if (iVar9 == (iParam1 - iParam2))
{
if (Var6.f_6 == 0)
{
iVar7 = 9;
}
else if (Var6.f_6 == 1)
{
iVar7 = 10;
}
else if (Var6.f_6 == 2)
{
iVar7 = 2;
}
else if (Var6.f_6 == 3)
{
iVar7 = 3;
}
else if (Var6.f_6 == 4)
{
iVar7 = 4;
}
else if (Var6.f_6 == 5)
{
iVar7 = 5;
}
else if (Var6.f_6 == 6)
{
iVar7 = 6;
}
else if (Var6.f_6 == 7)
{
iVar7 = 7;
}
else if (Var6.f_6 == 8)
{
iVar7 = 8;
}
else
{
iVar7 = -1;
}
Global_2621444 = Var6.f_1;
Global_2621445 = Var6;
func_158(&(Global_71017[0 /*14*/]), iParam0, iParam1, &(Var6.f_9), Var6.f_3, Var6.f_4, Var6.f_5, unk_0x4BE6499482BEE1D8(Var6.f_1, -2050632586, 0), iVar7, 2, Var6.f_1 != 0);
return;
}
iVar9++;
}
iVar8++;
}
}
else
{
unk_0x4EC128057F5B6F27(&Var11);
if (iParam3 != -1 && Global_71186)
{
unk_0xDD7BFAE08DAD69B6(iParam3, &Var11);
Global_2621444 = Var11.f_1;
Global_2621445 = Var11;
func_158(&(Global_71017[0 /*14*/]), iParam0, iParam1, &(Var11.f_9), Var11.f_3, Var11.f_4, Var11.f_5, unk_0x4BE6499482BEE1D8(Var11.f_1, -2050632586, 0), -1, 2, Var11.f_1 != 0);
return;
}
iVar13 = 0;
iVar14 = unk_0x6182A22F4D99005E(iVar1, 6, -1, 0, -1, func_147(iParam0));
iVar12 = 0;
while (iVar12 < iVar14)
{
unk_0xF947B64BF5B65A2E(iVar12, &Var11);
if (!unk_0x3B61940560400F58(Var11))
{
if (iVar13 == (iParam1 - iParam2))
{
Global_2621444 = Var11.f_1;
Global_2621445 = Var11;
func_158(&(Global_71017[0 /*14*/]), iParam0, iParam1, &(Var11.f_9), Var11.f_3, Var11.f_4, Var11.f_5, unk_0x4BE6499482BEE1D8(Var11.f_1, -2050632586, 0), -1, 2, Var11.f_1 != 0);
return;
}
iVar13++;
}
iVar12++;
}
}
}
void func_165(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 13;
Global_71017[0 /*14*/].f_5 = 2;
switch (iParam0)
{
case 31:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 0:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
bVar0 = true;
break;
case 1:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 2:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
bVar0 = true;
break;
case 3:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
bVar0 = true;
break;
case 4:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
bVar0 = true;
break;
case 5:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
bVar0 = true;
break;
case 6:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 7:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 8:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
bVar0 = true;
break;
default:
func_164(iVar7, iParam0, 9, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_166(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 12;
Global_71017[0 /*14*/].f_5 = 2;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "OUTFIT_P2_0", 16);
iVar3 = 0;
iVar4 = 0;
bVar0 = true;
break;
case 1:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 2:
StringCopy(&Var2, "OUTFIT_P2_5", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 3:
StringCopy(&Var2, "OUTFIT_P2_6", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 4:
StringCopy(&Var2, "OUTFIT_P2_7", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 5:
StringCopy(&Var2, "OUTFIT_P2_8", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 6:
StringCopy(&Var2, "OUTFIT_P2_9", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 7:
StringCopy(&Var2, "OUTFIT_P2_10", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 8:
StringCopy(&Var2, "OUTFIT_P2_12", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 9:
StringCopy(&Var2, "OUTFIT_P2_13", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 10:
StringCopy(&Var2, "OUTFIT_P2_14", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 11:
StringCopy(&Var2, "OUTFIT_P2_15", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 12:
StringCopy(&Var2, "OUTFIT_P2_16", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 13:
StringCopy(&Var2, "OUTFIT_P2_17", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 14:
StringCopy(&Var2, "OUTFIT_P2_18", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 10000;
break;
case 15:
StringCopy(&Var2, "OUTFIT_P2_19", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 16:
StringCopy(&Var2, "OUTFIT_P2_20", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 17:
StringCopy(&Var2, "OUTFIT_P2_21", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 105;
break;
case 18:
StringCopy(&Var2, "OUTFIT_P2_22", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 105;
break;
case 19:
StringCopy(&Var2, "OUTFIT_P2_23", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 105;
break;
case 20:
StringCopy(&Var2, "OUTFIT_P2_24", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 21:
StringCopy(&Var2, "OUTFIT_P2_25", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 22:
StringCopy(&Var2, "OUTFIT_P2_26", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 23:
StringCopy(&Var2, "OUTFIT_P2_27", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 24:
StringCopy(&Var2, "OUTFIT_P2_28", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 119;
break;
case 25:
StringCopy(&Var2, "OUTFIT_P2_29", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 99;
break;
case 26:
StringCopy(&Var2, "OUTFIT_P2_30", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 129;
break;
case 27:
StringCopy(&Var2, "OUTFIT_P2_44", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 125;
break;
case 28:
StringCopy(&Var2, "OUTFIT_P2_45", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 120;
break;
case 29:
StringCopy(&Var2, "OUTFIT_P2_46", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 139;
break;
case 30:
StringCopy(&Var2, "OUTFIT_P2_47", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 149;
break;
case 31:
StringCopy(&Var2, "OUTFIT_P2_48", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 145;
break;
case 32:
StringCopy(&Var2, "OUTFIT_P2_49", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 140;
break;
case 33:
StringCopy(&Var2, "OUTFIT_P2_50", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 135;
break;
case 34:
StringCopy(&Var2, "OUTFIT_P2_31", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 4900;
break;
case 35:
StringCopy(&Var2, "OUTFIT_P2_32", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 5900;
break;
case 36:
StringCopy(&Var2, "OUTFIT_P2_33", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 4500;
break;
case 37:
StringCopy(&Var2, "OUTFIT_P2_34", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 4900;
break;
case 38:
StringCopy(&Var2, "OUTFIT_P2_35", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 4500;
break;
case 39:
StringCopy(&Var2, "OUTFIT_P2_36", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 5900;
break;
case 40:
StringCopy(&Var2, "OUTFIT_P2_37", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 5500;
break;
case 41:
StringCopy(&Var2, "OUTFIT_P2_38", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 42:
StringCopy(&Var2, "OUTFIT_P2_39", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 43:
StringCopy(&Var2, "OUTFIT_P2_40", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 44:
StringCopy(&Var2, "OUTFIT_P2_41", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 45:
StringCopy(&Var2, "OUTFIT_P2_42", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 46:
StringCopy(&Var2, "OUTFIT_P2_43", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 47:
StringCopy(&Var2, "OUTFIT_P2_12", 16);
iVar3 = 0;
iVar4 = 0;
break;
default:
func_164(iVar7, iParam0, 48, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_167(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 11;
Global_71017[0 /*14*/].f_5 = 2;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
default:
func_164(iVar7, iParam0, 1, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_168(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 7;
Global_71017[0 /*14*/].f_5 = 2;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
default:
func_164(iVar7, iParam0, 1, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_169(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 1;
Global_71017[0 /*14*/].f_5 = 2;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "BERD_P2_0_0", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 1:
StringCopy(&Var2, "BERD_P2_1_0", 16);
iVar3 = 1;
iVar4 = 0;
break;
case 2:
StringCopy(&Var2, "BERD_P2_2_0", 16);
iVar3 = 2;
iVar4 = 0;
break;
case 3:
StringCopy(&Var2, "BERD_P2_3_0", 16);
iVar3 = 3;
iVar4 = 0;
break;
case 4:
StringCopy(&Var2, "BERD_P2_4_0", 16);
iVar3 = 4;
iVar4 = 0;
break;
case 5:
StringCopy(&Var2, "BERD_P2_5_0", 16);
iVar3 = 5;
iVar4 = 0;
break;
default:
func_164(iVar7, iParam0, 6, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_170(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 10;
Global_71017[0 /*14*/].f_5 = 2;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 1:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 0;
break;
case 2:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 2;
iVar4 = 0;
break;
case 3:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 3;
iVar4 = 0;
break;
case 4:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 4;
iVar4 = 0;
break;
case 5:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 0;
break;
case 6:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 1;
break;
case 7:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 2;
break;
case 8:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 3;
break;
case 9:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 4;
break;
case 10:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 5;
break;
case 11:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 0;
break;
case 12:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 1;
break;
case 13:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 2;
break;
case 14:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 3;
break;
case 15:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 4;
break;
case 16:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 5;
break;
case 17:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 6;
break;
case 18:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 7;
break;
case 19:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 8;
break;
case 20:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 9;
break;
case 21:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 7;
iVar4 = 0;
break;
case 22:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 8;
iVar4 = 0;
break;
case 23:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 8;
iVar4 = 1;
break;
case 24:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 8;
iVar4 = 2;
break;
case 25:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 8;
iVar4 = 3;
break;
case 26:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 8;
iVar4 = 4;
break;
case 27:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 8;
iVar4 = 5;
break;
case 28:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 8;
iVar4 = 6;
break;
case 29:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 0;
break;
case 30:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 1;
break;
case 31:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 2;
break;
case 32:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 3;
break;
default:
func_164(iVar7, iParam0, 33, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_171(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 9;
Global_71017[0 /*14*/].f_5 = 2;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 1:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 0;
break;
case 2:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 1;
break;
case 3:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 2;
break;
case 4:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 3;
break;
case 5:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 2;
iVar4 = 0;
bVar0 = true;
break;
case 6:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 3;
iVar4 = 0;
bVar0 = true;
break;
case 7:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 4;
iVar4 = 0;
break;
case 8:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 0;
bVar0 = true;
break;
case 9:
StringCopy(&Var2, "SPEC2_P0_08_0", 16);
iVar3 = 6;
iVar4 = 0;
iVar1 = 125;
break;
case 10:
StringCopy(&Var2, "SPEC2_P0_08_1", 16);
iVar3 = 6;
iVar4 = 1;
iVar1 = 150;
break;
case 11:
StringCopy(&Var2, "SPEC2_P0_08_2", 16);
iVar3 = 6;
iVar4 = 2;
iVar1 = 175;
break;
case 12:
StringCopy(&Var2, "SPEC2_P0_08_3", 16);
iVar3 = 6;
iVar4 = 3;
iVar1 = 85;
break;
case 13:
StringCopy(&Var2, "SPEC2_P0_08_4", 16);
iVar3 = 6;
iVar4 = 4;
iVar1 = 150;
break;
case 14:
StringCopy(&Var2, "SPEC2_P0_08_5", 16);
iVar3 = 6;
iVar4 = 5;
iVar1 = 175;
break;
case 15:
StringCopy(&Var2, "PROPS_P1_H8_0", 16);
iVar3 = 7;
iVar4 = 0;
iVar1 = 270;
break;
case 16:
StringCopy(&Var2, "PROPS_P1_H8_1", 16);
iVar3 = 7;
iVar4 = 1;
iVar1 = 270;
break;
default:
func_164(iVar7, iParam0, 17, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_172(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 8;
Global_71017[0 /*14*/].f_5 = 2;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "SPEC_P2_0_0", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 1:
StringCopy(&Var2, "SPEC_P2_0_1", 16);
iVar3 = 0;
iVar4 = 1;
break;
case 2:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 0;
bVar0 = true;
break;
case 3:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 2;
iVar4 = 0;
bVar0 = true;
break;
case 4:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 3;
iVar4 = 0;
bVar0 = true;
break;
case 5:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 4;
iVar4 = 0;
bVar0 = true;
break;
case 6:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 0;
bVar0 = true;
break;
case 7:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 0;
bVar0 = true;
break;
case 8:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 7;
iVar4 = 0;
bVar0 = true;
break;
case 9:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 8;
iVar4 = 0;
bVar0 = true;
break;
case 10:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 0;
bVar0 = true;
break;
case 11:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 10;
iVar4 = 0;
bVar0 = true;
break;
case 12:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 11;
iVar4 = 0;
break;
case 13:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 12;
iVar4 = 0;
bVar0 = true;
break;
case 14:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 13;
iVar4 = 0;
bVar0 = true;
break;
case 15:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 14;
iVar4 = 0;
break;
case 16:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 15;
iVar4 = 0;
bVar0 = true;
break;
case 17:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 16;
iVar4 = 0;
bVar0 = true;
break;
default:
func_164(iVar7, iParam0, 18, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_173(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 5;
Global_71017[0 /*14*/].f_5 = 2;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 1:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 1;
bVar0 = true;
break;
case 2:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 0;
bVar0 = true;
break;
case 3:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 2;
iVar4 = 0;
bVar0 = true;
break;
case 4:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 3;
iVar4 = 0;
bVar0 = true;
break;
case 5:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 4;
iVar4 = 0;
bVar0 = true;
break;
case 6:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 0;
bVar0 = true;
break;
default:
func_164(iVar7, iParam0, 7, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_174(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 6;
Global_71017[0 /*14*/].f_5 = 2;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "FEET_P2_0_0", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 1:
StringCopy(&Var2, "FEET_P2_0_1", 16);
iVar3 = 0;
iVar4 = 1;
iVar1 = 22;
break;
case 2:
StringCopy(&Var2, "FEET_P2_0_2", 16);
iVar3 = 0;
iVar4 = 2;
iVar1 = 45;
break;
case 3:
StringCopy(&Var2, "FEET_P2_0_3", 16);
iVar3 = 0;
iVar4 = 3;
iVar1 = 65;
break;
case 4:
StringCopy(&Var2, "FEET_P2_0_4", 16);
iVar3 = 0;
iVar4 = 4;
iVar1 = 58;
break;
case 5:
StringCopy(&Var2, "FEET_P2_0_5", 16);
iVar3 = 0;
iVar4 = 5;
iVar1 = 72;
break;
case 6:
StringCopy(&Var2, "FEET_P2_0_6", 16);
iVar3 = 0;
iVar4 = 6;
iVar1 = 68;
break;
case 7:
StringCopy(&Var2, "FEET_P2_0_7", 16);
iVar3 = 0;
iVar4 = 7;
iVar1 = 60;
break;
case 8:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 0;
break;
case 9:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 2;
iVar4 = 0;
bVar0 = true;
break;
case 10:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 3;
iVar4 = 0;
bVar0 = true;
break;
case 11:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 4;
iVar4 = 0;
bVar0 = true;
break;
case 12:
StringCopy(&Var2, "FEET_P2_5_0", 16);
iVar3 = 5;
iVar4 = 0;
break;
case 13:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 0;
bVar0 = true;
break;
case 14:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 7;
iVar4 = 0;
bVar0 = true;
break;
case 15:
StringCopy(&Var2, "FEET_P2_8_0", 16);
iVar3 = 8;
iVar4 = 0;
bVar0 = true;
break;
case 16:
StringCopy(&Var2, "FEET_P2_9_0", 16);
iVar3 = 9;
iVar4 = 0;
break;
case 17:
StringCopy(&Var2, "FEET_P2_9_1", 16);
iVar3 = 9;
iVar4 = 1;
iVar1 = 680;
break;
case 18:
StringCopy(&Var2, "FEET_P2_9_2", 16);
iVar3 = 9;
iVar4 = 2;
iVar1 = 650;
break;
case 19:
StringCopy(&Var2, "FEET_P2_9_3", 16);
iVar3 = 9;
iVar4 = 3;
iVar1 = 670;
break;
case 20:
StringCopy(&Var2, "FEET_P2_9_4", 16);
iVar3 = 9;
iVar4 = 4;
iVar1 = 700;
break;
case 21:
StringCopy(&Var2, "FEET_P2_9_5", 16);
iVar3 = 9;
iVar4 = 5;
iVar1 = 680;
break;
case 22:
StringCopy(&Var2, "FEET_P2_9_6", 16);
iVar3 = 9;
iVar4 = 6;
iVar1 = 720;
break;
case 23:
StringCopy(&Var2, "FEET_P2_9_7", 16);
iVar3 = 9;
iVar4 = 7;
iVar1 = 740;
break;
case 24:
StringCopy(&Var2, "FEET_P2_9_8", 16);
iVar3 = 9;
iVar4 = 8;
iVar1 = 760;
break;
case 25:
StringCopy(&Var2, "FEET_P2_9_9", 16);
iVar3 = 9;
iVar4 = 9;
iVar1 = 780;
break;
case 26:
StringCopy(&Var2, "FEET_P2_9_10", 16);
iVar3 = 9;
iVar4 = 10;
iVar1 = 750;
break;
case 27:
StringCopy(&Var2, "FEET_P2_9_11", 16);
iVar3 = 9;
iVar4 = 11;
iVar1 = 700;
break;
case 28:
StringCopy(&Var2, "FEET_P2_10_0", 16);
iVar3 = 10;
iVar4 = 0;
break;
case 29:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 11;
iVar4 = 0;
bVar0 = true;
break;
case 30:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 12;
iVar4 = 0;
bVar0 = true;
break;
case 31:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 13;
iVar4 = 0;
bVar0 = true;
break;
case 32:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 14;
iVar4 = 0;
bVar0 = true;
break;
case 33:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 15;
iVar4 = 0;
bVar0 = true;
break;
case 34:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 16;
iVar4 = 0;
break;
case 35:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 17;
iVar4 = 0;
break;
case 36:
StringCopy(&Var2, "FEET_P2_18_0", 16);
iVar3 = 18;
iVar4 = 0;
iVar1 = 790;
break;
case 37:
StringCopy(&Var2, "FEET_P2_18_1", 16);
iVar3 = 18;
iVar4 = 1;
iVar1 = 750;
break;
case 38:
StringCopy(&Var2, "FEET_P2_18_2", 16);
iVar3 = 18;
iVar4 = 2;
iVar1 = 860;
break;
case 39:
StringCopy(&Var2, "FEET_P2_18_3", 16);
iVar3 = 18;
iVar4 = 3;
iVar1 = 750;
break;
case 40:
StringCopy(&Var2, "FEET_P2_18_4", 16);
iVar3 = 18;
iVar4 = 4;
iVar1 = 790;
break;
case 41:
StringCopy(&Var2, "FEET_P2_18_5", 16);
iVar3 = 18;
iVar4 = 5;
iVar1 = 840;
break;
case 42:
StringCopy(&Var2, "FEET_P2_18_6", 16);
iVar3 = 18;
iVar4 = 6;
iVar1 = 820;
break;
case 43:
StringCopy(&Var2, "FEET_P2_18_7", 16);
iVar3 = 18;
iVar4 = 7;
iVar1 = 800;
break;
case 44:
StringCopy(&Var2, "FEET_P2_18_8", 16);
iVar3 = 18;
iVar4 = 8;
iVar1 = 850;
break;
case 45:
StringCopy(&Var2, "FEET_P2_18_9", 16);
iVar3 = 18;
iVar4 = 9;
iVar1 = 870;
break;
case 46:
StringCopy(&Var2, "FEET_P2_18_10", 16);
iVar3 = 18;
iVar4 = 10;
iVar1 = 720;
break;
case 47:
StringCopy(&Var2, "FEET_P2_18_11", 16);
iVar3 = 18;
iVar4 = 11;
iVar1 = 740;
break;
case 48:
StringCopy(&Var2, "FEET_P2_18_12", 16);
iVar3 = 18;
iVar4 = 12;
iVar1 = 800;
break;
case 49:
StringCopy(&Var2, "FEET_P2_18_13", 16);
iVar3 = 18;
iVar4 = 13;
iVar1 = 750;
break;
case 50:
StringCopy(&Var2, "FEET_P2_18_14", 16);
iVar3 = 18;
iVar4 = 14;
iVar1 = 770;
break;
case 51:
StringCopy(&Var2, "FEET_P2_18_15", 16);
iVar3 = 18;
iVar4 = 15;
iVar1 = 860;
break;
case 52:
StringCopy(&Var2, "FEET_P2_19_0", 16);
iVar3 = 19;
iVar4 = 0;
iVar1 = 850;
break;
case 53:
StringCopy(&Var2, "FEET_P2_19_1", 16);
iVar3 = 19;
iVar4 = 1;
iVar1 = 800;
break;
case 54:
StringCopy(&Var2, "FEET_P2_19_2", 16);
iVar3 = 19;
iVar4 = 2;
iVar1 = 780;
break;
case 55:
StringCopy(&Var2, "FEET_P2_19_3", 16);
iVar3 = 19;
iVar4 = 3;
iVar1 = 890;
break;
case 56:
StringCopy(&Var2, "FEET_P2_19_4", 16);
iVar3 = 19;
iVar4 = 4;
iVar1 = 820;
break;
case 57:
StringCopy(&Var2, "FEET_P2_19_5", 16);
iVar3 = 19;
iVar4 = 5;
iVar1 = 840;
break;
case 58:
StringCopy(&Var2, "FEET_P2_19_6", 16);
iVar3 = 19;
iVar4 = 6;
iVar1 = 870;
break;
case 59:
StringCopy(&Var2, "FEET_P2_19_7", 16);
iVar3 = 19;
iVar4 = 7;
iVar1 = 930;
break;
case 60:
StringCopy(&Var2, "FEET_P2_19_8", 16);
iVar3 = 19;
iVar4 = 8;
iVar1 = 880;
break;
case 61:
StringCopy(&Var2, "FEET_P2_19_9", 16);
iVar3 = 19;
iVar4 = 9;
iVar1 = 900;
break;
case 62:
StringCopy(&Var2, "FEET_P2_19_10", 16);
iVar3 = 19;
iVar4 = 10;
iVar1 = 920;
break;
case 63:
StringCopy(&Var2, "FEET_P2_19_11", 16);
iVar3 = 19;
iVar4 = 11;
iVar1 = 970;
break;
case 64:
StringCopy(&Var2, "FEET_P2_19_12", 16);
iVar3 = 19;
iVar4 = 12;
iVar1 = 990;
break;
case 65:
StringCopy(&Var2, "FEET_P2_19_13", 16);
iVar3 = 19;
iVar4 = 13;
iVar1 = 960;
break;
case 66:
StringCopy(&Var2, "FEET_P2_19_14", 16);
iVar3 = 19;
iVar4 = 14;
iVar1 = 980;
break;
case 67:
StringCopy(&Var2, "FEET_P2_19_15", 16);
iVar3 = 19;
iVar4 = 15;
iVar1 = 950;
break;
case 68:
StringCopy(&Var2, "FEET_P2_20_0", 16);
iVar3 = 20;
iVar4 = 0;
iVar1 = 110;
break;
case 69:
StringCopy(&Var2, "FEET_P2_20_1", 16);
iVar3 = 20;
iVar4 = 1;
iVar1 = 115;
break;
case 70:
StringCopy(&Var2, "FEET_P2_20_2", 16);
iVar3 = 20;
iVar4 = 2;
iVar1 = 120;
break;
case 71:
StringCopy(&Var2, "FEET_P2_20_3", 16);
iVar3 = 20;
iVar4 = 3;
iVar1 = 110;
break;
case 72:
StringCopy(&Var2, "FEET_P2_20_4", 16);
iVar3 = 20;
iVar4 = 4;
iVar1 = 125;
break;
case 73:
StringCopy(&Var2, "FEET_P2_20_5", 16);
iVar3 = 20;
iVar4 = 5;
iVar1 = 128;
break;
case 74:
StringCopy(&Var2, "FEET_P2_20_6", 16);
iVar3 = 20;
iVar4 = 6;
iVar1 = 135;
break;
case 75:
StringCopy(&Var2, "FEET_P2_20_7", 16);
iVar3 = 20;
iVar4 = 7;
iVar1 = 130;
break;
case 76:
StringCopy(&Var2, "FEET_P2_20_8", 16);
iVar3 = 20;
iVar4 = 8;
iVar1 = 145;
break;
case 77:
StringCopy(&Var2, "FEET_P2_20_9", 16);
iVar3 = 20;
iVar4 = 9;
iVar1 = 110;
break;
case 78:
StringCopy(&Var2, "FEET_P2_20_10", 16);
iVar3 = 20;
iVar4 = 10;
iVar1 = 120;
break;
case 79:
StringCopy(&Var2, "FEET_P2_20_11", 16);
iVar3 = 20;
iVar4 = 11;
iVar1 = 150;
break;
case 80:
StringCopy(&Var2, "FEET_P2_20_12", 16);
iVar3 = 20;
iVar4 = 12;
iVar1 = 125;
break;
case 81:
StringCopy(&Var2, "FEET_P2_20_13", 16);
iVar3 = 20;
iVar4 = 13;
iVar1 = 120;
break;
case 82:
StringCopy(&Var2, "FEET_P2_20_14", 16);
iVar3 = 20;
iVar4 = 14;
iVar1 = 130;
break;
case 83:
StringCopy(&Var2, "FEET_P2_20_15", 16);
iVar3 = 20;
iVar4 = 15;
iVar1 = 110;
break;
default:
func_164(iVar7, iParam0, 84, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_175(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 4;
Global_71017[0 /*14*/].f_5 = 2;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "LEGS_P2_0_0", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 1:
StringCopy(&Var2, "LEGS_P2_0_1", 16);
iVar3 = 0;
iVar4 = 1;
iVar1 = 95;
break;
case 2:
StringCopy(&Var2, "LEGS_P2_0_2", 16);
iVar3 = 0;
iVar4 = 2;
iVar1 = 129;
break;
case 3:
StringCopy(&Var2, "LEGS_P2_0_3", 16);
iVar3 = 0;
iVar4 = 3;
iVar1 = 115;
break;
case 4:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 0;
bVar0 = true;
break;
case 5:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 2;
iVar4 = 0;
bVar0 = true;
break;
case 6:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 3;
iVar4 = 0;
bVar0 = true;
break;
case 7:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 4;
iVar4 = 0;
bVar0 = true;
break;
case 8:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 0;
bVar0 = true;
break;
case 9:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 1;
bVar0 = true;
break;
case 10:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 2;
bVar0 = true;
break;
case 11:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 3;
bVar0 = true;
break;
case 12:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 4;
bVar0 = true;
break;
case 13:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 0;
bVar0 = true;
break;
case 14:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 7;
iVar4 = 0;
bVar0 = true;
break;
case 15:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 8;
iVar4 = 0;
bVar0 = true;
break;
case 16:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 0;
bVar0 = true;
break;
case 17:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 10;
iVar4 = 0;
bVar0 = true;
break;
case 18:
StringCopy(&Var2, "LEGS_P2_11_0", 16);
iVar3 = 11;
iVar4 = 0;
break;
case 19:
StringCopy(&Var2, "LEGS_P2_11_1", 16);
iVar3 = 11;
iVar4 = 1;
iVar1 = 750;
break;
case 20:
StringCopy(&Var2, "LEGS_P2_11_2", 16);
iVar3 = 11;
iVar4 = 2;
iVar1 = 650;
break;
case 21:
StringCopy(&Var2, "LEGS_P2_11_3", 16);
iVar3 = 11;
iVar4 = 3;
iVar1 = 850;
break;
case 22:
StringCopy(&Var2, "LEGS_P2_11_4", 16);
iVar3 = 11;
iVar4 = 4;
iVar1 = 850;
break;
case 23:
StringCopy(&Var2, "LEGS_P2_11_5", 16);
iVar3 = 11;
iVar4 = 5;
iVar1 = 750;
break;
case 24:
StringCopy(&Var2, "LEGS_P2_11_6", 16);
iVar3 = 11;
iVar4 = 6;
iVar1 = 690;
break;
case 25:
StringCopy(&Var2, "LEGS_P2_11_7", 16);
iVar3 = 11;
iVar4 = 7;
iVar1 = 820;
break;
case 26:
StringCopy(&Var2, "LEGS_P2_11_8", 16);
iVar3 = 11;
iVar4 = 8;
iVar1 = 650;
break;
case 27:
StringCopy(&Var2, "LEGS_P2_11_9", 16);
iVar3 = 11;
iVar4 = 9;
iVar1 = 690;
break;
case 28:
StringCopy(&Var2, "LEGS_P2_11_10", 16);
iVar3 = 11;
iVar4 = 10;
iVar1 = 690;
break;
case 29:
StringCopy(&Var2, "LEGS_P2_11_11", 16);
iVar3 = 11;
iVar4 = 11;
iVar1 = 820;
break;
case 30:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 12;
iVar4 = 0;
bVar0 = true;
break;
case 31:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 13;
iVar4 = 0;
bVar0 = true;
break;
case 32:
StringCopy(&Var2, "LEGS_P2_14_0", 16);
iVar3 = 14;
iVar4 = 0;
break;
case 33:
StringCopy(&Var2, "LEGS_P2_15_0", 16);
iVar3 = 15;
iVar4 = 0;
break;
case 34:
StringCopy(&Var2, "LEGS_P2_16_0", 16);
iVar3 = 16;
iVar4 = 0;
bVar0 = true;
break;
case 35:
StringCopy(&Var2, "LEGS_P2_17_0", 16);
iVar3 = 17;
iVar4 = 0;
iVar1 = 58;
break;
case 36:
StringCopy(&Var2, "LEGS_P2_17_1", 16);
iVar3 = 17;
iVar4 = 1;
iVar1 = 68;
break;
case 37:
StringCopy(&Var2, "LEGS_P2_17_2", 16);
iVar3 = 17;
iVar4 = 2;
iVar1 = 65;
break;
case 38:
StringCopy(&Var2, "LEGS_P2_17_3", 16);
iVar3 = 17;
iVar4 = 3;
iVar1 = 60;
break;
case 39:
StringCopy(&Var2, "LEGS_P2_17_4", 16);
iVar3 = 17;
iVar4 = 4;
iVar1 = 65;
break;
case 40:
StringCopy(&Var2, "LEGS_P2_17_5", 16);
iVar3 = 17;
iVar4 = 5;
iVar1 = 63;
break;
case 41:
StringCopy(&Var2, "LEGS_P2_17_6", 16);
iVar3 = 17;
iVar4 = 6;
iVar1 = 60;
break;
case 42:
StringCopy(&Var2, "LEGS_P2_17_7", 16);
iVar3 = 17;
iVar4 = 7;
iVar1 = 58;
break;
case 43:
StringCopy(&Var2, "LEGS_P2_18_0", 16);
iVar3 = 18;
iVar4 = 0;
break;
case 44:
StringCopy(&Var2, "LEGS_P2_18_1", 16);
iVar3 = 18;
iVar4 = 1;
break;
case 45:
StringCopy(&Var2, "LEGS_P2_18_2", 16);
iVar3 = 18;
iVar4 = 2;
iVar1 = 99;
break;
case 46:
StringCopy(&Var2, "LEGS_P2_18_3", 16);
iVar3 = 18;
iVar4 = 3;
iVar1 = 105;
break;
case 47:
StringCopy(&Var2, "LEGS_P2_18_4", 16);
iVar3 = 18;
iVar4 = 4;
iVar1 = 110;
break;
case 48:
StringCopy(&Var2, "LEGS_P2_18_5", 16);
iVar3 = 18;
iVar4 = 5;
iVar1 = 110;
break;
case 49:
StringCopy(&Var2, "LEGS_P2_18_6", 16);
iVar3 = 18;
iVar4 = 6;
iVar1 = 99;
break;
case 50:
StringCopy(&Var2, "LEGS_P2_18_7", 16);
iVar3 = 18;
iVar4 = 7;
iVar1 = 110;
break;
case 51:
StringCopy(&Var2, "LEGS_P2_18_8", 16);
iVar3 = 18;
iVar4 = 8;
iVar1 = 110;
break;
case 52:
StringCopy(&Var2, "LEGS_P2_18_9", 16);
iVar3 = 18;
iVar4 = 9;
iVar1 = 105;
break;
case 53:
StringCopy(&Var2, "LEGS_P2_18_10", 16);
iVar3 = 18;
iVar4 = 10;
iVar1 = 105;
break;
case 54:
StringCopy(&Var2, "LEGS_P2_19_0", 16);
iVar3 = 19;
iVar4 = 0;
iVar1 = 15;
break;
case 55:
StringCopy(&Var2, "LEGS_P2_19_1", 16);
iVar3 = 19;
iVar4 = 1;
iVar1 = 15;
break;
case 56:
StringCopy(&Var2, "LEGS_P2_19_2", 16);
iVar3 = 19;
iVar4 = 2;
iVar1 = 15;
break;
case 57:
StringCopy(&Var2, "LEGS_P2_19_3", 16);
iVar3 = 19;
iVar4 = 3;
iVar1 = 15;
break;
case 58:
StringCopy(&Var2, "LEGS_P2_19_4", 16);
iVar3 = 19;
iVar4 = 4;
iVar1 = 15;
break;
case 59:
StringCopy(&Var2, "LEGS_P2_19_5", 16);
iVar3 = 19;
iVar4 = 5;
iVar1 = 15;
break;
case 60:
StringCopy(&Var2, "LEGS_P2_19_6", 16);
iVar3 = 19;
iVar4 = 6;
iVar1 = 15;
break;
case 61:
StringCopy(&Var2, "LEGS_P2_19_7", 16);
iVar3 = 19;
iVar4 = 7;
iVar1 = 15;
break;
case 62:
StringCopy(&Var2, "LEGS_P2_20_0", 16);
iVar3 = 20;
iVar4 = 0;
iVar1 = 600;
break;
case 63:
StringCopy(&Var2, "LEGS_P2_20_1", 16);
iVar3 = 20;
iVar4 = 1;
iVar1 = 600;
break;
case 64:
StringCopy(&Var2, "LEGS_P2_20_2", 16);
iVar3 = 20;
iVar4 = 2;
iVar1 = 600;
break;
case 65:
StringCopy(&Var2, "LEGS_P2_20_3", 16);
iVar3 = 20;
iVar4 = 3;
iVar1 = 600;
break;
case 66:
StringCopy(&Var2, "LEGS_P2_20_4", 16);
iVar3 = 20;
iVar4 = 4;
iVar1 = 600;
break;
case 67:
StringCopy(&Var2, "LEGS_P2_20_5", 16);
iVar3 = 20;
iVar4 = 5;
iVar1 = 600;
break;
case 68:
StringCopy(&Var2, "LEGS_P2_20_6", 16);
iVar3 = 20;
iVar4 = 6;
iVar1 = 600;
break;
case 69:
StringCopy(&Var2, "LEGS_P2_20_7", 16);
iVar3 = 20;
iVar4 = 7;
iVar1 = 600;
break;
case 70:
StringCopy(&Var2, "LEGS_P2_20_8", 16);
iVar3 = 20;
iVar4 = 8;
iVar1 = 600;
break;
case 71:
StringCopy(&Var2, "LEGS_P2_21_0", 16);
iVar3 = 21;
iVar4 = 0;
iVar1 = 80;
break;
case 72:
StringCopy(&Var2, "LEGS_P2_21_1", 16);
iVar3 = 21;
iVar4 = 1;
iVar1 = 80;
break;
case 73:
StringCopy(&Var2, "LEGS_P2_21_2", 16);
iVar3 = 21;
iVar4 = 2;
iVar1 = 80;
break;
case 74:
StringCopy(&Var2, "LEGS_P2_21_3", 16);
iVar3 = 21;
iVar4 = 3;
iVar1 = 80;
break;
case 75:
StringCopy(&Var2, "LEGS_P2_21_4", 16);
iVar3 = 21;
iVar4 = 4;
iVar1 = 80;
break;
case 76:
StringCopy(&Var2, "LEGS_P2_21_5", 16);
iVar3 = 21;
iVar4 = 5;
iVar1 = 80;
break;
case 77:
StringCopy(&Var2, "LEGS_P2_21_6", 16);
iVar3 = 21;
iVar4 = 6;
iVar1 = 80;
break;
case 78:
StringCopy(&Var2, "LEGS_P2_21_7", 16);
iVar3 = 21;
iVar4 = 7;
iVar1 = 80;
break;
case 79:
StringCopy(&Var2, "LEGS_P2_21_8", 16);
iVar3 = 21;
iVar4 = 8;
iVar1 = 80;
break;
case 80:
StringCopy(&Var2, "LEGS_P2_21_9", 16);
iVar3 = 21;
iVar4 = 9;
iVar1 = 80;
break;
case 81:
StringCopy(&Var2, "LEGS_P2_22_0", 16);
iVar3 = 22;
iVar4 = 0;
break;
case 82:
StringCopy(&Var2, "LEGS_P2_22_1", 16);
iVar3 = 22;
iVar4 = 1;
iVar1 = 12;
break;
case 83:
StringCopy(&Var2, "LEGS_P2_22_2", 16);
iVar3 = 22;
iVar4 = 2;
iVar1 = 12;
break;
case 84:
StringCopy(&Var2, "LEGS_P2_22_3", 16);
iVar3 = 22;
iVar4 = 3;
iVar1 = 22;
break;
case 85:
StringCopy(&Var2, "LEGS_P2_22_4", 16);
iVar3 = 22;
iVar4 = 4;
iVar1 = 18;
break;
case 86:
StringCopy(&Var2, "LEGS_P2_22_5", 16);
iVar3 = 22;
iVar4 = 5;
iVar1 = 20;
break;
case 87:
StringCopy(&Var2, "LEGS_P2_22_6", 16);
iVar3 = 22;
iVar4 = 6;
iVar1 = 30;
break;
case 88:
StringCopy(&Var2, "LEGS_P2_22_7", 16);
iVar3 = 22;
iVar4 = 7;
iVar1 = 30;
break;
case 89:
StringCopy(&Var2, "LEGS_P2_22_8", 16);
iVar3 = 22;
iVar4 = 8;
iVar1 = 30;
break;
case 90:
StringCopy(&Var2, "LEGS_P2_22_9", 16);
iVar3 = 22;
iVar4 = 9;
iVar1 = 30;
break;
case 91:
StringCopy(&Var2, "LEGS_P2_23_0", 16);
iVar3 = 23;
iVar4 = 0;
break;
case 92:
StringCopy(&Var2, "LEGS_P2_24_0", 16);
iVar3 = 24;
iVar4 = 0;
break;
case 93:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 25;
iVar4 = 0;
bVar0 = true;
break;
case 94:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 26;
iVar4 = 0;
break;
case 95:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 26;
iVar4 = 1;
break;
case 96:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 26;
iVar4 = 2;
break;
case 97:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 26;
iVar4 = 3;
break;
case 98:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 26;
iVar4 = 4;
break;
case 99:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 26;
iVar4 = 5;
break;
case 100:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 26;
iVar4 = 6;
break;
case 101:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 26;
iVar4 = 7;
break;
case 102:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 26;
iVar4 = 8;
break;
case 103:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 26;
iVar4 = 9;
break;
default:
func_164(iVar7, iParam0, 104, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_176(int iParam0)
{
if (iParam0 < 136)
{
func_178(iParam0);
}
else
{
func_177(iParam0);
}
if (Global_71017[0 /*14*/].f_2 == -1)
{
func_164(3, iParam0, 242, -1);
}
}
void func_177(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 3;
Global_71017[0 /*14*/].f_5 = 2;
switch (iParam0)
{
case 136:
StringCopy(&Var2, "TORSO_P2_21_0", 16);
iVar3 = 21;
iVar4 = 0;
iVar1 = 32;
break;
case 137:
StringCopy(&Var2, "TORSO_P2_21_1", 16);
iVar3 = 21;
iVar4 = 1;
iVar1 = 39;
break;
case 138:
StringCopy(&Var2, "TORSO_P2_21_2", 16);
iVar3 = 21;
iVar4 = 2;
iVar1 = 40;
break;
case 139:
StringCopy(&Var2, "TORSO_P2_21_3", 16);
iVar3 = 21;
iVar4 = 3;
iVar1 = 42;
break;
case 140:
StringCopy(&Var2, "TORSO_P2_21_4", 16);
iVar3 = 21;
iVar4 = 4;
iVar1 = 45;
break;
case 141:
StringCopy(&Var2, "TORSO_P2_21_5", 16);
iVar3 = 21;
iVar4 = 5;
iVar1 = 48;
break;
case 142:
StringCopy(&Var2, "TORSO_P2_21_6", 16);
iVar3 = 21;
iVar4 = 6;
iVar1 = 52;
break;
case 143:
StringCopy(&Var2, "TORSO_P2_21_7", 16);
iVar3 = 21;
iVar4 = 7;
iVar1 = 55;
break;
case 144:
StringCopy(&Var2, "TORSO_P2_22_0", 16);
iVar3 = 22;
iVar4 = 0;
iVar1 = 390;
break;
case 145:
StringCopy(&Var2, "TORSO_P2_22_1", 16);
iVar3 = 22;
iVar4 = 1;
iVar1 = 390;
break;
case 146:
StringCopy(&Var2, "TORSO_P2_22_2", 16);
iVar3 = 22;
iVar4 = 2;
iVar1 = 560;
break;
case 147:
StringCopy(&Var2, "TORSO_P2_22_3", 16);
iVar3 = 22;
iVar4 = 3;
iVar1 = 390;
break;
case 148:
StringCopy(&Var2, "TORSO_P2_22_4", 16);
iVar3 = 22;
iVar4 = 4;
iVar1 = 390;
break;
case 149:
StringCopy(&Var2, "TORSO_P2_22_5", 16);
iVar3 = 22;
iVar4 = 5;
iVar1 = 390;
break;
case 150:
StringCopy(&Var2, "TORSO_P2_22_6", 16);
iVar3 = 22;
iVar4 = 6;
iVar1 = 560;
break;
case 151:
StringCopy(&Var2, "TORSO_P2_22_7", 16);
iVar3 = 22;
iVar4 = 7;
iVar1 = 390;
break;
case 152:
StringCopy(&Var2, "TORSO_P2_22_8", 16);
iVar3 = 22;
iVar4 = 8;
iVar1 = 390;
break;
case 153:
StringCopy(&Var2, "TORSO_P2_22_9", 16);
iVar3 = 22;
iVar4 = 9;
iVar1 = 390;
break;
case 154:
StringCopy(&Var2, "TORSO_P2_22_10", 16);
iVar3 = 22;
iVar4 = 10;
iVar1 = 390;
break;
case 155:
StringCopy(&Var2, "TORSO_P2_22_11", 16);
iVar3 = 22;
iVar4 = 11;
iVar1 = 3950;
break;
case 156:
StringCopy(&Var2, "TORSO_P2_23_0", 16);
iVar3 = 23;
iVar4 = 0;
iVar1 = 150;
break;
case 157:
StringCopy(&Var2, "TORSO_P2_23_1", 16);
iVar3 = 23;
iVar4 = 1;
break;
case 158:
StringCopy(&Var2, "TORSO_P2_23_2", 16);
iVar3 = 23;
iVar4 = 2;
iVar1 = 150;
break;
case 159:
StringCopy(&Var2, "TORSO_P2_23_3", 16);
iVar3 = 23;
iVar4 = 3;
iVar1 = 150;
break;
case 160:
StringCopy(&Var2, "TORSO_P2_23_4", 16);
iVar3 = 23;
iVar4 = 4;
iVar1 = 160;
break;
case 161:
StringCopy(&Var2, "TORSO_P2_23_5", 16);
iVar3 = 23;
iVar4 = 5;
break;
case 162:
StringCopy(&Var2, "TORSO_P2_24_0", 16);
iVar3 = 24;
iVar4 = 0;
iVar1 = 19;
break;
case 163:
StringCopy(&Var2, "TORSO_P2_24_1", 16);
iVar3 = 24;
iVar4 = 1;
iVar1 = 20;
break;
case 164:
StringCopy(&Var2, "TORSO_P2_24_2", 16);
iVar3 = 24;
iVar4 = 2;
iVar1 = 19;
break;
case 165:
StringCopy(&Var2, "TORSO_P2_24_3", 16);
iVar3 = 24;
iVar4 = 3;
iVar1 = 22;
break;
case 166:
StringCopy(&Var2, "TORSO_P2_24_4", 16);
iVar3 = 24;
iVar4 = 4;
iVar1 = 20;
break;
case 167:
StringCopy(&Var2, "TORSO_P2_24_5", 16);
iVar3 = 24;
iVar4 = 5;
iVar1 = 28;
break;
case 168:
StringCopy(&Var2, "TORSO_P2_24_6", 16);
iVar3 = 24;
iVar4 = 6;
iVar1 = 28;
break;
case 169:
StringCopy(&Var2, "TORSO_P2_24_7", 16);
iVar3 = 24;
iVar4 = 7;
iVar1 = 25;
break;
case 170:
StringCopy(&Var2, "TORSO_P2_24_8", 16);
iVar3 = 24;
iVar4 = 8;
iVar1 = 22;
break;
case 171:
StringCopy(&Var2, "TORSO_P2_24_9", 16);
iVar3 = 24;
iVar4 = 9;
iVar1 = 19;
break;
case 172:
StringCopy(&Var2, "TORSO_P2_24_10", 16);
iVar3 = 24;
iVar4 = 10;
iVar1 = 22;
break;
case 173:
StringCopy(&Var2, "TORSO_P2_24_11", 16);
iVar3 = 24;
iVar4 = 11;
iVar1 = 19;
break;
case 174:
StringCopy(&Var2, "TORSO_P2_24_12", 16);
iVar3 = 24;
iVar4 = 12;
iVar1 = 20;
break;
case 175:
StringCopy(&Var2, "TORSO_P2_24_13", 16);
iVar3 = 24;
iVar4 = 13;
iVar1 = 25;
break;
case 176:
StringCopy(&Var2, "TORSO_P2_24_14", 16);
iVar3 = 24;
iVar4 = 14;
iVar1 = 20;
break;
case 177:
StringCopy(&Var2, "TORSO_P2_24_15", 16);
iVar3 = 24;
iVar4 = 15;
iVar1 = 28;
break;
case 178:
StringCopy(&Var2, "TORSO_P2_25_0", 16);
iVar3 = 25;
iVar4 = 0;
iVar1 = 35;
break;
case 179:
StringCopy(&Var2, "TORSO_P2_25_1", 16);
iVar3 = 25;
iVar4 = 1;
iVar1 = 40;
break;
case 180:
StringCopy(&Var2, "TORSO_P2_25_2", 16);
iVar3 = 25;
iVar4 = 2;
iVar1 = 45;
break;
case 181:
StringCopy(&Var2, "TORSO_P2_25_3", 16);
iVar3 = 25;
iVar4 = 3;
iVar1 = 45;
break;
case 182:
StringCopy(&Var2, "TORSO_P2_25_4", 16);
iVar3 = 25;
iVar4 = 4;
iVar1 = 49;
break;
case 183:
StringCopy(&Var2, "TORSO_P2_25_5", 16);
iVar3 = 25;
iVar4 = 5;
iVar1 = 820;
break;
case 184:
StringCopy(&Var2, "TORSO_P2_25_6", 16);
iVar3 = 25;
iVar4 = 6;
iVar1 = 790;
break;
case 185:
StringCopy(&Var2, "TORSO_P2_25_7", 16);
iVar3 = 25;
iVar4 = 7;
iVar1 = 820;
break;
case 186:
StringCopy(&Var2, "TORSO_P2_25_8", 16);
iVar3 = 25;
iVar4 = 8;
iVar1 = 929;
break;
case 187:
StringCopy(&Var2, "TORSO_P2_25_9", 16);
iVar3 = 25;
iVar4 = 9;
iVar1 = 40;
break;
case 188:
StringCopy(&Var2, "TORSO_P2_25_10", 16);
iVar3 = 25;
iVar4 = 10;
iVar1 = 850;
break;
case 189:
StringCopy(&Var2, "TORSO_P2_25_11", 16);
iVar3 = 25;
iVar4 = 11;
iVar1 = 790;
break;
case 190:
StringCopy(&Var2, "TORSO_P2_26_0", 16);
iVar3 = 26;
iVar4 = 0;
break;
case 191:
StringCopy(&Var2, "TORSO_P2_26_1", 16);
iVar3 = 26;
iVar4 = 1;
break;
case 192:
StringCopy(&Var2, "TORSO_P2_26_2", 16);
iVar3 = 26;
iVar4 = 2;
break;
case 193:
StringCopy(&Var2, "TORSO_P2_26_3", 16);
iVar3 = 26;
iVar4 = 3;
break;
case 194:
StringCopy(&Var2, "TORSO_P2_26_4", 16);
iVar3 = 26;
iVar4 = 4;
break;
case 195:
StringCopy(&Var2, "TORSO_P2_26_5", 16);
iVar3 = 26;
iVar4 = 5;
break;
case 196:
StringCopy(&Var2, "TORSO_P2_26_6", 16);
iVar3 = 26;
iVar4 = 6;
break;
case 197:
StringCopy(&Var2, "TORSO_P2_26_7", 16);
iVar3 = 26;
iVar4 = 7;
break;
case 198:
StringCopy(&Var2, "TORSO_P2_26_8", 16);
iVar3 = 26;
iVar4 = 8;
break;
case 199:
StringCopy(&Var2, "TORSO_P2_26_9", 16);
iVar3 = 26;
iVar4 = 9;
break;
case 200:
StringCopy(&Var2, "TORSO_P2_27_0", 16);
iVar3 = 27;
iVar4 = 0;
iVar1 = 2200;
break;
case 201:
StringCopy(&Var2, "TORSO_P2_27_1", 16);
iVar3 = 27;
iVar4 = 1;
iVar1 = 2500;
break;
case 202:
StringCopy(&Var2, "TORSO_P2_27_2", 16);
iVar3 = 27;
iVar4 = 2;
iVar1 = 2500;
break;
case 203:
StringCopy(&Var2, "TORSO_P2_27_3", 16);
iVar3 = 27;
iVar4 = 3;
iVar1 = 2200;
break;
case 204:
StringCopy(&Var2, "TORSO_P2_27_4", 16);
iVar3 = 27;
iVar4 = 4;
iVar1 = 2500;
break;
case 205:
StringCopy(&Var2, "TORSO_P2_27_5", 16);
iVar3 = 27;
iVar4 = 5;
iVar1 = 2500;
break;
case 206:
StringCopy(&Var2, "TORSO_P2_27_6", 16);
iVar3 = 27;
iVar4 = 6;
iVar1 = 2200;
break;
case 207:
StringCopy(&Var2, "TORSO_P2_28_0", 16);
iVar3 = 28;
iVar4 = 0;
iVar1 = 1100;
break;
case 208:
StringCopy(&Var2, "TORSO_P2_28_1", 16);
iVar3 = 28;
iVar4 = 1;
iVar1 = 1200;
break;
case 209:
StringCopy(&Var2, "TORSO_P2_28_2", 16);
iVar3 = 28;
iVar4 = 2;
iVar1 = 1220;
break;
case 210:
StringCopy(&Var2, "TORSO_P2_28_3", 16);
iVar3 = 28;
iVar4 = 3;
iVar1 = 1250;
break;
case 211:
StringCopy(&Var2, "TORSO_P2_28_4", 16);
iVar3 = 28;
iVar4 = 4;
iVar1 = 1300;
break;
case 212:
StringCopy(&Var2, "TORSO_P2_28_5", 16);
iVar3 = 28;
iVar4 = 5;
iVar1 = 1360;
break;
case 213:
StringCopy(&Var2, "TORSO_P2_28_6", 16);
iVar3 = 28;
iVar4 = 6;
iVar1 = 35;
break;
case 214:
StringCopy(&Var2, "TORSO_P2_28_7", 16);
iVar3 = 28;
iVar4 = 7;
iVar1 = 38;
break;
case 215:
StringCopy(&Var2, "TORSO_P2_28_8", 16);
iVar3 = 28;
iVar4 = 8;
iVar1 = 40;
break;
case 216:
StringCopy(&Var2, "TORSO_P2_28_9", 16);
iVar3 = 28;
iVar4 = 9;
iVar1 = 42;
break;
case 217:
StringCopy(&Var2, "TORSO_P2_28_10", 16);
iVar3 = 28;
iVar4 = 10;
iVar1 = 50;
break;
case 218:
StringCopy(&Var2, "TORSO_P2_28_11", 16);
iVar3 = 28;
iVar4 = 11;
iVar1 = 45;
break;
case 219:
StringCopy(&Var2, "TORSO_P2_28_12", 16);
iVar3 = 28;
iVar4 = 12;
iVar1 = 45;
break;
case 220:
StringCopy(&Var2, "TORSO_P2_28_13", 16);
iVar3 = 28;
iVar4 = 13;
iVar1 = 44;
break;
case 221:
StringCopy(&Var2, "TORSO_P2_28_14", 16);
iVar3 = 28;
iVar4 = 14;
iVar1 = 46;
break;
case 222:
StringCopy(&Var2, "TORSO_P2_28_15", 16);
iVar3 = 28;
iVar4 = 15;
iVar1 = 52;
break;
case 223:
StringCopy(&Var2, "TORSO_P2_29_0", 16);
iVar3 = 29;
iVar4 = 0;
iVar1 = 3200;
break;
case 224:
StringCopy(&Var2, "TORSO_P2_29_1", 16);
iVar3 = 29;
iVar4 = 1;
iVar1 = 3200;
break;
case 225:
StringCopy(&Var2, "TORSO_P2_29_2", 16);
iVar3 = 29;
iVar4 = 2;
iVar1 = 2550;
break;
case 226:
StringCopy(&Var2, "TORSO_P2_29_3", 16);
iVar3 = 29;
iVar4 = 3;
iVar1 = 2750;
break;
case 227:
StringCopy(&Var2, "TORSO_P2_29_4", 16);
iVar3 = 29;
iVar4 = 4;
iVar1 = 2590;
break;
case 228:
StringCopy(&Var2, "TORSO_P2_29_5", 16);
iVar3 = 29;
iVar4 = 5;
iVar1 = 2750;
break;
case 229:
StringCopy(&Var2, "TORSO_P2_29_6", 16);
iVar3 = 29;
iVar4 = 6;
iVar1 = 2550;
break;
case 230:
StringCopy(&Var2, "TORSO_P2_29_7", 16);
iVar3 = 29;
iVar4 = 7;
iVar1 = 2590;
break;
case 231:
StringCopy(&Var2, "TORSO_P2_29_8", 16);
iVar3 = 29;
iVar4 = 8;
iVar1 = 2720;
break;
case 232:
StringCopy(&Var2, "TORSO_P2_29_9", 16);
iVar3 = 29;
iVar4 = 9;
iVar1 = 2750;
break;
case 233:
StringCopy(&Var2, "TORSO_P2_30_0", 16);
iVar3 = 30;
iVar4 = 0;
iVar1 = 3250;
break;
case 234:
StringCopy(&Var2, "TORSO_P2_30_1", 16);
iVar3 = 30;
iVar4 = 1;
iVar1 = 2950;
break;
case 235:
StringCopy(&Var2, "TORSO_P2_30_2", 16);
iVar3 = 30;
iVar4 = 2;
iVar1 = 3100;
break;
case 236:
StringCopy(&Var2, "TORSO_P2_30_3", 16);
iVar3 = 30;
iVar4 = 3;
iVar1 = 3150;
break;
case 237:
StringCopy(&Var2, "TORSO_P2_30_4", 16);
iVar3 = 30;
iVar4 = 4;
iVar1 = 3240;
break;
case 238:
StringCopy(&Var2, "TORSO_P2_30_5", 16);
iVar3 = 30;
iVar4 = 5;
iVar1 = 3350;
break;
case 239:
StringCopy(&Var2, "TORSO_P2_30_6", 16);
iVar3 = 30;
iVar4 = 6;
iVar1 = 3400;
break;
case 240:
StringCopy(&Var2, "TORSO_P2_30_7", 16);
iVar3 = 30;
iVar4 = 7;
iVar1 = 3280;
break;
case 241:
StringCopy(&Var2, "TORSO_P2_31_0", 16);
iVar3 = 31;
iVar4 = 0;
break;
default:
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_178(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 3;
Global_71017[0 /*14*/].f_5 = 2;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "TORSO_P2_0_0", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 1:
StringCopy(&Var2, "TORSO_P2_0_1", 16);
iVar3 = 0;
iVar4 = 1;
iVar1 = 25;
break;
case 2:
StringCopy(&Var2, "TORSO_P2_0_2", 16);
iVar3 = 0;
iVar4 = 2;
break;
case 3:
StringCopy(&Var2, "TORSO_P2_0_3", 16);
iVar3 = 0;
iVar4 = 3;
iVar1 = 15;
break;
case 4:
StringCopy(&Var2, "TORSO_P2_0_4", 16);
iVar3 = 0;
iVar4 = 4;
iVar1 = 25;
break;
case 5:
StringCopy(&Var2, "TORSO_P2_0_5", 16);
iVar3 = 0;
iVar4 = 5;
iVar1 = 25;
break;
case 6:
StringCopy(&Var2, "TORSO_P2_0_6", 16);
iVar3 = 0;
iVar4 = 6;
iVar1 = 22;
break;
case 7:
StringCopy(&Var2, "TORSO_P2_0_7", 16);
iVar3 = 0;
iVar4 = 7;
iVar1 = 22;
break;
case 8:
StringCopy(&Var2, "TORSO_P2_0_8", 16);
iVar3 = 0;
iVar4 = 8;
iVar1 = 20;
break;
case 9:
StringCopy(&Var2, "TORSO_P2_0_9", 16);
iVar3 = 0;
iVar4 = 9;
iVar1 = 20;
break;
case 10:
StringCopy(&Var2, "TORSO_P2_0_10", 16);
iVar3 = 0;
iVar4 = 10;
iVar1 = 24;
break;
case 11:
StringCopy(&Var2, "TORSO_P2_0_11", 16);
iVar3 = 0;
iVar4 = 11;
iVar1 = 26;
break;
case 12:
StringCopy(&Var2, "TORSO_P2_0_12", 16);
iVar3 = 0;
iVar4 = 12;
iVar1 = 28;
break;
case 13:
StringCopy(&Var2, "TORSO_P2_0_13", 16);
iVar3 = 0;
iVar4 = 13;
iVar1 = 29;
break;
case 14:
StringCopy(&Var2, "TORSO_P2_0_14", 16);
iVar3 = 0;
iVar4 = 14;
iVar1 = 22;
break;
case 15:
StringCopy(&Var2, "TORSO_P2_0_15", 16);
iVar3 = 0;
iVar4 = 15;
iVar1 = 20;
break;
case 16:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 0;
bVar0 = true;
break;
case 17:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 2;
iVar4 = 0;
bVar0 = true;
break;
case 18:
StringCopy(&Var2, "TORSO_P2_3_0", 16);
iVar3 = 3;
iVar4 = 0;
iVar1 = 35;
break;
case 19:
StringCopy(&Var2, "TORSO_P2_3_1", 16);
iVar3 = 3;
iVar4 = 1;
iVar1 = 22;
break;
case 20:
StringCopy(&Var2, "TORSO_P2_3_2", 16);
iVar3 = 3;
iVar4 = 2;
iVar1 = 25;
break;
case 21:
StringCopy(&Var2, "TORSO_P2_3_3", 16);
iVar3 = 3;
iVar4 = 3;
iVar1 = 38;
break;
case 22:
StringCopy(&Var2, "TORSO_P2_3_4", 16);
iVar3 = 3;
iVar4 = 4;
iVar1 = 40;
break;
case 23:
StringCopy(&Var2, "TORSO_P2_3_5", 16);
iVar3 = 3;
iVar4 = 5;
iVar1 = 40;
break;
case 24:
StringCopy(&Var2, "TORSO_P2_3_6", 16);
iVar3 = 3;
iVar4 = 6;
iVar1 = 40;
break;
case 25:
StringCopy(&Var2, "TORSO_P2_3_7", 16);
iVar3 = 3;
iVar4 = 7;
iVar1 = 40;
break;
case 26:
StringCopy(&Var2, "TORSO_P2_3_8", 16);
iVar3 = 3;
iVar4 = 8;
iVar1 = 40;
break;
case 27:
StringCopy(&Var2, "TORSO_P2_4_0", 16);
iVar3 = 4;
iVar4 = 0;
break;
case 28:
StringCopy(&Var2, "TORSO_P2_4_1", 16);
iVar3 = 4;
iVar4 = 1;
iVar1 = 500;
break;
case 29:
StringCopy(&Var2, "TORSO_P2_4_2", 16);
iVar3 = 4;
iVar4 = 2;
iVar1 = 560;
break;
case 30:
StringCopy(&Var2, "TORSO_P2_4_3", 16);
iVar3 = 4;
iVar4 = 3;
iVar1 = 600;
break;
case 31:
StringCopy(&Var2, "TORSO_P2_4_4tu", 16);
iVar3 = 4;
iVar4 = 4;
iVar1 = 650;
break;
case 32:
StringCopy(&Var2, "TORSO_P2_4_5tu", 16);
iVar3 = 4;
iVar4 = 5;
iVar1 = 500;
break;
case 33:
StringCopy(&Var2, "TORSO_P2_4_6tu", 16);
iVar3 = 4;
iVar4 = 6;
iVar1 = 560;
break;
case 34:
StringCopy(&Var2, "TORSO_P2_4_7", 16);
iVar3 = 4;
iVar4 = 7;
iVar1 = 500;
break;
case 35:
StringCopy(&Var2, "TORSO_P2_4_8", 16);
iVar3 = 4;
iVar4 = 8;
iVar1 = 650;
break;
case 36:
StringCopy(&Var2, "TORSO_P2_4_9", 16);
iVar3 = 4;
iVar4 = 9;
iVar1 = 540;
break;
case 37:
StringCopy(&Var2, "TORSO_P2_4_10", 16);
iVar3 = 4;
iVar4 = 10;
iVar1 = 690;
break;
case 38:
StringCopy(&Var2, "TORSO_P2_4_11", 16);
iVar3 = 4;
iVar4 = 11;
iVar1 = 560;
break;
case 39:
StringCopy(&Var2, "TORSO_P2_4_12", 16);
iVar3 = 4;
iVar4 = 12;
iVar1 = 590;
break;
case 40:
StringCopy(&Var2, "TORSO_P2_4_13", 16);
iVar3 = 4;
iVar4 = 13;
iVar1 = 690;
break;
case 41:
StringCopy(&Var2, "TORSO_P2_4_14", 16);
iVar3 = 4;
iVar4 = 14;
iVar1 = 540;
break;
case 42:
StringCopy(&Var2, "TORSO_P2_4_15", 16);
iVar3 = 4;
iVar4 = 15;
iVar1 = 500;
break;
case 43:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 0;
bVar0 = true;
break;
case 44:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 1;
bVar0 = true;
break;
case 45:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 2;
bVar0 = true;
break;
case 46:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 3;
bVar0 = true;
break;
case 47:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 4;
bVar0 = true;
break;
case 48:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 5;
bVar0 = true;
break;
case 49:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 0;
bVar0 = true;
break;
case 50:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 7;
iVar4 = 0;
bVar0 = true;
break;
case 51:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 8;
iVar4 = 0;
bVar0 = true;
break;
case 52:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 0;
bVar0 = true;
break;
case 53:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 10;
iVar4 = 0;
bVar0 = true;
break;
case 54:
StringCopy(&Var2, "TORSO_P2_11_0", 16);
iVar3 = 11;
iVar4 = 0;
break;
case 55:
StringCopy(&Var2, "TORSO_P2_11_1", 16);
iVar3 = 11;
iVar4 = 1;
break;
case 56:
StringCopy(&Var2, "TORSO_P2_11_2", 16);
iVar3 = 11;
iVar4 = 2;
iVar1 = 25;
break;
case 57:
StringCopy(&Var2, "TORSO_P2_11_3", 16);
iVar3 = 11;
iVar4 = 3;
iVar1 = 27;
break;
case 58:
StringCopy(&Var2, "TORSO_P2_11_4", 16);
iVar3 = 11;
iVar4 = 4;
iVar1 = 22;
break;
case 59:
StringCopy(&Var2, "TORSO_P2_11_5", 16);
iVar3 = 11;
iVar4 = 5;
iVar1 = 350;
break;
case 60:
StringCopy(&Var2, "TORSO_P2_11_6", 16);
iVar3 = 11;
iVar4 = 6;
iVar1 = 27;
break;
case 61:
StringCopy(&Var2, "TORSO_P2_11_7", 16);
iVar3 = 11;
iVar4 = 7;
iVar1 = 370;
break;
case 62:
StringCopy(&Var2, "TORSO_P2_11_8", 16);
iVar3 = 11;
iVar4 = 8;
iVar1 = 25;
break;
case 63:
StringCopy(&Var2, "TORSO_P2_11_9", 16);
iVar3 = 11;
iVar4 = 9;
iVar1 = 22;
break;
case 64:
StringCopy(&Var2, "TORSO_P2_11_10", 16);
iVar3 = 11;
iVar4 = 10;
iVar1 = 25;
break;
case 65:
StringCopy(&Var2, "TORSO_P2_11_11", 16);
iVar3 = 11;
iVar4 = 11;
break;
case 66:
StringCopy(&Var2, "TORSO_P2_11_12", 16);
iVar3 = 11;
iVar4 = 12;
iVar1 = 22;
break;
case 67:
StringCopy(&Var2, "TORSO_P2_11_13", 16);
iVar3 = 11;
iVar4 = 13;
iVar1 = 27;
break;
case 68:
StringCopy(&Var2, "TORSO_P2_11_14", 16);
iVar3 = 11;
iVar4 = 14;
iVar1 = 25;
break;
case 69:
StringCopy(&Var2, "TORSO_P2_11_15", 16);
iVar3 = 11;
iVar4 = 15;
iVar1 = 27;
break;
case 70:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 12;
iVar4 = 0;
bVar0 = true;
iVar6 = 1;
break;
case 71:
StringCopy(&Var2, "TORSO_P2_13_0", 16);
iVar3 = 13;
iVar4 = 0;
break;
case 72:
StringCopy(&Var2, "TORSO_P2_13_1", 16);
iVar3 = 13;
iVar4 = 1;
iVar1 = 39;
break;
case 73:
StringCopy(&Var2, "TORSO_P2_13_2", 16);
iVar3 = 13;
iVar4 = 2;
iVar1 = 42;
break;
case 74:
StringCopy(&Var2, "TORSO_P2_13_3", 16);
iVar3 = 13;
iVar4 = 3;
iVar1 = 49;
break;
case 75:
StringCopy(&Var2, "TORSO_P2_13_4", 16);
iVar3 = 13;
iVar4 = 4;
iVar1 = 35;
break;
case 76:
StringCopy(&Var2, "TORSO_P2_13_5", 16);
iVar3 = 13;
iVar4 = 5;
iVar1 = 50;
break;
case 77:
StringCopy(&Var2, "TORSO_P2_13_6", 16);
iVar3 = 13;
iVar4 = 6;
iVar1 = 50;
break;
case 78:
StringCopy(&Var2, "TORSO_P2_13_7", 16);
iVar3 = 13;
iVar4 = 7;
iVar1 = 50;
break;
case 79:
StringCopy(&Var2, "TORSO_P2_14_0", 16);
iVar3 = 14;
iVar4 = 0;
break;
case 80:
StringCopy(&Var2, "TORSO_P2_14_1", 16);
iVar3 = 14;
iVar4 = 1;
iVar1 = 88;
break;
case 81:
StringCopy(&Var2, "TORSO_P2_14_2", 16);
iVar3 = 14;
iVar4 = 2;
iVar1 = 60;
break;
case 82:
StringCopy(&Var2, "TORSO_P2_14_3", 16);
iVar3 = 14;
iVar4 = 3;
iVar1 = 80;
break;
case 83:
StringCopy(&Var2, "TORSO_P2_14_4", 16);
iVar3 = 14;
iVar4 = 4;
iVar1 = 70;
break;
case 84:
StringCopy(&Var2, "TORSO_P2_14_5", 16);
iVar3 = 14;
iVar4 = 5;
iVar1 = 80;
break;
case 85:
StringCopy(&Var2, "TORSO_P2_14_6", 16);
iVar3 = 14;
iVar4 = 6;
iVar1 = 70;
break;
case 86:
StringCopy(&Var2, "TORSO_P2_14_7", 16);
iVar3 = 14;
iVar4 = 7;
iVar1 = 90;
break;
case 87:
StringCopy(&Var2, "TORSO_P2_14_8", 16);
iVar3 = 14;
iVar4 = 8;
iVar1 = 95;
break;
case 88:
StringCopy(&Var2, "TORSO_P2_14_9", 16);
iVar3 = 14;
iVar4 = 9;
iVar1 = 105;
break;
case 89:
StringCopy(&Var2, "TORSO_P2_14_10", 16);
iVar3 = 14;
iVar4 = 10;
iVar1 = 95;
break;
case 90:
StringCopy(&Var2, "TORSO_P2_14_11", 16);
iVar3 = 14;
iVar4 = 11;
iVar1 = 110;
break;
case 91:
StringCopy(&Var2, "TORSO_P2_14_12", 16);
iVar3 = 14;
iVar4 = 12;
iVar1 = 98;
break;
case 92:
StringCopy(&Var2, "TORSO_P2_14_13", 16);
iVar3 = 14;
iVar4 = 13;
iVar1 = 88;
break;
case 93:
StringCopy(&Var2, "TORSO_P2_14_14", 16);
iVar3 = 14;
iVar4 = 14;
iVar1 = 98;
break;
case 94:
StringCopy(&Var2, "TORSO_P2_14_15", 16);
iVar3 = 14;
iVar4 = 15;
iVar1 = 110;
break;
case 95:
StringCopy(&Var2, "TORSO_P2_15_0", 16);
iVar3 = 15;
iVar4 = 0;
bVar0 = true;
break;
case 96:
StringCopy(&Var2, "TORSO_P2_16_0", 16);
iVar3 = 16;
iVar4 = 0;
break;
case 97:
StringCopy(&Var2, "TORSO_P2_17_0", 16);
iVar3 = 17;
iVar4 = 0;
bVar0 = true;
break;
case 98:
StringCopy(&Var2, "TORSO_P2_18_0", 16);
iVar3 = 18;
iVar4 = 0;
break;
case 99:
StringCopy(&Var2, "TORSO_P2_18_1", 16);
iVar3 = 18;
iVar4 = 1;
iVar1 = 520;
break;
case 100:
StringCopy(&Var2, "TORSO_P2_18_2", 16);
iVar3 = 18;
iVar4 = 2;
iVar1 = 490;
break;
case 101:
StringCopy(&Var2, "TORSO_P2_18_3", 16);
iVar3 = 18;
iVar4 = 3;
iVar1 = 450;
break;
case 102:
StringCopy(&Var2, "TORSO_P2_18_4", 16);
iVar3 = 18;
iVar4 = 4;
iVar1 = 420;
break;
case 103:
StringCopy(&Var2, "TORSO_P2_18_5", 16);
iVar3 = 18;
iVar4 = 5;
iVar1 = 420;
break;
case 104:
StringCopy(&Var2, "TORSO_P2_19_0", 16);
iVar3 = 19;
iVar4 = 0;
iVar1 = 85;
break;
case 105:
StringCopy(&Var2, "TORSO_P2_19_1", 16);
iVar3 = 19;
iVar4 = 1;
iVar1 = 85;
break;
case 106:
StringCopy(&Var2, "TORSO_P2_19_2", 16);
iVar3 = 19;
iVar4 = 2;
iVar1 = 75;
break;
case 107:
StringCopy(&Var2, "TORSO_P2_19_3", 16);
iVar3 = 19;
iVar4 = 3;
iVar1 = 68;
break;
case 108:
StringCopy(&Var2, "TORSO_P2_19_4", 16);
iVar3 = 19;
iVar4 = 4;
iVar1 = 68;
break;
case 109:
StringCopy(&Var2, "TORSO_P2_19_5", 16);
iVar3 = 19;
iVar4 = 5;
iVar1 = 78;
break;
case 110:
StringCopy(&Var2, "TORSO_P2_19_6", 16);
iVar3 = 19;
iVar4 = 6;
iVar1 = 85;
break;
case 111:
StringCopy(&Var2, "TORSO_P2_19_7", 16);
iVar3 = 19;
iVar4 = 7;
iVar1 = 68;
break;
case 112:
StringCopy(&Var2, "TORSO_P2_19_8", 16);
iVar3 = 19;
iVar4 = 8;
iVar1 = 75;
break;
case 113:
StringCopy(&Var2, "TORSO_P2_19_9", 16);
iVar3 = 19;
iVar4 = 9;
iVar1 = 75;
break;
case 114:
StringCopy(&Var2, "TORSO_P2_19_10", 16);
iVar3 = 19;
iVar4 = 10;
iVar1 = 78;
break;
case 115:
StringCopy(&Var2, "TORSO_P2_19_11", 16);
iVar3 = 19;
iVar4 = 11;
iVar1 = 75;
break;
case 116:
StringCopy(&Var2, "TORSO_P2_19_12", 16);
iVar3 = 19;
iVar4 = 12;
iVar1 = 75;
break;
case 117:
StringCopy(&Var2, "TORSO_P2_19_13", 16);
iVar3 = 19;
iVar4 = 13;
iVar1 = 75;
break;
case 118:
StringCopy(&Var2, "TORSO_P2_19_14", 16);
iVar3 = 19;
iVar4 = 14;
iVar1 = 78;
break;
case 119:
StringCopy(&Var2, "TORSO_P2_19_15", 16);
iVar3 = 19;
iVar4 = 15;
iVar1 = 78;
break;
case 120:
StringCopy(&Var2, "TORSO_P2_20_0", 16);
iVar3 = 20;
iVar4 = 0;
iVar1 = 40;
break;
case 121:
StringCopy(&Var2, "TORSO_P2_20_1", 16);
iVar3 = 20;
iVar4 = 1;
iVar1 = 32;
break;
case 122:
StringCopy(&Var2, "TORSO_P2_20_2", 16);
iVar3 = 20;
iVar4 = 2;
iVar1 = 32;
break;
case 123:
StringCopy(&Var2, "TORSO_P2_20_3", 16);
iVar3 = 20;
iVar4 = 3;
iVar1 = 32;
break;
case 124:
StringCopy(&Var2, "TORSO_P2_20_4", 16);
iVar3 = 20;
iVar4 = 4;
break;
case 125:
StringCopy(&Var2, "TORSO_P2_20_5", 16);
iVar3 = 20;
iVar4 = 5;
iVar1 = 38;
break;
case 126:
StringCopy(&Var2, "TORSO_P2_20_6", 16);
iVar3 = 20;
iVar4 = 6;
iVar1 = 35;
break;
case 127:
StringCopy(&Var2, "TORSO_P2_20_7", 16);
iVar3 = 20;
iVar4 = 7;
iVar1 = 38;
break;
case 128:
StringCopy(&Var2, "TORSO_P2_20_8", 16);
iVar3 = 20;
iVar4 = 8;
iVar1 = 29;
break;
case 129:
StringCopy(&Var2, "TORSO_P2_20_9", 16);
iVar3 = 20;
iVar4 = 9;
iVar1 = 32;
break;
case 130:
StringCopy(&Var2, "TORSO_P2_20_10", 16);
iVar3 = 20;
iVar4 = 10;
iVar1 = 29;
break;
case 131:
StringCopy(&Var2, "TORSO_P2_20_11", 16);
iVar3 = 20;
iVar4 = 11;
iVar1 = 35;
break;
case 132:
StringCopy(&Var2, "TORSO_P2_20_12", 16);
iVar3 = 20;
iVar4 = 12;
iVar1 = 32;
break;
case 133:
StringCopy(&Var2, "TORSO_P2_20_13", 16);
iVar3 = 20;
iVar4 = 13;
iVar1 = 35;
break;
case 134:
StringCopy(&Var2, "TORSO_P2_20_14", 16);
iVar3 = 20;
iVar4 = 14;
iVar1 = 32;
break;
case 135:
StringCopy(&Var2, "TORSO_P2_20_15", 16);
iVar3 = 20;
iVar4 = 15;
iVar1 = 40;
break;
default:
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_179(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 2;
Global_71017[0 /*14*/].f_5 = 2;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "HAIR_P2_0_0", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 1:
StringCopy(&Var2, "HAIR_P2_0_1", 16);
iVar3 = 0;
iVar4 = 1;
break;
case 2:
StringCopy(&Var2, "HAIR_P2_1_0", 16);
iVar3 = 1;
iVar4 = 0;
break;
case 3:
StringCopy(&Var2, "HAIR_P2_2_0", 16);
iVar3 = 2;
iVar4 = 0;
break;
case 4:
StringCopy(&Var2, "HAIR_P2_3_0", 16);
iVar3 = 3;
iVar4 = 0;
break;
case 5:
StringCopy(&Var2, "HAIR_P2_4_0", 16);
iVar3 = 4;
iVar4 = 0;
break;
case 6:
StringCopy(&Var2, "HAIR_P2_5_0", 16);
iVar3 = 5;
iVar4 = 0;
break;
case 7:
StringCopy(&Var2, "HAIR_P2_6_0", 16);
iVar3 = 6;
iVar4 = 0;
break;
case 8:
StringCopy(&Var2, "HAIR_P2_7_0", 16);
iVar3 = 7;
iVar4 = 0;
break;
default:
func_164(iVar7, iParam0, 9, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_180(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 0;
Global_71017[0 /*14*/].f_5 = 2;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 1:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 1;
break;
case 2:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 2;
break;
case 3:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 3;
break;
case 4:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 4;
break;
case 5:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 5;
break;
case 6:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 6;
break;
default:
func_164(iVar7, iParam0, 7, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_181(int iParam0, int iParam1)
{
switch (iParam0)
{
case 0:
func_199(iParam1);
break;
case 2:
func_198(iParam1);
break;
case 3:
func_194(iParam1);
break;
case 4:
func_193(iParam1);
break;
case 6:
func_192(iParam1);
break;
case 5:
func_191(iParam1);
break;
case 8:
func_190(iParam1);
break;
case 9:
func_189(iParam1);
break;
case 10:
func_188(iParam1);
break;
case 1:
func_187(iParam1);
break;
case 7:
func_186(iParam1);
break;
case 11:
func_185(iParam1);
break;
case 12:
func_184(iParam1);
break;
case 13:
func_183(iParam1);
break;
case 14:
func_182(iParam1);
break;
}
}
void func_182(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 14;
Global_71017[0 /*14*/].f_5 = 1;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 0;
break;
case 1:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 1;
break;
case 2:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 2;
break;
case 3:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 3;
break;
case 4:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 4;
break;
case 5:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 5;
break;
case 6:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 6;
break;
case 7:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 7;
break;
case 8:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 8;
break;
case 158:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
bVar0 = true;
iVar5 = 2;
break;
case 159:
StringCopy(&Var2, "PROPS_P1_EA1_0", 16);
iVar3 = 1;
iVar4 = 0;
iVar1 = 4590;
iVar5 = 2;
break;
case 160:
StringCopy(&Var2, "PROPS_P1_EA1_1", 16);
iVar3 = 1;
iVar4 = 1;
iVar1 = 4100;
iVar5 = 2;
break;
case 161:
StringCopy(&Var2, "PROPS_P1_EA1_2", 16);
iVar3 = 1;
iVar4 = 2;
iVar1 = 3850;
iVar5 = 2;
break;
case 162:
StringCopy(&Var2, "PROPS_P1_EA1_3", 16);
iVar3 = 1;
iVar4 = 3;
iVar1 = 1850;
iVar5 = 2;
break;
case 163:
StringCopy(&Var2, "PROPS_P1_EA1_4", 16);
iVar3 = 1;
iVar4 = 4;
iVar1 = 5250;
iVar5 = 2;
break;
case 164:
StringCopy(&Var2, "PROPS_P1_EA1_5", 16);
iVar3 = 1;
iVar4 = 5;
iVar1 = 2700;
iVar5 = 2;
break;
case 165:
StringCopy(&Var2, "PROPS_P1_EA1_6", 16);
iVar3 = 1;
iVar4 = 6;
iVar1 = 3100;
iVar5 = 2;
break;
case 166:
StringCopy(&Var2, "PROPS_P1_EA1_7", 16);
iVar3 = 1;
iVar4 = 7;
iVar1 = 5050;
iVar5 = 2;
break;
case 167:
StringCopy(&Var2, "PROPS_P1_EA2_0", 16);
iVar3 = 2;
iVar4 = 0;
iVar1 = 2500;
iVar5 = 2;
break;
case 168:
StringCopy(&Var2, "PROPS_P1_EA2_1", 16);
iVar3 = 2;
iVar4 = 1;
iVar1 = 1950;
iVar5 = 2;
break;
case 169:
StringCopy(&Var2, "PROPS_P1_EA2_2", 16);
iVar3 = 2;
iVar4 = 2;
iVar1 = 3900;
iVar5 = 2;
break;
case 170:
StringCopy(&Var2, "PROPS_P1_EA2_3", 16);
iVar3 = 2;
iVar4 = 3;
iVar1 = 3550;
iVar5 = 2;
break;
case 171:
StringCopy(&Var2, "PROPS_P1_EA2_4", 16);
iVar3 = 2;
iVar4 = 4;
iVar1 = 4500;
iVar5 = 2;
break;
case 172:
StringCopy(&Var2, "PROPS_P1_EA2_5", 16);
iVar3 = 2;
iVar4 = 5;
iVar1 = 2700;
iVar5 = 2;
break;
case 173:
StringCopy(&Var2, "PROPS_P1_EA2_6", 16);
iVar3 = 2;
iVar4 = 6;
iVar1 = 3100;
iVar5 = 2;
break;
case 174:
StringCopy(&Var2, "PROPS_P1_EA2_7", 16);
iVar3 = 2;
iVar4 = 7;
iVar1 = 2950;
iVar5 = 2;
break;
case 82:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
bVar0 = true;
iVar5 = 10;
break;
case 83:
StringCopy(&Var2, "PROPS_P1_E1_0", 16);
iVar3 = 1;
iVar4 = 0;
iVar1 = 75;
iVar5 = 10;
break;
case 84:
StringCopy(&Var2, "PROPS_P1_E1_1", 16);
iVar3 = 1;
iVar4 = 1;
iVar1 = 75;
iVar5 = 10;
break;
case 85:
StringCopy(&Var2, "PROPS_P1_E1_2", 16);
iVar3 = 1;
iVar4 = 2;
iVar1 = 75;
iVar5 = 10;
break;
case 86:
StringCopy(&Var2, "PROPS_P1_E1_3", 16);
iVar3 = 1;
iVar4 = 3;
iVar1 = 75;
iVar5 = 10;
break;
case 87:
StringCopy(&Var2, "PROPS_P1_E1_4", 16);
iVar3 = 1;
iVar4 = 4;
iVar1 = 75;
iVar5 = 10;
break;
case 88:
StringCopy(&Var2, "PROPS_P1_E1_5", 16);
iVar3 = 1;
iVar4 = 5;
iVar1 = 75;
iVar5 = 10;
break;
case 89:
StringCopy(&Var2, "PROPS_P1_E1_6", 16);
iVar3 = 1;
iVar4 = 6;
iVar1 = 75;
iVar5 = 10;
break;
case 90:
StringCopy(&Var2, "PROPS_P1_E1_7", 16);
iVar3 = 1;
iVar4 = 7;
iVar1 = 75;
iVar5 = 10;
break;
case 91:
StringCopy(&Var2, "PROPS_P1_E1_8", 16);
iVar3 = 1;
iVar4 = 8;
iVar1 = 75;
iVar5 = 10;
break;
case 92:
StringCopy(&Var2, "PROPS_P1_E1_9", 16);
iVar3 = 1;
iVar4 = 9;
iVar1 = 75;
iVar5 = 10;
break;
case 93:
StringCopy(&Var2, "PROPS_P1_E2", 16);
iVar3 = 2;
iVar4 = 0;
iVar5 = 10;
break;
case 94:
StringCopy(&Var2, "PROPS_P1_E3", 16);
iVar3 = 3;
iVar4 = 0;
iVar1 = 110;
iVar5 = 10;
break;
case 95:
StringCopy(&Var2, "PROPS_P1_E4_0", 16);
iVar3 = 4;
iVar4 = 0;
iVar1 = 120;
iVar5 = 10;
break;
case 96:
StringCopy(&Var2, "PROPS_P1_E4_1", 16);
iVar3 = 4;
iVar4 = 1;
iVar1 = 128;
iVar5 = 10;
break;
case 97:
StringCopy(&Var2, "PROPS_P1_E4_2", 16);
iVar3 = 4;
iVar4 = 2;
iVar1 = 130;
iVar5 = 10;
break;
case 98:
StringCopy(&Var2, "PROPS_P1_E4_3", 16);
iVar3 = 4;
iVar4 = 3;
iVar1 = 140;
iVar5 = 10;
break;
case 99:
StringCopy(&Var2, "PROPS_P1_E4_4", 16);
iVar3 = 4;
iVar4 = 4;
iVar1 = 145;
iVar5 = 10;
break;
case 100:
StringCopy(&Var2, "PROPS_P1_E4_5", 16);
iVar3 = 4;
iVar4 = 5;
iVar1 = 135;
iVar5 = 10;
break;
case 101:
StringCopy(&Var2, "PROPS_P1_E4_6", 16);
iVar3 = 4;
iVar4 = 6;
iVar1 = 138;
iVar5 = 10;
break;
case 102:
StringCopy(&Var2, "PROPS_P1_E5_0", 16);
iVar3 = 5;
iVar4 = 0;
iVar1 = 110;
iVar5 = 10;
break;
case 103:
StringCopy(&Var2, "PROPS_P1_E5_1", 16);
iVar3 = 5;
iVar4 = 1;
iVar1 = 112;
iVar5 = 10;
break;
case 104:
StringCopy(&Var2, "PROPS_P1_E5_2", 16);
iVar3 = 5;
iVar4 = 2;
iVar1 = 115;
iVar5 = 10;
break;
case 105:
StringCopy(&Var2, "PROPS_P1_E5_3", 16);
iVar3 = 5;
iVar4 = 3;
iVar1 = 118;
iVar5 = 10;
break;
case 106:
StringCopy(&Var2, "PROPS_P1_E5_4", 16);
iVar3 = 5;
iVar4 = 4;
iVar1 = 120;
iVar5 = 10;
break;
case 107:
StringCopy(&Var2, "PROPS_P1_E5_5", 16);
iVar3 = 5;
iVar4 = 5;
iVar1 = 125;
iVar5 = 10;
break;
case 108:
StringCopy(&Var2, "PROPS_P1_E5_6", 16);
iVar3 = 5;
iVar4 = 6;
iVar1 = 128;
iVar5 = 10;
break;
case 109:
StringCopy(&Var2, "PROPS_P1_E5_7", 16);
iVar3 = 5;
iVar4 = 7;
iVar1 = 138;
iVar5 = 10;
break;
case 110:
StringCopy(&Var2, "PROPS_P1_E5_8", 16);
iVar3 = 5;
iVar4 = 8;
iVar1 = 140;
iVar5 = 10;
break;
case 111:
StringCopy(&Var2, "PROPS_P1_E5_9", 16);
iVar3 = 5;
iVar4 = 9;
iVar1 = 155;
iVar5 = 10;
break;
case 112:
StringCopy(&Var2, "PROPS_P1_E6_0", 16);
iVar3 = 6;
iVar4 = 0;
iVar1 = 55;
iVar5 = 10;
break;
case 113:
StringCopy(&Var2, "PROPS_P1_E6_1", 16);
iVar3 = 6;
iVar4 = 1;
iVar1 = 55;
iVar5 = 10;
break;
case 114:
StringCopy(&Var2, "PROPS_P1_E6_2", 16);
iVar3 = 6;
iVar4 = 2;
iVar1 = 58;
iVar5 = 10;
break;
case 115:
StringCopy(&Var2, "PROPS_P1_E6_3", 16);
iVar3 = 6;
iVar4 = 3;
iVar1 = 58;
iVar5 = 10;
break;
case 116:
StringCopy(&Var2, "PROPS_P1_E6_4", 16);
iVar3 = 6;
iVar4 = 4;
iVar1 = 60;
iVar5 = 10;
break;
case 117:
StringCopy(&Var2, "PROPS_P1_E6_5", 16);
iVar3 = 6;
iVar4 = 5;
iVar1 = 62;
iVar5 = 10;
break;
case 118:
StringCopy(&Var2, "PROPS_P1_E6_6", 16);
iVar3 = 6;
iVar4 = 6;
iVar1 = 65;
iVar5 = 10;
break;
case 119:
StringCopy(&Var2, "PROPS_P1_E6_7", 16);
iVar3 = 6;
iVar4 = 7;
iVar1 = 68;
iVar5 = 10;
break;
case 120:
StringCopy(&Var2, "PROPS_P1_E6_8", 16);
iVar3 = 6;
iVar4 = 8;
iVar1 = 68;
iVar5 = 10;
break;
case 121:
StringCopy(&Var2, "PROPS_P1_E6_9", 16);
iVar3 = 6;
iVar4 = 9;
iVar1 = 72;
iVar5 = 10;
break;
case 122:
StringCopy(&Var2, "PROPS_P1_E7_0", 16);
iVar3 = 7;
iVar4 = 0;
iVar1 = 145;
iVar5 = 10;
break;
case 123:
StringCopy(&Var2, "PROPS_P1_E7_1", 16);
iVar3 = 7;
iVar4 = 1;
iVar1 = 149;
iVar5 = 10;
break;
case 124:
StringCopy(&Var2, "PROPS_P1_E7_2", 16);
iVar3 = 7;
iVar4 = 2;
iVar1 = 139;
iVar5 = 10;
break;
case 125:
StringCopy(&Var2, "PROPS_P1_E7_3", 16);
iVar3 = 7;
iVar4 = 3;
iVar1 = 149;
iVar5 = 10;
break;
case 126:
StringCopy(&Var2, "PROPS_P1_E7_4", 16);
iVar3 = 7;
iVar4 = 4;
iVar1 = 135;
iVar5 = 10;
break;
case 127:
StringCopy(&Var2, "PROPS_P1_E7_5", 16);
iVar3 = 7;
iVar4 = 5;
iVar1 = 138;
iVar5 = 10;
break;
case 128:
StringCopy(&Var2, "PROPS_P1_E7_6", 16);
iVar3 = 7;
iVar4 = 6;
iVar1 = 140;
iVar5 = 10;
break;
case 129:
StringCopy(&Var2, "PROPS_P1_E7_7", 16);
iVar3 = 7;
iVar4 = 7;
iVar1 = 145;
iVar5 = 10;
break;
case 130:
StringCopy(&Var2, "PROPS_P1_E7_8", 16);
iVar3 = 7;
iVar4 = 8;
iVar1 = 159;
iVar5 = 10;
break;
case 131:
StringCopy(&Var2, "PROPS_P1_E7_9", 16);
iVar3 = 7;
iVar4 = 9;
iVar1 = 155;
iVar5 = 10;
break;
case 132:
StringCopy(&Var2, "PROPS_P1_E8_0", 16);
iVar3 = 8;
iVar4 = 0;
iVar1 = 198;
iVar5 = 10;
break;
case 133:
StringCopy(&Var2, "PROPS_P1_E8_1", 16);
iVar3 = 8;
iVar4 = 1;
iVar1 = 210;
iVar5 = 10;
break;
case 134:
StringCopy(&Var2, "PROPS_P1_E8_2", 16);
iVar3 = 8;
iVar4 = 2;
iVar1 = 185;
iVar5 = 10;
break;
case 135:
StringCopy(&Var2, "PROPS_P1_E8_3", 16);
iVar3 = 8;
iVar4 = 3;
iVar1 = 220;
iVar5 = 10;
break;
case 136:
StringCopy(&Var2, "PROPS_P1_E8_4", 16);
iVar3 = 8;
iVar4 = 4;
iVar1 = 190;
iVar5 = 10;
break;
case 137:
StringCopy(&Var2, "PROPS_P1_E8_5", 16);
iVar3 = 8;
iVar4 = 5;
iVar1 = 200;
iVar5 = 10;
break;
case 138:
StringCopy(&Var2, "PROPS_P1_E8_6", 16);
iVar3 = 8;
iVar4 = 6;
iVar1 = 208;
iVar5 = 10;
break;
case 139:
StringCopy(&Var2, "PROPS_P1_E8_7", 16);
iVar3 = 8;
iVar4 = 7;
iVar1 = 210;
iVar5 = 10;
break;
case 140:
StringCopy(&Var2, "PROPS_P1_E9_0", 16);
iVar3 = 9;
iVar4 = 0;
iVar1 = 165;
iVar5 = 10;
break;
case 141:
StringCopy(&Var2, "PROPS_P1_E9_1", 16);
iVar3 = 9;
iVar4 = 1;
iVar1 = 185;
iVar5 = 10;
break;
case 142:
StringCopy(&Var2, "PROPS_P1_E9_2", 16);
iVar3 = 9;
iVar4 = 2;
iVar1 = 190;
iVar5 = 10;
break;
case 143:
StringCopy(&Var2, "PROPS_P1_E9_3", 16);
iVar3 = 9;
iVar4 = 3;
iVar1 = 178;
iVar5 = 10;
break;
case 144:
StringCopy(&Var2, "PROPS_P1_E9_4", 16);
iVar3 = 9;
iVar4 = 4;
iVar1 = 180;
iVar5 = 10;
break;
case 145:
StringCopy(&Var2, "PROPS_P1_E9_5", 16);
iVar3 = 9;
iVar4 = 5;
iVar1 = 168;
iVar5 = 10;
break;
case 146:
StringCopy(&Var2, "PROPS_P1_E9_6", 16);
iVar3 = 9;
iVar4 = 6;
iVar1 = 170;
iVar5 = 10;
break;
case 147:
StringCopy(&Var2, "PROPS_P1_E9_7", 16);
iVar3 = 9;
iVar4 = 7;
iVar1 = 175;
iVar5 = 10;
break;
case 148:
StringCopy(&Var2, "PROPS_P1_E9_8", 16);
iVar3 = 9;
iVar4 = 8;
iVar1 = 170;
iVar5 = 10;
break;
case 149:
StringCopy(&Var2, "PROPS_P1_E9_9", 16);
iVar3 = 9;
iVar4 = 9;
iVar1 = 178;
iVar5 = 10;
break;
case 150:
StringCopy(&Var2, "PROPS_P1_E10_0", 16);
iVar3 = 10;
iVar4 = 0;
iVar1 = 140;
iVar5 = 10;
break;
case 151:
StringCopy(&Var2, "PROPS_P1_E10_1", 16);
iVar3 = 10;
iVar4 = 1;
iVar1 = 145;
iVar5 = 10;
break;
case 152:
StringCopy(&Var2, "PROPS_P1_E10_2", 16);
iVar3 = 10;
iVar4 = 2;
iVar1 = 150;
iVar5 = 10;
break;
case 153:
StringCopy(&Var2, "PROPS_P1_E10_3", 16);
iVar3 = 10;
iVar4 = 3;
iVar1 = 165;
iVar5 = 10;
break;
case 154:
StringCopy(&Var2, "PROPS_P1_E10_4", 16);
iVar3 = 10;
iVar4 = 4;
iVar1 = 168;
iVar5 = 10;
break;
case 155:
StringCopy(&Var2, "PROPS_P1_E10_5", 16);
iVar3 = 10;
iVar4 = 5;
iVar1 = 178;
iVar5 = 10;
break;
case 156:
StringCopy(&Var2, "PROPS_P1_E10_6", 16);
iVar3 = 10;
iVar4 = 6;
iVar1 = 160;
iVar5 = 10;
break;
case 157:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 11;
iVar4 = 0;
iVar1 = 100;
iVar5 = 10;
break;
case 10:
StringCopy(&Var2, "PROPS_P1_H0_0", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 320;
iVar5 = 0;
break;
case 11:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 0;
bVar0 = true;
iVar5 = 0;
break;
case 12:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 2;
iVar4 = 0;
bVar0 = true;
iVar5 = 0;
break;
case 13:
StringCopy(&Var2, "PROPS_P1_H3_0", 16);
iVar3 = 3;
iVar4 = 0;
iVar5 = 0;
break;
case 14:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 4;
iVar4 = 0;
iVar5 = 0;
break;
case 15:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 0;
bVar0 = true;
iVar5 = 0;
break;
case 16:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 0;
iVar5 = 0;
break;
case 17:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 1;
iVar5 = 0;
break;
case 18:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 2;
iVar5 = 0;
break;
case 19:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 3;
iVar5 = 0;
break;
case 20:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 4;
iVar5 = 0;
break;
case 21:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 5;
iVar5 = 0;
break;
case 22:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 6;
iVar5 = 0;
break;
case 23:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 7;
iVar5 = 0;
break;
case 24:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 8;
iVar5 = 0;
break;
case 25:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 7;
iVar4 = 0;
bVar0 = true;
iVar5 = 0;
break;
case 26:
StringCopy(&Var2, "PROPS_P1_H8_0", 16);
iVar3 = 8;
iVar4 = 0;
iVar1 = 270;
iVar5 = 0;
break;
case 27:
StringCopy(&Var2, "PROPS_P1_H8_1", 16);
iVar3 = 8;
iVar4 = 1;
iVar1 = 270;
iVar5 = 0;
break;
case 28:
StringCopy(&Var2, "PROPS_P1_H9_0", 16);
iVar3 = 9;
iVar4 = 0;
iVar1 = 200;
iVar5 = 0;
break;
case 29:
StringCopy(&Var2, "PROPS_P1_H9_1", 16);
iVar3 = 9;
iVar4 = 1;
iVar1 = 200;
iVar5 = 0;
break;
case 30:
StringCopy(&Var2, "PROPS_P1_H10_0", 16);
iVar3 = 10;
iVar4 = 0;
iVar1 = 350;
iVar5 = 0;
break;
case 31:
StringCopy(&Var2, "PROPS_P1_H10_1", 16);
iVar3 = 10;
iVar4 = 1;
iVar1 = 350;
iVar5 = 0;
break;
case 32:
StringCopy(&Var2, "PROPS_P1_H11_0", 16);
iVar3 = 11;
iVar4 = 0;
iVar1 = 450;
iVar5 = 0;
break;
case 33:
StringCopy(&Var2, "PROPS_P1_H12_0", 16);
iVar3 = 12;
iVar4 = 0;
iVar1 = 500;
iVar5 = 0;
break;
case 34:
StringCopy(&Var2, "PROPS_P1_H12_1", 16);
iVar3 = 12;
iVar4 = 1;
iVar1 = 500;
iVar5 = 0;
break;
case 35:
StringCopy(&Var2, "PROPS_P1_H13_0", 16);
iVar3 = 13;
iVar4 = 0;
iVar1 = 50;
iVar5 = 0;
break;
case 36:
StringCopy(&Var2, "PROPS_P1_H13_1", 16);
iVar3 = 13;
iVar4 = 1;
iVar1 = 50;
iVar5 = 0;
break;
case 37:
StringCopy(&Var2, "PROPS_P1_H14_0", 16);
iVar3 = 14;
iVar4 = 0;
iVar1 = 99;
iVar5 = 0;
break;
case 38:
StringCopy(&Var2, "PROPS_P1_H14_1", 16);
iVar3 = 14;
iVar4 = 1;
iVar1 = 99;
iVar5 = 0;
break;
case 39:
StringCopy(&Var2, "PROPS_P1_H14_2", 16);
iVar3 = 14;
iVar4 = 2;
iVar1 = 99;
iVar5 = 0;
break;
case 40:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 15;
iVar4 = 0;
bVar0 = true;
iVar5 = 0;
break;
case 41:
StringCopy(&Var2, "PROPS_P1_H19_0", 16);
iVar3 = 16;
iVar4 = 0;
iVar5 = 0;
break;
case 42:
StringCopy(&Var2, "PROPS_P1_H19_1", 16);
iVar3 = 16;
iVar4 = 1;
iVar5 = 0;
break;
case 43:
StringCopy(&Var2, "PROPS_P1_H19_2", 16);
iVar3 = 16;
iVar4 = 2;
iVar5 = 0;
break;
case 44:
StringCopy(&Var2, "PROPS_P1_H19_3", 16);
iVar3 = 16;
iVar4 = 3;
iVar5 = 0;
break;
case 45:
StringCopy(&Var2, "PROPS_P1_H19_4", 16);
iVar3 = 16;
iVar4 = 4;
iVar5 = 0;
break;
case 46:
StringCopy(&Var2, "PROPS_P1_H19_5", 16);
iVar3 = 16;
iVar4 = 5;
iVar5 = 0;
break;
case 47:
StringCopy(&Var2, "PROPS_P1_H19_6", 16);
iVar3 = 16;
iVar4 = 6;
iVar5 = 0;
break;
case 48:
StringCopy(&Var2, "PROPS_P1_H19_7", 16);
iVar3 = 16;
iVar4 = 7;
iVar5 = 0;
break;
case 49:
StringCopy(&Var2, "PROPS_P1_H19_8", 16);
iVar3 = 16;
iVar4 = 8;
iVar5 = 0;
break;
case 50:
StringCopy(&Var2, "PROPS_P1_H19_9", 16);
iVar3 = 16;
iVar4 = 9;
iVar5 = 0;
break;
case 51:
StringCopy(&Var2, "PROPS_P1_H19_10", 16);
iVar3 = 16;
iVar4 = 10;
iVar5 = 0;
break;
case 52:
StringCopy(&Var2, "PROPS_P1_H19_11", 16);
iVar3 = 16;
iVar4 = 11;
iVar5 = 0;
break;
case 53:
StringCopy(&Var2, "PROPS_P1_H19_12", 16);
iVar3 = 16;
iVar4 = 12;
iVar5 = 0;
break;
case 54:
StringCopy(&Var2, "PROPS_P1_H19_13", 16);
iVar3 = 16;
iVar4 = 13;
iVar5 = 0;
break;
case 55:
StringCopy(&Var2, "PROPS_P1_H19_14", 16);
iVar3 = 16;
iVar4 = 14;
iVar5 = 0;
break;
case 56:
StringCopy(&Var2, "PROPS_P1_H19_15", 16);
iVar3 = 16;
iVar4 = 15;
iVar5 = 0;
break;
case 57:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 17;
iVar4 = 0;
iVar5 = 0;
break;
case 58:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 17;
iVar4 = 1;
iVar5 = 0;
break;
case 59:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 17;
iVar4 = 2;
iVar5 = 0;
break;
case 60:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 17;
iVar4 = 3;
iVar5 = 0;
break;
case 61:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 17;
iVar4 = 4;
iVar5 = 0;
break;
case 62:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 17;
iVar4 = 5;
iVar5 = 0;
break;
case 63:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 18;
iVar4 = 0;
iVar5 = 0;
break;
case 64:
StringCopy(&Var2, "PROPS_P1_H19_0", 16);
iVar3 = 19;
iVar4 = 0;
iVar1 = 30;
iVar5 = 0;
break;
case 65:
StringCopy(&Var2, "PROPS_P1_H19_1", 16);
iVar3 = 19;
iVar4 = 1;
iVar1 = 30;
iVar5 = 0;
break;
case 66:
StringCopy(&Var2, "PROPS_P1_H19_2", 16);
iVar3 = 19;
iVar4 = 2;
iVar1 = 32;
iVar5 = 0;
break;
case 67:
StringCopy(&Var2, "PROPS_P1_H19_3", 16);
iVar3 = 19;
iVar4 = 3;
iVar1 = 35;
iVar5 = 0;
break;
case 68:
StringCopy(&Var2, "PROPS_P1_H19_4", 16);
iVar3 = 19;
iVar4 = 4;
iVar1 = 38;
iVar5 = 0;
break;
case 69:
StringCopy(&Var2, "PROPS_P1_H19_5", 16);
iVar3 = 19;
iVar4 = 5;
iVar1 = 42;
iVar5 = 0;
break;
case 70:
StringCopy(&Var2, "PROPS_P1_H19_6", 16);
iVar3 = 19;
iVar4 = 6;
iVar1 = 42;
iVar5 = 0;
break;
case 71:
StringCopy(&Var2, "PROPS_P1_H19_7", 16);
iVar3 = 19;
iVar4 = 7;
iVar1 = 40;
iVar5 = 0;
break;
case 72:
StringCopy(&Var2, "PROPS_P1_H19_8", 16);
iVar3 = 19;
iVar4 = 8;
iVar1 = 45;
iVar5 = 0;
break;
case 73:
StringCopy(&Var2, "PROPS_P1_H19_9", 16);
iVar3 = 19;
iVar4 = 9;
iVar1 = 48;
iVar5 = 0;
break;
case 74:
StringCopy(&Var2, "PROPS_P1_H19_10", 16);
iVar3 = 19;
iVar4 = 10;
iVar1 = 25;
iVar5 = 0;
break;
case 75:
StringCopy(&Var2, "PROPS_P1_H19_11", 16);
iVar3 = 19;
iVar4 = 11;
iVar1 = 25;
iVar5 = 0;
break;
case 76:
StringCopy(&Var2, "PROPS_P1_H19_12", 16);
iVar3 = 19;
iVar4 = 12;
iVar1 = 28;
iVar5 = 0;
break;
case 77:
StringCopy(&Var2, "PROPS_P1_H19_13", 16);
iVar3 = 19;
iVar4 = 13;
iVar1 = 28;
iVar5 = 0;
break;
case 78:
StringCopy(&Var2, "PROPS_P1_H19_14", 16);
iVar3 = 19;
iVar4 = 14;
iVar1 = 30;
iVar5 = 0;
break;
case 79:
StringCopy(&Var2, "PROPS_P1_H19_15", 16);
iVar3 = 19;
iVar4 = 15;
iVar1 = 35;
iVar5 = 0;
break;
case 80:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 20;
iVar4 = 0;
iVar5 = 0;
break;
case 81:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 21;
iVar4 = 0;
iVar5 = 0;
break;
default:
func_164(iVar7, iParam0, 175, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_183(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 13;
Global_71017[0 /*14*/].f_5 = 1;
switch (iParam0)
{
case 31:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 0:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 1:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
bVar0 = true;
break;
case 2:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
bVar0 = true;
break;
case 3:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
bVar0 = true;
break;
case 4:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 5:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
bVar0 = true;
break;
case 6:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 7:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 8:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
default:
func_164(iVar7, iParam0, 9, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_184(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 12;
Global_71017[0 /*14*/].f_5 = 1;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "OUTFIT_P1_0", 16);
iVar3 = 0;
iVar4 = 0;
bVar0 = true;
break;
case 1:
StringCopy(&Var2, "OUTFIT_P1_2", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 2:
StringCopy(&Var2, "OUTFIT_P1_4", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 3:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 4:
StringCopy(&Var2, "OUTFIT_P1_7", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 5:
StringCopy(&Var2, "OUTFIT_P1_10", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 6:
StringCopy(&Var2, "OUTFIT_P1_11", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 7:
StringCopy(&Var2, "OUTFIT_P1_12", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 8:
StringCopy(&Var2, "OUTFIT_P1_13", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 9:
StringCopy(&Var2, "OUTFIT_P1_15", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 10:
StringCopy(&Var2, "OUTFIT_P1_16", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 11:
StringCopy(&Var2, "OUTFIT_P1_17", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 10000;
break;
case 12:
StringCopy(&Var2, "OUTFIT_P1_18", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 13:
StringCopy(&Var2, "OUTFIT_P1_19", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 105;
break;
case 14:
StringCopy(&Var2, "OUTFIT_P1_20", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 105;
break;
case 15:
StringCopy(&Var2, "OUTFIT_P1_21", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 105;
break;
case 16:
StringCopy(&Var2, "OUTFIT_P1_22", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 17:
StringCopy(&Var2, "OUTFIT_P1_23", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 18:
StringCopy(&Var2, "OUTFIT_P1_24", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 19:
StringCopy(&Var2, "OUTFIT_P1_25", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 20:
StringCopy(&Var2, "OUTFIT_P1_26", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 21:
StringCopy(&Var2, "OUTFIT_P1_27", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 22:
StringCopy(&Var2, "OUTFIT_P1_28", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 4000;
break;
case 23:
StringCopy(&Var2, "OUTFIT_P1_29", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 4500;
break;
case 24:
StringCopy(&Var2, "OUTFIT_P1_30", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 4500;
break;
case 25:
StringCopy(&Var2, "OUTFIT_P1_31", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 4650;
break;
case 26:
StringCopy(&Var2, "OUTFIT_P1_32", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 4900;
break;
case 27:
StringCopy(&Var2, "OUTFIT_P1_33", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 5000;
break;
case 28:
StringCopy(&Var2, "OUTFIT_P1_34", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 4750;
break;
case 29:
StringCopy(&Var2, "OUTFIT_P1_35", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 4750;
break;
case 30:
StringCopy(&Var2, "OUTFIT_P1_36", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 5200;
break;
case 31:
StringCopy(&Var2, "OUTFIT_P1_37", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 5200;
break;
case 32:
StringCopy(&Var2, "OUTFIT_P1_38", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 5500;
break;
case 33:
StringCopy(&Var2, "OUTFIT_P1_39", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 5900;
break;
case 34:
StringCopy(&Var2, "OUTFIT_P1_40", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 5900;
break;
case 35:
StringCopy(&Var2, "OUTFIT_P1_41", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 5900;
break;
case 36:
StringCopy(&Var2, "OUTFIT_P1_42", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 5900;
break;
case 37:
StringCopy(&Var2, "OUTFIT_P1_43", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 5900;
break;
case 38:
StringCopy(&Var2, "OUTFIT_P1_47", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 3000;
break;
case 39:
StringCopy(&Var2, "OUTFIT_P1_48", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 3000;
break;
case 40:
StringCopy(&Var2, "OUTFIT_P1_49", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 3000;
break;
case 41:
StringCopy(&Var2, "OUTFIT_P1_10", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 42:
StringCopy(&Var2, "OUTFIT_P1_50", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 43:
StringCopy(&Var2, "OUTFIT_P1_51", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 44:
StringCopy(&Var2, "OUTFIT_P1_52", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 45:
StringCopy(&Var2, "OUTFIT_P1_53", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 46:
StringCopy(&Var2, "OUTFIT_P1_54", 16);
iVar3 = 0;
iVar4 = 0;
break;
default:
func_164(iVar7, iParam0, 47, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_185(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 11;
Global_71017[0 /*14*/].f_5 = 1;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 1:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 0;
break;
case 2:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 1;
break;
case 3:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 2;
break;
case 4:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 3;
break;
case 5:
StringCopy(&Var2, "JBIB_P1_1_0", 16);
iVar3 = 2;
iVar4 = 0;
break;
case 6:
StringCopy(&Var2, "JBIB_P1_1_1", 16);
iVar3 = 2;
iVar4 = 1;
break;
case 7:
StringCopy(&Var2, "JBIB_P1_1_2", 16);
iVar3 = 2;
iVar4 = 2;
break;
case 8:
StringCopy(&Var2, "JBIB_P1_1_3", 16);
iVar3 = 2;
iVar4 = 3;
break;
case 9:
StringCopy(&Var2, "JBIB_P1_3_0", 16);
iVar3 = 3;
iVar4 = 0;
break;
case 10:
StringCopy(&Var2, "JBIB_P1_3_1", 16);
iVar3 = 3;
iVar4 = 1;
break;
case 11:
StringCopy(&Var2, "JBIB_P1_3_2", 16);
iVar3 = 3;
iVar4 = 2;
break;
case 12:
StringCopy(&Var2, "JBIB_P1_3_3", 16);
iVar3 = 3;
iVar4 = 3;
break;
case 13:
StringCopy(&Var2, "JBIB_P1_3_4", 16);
iVar3 = 3;
iVar4 = 4;
break;
case 14:
StringCopy(&Var2, "JBIB_P1_3_5", 16);
iVar3 = 3;
iVar4 = 5;
break;
case 15:
StringCopy(&Var2, "JBIB_P1_3_6", 16);
iVar3 = 3;
iVar4 = 6;
break;
case 16:
StringCopy(&Var2, "JBIB_P1_3_7", 16);
iVar3 = 3;
iVar4 = 7;
break;
case 17:
StringCopy(&Var2, "JBIB_P1_3_8", 16);
iVar3 = 3;
iVar4 = 8;
break;
case 18:
StringCopy(&Var2, "JBIB_P1_3_9", 16);
iVar3 = 3;
iVar4 = 9;
break;
case 19:
StringCopy(&Var2, "JBIB_P1_3_10", 16);
iVar3 = 3;
iVar4 = 10;
break;
case 20:
StringCopy(&Var2, "JBIB_P1_3_11", 16);
iVar3 = 3;
iVar4 = 11;
break;
case 21:
StringCopy(&Var2, "JBIB_P1_3_12", 16);
iVar3 = 3;
iVar4 = 12;
break;
case 22:
StringCopy(&Var2, "JBIB_P1_3_13", 16);
iVar3 = 3;
iVar4 = 13;
break;
case 23:
StringCopy(&Var2, "JBIB_P1_3_14", 16);
iVar3 = 3;
iVar4 = 14;
break;
case 24:
StringCopy(&Var2, "JBIB_P1_3_15", 16);
iVar3 = 3;
iVar4 = 15;
break;
case 25:
StringCopy(&Var2, "JBIB_P1_3_0", 16);
iVar3 = 4;
iVar4 = 0;
break;
case 26:
StringCopy(&Var2, "JBIB_P1_3_1", 16);
iVar3 = 4;
iVar4 = 1;
break;
case 27:
StringCopy(&Var2, "JBIB_P1_3_2", 16);
iVar3 = 4;
iVar4 = 2;
break;
case 28:
StringCopy(&Var2, "JBIB_P1_3_3", 16);
iVar3 = 4;
iVar4 = 3;
break;
case 29:
StringCopy(&Var2, "JBIB_P1_3_4", 16);
iVar3 = 4;
iVar4 = 4;
break;
case 30:
StringCopy(&Var2, "JBIB_P1_3_5", 16);
iVar3 = 4;
iVar4 = 5;
break;
case 31:
StringCopy(&Var2, "JBIB_P1_3_6", 16);
iVar3 = 4;
iVar4 = 6;
break;
case 32:
StringCopy(&Var2, "JBIB_P1_3_7", 16);
iVar3 = 4;
iVar4 = 7;
break;
case 33:
StringCopy(&Var2, "JBIB_P1_3_8", 16);
iVar3 = 4;
iVar4 = 8;
break;
case 34:
StringCopy(&Var2, "JBIB_P1_3_9", 16);
iVar3 = 4;
iVar4 = 9;
break;
case 35:
StringCopy(&Var2, "JBIB_P1_3_10", 16);
iVar3 = 4;
iVar4 = 10;
break;
case 36:
StringCopy(&Var2, "JBIB_P1_3_11", 16);
iVar3 = 4;
iVar4 = 11;
break;
case 37:
StringCopy(&Var2, "JBIB_P1_3_12", 16);
iVar3 = 4;
iVar4 = 12;
break;
case 38:
StringCopy(&Var2, "JBIB_P1_3_13", 16);
iVar3 = 4;
iVar4 = 13;
break;
case 39:
StringCopy(&Var2, "JBIB_P1_3_14", 16);
iVar3 = 4;
iVar4 = 14;
break;
case 40:
StringCopy(&Var2, "JBIB_P1_3_15", 16);
iVar3 = 4;
iVar4 = 15;
break;
case 41:
StringCopy(&Var2, "JBIB_P1_5_0", 16);
iVar3 = 5;
iVar4 = 0;
break;
case 42:
StringCopy(&Var2, "JBIB_P1_6_0", 16);
iVar3 = 6;
iVar4 = 0;
break;
case 43:
StringCopy(&Var2, "JBIB_P1_6_1", 16);
iVar3 = 6;
iVar4 = 1;
break;
case 44:
StringCopy(&Var2, "JBIB_P1_7_0", 16);
iVar3 = 7;
iVar4 = 0;
break;
case 45:
StringCopy(&Var2, "JBIB_P1_8_0", 16);
iVar3 = 8;
iVar4 = 0;
break;
case 46:
StringCopy(&Var2, "JBIB_P1_9_0", 16);
iVar3 = 9;
iVar4 = 0;
break;
case 47:
StringCopy(&Var2, "JBIB_P1_10_0", 16);
iVar3 = 10;
iVar4 = 0;
break;
case 48:
StringCopy(&Var2, "JBIB_P1_10_1", 16);
iVar3 = 10;
iVar4 = 1;
iVar1 = 48;
break;
case 49:
StringCopy(&Var2, "JBIB_P1_10_2", 16);
iVar3 = 10;
iVar4 = 2;
iVar1 = 35;
break;
case 50:
StringCopy(&Var2, "JBIB_P1_10_3", 16);
iVar3 = 10;
iVar4 = 3;
iVar1 = 32;
break;
case 51:
StringCopy(&Var2, "JBIB_P1_10_4", 16);
iVar3 = 10;
iVar4 = 4;
iVar1 = 35;
break;
case 52:
StringCopy(&Var2, "JBIB_P1_10_5", 16);
iVar3 = 10;
iVar4 = 5;
iVar1 = 48;
break;
case 53:
StringCopy(&Var2, "JBIB_P1_10_6", 16);
iVar3 = 10;
iVar4 = 6;
iVar1 = 52;
break;
case 54:
StringCopy(&Var2, "JBIB_P1_10_7", 16);
iVar3 = 10;
iVar4 = 7;
iVar1 = 38;
break;
case 55:
StringCopy(&Var2, "JBIB_P1_10_8", 16);
iVar3 = 10;
iVar4 = 8;
iVar1 = 42;
break;
case 56:
StringCopy(&Var2, "JBIB_P1_10_9", 16);
iVar3 = 10;
iVar4 = 9;
iVar1 = 38;
break;
case 57:
StringCopy(&Var2, "JBIB_P1_10_10", 16);
iVar3 = 10;
iVar4 = 10;
iVar1 = 35;
break;
case 58:
StringCopy(&Var2, "JBIB_P1_10_11", 16);
iVar3 = 10;
iVar4 = 11;
iVar1 = 48;
break;
case 59:
StringCopy(&Var2, "JBIB_P1_10_12", 16);
iVar3 = 10;
iVar4 = 12;
iVar1 = 42;
break;
case 60:
StringCopy(&Var2, "JBIB_P1_10_13", 16);
iVar3 = 10;
iVar4 = 13;
iVar1 = 45;
break;
case 61:
StringCopy(&Var2, "JBIB_P1_10_14", 16);
iVar3 = 10;
iVar4 = 14;
iVar1 = 45;
break;
case 62:
StringCopy(&Var2, "JBIB_P1_10_15", 16);
iVar3 = 10;
iVar4 = 15;
iVar1 = 49;
break;
default:
func_164(iVar7, iParam0, 63, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_186(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 7;
Global_71017[0 /*14*/].f_5 = 1;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
default:
func_164(iVar7, iParam0, 1, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_187(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 1;
Global_71017[0 /*14*/].f_5 = 1;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "BERD_P1_0_0", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 1:
StringCopy(&Var2, "BERD_P1_1_0", 16);
iVar3 = 1;
iVar4 = 0;
break;
case 2:
StringCopy(&Var2, "BERD_P1_2_0", 16);
iVar3 = 2;
iVar4 = 0;
break;
case 3:
StringCopy(&Var2, "BERD_P1_3_0", 16);
iVar3 = 3;
iVar4 = 0;
break;
case 4:
StringCopy(&Var2, "BERD_P1_4_0", 16);
iVar3 = 4;
iVar4 = 0;
break;
default:
func_164(iVar7, iParam0, 5, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_188(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 10;
Global_71017[0 /*14*/].f_5 = 1;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 1:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 0;
break;
case 2:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 2;
iVar4 = 0;
break;
case 3:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 3;
iVar4 = 0;
break;
case 4:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 3;
iVar4 = 1;
break;
case 5:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 3;
iVar4 = 2;
break;
case 6:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 3;
iVar4 = 3;
break;
case 7:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 3;
iVar4 = 4;
break;
case 8:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 3;
iVar4 = 5;
break;
case 9:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 4;
iVar4 = 0;
break;
case 10:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 4;
iVar4 = 1;
break;
case 11:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 4;
iVar4 = 2;
break;
case 12:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 4;
iVar4 = 3;
break;
case 13:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 4;
iVar4 = 4;
break;
case 14:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 4;
iVar4 = 5;
break;
case 15:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 4;
iVar4 = 6;
break;
case 16:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 0;
break;
case 17:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 1;
break;
case 18:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 2;
break;
case 19:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 3;
break;
case 20:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 4;
break;
case 21:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 5;
break;
case 22:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 6;
break;
case 23:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 7;
break;
case 24:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 8;
break;
case 25:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 9;
break;
case 26:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 10;
break;
case 27:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 11;
break;
case 28:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 12;
break;
case 29:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 13;
break;
case 30:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 14;
break;
case 31:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 15;
break;
case 32:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 0;
break;
case 33:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 1;
break;
case 34:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 2;
break;
case 35:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 3;
break;
case 36:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 4;
break;
case 37:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 5;
break;
case 38:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 6;
break;
case 39:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 7;
iVar4 = 0;
break;
case 40:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 7;
iVar4 = 1;
break;
case 41:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 7;
iVar4 = 2;
break;
case 42:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 7;
iVar4 = 3;
break;
case 43:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 7;
iVar4 = 4;
break;
case 44:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 7;
iVar4 = 5;
break;
case 45:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 7;
iVar4 = 6;
break;
case 46:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 7;
iVar4 = 7;
break;
case 47:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 8;
iVar4 = 0;
break;
case 48:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 8;
iVar4 = 1;
break;
case 49:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 8;
iVar4 = 2;
break;
case 50:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 8;
iVar4 = 3;
break;
case 51:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 0;
break;
case 52:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 10;
iVar4 = 0;
break;
default:
func_164(iVar7, iParam0, 53, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_189(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 9;
Global_71017[0 /*14*/].f_5 = 1;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 1:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 0;
bVar0 = true;
break;
case 2:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 2;
iVar4 = 0;
bVar0 = true;
break;
case 3:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 3;
iVar4 = 0;
bVar0 = true;
break;
case 4:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 4;
iVar4 = 0;
bVar0 = true;
break;
case 5:
StringCopy(&Var2, "SPEC2_P0_08_0", 16);
iVar3 = 5;
iVar4 = 0;
iVar1 = 125;
break;
case 6:
StringCopy(&Var2, "SPEC2_P0_08_1", 16);
iVar3 = 5;
iVar4 = 1;
iVar1 = 150;
break;
case 7:
StringCopy(&Var2, "SPEC2_P0_08_2", 16);
iVar3 = 5;
iVar4 = 2;
iVar1 = 175;
break;
case 8:
StringCopy(&Var2, "SPEC2_P0_08_3", 16);
iVar3 = 5;
iVar4 = 3;
iVar1 = 85;
break;
case 9:
StringCopy(&Var2, "SPEC2_P0_08_4", 16);
iVar3 = 5;
iVar4 = 4;
iVar1 = 150;
break;
case 10:
StringCopy(&Var2, "SPEC2_P0_08_5", 16);
iVar3 = 5;
iVar4 = 5;
iVar1 = 175;
break;
case 11:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 0;
break;
default:
func_164(iVar7, iParam0, 12, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_190(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 8;
Global_71017[0 /*14*/].f_5 = 1;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 1:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 0;
break;
case 2:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 2;
iVar4 = 0;
bVar0 = true;
break;
case 3:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 3;
iVar4 = 0;
bVar0 = true;
break;
case 4:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 4;
iVar4 = 0;
bVar0 = true;
break;
case 5:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 0;
bVar0 = true;
break;
case 6:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 0;
bVar0 = true;
break;
case 7:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 7;
iVar4 = 0;
bVar0 = true;
break;
case 8:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 8;
iVar4 = 0;
bVar0 = true;
break;
case 9:
StringCopy(&Var2, "SPEC_P1_9_0", 16);
iVar3 = 9;
iVar4 = 0;
break;
case 10:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 10;
iVar4 = 0;
bVar0 = true;
break;
case 11:
StringCopy(&Var2, "SPEC_P1_11_0", 16);
iVar3 = 11;
iVar4 = 0;
iVar1 = 195;
break;
case 12:
StringCopy(&Var2, "SPEC_P1_11_1", 16);
iVar3 = 11;
iVar4 = 1;
iVar1 = 195;
break;
case 13:
StringCopy(&Var2, "SPEC_P1_11_2", 16);
iVar3 = 11;
iVar4 = 2;
iVar1 = 195;
break;
case 14:
StringCopy(&Var2, "SPEC_P1_11_3", 16);
iVar3 = 11;
iVar4 = 3;
iVar1 = 250;
break;
case 15:
StringCopy(&Var2, "SPEC_P1_11_4", 16);
iVar3 = 11;
iVar4 = 4;
iVar1 = 250;
break;
case 16:
StringCopy(&Var2, "SPEC_P1_11_5", 16);
iVar3 = 11;
iVar4 = 5;
iVar1 = 250;
break;
case 17:
StringCopy(&Var2, "SPEC_P1_11_6", 16);
iVar3 = 11;
iVar4 = 6;
iVar1 = 195;
break;
case 18:
StringCopy(&Var2, "SPEC_P1_11_7", 16);
iVar3 = 11;
iVar4 = 7;
iVar1 = 250;
break;
case 19:
StringCopy(&Var2, "SPEC_P1_11_8", 16);
iVar3 = 11;
iVar4 = 8;
iVar1 = 250;
break;
case 20:
StringCopy(&Var2, "SPEC_P1_11_9", 16);
iVar3 = 11;
iVar4 = 9;
iVar1 = 250;
break;
case 21:
StringCopy(&Var2, "SPEC_P1_11_10", 16);
iVar3 = 11;
iVar4 = 10;
iVar1 = 250;
break;
case 22:
StringCopy(&Var2, "SPEC_P1_11_11", 16);
iVar3 = 11;
iVar4 = 11;
iVar1 = 195;
break;
case 23:
StringCopy(&Var2, "SPEC_P1_11_12", 16);
iVar3 = 11;
iVar4 = 12;
iVar1 = 250;
break;
case 24:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 12;
iVar4 = 0;
bVar0 = true;
break;
case 25:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 13;
iVar4 = 0;
bVar0 = true;
break;
case 26:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 14;
iVar4 = 0;
break;
case 27:
StringCopy(&Var2, "SPEC_P1_15_0", 16);
iVar3 = 15;
iVar4 = 0;
break;
case 28:
StringCopy(&Var2, "SPEC_P1_15_1", 16);
iVar3 = 15;
iVar4 = 1;
break;
case 29:
StringCopy(&Var2, "SPEC_P1_15_2", 16);
iVar3 = 15;
iVar4 = 2;
break;
case 30:
StringCopy(&Var2, "SPEC_P1_15_3", 16);
iVar3 = 15;
iVar4 = 3;
break;
case 31:
StringCopy(&Var2, "SPEC_P1_15_4", 16);
iVar3 = 15;
iVar4 = 4;
break;
case 32:
StringCopy(&Var2, "SPEC_P1_15_5", 16);
iVar3 = 15;
iVar4 = 5;
break;
case 33:
StringCopy(&Var2, "SPEC_P1_15_6", 16);
iVar3 = 15;
iVar4 = 6;
break;
case 34:
StringCopy(&Var2, "SPEC_P1_15_7", 16);
iVar3 = 15;
iVar4 = 7;
break;
case 35:
StringCopy(&Var2, "SPEC_P1_15_8", 16);
iVar3 = 15;
iVar4 = 8;
break;
case 36:
StringCopy(&Var2, "SPEC_P1_15_9", 16);
iVar3 = 15;
iVar4 = 9;
break;
case 37:
StringCopy(&Var2, "SPEC_P1_15_10", 16);
iVar3 = 15;
iVar4 = 10;
break;
case 38:
StringCopy(&Var2, "SPEC_P1_15_11", 16);
iVar3 = 15;
iVar4 = 11;
break;
case 39:
StringCopy(&Var2, "SPEC_P1_15_12", 16);
iVar3 = 15;
iVar4 = 12;
break;
case 40:
StringCopy(&Var2, "SPEC_P1_15_13", 16);
iVar3 = 15;
iVar4 = 13;
break;
case 41:
StringCopy(&Var2, "SPEC_P1_15_14", 16);
iVar3 = 15;
iVar4 = 14;
break;
case 42:
StringCopy(&Var2, "SPEC_P1_15_15", 16);
iVar3 = 15;
iVar4 = 15;
break;
case 43:
StringCopy(&Var2, "SPEC_P1_15_0", 16);
iVar3 = 16;
iVar4 = 0;
break;
case 44:
StringCopy(&Var2, "SPEC_P1_15_1", 16);
iVar3 = 16;
iVar4 = 1;
break;
case 45:
StringCopy(&Var2, "SPEC_P1_15_2", 16);
iVar3 = 16;
iVar4 = 2;
break;
case 46:
StringCopy(&Var2, "SPEC_P1_15_3", 16);
iVar3 = 16;
iVar4 = 3;
break;
case 47:
StringCopy(&Var2, "SPEC_P1_15_4", 16);
iVar3 = 16;
iVar4 = 4;
break;
case 48:
StringCopy(&Var2, "SPEC_P1_15_5", 16);
iVar3 = 16;
iVar4 = 5;
break;
case 49:
StringCopy(&Var2, "SPEC_P1_15_6", 16);
iVar3 = 16;
iVar4 = 6;
break;
case 50:
StringCopy(&Var2, "SPEC_P1_15_7", 16);
iVar3 = 16;
iVar4 = 7;
break;
case 51:
StringCopy(&Var2, "SPEC_P1_15_8", 16);
iVar3 = 16;
iVar4 = 8;
break;
case 52:
StringCopy(&Var2, "SPEC_P1_15_9", 16);
iVar3 = 16;
iVar4 = 9;
break;
case 53:
StringCopy(&Var2, "SPEC_P1_15_10", 16);
iVar3 = 16;
iVar4 = 10;
break;
case 54:
StringCopy(&Var2, "SPEC_P1_15_11", 16);
iVar3 = 16;
iVar4 = 11;
break;
case 55:
StringCopy(&Var2, "SPEC_P1_15_12", 16);
iVar3 = 16;
iVar4 = 12;
break;
case 56:
StringCopy(&Var2, "SPEC_P1_15_13", 16);
iVar3 = 16;
iVar4 = 13;
break;
case 57:
StringCopy(&Var2, "SPEC_P1_15_14", 16);
iVar3 = 16;
iVar4 = 14;
break;
case 58:
StringCopy(&Var2, "SPEC_P1_15_15", 16);
iVar3 = 16;
iVar4 = 15;
break;
case 59:
StringCopy(&Var2, "SPEC_P1_15_0", 16);
iVar3 = 17;
iVar4 = 0;
break;
case 60:
StringCopy(&Var2, "SPEC_P1_15_1", 16);
iVar3 = 17;
iVar4 = 1;
break;
case 61:
StringCopy(&Var2, "SPEC_P1_15_2", 16);
iVar3 = 17;
iVar4 = 2;
break;
case 62:
StringCopy(&Var2, "SPEC_P1_15_3", 16);
iVar3 = 17;
iVar4 = 3;
break;
case 63:
StringCopy(&Var2, "SPEC_P1_15_4", 16);
iVar3 = 17;
iVar4 = 4;
break;
case 64:
StringCopy(&Var2, "SPEC_P1_15_5", 16);
iVar3 = 17;
iVar4 = 5;
break;
case 65:
StringCopy(&Var2, "SPEC_P1_15_6", 16);
iVar3 = 17;
iVar4 = 6;
break;
case 66:
StringCopy(&Var2, "SPEC_P1_15_7", 16);
iVar3 = 17;
iVar4 = 7;
break;
case 67:
StringCopy(&Var2, "SPEC_P1_15_8", 16);
iVar3 = 17;
iVar4 = 8;
break;
case 68:
StringCopy(&Var2, "SPEC_P1_15_9", 16);
iVar3 = 17;
iVar4 = 9;
break;
case 69:
StringCopy(&Var2, "SPEC_P1_15_10", 16);
iVar3 = 17;
iVar4 = 10;
break;
case 70:
StringCopy(&Var2, "SPEC_P1_15_11", 16);
iVar3 = 17;
iVar4 = 11;
break;
case 71:
StringCopy(&Var2, "SPEC_P1_15_12", 16);
iVar3 = 17;
iVar4 = 12;
break;
case 72:
StringCopy(&Var2, "SPEC_P1_15_13", 16);
iVar3 = 17;
iVar4 = 13;
break;
case 73:
StringCopy(&Var2, "SPEC_P1_15_14", 16);
iVar3 = 17;
iVar4 = 14;
break;
case 74:
StringCopy(&Var2, "SPEC_P1_15_15", 16);
iVar3 = 17;
iVar4 = 15;
break;
case 75:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 18;
iVar4 = 0;
break;
case 76:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 19;
iVar4 = 0;
break;
default:
func_164(iVar7, iParam0, 77, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_191(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 5;
Global_71017[0 /*14*/].f_5 = 1;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 1:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 0;
bVar0 = true;
break;
case 2:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 2;
iVar4 = 0;
bVar0 = true;
break;
case 3:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 2;
iVar4 = 1;
bVar0 = true;
break;
case 4:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 3;
iVar4 = 0;
bVar0 = true;
break;
case 5:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 4;
iVar4 = 0;
bVar0 = true;
break;
case 6:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 0;
bVar0 = true;
break;
default:
func_164(iVar7, iParam0, 7, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_192(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 6;
Global_71017[0 /*14*/].f_5 = 1;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "FEET_P1_00_0", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 1:
StringCopy(&Var2, "FEET_P1_00_1", 16);
iVar3 = 0;
iVar4 = 1;
iVar1 = 80;
break;
case 2:
StringCopy(&Var2, "FEET_P1_00_2", 16);
iVar3 = 0;
iVar4 = 2;
iVar1 = 80;
break;
case 3:
StringCopy(&Var2, "FEET_P1_00_3", 16);
iVar3 = 0;
iVar4 = 3;
iVar1 = 89;
break;
case 4:
StringCopy(&Var2, "FEET_P1_00_4", 16);
iVar3 = 0;
iVar4 = 4;
iVar1 = 45;
break;
case 5:
StringCopy(&Var2, "FEET_P1_00_5", 16);
iVar3 = 0;
iVar4 = 5;
iVar1 = 35;
break;
case 6:
StringCopy(&Var2, "FEET_P1_00_6", 16);
iVar3 = 0;
iVar4 = 6;
iVar1 = 89;
break;
case 7:
StringCopy(&Var2, "FEET_P1_00_7", 16);
iVar3 = 0;
iVar4 = 7;
iVar1 = 95;
break;
case 8:
StringCopy(&Var2, "FEET_P1_00_8", 16);
iVar3 = 0;
iVar4 = 8;
iVar1 = 115;
break;
case 9:
StringCopy(&Var2, "FEET_P1_00_9", 16);
iVar3 = 0;
iVar4 = 9;
iVar1 = 40;
break;
case 10:
StringCopy(&Var2, "FEET_P1_00_10", 16);
iVar3 = 0;
iVar4 = 10;
iVar1 = 145;
break;
case 11:
StringCopy(&Var2, "FEET_P1_00_11", 16);
iVar3 = 0;
iVar4 = 11;
iVar1 = 145;
break;
case 12:
StringCopy(&Var2, "FEET_P1_01_0", 16);
iVar3 = 1;
iVar4 = 0;
break;
case 13:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 2;
iVar4 = 0;
bVar0 = true;
break;
case 14:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 3;
iVar4 = 0;
bVar0 = true;
break;
case 15:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 4;
iVar4 = 0;
bVar0 = true;
break;
case 16:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 4;
iVar4 = 1;
bVar0 = true;
break;
case 17:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 0;
break;
case 18:
StringCopy(&Var2, "FEET_P1_06_0", 16);
iVar3 = 6;
iVar4 = 0;
break;
case 19:
StringCopy(&Var2, "FEET_P1_06_1", 16);
iVar3 = 6;
iVar4 = 1;
iVar1 = 180;
break;
case 20:
StringCopy(&Var2, "FEET_P1_06_2", 16);
iVar3 = 6;
iVar4 = 2;
iVar1 = 80;
break;
case 21:
StringCopy(&Var2, "FEET_P1_06_3", 16);
iVar3 = 6;
iVar4 = 3;
iVar1 = 200;
break;
case 22:
StringCopy(&Var2, "FEET_P1_06_4", 16);
iVar3 = 6;
iVar4 = 4;
iVar1 = 220;
break;
case 23:
StringCopy(&Var2, "FEET_P1_06_5", 16);
iVar3 = 6;
iVar4 = 5;
iVar1 = 235;
break;
case 24:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 7;
iVar4 = 0;
bVar0 = true;
break;
case 25:
StringCopy(&Var2, "FEET_P1_08_0", 16);
iVar3 = 8;
iVar4 = 0;
iVar1 = 870;
break;
case 26:
StringCopy(&Var2, "FEET_P1_08_1", 16);
iVar3 = 8;
iVar4 = 1;
iVar1 = 870;
break;
case 27:
StringCopy(&Var2, "FEET_P1_08_2", 16);
iVar3 = 8;
iVar4 = 2;
iVar1 = 870;
break;
case 28:
StringCopy(&Var2, "FEET_P1_08_3", 16);
iVar3 = 8;
iVar4 = 3;
iVar1 = 1275;
break;
case 29:
StringCopy(&Var2, "FEET_P1_08_4", 16);
iVar3 = 8;
iVar4 = 4;
iVar1 = 1275;
break;
case 30:
StringCopy(&Var2, "FEET_P1_08_5", 16);
iVar3 = 8;
iVar4 = 5;
iVar1 = 1275;
break;
case 31:
StringCopy(&Var2, "FEET_P1_08_6", 16);
iVar3 = 8;
iVar4 = 6;
iVar1 = 1275;
break;
case 32:
StringCopy(&Var2, "FEET_P1_08_7", 16);
iVar3 = 8;
iVar4 = 7;
iVar1 = 1275;
break;
case 33:
StringCopy(&Var2, "FEET_P1_08_8", 16);
iVar3 = 8;
iVar4 = 8;
iVar1 = 1275;
break;
case 34:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 0;
bVar0 = true;
break;
case 35:
StringCopy(&Var2, "FEET_P1_10_0", 16);
iVar3 = 10;
iVar4 = 0;
bVar0 = true;
break;
case 36:
StringCopy(&Var2, "FEET_P1_11_0", 16);
iVar3 = 11;
iVar4 = 0;
break;
case 37:
StringCopy(&Var2, "FEET_P1_11_1", 16);
iVar3 = 11;
iVar4 = 1;
iVar1 = 50;
break;
case 38:
StringCopy(&Var2, "FEET_P1_11_2", 16);
iVar3 = 11;
iVar4 = 2;
iVar1 = 50;
break;
case 39:
StringCopy(&Var2, "FEET_P1_11_3", 16);
iVar3 = 11;
iVar4 = 3;
iVar1 = 50;
break;
case 40:
StringCopy(&Var2, "FEET_P1_11_4", 16);
iVar3 = 11;
iVar4 = 4;
iVar1 = 50;
break;
case 41:
StringCopy(&Var2, "FEET_P1_11_5", 16);
iVar3 = 11;
iVar4 = 5;
iVar1 = 50;
break;
case 42:
StringCopy(&Var2, "FEET_P1_11_6", 16);
iVar3 = 11;
iVar4 = 6;
iVar1 = 50;
break;
case 43:
StringCopy(&Var2, "FEET_P1_11_7", 16);
iVar3 = 11;
iVar4 = 7;
iVar1 = 50;
break;
case 44:
StringCopy(&Var2, "FEET_P1_11_8", 16);
iVar3 = 11;
iVar4 = 8;
iVar1 = 50;
break;
case 45:
StringCopy(&Var2, "FEET_P1_11_9", 16);
iVar3 = 11;
iVar4 = 9;
iVar1 = 50;
break;
case 46:
StringCopy(&Var2, "FEET_P1_11_10", 16);
iVar3 = 11;
iVar4 = 10;
iVar1 = 50;
break;
case 47:
StringCopy(&Var2, "FEET_P1_11_11", 16);
iVar3 = 11;
iVar4 = 11;
iVar1 = 50;
break;
case 48:
StringCopy(&Var2, "FEET_P1_11_12", 16);
iVar3 = 11;
iVar4 = 12;
iVar1 = 50;
break;
case 49:
StringCopy(&Var2, "FEET_P1_11_13", 16);
iVar3 = 11;
iVar4 = 13;
iVar1 = 50;
break;
case 50:
StringCopy(&Var2, "FEET_P1_11_14", 16);
iVar3 = 11;
iVar4 = 14;
iVar1 = 50;
break;
case 51:
StringCopy(&Var2, "FEET_P1_11_15", 16);
iVar3 = 11;
iVar4 = 15;
iVar1 = 50;
break;
case 52:
StringCopy(&Var2, "FEET_P1_12_0", 16);
iVar3 = 12;
iVar4 = 0;
break;
case 53:
StringCopy(&Var2, "FEET_P1_12_1", 16);
iVar3 = 12;
iVar4 = 1;
iVar1 = 25;
break;
case 54:
StringCopy(&Var2, "FEET_P1_12_2", 16);
iVar3 = 12;
iVar4 = 2;
iVar1 = 20;
break;
case 55:
StringCopy(&Var2, "FEET_P1_12_3", 16);
iVar3 = 12;
iVar4 = 3;
iVar1 = 24;
break;
case 56:
StringCopy(&Var2, "FEET_P1_12_4", 16);
iVar3 = 12;
iVar4 = 4;
iVar1 = 25;
break;
case 57:
StringCopy(&Var2, "FEET_P1_12_5", 16);
iVar3 = 12;
iVar4 = 5;
iVar1 = 27;
break;
case 58:
StringCopy(&Var2, "FEET_P1_12_6", 16);
iVar3 = 12;
iVar4 = 6;
iVar1 = 29;
break;
case 59:
StringCopy(&Var2, "FEET_P1_12_7", 16);
iVar3 = 12;
iVar4 = 7;
iVar1 = 27;
break;
case 60:
StringCopy(&Var2, "FEET_P1_12_8", 16);
iVar3 = 12;
iVar4 = 8;
iVar1 = 25;
break;
case 61:
StringCopy(&Var2, "FEET_P1_12_9", 16);
iVar3 = 12;
iVar4 = 9;
iVar1 = 30;
break;
case 62:
StringCopy(&Var2, "FEET_P1_12_10", 16);
iVar3 = 12;
iVar4 = 10;
iVar1 = 28;
break;
case 63:
StringCopy(&Var2, "FEET_P1_12_11", 16);
iVar3 = 12;
iVar4 = 11;
iVar1 = 30;
break;
case 64:
StringCopy(&Var2, "FEET_P1_13_0", 16);
iVar3 = 13;
iVar4 = 0;
bVar0 = true;
break;
case 65:
StringCopy(&Var2, "FEET_P1_14_0", 16);
iVar3 = 14;
iVar4 = 0;
iVar1 = 155;
break;
case 66:
StringCopy(&Var2, "FEET_P1_14_1", 16);
iVar3 = 14;
iVar4 = 1;
iVar1 = 155;
break;
case 67:
StringCopy(&Var2, "FEET_P1_14_2", 16);
iVar3 = 14;
iVar4 = 2;
iVar1 = 165;
break;
case 68:
StringCopy(&Var2, "FEET_P1_14_3", 16);
iVar3 = 14;
iVar4 = 3;
iVar1 = 170;
break;
case 69:
StringCopy(&Var2, "FEET_P1_14_4", 16);
iVar3 = 14;
iVar4 = 4;
iVar1 = 160;
break;
case 70:
StringCopy(&Var2, "FEET_P1_14_5", 16);
iVar3 = 14;
iVar4 = 5;
iVar1 = 165;
break;
case 71:
StringCopy(&Var2, "FEET_P1_14_6", 16);
iVar3 = 14;
iVar4 = 6;
iVar1 = 170;
break;
case 72:
StringCopy(&Var2, "FEET_P1_14_7", 16);
iVar3 = 14;
iVar4 = 7;
iVar1 = 160;
break;
case 73:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 15;
iVar4 = 0;
break;
case 74:
StringCopy(&Var2, "FEET_P1_16_0", 16);
iVar3 = 16;
iVar4 = 0;
iVar1 = 720;
break;
case 75:
StringCopy(&Var2, "FEET_P1_16_1", 16);
iVar3 = 16;
iVar4 = 1;
iVar1 = 680;
break;
case 76:
StringCopy(&Var2, "FEET_P1_16_2", 16);
iVar3 = 16;
iVar4 = 2;
iVar1 = 650;
break;
case 77:
StringCopy(&Var2, "FEET_P1_16_3", 16);
iVar3 = 16;
iVar4 = 3;
iVar1 = 670;
break;
case 78:
StringCopy(&Var2, "FEET_P1_16_4", 16);
iVar3 = 16;
iVar4 = 4;
iVar1 = 700;
break;
case 79:
StringCopy(&Var2, "FEET_P1_16_5", 16);
iVar3 = 16;
iVar4 = 5;
iVar1 = 680;
break;
case 80:
StringCopy(&Var2, "FEET_P1_16_6", 16);
iVar3 = 16;
iVar4 = 6;
iVar1 = 720;
break;
case 81:
StringCopy(&Var2, "FEET_P1_16_7", 16);
iVar3 = 16;
iVar4 = 7;
iVar1 = 740;
break;
case 82:
StringCopy(&Var2, "FEET_P1_16_8", 16);
iVar3 = 16;
iVar4 = 8;
iVar1 = 760;
break;
case 83:
StringCopy(&Var2, "FEET_P1_16_9", 16);
iVar3 = 16;
iVar4 = 9;
iVar1 = 780;
break;
case 84:
StringCopy(&Var2, "FEET_P1_16_10", 16);
iVar3 = 16;
iVar4 = 10;
iVar1 = 750;
break;
case 85:
StringCopy(&Var2, "FEET_P1_16_11", 16);
iVar3 = 16;
iVar4 = 11;
iVar1 = 700;
break;
case 86:
StringCopy(&Var2, "FEET_P1_17_0", 16);
iVar3 = 17;
iVar4 = 0;
iVar1 = 790;
break;
case 87:
StringCopy(&Var2, "FEET_P1_17_1", 16);
iVar3 = 17;
iVar4 = 1;
iVar1 = 750;
break;
case 88:
StringCopy(&Var2, "FEET_P1_17_2", 16);
iVar3 = 17;
iVar4 = 2;
iVar1 = 860;
break;
case 89:
StringCopy(&Var2, "FEET_P1_17_3", 16);
iVar3 = 17;
iVar4 = 3;
iVar1 = 750;
break;
case 90:
StringCopy(&Var2, "FEET_P1_17_4", 16);
iVar3 = 17;
iVar4 = 4;
iVar1 = 790;
break;
case 91:
StringCopy(&Var2, "FEET_P1_17_5", 16);
iVar3 = 17;
iVar4 = 5;
iVar1 = 840;
break;
case 92:
StringCopy(&Var2, "FEET_P1_17_6", 16);
iVar3 = 17;
iVar4 = 6;
iVar1 = 820;
break;
case 93:
StringCopy(&Var2, "FEET_P1_17_7", 16);
iVar3 = 17;
iVar4 = 7;
iVar1 = 800;
break;
case 94:
StringCopy(&Var2, "FEET_P1_17_8", 16);
iVar3 = 17;
iVar4 = 8;
iVar1 = 850;
break;
case 95:
StringCopy(&Var2, "FEET_P1_17_9", 16);
iVar3 = 17;
iVar4 = 9;
iVar1 = 870;
break;
case 96:
StringCopy(&Var2, "FEET_P1_17_10", 16);
iVar3 = 17;
iVar4 = 10;
iVar1 = 720;
break;
case 97:
StringCopy(&Var2, "FEET_P1_17_11", 16);
iVar3 = 17;
iVar4 = 11;
iVar1 = 740;
break;
case 98:
StringCopy(&Var2, "FEET_P1_17_12", 16);
iVar3 = 17;
iVar4 = 12;
iVar1 = 800;
break;
case 99:
StringCopy(&Var2, "FEET_P1_17_13", 16);
iVar3 = 17;
iVar4 = 13;
iVar1 = 750;
break;
case 100:
StringCopy(&Var2, "FEET_P1_17_14", 16);
iVar3 = 17;
iVar4 = 14;
iVar1 = 770;
break;
case 101:
StringCopy(&Var2, "FEET_P1_17_15", 16);
iVar3 = 17;
iVar4 = 15;
iVar1 = 860;
break;
case 102:
StringCopy(&Var2, "FEET_P1_18_0", 16);
iVar3 = 18;
iVar4 = 0;
iVar1 = 850;
break;
case 103:
StringCopy(&Var2, "FEET_P1_18_1", 16);
iVar3 = 18;
iVar4 = 1;
iVar1 = 800;
break;
case 104:
StringCopy(&Var2, "FEET_P1_18_2", 16);
iVar3 = 18;
iVar4 = 2;
iVar1 = 780;
break;
case 105:
StringCopy(&Var2, "FEET_P1_18_3", 16);
iVar3 = 18;
iVar4 = 3;
iVar1 = 890;
break;
case 106:
StringCopy(&Var2, "FEET_P1_18_4", 16);
iVar3 = 18;
iVar4 = 4;
iVar1 = 820;
break;
case 107:
StringCopy(&Var2, "FEET_P1_18_5", 16);
iVar3 = 18;
iVar4 = 5;
iVar1 = 840;
break;
case 108:
StringCopy(&Var2, "FEET_P1_18_6", 16);
iVar3 = 18;
iVar4 = 6;
iVar1 = 870;
break;
case 109:
StringCopy(&Var2, "FEET_P1_18_7", 16);
iVar3 = 18;
iVar4 = 7;
iVar1 = 930;
break;
case 110:
StringCopy(&Var2, "FEET_P1_18_8", 16);
iVar3 = 18;
iVar4 = 8;
iVar1 = 880;
break;
case 111:
StringCopy(&Var2, "FEET_P1_18_9", 16);
iVar3 = 18;
iVar4 = 9;
iVar1 = 900;
break;
case 112:
StringCopy(&Var2, "FEET_P1_18_10", 16);
iVar3 = 18;
iVar4 = 10;
iVar1 = 920;
break;
case 113:
StringCopy(&Var2, "FEET_P1_18_11", 16);
iVar3 = 18;
iVar4 = 11;
iVar1 = 970;
break;
case 114:
StringCopy(&Var2, "FEET_P1_18_12", 16);
iVar3 = 18;
iVar4 = 12;
iVar1 = 990;
break;
case 115:
StringCopy(&Var2, "FEET_P1_18_13", 16);
iVar3 = 18;
iVar4 = 13;
iVar1 = 960;
break;
case 116:
StringCopy(&Var2, "FEET_P1_18_14", 16);
iVar3 = 18;
iVar4 = 14;
iVar1 = 980;
break;
case 117:
StringCopy(&Var2, "FEET_P1_18_15", 16);
iVar3 = 18;
iVar4 = 15;
iVar1 = 950;
break;
case 118:
StringCopy(&Var2, "FEET_P1_19_0", 16);
iVar3 = 19;
iVar4 = 0;
iVar1 = 110;
break;
case 119:
StringCopy(&Var2, "FEET_P1_19_1", 16);
iVar3 = 19;
iVar4 = 1;
iVar1 = 115;
break;
case 120:
StringCopy(&Var2, "FEET_P1_19_2", 16);
iVar3 = 19;
iVar4 = 2;
iVar1 = 120;
break;
case 121:
StringCopy(&Var2, "FEET_P1_19_3", 16);
iVar3 = 19;
iVar4 = 3;
iVar1 = 110;
break;
case 122:
StringCopy(&Var2, "FEET_P1_19_4", 16);
iVar3 = 19;
iVar4 = 4;
iVar1 = 125;
break;
case 123:
StringCopy(&Var2, "FEET_P1_19_5", 16);
iVar3 = 19;
iVar4 = 5;
iVar1 = 128;
break;
case 124:
StringCopy(&Var2, "FEET_P1_19_6", 16);
iVar3 = 19;
iVar4 = 6;
iVar1 = 135;
break;
case 125:
StringCopy(&Var2, "FEET_P1_19_7", 16);
iVar3 = 19;
iVar4 = 7;
iVar1 = 130;
break;
case 126:
StringCopy(&Var2, "FEET_P1_19_8", 16);
iVar3 = 19;
iVar4 = 8;
iVar1 = 145;
break;
case 127:
StringCopy(&Var2, "FEET_P1_19_9", 16);
iVar3 = 19;
iVar4 = 9;
iVar1 = 110;
break;
case 128:
StringCopy(&Var2, "FEET_P1_19_10", 16);
iVar3 = 19;
iVar4 = 10;
iVar1 = 120;
break;
case 129:
StringCopy(&Var2, "FEET_P1_19_11", 16);
iVar3 = 19;
iVar4 = 11;
iVar1 = 150;
break;
case 130:
StringCopy(&Var2, "FEET_P1_19_12", 16);
iVar3 = 19;
iVar4 = 12;
iVar1 = 125;
break;
case 131:
StringCopy(&Var2, "FEET_P1_19_13", 16);
iVar3 = 19;
iVar4 = 13;
iVar1 = 120;
break;
case 132:
StringCopy(&Var2, "FEET_P1_19_14", 16);
iVar3 = 19;
iVar4 = 14;
iVar1 = 130;
break;
case 133:
StringCopy(&Var2, "FEET_P1_19_15", 16);
iVar3 = 19;
iVar4 = 15;
iVar1 = 110;
break;
default:
func_164(iVar7, iParam0, 134, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_193(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 4;
Global_71017[0 /*14*/].f_5 = 1;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "LEGS_P1_0_0", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 1:
StringCopy(&Var2, "LEGS_P1_0_1", 16);
iVar3 = 0;
iVar4 = 1;
iVar1 = 32;
break;
case 2:
StringCopy(&Var2, "LEGS_P1_0_2", 16);
iVar3 = 0;
iVar4 = 2;
iVar1 = 38;
break;
case 3:
StringCopy(&Var2, "LEGS_P1_0_3", 16);
iVar3 = 0;
iVar4 = 3;
iVar1 = 44;
break;
case 4:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 0;
bVar0 = true;
break;
case 5:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 1;
bVar0 = true;
break;
case 6:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 2;
bVar0 = true;
break;
case 7:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 3;
bVar0 = true;
break;
case 8:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 4;
bVar0 = true;
break;
case 9:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 5;
bVar0 = true;
break;
case 10:
StringCopy(&Var2, "LEGS_P1_2_0", 16);
iVar3 = 2;
iVar4 = 0;
bVar0 = true;
break;
case 11:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 3;
iVar4 = 0;
bVar0 = true;
break;
case 12:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 4;
iVar4 = 0;
bVar0 = true;
break;
case 13:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 0;
bVar0 = true;
break;
case 14:
StringCopy(&Var2, "LEGS_P1_6_0", 16);
iVar3 = 6;
iVar4 = 0;
break;
case 15:
StringCopy(&Var2, "LEGS_P1_6_1", 16);
iVar3 = 6;
iVar4 = 1;
iVar1 = 690;
break;
case 16:
StringCopy(&Var2, "LEGS_P1_6_2", 16);
iVar3 = 6;
iVar4 = 2;
iVar1 = 720;
break;
case 17:
StringCopy(&Var2, "LEGS_P1_6_3", 16);
iVar3 = 6;
iVar4 = 3;
iVar1 = 850;
break;
case 18:
StringCopy(&Var2, "LEGS_P1_6_4", 16);
iVar3 = 6;
iVar4 = 4;
iVar1 = 850;
break;
case 19:
StringCopy(&Var2, "LEGS_P1_6_5", 16);
iVar3 = 6;
iVar4 = 5;
iVar1 = 740;
break;
case 20:
StringCopy(&Var2, "LEGS_P1_6_6", 16);
iVar3 = 6;
iVar4 = 6;
iVar1 = 750;
break;
case 21:
StringCopy(&Var2, "LEGS_P1_6_7", 16);
iVar3 = 6;
iVar4 = 7;
iVar1 = 790;
break;
case 22:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 7;
iVar4 = 0;
bVar0 = true;
break;
case 23:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 7;
iVar4 = 1;
bVar0 = true;
break;
case 24:
StringCopy(&Var2, "LEGS_P1_8_0", 16);
iVar3 = 8;
iVar4 = 0;
break;
case 25:
StringCopy(&Var2, "LEGS_P1_8_1", 16);
iVar3 = 8;
iVar4 = 1;
iVar1 = 145;
break;
case 26:
StringCopy(&Var2, "LEGS_P1_8_2", 16);
iVar3 = 8;
iVar4 = 2;
iVar1 = 140;
break;
case 27:
StringCopy(&Var2, "LEGS_P1_8_3", 16);
iVar3 = 8;
iVar4 = 3;
iVar1 = 148;
break;
case 28:
StringCopy(&Var2, "LEGS_P1_8_4", 16);
iVar3 = 8;
iVar4 = 4;
iVar1 = 150;
break;
case 29:
StringCopy(&Var2, "LEGS_P1_8_5", 16);
iVar3 = 8;
iVar4 = 5;
iVar1 = 154;
break;
case 30:
StringCopy(&Var2, "LEGS_P1_8_6", 16);
iVar3 = 8;
iVar4 = 6;
iVar1 = 158;
break;
case 31:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 0;
bVar0 = true;
break;
case 32:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 10;
iVar4 = 0;
bVar0 = true;
break;
case 33:
StringCopy(&Var2, "LEGS_P1_11_0", 16);
iVar3 = 11;
iVar4 = 0;
iVar1 = 820;
break;
case 34:
StringCopy(&Var2, "LEGS_P1_11_1", 16);
iVar3 = 11;
iVar4 = 1;
iVar1 = 820;
break;
case 35:
StringCopy(&Var2, "LEGS_P1_11_2", 16);
iVar3 = 11;
iVar4 = 2;
iVar1 = 850;
break;
case 36:
StringCopy(&Var2, "LEGS_P1_11_3", 16);
iVar3 = 11;
iVar4 = 3;
iVar1 = 850;
break;
case 37:
StringCopy(&Var2, "LEGS_P1_11_4", 16);
iVar3 = 11;
iVar4 = 4;
iVar1 = 920;
break;
case 38:
StringCopy(&Var2, "LEGS_P1_11_5", 16);
iVar3 = 11;
iVar4 = 5;
iVar1 = 950;
break;
case 39:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 12;
iVar4 = 0;
break;
case 40:
StringCopy(&Var2, "LEGS_P1_13_0", 16);
iVar3 = 13;
iVar4 = 0;
break;
case 41:
StringCopy(&Var2, "LEGS_P1_13_1", 16);
iVar3 = 13;
iVar4 = 1;
iVar1 = 45;
break;
case 42:
StringCopy(&Var2, "LEGS_P1_13_2", 16);
iVar3 = 13;
iVar4 = 2;
iVar1 = 48;
break;
case 43:
StringCopy(&Var2, "LEGS_P1_13_3", 16);
iVar3 = 13;
iVar4 = 3;
iVar1 = 45;
break;
case 44:
StringCopy(&Var2, "LEGS_P1_13_4", 16);
iVar3 = 13;
iVar4 = 4;
iVar1 = 48;
break;
case 45:
StringCopy(&Var2, "LEGS_P1_13_5", 16);
iVar3 = 13;
iVar4 = 5;
iVar1 = 52;
break;
case 46:
StringCopy(&Var2, "LEGS_P1_13_6", 16);
iVar3 = 13;
iVar4 = 6;
iVar1 = 55;
break;
case 47:
StringCopy(&Var2, "LEGS_P1_13_7", 16);
iVar3 = 13;
iVar4 = 7;
iVar1 = 58;
break;
case 48:
StringCopy(&Var2, "LEGS_P1_13_8", 16);
iVar3 = 13;
iVar4 = 8;
iVar1 = 60;
break;
case 49:
StringCopy(&Var2, "LEGS_P1_13_9", 16);
iVar3 = 13;
iVar4 = 9;
iVar1 = 58;
break;
case 50:
StringCopy(&Var2, "LEGS_P1_13_10", 16);
iVar3 = 13;
iVar4 = 10;
iVar1 = 62;
break;
case 51:
StringCopy(&Var2, "LEGS_P1_13_11", 16);
iVar3 = 13;
iVar4 = 11;
iVar1 = 65;
break;
case 52:
StringCopy(&Var2, "LEGS_P1_14_0", 16);
iVar3 = 14;
iVar4 = 0;
break;
case 53:
StringCopy(&Var2, "LEGS_P1_15_0", 16);
iVar3 = 15;
iVar4 = 0;
break;
case 54:
StringCopy(&Var2, "LEGS_P1_15_1", 16);
iVar3 = 15;
iVar4 = 1;
break;
case 55:
StringCopy(&Var2, "LEGS_P1_15_2", 16);
iVar3 = 15;
iVar4 = 2;
break;
case 56:
StringCopy(&Var2, "LEGS_P1_15_3", 16);
iVar3 = 15;
iVar4 = 3;
break;
case 57:
StringCopy(&Var2, "LEGS_P1_15_4", 16);
iVar3 = 15;
iVar4 = 4;
break;
case 58:
StringCopy(&Var2, "LEGS_P1_15_5", 16);
iVar3 = 15;
iVar4 = 5;
break;
case 59:
StringCopy(&Var2, "LEGS_P1_15_6", 16);
iVar3 = 15;
iVar4 = 6;
break;
case 60:
StringCopy(&Var2, "LEGS_P1_15_7", 16);
iVar3 = 15;
iVar4 = 7;
break;
case 61:
StringCopy(&Var2, "LEGS_P1_15_8", 16);
iVar3 = 15;
iVar4 = 8;
break;
case 62:
StringCopy(&Var2, "LEGS_P1_15_9", 16);
iVar3 = 15;
iVar4 = 9;
break;
case 63:
StringCopy(&Var2, "LEGS_P1_15_10", 16);
iVar3 = 15;
iVar4 = 10;
break;
case 64:
StringCopy(&Var2, "LEGS_P1_15_11", 16);
iVar3 = 15;
iVar4 = 11;
break;
case 65:
StringCopy(&Var2, "LEGS_P1_15_12", 16);
iVar3 = 15;
iVar4 = 12;
break;
case 66:
StringCopy(&Var2, "LEGS_P1_15_13", 16);
iVar3 = 15;
iVar4 = 13;
break;
case 67:
StringCopy(&Var2, "LEGS_P1_15_14", 16);
iVar3 = 15;
iVar4 = 14;
break;
case 68:
StringCopy(&Var2, "LEGS_P1_15_15", 16);
iVar3 = 15;
iVar4 = 15;
break;
case 69:
StringCopy(&Var2, "LEGS_P1_16_0", 16);
iVar3 = 16;
iVar4 = 0;
bVar0 = true;
break;
case 70:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 16;
iVar4 = 1;
bVar0 = true;
break;
case 71:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 17;
iVar4 = 0;
bVar0 = true;
break;
case 72:
StringCopy(&Var2, "LEGS_P1_18_0", 16);
iVar3 = 18;
iVar4 = 0;
break;
case 73:
StringCopy(&Var2, "LEGS_P1_18_1", 16);
iVar3 = 18;
iVar4 = 1;
iVar1 = 160;
break;
case 74:
StringCopy(&Var2, "LEGS_P1_18_2", 16);
iVar3 = 18;
iVar4 = 2;
iVar1 = 180;
break;
case 75:
StringCopy(&Var2, "LEGS_P1_18_3", 16);
iVar3 = 18;
iVar4 = 3;
iVar1 = 180;
break;
case 76:
StringCopy(&Var2, "LEGS_P1_18_4", 16);
iVar3 = 18;
iVar4 = 4;
break;
case 77:
StringCopy(&Var2, "LEGS_P1_18_5", 16);
iVar3 = 18;
iVar4 = 5;
break;
case 78:
StringCopy(&Var2, "LEGS_P1_19_0", 16);
iVar3 = 19;
iVar4 = 0;
bVar0 = true;
break;
case 79:
StringCopy(&Var2, "LEGS_P1_20_0", 16);
iVar3 = 20;
iVar4 = 0;
iVar1 = 118;
break;
case 80:
StringCopy(&Var2, "LEGS_P1_20_1", 16);
iVar3 = 20;
iVar4 = 1;
iVar1 = 120;
break;
case 81:
StringCopy(&Var2, "LEGS_P1_20_2", 16);
iVar3 = 20;
iVar4 = 2;
iVar1 = 128;
break;
case 82:
StringCopy(&Var2, "LEGS_P1_20_3", 16);
iVar3 = 20;
iVar4 = 3;
iVar1 = 128;
break;
case 83:
StringCopy(&Var2, "LEGS_P1_20_4", 16);
iVar3 = 20;
iVar4 = 4;
iVar1 = 130;
break;
case 84:
StringCopy(&Var2, "LEGS_P1_20_5", 16);
iVar3 = 20;
iVar4 = 5;
iVar1 = 145;
break;
case 85:
StringCopy(&Var2, "LEGS_P1_20_6", 16);
iVar3 = 20;
iVar4 = 6;
iVar1 = 138;
break;
case 86:
StringCopy(&Var2, "LEGS_P1_20_7", 16);
iVar3 = 20;
iVar4 = 7;
iVar1 = 132;
break;
case 87:
StringCopy(&Var2, "LEGS_P1_20_8", 16);
iVar3 = 20;
iVar4 = 8;
iVar1 = 148;
break;
case 88:
StringCopy(&Var2, "LEGS_P1_21_0", 16);
iVar3 = 21;
iVar4 = 0;
iVar1 = 118;
break;
case 89:
StringCopy(&Var2, "LEGS_P1_21_1", 16);
iVar3 = 21;
iVar4 = 1;
iVar1 = 118;
break;
case 90:
StringCopy(&Var2, "LEGS_P1_21_2", 16);
iVar3 = 21;
iVar4 = 2;
iVar1 = 118;
break;
case 91:
StringCopy(&Var2, "LEGS_P1_21_3", 16);
iVar3 = 21;
iVar4 = 3;
iVar1 = 129;
break;
case 92:
StringCopy(&Var2, "LEGS_P1_21_4", 16);
iVar3 = 21;
iVar4 = 4;
iVar1 = 135;
break;
case 93:
StringCopy(&Var2, "LEGS_P1_21_5", 16);
iVar3 = 21;
iVar4 = 5;
iVar1 = 135;
break;
case 94:
StringCopy(&Var2, "LEGS_P1_21_6", 16);
iVar3 = 21;
iVar4 = 6;
iVar1 = 118;
break;
case 95:
StringCopy(&Var2, "LEGS_P1_21_7", 16);
iVar3 = 21;
iVar4 = 7;
iVar1 = 118;
break;
case 96:
StringCopy(&Var2, "LEGS_P1_21_8", 16);
iVar3 = 21;
iVar4 = 8;
iVar1 = 118;
break;
case 97:
StringCopy(&Var2, "LEGS_P1_22_0", 16);
iVar3 = 22;
iVar4 = 0;
iVar1 = 55;
break;
case 98:
StringCopy(&Var2, "LEGS_P1_22_1", 16);
iVar3 = 22;
iVar4 = 1;
iVar1 = 55;
break;
case 99:
StringCopy(&Var2, "LEGS_P1_22_2", 16);
iVar3 = 22;
iVar4 = 2;
iVar1 = 59;
break;
case 100:
StringCopy(&Var2, "LEGS_P1_22_3", 16);
iVar3 = 22;
iVar4 = 3;
iVar1 = 59;
break;
case 101:
StringCopy(&Var2, "LEGS_P1_22_4", 16);
iVar3 = 22;
iVar4 = 4;
iVar1 = 65;
break;
case 102:
StringCopy(&Var2, "LEGS_P1_22_5", 16);
iVar3 = 22;
iVar4 = 5;
iVar1 = 65;
break;
case 103:
StringCopy(&Var2, "LEGS_P1_22_6", 16);
iVar3 = 22;
iVar4 = 6;
iVar1 = 69;
break;
case 104:
StringCopy(&Var2, "LEGS_P1_22_7", 16);
iVar3 = 22;
iVar4 = 7;
iVar1 = 69;
break;
case 105:
StringCopy(&Var2, "LEGS_P1_22_8", 16);
iVar3 = 22;
iVar4 = 8;
iVar1 = 75;
break;
case 106:
StringCopy(&Var2, "LEGS_P1_22_9", 16);
iVar3 = 22;
iVar4 = 9;
iVar1 = 75;
break;
case 107:
StringCopy(&Var2, "LEGS_P1_22_10", 16);
iVar3 = 22;
iVar4 = 10;
iVar1 = 65;
break;
case 108:
StringCopy(&Var2, "LEGS_P1_22_11", 16);
iVar3 = 22;
iVar4 = 11;
iVar1 = 65;
break;
case 109:
StringCopy(&Var2, "LEGS_P1_22_12", 16);
iVar3 = 22;
iVar4 = 12;
iVar1 = 65;
break;
case 110:
StringCopy(&Var2, "LEGS_P1_22_13", 16);
iVar3 = 22;
iVar4 = 13;
iVar1 = 65;
break;
case 111:
StringCopy(&Var2, "LEGS_P1_23_0", 16);
iVar3 = 23;
iVar4 = 0;
iVar1 = 38;
break;
case 112:
StringCopy(&Var2, "LEGS_P1_23_1", 16);
iVar3 = 23;
iVar4 = 1;
iVar1 = 38;
break;
case 113:
StringCopy(&Var2, "LEGS_P1_23_2", 16);
iVar3 = 23;
iVar4 = 2;
iVar1 = 28;
break;
case 114:
StringCopy(&Var2, "LEGS_P1_23_3", 16);
iVar3 = 23;
iVar4 = 3;
iVar1 = 34;
break;
case 115:
StringCopy(&Var2, "LEGS_P1_23_4", 16);
iVar3 = 23;
iVar4 = 4;
iVar1 = 36;
break;
case 116:
StringCopy(&Var2, "LEGS_P1_23_5", 16);
iVar3 = 23;
iVar4 = 5;
iVar1 = 32;
break;
default:
func_164(iVar7, iParam0, 117, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_194(int iParam0)
{
if (iParam0 < 107)
{
func_197(iParam0);
}
else if (iParam0 < 227)
{
func_196(iParam0);
}
else
{
func_195(iParam0);
}
if (Global_71017[0 /*14*/].f_2 == -1)
{
func_164(3, iParam0, 318, -1);
}
}
void func_195(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 3;
Global_71017[0 /*14*/].f_5 = 1;
switch (iParam0)
{
case 227:
StringCopy(&Var2, "TORSO_P1_18_0", 16);
iVar3 = 23;
iVar4 = 0;
iVar6 = 3;
break;
case 228:
StringCopy(&Var2, "TORSO_P1_18_1", 16);
iVar3 = 23;
iVar4 = 1;
iVar6 = 3;
break;
case 229:
StringCopy(&Var2, "TORSO_P1_18_2", 16);
iVar3 = 23;
iVar4 = 2;
iVar6 = 3;
break;
case 230:
StringCopy(&Var2, "TORSO_P1_18_3", 16);
iVar3 = 23;
iVar4 = 3;
iVar6 = 3;
break;
case 231:
StringCopy(&Var2, "TORSO_P1_18_4", 16);
iVar3 = 23;
iVar4 = 4;
iVar6 = 3;
break;
case 232:
StringCopy(&Var2, "TORSO_P1_18_5", 16);
iVar3 = 23;
iVar4 = 5;
iVar6 = 3;
break;
case 233:
StringCopy(&Var2, "TORSO_P1_18_6", 16);
iVar3 = 23;
iVar4 = 6;
iVar6 = 3;
break;
case 234:
StringCopy(&Var2, "TORSO_P1_18_7", 16);
iVar3 = 23;
iVar4 = 7;
iVar6 = 3;
break;
case 235:
StringCopy(&Var2, "TORSO_P1_18_8", 16);
iVar3 = 23;
iVar4 = 8;
iVar6 = 3;
break;
case 236:
StringCopy(&Var2, "TORSO_P1_18_9", 16);
iVar3 = 23;
iVar4 = 9;
iVar6 = 3;
break;
case 237:
StringCopy(&Var2, "TORSO_P1_18_10", 16);
iVar3 = 23;
iVar4 = 10;
iVar6 = 3;
break;
case 238:
StringCopy(&Var2, "TORSO_P1_18_11", 16);
iVar3 = 23;
iVar4 = 11;
iVar6 = 3;
break;
case 239:
StringCopy(&Var2, "TORSO_P1_18_12", 16);
iVar3 = 23;
iVar4 = 12;
iVar6 = 3;
break;
case 240:
StringCopy(&Var2, "TORSO_P1_18_13", 16);
iVar3 = 23;
iVar4 = 13;
iVar6 = 3;
break;
case 241:
StringCopy(&Var2, "TORSO_P1_18_14", 16);
iVar3 = 23;
iVar4 = 14;
iVar6 = 3;
break;
case 242:
StringCopy(&Var2, "TORSO_P1_18_15", 16);
iVar3 = 23;
iVar4 = 15;
iVar6 = 3;
break;
case 243:
StringCopy(&Var2, "TORSO_P1_24_0", 16);
iVar3 = 24;
iVar4 = 0;
iVar1 = 2200;
iVar6 = 3;
break;
case 244:
StringCopy(&Var2, "TORSO_P1_24_1", 16);
iVar3 = 24;
iVar4 = 1;
iVar1 = 2200;
iVar6 = 3;
break;
case 245:
StringCopy(&Var2, "TORSO_P1_24_2", 16);
iVar3 = 24;
iVar4 = 2;
iVar1 = 2200;
iVar6 = 3;
break;
case 246:
StringCopy(&Var2, "TORSO_P1_24_3", 16);
iVar3 = 24;
iVar4 = 3;
iVar1 = 2200;
iVar6 = 3;
break;
case 247:
StringCopy(&Var2, "TORSO_P1_24_4", 16);
iVar3 = 24;
iVar4 = 4;
iVar1 = 2200;
iVar6 = 3;
break;
case 248:
StringCopy(&Var2, "TORSO_P1_24_5", 16);
iVar3 = 24;
iVar4 = 5;
iVar1 = 2200;
iVar6 = 3;
break;
case 249:
StringCopy(&Var2, "TORSO_P1_24_6", 16);
iVar3 = 24;
iVar4 = 6;
iVar1 = 2200;
iVar6 = 3;
break;
case 250:
StringCopy(&Var2, "TORSO_P1_24_7", 16);
iVar3 = 24;
iVar4 = 7;
iVar1 = 2200;
iVar6 = 3;
break;
case 251:
StringCopy(&Var2, "TORSO_P1_24_8", 16);
iVar3 = 24;
iVar4 = 8;
iVar1 = 2200;
iVar6 = 3;
break;
case 252:
StringCopy(&Var2, "TORSO_P1_24_9", 16);
iVar3 = 24;
iVar4 = 9;
iVar1 = 2200;
iVar6 = 3;
break;
case 253:
StringCopy(&Var2, "TORSO_P1_24_10", 16);
iVar3 = 24;
iVar4 = 10;
iVar1 = 2200;
iVar6 = 3;
break;
case 254:
StringCopy(&Var2, "TORSO_P1_24_11", 16);
iVar3 = 24;
iVar4 = 11;
iVar1 = 2200;
iVar6 = 3;
break;
case 255:
StringCopy(&Var2, "TORSO_P1_24_12", 16);
iVar3 = 24;
iVar4 = 12;
iVar1 = 2200;
iVar6 = 3;
break;
case 256:
StringCopy(&Var2, "TORSO_P1_24_13", 16);
iVar3 = 24;
iVar4 = 13;
iVar1 = 2200;
iVar6 = 3;
break;
case 257:
StringCopy(&Var2, "TORSO_P1_24_14", 16);
iVar3 = 24;
iVar4 = 14;
iVar1 = 2200;
iVar6 = 3;
break;
case 258:
StringCopy(&Var2, "TORSO_P1_24_15", 16);
iVar3 = 24;
iVar4 = 15;
iVar1 = 2200;
iVar6 = 3;
break;
case 259:
StringCopy(&Var2, "TORSO_P1_25_0", 16);
iVar3 = 25;
iVar4 = 0;
bVar0 = true;
iVar6 = 3;
break;
case 260:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 26;
iVar4 = 0;
iVar6 = 1;
break;
case 261:
StringCopy(&Var2, "TORSO_P1_27_0", 16);
iVar3 = 27;
iVar4 = 0;
iVar1 = 150;
break;
case 262:
StringCopy(&Var2, "TORSO_P1_27_1", 16);
iVar3 = 27;
iVar4 = 1;
iVar1 = 160;
break;
case 263:
StringCopy(&Var2, "TORSO_P1_27_2", 16);
iVar3 = 27;
iVar4 = 2;
iVar1 = 150;
break;
case 264:
StringCopy(&Var2, "TORSO_P1_27_3", 16);
iVar3 = 27;
iVar4 = 3;
iVar1 = 150;
break;
case 265:
StringCopy(&Var2, "TORSO_P1_27_4", 16);
iVar3 = 27;
iVar4 = 4;
iVar1 = 160;
break;
case 266:
StringCopy(&Var2, "TORSO_P1_27_5", 16);
iVar3 = 27;
iVar4 = 5;
iVar1 = 160;
break;
case 267:
StringCopy(&Var2, "TORSO_P1_28_0", 16);
iVar3 = 28;
iVar4 = 0;
iVar1 = 88;
break;
case 268:
StringCopy(&Var2, "TORSO_P1_28_1", 16);
iVar3 = 28;
iVar4 = 1;
iVar1 = 60;
break;
case 269:
StringCopy(&Var2, "TORSO_P1_28_2", 16);
iVar3 = 28;
iVar4 = 2;
iVar1 = 70;
break;
case 270:
StringCopy(&Var2, "TORSO_P1_28_3", 16);
iVar3 = 28;
iVar4 = 3;
iVar1 = 80;
break;
case 271:
StringCopy(&Var2, "TORSO_P1_28_4", 16);
iVar3 = 28;
iVar4 = 4;
iVar1 = 90;
break;
case 272:
StringCopy(&Var2, "TORSO_P1_28_5", 16);
iVar3 = 28;
iVar4 = 5;
iVar1 = 80;
break;
case 273:
StringCopy(&Var2, "TORSO_P1_28_6", 16);
iVar3 = 28;
iVar4 = 6;
iVar1 = 70;
break;
case 274:
StringCopy(&Var2, "TORSO_P1_28_7", 16);
iVar3 = 28;
iVar4 = 7;
iVar1 = 95;
break;
case 275:
StringCopy(&Var2, "TORSO_P1_28_8", 16);
iVar3 = 28;
iVar4 = 8;
iVar1 = 105;
break;
case 276:
StringCopy(&Var2, "TORSO_P1_28_9", 16);
iVar3 = 28;
iVar4 = 9;
iVar1 = 95;
break;
case 277:
StringCopy(&Var2, "TORSO_P1_28_10", 16);
iVar3 = 28;
iVar4 = 10;
iVar1 = 110;
break;
case 278:
StringCopy(&Var2, "TORSO_P1_28_11", 16);
iVar3 = 28;
iVar4 = 11;
iVar1 = 98;
break;
case 279:
StringCopy(&Var2, "TORSO_P1_28_12", 16);
iVar3 = 28;
iVar4 = 12;
iVar1 = 88;
break;
case 280:
StringCopy(&Var2, "TORSO_P1_28_13", 16);
iVar3 = 28;
iVar4 = 13;
iVar1 = 98;
break;
case 281:
StringCopy(&Var2, "TORSO_P1_28_14", 16);
iVar3 = 28;
iVar4 = 14;
iVar1 = 110;
break;
case 282:
StringCopy(&Var2, "TORSO_P1_28_15", 16);
iVar3 = 28;
iVar4 = 15;
iVar1 = 98;
break;
case 283:
StringCopy(&Var2, "TORSO_P1_29_0", 16);
iVar3 = 29;
iVar4 = 0;
iVar1 = 250;
break;
case 284:
StringCopy(&Var2, "TORSO_P1_29_1", 16);
iVar3 = 29;
iVar4 = 1;
iVar1 = 270;
break;
case 285:
StringCopy(&Var2, "TORSO_P1_29_2", 16);
iVar3 = 29;
iVar4 = 2;
iVar1 = 280;
break;
case 286:
StringCopy(&Var2, "TORSO_P1_29_3", 16);
iVar3 = 29;
iVar4 = 3;
iVar1 = 275;
break;
case 287:
StringCopy(&Var2, "TORSO_P1_29_4", 16);
iVar3 = 29;
iVar4 = 4;
iVar1 = 290;
break;
case 288:
StringCopy(&Var2, "TORSO_P1_29_5", 16);
iVar3 = 29;
iVar4 = 5;
iVar1 = 35;
break;
case 289:
StringCopy(&Var2, "TORSO_P1_29_6", 16);
iVar3 = 29;
iVar4 = 6;
iVar1 = 35;
break;
case 290:
StringCopy(&Var2, "TORSO_P1_29_7", 16);
iVar3 = 29;
iVar4 = 7;
iVar1 = 35;
break;
case 291:
StringCopy(&Var2, "TORSO_P1_29_8", 16);
iVar3 = 29;
iVar4 = 8;
iVar1 = 295;
break;
case 292:
StringCopy(&Var2, "TORSO_P1_29_9", 16);
iVar3 = 29;
iVar4 = 9;
iVar1 = 35;
break;
case 293:
StringCopy(&Var2, "TORSO_P1_29_10", 16);
iVar3 = 29;
iVar4 = 10;
iVar1 = 35;
break;
case 294:
StringCopy(&Var2, "TORSO_P1_29_11", 16);
iVar3 = 29;
iVar4 = 11;
iVar1 = 35;
break;
case 295:
StringCopy(&Var2, "TORSO_P1_29_12", 16);
iVar3 = 29;
iVar4 = 12;
break;
case 296:
StringCopy(&Var2, "TORSO_P1_30_0", 16);
iVar3 = 30;
iVar4 = 0;
iVar1 = 1750;
break;
case 297:
StringCopy(&Var2, "TORSO_P1_30_1", 16);
iVar3 = 30;
iVar4 = 1;
iVar1 = 1920;
break;
case 298:
StringCopy(&Var2, "TORSO_P1_30_2", 16);
iVar3 = 30;
iVar4 = 2;
iVar1 = 1890;
break;
case 299:
StringCopy(&Var2, "TORSO_P1_30_3", 16);
iVar3 = 30;
iVar4 = 3;
iVar1 = 1850;
break;
case 300:
StringCopy(&Var2, "TORSO_P1_30_4", 16);
iVar3 = 30;
iVar4 = 4;
iVar1 = 1750;
break;
case 301:
StringCopy(&Var2, "TORSO_P1_30_5", 16);
iVar3 = 30;
iVar4 = 5;
iVar1 = 1990;
break;
case 302:
StringCopy(&Var2, "TORSO_P1_30_6", 16);
iVar3 = 30;
iVar4 = 6;
iVar1 = 1820;
break;
case 303:
StringCopy(&Var2, "TORSO_P1_30_7", 16);
iVar3 = 30;
iVar4 = 7;
iVar1 = 1990;
break;
case 304:
StringCopy(&Var2, "TORSO_P1_30_8", 16);
iVar3 = 30;
iVar4 = 8;
iVar1 = 1920;
break;
case 305:
StringCopy(&Var2, "TORSO_P1_30_9", 16);
iVar3 = 30;
iVar4 = 9;
iVar1 = 1850;
break;
case 306:
StringCopy(&Var2, "TORSO_P1_30_10", 16);
iVar3 = 30;
iVar4 = 10;
iVar1 = 1990;
break;
case 307:
StringCopy(&Var2, "TORSO_P1_30_11", 16);
iVar3 = 30;
iVar4 = 11;
iVar1 = 1790;
break;
case 308:
StringCopy(&Var2, "TORSO_P1_30_12", 16);
iVar3 = 30;
iVar4 = 12;
iVar1 = 1790;
break;
case 309:
StringCopy(&Var2, "TORSO_P1_31_0", 16);
iVar3 = 31;
iVar4 = 0;
iVar1 = 69;
break;
case 310:
StringCopy(&Var2, "TORSO_P1_31_1", 16);
iVar3 = 31;
iVar4 = 1;
iVar1 = 75;
break;
case 311:
StringCopy(&Var2, "TORSO_P1_31_2", 16);
iVar3 = 31;
iVar4 = 2;
iVar1 = 75;
break;
case 312:
StringCopy(&Var2, "TORSO_P1_31_3", 16);
iVar3 = 31;
iVar4 = 3;
iVar1 = 79;
break;
case 313:
StringCopy(&Var2, "TORSO_P1_31_4", 16);
iVar3 = 31;
iVar4 = 4;
iVar1 = 79;
break;
case 314:
StringCopy(&Var2, "TORSO_P1_31_5", 16);
iVar3 = 31;
iVar4 = 5;
iVar1 = 89;
break;
case 315:
StringCopy(&Var2, "TORSO_P1_31_6", 16);
iVar3 = 31;
iVar4 = 6;
iVar1 = 85;
break;
case 316:
StringCopy(&Var2, "TORSO_P1_31_7", 16);
iVar3 = 31;
iVar4 = 7;
iVar1 = 85;
break;
case 317:
StringCopy(&Var2, "TORSO_P1_31_8", 16);
iVar3 = 31;
iVar4 = 8;
break;
default:
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_196(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 3;
Global_71017[0 /*14*/].f_5 = 1;
switch (iParam0)
{
case 107:
StringCopy(&Var2, "TORSO_P1_12_0", 16);
iVar3 = 12;
iVar4 = 0;
iVar1 = 195;
break;
case 108:
StringCopy(&Var2, "TORSO_P1_12_1", 16);
iVar3 = 12;
iVar4 = 1;
iVar1 = 420;
break;
case 109:
StringCopy(&Var2, "TORSO_P1_12_2", 16);
iVar3 = 12;
iVar4 = 2;
iVar1 = 390;
break;
case 110:
StringCopy(&Var2, "TORSO_P1_12_3", 16);
iVar3 = 12;
iVar4 = 3;
iVar1 = 450;
break;
case 111:
StringCopy(&Var2, "TORSO_P1_12_4", 16);
iVar3 = 12;
iVar4 = 4;
iVar1 = 400;
break;
case 112:
StringCopy(&Var2, "TORSO_P1_12_5", 16);
iVar3 = 12;
iVar4 = 5;
iVar1 = 390;
break;
case 113:
StringCopy(&Var2, "TORSO_P1_12_6", 16);
iVar3 = 12;
iVar4 = 6;
iVar1 = 570;
break;
case 114:
StringCopy(&Var2, "TORSO_P1_12_7", 16);
iVar3 = 12;
iVar4 = 7;
iVar1 = 390;
break;
case 115:
StringCopy(&Var2, "TORSO_P1_12_8", 16);
iVar3 = 12;
iVar4 = 8;
iVar1 = 470;
break;
case 116:
StringCopy(&Var2, "TORSO_P1_12_9", 16);
iVar3 = 12;
iVar4 = 9;
iVar1 = 390;
break;
case 117:
StringCopy(&Var2, "TORSO_P1_12_10", 16);
iVar3 = 12;
iVar4 = 10;
iVar1 = 520;
break;
case 118:
StringCopy(&Var2, "TORSO_P1_12_11", 16);
iVar3 = 12;
iVar4 = 11;
iVar1 = 490;
break;
case 119:
StringCopy(&Var2, "TORSO_P1_12_12", 16);
iVar3 = 12;
iVar4 = 12;
iVar1 = 490;
break;
case 120:
StringCopy(&Var2, "TORSO_P1_12_13", 16);
iVar3 = 12;
iVar4 = 13;
iVar1 = 590;
break;
case 121:
StringCopy(&Var2, "TORSO_P1_12_14", 16);
iVar3 = 12;
iVar4 = 14;
iVar1 = 560;
break;
case 122:
StringCopy(&Var2, "TORSO_P1_12_15", 16);
iVar3 = 12;
iVar4 = 15;
iVar1 = 520;
break;
case 123:
StringCopy(&Var2, "TORSO_P1_13_0", 16);
iVar3 = 13;
iVar4 = 0;
break;
case 124:
StringCopy(&Var2, "TORSO_P1_13_1", 16);
iVar3 = 13;
iVar4 = 1;
break;
case 125:
StringCopy(&Var2, "TORSO_P1_13_2", 16);
iVar3 = 13;
iVar4 = 2;
break;
case 126:
StringCopy(&Var2, "TORSO_P1_13_3", 16);
iVar3 = 13;
iVar4 = 3;
iVar1 = 90;
break;
case 127:
StringCopy(&Var2, "TORSO_P1_13_4", 16);
iVar3 = 13;
iVar4 = 4;
iVar1 = 85;
break;
case 128:
StringCopy(&Var2, "TORSO_P1_13_5", 16);
iVar3 = 13;
iVar4 = 5;
iVar1 = 45;
break;
case 129:
StringCopy(&Var2, "TORSO_P1_13_6", 16);
iVar3 = 13;
iVar4 = 6;
iVar1 = 90;
break;
case 130:
StringCopy(&Var2, "TORSO_P1_13_7", 16);
iVar3 = 13;
iVar4 = 7;
iVar1 = 47;
break;
case 131:
StringCopy(&Var2, "TORSO_P1_13_8", 16);
iVar3 = 13;
iVar4 = 8;
iVar1 = 45;
break;
case 132:
StringCopy(&Var2, "TORSO_P1_13_9", 16);
iVar3 = 13;
iVar4 = 9;
iVar1 = 48;
break;
case 133:
StringCopy(&Var2, "TORSO_P1_13_10", 16);
iVar3 = 13;
iVar4 = 10;
iVar1 = 45;
break;
case 134:
StringCopy(&Var2, "TORSO_P1_13_11", 16);
iVar3 = 13;
iVar4 = 11;
iVar1 = 85;
break;
case 135:
StringCopy(&Var2, "TORSO_P1_13_12", 16);
iVar3 = 13;
iVar4 = 12;
iVar1 = 45;
break;
case 136:
StringCopy(&Var2, "TORSO_P1_13_13", 16);
iVar3 = 13;
iVar4 = 13;
iVar1 = 47;
break;
case 137:
StringCopy(&Var2, "TORSO_P1_13_14", 16);
iVar3 = 13;
iVar4 = 14;
iVar1 = 45;
break;
case 138:
StringCopy(&Var2, "TORSO_P1_13_15", 16);
iVar3 = 13;
iVar4 = 15;
iVar1 = 48;
break;
case 139:
StringCopy(&Var2, "TORSO_P1_14_0", 16);
iVar3 = 14;
iVar4 = 0;
iVar1 = 290;
break;
case 140:
StringCopy(&Var2, "TORSO_P1_14_1", 16);
iVar3 = 14;
iVar4 = 1;
iVar1 = 290;
break;
case 141:
StringCopy(&Var2, "TORSO_P1_14_2", 16);
iVar3 = 14;
iVar4 = 2;
iVar1 = 290;
break;
case 142:
StringCopy(&Var2, "TORSO_P1_14_3", 16);
iVar3 = 14;
iVar4 = 3;
iVar1 = 290;
break;
case 143:
StringCopy(&Var2, "TORSO_P1_14_4", 16);
iVar3 = 14;
iVar4 = 4;
iVar1 = 290;
break;
case 144:
StringCopy(&Var2, "TORSO_P1_14_5", 16);
iVar3 = 14;
iVar4 = 5;
iVar1 = 290;
break;
case 145:
StringCopy(&Var2, "TORSO_P1_14_6", 16);
iVar3 = 14;
iVar4 = 6;
iVar1 = 65;
break;
case 146:
StringCopy(&Var2, "TORSO_P1_14_7", 16);
iVar3 = 14;
iVar4 = 7;
iVar1 = 65;
break;
case 147:
StringCopy(&Var2, "TORSO_P1_15_0", 16);
iVar3 = 15;
iVar4 = 0;
iVar1 = 200;
break;
case 148:
StringCopy(&Var2, "TORSO_P1_15_1", 16);
iVar3 = 15;
iVar4 = 1;
iVar1 = 220;
break;
case 149:
StringCopy(&Var2, "TORSO_P1_15_2", 16);
iVar3 = 15;
iVar4 = 2;
iVar1 = 220;
break;
case 150:
StringCopy(&Var2, "TORSO_P1_15_3", 16);
iVar3 = 15;
iVar4 = 3;
iVar1 = 240;
break;
case 151:
StringCopy(&Var2, "TORSO_P1_15_4", 16);
iVar3 = 15;
iVar4 = 4;
break;
case 152:
StringCopy(&Var2, "TORSO_P1_15_5", 16);
iVar3 = 15;
iVar4 = 5;
iVar1 = 250;
break;
case 153:
StringCopy(&Var2, "TORSO_P1_15_6", 16);
iVar3 = 15;
iVar4 = 6;
iVar1 = 260;
break;
case 154:
StringCopy(&Var2, "TORSO_P1_15_7", 16);
iVar3 = 15;
iVar4 = 7;
iVar1 = 40;
break;
case 155:
StringCopy(&Var2, "TORSO_P1_15_8", 16);
iVar3 = 15;
iVar4 = 8;
iVar1 = 50;
break;
case 156:
StringCopy(&Var2, "TORSO_P1_15_9", 16);
iVar3 = 15;
iVar4 = 9;
iVar1 = 45;
break;
case 157:
StringCopy(&Var2, "TORSO_P1_15_10", 16);
iVar3 = 15;
iVar4 = 10;
iVar1 = 40;
break;
case 158:
StringCopy(&Var2, "TORSO_P1_15_11", 16);
iVar3 = 15;
iVar4 = 11;
iVar1 = 55;
break;
case 159:
StringCopy(&Var2, "TORSO_P1_16_0", 16);
iVar3 = 16;
iVar4 = 0;
break;
case 160:
StringCopy(&Var2, "TORSO_P1_17_0", 16);
iVar3 = 17;
iVar4 = 0;
iVar1 = 40;
break;
case 161:
StringCopy(&Var2, "TORSO_P1_17_1", 16);
iVar3 = 17;
iVar4 = 1;
iVar1 = 50;
break;
case 162:
StringCopy(&Var2, "TORSO_P1_17_2", 16);
iVar3 = 17;
iVar4 = 2;
break;
case 163:
StringCopy(&Var2, "TORSO_P1_17_3", 16);
iVar3 = 17;
iVar4 = 3;
iVar1 = 50;
break;
case 164:
StringCopy(&Var2, "TORSO_P1_17_4", 16);
iVar3 = 17;
iVar4 = 4;
iVar1 = 50;
break;
case 165:
StringCopy(&Var2, "TORSO_P1_17_5", 16);
iVar3 = 17;
iVar4 = 5;
iVar1 = 50;
break;
case 166:
StringCopy(&Var2, "TORSO_P1_17_6", 16);
iVar3 = 17;
iVar4 = 6;
iVar1 = 50;
break;
case 167:
StringCopy(&Var2, "TORSO_P1_17_7", 16);
iVar3 = 17;
iVar4 = 7;
iVar1 = 50;
break;
case 168:
StringCopy(&Var2, "TORSO_P1_17_8", 16);
iVar3 = 17;
iVar4 = 8;
iVar1 = 50;
break;
case 169:
StringCopy(&Var2, "TORSO_P1_17_9", 16);
iVar3 = 17;
iVar4 = 9;
iVar1 = 50;
break;
case 170:
StringCopy(&Var2, "TORSO_P1_17_10", 16);
iVar3 = 17;
iVar4 = 10;
iVar1 = 50;
break;
case 171:
StringCopy(&Var2, "TORSO_P1_17_11", 16);
iVar3 = 17;
iVar4 = 11;
iVar1 = 50;
break;
case 172:
StringCopy(&Var2, "TORSO_P1_17_12", 16);
iVar3 = 17;
iVar4 = 12;
iVar1 = 50;
break;
case 173:
StringCopy(&Var2, "TORSO_P1_17_13", 16);
iVar3 = 17;
iVar4 = 13;
iVar1 = 50;
break;
case 174:
StringCopy(&Var2, "TORSO_P1_17_14", 16);
iVar3 = 17;
iVar4 = 14;
iVar1 = 50;
break;
case 175:
StringCopy(&Var2, "TORSO_P1_17_15", 16);
iVar3 = 17;
iVar4 = 15;
iVar1 = 50;
break;
case 176:
StringCopy(&Var2, "TORSO_P1_18_0", 16);
iVar3 = 18;
iVar4 = 0;
iVar6 = 3;
break;
case 177:
StringCopy(&Var2, "TORSO_P1_18_1", 16);
iVar3 = 18;
iVar4 = 1;
iVar6 = 3;
break;
case 178:
StringCopy(&Var2, "TORSO_P1_18_2", 16);
iVar3 = 18;
iVar4 = 2;
iVar6 = 3;
break;
case 179:
StringCopy(&Var2, "TORSO_P1_18_3", 16);
iVar3 = 18;
iVar4 = 3;
iVar6 = 3;
break;
case 180:
StringCopy(&Var2, "TORSO_P1_18_4", 16);
iVar3 = 18;
iVar4 = 4;
iVar6 = 3;
break;
case 181:
StringCopy(&Var2, "TORSO_P1_18_5", 16);
iVar3 = 18;
iVar4 = 5;
iVar6 = 3;
break;
case 182:
StringCopy(&Var2, "TORSO_P1_18_6", 16);
iVar3 = 18;
iVar4 = 6;
iVar6 = 3;
break;
case 183:
StringCopy(&Var2, "TORSO_P1_18_7", 16);
iVar3 = 18;
iVar4 = 7;
iVar6 = 3;
break;
case 184:
StringCopy(&Var2, "TORSO_P1_18_8", 16);
iVar3 = 18;
iVar4 = 8;
iVar6 = 3;
break;
case 185:
StringCopy(&Var2, "TORSO_P1_18_9", 16);
iVar3 = 18;
iVar4 = 9;
iVar6 = 3;
break;
case 186:
StringCopy(&Var2, "TORSO_P1_18_10", 16);
iVar3 = 18;
iVar4 = 10;
iVar6 = 3;
break;
case 187:
StringCopy(&Var2, "TORSO_P1_18_11", 16);
iVar3 = 18;
iVar4 = 11;
iVar6 = 3;
break;
case 188:
StringCopy(&Var2, "TORSO_P1_18_12", 16);
iVar3 = 18;
iVar4 = 12;
iVar6 = 3;
break;
case 189:
StringCopy(&Var2, "TORSO_P1_18_13", 16);
iVar3 = 18;
iVar4 = 13;
iVar6 = 3;
break;
case 190:
StringCopy(&Var2, "TORSO_P1_18_14", 16);
iVar3 = 18;
iVar4 = 14;
iVar6 = 3;
break;
case 191:
StringCopy(&Var2, "TORSO_P1_18_15", 16);
iVar3 = 18;
iVar4 = 15;
iVar6 = 3;
break;
case 192:
StringCopy(&Var2, "TORSO_P1_19_0", 16);
iVar3 = 19;
iVar4 = 0;
iVar1 = 480;
iVar6 = 3;
break;
case 193:
StringCopy(&Var2, "TORSO_P1_19_1", 16);
iVar3 = 19;
iVar4 = 1;
iVar1 = 440;
iVar6 = 3;
break;
case 194:
StringCopy(&Var2, "TORSO_P1_19_2", 16);
iVar3 = 19;
iVar4 = 2;
iVar1 = 440;
iVar6 = 3;
break;
case 195:
StringCopy(&Var2, "TORSO_P1_19_3", 16);
iVar3 = 19;
iVar4 = 3;
iVar1 = 520;
iVar6 = 3;
break;
case 196:
StringCopy(&Var2, "TORSO_P1_19_4", 16);
iVar3 = 19;
iVar4 = 4;
iVar1 = 440;
iVar6 = 3;
break;
case 197:
StringCopy(&Var2, "TORSO_P1_19_5", 16);
iVar3 = 19;
iVar4 = 5;
iVar1 = 440;
iVar6 = 3;
break;
case 198:
StringCopy(&Var2, "TORSO_P1_19_6", 16);
iVar3 = 19;
iVar4 = 6;
iVar1 = 480;
iVar6 = 3;
break;
case 199:
StringCopy(&Var2, "TORSO_P1_19_7", 16);
iVar3 = 19;
iVar4 = 7;
iVar1 = 480;
iVar6 = 3;
break;
case 200:
StringCopy(&Var2, "TORSO_P1_19_8", 16);
iVar3 = 19;
iVar4 = 8;
iVar1 = 480;
iVar6 = 3;
break;
case 201:
StringCopy(&Var2, "TORSO_P1_19_9", 16);
iVar3 = 19;
iVar4 = 9;
iVar1 = 480;
iVar6 = 3;
break;
case 202:
StringCopy(&Var2, "TORSO_P1_19_10", 16);
iVar3 = 19;
iVar4 = 10;
iVar1 = 480;
iVar6 = 3;
break;
case 203:
StringCopy(&Var2, "TORSO_P1_19_11", 16);
iVar3 = 19;
iVar4 = 11;
iVar1 = 480;
iVar6 = 3;
break;
case 204:
StringCopy(&Var2, "TORSO_P1_19_12", 16);
iVar3 = 19;
iVar4 = 12;
iVar1 = 520;
iVar6 = 3;
break;
case 205:
StringCopy(&Var2, "TORSO_P1_19_13", 16);
iVar3 = 19;
iVar4 = 13;
iVar1 = 520;
iVar6 = 3;
break;
case 206:
StringCopy(&Var2, "TORSO_P1_19_14", 16);
iVar3 = 19;
iVar4 = 14;
iVar1 = 520;
iVar6 = 3;
break;
case 207:
StringCopy(&Var2, "TORSO_P1_19_15", 16);
iVar3 = 19;
iVar4 = 15;
iVar1 = 440;
iVar6 = 3;
break;
case 208:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 20;
iVar4 = 0;
bVar0 = true;
iVar6 = 4;
break;
case 209:
StringCopy(&Var2, "TORSO_P1_21_0", 16);
iVar3 = 21;
iVar4 = 0;
iVar1 = 220;
break;
case 210:
StringCopy(&Var2, "TORSO_P1_21_1", 16);
iVar3 = 21;
iVar4 = 1;
iVar1 = 200;
break;
case 211:
StringCopy(&Var2, "TORSO_P1_21_2", 16);
iVar3 = 21;
iVar4 = 2;
iVar1 = 240;
break;
case 212:
StringCopy(&Var2, "TORSO_P1_21_3", 16);
iVar3 = 21;
iVar4 = 3;
iVar1 = 240;
break;
case 213:
StringCopy(&Var2, "TORSO_P1_21_4", 16);
iVar3 = 21;
iVar4 = 4;
iVar1 = 260;
break;
case 214:
StringCopy(&Var2, "TORSO_P1_21_5", 16);
iVar3 = 21;
iVar4 = 5;
iVar1 = 275;
break;
case 215:
StringCopy(&Var2, "TORSO_P1_21_6", 16);
iVar3 = 21;
iVar4 = 6;
iVar1 = 275;
break;
case 216:
StringCopy(&Var2, "TORSO_P1_21_7", 16);
iVar3 = 21;
iVar4 = 7;
iVar1 = 280;
break;
case 217:
StringCopy(&Var2, "TORSO_P1_21_8", 16);
iVar3 = 21;
iVar4 = 8;
iVar1 = 280;
break;
case 218:
StringCopy(&Var2, "TORSO_P1_21_9", 16);
iVar3 = 21;
iVar4 = 9;
iVar1 = 280;
break;
case 219:
StringCopy(&Var2, "TORSO_P1_21_10", 16);
iVar3 = 21;
iVar4 = 10;
iVar1 = 280;
break;
case 220:
StringCopy(&Var2, "TORSO_P1_21_11", 16);
iVar3 = 21;
iVar4 = 11;
iVar1 = 280;
break;
case 221:
StringCopy(&Var2, "TORSO_P1_21_12", 16);
iVar3 = 21;
iVar4 = 12;
iVar1 = 280;
break;
case 222:
StringCopy(&Var2, "TORSO_P1_21_13", 16);
iVar3 = 21;
iVar4 = 13;
iVar1 = 280;
break;
case 223:
StringCopy(&Var2, "TORSO_P1_22_0", 16);
iVar3 = 22;
iVar4 = 0;
iVar1 = 3100;
iVar6 = 3;
break;
case 224:
StringCopy(&Var2, "TORSO_P1_22_1", 16);
iVar3 = 22;
iVar4 = 1;
iVar1 = 2800;
iVar6 = 3;
break;
case 225:
StringCopy(&Var2, "TORSO_P1_22_2", 16);
iVar3 = 22;
iVar4 = 2;
iVar1 = 2500;
iVar6 = 3;
break;
case 226:
StringCopy(&Var2, "TORSO_P1_22_3", 16);
iVar3 = 22;
iVar4 = 3;
iVar1 = 3000;
iVar6 = 3;
break;
default:
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_197(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 3;
Global_71017[0 /*14*/].f_5 = 1;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "TORSO_P1_0_0", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 1:
StringCopy(&Var2, "TORSO_P1_0_1", 16);
iVar3 = 0;
iVar4 = 1;
break;
case 2:
StringCopy(&Var2, "TORSO_P1_0_2", 16);
iVar3 = 0;
iVar4 = 2;
iVar1 = 180;
break;
case 3:
StringCopy(&Var2, "TORSO_P1_0_3", 16);
iVar3 = 0;
iVar4 = 3;
iVar1 = 22;
break;
case 4:
StringCopy(&Var2, "TORSO_P1_0_4", 16);
iVar3 = 0;
iVar4 = 4;
iVar1 = 20;
break;
case 5:
StringCopy(&Var2, "TORSO_P1_0_5", 16);
iVar3 = 0;
iVar4 = 5;
iVar1 = 18;
break;
case 6:
StringCopy(&Var2, "TORSO_P1_0_6", 16);
iVar3 = 0;
iVar4 = 6;
iVar1 = 19;
break;
case 7:
StringCopy(&Var2, "TORSO_P1_0_7", 16);
iVar3 = 0;
iVar4 = 7;
iVar1 = 22;
break;
case 8:
StringCopy(&Var2, "TORSO_P1_0_8", 16);
iVar3 = 0;
iVar4 = 8;
iVar1 = 20;
break;
case 9:
StringCopy(&Var2, "TORSO_P1_0_9", 16);
iVar3 = 0;
iVar4 = 9;
iVar1 = 19;
break;
case 10:
StringCopy(&Var2, "TORSO_P1_0_10", 16);
iVar3 = 0;
iVar4 = 10;
iVar1 = 19;
break;
case 11:
StringCopy(&Var2, "TORSO_P1_0_11", 16);
iVar3 = 0;
iVar4 = 11;
iVar1 = 18;
break;
case 12:
StringCopy(&Var2, "TORSO_P1_0_12", 16);
iVar3 = 0;
iVar4 = 12;
iVar1 = 20;
break;
case 13:
StringCopy(&Var2, "TORSO_P1_0_13", 16);
iVar3 = 0;
iVar4 = 13;
iVar1 = 22;
break;
case 14:
StringCopy(&Var2, "TORSO_P1_0_14", 16);
iVar3 = 0;
iVar4 = 14;
iVar1 = 19;
break;
case 15:
StringCopy(&Var2, "TORSO_P1_0_15", 16);
iVar3 = 0;
iVar4 = 15;
iVar1 = 22;
break;
case 16:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 0;
bVar0 = true;
iVar6 = 4;
break;
case 17:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 1;
bVar0 = true;
iVar6 = 4;
break;
case 18:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 2;
bVar0 = true;
iVar6 = 4;
break;
case 19:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 3;
bVar0 = true;
iVar6 = 4;
break;
case 20:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 4;
bVar0 = true;
iVar6 = 4;
break;
case 21:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 5;
bVar0 = true;
iVar6 = 4;
break;
case 22:
StringCopy(&Var2, "TORSO_P1_2_0", 16);
iVar3 = 2;
iVar4 = 0;
bVar0 = true;
iVar6 = 3;
break;
case 23:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 3;
iVar4 = 0;
bVar0 = true;
iVar6 = 1;
break;
case 24:
StringCopy(&Var2, "TORSO_P1_4_0", 16);
iVar3 = 4;
iVar4 = 0;
iVar1 = 20;
iVar6 = 2;
break;
case 25:
StringCopy(&Var2, "TORSO_P1_4_1", 16);
iVar3 = 4;
iVar4 = 1;
iVar1 = 22;
iVar6 = 2;
break;
case 26:
StringCopy(&Var2, "TORSO_P1_4_2", 16);
iVar3 = 4;
iVar4 = 2;
iVar1 = 20;
iVar6 = 2;
break;
case 27:
StringCopy(&Var2, "TORSO_P1_4_3", 16);
iVar3 = 4;
iVar4 = 3;
iVar1 = 25;
iVar6 = 2;
break;
case 28:
StringCopy(&Var2, "TORSO_P1_4_4", 16);
iVar3 = 4;
iVar4 = 4;
iVar1 = 23;
iVar6 = 2;
break;
case 29:
StringCopy(&Var2, "TORSO_P1_4_5", 16);
iVar3 = 4;
iVar4 = 5;
iVar1 = 25;
iVar6 = 2;
break;
case 30:
StringCopy(&Var2, "TORSO_P1_4_6", 16);
iVar3 = 4;
iVar4 = 6;
iVar1 = 28;
iVar6 = 2;
break;
case 31:
StringCopy(&Var2, "TORSO_P1_4_7", 16);
iVar3 = 4;
iVar4 = 7;
iVar1 = 26;
iVar6 = 2;
break;
case 32:
StringCopy(&Var2, "TORSO_P1_4_8", 16);
iVar3 = 4;
iVar4 = 8;
iVar1 = 24;
iVar6 = 2;
break;
case 33:
StringCopy(&Var2, "TORSO_P1_4_9", 16);
iVar3 = 4;
iVar4 = 9;
iVar1 = 27;
iVar6 = 2;
break;
case 34:
StringCopy(&Var2, "TORSO_P1_4_10", 16);
iVar3 = 4;
iVar4 = 10;
iVar1 = 29;
iVar6 = 2;
break;
case 35:
StringCopy(&Var2, "TORSO_P1_4_11", 16);
iVar3 = 4;
iVar4 = 11;
iVar1 = 28;
iVar6 = 2;
break;
case 36:
StringCopy(&Var2, "TORSO_P1_4_12", 16);
iVar3 = 4;
iVar4 = 12;
iVar1 = 25;
iVar6 = 2;
break;
case 37:
StringCopy(&Var2, "TORSO_P1_4_13", 16);
iVar3 = 4;
iVar4 = 13;
iVar1 = 22;
iVar6 = 2;
break;
case 38:
StringCopy(&Var2, "TORSO_P1_4_14", 16);
iVar3 = 4;
iVar4 = 14;
iVar1 = 27;
iVar6 = 2;
break;
case 39:
StringCopy(&Var2, "TORSO_P1_4_15", 16);
iVar3 = 4;
iVar4 = 15;
iVar1 = 29;
iVar6 = 2;
break;
case 40:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 0;
bVar0 = true;
iVar6 = 4;
break;
case 41:
StringCopy(&Var2, "TORSO_P1_6_0", 16);
iVar3 = 6;
iVar4 = 0;
iVar6 = 3;
break;
case 42:
StringCopy(&Var2, "TORSO_P1_6_1", 16);
iVar3 = 6;
iVar4 = 1;
iVar1 = 1270;
iVar6 = 3;
break;
case 43:
StringCopy(&Var2, "TORSO_P1_6_2", 16);
iVar3 = 6;
iVar4 = 2;
iVar1 = 1270;
iVar6 = 3;
break;
case 44:
StringCopy(&Var2, "TORSO_P1_6_3", 16);
iVar3 = 6;
iVar4 = 3;
iVar1 = 1270;
iVar6 = 3;
break;
case 45:
StringCopy(&Var2, "TORSO_P1_6_4", 16);
iVar3 = 6;
iVar4 = 4;
iVar1 = 1090;
iVar6 = 3;
break;
case 46:
StringCopy(&Var2, "TORSO_P1_6_5", 16);
iVar3 = 6;
iVar4 = 5;
iVar1 = 1090;
iVar6 = 3;
break;
case 47:
StringCopy(&Var2, "TORSO_P1_6_6", 16);
iVar3 = 6;
iVar4 = 6;
iVar1 = 1120;
iVar6 = 3;
break;
case 48:
StringCopy(&Var2, "TORSO_P1_6_7", 16);
iVar3 = 6;
iVar4 = 7;
iVar1 = 1120;
iVar6 = 3;
break;
case 49:
StringCopy(&Var2, "TORSO_P1_6_8", 16);
iVar3 = 6;
iVar4 = 8;
iVar1 = 1290;
iVar6 = 3;
break;
case 50:
StringCopy(&Var2, "TORSO_P1_6_9", 16);
iVar3 = 6;
iVar4 = 9;
iVar1 = 1290;
iVar6 = 3;
break;
case 51:
StringCopy(&Var2, "TORSO_P1_6_10", 16);
iVar3 = 6;
iVar4 = 10;
iVar1 = 1320;
iVar6 = 3;
break;
case 52:
StringCopy(&Var2, "TORSO_P1_6_11", 16);
iVar3 = 6;
iVar4 = 11;
iVar1 = 1320;
iVar6 = 3;
break;
case 53:
StringCopy(&Var2, "TORSO_P1_6_12", 16);
iVar3 = 6;
iVar4 = 12;
iVar1 = 1590;
iVar6 = 3;
break;
case 54:
StringCopy(&Var2, "TORSO_P1_6_13", 16);
iVar3 = 6;
iVar4 = 13;
iVar1 = 1590;
iVar6 = 3;
break;
case 55:
StringCopy(&Var2, "TORSO_P1_6_14", 16);
iVar3 = 6;
iVar4 = 14;
iVar1 = 1590;
iVar6 = 3;
break;
case 56:
StringCopy(&Var2, "TORSO_P1_6_15", 16);
iVar3 = 6;
iVar4 = 15;
iVar1 = 1320;
iVar6 = 3;
break;
case 57:
StringCopy(&Var2, "TORSO_P1_7_0", 16);
iVar3 = 7;
iVar4 = 0;
iVar1 = 98;
break;
case 58:
StringCopy(&Var2, "TORSO_P1_7_1", 16);
iVar3 = 7;
iVar4 = 1;
iVar1 = 98;
break;
case 59:
StringCopy(&Var2, "TORSO_P1_7_2", 16);
iVar3 = 7;
iVar4 = 2;
iVar1 = 110;
break;
case 60:
StringCopy(&Var2, "TORSO_P1_7_3", 16);
iVar3 = 7;
iVar4 = 3;
iVar1 = 110;
break;
case 61:
StringCopy(&Var2, "TORSO_P1_7_4", 16);
iVar3 = 7;
iVar4 = 4;
iVar1 = 118;
break;
case 62:
StringCopy(&Var2, "TORSO_P1_7_5", 16);
iVar3 = 7;
iVar4 = 5;
iVar1 = 120;
break;
case 63:
StringCopy(&Var2, "TORSO_P1_7_6", 16);
iVar3 = 7;
iVar4 = 6;
iVar1 = 120;
break;
case 64:
StringCopy(&Var2, "TORSO_P1_7_7", 16);
iVar3 = 7;
iVar4 = 7;
iVar1 = 129;
break;
case 65:
StringCopy(&Var2, "TORSO_P1_7_8", 16);
iVar3 = 7;
iVar4 = 8;
iVar1 = 125;
break;
case 66:
StringCopy(&Var2, "TORSO_P1_7_9", 16);
iVar3 = 7;
iVar4 = 9;
iVar1 = 125;
break;
case 67:
StringCopy(&Var2, "TORSO_P1_7_10", 16);
iVar3 = 7;
iVar4 = 10;
iVar1 = 129;
break;
case 68:
StringCopy(&Var2, "TORSO_P1_7_11", 16);
iVar3 = 7;
iVar4 = 11;
iVar1 = 129;
break;
case 69:
StringCopy(&Var2, "TORSO_P1_7_12", 16);
iVar3 = 7;
iVar4 = 12;
iVar1 = 135;
break;
case 70:
StringCopy(&Var2, "TORSO_P1_7_13", 16);
iVar3 = 7;
iVar4 = 13;
iVar1 = 139;
break;
case 71:
StringCopy(&Var2, "TORSO_P1_7_14", 16);
iVar3 = 7;
iVar4 = 14;
iVar1 = 145;
break;
case 72:
StringCopy(&Var2, "TORSO_P1_7_15", 16);
iVar3 = 7;
iVar4 = 15;
iVar1 = 145;
break;
case 73:
StringCopy(&Var2, "TORSO_P1_8_0", 16);
iVar3 = 8;
iVar4 = 0;
break;
case 74:
StringCopy(&Var2, "TORSO_P1_8_1", 16);
iVar3 = 8;
iVar4 = 1;
break;
case 75:
StringCopy(&Var2, "TORSO_P1_8_2", 16);
iVar3 = 8;
iVar4 = 2;
break;
case 76:
StringCopy(&Var2, "TORSO_P1_8_3", 16);
iVar3 = 8;
iVar4 = 3;
break;
case 77:
StringCopy(&Var2, "TORSO_P1_8_4", 16);
iVar3 = 8;
iVar4 = 4;
iVar1 = 30;
break;
case 78:
StringCopy(&Var2, "TORSO_P1_8_5", 16);
iVar3 = 8;
iVar4 = 5;
iVar1 = 38;
break;
case 79:
StringCopy(&Var2, "TORSO_P1_8_6", 16);
iVar3 = 8;
iVar4 = 6;
iVar1 = 32;
break;
case 80:
StringCopy(&Var2, "TORSO_P1_8_7", 16);
iVar3 = 8;
iVar4 = 7;
iVar1 = 30;
break;
case 81:
StringCopy(&Var2, "TORSO_P1_8_8", 16);
iVar3 = 8;
iVar4 = 8;
iVar1 = 33;
break;
case 82:
StringCopy(&Var2, "TORSO_P1_8_9", 16);
iVar3 = 8;
iVar4 = 9;
iVar1 = 35;
break;
case 83:
StringCopy(&Var2, "TORSO_P1_8_10", 16);
iVar3 = 8;
iVar4 = 10;
iVar1 = 35;
break;
case 84:
StringCopy(&Var2, "TORSO_P1_8_11", 16);
iVar3 = 8;
iVar4 = 11;
iVar1 = 38;
break;
case 85:
StringCopy(&Var2, "TORSO_P1_8_12", 16);
iVar3 = 8;
iVar4 = 12;
iVar1 = 33;
break;
case 86:
StringCopy(&Var2, "TORSO_P1_8_13", 16);
iVar3 = 8;
iVar4 = 13;
iVar1 = 35;
break;
case 87:
StringCopy(&Var2, "TORSO_P1_8_14", 16);
iVar3 = 8;
iVar4 = 14;
iVar1 = 38;
break;
case 88:
StringCopy(&Var2, "TORSO_P1_8_15", 16);
iVar3 = 8;
iVar4 = 15;
iVar1 = 32;
break;
case 89:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 0;
bVar0 = true;
break;
case 90:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 10;
iVar4 = 0;
bVar0 = true;
break;
case 91:
StringCopy(&Var2, "TORSO_P1_11_0", 16);
iVar3 = 11;
iVar4 = 0;
break;
case 92:
StringCopy(&Var2, "TORSO_P1_11_1", 16);
iVar3 = 11;
iVar4 = 1;
iVar1 = 59;
break;
case 93:
StringCopy(&Var2, "TORSO_P1_11_2", 16);
iVar3 = 11;
iVar4 = 2;
break;
case 94:
StringCopy(&Var2, "TORSO_P1_11_3", 16);
iVar3 = 11;
iVar4 = 3;
iVar1 = 25;
break;
case 95:
StringCopy(&Var2, "TORSO_P1_11_4", 16);
iVar3 = 11;
iVar4 = 4;
iVar1 = 29;
break;
case 96:
StringCopy(&Var2, "TORSO_P1_11_5", 16);
iVar3 = 11;
iVar4 = 5;
iVar1 = 27;
break;
case 97:
StringCopy(&Var2, "TORSO_P1_11_6", 16);
iVar3 = 11;
iVar4 = 6;
iVar1 = 25;
break;
case 98:
StringCopy(&Var2, "TORSO_P1_11_7", 16);
iVar3 = 11;
iVar4 = 7;
iVar1 = 27;
break;
case 99:
StringCopy(&Var2, "TORSO_P1_11_8", 16);
iVar3 = 11;
iVar4 = 8;
iVar1 = 28;
break;
case 100:
StringCopy(&Var2, "TORSO_P1_11_9", 16);
iVar3 = 11;
iVar4 = 9;
iVar1 = 30;
break;
case 101:
StringCopy(&Var2, "TORSO_P1_11_10", 16);
iVar3 = 11;
iVar4 = 10;
iVar1 = 29;
break;
case 102:
StringCopy(&Var2, "TORSO_P1_11_11", 16);
iVar3 = 11;
iVar4 = 11;
iVar1 = 27;
break;
case 103:
StringCopy(&Var2, "TORSO_P1_11_12", 16);
iVar3 = 11;
iVar4 = 12;
iVar1 = 29;
break;
case 104:
StringCopy(&Var2, "TORSO_P1_11_13", 16);
iVar3 = 11;
iVar4 = 13;
iVar1 = 32;
break;
case 105:
StringCopy(&Var2, "TORSO_P1_11_14", 16);
iVar3 = 11;
iVar4 = 14;
iVar1 = 30;
break;
case 106:
StringCopy(&Var2, "TORSO_P1_11_15", 16);
iVar3 = 11;
iVar4 = 15;
iVar1 = 28;
break;
default:
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_198(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 2;
Global_71017[0 /*14*/].f_5 = 1;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "HAIR_P1_0_0", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 1:
StringCopy(&Var2, "HAIR_P1_0_1", 16);
iVar3 = 0;
iVar4 = 1;
break;
case 2:
StringCopy(&Var2, "HAIR_P1_0_2", 16);
iVar3 = 0;
iVar4 = 2;
break;
case 3:
StringCopy(&Var2, "HAIR_P1_0_3", 16);
iVar3 = 0;
iVar4 = 3;
iVar6 = 3;
break;
case 4:
StringCopy(&Var2, "HAIR_P1_0_4", 16);
iVar3 = 0;
iVar4 = 4;
iVar6 = 3;
break;
case 5:
StringCopy(&Var2, "HAIR_P1_0_5", 16);
iVar3 = 0;
iVar4 = 5;
iVar6 = 3;
break;
case 6:
StringCopy(&Var2, "HAIR_P1_0_6", 16);
iVar3 = 0;
iVar4 = 6;
iVar6 = 3;
break;
case 7:
StringCopy(&Var2, "HAIR_P1_0_7", 16);
iVar3 = 0;
iVar4 = 7;
iVar6 = 3;
break;
case 8:
StringCopy(&Var2, "HAIR_P1_0_8", 16);
iVar3 = 0;
iVar4 = 8;
iVar6 = 3;
break;
case 9:
StringCopy(&Var2, "HAIR_P1_0_9", 16);
iVar3 = 0;
iVar4 = 9;
iVar6 = 3;
break;
case 10:
StringCopy(&Var2, "HAIR_P1_0_10", 16);
iVar3 = 0;
iVar4 = 10;
iVar6 = 3;
break;
case 11:
StringCopy(&Var2, "HAIR_P1_0_11", 16);
iVar3 = 0;
iVar4 = 11;
iVar6 = 3;
break;
case 12:
StringCopy(&Var2, "HAIR_P1_0_12", 16);
iVar3 = 0;
iVar4 = 12;
iVar6 = 3;
break;
case 13:
StringCopy(&Var2, "HAIR_P1_0_13", 16);
iVar3 = 0;
iVar4 = 13;
break;
case 14:
StringCopy(&Var2, "HAIR_P1_0_14", 16);
iVar3 = 0;
iVar4 = 14;
iVar6 = 3;
break;
case 15:
StringCopy(&Var2, "HAIR_P1_0_15", 16);
iVar3 = 0;
iVar4 = 15;
iVar6 = 3;
break;
case 16:
StringCopy(&Var2, "HAIR_P1_1_0", 16);
iVar3 = 1;
iVar4 = 0;
iVar6 = 3;
break;
case 17:
StringCopy(&Var2, "HAIR_P1_2_0", 16);
iVar3 = 2;
iVar4 = 0;
iVar6 = 3;
break;
case 18:
StringCopy(&Var2, "HAIR_P1_3_0", 16);
iVar3 = 3;
iVar4 = 0;
iVar6 = 3;
break;
case 19:
StringCopy(&Var2, "HAIR_P1_4_0", 16);
iVar3 = 4;
iVar4 = 0;
break;
case 20:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 0;
bVar0 = true;
break;
default:
func_164(iVar7, iParam0, 21, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_199(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 0;
Global_71017[0 /*14*/].f_5 = 1;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 1:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 1;
break;
case 2:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 2;
break;
case 3:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 3;
break;
case 4:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 4;
break;
case 5:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 5;
break;
case 6:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 6;
break;
case 7:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 7;
break;
case 8:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 8;
break;
case 9:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 9;
break;
default:
func_164(iVar7, iParam0, 10, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_200(int iParam0, int iParam1)
{
switch (iParam0)
{
case 0:
func_217(iParam1);
break;
case 2:
func_216(iParam1);
break;
case 3:
func_213(iParam1);
break;
case 4:
func_212(iParam1);
break;
case 6:
func_211(iParam1);
break;
case 5:
func_210(iParam1);
break;
case 8:
func_209(iParam1);
break;
case 9:
func_208(iParam1);
break;
case 10:
func_207(iParam1);
break;
case 1:
func_206(iParam1);
break;
case 7:
func_205(iParam1);
break;
case 11:
func_204(iParam1);
break;
case 12:
func_203(iParam1);
break;
case 13:
func_202(iParam1);
break;
case 14:
func_201(iParam1);
break;
}
}
void func_201(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 14;
Global_71017[0 /*14*/].f_5 = 0;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 0;
break;
case 1:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 1;
break;
case 2:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 2;
break;
case 3:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 3;
break;
case 4:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 4;
break;
case 5:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 5;
break;
case 6:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 6;
break;
case 7:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 7;
break;
case 8:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 8;
break;
case 10:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
bVar0 = true;
iVar5 = 0;
break;
case 11:
StringCopy(&Var2, "PROPS_P0_H1", 16);
iVar3 = 1;
iVar4 = 0;
iVar5 = 0;
break;
case 12:
StringCopy(&Var2, "PROPS_P0_H2", 16);
iVar3 = 2;
iVar4 = 0;
iVar1 = 320;
iVar5 = 11;
break;
case 13:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 3;
iVar4 = 0;
bVar0 = true;
iVar5 = 0;
break;
case 14:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 4;
iVar4 = 0;
bVar0 = true;
iVar5 = 0;
break;
case 15:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 0;
bVar0 = true;
iVar5 = 0;
break;
case 16:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 0;
bVar0 = true;
iVar5 = 0;
break;
case 17:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 7;
iVar4 = 0;
bVar0 = true;
iVar5 = 0;
break;
case 18:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 8;
iVar4 = 0;
bVar0 = true;
iVar5 = 0;
break;
case 19:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 0;
bVar0 = true;
iVar5 = 0;
break;
case 20:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 10;
iVar4 = 0;
bVar0 = true;
iVar5 = 0;
break;
case 21:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 11;
iVar4 = 0;
iVar5 = 0;
break;
case 22:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 11;
iVar4 = 1;
iVar5 = 0;
break;
case 23:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 11;
iVar4 = 2;
iVar5 = 0;
break;
case 24:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 11;
iVar4 = 3;
iVar5 = 0;
break;
case 25:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 11;
iVar4 = 4;
iVar5 = 0;
break;
case 26:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 11;
iVar4 = 5;
iVar5 = 0;
break;
case 27:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 11;
iVar4 = 6;
iVar5 = 0;
break;
case 28:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 11;
iVar4 = 7;
iVar5 = 0;
break;
case 29:
StringCopy(&Var2, "PROPS_P0_H12", 16);
iVar3 = 12;
iVar4 = 0;
iVar5 = 0;
break;
case 30:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 13;
iVar4 = 0;
iVar5 = 0;
break;
case 31:
StringCopy(&Var2, "PROPS_P1_H8_0", 16);
iVar3 = 14;
iVar4 = 0;
iVar1 = 270;
iVar5 = 0;
break;
case 32:
StringCopy(&Var2, "PROPS_P1_H8_1", 16);
iVar3 = 14;
iVar4 = 1;
iVar1 = 270;
iVar5 = 0;
break;
case 33:
StringCopy(&Var2, "PROPS_P1_H9_0", 16);
iVar3 = 15;
iVar4 = 0;
iVar1 = 200;
iVar5 = 0;
break;
case 34:
StringCopy(&Var2, "PROPS_P1_H9_1", 16);
iVar3 = 15;
iVar4 = 1;
iVar1 = 200;
iVar5 = 0;
break;
case 35:
StringCopy(&Var2, "PROPS_P1_H10_0", 16);
iVar3 = 16;
iVar4 = 0;
iVar1 = 350;
iVar5 = 0;
break;
case 36:
StringCopy(&Var2, "PROPS_P1_H10_1", 16);
iVar3 = 16;
iVar4 = 1;
iVar1 = 350;
iVar5 = 0;
break;
case 37:
StringCopy(&Var2, "PROPS_P1_H11_0", 16);
iVar3 = 17;
iVar4 = 0;
iVar1 = 450;
iVar5 = 0;
break;
case 38:
StringCopy(&Var2, "PROPS_P1_H12_0", 16);
iVar3 = 18;
iVar4 = 0;
iVar1 = 500;
iVar5 = 0;
break;
case 39:
StringCopy(&Var2, "PROPS_P1_H12_1", 16);
iVar3 = 18;
iVar4 = 1;
iVar1 = 500;
iVar5 = 0;
break;
case 40:
StringCopy(&Var2, "PROPS_P1_H13_0", 16);
iVar3 = 19;
iVar4 = 0;
iVar1 = 50;
iVar5 = 0;
break;
case 41:
StringCopy(&Var2, "PROPS_P1_H13_1", 16);
iVar3 = 19;
iVar4 = 1;
iVar1 = 50;
iVar5 = 0;
break;
case 42:
StringCopy(&Var2, "PROPS_P1_H14_0", 16);
iVar3 = 20;
iVar4 = 0;
iVar1 = 99;
iVar5 = 0;
break;
case 43:
StringCopy(&Var2, "PROPS_P1_H14_1", 16);
iVar3 = 20;
iVar4 = 1;
iVar1 = 99;
iVar5 = 0;
break;
case 44:
StringCopy(&Var2, "PROPS_P1_H14_2", 16);
iVar3 = 20;
iVar4 = 2;
iVar1 = 99;
iVar5 = 0;
break;
case 45:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 21;
iVar4 = 0;
iVar5 = 0;
break;
case 46:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 22;
iVar4 = 0;
iVar5 = 0;
break;
case 47:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 23;
iVar4 = 0;
iVar5 = 0;
break;
case 48:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 23;
iVar4 = 1;
iVar5 = 0;
break;
case 49:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 23;
iVar4 = 2;
iVar5 = 0;
break;
case 50:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 23;
iVar4 = 3;
iVar5 = 0;
break;
case 51:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 23;
iVar4 = 4;
iVar5 = 0;
break;
case 52:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 23;
iVar4 = 5;
iVar5 = 0;
break;
case 53:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 24;
iVar4 = 0;
iVar5 = 0;
break;
case 54:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 25;
iVar4 = 0;
iVar5 = 0;
break;
case 55:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 26;
iVar4 = 0;
iVar5 = 0;
break;
case 56:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 27;
iVar4 = 0;
iVar5 = 0;
break;
case 57:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 28;
iVar4 = 0;
iVar5 = 0;
break;
case 58:
StringCopy(&Var2, "PROPS_P0_E0", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 45;
iVar5 = 10;
break;
case 59:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 0;
bVar0 = true;
iVar5 = 10;
break;
case 60:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 2;
iVar4 = 0;
bVar0 = true;
iVar5 = 10;
break;
case 61:
StringCopy(&Var2, "PROPS_P0_E3", 16);
iVar3 = 3;
iVar4 = 0;
iVar1 = 55;
iVar5 = 10;
break;
case 62:
StringCopy(&Var2, "PROPS_P0_E4", 16);
iVar3 = 4;
iVar4 = 0;
iVar1 = 58;
iVar5 = 10;
break;
case 63:
StringCopy(&Var2, "PROPS_P0_E4_1", 16);
iVar3 = 4;
iVar4 = 1;
iVar1 = 56;
iVar5 = 10;
break;
case 64:
StringCopy(&Var2, "PROPS_P0_E4_2", 16);
iVar3 = 4;
iVar4 = 2;
iVar1 = 60;
iVar5 = 10;
break;
case 65:
StringCopy(&Var2, "PROPS_P0_E4_3", 16);
iVar3 = 4;
iVar4 = 3;
iVar1 = 65;
iVar5 = 10;
break;
case 66:
StringCopy(&Var2, "PROPS_P0_E4_4", 16);
iVar3 = 4;
iVar4 = 4;
iVar1 = 62;
iVar5 = 10;
break;
case 67:
StringCopy(&Var2, "PROPS_P0_E4_5", 16);
iVar3 = 4;
iVar4 = 5;
iVar1 = 65;
iVar5 = 10;
break;
case 68:
StringCopy(&Var2, "PROPS_P0_E4_6", 16);
iVar3 = 4;
iVar4 = 6;
iVar1 = 68;
iVar5 = 10;
break;
case 69:
StringCopy(&Var2, "PROPS_P0_E4_7", 16);
iVar3 = 4;
iVar4 = 7;
iVar1 = 68;
iVar5 = 10;
break;
case 70:
StringCopy(&Var2, "PROPS_P0_E5", 16);
iVar3 = 5;
iVar4 = 0;
iVar1 = 65;
iVar5 = 10;
break;
case 71:
StringCopy(&Var2, "PROPS_P0_E5_1", 16);
iVar3 = 5;
iVar4 = 1;
iVar1 = 69;
iVar5 = 10;
break;
case 72:
StringCopy(&Var2, "PROPS_P0_E5_2", 16);
iVar3 = 5;
iVar4 = 2;
iVar1 = 72;
iVar5 = 10;
break;
case 73:
StringCopy(&Var2, "PROPS_P0_E5_3", 16);
iVar3 = 5;
iVar4 = 3;
iVar1 = 70;
iVar5 = 10;
break;
case 74:
StringCopy(&Var2, "PROPS_P0_E5_4", 16);
iVar3 = 5;
iVar4 = 4;
iVar1 = 74;
iVar5 = 10;
break;
case 75:
StringCopy(&Var2, "PROPS_P0_E5_5", 16);
iVar3 = 5;
iVar4 = 5;
iVar1 = 78;
iVar5 = 10;
break;
case 76:
StringCopy(&Var2, "PROPS_P0_E5_6", 16);
iVar3 = 5;
iVar4 = 6;
iVar1 = 82;
iVar5 = 10;
break;
case 77:
StringCopy(&Var2, "PROPS_P0_E5_7", 16);
iVar3 = 5;
iVar4 = 7;
iVar1 = 85;
iVar5 = 10;
break;
case 78:
StringCopy(&Var2, "PROPS_P0_E5_8", 16);
iVar3 = 5;
iVar4 = 8;
iVar1 = 85;
iVar5 = 10;
break;
case 79:
StringCopy(&Var2, "PROPS_P0_E5_9", 16);
iVar3 = 5;
iVar4 = 9;
iVar5 = 10;
break;
case 80:
StringCopy(&Var2, "PROPS_P0_E6", 16);
iVar3 = 6;
iVar4 = 0;
iVar1 = 69;
iVar5 = 10;
break;
case 81:
StringCopy(&Var2, "PROPS_P0_E6_1", 16);
iVar3 = 6;
iVar4 = 1;
iVar1 = 69;
iVar5 = 10;
break;
case 82:
StringCopy(&Var2, "PROPS_P0_E6_2", 16);
iVar3 = 6;
iVar4 = 2;
iVar1 = 69;
iVar5 = 10;
break;
case 83:
StringCopy(&Var2, "PROPS_P0_E6_3", 16);
iVar3 = 6;
iVar4 = 3;
iVar1 = 69;
iVar5 = 10;
break;
case 84:
StringCopy(&Var2, "PROPS_P0_E6_4", 16);
iVar3 = 6;
iVar4 = 4;
iVar1 = 69;
iVar5 = 10;
break;
case 85:
StringCopy(&Var2, "PROPS_P0_E6_5", 16);
iVar3 = 6;
iVar4 = 5;
iVar1 = 69;
iVar5 = 10;
break;
case 86:
StringCopy(&Var2, "PROPS_P0_E6_6", 16);
iVar3 = 6;
iVar4 = 6;
iVar1 = 69;
iVar5 = 10;
break;
case 87:
StringCopy(&Var2, "PROPS_P0_E6_7", 16);
iVar3 = 6;
iVar4 = 7;
iVar1 = 69;
iVar5 = 10;
break;
case 88:
StringCopy(&Var2, "PROPS_P0_E6_8", 16);
iVar3 = 6;
iVar4 = 8;
iVar1 = 69;
iVar5 = 10;
break;
case 89:
StringCopy(&Var2, "PROPS_P0_E6_9", 16);
iVar3 = 6;
iVar4 = 9;
iVar1 = 69;
iVar5 = 10;
break;
case 90:
StringCopy(&Var2, "PROPS_P0_E7", 16);
iVar3 = 7;
iVar4 = 0;
iVar5 = 10;
break;
case 91:
StringCopy(&Var2, "PROPS_P0_E8", 16);
iVar3 = 8;
iVar4 = 0;
iVar1 = 170;
iVar5 = 10;
break;
case 92:
StringCopy(&Var2, "PROPS_P0_E8_1", 16);
iVar3 = 8;
iVar4 = 1;
iVar1 = 175;
iVar5 = 10;
break;
case 93:
StringCopy(&Var2, "PROPS_P0_E8_2", 16);
iVar3 = 8;
iVar4 = 2;
iVar1 = 180;
iVar5 = 10;
break;
case 94:
StringCopy(&Var2, "PROPS_P0_E8_3", 16);
iVar3 = 8;
iVar4 = 3;
iVar1 = 185;
iVar5 = 10;
break;
case 95:
StringCopy(&Var2, "PROPS_P0_E8_4", 16);
iVar3 = 8;
iVar4 = 4;
iVar1 = 189;
iVar5 = 10;
break;
case 96:
StringCopy(&Var2, "PROPS_P0_E8_5", 16);
iVar3 = 8;
iVar4 = 5;
iVar1 = 195;
iVar5 = 10;
break;
case 97:
StringCopy(&Var2, "PROPS_P0_E8_6", 16);
iVar3 = 8;
iVar4 = 6;
iVar1 = 235;
iVar5 = 10;
break;
case 98:
StringCopy(&Var2, "PROPS_P0_E8_7", 16);
iVar3 = 8;
iVar4 = 7;
iVar1 = 245;
iVar5 = 10;
break;
case 99:
StringCopy(&Var2, "PROPS_P0_E8_8", 16);
iVar3 = 8;
iVar4 = 8;
iVar1 = 250;
iVar5 = 10;
break;
case 100:
StringCopy(&Var2, "PROPS_P0_E8_9", 16);
iVar3 = 8;
iVar4 = 9;
iVar1 = 275;
iVar5 = 10;
break;
case 101:
StringCopy(&Var2, "PROPS_P0_E8_10", 16);
iVar3 = 8;
iVar4 = 10;
iVar1 = 280;
iVar5 = 10;
break;
case 102:
StringCopy(&Var2, "PROPS_P0_E8_11", 16);
iVar3 = 8;
iVar4 = 11;
iVar1 = 295;
iVar5 = 10;
break;
case 103:
StringCopy(&Var2, "PROPS_P0_E9", 16);
iVar3 = 9;
iVar4 = 0;
iVar1 = 179;
iVar5 = 10;
break;
case 104:
StringCopy(&Var2, "PROPS_P0_E9_1", 16);
iVar3 = 9;
iVar4 = 1;
iVar1 = 159;
iVar5 = 10;
break;
case 105:
StringCopy(&Var2, "PROPS_P0_E9_2", 16);
iVar3 = 9;
iVar4 = 2;
iVar1 = 165;
iVar5 = 10;
break;
case 106:
StringCopy(&Var2, "PROPS_P0_E9_3", 16);
iVar3 = 9;
iVar4 = 3;
iVar1 = 155;
iVar5 = 10;
break;
case 107:
StringCopy(&Var2, "PROPS_P0_E9_4", 16);
iVar3 = 9;
iVar4 = 4;
iVar1 = 175;
iVar5 = 10;
break;
case 108:
StringCopy(&Var2, "PROPS_P0_E9_5", 16);
iVar3 = 9;
iVar4 = 5;
iVar1 = 185;
iVar5 = 10;
break;
case 109:
StringCopy(&Var2, "PROPS_P0_E9_6", 16);
iVar3 = 9;
iVar4 = 6;
iVar1 = 189;
iVar5 = 10;
break;
case 110:
StringCopy(&Var2, "PROPS_P0_E9_7", 16);
iVar3 = 9;
iVar4 = 7;
iVar1 = 225;
iVar5 = 10;
break;
case 111:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 10;
iVar4 = 0;
iVar1 = 100;
iVar5 = 10;
break;
case 112:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
bVar0 = true;
iVar5 = 2;
break;
default:
func_164(iVar7, iParam0, 113, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_202(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 13;
Global_71017[0 /*14*/].f_5 = 0;
switch (iParam0)
{
case 31:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 0:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
bVar0 = true;
break;
case 1:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
bVar0 = true;
break;
case 2:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
bVar0 = true;
break;
case 3:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
bVar0 = true;
break;
case 4:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
bVar0 = true;
break;
case 5:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
bVar0 = true;
break;
case 6:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
bVar0 = true;
break;
case 7:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
bVar0 = true;
break;
case 8:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
bVar0 = true;
break;
case 9:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
bVar0 = true;
break;
default:
func_164(iVar7, iParam0, 10, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_203(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 12;
Global_71017[0 /*14*/].f_5 = 0;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "OUTFIT_P0_0", 16);
iVar3 = 0;
iVar4 = 0;
bVar0 = true;
break;
case 1:
StringCopy(&Var2, "OUTFIT_P0_1", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 2:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 3:
StringCopy(&Var2, "OUTFIT_P0_4", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 4:
StringCopy(&Var2, "OUTFIT_P0_7", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 5:
StringCopy(&Var2, "OUTFIT_P0_8", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 6:
StringCopy(&Var2, "OUTFIT_P0_9", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 7:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 8:
StringCopy(&Var2, "OUTFIT_P0_11", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 9:
StringCopy(&Var2, "OUTFIT_P0_12", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 10:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 11:
StringCopy(&Var2, "OUTFIT_P0_14", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 12:
StringCopy(&Var2, "OUTFIT_P0_17", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 13:
StringCopy(&Var2, "OUTFIT_P0_18", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 14:
StringCopy(&Var2, "OUTFIT_P0_19", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 15:
StringCopy(&Var2, "OUTFIT_P0_20", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 16:
StringCopy(&Var2, "OUTFIT_P0_22", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 10000;
break;
case 17:
StringCopy(&Var2, "OUTFIT_P0_23", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 18:
StringCopy(&Var2, "OUTFIT_P0_24", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 19:
StringCopy(&Var2, "OUTFIT_P0_26", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 20:
StringCopy(&Var2, "OUTFIT_P0_28", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 105;
break;
case 21:
StringCopy(&Var2, "OUTFIT_P0_29", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 105;
break;
case 22:
StringCopy(&Var2, "OUTFIT_P0_30", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 105;
break;
case 23:
StringCopy(&Var2, "OUTFIT_P0_31", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 24:
StringCopy(&Var2, "OUTFIT_P0_32", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 25:
StringCopy(&Var2, "OUTFIT_P0_33", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 26:
StringCopy(&Var2, "OUTFIT_P0_34", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 27:
StringCopy(&Var2, "OUTFIT_P0_35", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 28:
StringCopy(&Var2, "OUTFIT_P0_11", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 29:
StringCopy(&Var2, "OUTFIT_P0_36", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 4900;
break;
case 30:
StringCopy(&Var2, "OUTFIT_P0_37", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 840;
break;
case 31:
StringCopy(&Var2, "OUTFIT_P0_38", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 32:
StringCopy(&Var2, "OUTFIT_P0_39", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 33:
StringCopy(&Var2, "OUTFIT_P0_40", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 34:
StringCopy(&Var2, "OUTFIT_P0_41", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 35:
StringCopy(&Var2, "OUTFIT_P0_42", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 36:
StringCopy(&Var2, "OUTFIT_P0_43", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 37:
StringCopy(&Var2, "OUTFIT_P0_44", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 3900;
break;
case 38:
StringCopy(&Var2, "OUTFIT_P0_45", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 4000;
break;
case 39:
StringCopy(&Var2, "OUTFIT_P0_46", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 5900;
break;
case 40:
StringCopy(&Var2, "OUTFIT_P0_47", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 4600;
break;
case 41:
StringCopy(&Var2, "OUTFIT_P0_48", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 5500;
break;
case 42:
StringCopy(&Var2, "OUTFIT_P0_49", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 4400;
break;
case 43:
StringCopy(&Var2, "OUTFIT_P0_50", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 4400;
break;
case 44:
StringCopy(&Var2, "OUTFIT_P0_51", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 4900;
break;
case 45:
StringCopy(&Var2, "OUTFIT_P0_52", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 5500;
break;
case 46:
StringCopy(&Var2, "OUTFIT_P0_53", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 4500;
break;
case 47:
StringCopy(&Var2, "OUTFIT_P0_54", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 5900;
break;
case 48:
StringCopy(&Var2, "OUTFIT_P0_55", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 49:
StringCopy(&Var2, "OUTFIT_P0_17", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 50:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 51:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 52:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
default:
func_164(iVar7, iParam0, 53, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_204(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 11;
Global_71017[0 /*14*/].f_5 = 0;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 1:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 0;
break;
case 2:
StringCopy(&Var2, "JBIB_P0_02_0", 16);
iVar3 = 2;
iVar4 = 0;
break;
case 3:
StringCopy(&Var2, "JBIB_P0_02_1", 16);
iVar3 = 2;
iVar4 = 1;
break;
case 4:
StringCopy(&Var2, "JBIB_P0_02_2", 16);
iVar3 = 2;
iVar4 = 2;
break;
case 5:
StringCopy(&Var2, "JBIB_P0_02_3", 16);
iVar3 = 2;
iVar4 = 3;
break;
case 6:
StringCopy(&Var2, "JBIB_P0_02_4", 16);
iVar3 = 2;
iVar4 = 4;
break;
case 7:
StringCopy(&Var2, "JBIB_P0_02_5", 16);
iVar3 = 2;
iVar4 = 5;
break;
case 8:
StringCopy(&Var2, "JBIB_P0_03_0", 16);
iVar3 = 3;
iVar4 = 0;
iVar1 = 390;
break;
case 9:
StringCopy(&Var2, "JBIB_P0_03_1", 16);
iVar3 = 3;
iVar4 = 1;
iVar1 = 390;
break;
case 10:
StringCopy(&Var2, "JBIB_P0_03_2", 16);
iVar3 = 3;
iVar4 = 2;
iVar1 = 420;
break;
case 11:
StringCopy(&Var2, "JBIB_P0_03_3", 16);
iVar3 = 3;
iVar4 = 3;
iVar1 = 420;
break;
case 12:
StringCopy(&Var2, "JBIB_P0_03_4", 16);
iVar3 = 3;
iVar4 = 4;
iVar1 = 490;
break;
case 13:
StringCopy(&Var2, "JBIB_P0_03_5", 16);
iVar3 = 3;
iVar4 = 5;
iVar1 = 490;
break;
case 14:
StringCopy(&Var2, "JBIB_P0_03_6", 16);
iVar3 = 3;
iVar4 = 6;
iVar1 = 540;
break;
case 15:
StringCopy(&Var2, "JBIB_P0_03_7", 16);
iVar3 = 3;
iVar4 = 7;
iVar1 = 540;
break;
case 16:
StringCopy(&Var2, "JBIB_P0_03_8", 16);
iVar3 = 3;
iVar4 = 8;
iVar1 = 550;
break;
case 17:
StringCopy(&Var2, "JBIB_P0_03_9", 16);
iVar3 = 3;
iVar4 = 9;
iVar1 = 540;
break;
case 18:
StringCopy(&Var2, "JBIB_P0_04_0", 16);
iVar3 = 4;
iVar4 = 0;
iVar1 = 850;
break;
case 19:
StringCopy(&Var2, "JBIB_P0_04_1", 16);
iVar3 = 4;
iVar4 = 1;
iVar1 = 850;
break;
case 20:
StringCopy(&Var2, "JBIB_P0_04_2", 16);
iVar3 = 4;
iVar4 = 2;
iVar1 = 890;
break;
case 21:
StringCopy(&Var2, "JBIB_P0_04_3", 16);
iVar3 = 4;
iVar4 = 3;
iVar1 = 890;
break;
case 22:
StringCopy(&Var2, "JBIB_P0_04_4", 16);
iVar3 = 4;
iVar4 = 4;
iVar1 = 920;
break;
case 23:
StringCopy(&Var2, "JBIB_P0_04_5", 16);
iVar3 = 4;
iVar4 = 5;
iVar1 = 920;
break;
case 24:
StringCopy(&Var2, "JBIB_P0_04_6", 16);
iVar3 = 4;
iVar4 = 6;
iVar1 = 950;
break;
case 25:
StringCopy(&Var2, "JBIB_P0_04_7", 16);
iVar3 = 4;
iVar4 = 7;
iVar1 = 980;
break;
case 26:
StringCopy(&Var2, "JBIB_P0_04_8", 16);
iVar3 = 4;
iVar4 = 8;
iVar1 = 1050;
break;
case 27:
StringCopy(&Var2, "JBIB_P0_04_9", 16);
iVar3 = 4;
iVar4 = 9;
iVar1 = 1100;
break;
case 28:
StringCopy(&Var2, "JBIB_P0_05_0", 16);
iVar3 = 5;
iVar4 = 0;
iVar1 = 1890;
break;
case 29:
StringCopy(&Var2, "JBIB_P0_05_1", 16);
iVar3 = 5;
iVar4 = 1;
iVar1 = 1820;
break;
case 30:
StringCopy(&Var2, "JBIB_P0_05_2", 16);
iVar3 = 5;
iVar4 = 2;
iVar1 = 1820;
break;
case 31:
StringCopy(&Var2, "JBIB_P0_05_3", 16);
iVar3 = 5;
iVar4 = 3;
iVar1 = 1850;
break;
case 32:
StringCopy(&Var2, "JBIB_P0_05_4", 16);
iVar3 = 5;
iVar4 = 4;
iVar1 = 1850;
break;
case 33:
StringCopy(&Var2, "JBIB_P0_05_5", 16);
iVar3 = 5;
iVar4 = 5;
iVar1 = 1900;
break;
case 34:
StringCopy(&Var2, "JBIB_P0_05_6", 16);
iVar3 = 5;
iVar4 = 6;
iVar1 = 1920;
break;
case 35:
StringCopy(&Var2, "JBIB_P0_05_7", 16);
iVar3 = 5;
iVar4 = 7;
iVar1 = 1980;
break;
case 36:
StringCopy(&Var2, "JBIB_P0_05_8", 16);
iVar3 = 5;
iVar4 = 8;
iVar1 = 2100;
break;
case 37:
StringCopy(&Var2, "JBIB_P0_05_9", 16);
iVar3 = 5;
iVar4 = 9;
iVar1 = 2120;
break;
case 38:
StringCopy(&Var2, "JBIB_P0_05_10", 16);
iVar3 = 5;
iVar4 = 10;
iVar1 = 2000;
break;
case 39:
StringCopy(&Var2, "JBIB_P0_05_11", 16);
iVar3 = 5;
iVar4 = 11;
iVar1 = 2200;
break;
case 40:
StringCopy(&Var2, "JBIB_P0_05_12", 16);
iVar3 = 5;
iVar4 = 12;
iVar1 = 2280;
break;
case 41:
StringCopy(&Var2, "JBIB_P0_05_13", 16);
iVar3 = 5;
iVar4 = 13;
iVar1 = 2300;
break;
case 42:
StringCopy(&Var2, "JBIB_P0_05_14", 16);
iVar3 = 5;
iVar4 = 14;
iVar1 = 2350;
break;
case 43:
StringCopy(&Var2, "JBIB_P0_05_15", 16);
iVar3 = 5;
iVar4 = 15;
iVar1 = 2280;
break;
case 44:
StringCopy(&Var2, "JBIB_P0_06_0", 16);
iVar3 = 6;
iVar4 = 0;
break;
default:
func_164(iVar7, iParam0, 45, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_205(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 7;
Global_71017[0 /*14*/].f_5 = 0;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
default:
func_164(iVar7, iParam0, 1, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_206(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 1;
Global_71017[0 /*14*/].f_5 = 0;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "BERD_P0_0_0", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 1:
StringCopy(&Var2, "BERD_P0_1_0", 16);
iVar3 = 1;
iVar4 = 0;
break;
case 2:
StringCopy(&Var2, "BERD_P0_2_0", 16);
iVar3 = 2;
iVar4 = 0;
break;
case 3:
StringCopy(&Var2, "BERD_P0_3_0", 16);
iVar3 = 3;
iVar4 = 0;
break;
case 4:
StringCopy(&Var2, "BERD_P0_4_0", 16);
iVar3 = 4;
iVar4 = 0;
break;
default:
func_164(iVar7, iParam0, 5, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_207(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 10;
Global_71017[0 /*14*/].f_5 = 0;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 1:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 0;
break;
case 2:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 2;
iVar4 = 0;
break;
case 3:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 3;
iVar4 = 0;
break;
case 4:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 4;
iVar4 = 0;
break;
case 5:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 0;
break;
case 6:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 0;
break;
case 7:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 7;
iVar4 = 0;
break;
case 8:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 7;
iVar4 = 1;
break;
case 9:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 7;
iVar4 = 2;
break;
case 10:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 7;
iVar4 = 3;
break;
case 11:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 7;
iVar4 = 4;
break;
case 12:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 7;
iVar4 = 5;
break;
case 13:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 7;
iVar4 = 6;
break;
case 14:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 7;
iVar4 = 7;
break;
case 15:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 8;
iVar4 = 0;
break;
case 16:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 8;
iVar4 = 1;
break;
case 17:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 8;
iVar4 = 2;
break;
case 18:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 8;
iVar4 = 3;
break;
case 19:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 8;
iVar4 = 4;
break;
case 20:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 8;
iVar4 = 5;
break;
case 21:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 0;
break;
case 22:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 1;
break;
case 23:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 2;
break;
case 24:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 3;
break;
case 25:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 4;
break;
case 26:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 5;
break;
case 27:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 6;
break;
case 28:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 10;
iVar4 = 0;
break;
case 29:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 10;
iVar4 = 1;
break;
case 30:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 10;
iVar4 = 2;
break;
case 31:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 10;
iVar4 = 3;
break;
case 32:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 10;
iVar4 = 4;
break;
case 33:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 10;
iVar4 = 5;
break;
case 34:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 10;
iVar4 = 6;
break;
case 35:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 10;
iVar4 = 7;
break;
case 36:
StringCopy(&Var2, "DECL_P0_10_8", 16);
iVar3 = 10;
iVar4 = 8;
break;
case 37:
StringCopy(&Var2, "DECL_P0_10_9", 16);
iVar3 = 10;
iVar4 = 9;
break;
case 38:
StringCopy(&Var2, "DECL_P0_10_10", 16);
iVar3 = 10;
iVar4 = 10;
break;
case 39:
StringCopy(&Var2, "DECL_P0_10_11", 16);
iVar3 = 10;
iVar4 = 11;
break;
case 40:
StringCopy(&Var2, "DECL_P0_10_12", 16);
iVar3 = 10;
iVar4 = 12;
break;
case 41:
StringCopy(&Var2, "DECL_P0_10_13", 16);
iVar3 = 10;
iVar4 = 13;
break;
case 42:
StringCopy(&Var2, "DECL_P0_10_14", 16);
iVar3 = 10;
iVar4 = 14;
break;
case 43:
StringCopy(&Var2, "DECL_P0_10_15", 16);
iVar3 = 10;
iVar4 = 15;
break;
case 44:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 11;
iVar4 = 0;
break;
case 45:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 11;
iVar4 = 1;
break;
case 46:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 11;
iVar4 = 2;
break;
case 47:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 11;
iVar4 = 3;
break;
default:
func_164(iVar7, iParam0, 48, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_208(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 9;
Global_71017[0 /*14*/].f_5 = 0;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 1:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 0;
break;
case 2:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 1;
break;
case 3:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 2;
iVar4 = 0;
break;
case 4:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 3;
iVar4 = 0;
bVar0 = true;
break;
case 5:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 4;
iVar4 = 0;
bVar0 = true;
break;
case 6:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 0;
break;
case 7:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 0;
bVar0 = true;
break;
case 8:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 7;
iVar4 = 0;
bVar0 = true;
break;
case 9:
StringCopy(&Var2, "SPEC2_P0_08_0", 16);
iVar3 = 8;
iVar4 = 0;
iVar1 = 125;
break;
case 10:
StringCopy(&Var2, "SPEC2_P0_08_1", 16);
iVar3 = 8;
iVar4 = 1;
iVar1 = 150;
break;
case 11:
StringCopy(&Var2, "SPEC2_P0_08_2", 16);
iVar3 = 8;
iVar4 = 2;
iVar1 = 175;
break;
case 12:
StringCopy(&Var2, "SPEC2_P0_08_3", 16);
iVar3 = 8;
iVar4 = 3;
iVar1 = 85;
break;
case 13:
StringCopy(&Var2, "SPEC2_P0_08_4", 16);
iVar3 = 8;
iVar4 = 4;
iVar1 = 150;
break;
case 14:
StringCopy(&Var2, "SPEC2_P0_08_5", 16);
iVar3 = 8;
iVar4 = 5;
iVar1 = 175;
break;
case 15:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 0;
bVar0 = true;
break;
case 16:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 10;
iVar4 = 0;
bVar0 = true;
break;
case 17:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 10;
iVar4 = 1;
bVar0 = true;
break;
case 18:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 11;
iVar4 = 0;
bVar0 = true;
break;
case 19:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 12;
iVar4 = 0;
bVar0 = true;
break;
default:
func_164(iVar7, iParam0, 20, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_209(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 8;
Global_71017[0 /*14*/].f_5 = 0;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 1:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 0;
bVar0 = true;
break;
case 2:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 2;
iVar4 = 0;
bVar0 = true;
break;
case 3:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 3;
iVar4 = 0;
bVar0 = true;
break;
case 4:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 4;
iVar4 = 0;
bVar0 = true;
break;
case 5:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 0;
bVar0 = true;
break;
case 6:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 0;
bVar0 = true;
break;
case 7:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 7;
iVar4 = 0;
bVar0 = true;
break;
case 8:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 8;
iVar4 = 0;
bVar0 = true;
break;
case 9:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 0;
bVar0 = true;
break;
case 10:
StringCopy(&Var2, "SPEC_P0_10", 16);
iVar3 = 10;
iVar4 = 0;
break;
case 11:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 11;
iVar4 = 0;
bVar0 = true;
break;
case 12:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 12;
iVar4 = 0;
bVar0 = true;
break;
case 13:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 13;
iVar4 = 0;
bVar0 = true;
break;
case 14:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 14;
iVar4 = 0;
bVar0 = true;
break;
case 15:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 15;
iVar4 = 0;
bVar0 = true;
break;
case 16:
StringCopy(&Var2, "SPEC_P0_16", 16);
iVar3 = 16;
iVar4 = 0;
break;
case 17:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 17;
iVar4 = 0;
bVar0 = true;
break;
case 18:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 18;
iVar4 = 0;
bVar0 = true;
break;
case 19:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 19;
iVar4 = 0;
bVar0 = true;
break;
case 20:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 20;
iVar4 = 0;
bVar0 = true;
break;
case 21:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 21;
iVar4 = 0;
bVar0 = true;
break;
case 22:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 22;
iVar4 = 0;
bVar0 = true;
break;
case 23:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 23;
iVar4 = 0;
bVar0 = true;
break;
default:
func_164(iVar7, iParam0, 24, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_210(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 5;
Global_71017[0 /*14*/].f_5 = 0;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 1:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 0;
bVar0 = true;
break;
case 2:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 2;
iVar4 = 0;
bVar0 = true;
break;
case 3:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 3;
iVar4 = 0;
bVar0 = true;
break;
case 4:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 3;
iVar4 = 1;
bVar0 = true;
break;
case 5:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 3;
iVar4 = 2;
bVar0 = true;
break;
case 6:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 3;
iVar4 = 3;
bVar0 = true;
break;
case 7:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 3;
iVar4 = 4;
bVar0 = true;
break;
case 8:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 4;
iVar4 = 0;
bVar0 = true;
break;
case 9:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 0;
bVar0 = true;
break;
case 10:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 0;
bVar0 = true;
break;
case 11:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 7;
iVar4 = 0;
bVar0 = true;
break;
case 12:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 8;
iVar4 = 0;
bVar0 = true;
break;
case 13:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 0;
bVar0 = true;
break;
default:
func_164(iVar7, iParam0, 14, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_211(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 6;
Global_71017[0 /*14*/].f_5 = 0;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "FEET_P0_0_0", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 1:
StringCopy(&Var2, "FEET_P0_0_1", 16);
iVar3 = 0;
iVar4 = 1;
iVar1 = 665;
break;
case 2:
StringCopy(&Var2, "FEET_P0_0_2", 16);
iVar3 = 0;
iVar4 = 2;
iVar1 = 620;
break;
case 3:
StringCopy(&Var2, "FEET_P0_0_3", 16);
iVar3 = 0;
iVar4 = 3;
iVar1 = 540;
break;
case 4:
StringCopy(&Var2, "FEET_P0_0_4", 16);
iVar3 = 0;
iVar4 = 4;
iVar1 = 580;
break;
case 5:
StringCopy(&Var2, "FEET_P0_0_5", 16);
iVar3 = 0;
iVar4 = 5;
iVar1 = 650;
break;
case 6:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 0;
break;
case 7:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 2;
iVar4 = 0;
break;
case 8:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 3;
iVar4 = 0;
bVar0 = true;
break;
case 9:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 4;
iVar4 = 0;
bVar0 = true;
break;
case 10:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 0;
bVar0 = true;
break;
case 11:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 0;
bVar0 = true;
break;
case 12:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 7;
iVar4 = 0;
bVar0 = true;
break;
case 13:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 8;
iVar4 = 0;
bVar0 = true;
break;
case 14:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 0;
bVar0 = true;
break;
case 15:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 10;
iVar4 = 0;
bVar0 = true;
break;
case 16:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 11;
iVar4 = 0;
bVar0 = true;
break;
case 17:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 12;
iVar4 = 0;
bVar0 = true;
break;
case 18:
StringCopy(&Var2, "FEET_P0_13_0", 16);
iVar3 = 13;
iVar4 = 0;
break;
case 19:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 14;
iVar4 = 0;
bVar0 = true;
break;
case 20:
StringCopy(&Var2, "FEET_P0_15_0", 16);
iVar3 = 15;
iVar4 = 0;
break;
case 21:
StringCopy(&Var2, "FEET_P0_15_1", 16);
iVar3 = 15;
iVar4 = 1;
iVar1 = 64;
break;
case 22:
StringCopy(&Var2, "FEET_P0_15_2", 16);
iVar3 = 15;
iVar4 = 2;
iVar1 = 56;
break;
case 23:
StringCopy(&Var2, "FEET_P0_15_3", 16);
iVar3 = 15;
iVar4 = 3;
iVar1 = 69;
break;
case 24:
StringCopy(&Var2, "FEET_P0_15_4", 16);
iVar3 = 15;
iVar4 = 4;
iVar1 = 59;
break;
case 25:
StringCopy(&Var2, "FEET_P0_15_5", 16);
iVar3 = 15;
iVar4 = 5;
iVar1 = 62;
break;
case 26:
StringCopy(&Var2, "FEET_P0_15_6", 16);
iVar3 = 15;
iVar4 = 6;
iVar1 = 74;
break;
case 27:
StringCopy(&Var2, "FEET_P0_15_7", 16);
iVar3 = 15;
iVar4 = 7;
iVar1 = 68;
break;
case 28:
StringCopy(&Var2, "FEET_P0_15_8", 16);
iVar3 = 15;
iVar4 = 8;
iVar1 = 72;
break;
case 29:
StringCopy(&Var2, "FEET_P0_15_9", 16);
iVar3 = 15;
iVar4 = 9;
iVar1 = 70;
break;
case 30:
StringCopy(&Var2, "FEET_P0_16_0", 16);
iVar3 = 16;
iVar4 = 0;
iVar1 = 48;
break;
case 31:
StringCopy(&Var2, "FEET_P0_16_1", 16);
iVar3 = 16;
iVar4 = 1;
iVar1 = 48;
break;
case 32:
StringCopy(&Var2, "FEET_P0_16_2", 16);
iVar3 = 16;
iVar4 = 2;
iVar1 = 55;
break;
case 33:
StringCopy(&Var2, "FEET_P0_16_3", 16);
iVar3 = 16;
iVar4 = 3;
iVar1 = 75;
break;
case 34:
StringCopy(&Var2, "FEET_P0_16_4", 16);
iVar3 = 16;
iVar4 = 4;
iVar1 = 65;
break;
case 35:
StringCopy(&Var2, "FEET_P0_16_5", 16);
iVar3 = 16;
iVar4 = 5;
iVar1 = 68;
break;
case 36:
StringCopy(&Var2, "FEET_P0_16_6", 16);
iVar3 = 16;
iVar4 = 6;
iVar1 = 58;
break;
case 37:
StringCopy(&Var2, "FEET_P0_16_7", 16);
iVar3 = 16;
iVar4 = 7;
iVar1 = 68;
break;
case 38:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 17;
iVar4 = 0;
bVar0 = true;
break;
case 39:
StringCopy(&Var2, "FEET_P0_18_0", 16);
iVar3 = 18;
iVar4 = 0;
iVar1 = 790;
break;
case 40:
StringCopy(&Var2, "FEET_P0_18_1", 16);
iVar3 = 18;
iVar4 = 1;
iVar1 = 750;
break;
case 41:
StringCopy(&Var2, "FEET_P0_18_2", 16);
iVar3 = 18;
iVar4 = 2;
iVar1 = 860;
break;
case 42:
StringCopy(&Var2, "FEET_P0_18_3", 16);
iVar3 = 18;
iVar4 = 3;
iVar1 = 750;
break;
case 43:
StringCopy(&Var2, "FEET_P0_18_4", 16);
iVar3 = 18;
iVar4 = 4;
iVar1 = 790;
break;
case 44:
StringCopy(&Var2, "FEET_P0_18_5", 16);
iVar3 = 18;
iVar4 = 5;
iVar1 = 840;
break;
case 45:
StringCopy(&Var2, "FEET_P0_18_6", 16);
iVar3 = 18;
iVar4 = 6;
iVar1 = 820;
break;
case 46:
StringCopy(&Var2, "FEET_P0_18_7", 16);
iVar3 = 18;
iVar4 = 7;
iVar1 = 800;
break;
case 47:
StringCopy(&Var2, "FEET_P0_18_8", 16);
iVar3 = 18;
iVar4 = 8;
iVar1 = 850;
break;
case 48:
StringCopy(&Var2, "FEET_P0_18_9", 16);
iVar3 = 18;
iVar4 = 9;
iVar1 = 870;
break;
case 49:
StringCopy(&Var2, "FEET_P0_18_10", 16);
iVar3 = 18;
iVar4 = 10;
iVar1 = 720;
break;
case 50:
StringCopy(&Var2, "FEET_P0_18_11", 16);
iVar3 = 18;
iVar4 = 11;
iVar1 = 740;
break;
case 51:
StringCopy(&Var2, "FEET_P0_18_12", 16);
iVar3 = 18;
iVar4 = 12;
iVar1 = 800;
break;
case 52:
StringCopy(&Var2, "FEET_P0_18_13", 16);
iVar3 = 18;
iVar4 = 13;
iVar1 = 750;
break;
case 53:
StringCopy(&Var2, "FEET_P0_18_14", 16);
iVar3 = 18;
iVar4 = 14;
iVar1 = 770;
break;
case 54:
StringCopy(&Var2, "FEET_P0_18_15", 16);
iVar3 = 18;
iVar4 = 15;
iVar1 = 860;
break;
case 55:
StringCopy(&Var2, "FEET_P0_19_0", 16);
iVar3 = 19;
iVar4 = 0;
iVar1 = 850;
break;
case 56:
StringCopy(&Var2, "FEET_P0_19_1", 16);
iVar3 = 19;
iVar4 = 1;
iVar1 = 800;
break;
case 57:
StringCopy(&Var2, "FEET_P0_19_2", 16);
iVar3 = 19;
iVar4 = 2;
iVar1 = 780;
break;
case 58:
StringCopy(&Var2, "FEET_P0_19_3", 16);
iVar3 = 19;
iVar4 = 3;
iVar1 = 890;
break;
case 59:
StringCopy(&Var2, "FEET_P0_19_4", 16);
iVar3 = 19;
iVar4 = 4;
iVar1 = 820;
break;
case 60:
StringCopy(&Var2, "FEET_P0_19_5", 16);
iVar3 = 19;
iVar4 = 5;
iVar1 = 840;
break;
case 61:
StringCopy(&Var2, "FEET_P0_19_6", 16);
iVar3 = 19;
iVar4 = 6;
iVar1 = 870;
break;
case 62:
StringCopy(&Var2, "FEET_P0_19_7", 16);
iVar3 = 19;
iVar4 = 7;
iVar1 = 930;
break;
case 63:
StringCopy(&Var2, "FEET_P0_19_8", 16);
iVar3 = 19;
iVar4 = 8;
iVar1 = 880;
break;
case 64:
StringCopy(&Var2, "FEET_P0_19_9", 16);
iVar3 = 19;
iVar4 = 9;
iVar1 = 900;
break;
case 65:
StringCopy(&Var2, "FEET_P0_19_10", 16);
iVar3 = 19;
iVar4 = 10;
iVar1 = 920;
break;
case 66:
StringCopy(&Var2, "FEET_P0_19_11", 16);
iVar3 = 19;
iVar4 = 11;
iVar1 = 970;
break;
case 67:
StringCopy(&Var2, "FEET_P0_19_12", 16);
iVar3 = 19;
iVar4 = 12;
iVar1 = 990;
break;
case 68:
StringCopy(&Var2, "FEET_P0_19_13", 16);
iVar3 = 19;
iVar4 = 13;
iVar1 = 960;
break;
case 69:
StringCopy(&Var2, "FEET_P0_19_14", 16);
iVar3 = 19;
iVar4 = 14;
iVar1 = 980;
break;
case 70:
StringCopy(&Var2, "FEET_P0_19_15", 16);
iVar3 = 19;
iVar4 = 15;
iVar1 = 950;
break;
case 71:
StringCopy(&Var2, "FEET_P0_20_0", 16);
iVar3 = 20;
iVar4 = 0;
iVar1 = 110;
break;
case 72:
StringCopy(&Var2, "FEET_P0_20_1", 16);
iVar3 = 20;
iVar4 = 1;
iVar1 = 115;
break;
case 73:
StringCopy(&Var2, "FEET_P0_20_2", 16);
iVar3 = 20;
iVar4 = 2;
iVar1 = 120;
break;
case 74:
StringCopy(&Var2, "FEET_P0_20_3", 16);
iVar3 = 20;
iVar4 = 3;
iVar1 = 110;
break;
case 75:
StringCopy(&Var2, "FEET_P0_20_4", 16);
iVar3 = 20;
iVar4 = 4;
iVar1 = 125;
break;
case 76:
StringCopy(&Var2, "FEET_P0_20_5", 16);
iVar3 = 20;
iVar4 = 5;
iVar1 = 128;
break;
case 77:
StringCopy(&Var2, "FEET_P0_20_6", 16);
iVar3 = 20;
iVar4 = 6;
iVar1 = 135;
break;
case 78:
StringCopy(&Var2, "FEET_P0_20_7", 16);
iVar3 = 20;
iVar4 = 7;
iVar1 = 130;
break;
case 79:
StringCopy(&Var2, "FEET_P0_20_8", 16);
iVar3 = 20;
iVar4 = 8;
iVar1 = 145;
break;
case 80:
StringCopy(&Var2, "FEET_P0_20_9", 16);
iVar3 = 20;
iVar4 = 9;
iVar1 = 110;
break;
case 81:
StringCopy(&Var2, "FEET_P0_20_10", 16);
iVar3 = 20;
iVar4 = 10;
iVar1 = 120;
break;
case 82:
StringCopy(&Var2, "FEET_P0_20_11", 16);
iVar3 = 20;
iVar4 = 11;
iVar1 = 150;
break;
case 83:
StringCopy(&Var2, "FEET_P0_20_12", 16);
iVar3 = 20;
iVar4 = 12;
iVar1 = 125;
break;
case 84:
StringCopy(&Var2, "FEET_P0_20_13", 16);
iVar3 = 20;
iVar4 = 13;
iVar1 = 120;
break;
case 85:
StringCopy(&Var2, "FEET_P0_20_14", 16);
iVar3 = 20;
iVar4 = 14;
iVar1 = 130;
break;
case 86:
StringCopy(&Var2, "FEET_P0_20_15", 16);
iVar3 = 20;
iVar4 = 15;
iVar1 = 110;
break;
case 87:
StringCopy(&Var2, "FEET_P0_21_0", 16);
iVar3 = 21;
iVar4 = 0;
iVar1 = 720;
break;
case 88:
StringCopy(&Var2, "FEET_P0_21_1", 16);
iVar3 = 21;
iVar4 = 1;
iVar1 = 680;
break;
case 89:
StringCopy(&Var2, "FEET_P0_21_2", 16);
iVar3 = 21;
iVar4 = 2;
iVar1 = 650;
break;
case 90:
StringCopy(&Var2, "FEET_P0_21_3", 16);
iVar3 = 21;
iVar4 = 3;
iVar1 = 670;
break;
case 91:
StringCopy(&Var2, "FEET_P0_21_4", 16);
iVar3 = 21;
iVar4 = 4;
iVar1 = 700;
break;
case 92:
StringCopy(&Var2, "FEET_P0_21_5", 16);
iVar3 = 21;
iVar4 = 5;
iVar1 = 680;
break;
case 93:
StringCopy(&Var2, "FEET_P0_21_6", 16);
iVar3 = 21;
iVar4 = 6;
iVar1 = 720;
break;
case 94:
StringCopy(&Var2, "FEET_P0_21_7", 16);
iVar3 = 21;
iVar4 = 7;
iVar1 = 740;
break;
case 95:
StringCopy(&Var2, "FEET_P0_21_8", 16);
iVar3 = 21;
iVar4 = 8;
iVar1 = 760;
break;
case 96:
StringCopy(&Var2, "FEET_P0_21_9", 16);
iVar3 = 21;
iVar4 = 9;
iVar1 = 780;
break;
case 97:
StringCopy(&Var2, "FEET_P0_21_10", 16);
iVar3 = 21;
iVar4 = 10;
iVar1 = 750;
break;
case 98:
StringCopy(&Var2, "FEET_P0_21_11", 16);
iVar3 = 21;
iVar4 = 11;
iVar1 = 700;
break;
default:
func_164(iVar7, iParam0, 99, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_212(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 4;
Global_71017[0 /*14*/].f_5 = 0;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "LEGS_P0_0_0", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 1:
StringCopy(&Var2, "LEGS_P0_0_0", 16);
iVar3 = 0;
iVar4 = 1;
break;
case 2:
StringCopy(&Var2, "LEGS_P0_0_2", 16);
iVar3 = 0;
iVar4 = 2;
break;
case 3:
StringCopy(&Var2, "LEGS_P0_0_3", 16);
iVar3 = 0;
iVar4 = 3;
break;
case 4:
StringCopy(&Var2, "LEGS_P0_0_4", 16);
iVar3 = 0;
iVar4 = 4;
break;
case 5:
StringCopy(&Var2, "LEGS_P0_0_5", 16);
iVar3 = 0;
iVar4 = 5;
break;
case 6:
StringCopy(&Var2, "LEGS_P0_0_6", 16);
iVar3 = 0;
iVar4 = 6;
break;
case 7:
StringCopy(&Var2, "LEGS_P0_0_7", 16);
iVar3 = 0;
iVar4 = 7;
break;
case 8:
StringCopy(&Var2, "LEGS_P0_0_8", 16);
iVar3 = 0;
iVar4 = 8;
break;
case 9:
StringCopy(&Var2, "LEGS_P0_0_9", 16);
iVar3 = 0;
iVar4 = 9;
break;
case 10:
StringCopy(&Var2, "LEGS_P0_0_10", 16);
iVar3 = 0;
iVar4 = 10;
break;
case 11:
StringCopy(&Var2, "LEGS_P0_0_11", 16);
iVar3 = 0;
iVar4 = 11;
break;
case 12:
StringCopy(&Var2, "LEGS_P0_0_12", 16);
iVar3 = 0;
iVar4 = 12;
break;
case 13:
StringCopy(&Var2, "LEGS_P0_0_13", 16);
iVar3 = 0;
iVar4 = 13;
break;
case 14:
StringCopy(&Var2, "LEGS_P0_0_14", 16);
iVar3 = 0;
iVar4 = 14;
break;
case 15:
StringCopy(&Var2, "LEGS_P0_0_15", 16);
iVar3 = 0;
iVar4 = 15;
break;
case 16:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 0;
bVar0 = true;
break;
case 17:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 2;
iVar4 = 0;
bVar0 = true;
break;
case 18:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 3;
iVar4 = 0;
bVar0 = true;
break;
case 19:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 3;
iVar4 = 1;
bVar0 = true;
break;
case 20:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 4;
iVar4 = 0;
bVar0 = true;
break;
case 21:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 0;
bVar0 = true;
break;
case 22:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 0;
bVar0 = true;
break;
case 23:
StringCopy(&Var2, "LEGS_P0_7_0", 16);
iVar3 = 7;
iVar4 = 0;
iVar1 = 115;
break;
case 24:
StringCopy(&Var2, "LEGS_P0_7_1", 16);
iVar3 = 7;
iVar4 = 1;
iVar1 = 115;
break;
case 25:
StringCopy(&Var2, "LEGS_P0_7_2", 16);
iVar3 = 7;
iVar4 = 2;
iVar1 = 128;
break;
case 26:
StringCopy(&Var2, "LEGS_P0_7_3", 16);
iVar3 = 7;
iVar4 = 3;
iVar1 = 118;
break;
case 27:
StringCopy(&Var2, "LEGS_P0_7_4", 16);
iVar3 = 7;
iVar4 = 4;
iVar1 = 125;
break;
case 28:
StringCopy(&Var2, "LEGS_P0_7_5", 16);
iVar3 = 7;
iVar4 = 5;
iVar1 = 128;
break;
case 29:
StringCopy(&Var2, "LEGS_P0_7_6", 16);
iVar3 = 7;
iVar4 = 6;
iVar1 = 128;
break;
case 30:
StringCopy(&Var2, "LEGS_P0_7_7", 16);
iVar3 = 7;
iVar4 = 7;
iVar1 = 125;
break;
case 31:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 8;
iVar4 = 0;
bVar0 = true;
break;
case 32:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 0;
bVar0 = true;
break;
case 33:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 10;
iVar4 = 0;
bVar0 = true;
break;
case 34:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 11;
iVar4 = 0;
bVar0 = true;
break;
case 35:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 11;
iVar4 = 1;
bVar0 = true;
break;
case 36:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 11;
iVar4 = 2;
bVar0 = true;
break;
case 37:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 11;
iVar4 = 3;
bVar0 = true;
break;
case 38:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 11;
iVar4 = 4;
bVar0 = true;
break;
case 39:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 11;
iVar4 = 5;
bVar0 = true;
break;
case 40:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 12;
iVar4 = 0;
bVar0 = true;
break;
case 41:
StringCopy(&Var2, "LEGS_P0_13_0", 16);
iVar3 = 13;
iVar4 = 0;
iVar1 = 68;
break;
case 42:
StringCopy(&Var2, "LEGS_P0_13_1", 16);
iVar3 = 13;
iVar4 = 1;
iVar1 = 68;
break;
case 43:
StringCopy(&Var2, "LEGS_P0_13_2", 16);
iVar3 = 13;
iVar4 = 2;
iVar1 = 68;
break;
case 44:
StringCopy(&Var2, "LEGS_P0_13_3", 16);
iVar3 = 13;
iVar4 = 3;
iVar1 = 68;
break;
case 45:
StringCopy(&Var2, "LEGS_P0_13_4", 16);
iVar3 = 13;
iVar4 = 4;
iVar1 = 68;
break;
case 46:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 14;
iVar4 = 0;
bVar0 = true;
break;
case 47:
StringCopy(&Var2, "LEGS_P0_15_0", 16);
iVar3 = 15;
iVar4 = 0;
break;
case 48:
StringCopy(&Var2, "LEGS_P0_15_1", 16);
iVar3 = 15;
iVar4 = 1;
iVar1 = 550;
break;
case 49:
StringCopy(&Var2, "LEGS_P0_15_2", 16);
iVar3 = 15;
iVar4 = 2;
iVar1 = 650;
break;
case 50:
StringCopy(&Var2, "LEGS_P0_15_3", 16);
iVar3 = 15;
iVar4 = 3;
iVar1 = 875;
break;
case 51:
StringCopy(&Var2, "LEGS_P0_15_4", 16);
iVar3 = 15;
iVar4 = 4;
iVar1 = 820;
break;
case 52:
StringCopy(&Var2, "LEGS_P0_15_5", 16);
iVar3 = 15;
iVar4 = 5;
iVar1 = 720;
break;
case 53:
StringCopy(&Var2, "LEGS_P0_15_6", 16);
iVar3 = 15;
iVar4 = 6;
iVar1 = 750;
break;
case 54:
StringCopy(&Var2, "LEGS_P0_15_7", 16);
iVar3 = 15;
iVar4 = 7;
iVar1 = 850;
break;
case 55:
StringCopy(&Var2, "LEGS_P0_16_0", 16);
iVar3 = 16;
iVar4 = 0;
break;
case 56:
StringCopy(&Var2, "LEGS_P0_16_1", 16);
iVar3 = 16;
iVar4 = 1;
iVar1 = 48;
break;
case 57:
StringCopy(&Var2, "LEGS_P0_16_2", 16);
iVar3 = 16;
iVar4 = 2;
iVar1 = 48;
break;
case 58:
StringCopy(&Var2, "LEGS_P0_16_3", 16);
iVar3 = 16;
iVar4 = 3;
iVar1 = 38;
break;
case 59:
StringCopy(&Var2, "LEGS_P0_16_4", 16);
iVar3 = 16;
iVar4 = 4;
iVar1 = 38;
break;
case 60:
StringCopy(&Var2, "LEGS_P0_16_5", 16);
iVar3 = 16;
iVar4 = 5;
iVar1 = 42;
break;
case 61:
StringCopy(&Var2, "LEGS_P0_16_6", 16);
iVar3 = 16;
iVar4 = 6;
iVar1 = 58;
break;
case 62:
StringCopy(&Var2, "LEGS_P0_16_7", 16);
iVar3 = 16;
iVar4 = 7;
iVar1 = 46;
break;
case 63:
StringCopy(&Var2, "LEGS_P0_16_8", 16);
iVar3 = 16;
iVar4 = 8;
iVar1 = 46;
break;
case 64:
StringCopy(&Var2, "LEGS_P0_16_9", 16);
iVar3 = 16;
iVar4 = 9;
iVar1 = 46;
break;
case 65:
StringCopy(&Var2, "LEGS_P0_16_10", 16);
iVar3 = 16;
iVar4 = 10;
iVar1 = 68;
break;
case 66:
StringCopy(&Var2, "LEGS_P0_16_11", 16);
iVar3 = 16;
iVar4 = 11;
iVar1 = 58;
break;
case 67:
StringCopy(&Var2, "LEGS_P0_16_12", 16);
iVar3 = 16;
iVar4 = 12;
iVar1 = 50;
break;
case 68:
StringCopy(&Var2, "LEGS_P0_16_13", 16);
iVar3 = 16;
iVar4 = 13;
iVar1 = 68;
break;
case 69:
StringCopy(&Var2, "LEGS_P0_16_14", 16);
iVar3 = 16;
iVar4 = 14;
iVar1 = 68;
break;
case 70:
StringCopy(&Var2, "LEGS_P0_16_15", 16);
iVar3 = 16;
iVar4 = 15;
iVar1 = 42;
break;
case 71:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 17;
iVar4 = 0;
bVar0 = true;
break;
case 72:
StringCopy(&Var2, "LEGS_P0_18_0", 16);
iVar3 = 18;
iVar4 = 0;
break;
case 73:
StringCopy(&Var2, "LEGS_P0_18_1", 16);
iVar3 = 18;
iVar4 = 1;
iVar1 = 250;
break;
case 74:
StringCopy(&Var2, "LEGS_P0_18_2", 16);
iVar3 = 18;
iVar4 = 2;
iVar1 = 250;
break;
case 75:
StringCopy(&Var2, "LEGS_P0_18_3", 16);
iVar3 = 18;
iVar4 = 3;
iVar1 = 290;
break;
case 76:
StringCopy(&Var2, "LEGS_P0_18_4", 16);
iVar3 = 18;
iVar4 = 4;
iVar1 = 270;
break;
case 77:
StringCopy(&Var2, "LEGS_P0_18_5", 16);
iVar3 = 18;
iVar4 = 5;
iVar1 = 270;
break;
case 78:
StringCopy(&Var2, "LEGS_P0_18_6", 16);
iVar3 = 18;
iVar4 = 6;
iVar1 = 15;
break;
case 79:
StringCopy(&Var2, "LEGS_P0_18_7", 16);
iVar3 = 18;
iVar4 = 7;
iVar1 = 12;
break;
case 80:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 19;
iVar4 = 0;
bVar0 = true;
break;
case 81:
StringCopy(&Var2, "LEGS_P0_20_0", 16);
iVar3 = 20;
iVar4 = 0;
break;
case 82:
StringCopy(&Var2, "LEGS_P0_20_1", 16);
iVar3 = 20;
iVar4 = 1;
iVar1 = 118;
break;
case 83:
StringCopy(&Var2, "LEGS_P0_20_2", 16);
iVar3 = 20;
iVar4 = 2;
iVar1 = 110;
break;
case 84:
StringCopy(&Var2, "LEGS_P0_21_0", 16);
iVar3 = 21;
iVar4 = 0;
iVar1 = 88;
break;
case 85:
StringCopy(&Var2, "LEGS_P0_21_1", 16);
iVar3 = 21;
iVar4 = 1;
iVar1 = 95;
break;
case 86:
StringCopy(&Var2, "LEGS_P0_21_2", 16);
iVar3 = 21;
iVar4 = 2;
iVar1 = 95;
break;
case 87:
StringCopy(&Var2, "LEGS_P0_21_3", 16);
iVar3 = 21;
iVar4 = 3;
iVar1 = 98;
break;
case 88:
StringCopy(&Var2, "LEGS_P0_22_0", 16);
iVar3 = 22;
iVar4 = 0;
iVar1 = 140;
break;
case 89:
StringCopy(&Var2, "LEGS_P0_23_0", 16);
iVar3 = 23;
iVar4 = 0;
break;
case 90:
StringCopy(&Var2, "LEGS_P0_23_1", 16);
iVar3 = 23;
iVar4 = 1;
iVar1 = 150;
break;
case 91:
StringCopy(&Var2, "LEGS_P0_23_2", 16);
iVar3 = 23;
iVar4 = 2;
iVar1 = 130;
break;
case 92:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 24;
iVar4 = 0;
bVar0 = true;
break;
case 93:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 25;
iVar4 = 0;
bVar0 = true;
break;
case 94:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 26;
iVar4 = 0;
bVar0 = true;
break;
case 95:
StringCopy(&Var2, "LEGS_P0_27_0", 16);
iVar3 = 27;
iVar4 = 0;
break;
case 96:
StringCopy(&Var2, "LEGS_P0_28_0", 16);
iVar3 = 28;
iVar4 = 0;
iVar1 = 45;
break;
case 97:
StringCopy(&Var2, "LEGS_P0_28_1", 16);
iVar3 = 28;
iVar4 = 1;
iVar1 = 48;
break;
case 98:
StringCopy(&Var2, "LEGS_P0_28_2", 16);
iVar3 = 28;
iVar4 = 2;
iVar1 = 48;
break;
case 99:
StringCopy(&Var2, "LEGS_P0_28_3", 16);
iVar3 = 28;
iVar4 = 3;
iVar1 = 52;
break;
case 100:
StringCopy(&Var2, "LEGS_P0_28_4", 16);
iVar3 = 28;
iVar4 = 4;
iVar1 = 52;
break;
case 101:
StringCopy(&Var2, "LEGS_P0_28_5", 16);
iVar3 = 28;
iVar4 = 5;
iVar1 = 55;
break;
case 102:
StringCopy(&Var2, "LEGS_P0_28_6", 16);
iVar3 = 28;
iVar4 = 6;
iVar1 = 55;
break;
case 103:
StringCopy(&Var2, "LEGS_P0_28_7", 16);
iVar3 = 28;
iVar4 = 7;
iVar1 = 55;
break;
case 104:
StringCopy(&Var2, "LEGS_P0_28_8", 16);
iVar3 = 28;
iVar4 = 8;
iVar1 = 58;
break;
case 105:
StringCopy(&Var2, "LEGS_P0_28_9", 16);
iVar3 = 28;
iVar4 = 9;
iVar1 = 58;
break;
case 106:
StringCopy(&Var2, "LEGS_P0_28_10", 16);
iVar3 = 28;
iVar4 = 10;
iVar1 = 60;
break;
case 107:
StringCopy(&Var2, "LEGS_P0_28_11", 16);
iVar3 = 28;
iVar4 = 11;
iVar1 = 60;
break;
case 108:
StringCopy(&Var2, "LEGS_P0_28_12", 16);
iVar3 = 28;
iVar4 = 12;
iVar1 = 62;
break;
case 109:
StringCopy(&Var2, "LEGS_P0_28_13", 16);
iVar3 = 28;
iVar4 = 13;
iVar1 = 62;
break;
case 110:
StringCopy(&Var2, "LEGS_P0_28_14", 16);
iVar3 = 28;
iVar4 = 14;
iVar1 = 65;
break;
case 111:
StringCopy(&Var2, "LEGS_P0_28_15", 16);
iVar3 = 28;
iVar4 = 15;
iVar1 = 65;
break;
case 112:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 29;
iVar4 = 0;
break;
default:
func_164(iVar7, iParam0, 113, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_213(int iParam0)
{
if (iParam0 < 60)
{
func_215(iParam0);
}
else
{
func_214(iParam0);
}
if (Global_71017[0 /*14*/].f_2 == -1)
{
func_164(3, iParam0, 181, -1);
}
}
void func_214(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 3;
Global_71017[0 /*14*/].f_5 = 0;
switch (iParam0)
{
case 60:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 9;
iVar4 = 0;
bVar0 = true;
break;
case 61:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 10;
iVar4 = 0;
bVar0 = true;
break;
case 62:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 11;
iVar4 = 0;
bVar0 = true;
break;
case 63:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 12;
iVar4 = 0;
bVar0 = true;
break;
case 64:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 12;
iVar4 = 1;
bVar0 = true;
break;
case 65:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 12;
iVar4 = 2;
bVar0 = true;
break;
case 66:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 12;
iVar4 = 3;
bVar0 = true;
break;
case 67:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 12;
iVar4 = 4;
bVar0 = true;
break;
case 68:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 12;
iVar4 = 5;
bVar0 = true;
break;
case 69:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 13;
iVar4 = 0;
bVar0 = true;
break;
case 70:
StringCopy(&Var2, "TORSO_P0_14_0", 16);
iVar3 = 14;
iVar4 = 0;
iVar1 = 120;
break;
case 71:
StringCopy(&Var2, "TORSO_P0_14_1", 16);
iVar3 = 14;
iVar4 = 1;
iVar1 = 120;
break;
case 72:
StringCopy(&Var2, "TORSO_P0_14_2", 16);
iVar3 = 14;
iVar4 = 2;
iVar1 = 120;
break;
case 73:
StringCopy(&Var2, "TORSO_P0_14_3", 16);
iVar3 = 14;
iVar4 = 3;
iVar1 = 120;
break;
case 74:
StringCopy(&Var2, "TORSO_P0_14_4", 16);
iVar3 = 14;
iVar4 = 4;
iVar1 = 120;
break;
case 75:
StringCopy(&Var2, "TORSO_P0_14_5", 16);
iVar3 = 14;
iVar4 = 5;
iVar1 = 120;
break;
case 76:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 15;
iVar4 = 0;
bVar0 = true;
break;
case 77:
StringCopy(&Var2, "TORSO_P0_16_0", 16);
iVar3 = 16;
iVar4 = 0;
break;
case 78:
StringCopy(&Var2, "TORSO_P0_16_1", 16);
iVar3 = 16;
iVar4 = 1;
iVar1 = 20;
break;
case 79:
StringCopy(&Var2, "TORSO_P0_16_2", 16);
iVar3 = 16;
iVar4 = 2;
iVar1 = 24;
break;
case 80:
StringCopy(&Var2, "TORSO_P0_16_3", 16);
iVar3 = 16;
iVar4 = 3;
iVar1 = 22;
break;
case 81:
StringCopy(&Var2, "TORSO_P0_16_4", 16);
iVar3 = 16;
iVar4 = 4;
iVar1 = 25;
break;
case 82:
StringCopy(&Var2, "TORSO_P0_16_5", 16);
iVar3 = 16;
iVar4 = 5;
iVar1 = 25;
break;
case 83:
StringCopy(&Var2, "TORSO_P0_16_6", 16);
iVar3 = 16;
iVar4 = 6;
iVar1 = 22;
break;
case 84:
StringCopy(&Var2, "TORSO_P0_16_7", 16);
iVar3 = 16;
iVar4 = 7;
iVar1 = 27;
break;
case 85:
StringCopy(&Var2, "TORSO_P0_17_0", 16);
iVar3 = 17;
iVar4 = 0;
break;
case 86:
StringCopy(&Var2, "TORSO_P0_17_1", 16);
iVar3 = 17;
iVar4 = 1;
break;
case 87:
StringCopy(&Var2, "TORSO_P0_17_2", 16);
iVar3 = 17;
iVar4 = 2;
break;
case 88:
StringCopy(&Var2, "TORSO_P0_17_3", 16);
iVar3 = 17;
iVar4 = 3;
iVar1 = 48;
break;
case 89:
StringCopy(&Var2, "TORSO_P0_17_4", 16);
iVar3 = 17;
iVar4 = 4;
iVar1 = 40;
break;
case 90:
StringCopy(&Var2, "TORSO_P0_17_5", 16);
iVar3 = 17;
iVar4 = 5;
iVar1 = 45;
break;
case 91:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 18;
iVar4 = 0;
bVar0 = true;
break;
case 92:
StringCopy(&Var2, "TORSO_P0_19_0", 16);
iVar3 = 19;
iVar4 = 0;
break;
case 93:
StringCopy(&Var2, "TORSO_P0_19_1", 16);
iVar3 = 19;
iVar4 = 1;
iVar1 = 190;
break;
case 94:
StringCopy(&Var2, "TORSO_P0_19_2", 16);
iVar3 = 19;
iVar4 = 2;
iVar1 = 190;
break;
case 95:
StringCopy(&Var2, "TORSO_P0_19_3", 16);
iVar3 = 19;
iVar4 = 3;
iVar1 = 190;
break;
case 96:
StringCopy(&Var2, "TORSO_P0_19_4", 16);
iVar3 = 19;
iVar4 = 4;
iVar1 = 210;
break;
case 97:
StringCopy(&Var2, "TORSO_P0_20_0", 16);
iVar3 = 20;
iVar4 = 0;
break;
case 98:
StringCopy(&Var2, "TORSO_P0_20_1", 16);
iVar3 = 20;
iVar4 = 1;
iVar1 = 115;
break;
case 99:
StringCopy(&Var2, "TORSO_P0_20_2", 16);
iVar3 = 20;
iVar4 = 2;
iVar1 = 55;
break;
case 100:
StringCopy(&Var2, "TORSO_P0_20_3", 16);
iVar3 = 20;
iVar4 = 3;
iVar1 = 110;
break;
case 101:
StringCopy(&Var2, "TORSO_P0_20_4", 16);
iVar3 = 20;
iVar4 = 4;
iVar1 = 99;
break;
case 102:
StringCopy(&Var2, "TORSO_P0_20_5", 16);
iVar3 = 20;
iVar4 = 5;
iVar1 = 49;
break;
case 103:
StringCopy(&Var2, "TORSO_P0_20_6", 16);
iVar3 = 20;
iVar4 = 6;
iVar1 = 120;
break;
case 104:
StringCopy(&Var2, "TORSO_P0_20_7", 16);
iVar3 = 20;
iVar4 = 7;
iVar1 = 45;
break;
case 105:
StringCopy(&Var2, "TORSO_P0_20_8", 16);
iVar3 = 20;
iVar4 = 8;
iVar1 = 115;
break;
case 106:
StringCopy(&Var2, "TORSO_P0_20_9", 16);
iVar3 = 20;
iVar4 = 9;
iVar1 = 105;
break;
case 107:
StringCopy(&Var2, "TORSO_P0_20_10", 16);
iVar3 = 20;
iVar4 = 10;
iVar1 = 90;
break;
case 108:
StringCopy(&Var2, "TORSO_P0_20_11", 16);
iVar3 = 20;
iVar4 = 11;
iVar1 = 95;
break;
case 109:
StringCopy(&Var2, "TORSO_P0_20_12", 16);
iVar3 = 20;
iVar4 = 12;
iVar1 = 39;
break;
case 110:
StringCopy(&Var2, "TORSO_P0_20_13", 16);
iVar3 = 20;
iVar4 = 13;
iVar1 = 95;
break;
case 111:
StringCopy(&Var2, "TORSO_P0_20_14", 16);
iVar3 = 20;
iVar4 = 14;
iVar1 = 35;
break;
case 112:
StringCopy(&Var2, "TORSO_P0_20_15", 16);
iVar3 = 20;
iVar4 = 15;
iVar1 = 95;
break;
case 113:
StringCopy(&Var2, "TORSO_P0_21_0", 16);
iVar3 = 21;
iVar4 = 0;
iVar1 = 88;
break;
case 114:
StringCopy(&Var2, "TORSO_P0_21_1", 16);
iVar3 = 21;
iVar4 = 1;
iVar1 = 60;
break;
case 115:
StringCopy(&Var2, "TORSO_P0_21_2", 16);
iVar3 = 21;
iVar4 = 2;
iVar1 = 70;
break;
case 116:
StringCopy(&Var2, "TORSO_P0_21_3", 16);
iVar3 = 21;
iVar4 = 3;
iVar1 = 80;
break;
case 117:
StringCopy(&Var2, "TORSO_P0_21_4", 16);
iVar3 = 21;
iVar4 = 4;
iVar1 = 90;
break;
case 118:
StringCopy(&Var2, "TORSO_P0_21_5", 16);
iVar3 = 21;
iVar4 = 5;
iVar1 = 80;
break;
case 119:
StringCopy(&Var2, "TORSO_P0_21_6", 16);
iVar3 = 21;
iVar4 = 6;
iVar1 = 70;
break;
case 120:
StringCopy(&Var2, "TORSO_P0_21_7", 16);
iVar3 = 21;
iVar4 = 7;
iVar1 = 95;
break;
case 121:
StringCopy(&Var2, "TORSO_P0_21_8", 16);
iVar3 = 21;
iVar4 = 8;
iVar1 = 105;
break;
case 122:
StringCopy(&Var2, "TORSO_P0_21_9", 16);
iVar3 = 21;
iVar4 = 9;
iVar1 = 95;
break;
case 123:
StringCopy(&Var2, "TORSO_P0_21_10", 16);
iVar3 = 21;
iVar4 = 10;
iVar1 = 110;
break;
case 124:
StringCopy(&Var2, "TORSO_P0_21_11", 16);
iVar3 = 21;
iVar4 = 11;
iVar1 = 98;
break;
case 125:
StringCopy(&Var2, "TORSO_P0_21_12", 16);
iVar3 = 21;
iVar4 = 12;
iVar1 = 88;
break;
case 126:
StringCopy(&Var2, "TORSO_P0_21_13", 16);
iVar3 = 21;
iVar4 = 13;
iVar1 = 98;
break;
case 127:
StringCopy(&Var2, "TORSO_P0_21_14", 16);
iVar3 = 21;
iVar4 = 14;
iVar1 = 110;
break;
case 128:
StringCopy(&Var2, "TORSO_P0_21_15", 16);
iVar3 = 21;
iVar4 = 15;
iVar1 = 98;
break;
case 129:
StringCopy(&Var2, "TORSO_P0_22_0", 16);
iVar3 = 22;
iVar4 = 0;
break;
case 130:
StringCopy(&Var2, "TORSO_P0_22_1", 16);
iVar3 = 22;
iVar4 = 1;
iVar1 = 4950;
break;
case 131:
StringCopy(&Var2, "TORSO_P0_22_2", 16);
iVar3 = 22;
iVar4 = 2;
iVar1 = 4195;
break;
case 132:
StringCopy(&Var2, "TORSO_P0_22_3", 16);
iVar3 = 22;
iVar4 = 3;
iVar1 = 3195;
break;
case 133:
StringCopy(&Var2, "TORSO_P0_22_4", 16);
iVar3 = 22;
iVar4 = 4;
iVar1 = 2950;
break;
case 134:
StringCopy(&Var2, "TORSO_P0_22_5", 16);
iVar3 = 22;
iVar4 = 5;
iVar1 = 3950;
break;
case 135:
StringCopy(&Var2, "TORSO_P0_23_0", 16);
iVar3 = 23;
iVar4 = 0;
iVar1 = 3200;
break;
case 136:
StringCopy(&Var2, "TORSO_P0_23_1", 16);
iVar3 = 23;
iVar4 = 1;
iVar1 = 3200;
break;
case 137:
StringCopy(&Var2, "TORSO_P0_23_2", 16);
iVar3 = 23;
iVar4 = 2;
iVar1 = 3200;
break;
case 138:
StringCopy(&Var2, "TORSO_P0_23_3", 16);
iVar3 = 23;
iVar4 = 3;
iVar1 = 3200;
break;
case 139:
StringCopy(&Var2, "TORSO_P0_23_4", 16);
iVar3 = 23;
iVar4 = 4;
iVar1 = 3200;
break;
case 140:
StringCopy(&Var2, "TORSO_P0_23_5", 16);
iVar3 = 23;
iVar4 = 5;
iVar1 = 3200;
break;
case 141:
StringCopy(&Var2, "TORSO_P0_23_6", 16);
iVar3 = 23;
iVar4 = 6;
iVar1 = 3200;
break;
case 142:
StringCopy(&Var2, "TORSO_P0_23_7", 16);
iVar3 = 23;
iVar4 = 7;
iVar1 = 3200;
break;
case 143:
StringCopy(&Var2, "TORSO_P0_23_8", 16);
iVar3 = 23;
iVar4 = 8;
iVar1 = 3200;
break;
case 144:
StringCopy(&Var2, "TORSO_P0_23_9", 16);
iVar3 = 23;
iVar4 = 9;
iVar1 = 3200;
break;
case 145:
StringCopy(&Var2, "TORSO_P0_23_10", 16);
iVar3 = 23;
iVar4 = 10;
iVar1 = 3200;
break;
case 146:
StringCopy(&Var2, "TORSO_P0_23_11", 16);
iVar3 = 23;
iVar4 = 11;
iVar1 = 3200;
break;
case 147:
StringCopy(&Var2, "TORSO_P0_23_12", 16);
iVar3 = 23;
iVar4 = 12;
iVar1 = 3200;
break;
case 148:
StringCopy(&Var2, "TORSO_P0_23_13", 16);
iVar3 = 23;
iVar4 = 13;
iVar1 = 3200;
break;
case 149:
StringCopy(&Var2, "TORSO_P0_23_14", 16);
iVar3 = 23;
iVar4 = 14;
iVar1 = 3200;
break;
case 150:
StringCopy(&Var2, "TORSO_P0_23_15", 16);
iVar3 = 23;
iVar4 = 15;
iVar1 = 3200;
break;
case 151:
StringCopy(&Var2, "TORSO_P0_24_0", 16);
iVar3 = 24;
iVar4 = 0;
iVar1 = 1350;
break;
case 152:
StringCopy(&Var2, "TORSO_P0_24_1", 16);
iVar3 = 24;
iVar4 = 1;
iVar1 = 1400;
break;
case 153:
StringCopy(&Var2, "TORSO_P0_24_2", 16);
iVar3 = 24;
iVar4 = 2;
iVar1 = 1200;
break;
case 154:
StringCopy(&Var2, "TORSO_P0_24_3", 16);
iVar3 = 24;
iVar4 = 3;
iVar1 = 1250;
break;
case 155:
StringCopy(&Var2, "TORSO_P0_24_4", 16);
iVar3 = 24;
iVar4 = 4;
iVar1 = 1350;
break;
case 156:
StringCopy(&Var2, "TORSO_P0_24_5", 16);
iVar3 = 24;
iVar4 = 5;
iVar1 = 1300;
break;
case 157:
StringCopy(&Var2, "TORSO_P0_24_6", 16);
iVar3 = 24;
iVar4 = 6;
iVar1 = 1380;
break;
case 158:
StringCopy(&Var2, "TORSO_P0_24_7", 16);
iVar3 = 24;
iVar4 = 7;
iVar1 = 1340;
break;
case 159:
StringCopy(&Var2, "TORSO_P0_24_8", 16);
iVar3 = 24;
iVar4 = 8;
iVar1 = 1380;
break;
case 160:
StringCopy(&Var2, "TORSO_P0_24_9", 16);
iVar3 = 24;
iVar4 = 9;
iVar1 = 1250;
break;
case 161:
StringCopy(&Var2, "TORSO_P0_25_0", 16);
iVar3 = 25;
iVar4 = 0;
iVar1 = 840;
break;
case 162:
StringCopy(&Var2, "TORSO_P0_25_1", 16);
iVar3 = 25;
iVar4 = 1;
iVar1 = 840;
break;
case 163:
StringCopy(&Var2, "TORSO_P0_25_2", 16);
iVar3 = 25;
iVar4 = 2;
iVar1 = 840;
break;
case 164:
StringCopy(&Var2, "TORSO_P0_25_3", 16);
iVar3 = 25;
iVar4 = 3;
iVar1 = 840;
break;
case 165:
StringCopy(&Var2, "TORSO_P0_25_4", 16);
iVar3 = 25;
iVar4 = 4;
iVar1 = 840;
break;
case 166:
StringCopy(&Var2, "TORSO_P0_25_5", 16);
iVar3 = 25;
iVar4 = 5;
iVar1 = 840;
break;
case 167:
StringCopy(&Var2, "TORSO_P0_25_6", 16);
iVar3 = 25;
iVar4 = 6;
iVar1 = 840;
break;
case 168:
StringCopy(&Var2, "TORSO_P0_25_7", 16);
iVar3 = 25;
iVar4 = 7;
iVar1 = 840;
break;
case 169:
StringCopy(&Var2, "TORSO_P0_26_0", 16);
iVar3 = 26;
iVar4 = 0;
break;
case 170:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 27;
iVar4 = 0;
bVar0 = true;
break;
case 171:
StringCopy(&Var2, "TORSO_P0_28_0", 16);
iVar3 = 28;
iVar4 = 0;
break;
case 172:
StringCopy(&Var2, "TORSO_P0_28_1", 16);
iVar3 = 28;
iVar4 = 1;
iVar1 = 130;
break;
case 173:
StringCopy(&Var2, "TORSO_P0_28_2", 16);
iVar3 = 28;
iVar4 = 2;
iVar1 = 110;
break;
case 174:
StringCopy(&Var2, "TORSO_P0_29_0", 16);
iVar3 = 29;
iVar4 = 0;
bVar0 = true;
break;
case 175:
StringCopy(&Var2, "TORSO_P0_30_0", 16);
iVar3 = 30;
iVar4 = 0;
iVar1 = 290;
break;
case 176:
StringCopy(&Var2, "TORSO_P0_30_1", 16);
iVar3 = 30;
iVar4 = 1;
iVar1 = 320;
break;
case 177:
StringCopy(&Var2, "TORSO_P0_31_0", 16);
iVar3 = 31;
iVar4 = 0;
iVar1 = 59;
break;
case 178:
StringCopy(&Var2, "TORSO_P0_31_1", 16);
iVar3 = 31;
iVar4 = 1;
iVar1 = 55;
break;
case 179:
StringCopy(&Var2, "TORSO_P0_31_2", 16);
iVar3 = 31;
iVar4 = 2;
iVar1 = 59;
break;
case 180:
StringCopy(&Var2, "TORSO_P0_31_3", 16);
iVar3 = 31;
iVar4 = 3;
iVar1 = 49;
break;
default:
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_215(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 3;
Global_71017[0 /*14*/].f_5 = 0;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "TORSO_P0_0_0", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 1:
StringCopy(&Var2, "TORSO_P0_0_0", 16);
iVar3 = 0;
iVar4 = 1;
break;
case 2:
StringCopy(&Var2, "TORSO_P0_0_2", 16);
iVar3 = 0;
iVar4 = 2;
iVar1 = 3500;
break;
case 3:
StringCopy(&Var2, "TORSO_P0_0_3", 16);
iVar3 = 0;
iVar4 = 3;
break;
case 4:
StringCopy(&Var2, "TORSO_P0_0_4", 16);
iVar3 = 0;
iVar4 = 4;
break;
case 5:
StringCopy(&Var2, "TORSO_P0_0_5", 16);
iVar3 = 0;
iVar4 = 5;
break;
case 6:
StringCopy(&Var2, "TORSO_P0_0_6", 16);
iVar3 = 0;
iVar4 = 6;
break;
case 7:
StringCopy(&Var2, "TORSO_P0_0_7", 16);
iVar3 = 0;
iVar4 = 7;
break;
case 8:
StringCopy(&Var2, "TORSO_P0_0_8", 16);
iVar3 = 0;
iVar4 = 8;
break;
case 9:
StringCopy(&Var2, "TORSO_P0_0_9", 16);
iVar3 = 0;
iVar4 = 9;
break;
case 10:
StringCopy(&Var2, "TORSO_P0_0_10", 16);
iVar3 = 0;
iVar4 = 10;
break;
case 11:
StringCopy(&Var2, "TORSO_P0_0_11", 16);
iVar3 = 0;
iVar4 = 11;
break;
case 12:
StringCopy(&Var2, "TORSO_P0_0_12", 16);
iVar3 = 0;
iVar4 = 12;
break;
case 13:
StringCopy(&Var2, "TORSO_P0_0_13", 16);
iVar3 = 0;
iVar4 = 13;
break;
case 14:
StringCopy(&Var2, "TORSO_P0_0_14", 16);
iVar3 = 0;
iVar4 = 14;
break;
case 15:
StringCopy(&Var2, "TORSO_P0_0_15", 16);
iVar3 = 0;
iVar4 = 15;
break;
case 16:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 1;
iVar4 = 0;
bVar0 = true;
break;
case 17:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 2;
iVar4 = 0;
iVar1 = 20;
break;
case 18:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 2;
iVar4 = 1;
iVar1 = 18;
break;
case 19:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 2;
iVar4 = 2;
iVar1 = 22;
break;
case 20:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 2;
iVar4 = 3;
iVar1 = 25;
break;
case 21:
StringCopy(&Var2, "TORSO_P0_2_4", 16);
iVar3 = 2;
iVar4 = 4;
iVar1 = 19;
break;
case 22:
StringCopy(&Var2, "TORSO_P0_2_5", 16);
iVar3 = 2;
iVar4 = 5;
iVar1 = 20;
break;
case 23:
StringCopy(&Var2, "TORSO_P0_2_6", 16);
iVar3 = 2;
iVar4 = 6;
iVar1 = 22;
break;
case 24:
StringCopy(&Var2, "TORSO_P0_2_7", 16);
iVar3 = 2;
iVar4 = 7;
iVar1 = 18;
break;
case 25:
StringCopy(&Var2, "TORSO_P0_2_8", 16);
iVar3 = 2;
iVar4 = 8;
iVar1 = 39;
break;
case 26:
StringCopy(&Var2, "TORSO_P0_2_9", 16);
iVar3 = 2;
iVar4 = 9;
iVar1 = 32;
break;
case 27:
StringCopy(&Var2, "TORSO_P0_2_10", 16);
iVar3 = 2;
iVar4 = 10;
iVar1 = 35;
break;
case 28:
StringCopy(&Var2, "TORSO_P0_2_11", 16);
iVar3 = 2;
iVar4 = 11;
iVar1 = 35;
break;
case 29:
StringCopy(&Var2, "TORSO_P0_2_12", 16);
iVar3 = 2;
iVar4 = 12;
iVar1 = 210;
break;
case 30:
StringCopy(&Var2, "TORSO_P0_2_13", 16);
iVar3 = 2;
iVar4 = 13;
iVar1 = 250;
break;
case 31:
StringCopy(&Var2, "TORSO_P0_2_14", 16);
iVar3 = 2;
iVar4 = 14;
iVar1 = 290;
break;
case 32:
StringCopy(&Var2, "TORSO_P0_2_15", 16);
iVar3 = 2;
iVar4 = 15;
iVar1 = 310;
break;
case 33:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 3;
iVar4 = 0;
bVar0 = true;
break;
case 34:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 3;
iVar4 = 1;
bVar0 = true;
break;
case 35:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 4;
iVar4 = 0;
bVar0 = true;
break;
case 36:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 0;
bVar0 = true;
break;
case 37:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 6;
iVar4 = 0;
bVar0 = true;
break;
case 38:
StringCopy(&Var2, "TORSO_P0_7_0", 16);
iVar3 = 7;
iVar4 = 0;
iVar1 = 150;
break;
case 39:
StringCopy(&Var2, "TORSO_P0_7_1", 16);
iVar3 = 7;
iVar4 = 1;
iVar1 = 160;
break;
case 40:
StringCopy(&Var2, "TORSO_P0_7_2", 16);
iVar3 = 7;
iVar4 = 2;
iVar1 = 150;
break;
case 41:
StringCopy(&Var2, "TORSO_P0_7_3", 16);
iVar3 = 7;
iVar4 = 3;
iVar1 = 150;
break;
case 42:
StringCopy(&Var2, "TORSO_P0_7_4", 16);
iVar3 = 7;
iVar4 = 4;
iVar1 = 160;
break;
case 43:
StringCopy(&Var2, "TORSO_P0_7_5", 16);
iVar3 = 7;
iVar4 = 5;
iVar1 = 160;
break;
case 44:
StringCopy(&Var2, "TORSO_P0_8_0", 16);
iVar3 = 8;
iVar4 = 0;
break;
case 45:
StringCopy(&Var2, "TORSO_P0_8_1", 16);
iVar3 = 8;
iVar4 = 1;
iVar1 = 52;
break;
case 46:
StringCopy(&Var2, "TORSO_P0_8_2", 16);
iVar3 = 8;
iVar4 = 2;
iVar1 = 52;
break;
case 47:
StringCopy(&Var2, "TORSO_P0_8_3", 16);
iVar3 = 8;
iVar4 = 3;
iVar1 = 55;
break;
case 48:
StringCopy(&Var2, "TORSO_P0_8_4", 16);
iVar3 = 8;
iVar4 = 4;
iVar1 = 55;
break;
case 49:
StringCopy(&Var2, "TORSO_P0_8_5", 16);
iVar3 = 8;
iVar4 = 5;
iVar1 = 58;
break;
case 50:
StringCopy(&Var2, "TORSO_P0_8_6", 16);
iVar3 = 8;
iVar4 = 6;
iVar1 = 58;
break;
case 51:
StringCopy(&Var2, "TORSO_P0_8_7", 16);
iVar3 = 8;
iVar4 = 7;
iVar1 = 62;
break;
case 52:
StringCopy(&Var2, "TORSO_P0_8_8", 16);
iVar3 = 8;
iVar4 = 8;
iVar1 = 65;
break;
case 53:
StringCopy(&Var2, "TORSO_P0_8_9", 16);
iVar3 = 8;
iVar4 = 9;
iVar1 = 65;
break;
case 54:
StringCopy(&Var2, "TORSO_P0_8_10", 16);
iVar3 = 8;
iVar4 = 10;
iVar1 = 68;
break;
case 55:
StringCopy(&Var2, "TORSO_P0_8_11", 16);
iVar3 = 8;
iVar4 = 11;
iVar1 = 68;
break;
case 56:
StringCopy(&Var2, "TORSO_P0_8_12", 16);
iVar3 = 8;
iVar4 = 12;
iVar1 = 55;
break;
case 57:
StringCopy(&Var2, "TORSO_P0_8_13", 16);
iVar3 = 8;
iVar4 = 13;
iVar1 = 62;
break;
case 58:
StringCopy(&Var2, "TORSO_P0_8_14", 16);
iVar3 = 8;
iVar4 = 14;
iVar1 = 58;
break;
case 59:
StringCopy(&Var2, "TORSO_P0_8_15", 16);
iVar3 = 8;
iVar4 = 15;
iVar1 = 58;
break;
default:
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_216(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 2;
Global_71017[0 /*14*/].f_5 = 0;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "HAIR_P0_0_0", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 1:
StringCopy(&Var2, "HAIR_P0_1_0", 16);
iVar3 = 1;
iVar4 = 0;
break;
case 2:
StringCopy(&Var2, "HAIR_P0_2_0", 16);
iVar3 = 2;
iVar4 = 0;
break;
case 3:
StringCopy(&Var2, "HAIR_P0_3_0", 16);
iVar3 = 3;
iVar4 = 0;
break;
case 4:
StringCopy(&Var2, "HAIR_P0_4_0", 16);
iVar3 = 4;
iVar4 = 0;
break;
case 5:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 5;
iVar4 = 0;
break;
default:
func_164(iVar7, iParam0, 6, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_217(int iParam0)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 0;
Global_71017[0 /*14*/].f_5 = 0;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 0;
break;
case 1:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 1;
break;
case 2:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 2;
break;
case 3:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 3;
break;
case 4:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 4;
break;
case 5:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 5;
break;
case 6:
StringCopy(&Var2, "NO_LABEL", 16);
iVar3 = 0;
iVar4 = 6;
break;
default:
func_164(iVar7, iParam0, 7, -1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_218()
{
Global_71017[0 /*14*/].f_1 = -1;
Global_71017[0 /*14*/].f_2 = -1;
Global_71017[0 /*14*/].f_5 = -1;
Global_71017[0 /*14*/].f_3 = -1;
Global_71017[0 /*14*/].f_4 = -1;
Global_71017[0 /*14*/].f_7 = 0;
Global_71017[0 /*14*/].f_6 = 0;
Global_71017[0 /*14*/].f_13 = -1;
Global_71017[0 /*14*/].f_12 = 0;
Global_71017[0 /*14*/] = 0;
StringCopy(&(Global_71017[0 /*14*/].f_8), "NO_LABEL", 16);
}
int func_219(int iParam0, int iParam1, int iParam2)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
int iVar4;
var uVar5;
var uVar6;
int iVar7;
var uVar8;
if (unk_0x4915F4759304D5CF(iParam0))
{
return 0;
}
iVar0 = unk_0x8F474E419F56E48D(iParam0);
Global_71017[1 /*14*/] = { func_155(iVar0, iParam1, iParam2, -1) };
if (!unk_0x05EFB6A616B6FADE(Global_71017[1 /*14*/].f_6, 0))
{
return 0;
}
if (iParam1 == 12)
{
uVar5 = { func_151(iVar0, iParam2) };
iVar2 = 0;
while (iVar2 <= 14)
{
if ((uVar5[iVar2] != -99 && iVar2 != 12) && iVar2 != 14)
{
if (!func_219(iParam0, iVar2, uVar5[iVar2]))
{
if (iVar2 == 13)
{
uVar6 = { func_148(iVar0, uVar5[iVar2]) };
iVar3 = 0;
while (iVar3 <= 8)
{
if (!func_219(iParam0, 14, uVar6[iVar3]))
{
iVar4 = 0;
while (iVar4 <= 19)
{
Global_71017[2 /*14*/] = { func_155(iVar0, 14, iVar4, -1) };
if (Global_71017[2 /*14*/].f_12 == iVar3)
{
if (func_219(iParam0, 14, iVar4))
{
if (!func_114(iVar0, iParam2, 14, iVar4, &uVar5, &(Global_71017[2 /*14*/])))
{
return 0;
}
}
}
iVar4++;
}
}
iVar3++;
}
}
else
{
iVar1 = func_139(iParam0, iVar2);
Global_71017[2 /*14*/] = { func_155(iVar0, iVar2, iVar1, -1) };
if (!func_114(iVar0, iParam2, iVar2, iVar1, &uVar5, &(Global_71017[2 /*14*/])))
{
return 0;
}
}
}
}
iVar2++;
}
return 1;
}
else if (iParam1 == 13)
{
uVar8 = { func_148(iVar0, iParam2) };
iVar7 = 0;
while (iVar7 <= 8)
{
if (!func_219(iParam0, 14, uVar8[iVar7]))
{
return 0;
}
iVar7++;
}
return 1;
}
else if (iParam1 == 14)
{
if (unk_0xD1241BB51B6FE6DA(iParam0, Global_71017[1 /*14*/].f_12) == Global_71017[1 /*14*/].f_3 && (unk_0x2FB5EBD67ABDBF18(iParam0, Global_71017[1 /*14*/].f_12) == Global_71017[1 /*14*/].f_4 || Global_71017[1 /*14*/].f_3 == -1))
{
return 1;
}
}
else if (Global_71017[1 /*14*/].f_3 == unk_0x774CB20D17C3FF03(iParam0, func_147(iParam1)) && Global_71017[1 /*14*/].f_4 == unk_0x7710E77D1959B321(iParam0, func_147(iParam1)))
{
return 1;
}
return 0;
}
void func_220(int iParam0)
{
switch (iParam0)
{
case 1:
func_221(6, 140);
func_221(7, 140);
break;
case 19:
func_221(4, 140);
break;
case 43:
func_221(6, 140);
func_221(7, 140);
break;
case 63:
func_221(10, 140);
break;
}
}
void func_221(int iParam0, int iParam1)
{
Global_88333[iParam0] = iParam1;
}
void func_222(int iParam0, var uParam1, var uParam2, var uParam3, var uParam4, var uParam5)
{
int iVar0;
int iVar1;
int iVar2;
vector3 vVar3;
vector3 vVar4;
iVar0 = 0;
iVar1 = 0;
if (unk_0xDC5D81351D6A4DDB(iParam0))
{
if (!unk_0x7112137033807390(iParam0, 0))
{
if (unk_0x5D7DFE2058701942(iParam0, 0))
{
iVar1 = unk_0xCAEB6CE71A2C7212(iParam0, 0);
*uParam4 = 2;
}
else
{
iVar2 = func_48(iParam0);
if (!unk_0x7112137033807390(Global_93000[iVar2], 0))
{
if (unk_0x588F5E48C78F1C73(Global_93000[iVar2], -1, 0))
{
vVar3 = { unk_0xE2BBD32891C18569(iParam0, true) };
vVar4 = { unk_0xE2BBD32891C18569(Global_93000[iVar2], true) };
if (unk_0x8F474E419F56E48D(Global_93000[iVar2]) == joaat("luxor2"))
{
if (vdist(vVar3, vVar4) < 10f)
{
*uParam4 = 2;
iVar1 = Global_93000[iVar2];
iVar0 = 1;
}
}
}
}
}
}
}
func_223(iParam0, iVar1, uParam1, uParam2, uParam3, uParam4, uParam5, iVar0);
}
void func_223(int iParam0, int iParam1, var uParam2, var uParam3, var uParam4, var uParam5, var uParam6, int iParam7)
{
int iVar0;
int iVar1;
vector3 vVar2;
vector3 vVar3;
int iVar4;
int iVar5;
int iVar6;
uParam2->f_97 = 0;
iVar0 = 145;
if (!unk_0x7112137033807390(iParam0, 0) && !unk_0x7112137033807390(iParam1, 0))
{
iVar0 = func_48(iParam0);
if (iVar0 > 3)
{
if (unk_0x4C9BACA8D249CB13())
{
}
return;
}
if (unk_0xAEAF59799C2F26E4(iParam1, "GetawayVehicleValid"))
{
if (unk_0x13AF6A38CAD2D5DD(iParam1, "GetawayVehicleValid"))
{
if ((Global_106070.f_9057.f_99.f_58[45] || Global_106070.f_9057.f_99.f_58[12]) || Global_106070.f_9057.f_99.f_58[34])
{
*uParam5 = 0;
Global_93000[iVar0] = 0;
return;
}
}
}
if (unk_0xE0FD180CD24C0B67(iParam0, iParam1, 0) || iParam7)
{
*uParam5 = 2;
Global_93000[iVar0] = iParam1;
}
else if (unk_0x5D7DFE2058701942(iParam0, 0))
{
iParam1 = unk_0xCAEB6CE71A2C7212(iParam0, 0);
*uParam5 = 2;
Global_93000[iVar0] = iParam1;
}
else
{
iVar1 = 0;
while (iVar1 < 68)
{
if (iParam1 == Global_70024.f_139[iVar1])
{
*uParam5 = 0;
Global_93000[iVar0] = 0;
return;
}
iVar1++;
}
if (!unk_0x7112137033807390(Global_93000[iVar0], 0))
{
if (!func_227(Global_93000[iVar0], iVar0, 0) || unk_0xE0FD180CD24C0B67(iParam0, Global_93000[iVar0], 0))
{
vVar2 = { unk_0xE2BBD32891C18569(iParam0, true) };
vVar3 = { unk_0xE2BBD32891C18569(Global_93000[iVar0], true) };
if (func_226(iParam0, Global_93000[iVar0], 0))
{
if (vdist2(vVar2, vVar3) < 22500f)
{
*uParam3 = { vVar3 };
*uParam4 = unk_0x552C823E1D2A019C(Global_93000[iVar0]);
*uParam5 = 1;
Global_93000[iVar0] = iParam1;
if (vdist2(vVar2, vVar3) < (1.5f * 1.5f))
{
}
}
}
}
else
{
*uParam5 = 0;
Global_93000[iVar0] = 0;
}
}
}
}
if (unk_0xDC5D81351D6A4DDB(iParam1))
{
*uParam2 = unk_0x8F474E419F56E48D(iParam1);
if (unk_0xF515D4FED124BAAE(iParam1, &iVar5))
{
uParam2->f_1 = unk_0x8F474E419F56E48D(iVar5);
}
uParam2->f_2 = unk_0x0ADBC1ED02016D2A(iParam1);
uParam2->f_3 = unk_0x24A1A7BF4ED94B71(iParam1);
uParam2->f_4 = unk_0x8C56266EE4A4C521(iParam1);
if (uParam2->f_4 > -1)
{
uParam2->f_9 = 1;
uParam2->f_5 = -1;
uParam2->f_6 = -1;
}
else
{
uParam2->f_9 = 0;
unk_0x249EC6991E16D61D(iParam1, &(uParam2->f_5), &(uParam2->f_6));
}
if (!unk_0x71852D4EBD08275F(*uParam2))
{
uParam2->f_10 = 1;
unk_0xD8185C6194306C6E(iParam1, &(uParam2->f_7), &(uParam2->f_8));
}
else
{
uParam2->f_10 = 0;
uParam2->f_7 = -1;
uParam2->f_8 = -1;
}
StringCopy(&(uParam2->f_27), unk_0xC5D229CE54955E47(iParam1), 16);
uParam2->f_26 = unk_0xDDB38D7590A81CE5(iParam1);
uParam2->f_88 = unk_0xCBFCD862A600B654(iParam1);
unk_0x00D0FF77BA971D60(iParam1, &(uParam2->f_84), &(uParam2->f_85), &(uParam2->f_86));
uParam2->f_87 = unk_0xBA6EC692A8E9BD41(iParam1);
unk_0x922C8705F0BA67E6(iParam1, &(uParam2->f_93), &(uParam2->f_94), &(uParam2->f_95));
if (unk_0x243FC0956CEB6D1F(iParam1, 2))
{
unk_0x2BCFB39E86340DAA(&(uParam2->f_92), 28);
}
else
{
unk_0xFA57C719261AA55D(&(uParam2->f_92), 28);
}
if (unk_0x243FC0956CEB6D1F(iParam1, 3))
{
unk_0x2BCFB39E86340DAA(&(uParam2->f_92), 29);
}
else
{
unk_0xFA57C719261AA55D(&(uParam2->f_92), 29);
}
if (unk_0x243FC0956CEB6D1F(iParam1, 0))
{
unk_0x2BCFB39E86340DAA(&(uParam2->f_92), 30);
}
else
{
unk_0xFA57C719261AA55D(&(uParam2->f_92), 30);
}
if (unk_0x243FC0956CEB6D1F(iParam1, 1))
{
unk_0x2BCFB39E86340DAA(&(uParam2->f_92), 31);
}
else
{
unk_0xFA57C719261AA55D(&(uParam2->f_92), 31);
}
uParam2->f_89 = unk_0x9373D3C23637D009(iParam1);
uParam2->f_90 = unk_0x8342B65392C8BC37(iParam1);
iVar4 = 0;
while (iVar4 < 12)
{
uParam2->f_11[iVar4] = unk_0xED6D3EA61B44622B(iParam1, iVar4 + 1);
iVar4++;
}
if (unk_0xEF6267624B1C9336(iParam1, 0))
{
iVar6 = unk_0x392DF1C78010FB0C(iParam1);
if (iVar6 == 0 || iVar6 == 5)
{
uParam2->f_24 = 1;
}
else
{
uParam2->f_24 = 0;
}
}
else
{
uParam2->f_24 = 0;
}
if (iParam0 == unk_0xA19140A5C42D8715())
{
uParam2->f_25 = unk_0x7D8590E7AD7006E8();
}
func_225(&iParam1, &(uParam2->f_31), &(uParam2->f_81));
uParam2->f_96 = unk_0xA5F7E1FA4E52A28B(iParam1);
uParam2->f_97 = func_224(iParam1);
*uParam6 = -1;
switch (iVar0)
{
case 0:
if (Global_106070.f_32605.f_69[0 /*78*/].f_66 == unk_0x8F474E419F56E48D(iParam1))
{
*uParam6 = 12;
}
break;
case 1:
if (Global_106070.f_32605.f_69[1 /*78*/].f_66 == unk_0x8F474E419F56E48D(iParam1))
{
*uParam6 = 13;
}
break;
case 2:
if (Global_106070.f_32605.f_69[2 /*78*/].f_66 == unk_0x8F474E419F56E48D(iParam1))
{
*uParam6 = 14;
}
break;
}
}
else
{
*uParam5 = 0;
*uParam3 = { 0f, 0f, 0f };
*uParam4 = 0f;
*uParam2 = 0;
uParam2->f_1 = 0;
uParam2->f_2 = 0f;
uParam2->f_3 = 0;
uParam2->f_4 = 0;
uParam2->f_5 = 0;
uParam2->f_6 = 0;
uParam2->f_7 = 0;
uParam2->f_8 = 0;
uParam2->f_9 = 0;
uParam2->f_10 = 0;
iVar4 = 0;
while (iVar4 < uParam2->f_11)
{
uParam2->f_11[iVar4] = 0;
iVar4++;
}
uParam2->f_24 = 0;
uParam2->f_25 = 0;
*uParam5 = 0;
*uParam6 = -1;
uParam2->f_96 = 0f;
}
}
int func_224(int iParam0)
{
int iVar0;
if (unk_0xDC5D81351D6A4DDB(iParam0) && unk_0x1095F403F52B42E1(iParam0, 0))
{
iVar0 = 0;
while (iVar0 < 9)
{
if (unk_0xDC5D81351D6A4DDB(Global_90658[iVar0]) && unk_0x1095F403F52B42E1(Global_90658[iVar0], 0))
{
if (Global_90658[iVar0] == iParam0 && unk_0x8F474E419F56E48D(Global_90658[iVar0]) == unk_0x8F474E419F56E48D(iParam0))
{
return 1;
}
}
iVar0++;
}
}
return 0;
}
int func_225(int iParam0, var uParam1, var uParam2)
{
int iVar0;
int iVar1;
if (!unk_0x1095F403F52B42E1(*iParam0, 0))
{
return 0;
}
if (unk_0x857E88DF0C8EDB8B(*iParam0) == 0)
{
return 0;
}
iVar0 = 0;
while (iVar0 < *uParam1)
{
iVar1 = iVar0;
if ((((iVar1 == 17 || iVar1 == 18) || iVar1 == 19) || iVar1 == 20) || iVar1 == 21)
{
(*uParam1)[iVar0] = 0;
if (unk_0x9E68AB02E7DC3B39(*iParam0, iVar1))
{
(*uParam1)[iVar0] = 1;
}
}
else if (iVar1 == 22)
{
if (unk_0x9E68AB02E7DC3B39(*iParam0, iVar1))
{
switch (unk_0x3DFF319A831E0CDB(*iParam0))
{
case 255:
(*uParam1)[iVar0] = 1;
break;
case 0:
(*uParam1)[iVar0] = 2;
break;
case 1:
(*uParam1)[iVar0] = 3;
break;
case 2:
(*uParam1)[iVar0] = 4;
break;
case 3:
(*uParam1)[iVar0] = 5;
break;
case 4:
(*uParam1)[iVar0] = 6;
break;
case 5:
(*uParam1)[iVar0] = 7;
break;
case 6:
(*uParam1)[iVar0] = 8;
break;
case 7:
(*uParam1)[iVar0] = 9;
break;
case 8:
(*uParam1)[iVar0] = 10;
break;
case 9:
(*uParam1)[iVar0] = 11;
break;
case 10:
(*uParam1)[iVar0] = 12;
break;
case 11:
(*uParam1)[iVar0] = 13;
break;
case 12:
(*uParam1)[iVar0] = 14;
break;
case 13:
(*uParam1)[iVar0] = 15;
break;
}
}
else
{
(*uParam1)[iVar0] = 0;
}
}
else
{
(*uParam1)[iVar0] = unk_0x22D95AF01E737CA1(*iParam0, iVar0) + 1;
if (iVar0 == 23)
{
(*uParam2)[0] = unk_0xB9A77CDBB0A3A5D8(*iParam0, iVar0);
}
else if (iVar0 == 24)
{
(*uParam2)[1] = unk_0xB9A77CDBB0A3A5D8(*iParam0, iVar0);
}
}
iVar0++;
}
return 1;
}
int func_226(int iParam0, int iParam1, int iParam2)
{
int iVar0;
if (unk_0xE0FD180CD24C0B67(iParam0, iParam1, iParam2))
{
iVar0 = unk_0x8F474E419F56E48D(iParam1);
if (unk_0x71852D4EBD08275F(iVar0) || (iVar0 == joaat("submersible") || iVar0 == joaat("submersible2")))
{
if (unk_0x4374EED90C523366(iParam1))
{
return 0;
}
return 1;
}
if ((unk_0xCA8C103FCD316F89(iVar0) || unk_0x7C197233F79C2CB8(iVar0)) || iVar0 == joaat("blimp"))
{
if (unk_0x26D28D230F871E8D(iParam1))
{
return 0;
}
return 1;
}
return 1;
}
return 0;
}
int func_227(int iParam0, int iParam1, bool bParam2)
{
int iVar0;
char* sVar1;
int iVar2;
if (!unk_0xDC5D81351D6A4DDB(iParam0) || !unk_0x1095F403F52B42E1(iParam0, 0))
{
return 0;
}
iVar0 = 0;
while (func_228(iParam1, iVar0, &sVar1, &iVar2))
{
if (!bParam2 || unk_0x05EFB6A616B6FADE(Global_106070.f_7201[iVar2], 0))
{
if (unk_0xFB166837ACE44C44(&sVar1, iParam0))
{
return 1;
}
}
iVar0++;
}
return 0;
}
int func_228(int iParam0, int iParam1, char* sParam2, int iParam3)
{
StringCopy(sParam2, "", 32);
switch (iParam0)
{
case 0:
if (iParam1 == 0)
{
StringCopy(sParam2, "Michael - Beverly Hills", 32);
*iParam3 = 0;
return 1;
}
else if (iParam1 == 1)
{
StringCopy(sParam2, "Trevor - Countryside", 32);
*iParam3 = 1;
return 1;
}
break;
case 1:
if (iParam1 == 0)
{
StringCopy(sParam2, "Franklin - Aunt", 32);
*iParam3 = 5;
return 1;
}
else if (iParam1 == 1)
{
StringCopy(sParam2, "Franklin - Hills", 32);
*iParam3 = 6;
return 1;
}
break;
case 2:
if (iParam1 == 0)
{
StringCopy(sParam2, "Trevor - Countryside", 32);
*iParam3 = 2;
return 1;
}
else if (iParam1 == 1)
{
StringCopy(sParam2, "Trevor - City", 32);
*iParam3 = 3;
return 1;
}
else if (iParam1 == 2)
{
StringCopy(sParam2, "Trevor - Stripclub", 32);
*iParam3 = 4;
return 1;
}
break;
}
return 0;
}
void func_229(var uParam0, int iParam1)
{
switch (iParam1)
{
case 17:
func_230(uParam0, 0, 12);
break;
case 19:
func_230(uParam0, 1, 13);
break;
case 29:
func_230(uParam0, 1, 14);
break;
case 30:
func_230(uParam0, 2, 15);
func_230(uParam0, 1, 29);
break;
case 32:
func_230(uParam0, 1, 16);
func_230(uParam0, 0, 17);
break;
case 39:
func_230(uParam0, 0, 21);
func_230(uParam0, 1, 20);
break;
case 31:
func_230(uParam0, 0, 18);
break;
case 20:
func_230(uParam0, 2, 22);
break;
case 66:
func_230(uParam0, 1, 23);
break;
case 68:
func_230(uParam0, 1, 24);
break;
case 70:
func_230(uParam0, 1, 67);
break;
case 8:
func_230(uParam0, 1, 25);
func_230(uParam0, 2, 26);
break;
case 67:
func_230(uParam0, 1, 27);
break;
case 9:
func_230(uParam0, 2, 28);
break;
case 38:
func_230(uParam0, 2, 30);
func_230(uParam0, 1, 19);
break;
case 83:
func_230(uParam0, 2, 33);
break;
case 45:
func_230(uParam0, 1, 35);
break;
case 64:
func_230(uParam0, 0, 36);
func_230(uParam0, 1, 37);
break;
case 91:
func_230(uParam0, 0, 41);
break;
case 42:
func_230(uParam0, 0, 58);
Global_92701[0 /*98*/] = 0;
func_230(uParam0, 2, 59);
Global_92701[2 /*98*/] = 0;
break;
case 41:
func_230(uParam0, 1, 42);
func_230(uParam0, 2, 42);
break;
case 15:
func_230(uParam0, 0, 46);
func_230(uParam0, 1, 47);
break;
case 16:
func_230(uParam0, 0, 48);
break;
case 48:
func_230(uParam0, 1, 50);
func_230(uParam0, 2, 51);
break;
case 74:
func_230(uParam0, 0, 52);
func_230(uParam0, 1, 66);
break;
case 76:
func_230(uParam0, 1, 53);
func_230(uParam0, 2, 54);
func_230(uParam0, 0, 62);
break;
case 75:
func_230(uParam0, 0, 61);
func_230(uParam0, 1, 31);
break;
case 69:
func_230(uParam0, 1, 63);
break;
case 84:
func_230(uParam0, 0, 68);
func_230(uParam0, 2, 69);
break;
case 85:
func_230(uParam0, 0, 64);
func_230(uParam0, 2, 65);
break;
case 93:
func_230(uParam0, 1, 38);
func_230(uParam0, 2, 39);
break;
case 11:
func_230(uParam0, 2, 55);
break;
case 77:
func_230(uParam0, 1, 56);
func_230(uParam0, 2, 57);
break;
default:
break;
}
}
int func_230(var uParam0, int iParam1, int iParam2)
{
int iVar0;
struct<98> Var1;
var uVar2;
var uVar3;
var uVar4;
var uVar5;
if (!unk_0x05EFB6A616B6FADE(Global_106070.f_9057.f_99.f_219[0], 9))
{
iVar0 = Global_106070.f_18505[iParam1];
if (iVar0 == 11)
{
return 0;
}
if ((iVar0 == 8 || iVar0 == 9) || iVar0 == 10)
{
return 0;
}
}
Global_106070.f_18505[iParam1] = iParam2;
uParam0->f_2276[iParam1] = func_246();
if (!func_245(iParam2, &(uParam0->f_2280[iParam1 /*3*/]), &(uParam0->f_2290[iParam1])))
{
return 0;
}
if (!func_244(uParam0->f_2280[iParam1 /*3*/], 0f, 0f, 0f, 0))
{
if (!func_244(Global_91736[iParam2 /*3*/], 0f, 0f, 0f, 0))
{
Var1.f_11 = 12;
Var1.f_31 = 49;
Var1.f_81 = 2;
if (func_231(iParam1, iParam2, &Var1, &uVar2, &uVar3, &uVar4, &uVar5))
{
Global_92701[iParam1 /*98*/] = { Var1 };
}
}
}
uParam0->f_2294[iParam1] = 0;
uParam0->f_2298[iParam1 /*3*/] = { 0f, 0f, 0f };
uParam0->f_2308[iParam1] = 0;
return 1;
}
int func_231(int iParam0, int iParam1, var uParam2, var uParam3, var uParam4, var uParam5, var uParam6)
{
uParam2->f_3 = 1000;
uParam2->f_1 = 0;
uParam2->f_84 = 255;
uParam2->f_85 = 255;
uParam2->f_86 = 255;
switch (iParam1)
{
case 5:
*uParam2 = { Global_92701[iParam0 /*98*/] };
if (Global_92996[iParam0] != 2)
{
if (unk_0x0C4DF083566CCC1C(Global_93004[iParam0 /*3*/], -829.7478f, 192.117f, 76.73248f, -827.1384f, 153.8595f, 59.96172f, 33.25f, 0, true))
{
if (Global_92996[iParam0] == 1)
{
*uParam3 = { Global_93004[iParam0 /*3*/] - Global_106070.f_2355.f_539.f_2280[iParam0 /*3*/] };
*uParam4 = (Global_93014[iParam0] - Global_106070.f_2355.f_539.f_2290[iParam0]);
if (vmag2(*uParam3) > (5f * 5f))
{
*uParam3 = { 0f, 0f, 0f };
*uParam4 = 0f;
return 0;
}
}
}
*uParam3 = { Global_93004[iParam0 /*3*/] - Global_106070.f_2355.f_539.f_2280[iParam0 /*3*/] };
*uParam4 = (Global_93014[iParam0] - Global_106070.f_2355.f_539.f_2290[iParam0]);
if (vmag2(*uParam3) < (0.5f * 0.5f))
{
*uParam3 = { *uParam3 * Vector(1.5f, 1.5f, 1.5f) };
}
}
else
{
*uParam3 = { 0f, 0f, 0f };
*uParam4 = 0f;
}
return 1;
break;
case 6:
*uParam2 = { Global_92701[iParam0 /*98*/] };
if (Global_92996[iParam0] != 2)
{
*uParam3 = { Global_93004[iParam0 /*3*/] - Global_106070.f_2355.f_539.f_2280[iParam0 /*3*/] };
*uParam4 = (Global_93014[iParam0] - Global_106070.f_2355.f_539.f_2290[iParam0]);
if (vmag2(*uParam3) < (0.5f * 0.5f))
{
*uParam3 = { *uParam3 * Vector(1.5f, 1.5f, 1.5f) };
}
}
else
{
*uParam3 = { 0f, 0f, 0f };
*uParam4 = 0f;
}
return 1;
break;
case 7:
*uParam2 = { Global_92701[iParam0 /*98*/] };
if (Global_92996[iParam0] != 2)
{
*uParam3 = { Global_93004[iParam0 /*3*/] - Global_106070.f_2355.f_539.f_2280[iParam0 /*3*/] };
*uParam4 = (Global_93014[iParam0] - Global_106070.f_2355.f_539.f_2290[iParam0]);
if (vmag2(*uParam3) < (0.5f * 0.5f))
{
*uParam3 = { *uParam3 * Vector(1.5f, 1.5f, 1.5f) };
}
}
else
{
*uParam3 = { 0f, 0f, 0f };
*uParam4 = 0f;
}
return 1;
break;
case 11:
func_233(iParam0, uParam2, 0);
*uParam3 = { 37.43f, -23.81f, 0f };
*uParam4 = 127f;
return 1;
break;
case 8:
uParam2->f_97 = 0;
*uParam2 = joaat("mesa");
*uParam3 = { Vector(28.826f, -1277.56f, -90.961f) - Vector(28.3203f, -1324.195f, -90.0089f) };
*uParam4 = (1.27f - 194.1887f);
return 1;
break;
case 9:
return func_231(iParam0, 8, uParam2, uParam3, uParam4, uParam5, uParam6);
break;
case 10:
return func_231(iParam0, 8, uParam2, uParam3, uParam4, uParam5, uParam6);
break;
case 13:
func_233(iParam0, uParam2, 0);
*uParam5 = { 0f, 5f, 0f };
*uParam6 = 5f;
return 1;
break;
case 14:
func_233(iParam0, uParam2, 2);
uParam2->f_91 = 1;
*uParam5 = { 0f, 25f, 0f };
*uParam6 = 25f;
return 1;
break;
case 15:
uParam2->f_97 = 0;
*uParam2 = joaat("frogger");
uParam2->f_5 = 34;
uParam2->f_6 = 34;
uParam2->f_7 = 0;
uParam2->f_8 = 0;
uParam2->f_9 = 0;
uParam2->f_11[0] = 1;
uParam2->f_11[1] = 1;
uParam2->f_11[2] = 1;
uParam2->f_11[3] = 1;
uParam2->f_11[4] = 1;
uParam2->f_11[5] = 1;
uParam2->f_11[6] = 1;
uParam2->f_11[7] = 1;
uParam2->f_11[8] = 1;
*uParam5 = { 0f, 50f, 0f };
*uParam6 = 15f;
return 1;
break;
case 55:
uParam2->f_97 = 0;
*uParam2 = joaat("mesa");
*uParam3 = { Vector(4.8006f, -2965.499f, 782.1644f) - Vector(4.0205f, -2975.341f, 798.4536f) };
*uParam4 = (246.1684f - 90f);
return 1;
break;
case 56:
func_233(iParam0, uParam2, 0);
*uParam5 = { 0f, 20f, 0f };
*uParam6 = 20f;
return 1;
break;
case 57:
uParam2->f_97 = 0;
*uParam2 = joaat("penumbra");
*uParam3 = { Vector(28.764f, -1431.464f, 66.028f) - Vector(28.2954f, -1351.52f, 37.5988f) };
*uParam4 = (141.28f - 90.0339f);
return 1;
break;
case 12:
uParam2->f_97 = 0;
*uParam2 = joaat("taxi");
uParam2->f_2 = 0f;
uParam2->f_4 = 0;
uParam2->f_9 = 1;
*uParam5 = { 0f, 5f, 0f };
*uParam6 = 5f;
return 1;
break;
case 16:
func_233(iParam0, uParam2, 0);
*uParam5 = { 0f, 15f, 0f };
*uParam6 = 5f;
return 1;
break;
case 17:
func_233(iParam0, uParam2, 0);
*uParam5 = { 0f, 25f, 0f };
*uParam6 = 15f;
return 1;
break;
case 18:
func_233(iParam0, uParam2, 0);
*uParam5 = { 0f, 25f, 0f };
*uParam6 = 25f;
return 1;
break;
case 19:
func_233(iParam0, uParam2, 0);
*uParam5 = { 0f, 15f, 0f };
*uParam6 = 10f;
return 1;
break;
case 20:
func_233(iParam0, uParam2, 0);
*uParam5 = { 0f, 25f, 0f };
*uParam6 = 25f;
return 1;
break;
case 23:
return func_231(iParam0, 208, uParam2, uParam3, uParam4, uParam5, uParam6);
break;
case 24:
func_233(iParam0, uParam2, 0);
*uParam5 = { 0f, 25f, 0f };
*uParam6 = 25f;
return 1;
break;
case 67:
func_233(iParam0, uParam2, 1);
uParam2->f_91 = 1;
*uParam3 = { 21.6401f, 38.5601f, 1.9708f };
*uParam4 = -84f;
return 1;
break;
case 58:
func_233(iParam0, uParam2, 0);
*uParam5 = { 0f, 20f, 0f };
*uParam6 = 15f;
return 1;
break;
case 59:
func_233(iParam0, uParam2, 0);
*uParam5 = { 0f, 20f, 0f };
*uParam6 = 15f;
return 1;
break;
case 60:
func_233(iParam0, uParam2, 0);
*uParam5 = { 0f, 20f, 0f };
*uParam6 = 15f;
return 1;
break;
case 22:
uParam2->f_97 = 0;
*uParam2 = joaat("phantom");
*uParam5 = { 0f, 50f, 0f };
*uParam6 = 20f;
return 1;
break;
case 74:
func_233(iParam0, uParam2, 1);
uParam2->f_91 = 2;
*uParam5 = { 0f, 25f, 0f };
*uParam6 = 10f;
return 1;
break;
case 38:
func_233(iParam0, uParam2, 2);
uParam2->f_91 = 2;
*uParam5 = { 0f, 25f, 0f };
*uParam6 = 15f;
return 1;
break;
case 41:
func_233(iParam0, uParam2, 0);
*uParam3 = { -2.72f, 0.45f, 1f };
*uParam4 = -137f;
return 1;
break;
case 25:
uParam2->f_97 = 0;
*uParam2 = joaat("blista");
*uParam3 = { Vector(29.17f, -1417.047f, 54.081f) - Vector(28.2915f, -1464.68f, 72.2278f) };
*uParam4 = (0.72f - 156.8827f);
return 1;
break;
case 27:
uParam2->f_97 = 0;
*uParam2 = joaat("seminole");
*uParam3 = { Vector(24.9f, -938.8f, 792.3f) - Vector(24.2312f, -906f, 763f) };
*uParam4 = (2.23f - 7.2736f);
return 1;
break;
case 26:
uParam2->f_97 = 0;
*uParam2 = joaat("peyote");
*uParam3 = { Vector(28.701f, -1090.07f, 306.036f) - Vector(28.3684f, -1120.786f, 257.9167f) };
*uParam4 = (-1f - 97.2736f);
return 1;
break;
case 40:
func_232(iParam0, uParam2, 1);
uParam2->f_91 = 1;
*uParam3 = { 16.5182f, -8.5576f, -2.3291f };
*uParam4 = 174.24f;
return 1;
break;
case 28:
uParam2->f_97 = 0;
*uParam2 = joaat("polmav");
uParam2->f_11[0] = 1;
uParam2->f_11[1] = 1;
uParam2->f_11[2] = 1;
uParam2->f_11[3] = 1;
uParam2->f_11[4] = 1;
uParam2->f_11[5] = 1;
uParam2->f_11[6] = 1;
uParam2->f_11[7] = 1;
uParam2->f_11[8] = 1;
*uParam5 = { 0f, 20f, 0f };
*uParam6 = 25f;
return 1;
break;
case 234:
func_232(iParam0, uParam2, 1);
uParam2->f_91 = 1;
*uParam3 = { 16.5182f, -8.5576f, -2.3291f };
*uParam4 = 174.24f;
return 1;
break;
case 75:
func_233(iParam0, uParam2, 0);
*uParam5 = { 2.5f, 20f, 0f };
*uParam6 = 15f;
return 1;
break;
case 76:
func_233(iParam0, uParam2, 0);
*uParam5 = { 2.5f, 20f, 0f };
*uParam6 = 15f;
return 1;
break;
case 42:
uParam2->f_97 = 0;
*uParam2 = joaat("mesa");
*uParam3 = { Vector(4.8006f, -2965.499f, 782.1644f) - Vector(4.0205f, -2975.341f, 798.4536f) };
*uParam4 = (246.1684f - 90f);
return 1;
break;
case 43:
uParam2->f_97 = 0;
*uParam2 = joaat("mesa");
*uParam3 = { Vector(5.4446f, -2912.043f, 659.5297f) - Vector(5.0589f, -2916.479f, 709.0244f) };
*uParam4 = (247.4806f - 355.326f);
return 1;
break;
case 44:
uParam2->f_97 = 0;
*uParam2 = joaat("sadler");
*uParam3 = { Vector(5.1176f, -2936.843f, 656.9753f) - Vector(5.1337f, -2917.325f, 643.5248f) };
*uParam4 = (253.776f - 334.1068f);
return 1;
break;
case 45:
uParam2->f_97 = 0;
*uParam2 = joaat("mixer");
*uParam3 = { Vector(5.681f, -2769.795f, 593.033f) - Vector(5.0558f, -2819.085f, 594.4415f) };
*uParam4 = (2.62f - 299.0519f);
return 1;
break;
case 47:
uParam2->f_97 = 0;
*uParam2 = joaat("cavalcade");
uParam2->f_5 = 0;
uParam2->f_6 = 0;
uParam2->f_7 = 0;
uParam2->f_8 = 0;
uParam2->f_9 = 0;
StringCopy(&(uParam2->f_27), "22LJK483", 16);
*uParam3 = { 0f, 0f, 0f };
*uParam4 = 0f;
*uParam5 = { 0f, 10f, 0f };
*uParam6 = 15f;
return 1;
break;
case 49:
func_233(iParam0, uParam2, 0);
*uParam5 = { -1.5f, 35f, 3f };
*uParam6 = 15f;
return 1;
break;
case 48:
func_232(iParam0, uParam2, 1);
uParam2->f_91 = 1;
*uParam3 = { 3.8721f, -5.9568f, 0f };
*uParam4 = (164.2466f - 180f);
return 1;
break;
case 50:
func_233(iParam0, uParam2, 0);
*uParam5 = { 0f, 10f, 0f };
*uParam6 = 15f;
return 1;
break;
case 51:
uParam2->f_97 = 0;
*uParam2 = joaat("stretch");
*uParam3 = { Vector(28.1755f, -550.2679f, -1170.72f) - Vector(30.2361f, -526.9999f, -1257.5f) };
*uParam4 = (310.4708f - 220.9554f);
return 1;
break;
case 52:
func_233(iParam0, uParam2, 0);
*uParam5 = { 0f, 20f, 0f };
*uParam6 = 12.5f;
return 1;
break;
case 66:
func_233(iParam0, uParam2, 0);
*uParam5 = { 0f, 20f, 0f };
*uParam6 = 12.5f;
return 1;
break;
case 61:
func_233(iParam0, uParam2, 0);
*uParam5 = { 0f, 20f, 0f };
*uParam6 = 25f;
return 1;
break;
case 62:
func_233(iParam0, uParam2, 0);
*uParam5 = { 0f, 20f, 0f };
*uParam6 = 25f;
return 1;
break;
case 63:
func_233(iParam0, uParam2, 0);
*uParam3 = { -2.9117f, -15.0499f, -0.3468f };
*uParam4 = -139.9751f;
return 1;
break;
case 64:
func_233(iParam0, uParam2, 0);
*uParam5 = { 0f, 20f, 0f };
*uParam6 = 15f;
return 1;
break;
case 69:
uParam2->f_97 = 0;
*uParam2 = joaat("prairie");
*uParam3 = { Vector(36.5734f, -85.1799f, -737.1358f) - Vector(54f, 111f, -852f) };
*uParam4 = (64.1848f - 180f);
return 1;
break;
case 65:
case 54:
uParam2->f_97 = 0;
*uParam2 = joaat("frogger2");
uParam2->f_5 = 40;
uParam2->f_6 = 0;
uParam2->f_7 = 0;
uParam2->f_8 = 0;
uParam2->f_9 = 0;
uParam2->f_11[0] = 1;
uParam2->f_11[1] = 1;
uParam2->f_11[2] = 1;
uParam2->f_11[3] = 1;
uParam2->f_11[4] = 1;
uParam2->f_11[5] = 1;
uParam2->f_11[6] = 1;
uParam2->f_11[7] = 1;
uParam2->f_11[8] = 1;
uParam2->f_89 = 1;
if (iParam1 == 54)
{
*uParam3 = { 5.5414f, -6.6035f, 1.0473f };
*uParam4 = -83.2547f;
}
if (iParam1 == 65)
{
*uParam3 = { 5.7209f, -12.3958f, 1.0746f };
*uParam4 = -152.2593f;
}
return 1;
break;
case 112:
func_232(iParam0, uParam2, 1);
uParam2->f_91 = 1;
*uParam3 = { unk_0xF59B9063EDAC7451(-5f, 5f), unk_0xF59B9063EDAC7451(-5f, 5f), 0f };
*uParam4 = unk_0xF59B9063EDAC7451(-180f, 180f);
return 1;
break;
case 113:
if (func_231(iParam0, 112, uParam2, uParam3, uParam4, uParam5, uParam6))
{
*uParam3 = { unk_0xF59B9063EDAC7451(-5f, 5f), unk_0xF59B9063EDAC7451(-5f, 5f), 0f };
*uParam4 = unk_0xF59B9063EDAC7451(-180f, 180f);
return 1;
}
break;
case 118:
uParam2->f_97 = 0;
*uParam2 = joaat("scorcher");
uParam2->f_2 = 0f;
uParam2->f_4 = 0;
uParam2->f_9 = 1;
*uParam3 = { 0f, 0f, 0f };
*uParam4 = 0f;
*uParam5 = { 1f, 12.5f, 0f };
*uParam6 = 5f;
return 1;
break;
case 119:
if (func_231(iParam0, 118, uParam2, uParam3, uParam4, uParam5, uParam6))
{
*uParam5 = { 5f, 20f, 0f };
*uParam6 = 5f;
return 1;
}
break;
case 120:
if (func_231(iParam0, 118, uParam2, uParam3, uParam4, uParam5, uParam6))
{
*uParam5 = { 0f, 30f, 0f };
*uParam6 = 8f;
return 1;
}
break;
case 173:
uParam2->f_97 = 0;
*uParam2 = joaat("cruiser");
*uParam3 = { 0f, 0f, 0f };
*uParam4 = 0.1f;
*uParam5 = { 0.1f, 0.1f, 0.1f };
*uParam6 = 0.1f;
return 1;
break;
case 114:
func_232(iParam0, uParam2, 1);
uParam2->f_91 = 1;
*uParam3 = { -1.9002f, 1.205f, -0.3537f };
*uParam4 = -180f;
return 1;
break;
case 105:
func_233(iParam0, uParam2, 1);
*uParam5 = { 0f, 0.1f, 0f };
*uParam6 = 0.5f;
return 1;
break;
case 106:
return func_231(iParam0, 105, uParam2, uParam3, uParam4, uParam5, uParam6);
break;
case 107:
return func_231(iParam0, 105, uParam2, uParam3, uParam4, uParam5, uParam6);
break;
case 98:
func_232(iParam0, uParam2, 1);
uParam2->f_91 = 1;
*uParam3 = { 0f, 0f, 0f };
*uParam4 = 0.1f;
*uParam5 = { 0.1f, 0.1f, 0.1f };
*uParam6 = 0.1f;
return 1;
break;
case 99:
func_232(iParam0, uParam2, 1);
uParam2->f_91 = 1;
*uParam3 = { 0f, 0f, 0f };
*uParam4 = 0f;
*uParam5 = { 0f, 0f, 0f };
*uParam6 = 0f;
return 1;
break;
case 100:
return func_231(iParam0, 99, uParam2, uParam3, uParam4, uParam5, uParam6);
break;
case 101:
return func_231(iParam0, 99, uParam2, uParam3, uParam4, uParam5, uParam6);
break;
case 102:
return func_231(iParam0, 99, uParam2, uParam3, uParam4, uParam5, uParam6);
break;
case 123:
func_233(iParam0, uParam2, 0);
*uParam3 = { 3.2267f, 1.0966f, -0.354f };
*uParam4 = -31.73f;
return 1;
break;
case 125:
func_233(iParam0, uParam2, 0);
*uParam3 = { -13.7322f, 1.8783f, 1.0593f };
*uParam4 = 55.3652f;
return 1;
break;
case 133:
uParam2->f_97 = 0;
*uParam2 = joaat("tropic");
uParam2->f_2 = 0f;
uParam2->f_4 = 0;
uParam2->f_9 = 1;
*uParam3 = { 0f, 0f, 0f };
*uParam4 = 0f;
uParam2->f_11[0] = 0;
uParam2->f_11[1] = 0;
uParam2->f_11[2] = 1;
uParam2->f_11[3] = 0;
uParam2->f_11[4] = 0;
uParam2->f_11[5] = 1;
uParam2->f_11[6] = 1;
uParam2->f_11[7] = 1;
uParam2->f_11[8] = 1;
*uParam5 = { 0f, 20f, 0f };
*uParam6 = 15f;
return 1;
break;
case 89:
case 90:
case 127:
func_232(iParam0, uParam2, 1);
uParam2->f_91 = 1;
*uParam5 = { 0f, 0f, 0f };
*uParam6 = 0.1f;
return 1;
break;
case 91:
func_233(iParam0, uParam2, 0);
*uParam3 = { 15.4538f, -8.711f, 5.79f };
*uParam4 = 2.4942f;
return 1;
break;
case 93:
if (func_231(iParam0, 91, uParam2, uParam3, uParam4, uParam5, uParam6))
{
*uParam3 = { -8.1f, -9.01f, 0.4439f };
*uParam4 = 94.03f;
return 1;
}
break;
case 121:
func_233(iParam0, uParam2, 0);
*uParam3 = { 18.8468f, 40.7721f, 0f };
*uParam4 = -116.3936f;
return 1;
break;
case 115:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(43.517f, -33.7052f, -531.6035f) - Vector(45.6141f, -21.87f, -511.73f) };
*uParam4 = ((177.259f - 180f) - 69f);
return 1;
break;
case 116:
func_233(iParam0, uParam2, 0);
*uParam3 = { 1.7826f, 12.2098f, -0.6964f };
*uParam4 = -96.0001f;
return 1;
break;
case 117:
func_233(iParam0, uParam2, 0);
*uParam3 = { 11.8705f, -1.4684f, -1.6487f };
*uParam4 = -125.8331f;
return 1;
break;
case 94:
func_233(iParam0, uParam2, 0);
*uParam3 = { -13.1578f, 16.3962f, 0.6396f };
*uParam4 = -177f;
return 1;
break;
case 96:
func_233(iParam0, uParam2, 0);
*uParam3 = { -21.0518f, 0.5037f, 0.4091f };
*uParam4 = -83.1262f;
return 1;
break;
case 108:
func_233(iParam0, uParam2, 0);
*uParam3 = { 10.8971f, 2.0809f, -0.7983f };
*uParam4 = -150.9417f;
return 1;
break;
case 109:
func_233(iParam0, uParam2, 0);
*uParam3 = { 79.9901f, -52.83f, -0.3533f };
*uParam4 = 44.7231f;
return 1;
break;
case 135:
func_232(iParam0, uParam2, 1);
uParam2->f_91 = 1;
*uParam3 = { unk_0xF59B9063EDAC7451(-5f, 5f), unk_0xF59B9063EDAC7451(-5f, 5f), 0f };
*uParam4 = unk_0xF59B9063EDAC7451(-180f, 180f);
return 1;
break;
case 136:
if (func_231(iParam0, 135, uParam2, uParam3, uParam4, uParam5, uParam6))
{
*uParam3 = { unk_0xF59B9063EDAC7451(-5f, 5f), unk_0xF59B9063EDAC7451(-5f, 5f), 0f };
*uParam4 = unk_0xF59B9063EDAC7451(-180f, 180f);
return 1;
}
break;
case 137:
if (func_231(iParam0, 135, uParam2, uParam3, uParam4, uParam5, uParam6))
{
*uParam3 = { unk_0xF59B9063EDAC7451(-5f, 5f), unk_0xF59B9063EDAC7451(-5f, 5f), 0f };
*uParam4 = unk_0xF59B9063EDAC7451(-180f, 180f);
return 1;
}
break;
case 138:
if (func_231(iParam0, 135, uParam2, uParam3, uParam4, uParam5, uParam6))
{
*uParam3 = { unk_0xF59B9063EDAC7451(-5f, 5f), unk_0xF59B9063EDAC7451(-5f, 5f), 0f };
*uParam4 = unk_0xF59B9063EDAC7451(-180f, 180f);
return 1;
}
break;
case 139:
if (func_231(iParam0, 135, uParam2, uParam3, uParam4, uParam5, uParam6))
{
*uParam3 = { 2.4845f, 2.3286f, -0.383f };
*uParam4 = -31.4884f;
return 1;
}
break;
case 140:
if (func_231(iParam0, 142, uParam2, uParam3, uParam4, uParam5, uParam6))
{
*uParam5 = { 0f, 15f, 0f };
*uParam6 = 10f;
return 1;
}
break;
case 141:
if (func_231(iParam0, 142, uParam2, uParam3, uParam4, uParam5, uParam6))
{
*uParam5 = { 0f, 40f, 0f };
*uParam6 = 12.5f;
return 1;
}
break;
case 142:
func_233(iParam0, uParam2, 0);
*uParam5 = { 0f, 25f, 0f };
*uParam6 = 10f;
return 1;
break;
case 143:
if (func_231(iParam0, 142, uParam2, uParam3, uParam4, uParam5, uParam6))
{
*uParam5 = { 0f, 25f, 0f };
*uParam6 = 10f;
return 1;
}
break;
case 144:
if (func_231(iParam0, 142, uParam2, uParam3, uParam4, uParam5, uParam6))
{
*uParam5 = { 0f, 25f, 0f };
*uParam6 = 10f;
return 1;
}
break;
case 145:
if (func_231(iParam0, 142, uParam2, uParam3, uParam4, uParam5, uParam6))
{
*uParam5 = { 0f, 25f, 0f };
*uParam6 = 10f;
return 1;
}
break;
case 146:
if (func_231(iParam0, 142, uParam2, uParam3, uParam4, uParam5, uParam6))
{
*uParam5 = { 0f, 25f, 0f };
*uParam6 = 10f;
return 1;
}
break;
case 147:
if (func_231(iParam0, 142, uParam2, uParam3, uParam4, uParam5, uParam6))
{
*uParam5 = { 0f, 15f, 0f };
*uParam6 = 7.5f;
return 1;
}
break;
case 148:
if (func_231(iParam0, 142, uParam2, uParam3, uParam4, uParam5, uParam6))
{
*uParam5 = { 0f, 25f, 0f };
*uParam6 = 10f;
return 1;
}
break;
case 149:
if (func_231(iParam0, 142, uParam2, uParam3, uParam4, uParam5, uParam6))
{
*uParam5 = { 0f, 25f, 0f };
*uParam6 = 10f;
return 1;
}
break;
case 151:
if (func_231(iParam0, 94, uParam2, uParam3, uParam4, uParam5, uParam6))
{
*uParam3 = { -13.2213f, 16.331f, 0f };
*uParam4 = 6f;
return 1;
}
break;
case 162:
if (func_231(iParam0, 115, uParam2, uParam3, uParam4, uParam5, uParam6))
{
*uParam3 = { 10.3876f, -10.3585f, -1.2183f };
*uParam4 = 8.6726f;
return 1;
}
break;
case 158:
func_233(iParam0, uParam2, 0);
*uParam3 = { 1.0793f, 15.631f, 1.1744f };
*uParam4 = 2.52f;
return 1;
break;
case 166:
return func_231(iParam0, 98, uParam2, uParam3, uParam4, uParam5, uParam6);
break;
case 170:
func_232(iParam0, uParam2, 1);
uParam2->f_91 = 1;
*uParam3 = { 0f, 0f, 0f };
*uParam4 = 0.1f;
*uParam5 = { 0.1f, 0.1f, 0.1f };
*uParam6 = 0.1f;
return 1;
break;
case 171:
return func_231(iParam0, 98, uParam2, uParam3, uParam4, uParam5, uParam6);
break;
case 172:
return func_231(iParam0, 98, uParam2, uParam3, uParam4, uParam5, uParam6);
break;
case 208:
func_233(iParam0, uParam2, 1);
*uParam5 = { 0f, 0.1f, 0f };
*uParam6 = 0.5f;
return 1;
break;
case 209:
return func_231(iParam0, 208, uParam2, uParam3, uParam4, uParam5, uParam6);
break;
case 210:
return func_231(iParam0, 208, uParam2, uParam3, uParam4, uParam5, uParam6);
break;
case 211:
func_232(iParam0, uParam2, 2);
uParam2->f_91 = 2;
*uParam3 = { -2.19f, -1.23f, 0f };
*uParam4 = 90f;
return 1;
break;
case 212:
func_232(iParam0, uParam2, 1);
uParam2->f_91 = 1;
uParam2->f_2 = 0f;
*uParam3 = { -1.3547f, 2.1615f, -0.3723f };
*uParam4 = 177.8041f;
return 1;
break;
case 213:
if (func_231(iParam0, 211, uParam2, uParam3, uParam4, uParam5, uParam6))
{
*uParam3 = { -4.2075f, 1.0943f, 0f };
*uParam4 = 15.82f;
return 1;
}
break;
case 214:
func_232(iParam0, uParam2, 1);
uParam2->f_91 = 1;
uParam2->f_2 = 0f;
*uParam3 = { 2.291f, 1.0879f, 0.0635f };
*uParam4 = 177.798f;
return 1;
break;
case 215:
uParam2->f_97 = 0;
*uParam2 = joaat("taxi");
uParam2->f_2 = 0f;
uParam2->f_4 = 0;
uParam2->f_9 = 1;
*uParam3 = { -0.9714f, 1.6112f, -0.2773f };
*uParam4 = -7.0583f;
*uParam5 = { Vector(183.8081f, 578.5989f, 174.7651f) - Vector(176.086f, 551.7596f, 10.9694f) };
*uParam6 = 10f;
return 1;
break;
case 196:
uParam2->f_97 = 0;
*uParam2 = joaat("taxi");
uParam2->f_2 = 0f;
uParam2->f_4 = 0;
uParam2->f_9 = 1;
*uParam3 = { Vector(29.4846f, -1457.915f, -17.4132f) - Vector(31.1932f, -1441.182f, -14.8689f) };
*uParam4 = (89.0026f - -1.5f);
*uParam5 = { Vector(33.6125f, -1563.461f, -147.0307f) - Vector(31.1932f, -1441.182f, -14.8689f) };
*uParam6 = 10f;
return 1;
break;
case 221:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(43.5168f, -33.5909f, -531.4f) - Vector(45.2617f, -28.54f, -521.13f) };
*uParam4 = (357.1407f - 84.96f);
return 1;
break;
case 216:
if (func_231(iParam0, 211, uParam2, uParam3, uParam4, uParam5, uParam6))
{
*uParam3 = { -2.1752f, -2.3781f, 0f };
*uParam4 = -68.4f;
return 1;
}
break;
case 217:
if (func_231(iParam0, 211, uParam2, uParam3, uParam4, uParam5, uParam6))
{
*uParam3 = { -3.9761f, 0.2542f, 0f };
*uParam4 = -70.5273f;
return 1;
}
break;
case 232:
case 233:
func_232(iParam0, uParam2, 1);
uParam2->f_91 = 1;
*uParam3 = { Vector(28.225f, -1015.11f, -70.4456f) - Vector(27.5447f, -1019.235f, -78.4023f) };
*uParam4 = (162.098f - 109.0206f);
return 1;
break;
case 192:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(3.403f, -1531.113f, -1190.017f) - Vector(4.7514f, -1573.632f, -1174.458f) };
*uParam4 = (302.182f - 105.981f);
return 1;
break;
case 193:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(3.403f, -1531.113f, -1190.017f) - Vector(4.3599f, -1573.692f, -1175.298f) };
*uParam4 = (302.182f - 172.9187f);
return 1;
break;
case 194:
if (func_231(iParam0, 193, uParam2, uParam3, uParam4, uParam5, uParam6))
{
*uParam3 = { 12.74f, 3.26f, 0f };
*uParam4 = 95.217f;
return 1;
}
break;
case 195:
if (func_231(iParam0, 193, uParam2, uParam3, uParam4, uParam5, uParam6))
{
*uParam3 = { -1.34f, 7.684f, 0f };
*uParam4 = 173.52f;
return 1;
}
break;
case 200:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(28.4055f, -1607.568f, 44.4802f) - Vector(((28.2858f - 0.5f) + 1.5f), -1607.286f, 2.8895f) };
*uParam4 = (318.2674f - (310.879f - 180f));
return 1;
break;
case 201:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(28.1773f, -1592.787f, 3.6009f) - Vector(29.2903f, -1607.286f, 2.8895f) };
*uParam4 = (322.6286f - 130.879f);
return 1;
break;
case 202:
func_233(iParam0, uParam2, 0);
*uParam3 = { 91.3579f, 18.1788f, -0.1911f };
*uParam4 = -90.3475f;
return 1;
break;
case 222:
func_233(iParam0, uParam2, 0);
*uParam3 = { 12.5073f, -3.4625f, -0.3702f };
*uParam4 = 14.3405f;
return 1;
break;
case 223:
if (func_231(iParam0, 222, uParam2, uParam3, uParam4, uParam5, uParam6))
{
*uParam3 = { 21.87f, -10.5f, 0f };
*uParam4 = -104.76f;
return 1;
}
break;
case 224:
return func_231(iParam0, 222, uParam2, uParam3, uParam4, uParam5, uParam6);
break;
case 226:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(28.7f, -1356.9f, 24.6f) - Vector(29.3437f, -1351.412f, 28.986f) };
*uParam4 = ((270.1767f - 160f) - 180f);
return 1;
break;
case 227:
func_233(iParam0, uParam2, 0);
*uParam3 = { -19.8544f, -10.4863f, -0.0334f };
*uParam4 = -120.12f;
return 1;
break;
case 228:
func_233(iParam0, uParam2, 0);
*uParam3 = { 21.5897f, -6.8544f, 0.6015f };
*uParam4 = -141f;
return 1;
break;
case 229:
func_233(iParam0, uParam2, 0);
*uParam3 = { -7.6041f, 0.1369f, 0.5812f };
*uParam4 = -145.769f;
return 1;
break;
case 230:
func_233(iParam0, uParam2, 0);
*uParam3 = { -1.6f, 7.6802f, 0.6947f };
*uParam4 = -50.99f;
return 1;
break;
case 238:
func_232(iParam0, uParam2, 1);
uParam2->f_91 = 1;
*uParam3 = { 22.322f, -6.2034f, 0f };
*uParam4 = 73.071f;
return 1;
break;
case 250:
func_232(iParam0, uParam2, 1);
uParam2->f_91 = 1;
*uParam3 = { -1.2901f, -5.5798f, -0.0357f };
*uParam4 = 160.56f;
return 1;
break;
case 251:
if (func_231(iParam0, 250, uParam2, uParam3, uParam4, uParam5, uParam6))
{
*uParam3 = { -4.0739f, 7.7692f, -0.2984f };
*uParam4 = -48.9552f;
return 1;
}
break;
case 252:
if (func_231(iParam0, 250, uParam2, uParam3, uParam4, uParam5, uParam6))
{
*uParam3 = { -5.778f, -4.2397f, 0.9091f };
*uParam4 = -12.9418f;
return 1;
}
break;
case 253:
if (func_231(iParam0, 250, uParam2, uParam3, uParam4, uParam5, uParam6))
{
*uParam3 = { 0.6968f, 1.1033f, 0.912f };
*uParam4 = 90f;
return 1;
}
break;
case 281:
func_232(iParam0, uParam2, 1);
uParam2->f_91 = 1;
*uParam5 = { 0f, 8f, 0.6f };
*uParam6 = 15f;
return 1;
break;
case 282:
if (func_231(iParam0, 281, uParam2, uParam3, uParam4, uParam5, uParam6))
{
return 1;
}
break;
case 283:
if (func_231(iParam0, 281, uParam2, uParam3, uParam4, uParam5, uParam6))
{
return 1;
}
break;
case 284:
if (func_231(iParam0, 281, uParam2, uParam3, uParam4, uParam5, uParam6))
{
uParam2->f_97 = 0;
*uParam2 = joaat("faggio2");
uParam2->f_91 = 0;
return 1;
}
break;
case 275:
func_232(iParam0, uParam2, 1);
uParam2->f_91 = 1;
*uParam5 = { 0f, 8f, 0.6f };
*uParam6 = 15f;
return 1;
break;
case 276:
return func_231(iParam0, 275, uParam2, uParam3, uParam4, uParam5, uParam6);
break;
case 277:
return func_231(iParam0, 275, uParam2, uParam3, uParam4, uParam5, uParam6);
break;
case 280:
if (!Global_3)
{
uParam2->f_97 = 0;
*uParam2 = joaat("tropic");
uParam2->f_11[0] = 0;
uParam2->f_11[1] = 0;
uParam2->f_11[2] = 1;
uParam2->f_11[3] = 0;
uParam2->f_11[4] = 0;
uParam2->f_11[5] = 1;
uParam2->f_11[6] = 1;
uParam2->f_11[7] = 1;
uParam2->f_11[8] = 1;
}
else
{
uParam2->f_97 = 0;
*uParam2 = joaat("dinghy");
}
*uParam3 = { Vector(-0.6187f, -1440.421f, 2779.759f) - Vector(0.3109f, -1453.731f, 2789.845f) };
uParam3->f_2 = (uParam3->f_2 + 0.5f);
*uParam4 = (340.0835f - 4.44f);
*uParam3 = { Vector(-0.7f, 16.55f, -3.3962f) + Vector(0.5f, 0.5f, -0.5f) };
*uParam4 = (23.6441f + 90f);
*uParam3 = { -4.0164f, 19.9594f, 0f };
*uParam4 = 113.6465f;
*uParam3 = { *uParam3 * Vector(1.1f, 1.1f, 1.1f) };
return 1;
break;
case 247:
uParam2->f_97 = 0;
*uParam2 = joaat("sanchez");
*uParam3 = { 9.8707f, 13.0084f, 0f };
*uParam4 = ((-114f - 43f) + 133f);
return 1;
break;
case 288:
uParam2->f_97 = 0;
*uParam2 = joaat("speedo");
*uParam3 = { -7.7078f, 23.9099f, 1.7307f };
*uParam4 = 24.3187f;
return 1;
break;
case 309:
func_233(iParam0, uParam2, 0);
*uParam3 = { -4.5662f, -3.2485f, (0.9455f - 1.7f) };
*uParam4 = -138.6056f;
return 1;
break;
case 305:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(33.8797f, 3597.047f, 1399.662f) - Vector(37.9419f, 3602.284f, 1394.208f) };
*uParam4 = (315.9865f - 122.5269f);
return 1;
break;
case 310:
func_233(iParam0, uParam2, 0);
*uParam3 = { 10.5999f, 3.3997f, 1.0212f };
*uParam4 = -50.3062f;
return 1;
break;
case 255:
uParam2->f_97 = 0;
*uParam2 = joaat("romero");
*uParam3 = { -13.2279f, -7.5348f, 0f };
*uParam4 = 4.32f;
return 1;
break;
case 265:
uParam2->f_97 = 0;
*uParam2 = joaat("bmx");
*uParam3 = { 11.9596f, 0.345f, -1.0016f };
*uParam4 = -42.4225f;
return 1;
break;
case 285:
uParam2->f_97 = 0;
*uParam2 = joaat("gburrito");
*uParam3 = { 3.424f, 7.6462f, 0.8227f };
*uParam4 = -150f;
return 1;
break;
case 256:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(7.1164f, -1094.205f, -1243.65f) - Vector(7.1f, -1105.15f, -1242.68f) };
*uParam4 = (14.0848f - 120f);
return 1;
break;
case 257:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(6.8143f, -930.5448f, -1672.535f) - Vector(6.479f, -974.7168f, -1667.148f) };
*uParam4 = (144.9416f - 171.253f);
return 1;
break;
case 258:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(30.3025f, 6276.12f, -267.5488f) - Vector(30.5054f, 6250.9f, -301.4778f) };
*uParam4 = (130.9896f - 10.247f);
return 1;
break;
case 314:
uParam2->f_97 = 0;
*uParam2 = joaat("cuban800");
*uParam5 = { 0f, 150f, 20f };
*uParam6 = 30f;
return 1;
break;
}
switch (iParam1)
{
case 110:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(32.5629f, -387.5143f, -147.166f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (341.4322f - 133f);
return 1;
break;
case 111:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(24.4283f, -689.1462f, -1306.782f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (214.6826f - 33f);
return 1;
break;
case 153:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(79.3324f, 254.0631f, -708.9244f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (115.2022f - -176.25f);
return 1;
break;
case 154:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(79.3324f, 254.0631f, -708.9244f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (115.2022f - -147.192f);
return 1;
break;
case 165:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(35.0054f, -441.1681f, -1100.878f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (297.5568f - -144.622f);
return 1;
break;
case 159:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(36.3852f, -199.5354f, -825.3141f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (29.4869f - -62.5f);
return 1;
break;
case 160:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(36.2086f, -144.1027f, -730.8218f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (28.532f - 119f);
return 1;
break;
case 167:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(31.7307f, -523.2257f, -1144.174f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (299.2956f - -22.32f);
return 1;
break;
case 152:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(60.9436f, 314.6989f, -1421.8f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (335.4134f - 72f);
return 1;
break;
case 157:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(79.469f, 255.3143f, -706.187f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (117.3069f - 37.27f);
return 1;
break;
case 225:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(28.7165f, -1677.734f, 185.4888f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (54.2538f - -83.8f);
return 1;
break;
case 218:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(28.3218f, -1405.159f, -17.556f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (91.3098f - -70.4124f);
return 1;
break;
case 219:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(30.2611f, -1492.151f, -219.3172f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (139.2572f - -12f);
return 1;
break;
case 220:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(25.3018f, -1811.693f, -22.6138f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (141.0423f - -117.356f);
return 1;
break;
case 206:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(208.5337f, 773.6719f, 164.1308f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (136.3104f - -36f);
return 1;
break;
case 207:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(108.9995f, 396.924f, -263.3745f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (284.4611f - -95.588f);
return 1;
break;
case 274:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(139.5782f, 2030.446f, -1883.836f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (340.5746f - 9f);
return 1;
break;
case 312:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(10.0296f, 6560.557f, -200.684f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (134.5505f - 110.5931f);
return 1;
break;
case 271:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(6.4647f, -1083.751f, -1278.023f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (115.8919f - 26.3597f);
return 1;
break;
case 248:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(102.4417f, 164.5124f, 325.8113f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (68.4108f - 10.77f);
return 1;
break;
case 242:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(56.616f, -122.9896f, -1622.22f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (210.8653f - 13.7207f);
return 1;
break;
case 254:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(53.0019f, -213.7796f, 172.442f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (250.3032f - -40f);
return 1;
break;
case 287:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(17.3426f, -836.0328f, -887.9977f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (270.8607f - -81f);
return 1;
break;
case 286:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(4.8359f, -1182.704f, -1264.218f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (298.4328f - -150f);
return 1;
break;
case 239:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(104.8218f, 289.0073f, -80.4564f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (247.6446f - -122f);
return 1;
break;
case 243:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(28.2762f, -1477.282f, 434.9171f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (228.6353f - 18f);
return 1;
break;
case 244:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(28.2762f, -1477.282f, 434.9171f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (228.6353f - -51f);
return 1;
break;
case 249:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(103.1881f, 177.7729f, 288.977f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (68.9831f - (138f - 180f));
return 1;
break;
case 273:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(32.7794f, -432.4635f, -161.4589f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (340.0368f - -153f);
return 1;
break;
case 92:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(202.1143f, 828.3607f, -806.8813f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (101.1612f - -54.347f);
return 1;
break;
case 103:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(12.0174f, -1108.081f, -1724.72f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (319.8931f - 143.4931f);
return 1;
break;
case 109:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(10.2248f, -628.4899f, -1859.505f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (229.0784f - 99f);
return 1;
break;
case 81:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(53.1469f, 90.4242f, -1393.442f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (123.1782f - -45f);
return 1;
break;
case 95:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(101.921f, 186.1865f, 370.5876f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (159.7861f - 70f);
return 1;
break;
case 97:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(45.9871f, -188.5636f, -1391.156f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (36.5172f - -45f);
return 1;
break;
case 134:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(46.0567f, 3076.742f, 2001.918f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (328.101f - -33.128f);
return 1;
break;
case 88:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(60.9442f, 314.7191f, -1421.821f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (336.5938f - -132f);
return 1;
break;
case 306:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(37.4888f, 5643.726f, -569.3535f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (296.1685f - unk_0x0C1B8F3F6EFDC58B(7.4998f, -7.4995f));
return 1;
break;
case 307:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(47.4526f, 4717.728f, -1555.593f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (236.223f - unk_0x0C1B8F3F6EFDC58B(-10.6345f, -0.7246f));
return 1;
break;
case 308:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(22.7549f, 4629.148f, -1553.861f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (332.7842f - unk_0x0C1B8F3F6EFDC58B(3.4271f, 13.6787f));
return 1;
break;
case 278:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(35.9161f, -1009.745f, 631.8275f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (98.8128f - -33.77f);
return 1;
break;
case 279:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(234.6825f, 900.8749f, -111.9033f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (6.1087f - 155.68f);
return 1;
break;
case 240:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(33.5351f, 3636.151f, 1546.323f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (298.4009f - -4.124f);
return 1;
break;
case 241:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(30.512f, 6439.667f, -179.4242f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (225.5593f - 108f);
return 1;
break;
case 264:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(28.2977f, -1390.545f, 486.7419f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (178.298f - -90f);
return 1;
break;
case 266:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(10.5662f, 143.2342f, -3052.895f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (85.3429f - 68.8227f);
return 1;
break;
case 267:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(39.9155f, 4934.08f, 2202.375f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (314.2654f - 56.2037f);
return 1;
break;
case 269:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(28.149f, -782.0952f, 401.2502f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (179.9905f - -106.6605f);
return 1;
break;
case 246:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(3.3919f, -1534.507f, -1195.256f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (305.8221f - -165f);
return 1;
break;
case 263:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(12.8792f, -1241.213f, -573.3765f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (316.9941f - -171f);
return 1;
break;
case 259:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(4.0002f, -1298.539f, -724.429f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (230.5715f - -32.488f);
return 1;
break;
case 260:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(61.203f, 250.8387f, -1309.114f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (10.7756f - -29.093f);
return 1;
break;
case 261:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(79.764f, 60.3233f, 917.6678f) - Global_91736[iParam1 /*3*/] };
*uParam4 = (148.021f - 229.6085f);
return 1;
break;
case 270:
func_233(iParam0, uParam2, 0);
*uParam3 = { Vector(350f, 8588f, 2919f) - Global_91736[iParam1 /*3*/] };
*uParam4 = unk_0xF59B9063EDAC7451(-180f, 180f);
return 1;
break;
case 289:
func_233(iParam0, uParam2, 0);
*uParam3 = { -48.5171f, 28.4211f, 3.0057f };
*uParam4 = -1.3831f;
return 1;
break;
}
return 0;
}
void func_232(int iParam0, var uParam1, int iParam2)
{
int iVar0;
uParam1->f_88 = 1;
uParam1->f_84 = 255;
uParam1->f_85 = 255;
uParam1->f_86 = 255;
uParam1->f_97 = 1;
uParam1->f_3 = 1000;
uParam1->f_1 = 0;
switch (iParam0)
{
case 0:
iVar0 = joaat("tailgater");
if (Global_106070.f_9057.f_99.f_58[128] && !Global_106070.f_9057.f_99.f_58[131])
{
iVar0 = joaat("premier");
}
switch (iVar0)
{
case joaat("tailgater"):
*uParam1 = iVar0;
uParam1->f_2 = 3f;
uParam1->f_4 = 0;
uParam1->f_9 = 1;
uParam1->f_11[0] = 1;
StringCopy(&(uParam1->f_27), "5MDS003", 16);
break;
case joaat("premier"):
*uParam1 = iVar0;
uParam1->f_2 = 14.9f;
uParam1->f_5 = 43;
uParam1->f_6 = 43;
uParam1->f_7 = 0;
uParam1->f_8 = 156;
uParam1->f_9 = 0;
StringCopy(&(uParam1->f_27), "880HS955", 16);
break;
}
break;
case 2:
iVar0 = joaat("bodhi2");
switch (iVar0)
{
case joaat("bodhi2"):
*uParam1 = iVar0;
uParam1->f_2 = 14f;
uParam1->f_5 = 32;
uParam1->f_6 = 0;
uParam1->f_7 = 0;
uParam1->f_8 = 156;
StringCopy(&(uParam1->f_27), "BETTY 32", 16);
if (Global_106070.f_9057.f_99.f_58[119])
{
uParam1->f_11[1] = 1;
}
break;
}
break;
case 1:
if (iParam2 == 1)
{
iVar0 = joaat("buffalo2");
}
else if (iParam2 == 2)
{
iVar0 = joaat("bagger");
}
else if (Global_106070.f_9057.f_99.f_58[118])
{
iVar0 = joaat("bagger");
}
else
{
iVar0 = joaat("buffalo2");
}
switch (iVar0)
{
case joaat("bagger"):
*uParam1 = iVar0;
uParam1->f_2 = 6f;
uParam1->f_5 = 53;
uParam1->f_6 = 0;
uParam1->f_7 = 59;
uParam1->f_8 = 156;
StringCopy(&(uParam1->f_27), "FC88", 16);
break;
case joaat("buffalo2"):
*uParam1 = iVar0;
uParam1->f_2 = 0f;
uParam1->f_5 = 111;
uParam1->f_6 = 111;
uParam1->f_7 = 0;
uParam1->f_8 = 156;
uParam1->f_10 = 1;
StringCopy(&(uParam1->f_27), "FC1988", 16);
uParam1->f_11[0] = 1;
uParam1->f_11[1] = 1;
uParam1->f_11[2] = 1;
uParam1->f_11[3] = 1;
uParam1->f_11[4] = 1;
uParam1->f_11[5] = 1;
uParam1->f_11[6] = 1;
uParam1->f_11[7] = 1;
uParam1->f_11[8] = 1;
break;
}
break;
default:
break;
}
}
int func_233(int iParam0, var uParam1, int iParam2)
{
if (Global_92701[iParam0 /*98*/] == 0)
{
func_232(iParam0, uParam1, iParam2);
uParam1->f_91 = iParam2;
return 1;
}
if (Global_92701[iParam0 /*98*/] == joaat("blimp"))
{
func_232(iParam0, uParam1, iParam2);
uParam1->f_91 = iParam2;
return 1;
}
if (func_243(iParam0))
{
func_232(iParam0, uParam1, iParam2);
uParam1->f_91 = iParam2;
return 1;
}
if (unk_0x71852D4EBD08275F(Global_92701[iParam0 /*98*/]))
{
func_232(iParam0, uParam1, iParam2);
uParam1->f_91 = iParam2;
return 1;
}
if (unk_0xCA8C103FCD316F89(Global_92701[iParam0 /*98*/]))
{
func_232(iParam0, uParam1, iParam2);
uParam1->f_91 = iParam2;
return 1;
}
if (unk_0x7C197233F79C2CB8(Global_92701[iParam0 /*98*/]))
{
func_232(iParam0, uParam1, iParam2);
uParam1->f_91 = iParam2;
return 1;
}
if (unk_0x289FBFAD3E416C48(Global_92701[iParam0 /*98*/]))
{
func_232(iParam0, uParam1, iParam2);
uParam1->f_91 = iParam2;
return 1;
}
if (iParam2 == 1)
{
if (!unk_0x425CD7B17352316F(Global_92701[iParam0 /*98*/]))
{
func_232(iParam0, uParam1, iParam2);
uParam1->f_91 = iParam2;
return 1;
}
}
else if (iParam2 == 2)
{
if (!unk_0x8CE5E4632E631B03(Global_92701[iParam0 /*98*/]))
{
func_232(iParam0, uParam1, iParam2);
uParam1->f_91 = iParam2;
return 1;
}
}
if (!func_234(Global_92701[iParam0 /*98*/], 0))
{
func_232(iParam0, uParam1, iParam2);
uParam1->f_91 = iParam2;
return 1;
}
if (iParam2 != 0)
{
func_232(iParam0, uParam1, iParam2);
uParam1->f_91 = iParam2;
if (Global_92701[iParam0 /*98*/] != *uParam1)
{
*uParam1 = { Global_92701[iParam0 /*98*/] };
uParam1->f_91 = 0;
return 0;
}
}
else
{
func_232(iParam0, uParam1, 1);
uParam1->f_91 = 1;
if (Global_92701[iParam0 /*98*/] == *uParam1)
{
func_232(iParam0, uParam1, 1);
uParam1->f_91 = 1;
return 1;
}
func_232(iParam0, uParam1, 2);
uParam1->f_91 = 2;
if (Global_92701[iParam0 /*98*/] == *uParam1)
{
func_232(iParam0, uParam1, 2);
uParam1->f_91 = 2;
return 1;
}
*uParam1 = { Global_92701[iParam0 /*98*/] };
uParam1->f_91 = 0;
return 0;
}
func_232(iParam0, uParam1, iParam2);
uParam1->f_91 = iParam2;
return 1;
}
int func_234(int iParam0, bool bParam1)
{
int iVar0;
struct<2> Var1;
if (iParam0 == 0)
{
return 0;
}
if (!unk_0x671704836D893828(iParam0))
{
return 0;
}
if (((((iParam0 == joaat("dominator2") && !unk_0x4C9BACA8D249CB13()) || (iParam0 == joaat("buffalo3") && !unk_0x4C9BACA8D249CB13())) || (iParam0 == joaat("gauntlet2") && !unk_0x4C9BACA8D249CB13())) || iParam0 == joaat("blimp2")) || (iParam0 == joaat("stalion2") && !unk_0x4C9BACA8D249CB13()))
{
if (!func_242())
{
return 0;
}
}
else
{
iVar0 = 0;
while (iVar0 < unk_0x730B2D99EC02BFBB())
{
if (unk_0xED2E7B72F90BB7CF(iVar0, &Var1))
{
if (iParam0 == Var1.f_1)
{
if (unk_0x3B61940560400F58(Var1))
{
return 0;
}
}
}
iVar0++;
}
}
if (iParam0 == joaat("blimp"))
{
if ((((!func_241() && !func_240()) && !func_239()) && !func_238()) && !func_242())
{
return 0;
}
}
if ((iParam0 == joaat("hotknife") || iParam0 == joaat("carbonrs")) || iParam0 == joaat("khamelion"))
{
if ((unk_0x29A02C184A66D25E() || unk_0x47C01C0E6F4C1D06()) || unk_0x7DD04831D0FC44CA())
{
}
else if (!func_239())
{
return 0;
}
}
if (bParam1)
{
if (!func_237(iParam0))
{
return 0;
}
}
if (!func_235(iParam0))
{
return 0;
}
return 1;
}
int func_235(int iParam0)
{
int iVar0;
var uVar1;
char cVar2[64];
if (!func_236())
{
return 1;
}
unk_0x0B2954993B98F51D(&iVar0, &uVar1);
if (iVar0 == 4)
{
return 1;
}
switch (iParam0)
{
case joaat("dune4"):
StringCopy(&cVar2, "VE_DUNE4_t0_v3", 64);
break;
case joaat("voltic2"):
StringCopy(&cVar2, "VE_VOLTIC2_t0_v3", 64);
break;
case joaat("ruiner2"):
StringCopy(&cVar2, "VE_RUINER2_t0_v3", 64);
break;
case joaat("phantom2"):
StringCopy(&cVar2, "VE_PHANTOM2_t0_v3", 64);
break;
case joaat("technical2"):
StringCopy(&cVar2, "VE_TECHNICAL2_t0_v3", 64);
break;
case joaat("boxville5"):
StringCopy(&cVar2, "VE_BOXVILLE5_t0_v3", 64);
break;
case joaat("wastelander"):
StringCopy(&cVar2, "VE_WASTELANDER_t0_v3", 64);
break;
case joaat("blazer5"):
StringCopy(&cVar2, "VE_BLAZER5_t0_v3", 64);
break;
default:
return 1;
break;
}
if (!unk_0x3B6DCE62F381F366(&cVar2))
{
return 0;
}
return 1;
}
int func_236()
{
if (unk_0x47C01C0E6F4C1D06())
{
return unk_0x773EC73464C84240();
}
return 0;
}
int func_237(int iParam0)
{
int iVar0;
int iVar1;
if (Global_2503689)
{
return 1;
}
iVar0 = 1;
iVar1 = unk_0x5E0F2F352218B916();
if (iParam0 == joaat("btype3"))
{
if ((!Global_262145.f_6488 && !Global_262145.f_12797) && iVar1 < Global_262145.f_12798)
{
iVar0 = 0;
}
}
if (iParam0 == joaat("faction3"))
{
if (!Global_262145.f_14095 && iVar1 < Global_262145.f_14107)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("virgo3") || iParam0 == joaat("virgo2"))
{
if (!Global_262145.f_14091 && iVar1 < Global_262145.f_14103)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("sabregt2"))
{
if (!Global_262145.f_14092 && iVar1 < Global_262145.f_14104)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("tornado5"))
{
if (!Global_262145.f_14093 && iVar1 < Global_262145.f_14105)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("minivan2"))
{
if (!Global_262145.f_14094 && iVar1 < Global_262145.f_14106)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("slamvan3"))
{
if (!Global_262145.f_14096 && iVar1 < Global_262145.f_14108)
{
iVar0 = 0;
}
}
if (iParam0 == joaat("prototipo"))
{
if (!Global_262145.f_14097 && iVar1 < Global_262145.f_14100)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("seven70"))
{
if (!Global_262145.f_14098 && iVar1 < Global_262145.f_14101)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("pfister811"))
{
if (!Global_262145.f_14099 && iVar1 < Global_262145.f_14102)
{
iVar0 = 0;
}
}
if (iParam0 == joaat("bf400"))
{
if (!Global_262145.f_16727 && iVar1 < Global_262145.f_16691)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("brioso"))
{
if (!Global_262145.f_16722 && iVar1 < Global_262145.f_16686)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("cliffhanger"))
{
if (!Global_262145.f_16726 && iVar1 < Global_262145.f_16690)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("contender"))
{
if (!Global_262145.f_16725 && iVar1 < Global_262145.f_16689)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("le7b"))
{
if (!Global_262145.f_16719 && iVar1 < Global_262145.f_16683)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("omnis"))
{
if (!Global_262145.f_16720 && iVar1 < Global_262145.f_16684)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("trophytruck"))
{
if (!Global_262145.f_16723 && iVar1 < Global_262145.f_16687)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("trophytruck2"))
{
if (!Global_262145.f_16724 && iVar1 < Global_262145.f_16688)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("tropos"))
{
if (!Global_262145.f_16721 && iVar1 < Global_262145.f_16685)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("gargoyle"))
{
if (!Global_262145.f_16729 && iVar1 < Global_262145.f_16693)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("rallytruck"))
{
if (!Global_262145.f_16730 && iVar1 < Global_262145.f_16694)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("tampa2"))
{
if (!Global_262145.f_16718 && iVar1 < Global_262145.f_16682)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("tyrus"))
{
if (!Global_262145.f_16717 && iVar1 < Global_262145.f_16681)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("sheava"))
{
if (!Global_262145.f_16716 && iVar1 < Global_262145.f_16680)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("lynx"))
{
if (!Global_262145.f_16728 && iVar1 < Global_262145.f_16692)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("stalion2"))
{
if (!Global_262145.f_16731 && iVar1 < Global_262145.f_16695)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("gauntlet2"))
{
if (!Global_262145.f_16732 && iVar1 < Global_262145.f_16696)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("dominator2"))
{
if (!Global_262145.f_16733 && iVar1 < Global_262145.f_16697)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("buffalo3"))
{
if (!Global_262145.f_16734 && iVar1 < Global_262145.f_16698)
{
iVar0 = 0;
}
}
if (iParam0 == joaat("defiler"))
{
if (!Global_262145.f_16879 && iVar1 < Global_262145.f_16901)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("nightblade"))
{
if (!Global_262145.f_16880 && iVar1 < Global_262145.f_16902)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("zombiea"))
{
if (!Global_262145.f_16881 && iVar1 < Global_262145.f_16903)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("esskey"))
{
if (!Global_262145.f_16882 && iVar1 < Global_262145.f_16904)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("avarus"))
{
if (!Global_262145.f_16883 && iVar1 < Global_262145.f_16905)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("zombieb"))
{
if (!Global_262145.f_16884 && iVar1 < Global_262145.f_16906)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("hakuchou2"))
{
if (!Global_262145.f_16886 && iVar1 < Global_262145.f_16907)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("vortex"))
{
if (!Global_262145.f_16887 && iVar1 < Global_262145.f_16908)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("shotaro"))
{
if (!Global_262145.f_16888 && iVar1 < Global_262145.f_16909)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("chimera"))
{
if (!Global_262145.f_16889 && iVar1 < Global_262145.f_16910)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("raptor"))
{
if (!Global_262145.f_16890 && iVar1 < Global_262145.f_16911)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("daemon2"))
{
if (!Global_262145.f_16891 && iVar1 < Global_262145.f_16912)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("blazer4"))
{
if (!Global_262145.f_16892 && iVar1 < Global_262145.f_16913)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("tornado6"))
{
if (!Global_262145.f_16898 && iVar1 < Global_262145.f_16920)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("youga2"))
{
if (!Global_262145.f_16895 && iVar1 < Global_262145.f_16916)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("wolfsbane"))
{
if (!Global_262145.f_16896 && iVar1 < Global_262145.f_16917)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("faggio3"))
{
if (!Global_262145.f_16897 && iVar1 < Global_262145.f_16918)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("faggio"))
{
if (!Global_262145.f_16885 && iVar1 < Global_262145.f_16919)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("bagger"))
{
if (!Global_262145.f_16899 && iVar1 < Global_262145.f_16921)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("sanctus"))
{
if (!Global_262145.f_16893 && iVar1 < Global_262145.f_16914)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("manchez"))
{
if (!Global_262145.f_16894 && iVar1 < Global_262145.f_16915)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("ratbike"))
{
if (!Global_262145.f_16900 && iVar1 < Global_262145.f_16922)
{
iVar0 = 0;
}
}
if (iParam0 == joaat("voltic2"))
{
if (!Global_262145.f_18528 && iVar1 < Global_262145.f_18625)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("ruiner2"))
{
if (!Global_262145.f_18529 && iVar1 < Global_262145.f_18626)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("dune4"))
{
if (!Global_262145.f_18530 && iVar1 < Global_262145.f_18627)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("dune5"))
{
if (!Global_262145.f_18531 && iVar1 < Global_262145.f_18628)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("phantom2"))
{
if (!Global_262145.f_18532 && iVar1 < Global_262145.f_18629)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("technical2"))
{
if (!Global_262145.f_18533 && iVar1 < Global_262145.f_18630)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("boxville5"))
{
if (!Global_262145.f_18534 && iVar1 < Global_262145.f_18631)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("wastelander"))
{
if (!Global_262145.f_18535 && iVar1 < Global_262145.f_18632)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("blazer5"))
{
if (!Global_262145.f_18536 && iVar1 < Global_262145.f_18633)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("comet2"))
{
if (!Global_262145.f_18537 && iVar1 < Global_262145.f_18634)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("comet3"))
{
if (!Global_262145.f_18538 && iVar1 < Global_262145.f_18635)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("diablous"))
{
if (!Global_262145.f_18539 && iVar1 < Global_262145.f_18636)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("diablous2"))
{
if (!Global_262145.f_18540 && iVar1 < Global_262145.f_18637)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("elegy"))
{
if (!Global_262145.f_18541 && iVar1 < Global_262145.f_18638)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("elegy2"))
{
if (!Global_262145.f_18542 && iVar1 < Global_262145.f_18639)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("fcr"))
{
if (!Global_262145.f_18543 && iVar1 < Global_262145.f_18640)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("fcr2"))
{
if (!Global_262145.f_18544 && iVar1 < Global_262145.f_18641)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("italigtb"))
{
if (!Global_262145.f_18545 && iVar1 < Global_262145.f_18642)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("italigtb2"))
{
if (!Global_262145.f_18546 && iVar1 < Global_262145.f_18643)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("nero"))
{
if (!Global_262145.f_18547 && iVar1 < Global_262145.f_18644)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("nero2"))
{
if (!Global_262145.f_18548 && iVar1 < Global_262145.f_18645)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("penetrator"))
{
if (!Global_262145.f_18549 && iVar1 < Global_262145.f_18646)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("specter"))
{
if (!Global_262145.f_18550 && iVar1 < Global_262145.f_18647)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("specter2"))
{
if (!Global_262145.f_18551 && iVar1 < Global_262145.f_18648)
{
iVar0 = 0;
}
}
else if (iParam0 == joaat("tempesta"))
{
if (!Global_262145.f_18552 && iVar1 < Global_262145.f_18649)
{
iVar0 = 0;
}
}
if (iParam0 == 1234311532)
{
if (!Global_262145.f_19608 && iVar1 < Global_262145.f_19604)
{
iVar0 = 0;
}
}
else if (iParam0 == -1405937764)
{
if (!Global_262145.f_19609 && iVar1 < Global_262145.f_19605)
{
iVar0 = 0;
}
}
else if (iParam0 == 719660200)
{
if (!Global_262145.f_19610 && iVar1 < Global_262145.f_19606)
{
iVar0 = 0;
}
}
else if (iParam0 == -982130927)
{
if (!Global_262145.f_19611 && iVar1 < Global_262145.f_19607)
{
iVar0 = 0;
}
}
if (iParam0 == 917809321)
{
if (!Global_262145.f_20487 && iVar1 < Global_262145.f_20495)
{
iVar0 = 0;
}
}
else if (iParam0 == 223240013)
{
if (!Global_262145.f_20488 && iVar1 < Global_262145.f_20496)
{
iVar0 = 0;
}
}
else if (iParam0 == 1504306544)
{
if (!Global_262145.f_20489 && iVar1 < Global_262145.f_20497)
{
iVar0 = 0;
}
}
else if (iParam0 == 1939284556)
{
if (!Global_262145.f_20490 && iVar1 < Global_262145.f_20498)
{
iVar0 = 0;
}
}
else if (iParam0 == 159274291)
{
if (!Global_262145.f_20491 && iVar1 < Global_262145.f_20499)
{
iVar0 = 0;
}
}
else if (iParam0 == 433954513)
{
if (!Global_262145.f_20492 && iVar1 < Global_262145.f_20500)
{
iVar0 = 0;
}
}
if (iParam0 == -1763555241)
{
if (!Global_262145.f_21264 && iVar1 < Global_262145.f_21284)
{
iVar0 = 0;
}
}
else if (iParam0 == -749299473)
{
if (!Global_262145.f_21276 && iVar1 < Global_262145.f_21296)
{
iVar0 = 0;
}
}
else if (iParam0 == -975345305)
{
if (!Global_262145.f_21267 && iVar1 < Global_262145.f_21287)
{
iVar0 = 0;
}
}
else if (iParam0 == -1700874274)
{
if (!Global_262145.f_21277 && iVar1 < Global_262145.f_21297)
{
iVar0 = 0;
}
}
else if (iParam0 == -392675425)
{
if (!Global_262145.f_21265 && iVar1 < Global_262145.f_21285)
{
iVar0 = 0;
}
}
else if (iParam0 == 1043222410)
{
if (!Global_262145.f_21281 && iVar1 < Global_262145.f_21301)
{
iVar0 = 0;
}
}
else if (iParam0 == -1386191424)
{
if (!Global_262145.f_21279 && iVar1 < Global_262145.f_21299)
{
iVar0 = 0;
}
}
else if (iParam0 == 1565978651)
{
if (!Global_262145.f_21280 && iVar1 < Global_262145.f_21300)
{
iVar0 = 0;
}
}
else if (iParam0 == 1036591958)
{
if (!Global_262145.f_21275 && iVar1 < Global_262145.f_21295)
{
iVar0 = 0;
}
}
else if (iParam0 == -32878452)
{
if (!Global_262145.f_21282 && iVar1 < Global_262145.f_21302)
{
iVar0 = 0;
}
}
else if (iParam0 == -42959138)
{
if (!Global_262145.f_21278 && iVar1 < Global_262145.f_21298)
{
iVar0 = 0;
}
}
else if (iParam0 == -1984275979)
{
if (!Global_262145.f_21274 && iVar1 < Global_262145.f_21294)
{
iVar0 = 0;
}
}
else if (iParam0 == -1007528109)
{
if (!Global_262145.f_21266 && iVar1 < Global_262145.f_21286)
{
iVar0 = 0;
}
}
else if (iParam0 == -1523619738)
{
if (!Global_262145.f_21268 && iVar1 < Global_262145.f_21288)
{
iVar0 = 0;
}
}
else if (iParam0 == 1392481335)
{
if (!Global_262145.f_21269 && iVar1 < Global_262145.f_21289)
{
iVar0 = 0;
}
}
else if (iParam0 == -998177792)
{
if (!Global_262145.f_21270 && iVar1 < Global_262145.f_21290)
{
iVar0 = 0;
}
}
else if (iParam0 == -1242608589)
{
if (!Global_262145.f_21271 && iVar1 < Global_262145.f_21291)
{
iVar0 = 0;
}
}
else if (iParam0 == 1841130506)
{
if (!Global_262145.f_21272 && iVar1 < Global_262145.f_21292)
{
iVar0 = 0;
}
}
else if (iParam0 == 2049897956)
{
if (!Global_262145.f_21273 && iVar1 < Global_262145.f_21293)
{
iVar0 = 0;
}
}
if (iParam0 == 1483171323)
{
if (!Global_262145.f_22225 && iVar1 < Global_262145.f_22253)
{
iVar0 = 0;
}
}
else if (iParam0 == 886810209)
{
if (!Global_262145.f_22226 && iVar1 < Global_262145.f_22254)
{
iVar0 = 0;
}
}
else if (iParam0 == -1693015116)
{
if (!Global_262145.f_22227 && iVar1 < Global_262145.f_22255)
{
iVar0 = 0;
}
}
else if (iParam0 == -692292317)
{
if (!Global_262145.f_22228 && iVar1 < Global_262145.f_22256)
{
iVar0 = 0;
}
}
else if (iParam0 == -1435527158)
{
if (!Global_262145.f_22229 && iVar1 < Global_262145.f_22257)
{
iVar0 = 0;
}
}
else if (iParam0 == 1181327175)
{
if (!Global_262145.f_22230 && iVar1 < Global_262145.f_22258)
{
iVar0 = 0;
}
}
else if (iParam0 == 1489874736)
{
if (!Global_262145.f_22231 && iVar1 < Global_262145.f_22259)
{
iVar0 = 0;
}
}
else if (iParam0 == -212993243)
{
if (!Global_262145.f_22232 && iVar1 < Global_262145.f_22260)
{
iVar0 = 0;
}
}
else if (iParam0 == 447548909)
{
if (!Global_262145.f_22233 && iVar1 < Global_262145.f_22261)
{
iVar0 = 0;
}
}
else if (iParam0 == 1561920505)
{
if (!Global_262145.f_22234 && iVar1 < Global_262145.f_22262)
{
iVar0 = 0;
}
}
else if (iParam0 == -1848994066)
{
if (!Global_262145.f_22235 && iVar1 < Global_262145.f_22263)
{
iVar0 = 0;
}
}
else if (iParam0 == 1741861769)
{
if (!Global_262145.f_22236 && iVar1 < Global_262145.f_22264)
{
iVar0 = 0;
}
}
else if (iParam0 == 1104234922)
{
if (!Global_262145.f_22237 && iVar1 < Global_262145.f_22265)
{
iVar0 = 0;
}
}
else if (iParam0 == 1871995513)
{
if (!Global_262145.f_22238 && iVar1 < Global_262145.f_22266)
{
iVar0 = 0;
}
}
else if (iParam0 == 1352136073)
{
if (!Global_262145.f_22239 && iVar1 < Global_262145.f_22267)
{
iVar0 = 0;
}
}
else if (iParam0 == -313185164)
{
if (!Global_262145.f_22240 && iVar1 < Global_262145.f_22268)
{
iVar0 = 0;
}
}
else if (iParam0 == -2079788230)
{
if (!Global_262145.f_22241 && iVar1 < Global_262145.f_22269)
{
iVar0 = 0;
}
}
else if (iParam0 == 600450546)
{
if (!Global_262145.f_22242 && iVar1 < Global_262145.f_22270)
{
iVar0 = 0;
}
}
else if (iParam0 == -410205223)
{
if (!Global_262145.f_22243 && iVar1 < Global_262145.f_22271)
{
iVar0 = 0;
}
}
else if (iParam0 == 867799010)
{
if (!Global_262145.f_22244 && iVar1 < Global_262145.f_22272)
{
iVar0 = 0;
}
}
else if (iParam0 == -1529242755)
{
if (!Global_262145.f_22245 && iVar1 < Global_262145.f_22273)
{
iVar0 = 0;
}
}
else if (iParam0 == 903794909)
{
if (!Global_262145.f_22246 && iVar1 < Global_262145.f_22274)
{
iVar0 = 0;
}
}
else if (iParam0 == -1532697517)
{
if (!Global_262145.f_22247 && iVar1 < Global_262145.f_22275)
{
iVar0 = 0;
}
}
else if (iParam0 == 15219735)
{
if (!Global_262145.f_22248 && iVar1 < Global_262145.f_22276)
{
iVar0 = 0;
}
}
else if (iParam0 == 661493923)
{
if (!Global_262145.f_22249 && iVar1 < Global_262145.f_22277)
{
iVar0 = 0;
}
}
else if (iParam0 == 838982985)
{
if (!Global_262145.f_22250 && iVar1 < Global_262145.f_22278)
{
iVar0 = 0;
}
}
else if (iParam0 == -391595372)
{
if (!Global_262145.f_22251 && iVar1 < Global_262145.f_22279)
{
iVar0 = 0;
}
}
else if (iParam0 == -121446169)
{
if (!Global_262145.f_22252 && iVar1 < Global_262145.f_22280)
{
iVar0 = 0;
}
}
if (iParam0 == 1909189272)
{
if (!Global_262145.f_23432 && iVar1 < Global_262145.f_23448)
{
iVar0 = 0;
}
}
else if (iParam0 == 1617472902)
{
if (!Global_262145.f_23433 && iVar1 < Global_262145.f_23449)
{
iVar0 = 0;
}
}
else if (iParam0 == -1267543371)
{
if (!Global_262145.f_23437 && iVar1 < Global_262145.f_23453)
{
iVar0 = 0;
}
}
else if (iParam0 == 931280609)
{
if (!Global_262145.f_23440 && iVar1 < Global_262145.f_23456)
{
iVar0 = 0;
}
}
else if (iParam0 == 1046206681)
{
if (!Global_262145.f_23445 && iVar1 < Global_262145.f_23461)
{
iVar0 = 0;
}
}
else if (iParam0 == -1259134696)
{
if (!Global_262145.f_23439 && iVar1 < Global_262145.f_23455)
{
iVar0 = 0;
}
}
else if (iParam0 == 1115909093)
{
if (!Global_262145.f_23431 && iVar1 < Global_262145.f_23447)
{
iVar0 = 0;
}
}
else if (iParam0 == 1031562256)
{
if (!Global_262145.f_23438 && iVar1 < Global_262145.f_23454)
{
iVar0 = 0;
}
}
else if (iParam0 == -376434238)
{
if (!Global_262145.f_23444 && iVar1 < Global_262145.f_23460)
{
iVar0 = 0;
}
}
else if (iParam0 == -986944621)
{
if (!Global_262145.f_23443 && iVar1 < Global_262145.f_23459)
{
iVar0 = 0;
}
}
else if (iParam0 == -1134706562)
{
if (!Global_262145.f_23434 && iVar1 < Global_262145.f_23450)
{
iVar0 = 0;
}
}
else if (iParam0 == -2120700196)
{
if (!Global_262145.f_23436 && iVar1 < Global_262145.f_23452)
{
iVar0 = 0;
}
}
else if (iParam0 == -214906006)
{
if (!Global_262145.f_23446 && iVar1 < Global_262145.f_23462)
{
iVar0 = 0;
}
}
else if (iParam0 == -988501280)
{
if (!Global_262145.f_23442 && iVar1 < Global_262145.f_23458)
{
iVar0 = 0;
}
}
else if (iParam0 == 1254014755)
{
if (!Global_262145.f_23435 && iVar1 < Global_262145.f_23451)
{
iVar0 = 0;
}
}
else if (iParam0 == -726768679)
{
if (!Global_262145.f_23441 && iVar1 < Global_262145.f_23457)
{
iVar0 = 0;
}
}
if (iParam0 == -1988428699)
{
if (!Global_262145.f_23522 && iVar1 < Global_262145.f_23509)
{
iVar0 = 0;
}
}
else if (iParam0 == 345756458)
{
if (!Global_262145.f_23523 && iVar1 < Global_262145.f_23510)
{
iVar0 = 0;
}
}
else if (iParam0 == 1945374990)
{
if (!Global_262145.f_23528 && iVar1 < Global_262145.f_23515)
{
iVar0 = 0;
}
}
else if (iParam0 == 1653666139)
{
if (!Global_262145.f_23527 && iVar1 < Global_262145.f_23514)
{
iVar0 = 0;
}
}
else if (iParam0 == 500482303)
{
if (!Global_262145.f_23525 && iVar1 < Global_262145.f_23512)
{
iVar0 = 0;
}
}
else if (iParam0 == 2044532910)
{
if (!Global_262145.f_23531 && iVar1 < Global_262145.f_23518)
{
iVar0 = 0;
}
}
else if (iParam0 == -638562243)
{
if (!Global_262145.f_23533 && iVar1 < Global_262145.f_23520)
{
iVar0 = 0;
}
}
else if (iParam0 == 1692272545)
{
if (!Global_262145.f_23534 && iVar1 < Global_262145.f_23521)
{
iVar0 = 0;
}
}
else if (iParam0 == 2069146067)
{
if (!Global_262145.f_23532 && iVar1 < Global_262145.f_23519)
{
iVar0 = 0;
}
}
else if (iParam0 == -420911112)
{
if (!Global_262145.f_23524 && iVar1 < Global_262145.f_23511)
{
iVar0 = 0;
}
}
else if (iParam0 == 321186144)
{
if (!Global_262145.f_23526 && iVar1 < Global_262145.f_23513)
{
iVar0 = 0;
}
}
else if (iParam0 == -54332285)
{
if (!Global_262145.f_23530 && iVar1 < Global_262145.f_23517)
{
iVar0 = 0;
}
}
else if (iParam0 == -307958377)
{
if (!Global_262145.f_23529 && iVar1 < Global_262145.f_23516)
{
iVar0 = 0;
}
}
if (iParam0 == 1721676810)
{
}
else if (iParam0 == -801550069)
{
}
else if (iParam0 == 679453769)
{
}
else if (iParam0 == 1909700336)
{
}
else if (iParam0 == 2139203625)
{
}
else if (iParam0 == -1890996696)
{
}
else if (iParam0 == 2038858402)
{
}
else if (iParam0 == -1146969353)
{
}
else if (iParam0 == 1542143200)
{
}
else if (iParam0 == -579747861)
{
}
else if (iParam0 == 444994115)
{
}
else if (iParam0 == 1637620610)
{
}
else if (iParam0 == -755532233)
{
}
else if (iParam0 == 540101442)
{
}
else if (iParam0 == -1106120762)
{
}
else if (iParam0 == -1478704292)
{
}
else if (iParam0 == -2096690334)
{
}
else if (iParam0 == 1591739866)
{
if (!Global_262145.f_25628 && iVar1 < Global_262145.f_25630)
{
iVar0 = 0;
}
}
else if (iParam0 == -1168952148)
{
if (!Global_262145.f_24683 && iVar1 < Global_262145.f_24676)
{
iVar0 = 0;
}
}
else if (iParam0 == -1566607184)
{
if (!Global_262145.f_24684 && iVar1 < Global_262145.f_24677)
{
iVar0 = 0;
}
}
else if (iParam0 == -331467772)
{
if (!Global_262145.f_24685 && iVar1 < Global_262145.f_24678)
{
iVar0 = 0;
}
}
else if (iParam0 == 1279262537)
{
if (!Global_262145.f_24686 && iVar1 < Global_262145.f_24679)
{
iVar0 = 0;
}
}
else if (iParam0 == -49115651)
{
if (!Global_262145.f_25629 && iVar1 < Global_262145.f_25631)
{
iVar0 = 0;
}
}
else if (iParam0 == 1456744817)
{
if (!Global_262145.f_24687 && iVar1 < Global_262145.f_24680)
{
iVar0 = 0;
}
}
else if (iParam0 == -507495760)
{
if (!Global_262145.f_24688 && iVar1 < Global_262145.f_24681)
{
iVar0 = 0;
}
}
else if (iParam0 == -286046740)
{
if (!Global_262145.f_24689 && iVar1 < Global_262145.f_24682)
{
iVar0 = 0;
}
}
return iVar0;
}
int func_238()
{
return 0;
}
int func_239()
{
return 1;
}
int func_240()
{
return 1;
}
int func_241()
{
if (unk_0x05BEBC245254F6F2(-1226939934))
{
return 1;
}
return 0;
}
int func_242()
{
int iVar0;
if (unk_0xC29B8FF8374918FD())
{
if (unk_0x0A68AE586CCE49F6())
{
if (unk_0x3750826756EA2005())
{
unk_0x2AD48F3CEBA882E9(joaat("sp_unlock_exclus_content"), &iVar0, -1);
unk_0x2BCFB39E86340DAA(&iVar0, 2);
unk_0x2BCFB39E86340DAA(&iVar0, 4);
unk_0x2BCFB39E86340DAA(&iVar0, 6);
unk_0x2BCFB39E86340DAA(&Global_25, 2);
unk_0x2BCFB39E86340DAA(&Global_25, 4);
unk_0x2BCFB39E86340DAA(&Global_25, 6);
unk_0x93180BE33E7149EF(joaat("sp_unlock_exclus_content"), iVar0, 1);
if (unk_0x63141F5FDACF3D9B())
{
iVar0 = unk_0x3278E95F94254201(866);
unk_0x2BCFB39E86340DAA(&iVar0, 0);
unk_0xF8B43D25409B2964(iVar0);
}
return 1;
}
}
}
if (Global_144765 == 2)
{
return 1;
}
else if (Global_144765 == 3)
{
return 0;
}
if (unk_0x63141F5FDACF3D9B())
{
if (unk_0x05EFB6A616B6FADE(unk_0x3278E95F94254201(866), 0))
{
return 1;
}
}
return 0;
}
int func_243(int iParam0)
{
if (Global_92701[iParam0 /*98*/] == joaat("blimp") || Global_92701[iParam0 /*98*/] == joaat("blimp2"))
{
return 1;
}
if (Global_92701[iParam0 /*98*/] == joaat("submersible") || Global_92701[iParam0 /*98*/] == joaat("submersible2"))
{
return 1;
}
if (Global_92701[iParam0 /*98*/] == joaat("freight"))
{
return 1;
}
if (Global_92701[iParam0 /*98*/] == joaat("packer"))
{
return 1;
}
if (Global_92701[iParam0 /*98*/] == joaat("asea2"))
{
return 1;
}
if (Global_92701[iParam0 /*98*/] == joaat("burrito2") || Global_92701[iParam0 /*98*/] == joaat("fbi2"))
{
return 1;
}
if (Global_92701[iParam0 /*98*/] == joaat("entityxf") && !Global_106070.f_9057.f_330[8 /*6*/])
{
return 1;
}
if (Global_92701[iParam0 /*98*/] == joaat("cheetah") && !Global_106070.f_9057.f_330[8 /*6*/])
{
return 1;
}
if (Global_92701[iParam0 /*98*/] == joaat("policeb") && !Global_106070.f_9057.f_330[8 /*6*/])
{
return 1;
}
if (Global_92701[iParam0 /*98*/] == joaat("ztype") && !Global_106070.f_9057.f_330[9 /*6*/])
{
return 1;
}
if (Global_92701[iParam0 /*98*/] == joaat("polmav") && !Global_106070.f_9057.f_330[9 /*6*/])
{
return 1;
}
if (Global_92701[iParam0 /*98*/] == joaat("jb700") && !Global_106070.f_9057.f_330[10 /*6*/])
{
return 1;
}
if (Global_92701[iParam0 /*98*/] == joaat("monroe") && !Global_106070.f_9057.f_330[11 /*6*/])
{
return 1;
}
if (Global_92701[iParam0 /*98*/] == 1938952078)
{
return 1;
}
if (Global_92701[iParam0 /*98*/] == joaat("handler"))
{
return 1;
}
if (Global_92701[iParam0 /*98*/] == joaat("monroe"))
{
return 1;
}
if (Global_92701[iParam0 /*98*/] == joaat("phantom"))
{
return 1;
}
if (((Global_92701[iParam0 /*98*/] == joaat("gauntlet") && !Global_106070.f_9057.f_330[80 /*6*/]) && !Global_106070.f_9057.f_330[81 /*6*/]) && !Global_106070.f_9057.f_330[82 /*6*/])
{
return 1;
}
return 0;
}
bool func_244(vector3 vParam0, vector3 vParam1, bool bParam2)
{
if (bParam2)
{
return (vParam0.x == vParam1.x && vParam0.y == vParam1.y);
}
return ((vParam0.x == vParam1.x && vParam0.y == vParam1.y) && vParam0.z == vParam1.z);
}
int func_245(int iParam0, var uParam1, float fParam2)
{
switch (iParam0)
{
case 11:
*uParam1 = { 115.1569f, -1286.684f, 28.2613f };
*fParam2 = 111f;
return 1;
break;
case 8:
*uParam1 = { -90.0089f, -1324.195f, 28.3203f };
*fParam2 = 194.1887f;
return 1;
break;
case 9:
return func_245(8, uParam1, fParam2);
break;
case 10:
return func_245(8, uParam1, fParam2);
break;
case 13:
*uParam1 = { -807.2979f, -48.4004f, 36.8173f };
*fParam2 = 201.6328f;
return 1;
break;
case 14:
*uParam1 = { 1432.34f, -1887.383f, 70.5768f };
*fParam2 = 350.0509f;
return 1;
break;
case 15:
*uParam1 = { 1666.204f, 1967.25f, 143.3213f };
*fParam2 = 0.7896f;
return 1;
break;
case 12:
*uParam1 = { -1440.22f, -127.02f, 50f };
*fParam2 = 42f;
return 1;
break;
case 16:
*uParam1 = { 135.055f, -1759.64f, 27.8957f };
*fParam2 = -129f;
return 1;
break;
case 17:
*uParam1 = { 687.6992f, -1744.03f, 28.3624f };
*fParam2 = 267.1409f;
return 1;
break;
case 18:
*uParam1 = { 56.5117f, -744.6122f, 43.1356f };
*fParam2 = 340.0526f;
return 1;
break;
case 19:
*uParam1 = { 506.485f, -1884.967f, 24.764f };
*fParam2 = 22.9566f;
return 1;
break;
case 20:
*uParam1 = { 1555.958f, 953.6136f, 77.2063f };
*fParam2 = 152.8118f;
return 1;
break;
case 21:
*uParam1 = { 0f, 0f, 0f };
*fParam2 = 0f;
return 1;
break;
case 22:
*uParam1 = { 220.72f, -64.4177f, 68.2922f };
*fParam2 = (250.4535f - 360f);
return 1;
break;
case 74:
*uParam1 = { 2048.07f, 3840.84f, 34.2238f };
*fParam2 = 119.603f;
return 1;
break;
case 23:
*uParam1 = { -464.22f, -1592.98f, 38.73f };
*fParam2 = 168f;
return 1;
break;
case 24:
*uParam1 = { (744.79f + 0.0186f), (-465.86f - 0.0114f), 36.6399f };
*fParam2 = 51.7279f;
return 1;
break;
case 67:
*uParam1 = { -9f, 508.1f, 173.6278f };
*fParam2 = 151.2504f;
return 1;
break;
case 25:
*uParam1 = { 72.2278f, -1464.68f, 28.2915f };
*fParam2 = 156.8827f;
return 1;
break;
case 27:
*uParam1 = { 763f, -906f, 24.2312f };
*fParam2 = 7.2736f;
return 1;
break;
case 26:
*uParam1 = { 257.9167f, -1120.786f, 28.3684f };
*fParam2 = 97.2736f;
return 1;
break;
case 28:
*uParam1 = { 422.5858f, -978.6332f, 69.7073f };
*fParam2 = 4f;
return 1;
break;
case 29:
*uParam1 = { 0f, 0f, 0f };
*fParam2 = 0f;
return 1;
break;
case 30:
*uParam1 = { 0f, 0f, 0f };
*fParam2 = 0f;
return 1;
break;
case 31:
*uParam1 = { 0f, 0f, 0f };
*fParam2 = 0f;
return 1;
break;
case 32:
*uParam1 = { 0f, 0f, 0f };
*fParam2 = 0f;
return 1;
break;
case 33:
*uParam1 = { 0f, 0f, 0f };
*fParam2 = 0f;
return 1;
break;
case 34:
*uParam1 = { 0f, 0f, 0f };
*fParam2 = 0f;
return 1;
break;
case 35:
*uParam1 = { 0f, 0f, 0f };
*fParam2 = 0f;
return 1;
break;
case 36:
*uParam1 = { 0f, 0f, 0f };
*fParam2 = 0f;
return 1;
break;
case 37:
*uParam1 = { 0f, 0f, 0f };
*fParam2 = 0f;
return 1;
break;
case 58:
*uParam1 = { 294.8521f, 882.9366f, 197.8527f };
*fParam2 = 162.693f;
return 1;
break;
case 59:
*uParam1 = { -1771.802f, 794.4316f, 138.4211f };
*fParam2 = 128.9946f;
return 1;
break;
case 60:
*uParam1 = { 1495.595f, -1848.821f, 70.2075f };
*fParam2 = 32.2721f;
return 1;
break;
case 38:
*uParam1 = { 2897.554f, 4032.241f, 50.1419f };
*fParam2 = 192.8091f;
return 1;
break;
case 39:
*uParam1 = { 1973.355f, 3818.204f, 32.005f };
*fParam2 = 32f;
return 1;
break;
case 40:
*uParam1 = { 1973.355f, 3818.204f, 32.005f };
*fParam2 = 32f;
return 1;
break;
case 41:
*uParam1 = { 1397f, 3725.8f, 33.0673f };
*fParam2 = -3.7534f;
return 1;
break;
case 42:
*uParam1 = { Vector(4.0205f, -2975.341f, 798.4536f) + Vector(1f, 0f, 0f) };
*fParam2 = 90f;
return 1;
break;
case 43:
*uParam1 = { 709.0244f, -2916.479f, 5.0589f };
*fParam2 = 355.326f;
return 1;
break;
case 44:
*uParam1 = { 643.5248f, -2917.325f, 5.1337f };
*fParam2 = 334.1068f;
return 1;
break;
case 45:
*uParam1 = { 595.2742f, -2819.183f, 5.0559f };
*fParam2 = 46.8853f;
return 1;
break;
case 46:
*uParam1 = { 0f, 0f, 0f };
*fParam2 = 0f;
return 1;
break;
case 47:
*uParam1 = { 314.4171f, 965.207f, 208.4024f };
*fParam2 = 165.9421f;
return 1;
break;
case 49:
*uParam1 = { 3321.537f, 4975.455f, 25.9097f };
*fParam2 = 221.228f;
return 1;
break;
case 48:
*uParam1 = { -111.1318f, 6316.479f, 30.4904f };
*fParam2 = (42f + 180f);
return 1;
break;
case 50:
*uParam1 = { -731.3261f, 106.68f, 54.7169f };
*fParam2 = 98.9764f;
return 1;
break;
case 51:
*uParam1 = { -1257.5f, -526.9999f, 30.2361f };
*fParam2 = 220.9554f;
return 1;
break;
case 52:
*uParam1 = { 736.9869f, -2050.678f, 28.2718f };
*fParam2 = 83.9922f;
return 1;
break;
case 66:
*uParam1 = { 262.5499f, -2540.15f, 4.8433f };
*fParam2 = -64.1366f;
return 1;
break;
case 53:
*uParam1 = { 0f, 0f, 0f };
*fParam2 = 0f;
return 1;
break;
case 55:
*uParam1 = { -315.7789f, 6201.355f, 30.4322f };
*fParam2 = 127.7547f;
return 1;
break;
case 56:
*uParam1 = { 118.0988f, -1264.916f, 32.3637f };
*fParam2 = -63f;
return 1;
break;
case 57:
*uParam1 = { 37.5988f, -1351.52f, 28.2954f };
*fParam2 = 90.0339f;
return 1;
break;
case 61:
*uParam1 = { -558.2693f, 261.1167f, 82.07f };
*fParam2 = 84.6231f;
return 1;
break;
case 62:
*uParam1 = { -196.9999f, 507.9999f, 132.477f };
*fParam2 = 99.6049f;
return 1;
break;
case 63:
*uParam1 = { 1312.01f, -1645.87f, 51.2f };
*fParam2 = 120f;
return 1;
break;
case 68:
*uParam1 = { 0f, 0f, 0f };
*fParam2 = 0f;
return 1;
break;
case 69:
*uParam1 = { -818.7374f, 6.4824f, 41.2432f };
*fParam2 = 211.8223f;
return 1;
break;
case 64:
*uParam1 = { 2091.258f, 4714.852f, 40.1936f };
*fParam2 = 136.0867f;
return 1;
break;
case 54:
*uParam1 = { 1762.59f, 3247.212f, 40.735f };
*fParam2 = 27.0648f;
return 1;
break;
case 65:
*uParam1 = { 1764.013f, 3252.902f, 40.735f };
*fParam2 = 27.0648f;
return 1;
break;
case 70:
*uParam1 = { 0f, 0f, 0f };
*fParam2 = 0f;
return 1;
break;
case 71:
*uParam1 = { 0f, 0f, 0f };
*fParam2 = 0f;
return 1;
break;
case 72:
*uParam1 = { 0f, 0f, 0f };
*fParam2 = 0f;
return 1;
break;
case 73:
*uParam1 = { 0f, 0f, 0f };
*fParam2 = 0f;
return 1;
break;
default:
break;
}
return 0;
}
int func_246()
{
var uVar0;
func_256(&uVar0, unk_0xC5B07C33AC7BB174());
func_255(&uVar0, unk_0x65DA628D62901275());
func_254(&uVar0, unk_0x34CEB9721AC6A0A9());
func_249(&uVar0, unk_0xC9A0B68BA813CF99());
func_248(&uVar0, unk_0x897D202BD69186D5());
func_247(&uVar0, unk_0x56EBDF0E39D83471());
return uVar0;
}
void func_247(var uParam0, int iParam1)
{
if (iParam1 <= 0)
{
return;
}
if (iParam1 > 2043 || iParam1 < 1979)
{
return;
}
*uParam0 = (*uParam0 - *uParam0 & 2080374784);
if (iParam1 < 2011)
{
*uParam0 = (*uParam0 || shift_left((2011 - iParam1), 26));
*uParam0 |= -2147483648;
}
else
{
*uParam0 = (*uParam0 || shift_left((iParam1 - 2011), 26));
*uParam0 = (*uParam0 - *uParam0 & -2147483648);
}
}
void func_248(var uParam0, int iParam1)
{
if (iParam1 < 0 || iParam1 > 11)
{
return;
}
*uParam0 = (*uParam0 - *uParam0 & 15);
*uParam0 = (*uParam0 || iParam1);
}
void func_249(var uParam0, int iParam1)
{
int iVar0;
int iVar1;
iVar0 = func_253(*uParam0);
iVar1 = func_251(*uParam0);
if (iParam1 < 1 || iParam1 > func_250(iVar0, iVar1))
{
return;
}
*uParam0 = (*uParam0 - *uParam0 & 496);
*uParam0 = (*uParam0 || shift_left(iParam1, 4));
}
int func_250(int iParam0, int iParam1)
{
if (iParam1 < 0)
{
iParam1 = 0;
}
switch (iParam0)
{
case 0:
case 2:
case 4:
case 6:
case 7:
case 9:
case 11:
return 31;
break;
case 3:
case 5:
case 8:
case 10:
return 30;
break;
case 1:
if ((iParam1 % 4) == 0)
{
if ((iParam1 % 100) != 0)
{
return 29;
}
else if ((iParam1 % 400) == 0)
{
return 29;
}
}
return 28;
break;
}
return 30;
}
var func_251(int iParam0)
{
return (shift_right(iParam0, 26) & 31 * func_252(unk_0x05EFB6A616B6FADE(iParam0, 31), -1, 1)) + 2011;
}
int func_252(bool bParam0, int iParam1, int iParam2)
{
if (bParam0)
{
return iParam1;
}
return iParam2;
}
int func_253(var uParam0)
{
return uParam0 & 15;
}
void func_254(var uParam0, int iParam1)
{
if (iParam1 < 0 || iParam1 > 24)
{
return;
}
*uParam0 = (*uParam0 - *uParam0 & 15872);
*uParam0 = (*uParam0 || shift_left(iParam1, 9));
}
void func_255(var uParam0, int iParam1)
{
if (iParam1 < 0 || iParam1 >= 60)
{
return;
}
*uParam0 = (*uParam0 - *uParam0 & 1032192);
*uParam0 = (*uParam0 || shift_left(iParam1, 14));
}
void func_256(var uParam0, int iParam1)
{
if (iParam1 < 0 || iParam1 >= 60)
{
return;
}
*uParam0 = (*uParam0 - *uParam0 & 66060288);
*uParam0 = (*uParam0 || shift_left(iParam1, 20));
}
void func_257(var uParam0, int iParam1)
{
int iVar0;
int iVar1;
vector3 vVar2;
float fVar3;
if (iParam1 == 94)
{
return;
}
iVar0 = 0;
while (iVar0 < 3)
{
iVar1 = Global_106070.f_18505[iVar0];
if ((((iVar1 == 8 || iVar1 == 9) || iVar1 == 10) || (((iVar1 == 11 || iVar1 == 34) || iVar1 == 72) || iVar1 == 73)) && !unk_0x05EFB6A616B6FADE(Global_106070.f_9057.f_99.f_219[0], 9))
{
}
else
{
vVar2 = { 0f, 0f, 0f };
fVar3 = 0f;
if (!func_245(Global_106070.f_18505[iVar0], &vVar2, &fVar3))
{
Global_106070.f_18505[iVar0] = 318;
func_258(&(uParam0->f_2276[iVar0]));
uParam0->f_2280[iVar0 /*3*/] = { 0f, 0f, 0f };
uParam0->f_2290[iVar0] = 0f;
uParam0->f_2294[iVar0] = 0;
uParam0->f_2298[iVar0 /*3*/] = { 0f, 0f, 0f };
uParam0->f_2308[iVar0] = 0;
Global_90717[iVar0 /*29*/] = { 0f, 0f, 0f };
Global_90717[iVar0 /*29*/].f_9 = 0f;
Global_90717[iVar0 /*29*/].f_12 = 0f;
Global_90717[iVar0 /*29*/].f_3 = { 0f, 0f, 0f };
Global_90717[iVar0 /*29*/].f_10 = 0f;
Global_90717[iVar0 /*29*/].f_13 = 0f;
Global_90717[iVar0 /*29*/].f_6 = { 0f, 0f, 0f };
Global_90717[iVar0 /*29*/].f_11 = 0f;
Global_90717[iVar0 /*29*/].f_14 = 0f;
Global_90717[iVar0 /*29*/].f_17 = { 0f, 0f, 0f };
Global_90717[iVar0 /*29*/].f_26 = 0f;
Global_90717[iVar0 /*29*/].f_20 = { 0f, 0f, 0f };
Global_90717[iVar0 /*29*/].f_27 = 0f;
Global_90717[iVar0 /*29*/].f_23 = { 0f, 0f, 0f };
Global_90717[iVar0 /*29*/].f_28 = 0f;
}
}
iVar0++;
}
}
void func_258(var uParam0)
{
*uParam0 = -15;
}
void func_259(int iParam0, int iParam1)
{
int iVar0;
if (iParam0 == 94 || iParam0 == -1)
{
return;
}
if (iParam1 && !Global_106070.f_9057.f_330[iParam0 /*6*/])
{
if (!unk_0x05EFB6A616B6FADE(Global_84115[iParam0 /*34*/].f_15, 6))
{
iVar0 = func_268(iParam0);
if (iVar0 != 322)
{
func_264(iVar0, 0, 0);
}
}
func_260(iParam0, func_263(iParam0), 0);
if (iParam0 == 53)
{
if (unk_0xC29B8FF8374918FD())
{
unk_0x405AF1A4321059A9();
}
}
}
Global_106070.f_9057.f_330[iParam0 /*6*/] = iParam1;
}
void func_260(int iParam0, int iParam1, int iParam2)
{
if (iParam2 == 0)
{
func_262(iParam0, 0);
}
Global_106070.f_9057.f_330[iParam0 /*6*/].f_3 = func_261();
Global_106070.f_9988.f_21++;
if (iParam2 == 0)
{
if (!unk_0x05EFB6A616B6FADE(Global_84115[iParam0 /*34*/].f_15, 7))
{
if (iParam1 != joaat("cities_passed"))
{
unk_0x93180BE33E7149EF(iParam1, Global_106070.f_9988.f_21, 1);
if (!Global_71474)
{
unk_0xCEF3BD89444715A5(iParam1, Global_106070.f_9057.f_330[iParam0 /*6*/].f_4, 0);
}
}
}
}
}
int func_261()
{
return (Global_106070.f_9988.f_21 + Global_106070.f_18546.f_380);
}
void func_262(var uParam0, bool bParam1)
{
int iVar0;
int iVar1;
int iVar2;
iVar0 = 55;
if (bParam1)
{
iVar1 = uParam0;
if (iVar1 == 46)
{
iVar0 = 35;
}
else if (iVar1 == 49)
{
iVar0 = 36;
}
else if (iVar1 == 50)
{
iVar0 = 37;
}
else if (iVar1 == 8)
{
iVar0 = 38;
}
else if (iVar1 == 16)
{
iVar0 = 39;
}
else if (iVar1 == 38)
{
iVar0 = 40;
}
else if (iVar1 == 39)
{
iVar0 = 41;
}
else if (iVar1 == 40)
{
iVar0 = 42;
}
else if (iVar1 == 41)
{
iVar0 = 43;
}
else if (iVar1 == 42)
{
iVar0 = 44;
}
else if (iVar1 == 43)
{
iVar0 = 45;
}
else if (iVar1 == 20)
{
iVar0 = 46;
}
}
else
{
iVar2 = uParam0;
if (iVar2 == 53)
{
iVar0 = 0;
}
else if (iVar2 == 1)
{
iVar0 = 1;
}
else if (iVar2 == 2)
{
iVar0 = 2;
}
else if (iVar2 == 17)
{
iVar0 = 3;
}
else if (iVar2 == 19)
{
iVar0 = 4;
}
else if (iVar2 == 43)
{
iVar0 = 5;
}
else if (iVar2 == 44)
{
iVar0 = 6;
}
else if (iVar2 == 63)
{
iVar0 = 8;
}
else if (iVar2 == 12)
{
iVar0 = 9;
}
else if (iVar2 == 13)
{
iVar0 = 10;
}
else if (iVar2 == 64)
{
iVar0 = 11;
}
else if (iVar2 == 20)
{
iVar0 = 12;
}
else if (iVar2 == 30)
{
iVar0 = 13;
}
else if (iVar2 == 31)
{
iVar0 = 14;
}
else if (iVar2 == 41)
{
iVar0 = 15;
}
else if (iVar2 == 38)
{
iVar0 = 16;
}
else if (iVar2 == 9)
{
iVar0 = 18;
}
else if (iVar2 == 59)
{
iVar0 = 19;
}
else if (iVar2 == 45)
{
iVar0 = 20;
}
else if (iVar2 == 10)
{
iVar0 = 21;
}
else if (iVar2 == 14)
{
iVar0 = 22;
}
else if (iVar2 == 16)
{
iVar0 = 24;
}
else if (iVar2 == 39)
{
iVar0 = 25;
}
else if (iVar2 == 46)
{
iVar0 = 26;
}
else if (iVar2 == 60)
{
iVar0 = 27;
}
else if (iVar2 == 22)
{
iVar0 = 28;
}
else if (iVar2 == 48)
{
iVar0 = 30;
}
else if (iVar2 == 61)
{
iVar0 = 31;
}
else if (iVar2 == 49)
{
iVar0 = 32;
}
else if (iVar2 == 27)
{
iVar0 = 34;
}
else if (iVar2 == 3)
{
iVar0 = 47;
}
else if (iVar2 == 4)
{
iVar0 = 48;
}
else if (iVar2 == 5)
{
iVar0 = 49;
}
else if (iVar2 == 6)
{
iVar0 = 50;
}
else if (iVar2 == 7)
{
iVar0 = 51;
}
else if (iVar2 == 58)
{
iVar0 = 53;
}
else if (iVar2 == 90)
{
iVar0 = 7;
}
else if (iVar2 == 74 || iVar2 == 75)
{
iVar0 = 17;
}
else if (iVar2 == 93)
{
iVar0 = 23;
}
else if (iVar2 == 69 || iVar2 == 70)
{
iVar0 = 29;
}
else if (iVar2 == 84 || iVar2 == 85)
{
iVar0 = 33;
}
}
if (iVar0 != 55)
{
Global_106070.f_20536.f_472 = iVar0;
}
}
int func_263(int iParam0)
{
char cVar0[16];
if (!unk_0x05EFB6A616B6FADE(Global_84115[iParam0 /*34*/].f_15, 7))
{
StringCopy(&cVar0, "FL_CO_", 16);
StringConCat(&cVar0, &(Global_84115[iParam0 /*34*/].f_8), 16);
if (iParam0 == 90)
{
if (Global_106070.f_9057.f_99.f_205[7] == 2)
{
StringConCat(&cVar0, "B", 16);
}
else
{
StringConCat(&cVar0, "A", 16);
}
}
return unk_0xFEB6EEC0545AF7AA(&cVar0);
}
return joaat("cities_passed");
}
void func_264(int iParam0, int iParam1, int iParam2)
{
bool bVar0;
if (iParam0 < 0)
{
}
if (iParam0 == 321 || iParam0 > 321)
{
}
else
{
func_267((891 + iParam0), 1, -1, 1);
}
bVar0 = true;
if (Global_106070.f_10166[iParam0 /*12*/].f_5 == 1)
{
if (Global_106070.f_10166[iParam0 /*12*/].f_6 == 11 || Global_106070.f_10166[iParam0 /*12*/].f_6 == 12)
{
bVar0 = false;
}
}
else
{
Global_106070.f_10166[iParam0 /*12*/].f_5 = 1;
Global_106070.f_10166[iParam0 /*12*/].f_10 = iParam1;
Global_106070.f_10166[iParam0 /*12*/].f_11 = iParam2;
if (iParam0 == 287)
{
unk_0xCEF3BD89444715A5(joaat("num_hidden_packages_0"), 50, 0);
}
if (iParam0 == 286)
{
unk_0xCEF3BD89444715A5(joaat("num_hidden_packages_1"), 50, 0);
}
if (iParam0 == 299)
{
unk_0xCEF3BD89444715A5(joaat("num_hidden_packages_3"), 50, 0);
}
}
if (bVar0)
{
func_265();
}
}
void func_265()
{
int iVar0;
float fVar1;
float fVar2;
float fVar3;
float fVar4;
float fVar5;
float fVar6;
float fVar7;
float fVar8;
int iVar9;
iVar0 = 0;
Global_105806 = 0;
Global_105807 = 0;
Global_105808 = 0;
Global_105809 = 0;
Global_105810 = 0;
Global_105811 = 0;
Global_105812 = 0;
fVar1 = 0f;
fVar2 = 0f;
fVar3 = 0f;
fVar4 = 0f;
fVar5 = 0f;
fVar6 = 0f;
fVar7 = 0f;
fVar8 = Global_106070.f_10166.f_3853;
Global_106070.f_10166.f_3853 = 0f;
while (iVar0 < 321)
{
if (Global_106070.f_10166[iVar0 /*12*/].f_5 == 1)
{
switch (Global_106070.f_10166[iVar0 /*12*/].f_6)
{
case 1:
Global_105806++;
fVar1 = (fVar1 + Global_106070.f_10166[iVar0 /*12*/].f_4);
break;
case 3:
Global_105807++;
fVar2 = (fVar2 + Global_106070.f_10166[iVar0 /*12*/].f_4);
break;
case 5:
Global_105808++;
fVar3 = (fVar3 + Global_106070.f_10166[iVar0 /*12*/].f_4);
break;
case 7:
Global_105809++;
fVar4 = (fVar4 + Global_106070.f_10166[iVar0 /*12*/].f_4);
break;
case 9:
Global_105810++;
fVar5 = (fVar5 + (Global_106070.f_10166[iVar0 /*12*/].f_4 * 4f));
break;
case 11:
Global_105811++;
fVar6 = (fVar6 + Global_106070.f_10166[iVar0 /*12*/].f_4);
break;
case 13:
Global_105812++;
fVar7 = (fVar7 + Global_106070.f_10166[iVar0 /*12*/].f_4);
break;
default:
break;
}
}
iVar0++;
}
if (Global_105789 > 0)
{
if (Global_105806 == Global_105789)
{
fVar1 = 55f;
}
}
if (Global_105790 > 0)
{
if (Global_105807 == Global_105790)
{
fVar2 = 10f;
}
}
if (Global_105791 > 0)
{
if (Global_105808 == Global_105791)
{
fVar3 = 0f;
}
}
if (Global_105792 > 0)
{
if (Global_105809 == Global_105792)
{
fVar4 = 10f;
}
}
if (Global_105793 > 0)
{
if (((Global_105810 == Global_105793 || (Global_105793 * 10 / Global_105810) < 41) || Global_105810 > Global_105796) || Global_105810 == Global_105796)
{
if (!unk_0x05EFB6A616B6FADE(Global_106070.f_10166.f_3856, 14))
{
if (Global_105810 == Global_105793)
{
unk_0xCEF3BD89444715A5(joaat("num_rndevents_completed"), Global_105793, 0);
unk_0x2BCFB39E86340DAA(&(Global_106070.f_10166.f_3856), 14);
}
}
fVar5 = 5f;
}
}
if (Global_105794 > 0)
{
if (Global_105811 == Global_105794)
{
fVar6 = 15f;
}
}
if (Global_105795 > 0)
{
if (Global_105812 == Global_105795)
{
fVar7 = 5f;
}
}
Global_106070.f_10166.f_3853 = ((((((fVar1 + fVar2) + fVar3) + fVar4) + fVar5) + fVar6) + fVar7);
if (Global_105810 > Global_105796 || Global_105810 == Global_105796)
{
iVar9 = Global_105796;
}
else
{
iVar9 = Global_105810;
}
unk_0x93180BE33E7149EF(joaat("num_missions_completed"), Global_105806, 1);
unk_0x93180BE33E7149EF(joaat("num_missions_available"), Global_105789, 1);
unk_0x93180BE33E7149EF(joaat("num_minigames_completed"), Global_105807, 1);
unk_0x93180BE33E7149EF(joaat("num_minigames_available"), Global_105790, 1);
unk_0x93180BE33E7149EF(joaat("num_oddjobs_completed"), Global_105808, 1);
unk_0x93180BE33E7149EF(joaat("num_oddjobs_available"), Global_105791, 1);
unk_0x93180BE33E7149EF(joaat("num_rndpeople_completed"), Global_105809, 1);
unk_0x93180BE33E7149EF(joaat("num_rndpeople_available"), Global_105792, 1);
unk_0x93180BE33E7149EF(joaat("num_rndevents_completed"), iVar9, 1);
unk_0x93180BE33E7149EF(joaat("num_rndevents_available"), Global_105796, 1);
unk_0x93180BE33E7149EF(joaat("num_misc_completed"), (Global_105812 + Global_105811), 1);
unk_0x93180BE33E7149EF(joaat("num_misc_available"), (Global_105795 + Global_105794), 1);
Global_105813 = (Global_105806 * 100 / Global_105789);
Global_105815 = ((Global_105808 + Global_105807) * 100 / (Global_105791 + Global_105790));
Global_105814 = ((Global_105809 + iVar9) * 100 / (Global_105792 + Global_105796));
Global_105816 = ((Global_105811 + Global_105812) * 100 / (Global_105794 + Global_105795));
unk_0x0D3D00C75484323C(joaat("total_progress_made"), Global_106070.f_10166.f_3853, 1);
unk_0x93180BE33E7149EF(joaat("percent_story_missions"), Global_105813, 1);
unk_0x93180BE33E7149EF(joaat("percent_ambient_missions"), Global_105814, 1);
unk_0x93180BE33E7149EF(joaat("percent_oddjobs"), Global_105815, 1);
if (fVar8 > 0f && floor(fVar8) < floor(Global_106070.f_10166.f_3853))
{
func_266(13, floor(Global_106070.f_10166.f_3853));
}
if (!unk_0xC253B4B0BD2DE4DD())
{
if (!Global_71205)
{
if (func_21() == 2 == 0 && !unk_0x4C9BACA8D249CB13())
{
if (unk_0x4F3E20635369D110())
{
Global_105804 = 0;
}
if (!Global_56181)
{
func_104();
}
}
}
}
}
int func_266(int iParam0, int iParam1)
{
int iVar0;
if (iParam0 < 0)
{
return 0;
}
if (iParam0 > 78)
{
return 0;
}
if (iParam1 <= 0 || iParam1 > 100)
{
return 0;
}
iVar0 = unk_0x710B605F9A596359(iParam0);
if (iParam1 > iVar0)
{
return unk_0x1BADC756CBF95E97(iParam0, iParam1);
}
return 0;
}
int func_267(int iParam0, bool bParam1, int iParam2, int iParam3)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
int iVar9;
int iVar10;
int iVar11;
int iVar12;
int iVar13;
int iVar14;
int iVar15;
int iVar16;
int iVar17;
int iVar18;
int iVar19;
if (iParam2 == -1)
{
iParam2 = func_18();
}
iVar0 = 0;
if (iParam0 >= 0 && iParam0 < 192)
{
iVar2 = unk_0xF84B918DCDA549C0((iParam0 - 0), 0, 1, iParam2);
iVar1 = ((iParam0 - 0) - unk_0x12FA763CEA4960B5((iParam0 - 0)) * 64);
iVar0 = unk_0x6582D084521A871B(iVar2, bParam1, iVar1, iParam3);
}
else if (iParam0 >= 192 && iParam0 < 384)
{
iVar3 = unk_0xF84B918DCDA549C0((iParam0 - 192), 1, 1, iParam2);
iVar1 = ((iParam0 - 192) - unk_0x12FA763CEA4960B5((iParam0 - 192)) * 64);
iVar0 = unk_0x6582D084521A871B(iVar3, bParam1, iVar1, iParam3);
}
else if (iParam0 >= 513 && iParam0 < 705)
{
iVar4 = unk_0xF84B918DCDA549C0((iParam0 - 513), 0, 0, 0);
iVar1 = ((iParam0 - 513) - unk_0x12FA763CEA4960B5((iParam0 - 513)) * 64);
iVar0 = unk_0x6582D084521A871B(iVar4, bParam1, iVar1, iParam3);
}
else if (iParam0 >= 705 && iParam0 < 1281)
{
iVar5 = unk_0xF84B918DCDA549C0((iParam0 - 705), 1, 0, 0);
iVar1 = ((iParam0 - 705) - unk_0x12FA763CEA4960B5((iParam0 - 705)) * 64);
iVar0 = unk_0x6582D084521A871B(iVar5, bParam1, iVar1, iParam3);
}
else if (iParam0 >= 3111 && iParam0 < 3879)
{
iVar6 = unk_0x7D93C2914375D70B((iParam0 - 3111), 0, 1, iParam2);
iVar1 = ((iParam0 - 3111) - unk_0x12FA763CEA4960B5((iParam0 - 3111)) * 64);
iVar0 = unk_0x6582D084521A871B(iVar6, bParam1, iVar1, iParam3);
}
else if (iParam0 >= 2919 && iParam0 < 3111)
{
iVar7 = unk_0x7D93C2914375D70B((iParam0 - 2919), 0, 0, 0);
iVar1 = ((iParam0 - 2919) - unk_0x12FA763CEA4960B5((iParam0 - 2919)) * 64);
iVar0 = unk_0x6582D084521A871B(iVar7, bParam1, iVar1, iParam3);
}
else if (iParam0 >= 4207 && iParam0 < 4335)
{
iVar8 = unk_0xD7C999E88C211597((iParam0 - 4207), 0, 1, iParam2, "_NGPSTAT_BOOL");
iVar1 = ((iParam0 - 4207) - unk_0x12FA763CEA4960B5((iParam0 - 4207)) * 64);
iVar0 = unk_0x6582D084521A871B(iVar8, bParam1, iVar1, iParam3);
}
else if (iParam0 >= 4335 && iParam0 < 4399)
{
iVar9 = unk_0xD7C999E88C211597((iParam0 - 4335), 0, 0, 0, "_NGPSTAT_BOOL");
iVar1 = ((iParam0 - 4335) - unk_0x12FA763CEA4960B5((iParam0 - 4335)) * 64);
iVar0 = unk_0x6582D084521A871B(iVar9, bParam1, iVar1, iParam3);
}
else if (iParam0 >= 6029 && iParam0 < 6413)
{
iVar10 = unk_0xD7C999E88C211597((iParam0 - 6029), 0, 1, iParam2, "_NGTATPSTAT_BOOL");
iVar1 = ((iParam0 - 6029) - unk_0x12FA763CEA4960B5((iParam0 - 6029)) * 64);
iVar0 = unk_0x6582D084521A871B(iVar10, bParam1, iVar1, iParam3);
}
else if (iParam0 >= 7385 && iParam0 < 7641)
{
iVar11 = unk_0xD7C999E88C211597((iParam0 - 7385), 0, 1, iParam2, "_NGDLCPSTAT_BOOL");
iVar1 = ((iParam0 - 7385) - unk_0x12FA763CEA4960B5((iParam0 - 7385)) * 64);
iVar0 = unk_0x6582D084521A871B(iVar11, bParam1, iVar1, iParam3);
}
else if (iParam0 >= 7321 && iParam0 < 7385)
{
iVar12 = unk_0xD7C999E88C211597((iParam0 - 7321), 0, 0, 0, "_NGDLCPSTAT_BOOL");
iVar1 = ((iParam0 - 7321) - unk_0x12FA763CEA4960B5((iParam0 - 7321)) * 64);
iVar0 = unk_0x6582D084521A871B(iVar12, bParam1, iVar1, iParam3);
}
else if (iParam0 >= 9361 && iParam0 < 9553)
{
iVar13 = unk_0xD7C999E88C211597((iParam0 - 9361), 0, 1, iParam2, "_DLCBIKEPSTAT_BOOL");
iVar1 = ((iParam0 - 9361) - unk_0x12FA763CEA4960B5((iParam0 - 9361)) * 64);
iVar0 = unk_0x6582D084521A871B(iVar13, bParam1, iVar1, iParam3);
}
else if (iParam0 >= 15369 && iParam0 < 15561)
{
iVar14 = unk_0xD7C999E88C211597((iParam0 - 15369), 0, 1, iParam2, "_DLCGUNPSTAT_BOOL");
iVar1 = ((iParam0 - 15369) - unk_0x12FA763CEA4960B5((iParam0 - 15369)) * 64);
iVar0 = unk_0x6582D084521A871B(iVar14, bParam1, iVar1, iParam3);
}
else if (iParam0 >= 15562 && iParam0 < 15946)
{
iVar15 = unk_0xD7C999E88C211597((iParam0 - 15562), 0, 1, iParam2, "_GUNTATPSTAT_BOOL");
iVar1 = ((iParam0 - 15562) - unk_0x12FA763CEA4960B5((iParam0 - 15562)) * 64);
iVar0 = unk_0x6582D084521A871B(iVar15, bParam1, iVar1, iParam3);
}
else if (iParam0 >= 15946 && iParam0 < 16010)
{
iVar16 = unk_0xD7C999E88C211597((iParam0 - 15946), 0, 1, iParam2, "_DLCSMUGCHARPSTAT_BOOL");
iVar1 = ((iParam0 - 15946) - unk_0x12FA763CEA4960B5((iParam0 - 15946)) * 64);
iVar0 = unk_0x6582D084521A871B(iVar16, bParam1, iVar1, iParam3);
}
else if (iParam0 >= 18098 && iParam0 < 18162)
{
iVar17 = unk_0xD7C999E88C211597((iParam0 - 18098), 0, 1, iParam2, "_GANGOPSPSTAT_BOOL");
iVar1 = ((iParam0 - 18098) - unk_0x12FA763CEA4960B5((iParam0 - 18098)) * 64);
iVar0 = unk_0x6582D084521A871B(iVar17, bParam1, iVar1, iParam3);
}
else if (iParam0 >= 22066 && iParam0 < 22194)
{
iVar18 = unk_0xD7C999E88C211597((iParam0 - 22066), 0, 1, iParam2, "_BUSINESSBATPSTAT_BOOL");
iVar1 = ((iParam0 - 22066) - unk_0x12FA763CEA4960B5((iParam0 - 22066)) * 64);
iVar0 = unk_0x6582D084521A871B(iVar18, bParam1, iVar1, iParam3);
}
else if (iParam0 >= 24962 && iParam0 < 25538)
{
iVar19 = unk_0xD7C999E88C211597((iParam0 - 24962), 0, 1, iParam2, "_ARENAWARSPSTAT_BOOL");
iVar1 = ((iParam0 - 24962) - unk_0x12FA763CEA4960B5((iParam0 - 24962)) * 64);
iVar0 = unk_0x6582D084521A871B(iVar19, bParam1, iVar1, iParam3);
}
return iVar0;
}
int func_268(int iParam0)
{
switch (iParam0)
{
case 0:
return 0;
break;
case 1:
return 1;
break;
case 2:
return 2;
break;
case 3:
return 144;
break;
case 4:
return 145;
break;
case 5:
return 146;
break;
case 6:
return 147;
break;
case 7:
return 148;
break;
case 8:
return 3;
break;
case 9:
return 4;
break;
case 10:
return 5;
break;
case 11:
return 6;
break;
case 12:
return 7;
break;
case 13:
return 8;
break;
case 14:
return 9;
break;
case 15:
return 10;
break;
case 16:
return 11;
break;
case 17:
return 12;
break;
case 18:
return 13;
break;
case 19:
return 14;
break;
case 20:
return 15;
break;
case 21:
return 16;
break;
case 22:
return 17;
break;
case 24:
return 65;
break;
case 25:
return 65;
break;
case 27:
return 65;
break;
case 29:
return 18;
break;
case 30:
return 19;
break;
case 31:
return 20;
break;
case 33:
return 21;
break;
case 34:
return 22;
break;
case 36:
return 24;
break;
case 37:
return 25;
break;
case 38:
return 26;
break;
case 39:
return 27;
break;
case 40:
return 28;
break;
case 41:
return 29;
break;
case 42:
return 30;
break;
case 43:
return 31;
break;
case 44:
return 32;
break;
case 45:
return 39;
break;
case 46:
return 34;
break;
case 47:
return 35;
break;
case 48:
return 36;
break;
case 49:
return 37;
break;
case 53:
return 38;
break;
case 59:
return 40;
break;
case 60:
return 41;
break;
case 61:
return 42;
break;
case 62:
return 43;
break;
case 63:
return 44;
break;
case 64:
return 45;
break;
case 65:
return 46;
break;
case 66:
return 47;
break;
case 67:
return 48;
break;
case 69:
return 49;
break;
case 70:
return 49;
break;
case 71:
return 60;
break;
case 72:
return 59;
break;
case 74:
return 61;
break;
case 75:
return 61;
break;
case 76:
return 51;
break;
case 77:
return 50;
break;
case 78:
return 62;
break;
case 79:
return 62;
break;
case 80:
return 63;
break;
case 81:
return 63;
break;
case 82:
return 63;
break;
case 83:
return 63;
break;
case 84:
return 52;
break;
case 85:
return 52;
break;
case 86:
return 53;
break;
case 87:
return 54;
break;
case 89:
return 54;
break;
case 90:
return 55;
break;
case 91:
return 57;
break;
case 92:
return 56;
break;
case 93:
return 58;
break;
}
return 322;
}
void func_269(int iParam0)
{
int iVar0;
iVar0 = func_270(61);
Global_2414200[iVar0 /*83*/] = 61;
StringCopy(&(Global_2414200[iVar0 /*83*/].f_18[0 /*16*/]), "", 64);
switch (iParam0)
{
case 0:
StringCopy(&(Global_2414200[iVar0 /*83*/].f_1), "AF_MICHAEL", 64);
break;
case 1:
StringCopy(&(Global_2414200[iVar0 /*83*/].f_1), "AF_FRANKLIN", 64);
break;
case 2:
StringCopy(&(Global_2414200[iVar0 /*83*/].f_1), "AF_TREVOR", 64);
break;
default:
break;
}
}
int func_270(int iParam0)
{
int iVar0;
int iVar1;
iVar0 = 19;
iVar1 = 0;
while (iVar1 <= 19)
{
if (Global_2414200[iVar1 /*83*/] == iParam0)
{
iVar0 = iVar1;
iVar1 = 20;
}
else if (Global_2414200[iVar1 /*83*/] == 0)
{
iVar0 = iVar1;
iVar1 = 20;
}
iVar1++;
}
return iVar0;
}
void func_271()
{
int iVar0;
iVar0 = func_270(59);
Global_2414200[iVar0 /*83*/] = 59;
StringCopy(&(Global_2414200[iVar0 /*83*/].f_18[0 /*16*/]), "", 64);
}
void func_272()
{
int iVar0;
iVar0 = func_270(58);
Global_2414200[iVar0 /*83*/] = 58;
StringCopy(&(Global_2414200[iVar0 /*83*/].f_18[0 /*16*/]), "", 64);
}
void func_273()
{
int iVar0;
iVar0 = func_270(57);
Global_2414200[iVar0 /*83*/] = 57;
StringCopy(&(Global_2414200[iVar0 /*83*/].f_18[0 /*16*/]), "", 64);
}
void func_274(int iParam0, int iParam1)
{
Global_71473 = iParam1;
if (Global_56175)
{
return;
}
if (Global_56202)
{
Global_56202 = 0;
return;
}
if (unk_0x8B1574454E8C2421(joaat("mission_stat_watcher")) > 0)
{
if (Global_56175)
{
}
Global_56201 = iParam0;
Global_56175 = 1;
Global_56186 = 1;
}
}
void func_275(int iParam0, bool bParam1)
{
switch (iParam0)
{
case 53:
func_276(5, 1);
break;
case 0:
func_276(1, 1);
break;
case 1:
func_276(20, bParam1);
break;
case 2:
func_276(0, bParam1);
break;
case 17:
func_276(12, bParam1);
break;
case 18:
func_276(26, bParam1);
break;
case 19:
func_276(3, bParam1);
break;
case 43:
func_276(13, bParam1);
func_276(23, bParam1);
break;
case 62:
func_276(2, bParam1);
func_276(27, bParam1);
break;
case 63:
func_276(18, bParam1);
break;
case 12:
func_276(25, bParam1);
break;
case 64:
func_276(11, bParam1);
break;
case 20:
func_276(14, bParam1);
func_276(10, bParam1);
break;
case 29:
func_276(7, bParam1);
break;
case 30:
func_276(22, bParam1);
break;
case 31:
func_276(8, bParam1);
break;
case 59:
func_276(21, bParam1);
break;
case 45:
func_276(19, bParam1);
break;
case 42:
func_276(24, bParam1);
break;
case 54:
case 55:
case 56:
case 57:
case 58:
func_276(9, bParam1);
break;
}
}
void func_276(int iParam0, bool bParam1)
{
int iVar0;
iVar0 = iParam0;
if (iVar0 >= 0 && iVar0 <= 31)
{
if (!func_282(iParam0))
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_26406), iVar0);
if (!bParam1)
{
func_280(func_281(iParam0));
if (!func_279(68))
{
func_277("DI_HLP_STRY", 2, 0, 20000, 10000, 7, 0, 208, 0);
}
}
}
}
}
void func_277(char* sParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8)
{
func_278(sParam0, "", iParam1, iParam2, iParam3, iParam4, iParam5, iParam6, iParam7, iParam8);
}
void func_278(char* sParam0, char* sParam1, var uParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, var uParam9)
{
int iVar0;
if (unk_0x3CAC2741CC1A631F(sParam0, ""))
{
return;
}
if (iParam3 < 0)
{
return;
}
if (iParam5 < 500 && iParam5 != -1)
{
return;
}
if (iParam4 < 0 && iParam4 != -1)
{
return;
}
if (iParam6 < 1 || iParam6 > 7)
{
return;
}
if (iParam7 == 235)
{
return;
}
if (iParam8 == 235)
{
return;
}
iVar0 = 0;
while (iVar0 < Global_106070.f_20382.f_145)
{
if (unk_0x3CAC2741CC1A631F(&(Global_106070.f_20382[iVar0 /*16*/]), sParam0))
{
return;
}
iVar0++;
}
if (Global_106070.f_20382.f_145 < 9)
{
StringCopy(&(Global_106070.f_20382[Global_106070.f_20382.f_145 /*16*/]), sParam0, 16);
StringCopy(&(Global_106070.f_20382[Global_106070.f_20382.f_145 /*16*/].f_4), sParam1, 16);
Global_106070.f_20382[Global_106070.f_20382.f_145 /*16*/].f_8 = (unk_0xFD34717937104F1C() + iParam3);
Global_106070.f_20382[Global_106070.f_20382.f_145 /*16*/].f_9 = iParam5;
Global_106070.f_20382[Global_106070.f_20382.f_145 /*16*/].f_11 = iParam6;
Global_106070.f_20382[Global_106070.f_20382.f_145 /*16*/].f_12 = uParam2;
Global_106070.f_20382[Global_106070.f_20382.f_145 /*16*/].f_13 = iParam7;
Global_106070.f_20382[Global_106070.f_20382.f_145 /*16*/].f_14 = iParam8;
Global_106070.f_20382[Global_106070.f_20382.f_145 /*16*/].f_15 = uParam9;
if (iParam4 != -1)
{
Global_106070.f_20382[Global_106070.f_20382.f_145 /*16*/].f_10 = ((unk_0xFD34717937104F1C() + iParam3) + iParam4);
}
else
{
Global_106070.f_20382[Global_106070.f_20382.f_145 /*16*/].f_10 = -1;
}
Global_106070.f_20382.f_145++;
func_58();
}
}
int func_279(int iParam0)
{
int iVar0;
int iVar1;
iVar0 = iParam0;
iVar1 = 0;
while (iVar0 > 31)
{
iVar0 = (iVar0 - 32);
iVar1++;
}
if (iVar1 < 3)
{
return unk_0x05EFB6A616B6FADE(Global_106070.f_20382.f_150[iVar1], iVar0);
}
return 0;
}
void func_280(char* sParam0)
{
unk_0x59FF6261546DDD52("");
unk_0x61B2763AF763D5C2("CHAR_ACTING_UP", "CHAR_ACTING_UP", 0, 0, "DI_FEED_CHAR", sParam0);
}
char* func_281(int iParam0)
{
switch (iParam0)
{
case 0:
return "CM_STOMIC";
break;
case 1:
return "CM_STOFRA";
break;
case 2:
return "CM_STOTRE";
break;
case 3:
return "CM_STOAMA";
break;
case 4:
return "CM_STOBEV";
break;
case 5:
return "CM_STOBRA";
break;
case 6:
return "CM_STOCHR";
break;
case 7:
return "CM_STODAV";
break;
case 8:
return "CM_STODEV";
break;
case 9:
return "CM_STODRF";
break;
case 10:
return "CM_STOFAB";
break;
case 11:
return "CM_STOFLO";
break;
case 12:
return "CM_STOJIM";
break;
case 13:
return "CM_STOLAM";
break;
case 14:
return "CM_STOLAZ";
break;
case 15:
return "CM_STOLES";
break;
case 16:
return "CM_STOMAU";
break;
case 17:
return "CM_STOTHO";
break;
case 18:
return "CM_STONER";
break;
case 19:
return "CM_STOPAT";
break;
case 20:
return "CM_STOSIM";
break;
case 21:
return "CM_STOSOL";
break;
case 22:
return "CM_STOSTE";
break;
case 23:
return "CM_STOSTR";
break;
case 24:
return "CM_STOTAN";
break;
case 25:
return "CM_STOTAO";
break;
case 26:
return "CM_STOTRA";
break;
case 27:
return "CM_STOWAD";
break;
}
return "ERROR!";
}
int func_282(int iParam0)
{
if (iParam0 != -1 && iParam0 != 28)
{
return unk_0x05EFB6A616B6FADE(Global_106070.f_26406, iParam0);
}
return 0;
}
struct<2> func_283(int iParam0)
{
struct<2> Var0;
StringCopy(&Var0, "M_", 8);
StringConCat(&Var0, &(Global_84115[iParam0 /*34*/].f_8), 8);
if (iParam0 == 90)
{
switch (Global_106070.f_9057.f_99.f_205[7])
{
case 1:
StringConCat(&Var0, "A", 8);
break;
case 2:
StringConCat(&Var0, "B", 8);
break;
default:
StringConCat(&Var0, "A", 8);
break;
}
}
return Var0;
}
void func_284(char* sParam0, int iParam1)
{
unk_0x003FD085FF48F510(joaat("sp_last_mission_name"), sParam0, 1);
if (unk_0x05EFB6A616B6FADE(iParam1, 0))
{
unk_0x003FD085FF48F510(joaat("sp0_last_mission_name"), sParam0, 1);
}
if (unk_0x05EFB6A616B6FADE(iParam1, 1))
{
unk_0x003FD085FF48F510(joaat("sp1_last_mission_name"), sParam0, 1);
}
if (unk_0x05EFB6A616B6FADE(iParam1, 2))
{
unk_0x003FD085FF48F510(joaat("sp2_last_mission_name"), sParam0, 1);
}
}
void func_285(int iParam0)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
if (unk_0x05EFB6A616B6FADE(Global_84115[iParam0 /*34*/].f_15, 14))
{
iVar0 = func_292(iParam0);
if (iVar0 != -1)
{
iVar1 = Global_106070.f_9057.f_99.f_205[func_103(iVar0)];
iVar2 = 0;
while (iVar2 < Global_89356[iVar1 /*19*/])
{
iVar3 = Global_106070.f_1.f_12[iVar1 /*6*/][iVar2];
if (!unk_0x05EFB6A616B6FADE(Global_106070.f_1.f_118, iVar3))
{
Global_106070.f_1.f_73[iVar3 /*3*/].f_1 = Global_89339[iVar2 /*3*/].f_1;
Global_106070.f_1.f_73[iVar3 /*3*/].f_2 = Global_89339[iVar2 /*3*/].f_2;
func_286(iVar3);
}
iVar2++;
}
}
}
if (Global_89355)
{
Global_89355 = 0;
}
}
void func_286(int iParam0)
{
float fVar0;
int iVar1;
if (Global_106070.f_1.f_73[iParam0 /*3*/] == 2)
{
return;
}
fVar0 = 0f;
switch (Global_89202[iParam0 /*5*/])
{
case 1:
iVar1 = 0;
while (iVar1 < 4)
{
fVar0 = (fVar0 + ((to_float(func_290(iParam0, iVar1)) / to_float(func_289(iVar1))) * 100f));
iVar1++;
}
fVar0 = (fVar0 / 4f);
break;
case 2:
iVar1 = 0;
while (iVar1 < 3)
{
fVar0 = (fVar0 + ((to_float(func_290(iParam0, iVar1)) / to_float(func_288(iVar1))) * 100f));
iVar1++;
}
fVar0 = (fVar0 / 3f);
break;
case 3:
iVar1 = 0;
while (iVar1 < 3)
{
fVar0 = (fVar0 + ((to_float(func_290(iParam0, iVar1)) / to_float(func_287(iVar1))) * 100f));
iVar1++;
}
fVar0 = (fVar0 / 3f);
break;
}
if (fVar0 > 66.6f)
{
if (Global_106070.f_1.f_73[iParam0 /*3*/] < 2)
{
Global_106070.f_1.f_73[iParam0 /*3*/] = 2;
}
}
else if (fVar0 > 33.3f)
{
if (Global_106070.f_1.f_73[iParam0 /*3*/] < 1)
{
Global_106070.f_1.f_73[iParam0 /*3*/] = 1;
}
}
}
int func_287(int iParam0)
{
switch (iParam0)
{
case 0:
return 100;
break;
case 1:
return 100;
break;
case 2:
return 100;
break;
}
return 0;
}
int func_288(int iParam0)
{
switch (iParam0)
{
case 0:
return 100;
break;
case 1:
return 100;
break;
case 2:
return 100;
break;
}
return 0;
}
int func_289(int iParam0)
{
switch (iParam0)
{
case 0:
return 1000;
break;
case 1:
return 100;
break;
case 2:
return 100;
break;
case 3:
return 100;
break;
}
return 0;
}
int func_290(int iParam0, int iParam1)
{
return func_291(iParam1, Global_106070.f_1.f_73[iParam0 /*3*/].f_1, Global_106070.f_1.f_73[iParam0 /*3*/].f_2);
}
int func_291(int iParam0, int iParam1, int iParam2)
{
switch (iParam0)
{
case 0:
case 1:
return shift_right(iParam1, (15 * iParam0)) & 32767;
break;
case 2:
case 3:
return shift_right(iParam2, (15 * (iParam0 - 2))) & 32767;
break;
}
return -1;
}
int func_292(int iParam0)
{
switch (iParam0)
{
case 90:
return 0;
break;
case 74:
case 75:
return 1;
break;
case 93:
return 2;
break;
case 69:
case 70:
return 3;
break;
case 84:
case 85:
return 4;
break;
}
return -1;
}
void func_293(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)
{
int iVar0;
int iVar1;
int iVar2;
char* sVar3;
struct<2> Var4;
if (iParam3 != -1)
{
Global_71474.f_9 = iParam3;
}
if (Global_90247)
{
unk_0x9BB7BCDF2AC2D6F9(5);
unk_0xBF6EED5D6E0CD9BF(1f);
}
Global_89547.f_8 = 0;
if (unk_0x58E3CCF930D23BD5(unk_0xD4E735F4B6A956AC()))
{
if (!unk_0x05EFB6A616B6FADE(Global_84115[iParam2 /*34*/].f_15, 21) && !unk_0x05EFB6A616B6FADE(Global_84115[iParam2 /*34*/].f_15, 15))
{
unk_0xF10B3BC4F73177E5(unk_0xD4E735F4B6A956AC(), 0, 0);
unk_0xDF341226C0B8BAC3(unk_0xD4E735F4B6A956AC(), 0);
unk_0x824B5E936276CAB3(5000);
if (unk_0x6D6FD221326F0FEB(unk_0xA19140A5C42D8715()))
{
unk_0x90683BECDF939A74(unk_0xA19140A5C42D8715(), false, -1, 0);
}
unk_0xB8C9A9ECCE440A3A(unk_0xD4E735F4B6A956AC());
}
if (Global_71210 == iParam2)
{
unk_0x33CF95E95A476FB9(unk_0xA19140A5C42D8715(), true);
}
else
{
unk_0x33CF95E95A476FB9(unk_0xA19140A5C42D8715(), false);
}
}
unk_0xD75A4240F0AD8613("buddyDeathResponse");
if (!unk_0x4915F4759304D5CF(unk_0xA19140A5C42D8715()))
{
unk_0x13E0A8160525AE55(unk_0xA19140A5C42D8715(), 32, false);
unk_0x13E0A8160525AE55(unk_0xA19140A5C42D8715(), 250, false);
if (!unk_0x05EFB6A616B6FADE(Global_84115[iParam2 /*34*/].f_15, 21) && !unk_0x05EFB6A616B6FADE(Global_84115[iParam2 /*34*/].f_15, 15))
{
func_547();
}
}
func_40(func_44());
if (!func_2())
{
func_383(unk_0xA19140A5C42D8715(), 1);
}
func_9();
iVar0 = func_44();
if (func_47(iVar0))
{
func_222(unk_0xA19140A5C42D8715(), &(Global_92701[iVar0 /*98*/]), &(Global_93004[iVar0 /*3*/]), &(Global_93014[iVar0]), &(Global_92996[iVar0]), &(Global_4268559[iVar0]));
}
func_382();
Global_3059[0] = 0;
Global_3059[2] = 0;
Global_3059[1] = 0;
if (func_381())
{
func_379();
}
Global_106070.f_2355.f_4844 = func_378(iParam2);
unk_0x93DA13E8C75A3B00(0, true);
if (iParam4 && !unk_0x05EFB6A616B6FADE(Global_84115[iParam2 /*34*/].f_15, 15))
{
func_90(0);
}
Global_71450 = 0;
func_373();
func_372();
if (!func_888(0))
{
if (Global_71210 == iParam2)
{
if (!unk_0x3CAC2741CC1A631F("NONE", &Global_71211))
{
unk_0x97ADECA58E284B43(Global_84079[iParam1 /*5*/].f_4);
}
Global_71210 = -1;
Global_71209 = 0;
Global_71223 = 0;
Global_71217[0] = -1;
Global_71217[1] = -1;
Global_71217[2] = -1;
iVar1 = 0;
while (iVar1 < Global_71267)
{
Global_71268[iVar1 /*4*/] = -1;
Global_71268[iVar1 /*4*/].f_1 = 0;
Global_71268[iVar1 /*4*/].f_2 = 0;
Global_71268[iVar1 /*4*/].f_3 = 0;
iVar1++;
}
Global_71267 = 0;
iVar1 = 0;
while (iVar1 < Global_71389)
{
Global_71390[iVar1 /*3*/] = -1;
Global_71390[iVar1 /*3*/].f_1 = 0;
Global_71390[iVar1 /*3*/].f_2 = -99;
iVar1++;
}
Global_71389 = 0;
iVar1 = 0;
while (iVar1 < Global_71403)
{
Global_71404[iVar1 /*2*/] = -1;
Global_71404[iVar1 /*2*/].f_1 = 0;
iVar1++;
}
Global_71403 = 0;
iVar1 = 0;
while (iVar1 < Global_71415)
{
Global_71416[iVar1 /*4*/] = -1;
Global_71416[iVar1 /*4*/].f_1 = 0;
Global_71416[iVar1 /*4*/].f_2 = 0;
Global_71416[iVar1 /*4*/].f_3 = 0;
iVar1++;
}
Global_71415 = 0;
func_371();
iVar1 = 0;
while (iVar1 < 3)
{
Global_71225[iVar1] = 0;
iVar1++;
}
Global_71208 = 0;
Global_71224 = 0;
if (Global_71221 != -1)
{
func_369(&Global_71221);
}
}
else
{
unk_0xFB35B0BAD6F5AD8F();
Global_71222 = 1;
}
}
func_368(iParam2);
iVar2 = func_98(iParam2);
sVar3 = { Global_84115[iParam2 /*34*/].f_8 };
if (iParam2 == 90)
{
switch (Global_106070.f_9057.f_99.f_205[7])
{
case 1:
StringConCat(&sVar3, "A", 8);
break;
case 2:
StringConCat(&sVar3, "B", 8);
break;
}
}
func_367(&sVar3, iVar2, 0);
Var4 = { func_283(iParam2) };
unk_0x9E212A43A08FF3F9(1, &Var4);
if (!unk_0x05EFB6A616B6FADE(Global_84115[iParam2 /*34*/].f_15, 3))
{
if (!func_2())
{
func_366(iParam2);
}
}
if (!unk_0x05EFB6A616B6FADE(Global_84115[iParam2 /*34*/].f_15, 1) && !unk_0x05EFB6A616B6FADE(Global_84079[iParam1 /*5*/].f_1, 3))
{
func_309(iParam0);
}
func_295(iParam2);
func_294(iParam2);
unk_0xEB60EF2E9051E817(0);
Global_71467 = iParam2;
}
void func_294(int iParam0)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
int iVar4;
if (!Global_89355)
{
iVar0 = func_292(iParam0);
iVar1 = func_103(iVar0);
if (iParam0 == 93)
{
if (Global_106070.f_9057.f_99.f_205[9] != 5)
{
Global_106070.f_9057.f_99.f_205[9] = 5;
}
}
if (unk_0x05EFB6A616B6FADE(Global_84115[iParam0 /*34*/].f_15, 14))
{
if (iVar0 != -1)
{
iVar2 = Global_106070.f_9057.f_99.f_205[iVar1];
iVar3 = 0;
while (iVar3 < Global_89356[iVar2 /*19*/])
{
iVar4 = Global_106070.f_1.f_12[iVar2 /*6*/][iVar3];
Global_89339[iVar3 /*3*/] = 0;
Global_89339[iVar3 /*3*/].f_1 = Global_106070.f_1.f_73[iVar4 /*3*/].f_1;
Global_89339[iVar3 /*3*/].f_2 = Global_106070.f_1.f_73[iVar4 /*3*/].f_2;
iVar3++;
}
Global_89355 = 1;
}
}
}
}
void func_295(int iParam0)
{
bool bVar0;
int iVar1;
int iVar2;
int iVar3;
bVar0 = false;
if (iParam0 == 26)
{
Global_56202 = 1;
}
iVar1 = iParam0;
if (iVar1 == 28)
{
return;
}
if (iVar1 == 27)
{
iVar1 = 26;
if (Global_56174)
{
return;
}
bVar0 = true;
}
if (Global_3)
{
func_301();
return;
}
MemCopy(&Global_56196, {func_283(iVar1)}, 4);
Global_56184 = 0;
Global_56183 = 0;
if (unk_0x05EFB6A616B6FADE(Global_84115[iVar1 /*34*/].f_15, 4))
{
Global_56183 = 1;
}
switch (iVar1)
{
case 53:
Global_56174 = 1;
Global_56183 = 1;
break;
case 24:
case 25:
case 26:
case 27:
Global_56174 = 1;
Global_56183 = 1;
break;
case 3:
case 4:
case 5:
case 6:
case 7:
Global_56174 = 1;
Global_56183 = 1;
break;
case 50:
case 51:
case 52:
Global_56171 = 1;
Global_56174 = 1;
Global_56177 = 1;
break;
case 32:
case 23:
case 28:
case 54:
case 55:
case 56:
case 57:
case 58:
case 77:
Global_56183 = 1;
Global_56182 = 1;
func_301();
func_557();
return;
break;
case 90:
case 74:
case 75:
case 93:
case 69:
case 70:
case 84:
case 85:
Global_56185 = func_300(iVar1);
Global_56184 = 1;
Global_89547.f_3 = 0;
break;
}
iVar2 = Global_68426;
Global_68426 = 0;
iVar3 = Global_68427;
Global_68427 = iVar1;
if (!Global_56171)
{
if ((Global_68427 != iVar3 || Global_68276 == 0) || iVar2 != Global_68426)
{
Global_25709 = 0;
func_301();
func_297(iVar1);
}
else
{
Global_56174 = 1;
}
}
if (bVar0)
{
Global_56178 = 1;
}
Global_56209 = unk_0xFD34717937104F1C();
Global_56182 = 0;
func_296();
Global_56181 = 0;
}
void func_296()
{
int iVar0;
if (!Global_56178)
{
return;
}
if (Global_68276 == 0)
{
return;
}
iVar0 = 0;
iVar0 = 0;
while (iVar0 < Global_68276)
{
switch (Global_56406[Global_68277[iVar0 /*9*/] /*13*/])
{
case 1:
case 9:
Global_68277[iVar0 /*9*/].f_3 = 1;
break;
case 4:
if (Global_56189)
{
Global_68277[iVar0 /*9*/].f_3 = 1;
}
break;
case 6:
if (Global_56406[Global_68277[iVar0 /*9*/] /*13*/].f_3)
{
if (Global_68277[iVar0 /*9*/].f_1 != 0)
{
Global_68277[iVar0 /*9*/].f_3 = 1;
}
}
break;
}
iVar0++;
}
Global_56178 = 0;
}
void func_297(int iParam0)
{
switch (iParam0)
{
case 0:
func_298(0);
func_298(1);
func_298(2);
func_298(3);
func_298(4);
func_298(5);
func_298(6);
func_298(7);
func_298(8);
return;
case 1:
func_298(9);
func_298(10);
func_298(11);
func_298(12);
func_298(13);
func_298(14);
func_298(15);
func_298(16);
func_298(17);
func_298(18);
func_298(19);
func_298(20);
return;
case 2:
func_298(21);
func_298(22);
func_298(23);
func_298(24);
func_298(25);
func_298(26);
func_298(27);
func_298(28);
func_298(29);
return;
case 3:
func_298(30);
func_298(31);
func_298(32);
func_298(33);
func_298(34);
func_298(35);
func_298(36);
func_298(37);
func_298(38);
func_298(39);
func_298(40);
func_298(41);
func_298(42);
return;
case 4:
func_298(43);
func_298(44);
func_298(45);
func_298(46);
func_298(47);
func_298(48);
func_298(49);
func_298(50);
func_298(51);
func_298(52);
func_298(53);
func_298(54);
func_298(55);
func_298(56);
return;
case 5:
func_298(57);
func_298(58);
func_298(59);
func_298(60);
func_298(61);
func_298(62);
func_298(63);
func_298(64);
func_298(65);
func_298(66);
func_298(67);
func_298(68);
func_298(69);
func_298(70);
return;
case 6:
func_298(71);
func_298(72);
func_298(73);
func_298(74);
func_298(75);
func_298(76);
func_298(77);
func_298(78);
func_298(79);
func_298(80);
func_298(81);
func_298(82);
func_298(83);
func_298(84);
func_298(85);
return;
case 7:
func_298(86);
func_298(87);
func_298(88);
func_298(89);
func_298(90);
func_298(91);
func_298(92);
func_298(93);
func_298(94);
func_298(95);
func_298(96);
func_298(97);
func_298(98);
func_298(99);
func_298(100);
func_298(101);
return;
case 9:
func_298(102);
func_298(103);
func_298(104);
func_298(105);
func_298(106);
func_298(107);
func_298(108);
func_298(109);
func_298(110);
return;
case 8:
func_298(111);
func_298(112);
func_298(113);
func_298(114);
func_298(115);
func_298(116);
func_298(117);
func_298(118);
func_298(119);
return;
case 10:
func_298(120);
func_298(121);
func_298(122);
func_298(123);
func_298(124);
func_298(125);
func_298(126);
func_298(127);
func_298(128);
return;
case 11:
func_298(129);
func_298(130);
func_298(131);
func_298(132);
func_298(133);
func_298(134);
func_298(135);
return;
case 12:
func_298(136);
func_298(137);
func_298(138);
func_298(139);
func_298(140);
func_298(141);
func_298(142);
func_298(143);
func_298(144);
func_298(145);
func_298(146);
func_298(147);
return;
case 13:
func_298(148);
func_298(149);
func_298(150);
func_298(151);
func_298(152);
func_298(153);
func_298(154);
func_298(155);
func_298(156);
func_298(157);
func_298(158);
func_298(159);
func_298(160);
return;
case 14:
func_298(161);
func_298(162);
func_298(163);
func_298(164);
func_298(165);
func_298(166);
func_298(167);
func_298(168);
func_298(169);
func_298(170);
func_298(171);
return;
case 15:
func_298(172);
func_298(173);
func_298(174);
func_298(175);
func_298(176);
func_298(177);
func_298(178);
func_298(179);
func_298(180);
func_298(181);
func_298(182);
func_298(183);
func_298(184);
return;
case 16:
func_298(185);
func_298(186);
func_298(187);
func_298(188);
func_298(189);
func_298(190);
func_298(191);
func_298(192);
func_298(193);
func_298(194);
func_298(195);
return;
case 17:
func_298(196);
func_298(197);
func_298(198);
func_298(199);
func_298(200);
func_298(201);
func_298(202);
func_298(203);
func_298(204);
return;
case 18:
func_298(205);
func_298(206);
func_298(207);
func_298(208);
func_298(209);
func_298(210);
func_298(211);
func_298(212);
func_298(213);
func_298(214);
func_298(215);
func_298(216);
return;
case 19:
func_298(217);
func_298(218);
func_298(219);
func_298(220);
func_298(221);
func_298(222);
func_298(223);
func_298(224);
func_298(225);
func_298(226);
func_298(227);
func_298(228);
return;
case 20:
func_298(229);
func_298(230);
func_298(231);
func_298(232);
func_298(233);
func_298(234);
func_298(235);
func_298(236);
func_298(237);
func_298(238);
return;
case 21:
func_298(239);
func_298(240);
func_298(241);
func_298(242);
func_298(243);
func_298(244);
func_298(245);
func_298(246);
func_298(247);
func_298(248);
return;
case 22:
func_298(249);
func_298(250);
func_298(251);
func_298(252);
func_298(253);
func_298(254);
func_298(255);
func_298(256);
return;
case 26:
func_298(257);
func_298(258);
func_298(259);
func_298(260);
func_298(261);
func_298(262);
func_298(263);
func_298(264);
func_298(265);
func_298(266);
func_298(267);
func_298(268);
func_298(269);
func_298(270);
func_298(271);
func_298(272);
return;
case 29:
func_298(273);
func_298(274);
func_298(275);
func_298(276);
func_298(277);
func_298(278);
func_298(279);
func_298(280);
func_298(281);
func_298(282);
return;
case 30:
func_298(283);
func_298(284);
func_298(285);
func_298(286);
func_298(287);
func_298(288);
func_298(289);
func_298(290);
func_298(291);
func_298(292);
func_298(293);
return;
case 31:
func_298(294);
func_298(295);
func_298(296);
func_298(297);
func_298(298);
func_298(299);
func_298(300);
func_298(301);
func_298(302);
func_298(303);
func_298(304);
func_298(305);
return;
case 38:
func_298(306);
func_298(307);
func_298(308);
func_298(309);
func_298(310);
func_298(311);
func_298(312);
func_298(313);
func_298(314);
func_298(315);
func_298(316);
return;
case 33:
func_298(317);
func_298(318);
func_298(319);
func_298(320);
func_298(321);
return;
case 34:
func_298(322);
func_298(323);
func_298(324);
func_298(325);
return;
default:
}
switch (iParam0)
{
case 39:
func_298(326);
func_298(327);
func_298(328);
func_298(329);
func_298(330);
func_298(331);
func_298(332);
func_298(333);
func_298(334);
func_298(335);
func_298(336);
func_298(337);
return;
case 40:
func_298(338);
func_298(339);
func_298(340);
func_298(341);
func_298(342);
func_298(343);
func_298(344);
func_298(345);
return;
case 41:
func_298(346);
func_298(347);
func_298(348);
func_298(349);
func_298(350);
func_298(351);
func_298(352);
func_298(353);
func_298(354);
func_298(355);
func_298(356);
func_298(357);
func_298(358);
func_298(359);
return;
case 42:
func_298(360);
func_298(361);
func_298(362);
func_298(363);
func_298(364);
func_298(365);
func_298(366);
func_298(367);
func_298(368);
func_298(369);
func_298(370);
func_298(371);
return;
case 43:
func_298(372);
func_298(373);
func_298(374);
func_298(375);
func_298(376);
func_298(377);
func_298(378);
func_298(379);
func_298(380);
func_298(381);
func_298(382);
func_298(383);
return;
case 44:
func_298(384);
func_298(385);
func_298(386);
func_298(387);
func_298(388);
func_298(389);
func_298(390);
func_298(391);
func_298(392);
return;
case 45:
func_298(393);
func_298(394);
func_298(395);
func_298(396);
func_298(397);
func_298(398);
func_298(399);
return;
case 46:
func_298(400);
func_298(401);
func_298(402);
func_298(403);
func_298(404);
func_298(405);
func_298(406);
func_298(407);
func_298(408);
func_298(409);
func_298(410);
func_298(411);
func_298(412);
return;
case 47:
func_298(413);
func_298(414);
func_298(415);
func_298(416);
func_298(417);
func_298(418);
func_298(419);
func_298(420);
func_298(421);
func_298(422);
func_298(423);
func_298(424);
func_298(425);
func_298(426);
func_298(427);
func_298(428);
return;
case 48:
func_298(429);
func_298(430);
func_298(431);
func_298(432);
func_298(433);
func_298(434);
func_298(435);
func_298(436);
func_298(437);
func_298(438);
func_298(439);
func_298(440);
return;
case 49:
func_298(441);
func_298(442);
func_298(443);
func_298(444);
func_298(445);
func_298(446);
func_298(447);
func_298(448);
func_298(449);
func_298(450);
func_298(451);
func_298(452);
func_298(453);
return;
case 53:
func_298(454);
func_298(455);
func_298(456);
func_298(457);
func_298(458);
func_298(459);
func_298(460);
func_298(461);
func_298(462);
func_298(463);
func_298(464);
func_298(465);
return;
case 60:
func_298(466);
func_298(467);
func_298(468);
func_298(469);
func_298(470);
func_298(471);
func_298(472);
func_298(473);
return;
case 61:
func_298(474);
func_298(475);
func_298(476);
func_298(477);
func_298(478);
func_298(479);
func_298(480);
func_298(481);
func_298(482);
func_298(483);
func_298(484);
func_298(485);
return;
case 62:
func_298(486);
func_298(487);
func_298(488);
func_298(489);
func_298(490);
func_298(491);
func_298(492);
func_298(493);
func_298(494);
func_298(495);
func_298(496);
func_298(497);
func_298(498);
return;
case 63:
func_298(499);
func_298(500);
func_298(501);
func_298(502);
func_298(503);
func_298(504);
func_298(505);
func_298(506);
func_298(507);
func_298(508);
func_298(509);
func_298(510);
func_298(511);
func_298(512);
func_298(513);
func_298(514);
return;
case 64:
func_298(515);
func_298(516);
func_298(517);
func_298(518);
func_298(519);
func_298(520);
func_298(521);
func_298(522);
func_298(523);
func_298(524);
func_298(525);
func_298(526);
return;
case 66:
func_298(527);
func_298(528);
func_298(529);
func_298(530);
func_298(531);
func_298(532);
func_298(533);
return;
case 67:
func_298(534);
func_298(535);
func_298(536);
func_298(537);
func_298(538);
func_298(539);
return;
case 68:
func_298(540);
func_298(541);
func_298(542);
func_298(543);
func_298(544);
func_298(545);
func_298(546);
return;
case 69:
func_298(547);
func_298(548);
func_298(549);
func_298(550);
func_298(551);
func_298(552);
func_298(553);
func_298(554);
func_298(555);
func_298(556);
func_298(557);
func_298(558);
func_298(559);
func_298(560);
return;
case 70:
func_298(561);
func_298(562);
func_298(563);
func_298(564);
func_298(565);
func_298(566);
func_298(567);
func_298(568);
func_298(569);
func_298(570);
func_298(571);
func_298(572);
func_298(573);
func_298(574);
func_298(575);
return;
case 71:
func_298(576);
func_298(577);
func_298(578);
func_298(579);
func_298(580);
func_298(581);
func_298(582);
func_298(583);
func_298(584);
func_298(585);
func_298(586);
return;
case 72:
func_298(587);
func_298(588);
func_298(589);
func_298(590);
func_298(591);
func_298(592);
func_298(593);
func_298(594);
return;
case 73:
func_298(595);
func_298(596);
func_298(597);
func_298(598);
func_298(599);
func_298(600);
func_298(601);
func_298(602);
func_298(603);
func_298(604);
return;
case 74:
func_298(605);
func_298(606);
func_298(607);
func_298(608);
func_298(609);
func_298(610);
func_298(611);
func_298(612);
func_298(613);
func_298(614);
func_298(615);
func_298(616);
func_298(617);
func_298(618);
func_298(619);
func_298(620);
return;
case 75:
func_298(621);
func_298(622);
func_298(623);
func_298(624);
func_298(625);
func_298(626);
func_298(627);
func_298(628);
func_298(629);
func_298(630);
func_298(631);
func_298(632);
func_298(633);
func_298(634);
func_298(635);
func_298(636);
return;
case 76:
func_298(637);
func_298(638);
func_298(639);
func_298(640);
func_298(641);
func_298(642);
func_298(643);
func_298(644);
func_298(645);
func_298(646);
func_298(647);
func_298(648);
return;
case 78:
func_298(649);
func_298(650);
func_298(651);
func_298(652);
return;
case 79:
func_298(653);
func_298(654);
func_298(655);
func_298(656);
func_298(657);
func_298(658);
func_298(659);
return;
case 84:
func_298(660);
func_298(661);
func_298(662);
func_298(663);
func_298(664);
func_298(665);
func_298(666);
func_298(667);
func_298(668);
func_298(669);
func_298(670);
func_298(671);
func_298(672);
func_298(673);
return;
default:
}
switch (iParam0)
{
case 85:
func_298(674);
func_298(675);
func_298(676);
func_298(677);
func_298(678);
func_298(679);
func_298(680);
func_298(681);
func_298(682);
func_298(683);
func_298(684);
func_298(685);
func_298(686);
func_298(687);
func_298(688);
return;
case 86:
func_298(689);
func_298(690);
func_298(691);
func_298(692);
func_298(693);
func_298(694);
func_298(695);
return;
case 87:
func_298(696);
func_298(697);
func_298(698);
func_298(699);
func_298(700);
func_298(701);
return;
case 88:
func_298(702);
func_298(703);
func_298(704);
func_298(705);
func_298(706);
func_298(707);
func_298(708);
return;
case 91:
func_298(709);
func_298(710);
func_298(711);
func_298(712);
func_298(713);
func_298(714);
func_298(715);
func_298(716);
func_298(717);
return;
case 92:
func_298(718);
func_298(719);
func_298(720);
func_298(721);
func_298(722);
func_298(723);
func_298(724);
func_298(725);
func_298(726);
func_298(727);
func_298(728);
return;
case 93:
func_298(729);
func_298(730);
func_298(731);
func_298(732);
func_298(733);
func_298(734);
func_298(735);
func_298(736);
func_298(737);
func_298(738);
func_298(739);
func_298(740);
return;
case 90:
func_298(810);
func_298(811);
func_298(812);
func_298(813);
func_298(814);
func_298(815);
func_298(816);
func_298(817);
func_298(818);
func_298(819);
return;
case 36:
func_298(820);
func_298(821);
func_298(822);
func_298(823);
return;
case 37:
func_298(824);
func_298(825);
func_298(826);
func_298(827);
return;
case 24:
func_298(846);
func_298(847);
func_298(848);
func_298(849);
func_298(850);
func_298(851);
return;
case 25:
func_298(852);
func_298(853);
func_298(854);
func_298(855);
func_298(856);
func_298(857);
func_298(858);
func_298(859);
func_298(860);
return;
case 59:
func_298(861);
func_298(862);
func_298(863);
func_298(864);
func_298(865);
func_298(866);
func_298(867);
func_298(868);
func_298(869);
return;
case 65:
func_298(870);
func_298(871);
func_298(872);
func_298(873);
func_298(874);
return;
case 80:
func_298(875);
func_298(876);
func_298(877);
func_298(878);
func_298(879);
func_298(880);
func_298(881);
func_298(882);
return;
case 81:
func_298(883);
func_298(884);
func_298(885);
func_298(886);
func_298(887);
func_298(888);
func_298(889);
func_298(890);
return;
case 82:
func_298(891);
func_298(892);
func_298(893);
func_298(894);
func_298(895);
func_298(896);
func_298(897);
func_298(898);
return;
case 83:
func_298(899);
func_298(900);
func_298(901);
func_298(902);
func_298(903);
func_298(904);
func_298(905);
return;
case 89:
func_298(906);
func_298(907);
func_298(908);
func_298(909);
func_298(910);
func_298(911);
func_298(912);
return;
default:
}
}
void func_298(int iParam0)
{
Global_56174 = 1;
Global_56177 = 1;
if (Global_68276 > 15)
{
return;
}
func_299(Global_68276);
Global_68277[Global_68276 /*9*/] = iParam0;
Global_68276++;
if (Global_56406[iParam0 /*13*/] == 16)
{
Global_68428 = 1;
}
}
void func_299(int iParam0)
{
Global_68277[iParam0 /*9*/].f_1 = 0;
Global_68277[iParam0 /*9*/].f_2 = 0f;
Global_68277[iParam0 /*9*/].f_3 = 0;
Global_68277[iParam0 /*9*/].f_4 = 0;
}
int func_300(int iParam0)
{
switch (iParam0)
{
case 90:
return 0;
break;
case 74:
case 75:
return 1;
break;
case 93:
return 2;
break;
case 69:
case 70:
return 3;
break;
case 84:
case 85:
return 4;
break;
}
return -1;
}
void func_301()
{
if (Global_56181)
{
return;
}
Global_56190 = 0;
Global_68276 = 0;
Global_56192 = 0;
if (Global_56189)
{
}
Global_56189 = 0;
func_308(0);
func_307();
Global_68428 = 0;
Global_56180 = 1;
func_305();
func_304();
func_303();
func_302();
Global_56171 = 0;
Global_56201 = 0;
Global_56209 = -1;
}
void func_302()
{
int iVar0;
iVar0 = 0;
iVar0 = 0;
while (iVar0 < 4)
{
Global_68463[iVar0 /*2*/].f_1 = -1;
iVar0++;
}
Global_68472 = 0;
}
void func_303()
{
int iVar0;
iVar0 = 0;
iVar0 = 0;
while (iVar0 < 16)
{
Global_68429[iVar0 /*2*/] = 0;
Global_68429[iVar0 /*2*/].f_1 = -1;
iVar0++;
}
Global_68462 = 0;
}
void func_304()
{
Global_56340 = 0;
}
void func_305()
{
Global_56200 = 0;
Global_56204 = func_306(joaat("sp0_shots"));
Global_56203 = func_306(joaat("sp0_hits"));
Global_56206 = func_306(joaat("sp1_shots"));
Global_56205 = func_306(joaat("sp1_hits"));
Global_56208 = func_306(joaat("sp2_shots"));
Global_56207 = func_306(joaat("sp2_hits"));
}
int func_306(int iParam0)
{
var uVar0;
unk_0x2AD48F3CEBA882E9(iParam0, &uVar0, -1);
return uVar0;
}
void func_307()
{
int iVar0;
Global_56210 = 0;
iVar0 = 0;
iVar0 = 0;
while (iVar0 < 64)
{
Global_56211[iVar0 /*2*/] = 0;
iVar0++;
}
}
void func_308(int iParam0)
{
Global_71465 = iParam0;
Global_71466 = iParam0;
}
void func_309(int iParam0)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
iVar0 = Global_71474.f_109[iParam0 /*4*/];
unk_0xFA57C719261AA55D(&(Global_93232.f_20), 17);
func_312(&(Global_84115[iVar0 /*34*/]), 1, 0);
if ((Global_84115[iVar0 /*34*/].f_13 != -1 && Global_84115[iVar0 /*34*/].f_14 != -1) && !unk_0x05EFB6A616B6FADE(Global_84115[iVar0 /*34*/].f_15, 30))
{
iVar1 = func_311(Global_96664.f_1);
iVar2 = Global_84115[iVar0 /*34*/].f_13;
iVar3 = Global_84115[iVar0 /*34*/].f_14;
if (!func_310(iVar1, iVar2, iVar3))
{
func_254(&(Global_96664.f_1), iVar2);
func_254(&(Global_99633.f_1), iVar2);
}
}
if (iVar0 == 62)
{
Global_96664 = 2;
Global_99633 = 2;
}
if (iVar0 == 20)
{
if (Global_96664 == 1)
{
Global_96664 = 0;
Global_99633 = 0;
}
}
}
int func_310(int iParam0, int iParam1, int iParam2)
{
bool bVar0;
int iVar1;
int iVar2;
if (iParam1 == 24)
{
iParam1 = 0;
}
if (iParam1 < 0 || iParam1 >= 24)
{
return 0;
}
if (iParam2 == 24)
{
iParam2 = 0;
}
if (iParam2 < 0 || iParam2 >= 24)
{
return 0;
}
if (iParam1 == iParam2)
{
return 1;
}
bVar0 = iParam2 < iParam1;
iVar1 = iParam1;
iVar2 = iParam2;
if (bVar0)
{
iVar2 = 24;
}
if (iParam0 >= iVar1 && iParam0 < iVar2)
{
return 1;
}
if (!bVar0)
{
return 0;
}
iVar1 = 0;
iVar2 = iParam2;
if (iParam0 >= iVar1 && iParam0 < iVar2)
{
return 1;
}
return 0;
}
int func_311(int iParam0)
{
return shift_right(iParam0, 9) & 31;
}
void func_312(char[4] cParam0, int iParam1, int iParam2)
{
if (Global_93232 != 10 && Global_93232 != 9)
{
StringCopy(&Global_96656, cParam0, 32);
func_314(&Global_96664, cParam0, 0, "Start", iParam1, iParam2);
func_313();
Global_87505 = 0;
}
}
void func_313()
{
int iVar0;
int iVar1;
Global_99633 = Global_96664;
Global_99633.f_1 = Global_96664.f_1;
Global_99633.f_6 = Global_96664.f_6;
Global_99633.f_7 = Global_96664.f_7;
Global_99633.f_8 = Global_96664.f_8;
Global_99633.f_2 = Global_96664.f_2;
Global_99633.f_3 = Global_96664.f_3;
Global_99633.f_4 = Global_96664.f_4;
Global_99633.f_5 = Global_96664.f_5;
iVar1 = 0;
while (iVar1 < 3)
{
Global_99633.f_9[iVar1] = Global_96664.f_9[iVar1];
Global_99633.f_13[iVar1] = Global_96664.f_13[iVar1];
Global_99633.f_17[iVar1] = Global_96664.f_17[iVar1];
Global_99633.f_21[iVar1] = Global_96664.f_21[iVar1];
Global_99633.f_25[0 /*295*/][iVar1 /*98*/] = { Global_96664.f_25[0 /*295*/][iVar1 /*98*/] };
Global_99633.f_25[1 /*295*/][iVar1 /*98*/] = { Global_96664.f_25[1 /*295*/][iVar1 /*98*/] };
iVar0 = 0;
while (iVar0 < 12)
{
Global_99633.f_616[iVar1 /*65*/][iVar0] = Global_96664.f_616[iVar1 /*65*/][iVar0];
Global_99633.f_616[iVar1 /*65*/].f_13[iVar0] = Global_96664.f_616[iVar1 /*65*/].f_13[iVar0];
Global_99633.f_616[iVar1 /*65*/].f_26[iVar0] = Global_96664.f_616[iVar1 /*65*/].f_26[iVar0];
iVar0++;
}
Global_99633.f_616[iVar1 /*65*/].f_59 = Global_96664.f_616[iVar1 /*65*/].f_59;
Global_99633.f_616[iVar1 /*65*/].f_60 = Global_96664.f_616[iVar1 /*65*/].f_60;
Global_99633.f_616[iVar1 /*65*/].f_61 = Global_96664.f_616[iVar1 /*65*/].f_61;
Global_99633.f_616[iVar1 /*65*/].f_62 = Global_96664.f_616[iVar1 /*65*/].f_62;
Global_99633.f_616[iVar1 /*65*/].f_63 = Global_96664.f_616[iVar1 /*65*/].f_63;
Global_99633.f_616[iVar1 /*65*/].f_64 = Global_96664.f_616[iVar1 /*65*/].f_64;
iVar0 = 0;
while (iVar0 < 9)
{
Global_99633.f_616[iVar1 /*65*/].f_39[iVar0] = Global_96664.f_616[iVar1 /*65*/].f_39[iVar0];
Global_99633.f_616[iVar1 /*65*/].f_49[iVar0] = Global_96664.f_616[iVar1 /*65*/].f_49[iVar0];
iVar0++;
}
iVar0 = 0;
while (iVar0 < 44)
{
Global_99633.f_812[iVar1 /*472*/][iVar0 /*5*/] = { Global_96664.f_812[iVar1 /*472*/][iVar0 /*5*/] };
iVar0++;
}
iVar0 = 0;
while (iVar0 < 50)
{
Global_99633.f_812[iVar1 /*472*/].f_221[iVar0 /*5*/] = { Global_96664.f_812[iVar1 /*472*/].f_221[iVar0 /*5*/] };
iVar0++;
}
iVar0 = 0;
while (iVar0 < 4)
{
Global_99633.f_2229[iVar1 /*32*/][iVar0] = Global_96664.f_2229[iVar1 /*32*/][iVar0];
iVar0++;
}
iVar0 = 0;
while (iVar0 < 10)
{
Global_99633.f_2229[iVar1 /*32*/].f_5[iVar0] = Global_96664.f_2229[iVar1 /*32*/].f_5[iVar0];
iVar0++;
}
iVar0 = 0;
while (iVar0 < 15)
{
Global_99633.f_2229[iVar1 /*32*/].f_16[iVar0] = Global_96664.f_2229[iVar1 /*32*/].f_16[iVar0];
iVar0++;
}
Global_99633.f_2326[iVar1] = Global_96664.f_2326[iVar1];
iVar0 = 0;
while (iVar0 <= 3)
{
Global_99633.f_2823[iVar1 /*15*/][iVar0] = Global_96664.f_2823[iVar1 /*15*/][iVar0];
Global_99633.f_2823[iVar1 /*15*/].f_5[iVar0] = Global_96664.f_2823[iVar1 /*15*/].f_5[iVar0];
Global_99633.f_2823[iVar1 /*15*/].f_10[iVar0] = Global_96664.f_2823[iVar1 /*15*/].f_10[iVar0];
iVar0++;
}
iVar0 = 0;
while (iVar0 <= 2)
{
Global_99633.f_2330[iVar1 /*164*/][iVar0] = Global_96664.f_2330[iVar1 /*164*/][iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_4[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_4[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_8[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_8[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_12[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_12[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_16[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_16[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_20[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_20[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_24[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_24[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_28[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_28[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_32[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_32[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_36[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_36[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_40[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_40[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_44[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_44[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_48[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_48[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_52[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_52[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_56[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_56[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_60[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_60[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_64[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_64[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_68[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_68[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_72[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_72[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_76[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_76[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_80[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_80[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_84[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_84[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_88[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_88[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_92[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_92[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_96[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_96[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_100[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_100[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_104[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_104[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_108[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_108[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_112[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_112[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_116[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_116[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_120[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_120[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_124[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_124[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_128[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_128[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_132[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_132[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_136[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_136[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_140[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_140[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_144[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_144[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_148[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_148[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_152[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_152[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_156[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_156[iVar0];
Global_99633.f_2330[iVar1 /*164*/].f_160[iVar0] = Global_96664.f_2330[iVar1 /*164*/].f_160[iVar0];
iVar0++;
}
iVar1++;
}
Global_99633.f_2869 = { Global_96664.f_2869 };
Global_99633.f_2869.f_3 = Global_96664.f_2869.f_3;
Global_99633.f_2875 = { Global_96664.f_2875 };
Global_99633.f_2875.f_3 = { Global_96664.f_2875.f_3 };
Global_99633.f_2875.f_6 = Global_96664.f_2875.f_6;
Global_99633.f_2875.f_8 = Global_99633.f_2875.f_8;
Global_99633.f_2875.f_7 = Global_96664.f_2875.f_7;
Global_99633.f_2875.f_9 = Global_96664.f_2875.f_9;
Global_99633.f_2875.f_11 = Global_96664.f_2875.f_11;
Global_99633.f_2875.f_10 = Global_96664.f_2875.f_10;
Global_99633.f_2875.f_12 = Global_96664.f_2875.f_12;
Global_99633.f_2875.f_12.f_1 = { Global_96664.f_2875.f_12.f_1 };
Global_99633.f_2875.f_12.f_5 = Global_96664.f_2875.f_12.f_5;
Global_99633.f_2875.f_12.f_6 = Global_96664.f_2875.f_12.f_6;
Global_99633.f_2875.f_12.f_7 = Global_96664.f_2875.f_12.f_7;
Global_99633.f_2875.f_12.f_8 = Global_96664.f_2875.f_12.f_8;
Global_99633.f_2875.f_12.f_9 = { Global_96664.f_2875.f_12.f_9 };
Global_99633.f_2875.f_12.f_59 = { Global_96664.f_2875.f_12.f_59 };
Global_99633.f_2875.f_12.f_62 = Global_96664.f_2875.f_12.f_62;
Global_99633.f_2875.f_12.f_63 = Global_96664.f_2875.f_12.f_63;
Global_99633.f_2875.f_12.f_64 = Global_96664.f_2875.f_12.f_64;
Global_99633.f_2875.f_12.f_65 = Global_96664.f_2875.f_12.f_65;
Global_99633.f_2875.f_12.f_77 = Global_96664.f_2875.f_12.f_77;
Global_99633.f_2875.f_12.f_66 = Global_96664.f_2875.f_12.f_66;
Global_99633.f_2875.f_12.f_67 = Global_96664.f_2875.f_12.f_67;
Global_99633.f_2875.f_12.f_68 = Global_96664.f_2875.f_12.f_68;
Global_99633.f_2875.f_12.f_69 = Global_96664.f_2875.f_12.f_69;
Global_99633.f_2875.f_12.f_71 = Global_96664.f_2875.f_12.f_71;
Global_99633.f_2875.f_12.f_72 = Global_96664.f_2875.f_12.f_72;
Global_99633.f_2875.f_12.f_73 = Global_96664.f_2875.f_12.f_73;
Global_99633.f_2875.f_12.f_74 = Global_96664.f_2875.f_12.f_74;
Global_99633.f_2875.f_12.f_75 = Global_96664.f_2875.f_12.f_75;
Global_99633.f_2875.f_12.f_76 = Global_96664.f_2875.f_12.f_76;
Global_99633.f_2965 = Global_96664.f_2965;
Global_99633.f_2965.f_1 = Global_96664.f_2965.f_1;
Global_99633.f_2965.f_2 = Global_96664.f_2965.f_2;
Global_99633.f_2965.f_3 = Global_96664.f_2965.f_3;
}
void func_314(var uParam0, char* sParam1, int iParam2, char* sParam3, int iParam4, int iParam5)
{
int iVar0;
int iVar1;
*uParam0 = func_44();
uParam0->f_1 = func_246();
unk_0xEB349569DF18782A(&(uParam0->f_6), &(uParam0->f_7), &(uParam0->f_8));
if (!unk_0x4915F4759304D5CF(unk_0xA19140A5C42D8715()))
{
func_342(&(uParam0->f_2869), 0);
func_341(unk_0xA19140A5C42D8715());
func_334(unk_0xA19140A5C42D8715(), 0);
unk_0xF990CFC0F1D94A39(unk_0xA19140A5C42D8715(), &(uParam0->f_2), 1);
if (uParam0->f_2 == 0 || uParam0->f_2 == joaat("object"))
{
uParam0->f_2 = joaat("weapon_unarmed");
}
}
iVar1 = 0;
while (iVar1 < 3)
{
uParam0->f_17[iVar1] = Global_106070.f_2355.f_539.f_294[iVar1];
if (iVar1 == func_333())
{
func_329(unk_0xA19140A5C42D8715(), &(uParam0->f_616[iVar1 /*65*/]), 1, -1);
}
else
{
iVar0 = 0;
while (iVar0 < 12)
{
uParam0->f_616[iVar1 /*65*/][iVar0] = Global_93022[iVar1 /*65*/][iVar0];
uParam0->f_616[iVar1 /*65*/].f_13[iVar0] = Global_93022[iVar1 /*65*/].f_13[iVar0];
iVar0++;
}
uParam0->f_616[iVar1 /*65*/].f_59 = Global_93022[iVar1 /*65*/].f_59;
uParam0->f_616[iVar1 /*65*/].f_60 = Global_93022[iVar1 /*65*/].f_60;
uParam0->f_616[iVar1 /*65*/].f_61 = Global_93022[iVar1 /*65*/].f_61;
uParam0->f_616[iVar1 /*65*/].f_62 = Global_93022[iVar1 /*65*/].f_62;
uParam0->f_616[iVar1 /*65*/].f_63 = Global_93022[iVar1 /*65*/].f_63;
uParam0->f_616[iVar1 /*65*/].f_64 = Global_93022[iVar1 /*65*/].f_64;
iVar0 = 0;
while (iVar0 < 9)
{
uParam0->f_616[iVar1 /*65*/].f_39[iVar0] = Global_93022[iVar1 /*65*/].f_39[iVar0];
uParam0->f_616[iVar1 /*65*/].f_49[iVar0] = Global_93022[iVar1 /*65*/].f_49[iVar0];
iVar0++;
}
}
iVar0 = 0;
while (iVar0 < 44)
{
uParam0->f_812[iVar1 /*472*/][iVar0 /*5*/] = { Global_106070.f_2355.f_539.f_298[iVar1 /*472*/][iVar0 /*5*/] };
iVar0++;
}
iVar0 = 0;
while (iVar0 < 50)
{
uParam0->f_812[iVar1 /*472*/].f_221[iVar0 /*5*/] = { Global_106070.f_2355.f_539.f_298[iVar1 /*472*/].f_221[iVar0 /*5*/] };
iVar0++;
}
switch (iVar1)
{
case 0:
unk_0x2AD48F3CEBA882E9(joaat("sp0_weap_purch_0"), &(uParam0->f_2229[iVar1 /*32*/][0]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp0_weap_purch_1"), &(uParam0->f_2229[iVar1 /*32*/][1]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp0_weap_addon_purch_0"), &(uParam0->f_2229[iVar1 /*32*/].f_5[0]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp0_weap_addon_purch_1"), &(uParam0->f_2229[iVar1 /*32*/].f_5[1]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp0_weap_addon_purch_2"), &(uParam0->f_2229[iVar1 /*32*/].f_5[2]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp0_weap_addon_purch_3"), &(uParam0->f_2229[iVar1 /*32*/].f_5[3]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp0_weap_addon_purch_4"), &(uParam0->f_2229[iVar1 /*32*/].f_5[4]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp0_weap_tint_purch_0"), &(uParam0->f_2229[iVar1 /*32*/].f_16[0]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp0_weap_tint_purch_1"), &(uParam0->f_2229[iVar1 /*32*/].f_16[1]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp0_weap_tint_purch_2"), &(uParam0->f_2229[iVar1 /*32*/].f_16[2]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp0_weap_tint_purch_3"), &(uParam0->f_2229[iVar1 /*32*/].f_16[3]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp0_weap_tint_purch_4"), &(uParam0->f_2229[iVar1 /*32*/].f_16[4]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp0_weap_tint_purch_5"), &(uParam0->f_2229[iVar1 /*32*/].f_16[5]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp0_weap_tint_purch_6"), &(uParam0->f_2229[iVar1 /*32*/].f_16[6]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp0_weap_tint_purch_7"), &(uParam0->f_2229[iVar1 /*32*/].f_16[7]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp0_weap_tint_purch_8"), &(uParam0->f_2229[iVar1 /*32*/].f_16[8]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp0_weap_tint_purch_9"), &(uParam0->f_2229[iVar1 /*32*/].f_16[9]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp0_weap_tint_purch_10"), &(uParam0->f_2229[iVar1 /*32*/].f_16[10]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp0_weap_tint_purch_11"), &(uParam0->f_2229[iVar1 /*32*/].f_16[11]), -1);
break;
case 1:
unk_0x2AD48F3CEBA882E9(joaat("sp1_weap_purch_0"), &(uParam0->f_2229[iVar1 /*32*/][0]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp1_weap_purch_1"), &(uParam0->f_2229[iVar1 /*32*/][1]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp1_weap_addon_purch_0"), &(uParam0->f_2229[iVar1 /*32*/].f_5[0]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp1_weap_addon_purch_1"), &(uParam0->f_2229[iVar1 /*32*/].f_5[1]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp1_weap_addon_purch_2"), &(uParam0->f_2229[iVar1 /*32*/].f_5[2]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp1_weap_addon_purch_3"), &(uParam0->f_2229[iVar1 /*32*/].f_5[3]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp1_weap_addon_purch_4"), &(uParam0->f_2229[iVar1 /*32*/].f_5[4]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp1_weap_tint_purch_0"), &(uParam0->f_2229[iVar1 /*32*/].f_16[0]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp1_weap_tint_purch_1"), &(uParam0->f_2229[iVar1 /*32*/].f_16[1]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp1_weap_tint_purch_2"), &(uParam0->f_2229[iVar1 /*32*/].f_16[2]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp1_weap_tint_purch_3"), &(uParam0->f_2229[iVar1 /*32*/].f_16[3]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp1_weap_tint_purch_4"), &(uParam0->f_2229[iVar1 /*32*/].f_16[4]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp1_weap_tint_purch_5"), &(uParam0->f_2229[iVar1 /*32*/].f_16[5]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp1_weap_tint_purch_6"), &(uParam0->f_2229[iVar1 /*32*/].f_16[6]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp1_weap_tint_purch_7"), &(uParam0->f_2229[iVar1 /*32*/].f_16[7]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp1_weap_tint_purch_8"), &(uParam0->f_2229[iVar1 /*32*/].f_16[8]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp1_weap_tint_purch_9"), &(uParam0->f_2229[iVar1 /*32*/].f_16[9]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp1_weap_tint_purch_10"), &(uParam0->f_2229[iVar1 /*32*/].f_16[10]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp1_weap_tint_purch_11"), &(uParam0->f_2229[iVar1 /*32*/].f_16[11]), -1);
break;
case 2:
unk_0x2AD48F3CEBA882E9(joaat("sp2_weap_purch_0"), &(uParam0->f_2229[iVar1 /*32*/][0]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp2_weap_purch_1"), &(uParam0->f_2229[iVar1 /*32*/][1]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp2_weap_addon_purch_0"), &(uParam0->f_2229[iVar1 /*32*/].f_5[0]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp2_weap_addon_purch_1"), &(uParam0->f_2229[iVar1 /*32*/].f_5[1]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp2_weap_addon_purch_2"), &(uParam0->f_2229[iVar1 /*32*/].f_5[2]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp2_weap_addon_purch_3"), &(uParam0->f_2229[iVar1 /*32*/].f_5[3]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp2_weap_addon_purch_4"), &(uParam0->f_2229[iVar1 /*32*/].f_5[4]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp2_weap_tint_purch_0"), &(uParam0->f_2229[iVar1 /*32*/].f_16[0]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp2_weap_tint_purch_1"), &(uParam0->f_2229[iVar1 /*32*/].f_16[1]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp2_weap_tint_purch_2"), &(uParam0->f_2229[iVar1 /*32*/].f_16[2]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp2_weap_tint_purch_3"), &(uParam0->f_2229[iVar1 /*32*/].f_16[3]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp2_weap_tint_purch_4"), &(uParam0->f_2229[iVar1 /*32*/].f_16[4]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp2_weap_tint_purch_5"), &(uParam0->f_2229[iVar1 /*32*/].f_16[5]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp2_weap_tint_purch_6"), &(uParam0->f_2229[iVar1 /*32*/].f_16[6]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp2_weap_tint_purch_7"), &(uParam0->f_2229[iVar1 /*32*/].f_16[7]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp2_weap_tint_purch_8"), &(uParam0->f_2229[iVar1 /*32*/].f_16[8]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp2_weap_tint_purch_9"), &(uParam0->f_2229[iVar1 /*32*/].f_16[9]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp2_weap_tint_purch_10"), &(uParam0->f_2229[iVar1 /*32*/].f_16[10]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp2_weap_tint_purch_11"), &(uParam0->f_2229[iVar1 /*32*/].f_16[11]), -1);
break;
}
uParam0->f_9[iVar1] = Global_106070.f_20536.f_233[iVar1 /*69*/].f_1;
uParam0->f_13[iVar1] = Global_53355[iVar1];
uParam0->f_25[0 /*295*/][iVar1 /*98*/] = { Global_106070.f_2355.f_539.f_2387[0 /*295*/][iVar1 /*98*/] };
uParam0->f_25[1 /*295*/][iVar1 /*98*/] = { Global_106070.f_2355.f_539.f_2387[1 /*295*/][iVar1 /*98*/] };
iVar0 = 0;
while (iVar0 <= 3)
{
uParam0->f_2823[iVar1 /*15*/][iVar0] = Global_106070.f_2355.f_493[iVar1 /*15*/][iVar0];
uParam0->f_2823[iVar1 /*15*/].f_5[iVar0] = Global_106070.f_2355.f_493[iVar1 /*15*/].f_5[iVar0];
uParam0->f_2823[iVar1 /*15*/].f_10[iVar0] = Global_106070.f_2355.f_493[iVar1 /*15*/].f_10[iVar0];
iVar0++;
}
iVar0 = 0;
while (iVar0 <= 2)
{
uParam0->f_2330[iVar1 /*164*/][iVar0] = Global_106070.f_2355[iVar1 /*164*/][iVar0];
uParam0->f_2330[iVar1 /*164*/].f_4[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_4[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_8[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_8[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_12[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_12[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_16[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_16[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_20[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_20[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_24[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_24[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_28[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_28[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_32[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_32[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_36[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_36[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_40[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_40[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_44[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_44[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_48[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_48[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_52[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_52[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_56[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_56[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_60[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_60[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_64[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_64[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_68[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_68[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_72[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_72[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_76[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_76[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_80[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_80[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_84[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_84[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_88[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_88[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_92[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_92[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_96[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_96[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_100[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_100[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_104[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_104[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_108[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_108[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_112[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_112[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_116[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_116[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_120[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_120[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_124[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_124[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_128[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_128[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_132[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_132[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_136[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_136[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_140[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_140[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_144[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_144[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_148[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_148[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_152[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_152[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_156[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_156[iVar0];
uParam0->f_2330[iVar1 /*164*/].f_160[iVar0] = Global_106070.f_2355[iVar1 /*164*/].f_160[iVar0];
iVar0++;
}
iVar1++;
}
unk_0x2AD48F3CEBA882E9(joaat("sp0_special_ability"), &(uParam0->f_2326[0]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp1_special_ability"), &(uParam0->f_2326[1]), -1);
unk_0x2AD48F3CEBA882E9(joaat("sp2_special_ability"), &(uParam0->f_2326[2]), -1);
uParam0->f_5 = 145;
if (iParam4 == 1)
{
func_316(&(uParam0->f_2875), uParam0, iParam5, 1, 1, 0);
}
func_315(&(uParam0->f_2965));
sParam3 = sParam3;
iParam2 = iParam2;
}
int func_315(var uParam0)
{
*uParam0 = Global_89176;
uParam0->f_1 = Global_89177;
uParam0->f_2 = 0;
uParam0->f_3 = 0;
return 1;
}
void func_316(var uParam0, var uParam1, int iParam2, int iParam3, int iParam4, int iParam5)
{
int iVar0;
if (iParam2 == 0)
{
iParam2 = unk_0xA19140A5C42D8715();
}
if (unk_0xDC5D81351D6A4DDB(iParam2))
{
uParam1->f_5 = func_48(iParam2);
}
if (func_328(iParam2, &iVar0, iParam3, iParam5))
{
func_317(uParam0, uParam1, iVar0, iParam4);
}
else if (unk_0xDC5D81351D6A4DDB(iVar0))
{
if (!unk_0x7112137033807390(iVar0, 0))
{
if (unk_0xD3C4AB5E628133C1(iVar0, joaat("skylift")) && unk_0xE0FD180CD24C0B67(unk_0xA19140A5C42D8715(), iVar0, 0))
{
func_317(uParam0, uParam1, iVar0, iParam4);
}
}
}
}
int func_317(var uParam0, var uParam1, int iParam2, int iParam3)
{
if (unk_0x1095F403F52B42E1(iParam2, 0))
{
func_319(uParam0, iParam2, iParam3);
uParam1->f_4 = iParam2;
if (func_318(iParam2))
{
uParam1->f_3 = 1;
}
else
{
uParam1->f_3 = 0;
}
return 1;
}
return 0;
}
int func_318(int iParam0)
{
int iVar0;
iVar0 = 0;
while (iVar0 <= 6)
{
if (Global_93232.f_22[iVar0] == iParam0)
{
return 1;
}
iVar0++;
}
return 0;
}
void func_319(var uParam0, int iParam1, int iParam2)
{
func_324(iParam1, &(uParam0->f_12));
uParam0->f_7 = func_322(iParam1, 145, 0);
uParam0->f_11 = func_321(iParam1);
if (!uParam0->f_7)
{
if (!uParam0->f_10)
{
uParam0->f_10 = func_320(iParam1);
}
}
if (iParam2 == 1)
{
*uParam0 = { unk_0xE2BBD32891C18569(iParam1, true) };
uParam0->f_6 = unk_0x552C823E1D2A019C(iParam1);
uParam0->f_3 = { unk_0x57323E573695B13F(iParam1) };
if (unk_0x54F6F5A823224519(iParam1, -1154.326f, -1523.871f, 3.262189f, -1158.453f, -1517.75f, 6.374244f, 13f, 0, true, 0))
{
*uParam0 = { -1160.095f, -1515.407f, 3.1496f };
uParam0->f_6 = 305.6424f;
}
if (Global_70929 == iParam1)
{
uParam0->f_9 = 1;
}
}
if (unk_0x5D7DFE2058701942(unk_0xA19140A5C42D8715(), 0))
{
uParam0->f_8 = 1;
}
else
{
uParam0->f_8 = 0;
}
}
int func_320(int iParam0)
{
int iVar0;
iVar0 = 0;
while (iVar0 < 68)
{
if (unk_0xDC5D81351D6A4DDB(Global_70024.f_484[iVar0]))
{
if (iParam0 == Global_70024.f_484[iVar0])
{
return 1;
}
}
iVar0++;
}
return 0;
}
int func_321(int iParam0)
{
int iVar0;
if (!unk_0xDC5D81351D6A4DDB(iParam0))
{
return 145;
}
if (!unk_0x1095F403F52B42E1(iParam0, 0))
{
return 145;
}
iVar0 = 0;
while (iVar0 < 9)
{
if (unk_0xDC5D81351D6A4DDB(Global_90658[iVar0]))
{
if (Global_90658[iVar0] == iParam0)
{
return Global_90668[iVar0];
}
}
iVar0++;
}
return 145;
}
int func_322(int iParam0, int iParam1, int iParam2)
{
int iVar0;
if (!unk_0xDC5D81351D6A4DDB(iParam0))
{
return 0;
}
if (!unk_0x1095F403F52B42E1(iParam0, 0))
{
return 0;
}
iVar0 = 0;
while (iVar0 < 9)
{
if (unk_0xDC5D81351D6A4DDB(Global_90658[iVar0]))
{
if (Global_90658[iVar0] == iParam0)
{
if (iParam1 == 145 || iParam1 == Global_90668[iVar0])
{
if (iParam2 == 0 || unk_0x8F474E419F56E48D(iParam0) == func_323(iParam1, iParam2))
{
return 1;
}
}
}
}
iVar0++;
}
return 0;
}
int func_323(int iParam0, int iParam1)
{
struct<82> Var0;
if (func_47(iParam0))
{
Var0.f_11 = 12;
Var0.f_31 = 49;
Var0.f_81 = 2;
func_232(iParam0, &Var0, iParam1);
return Var0;
}
else if (iParam0 != 145)
{
}
return 0;
}
void func_324(int iParam0, var uParam1)
{
int iVar0;
if (unk_0x1095F403F52B42E1(iParam0, 0))
{
func_327(uParam1);
uParam1->f_66 = unk_0x8F474E419F56E48D(iParam0);
StringCopy(&(uParam1->f_1), unk_0xC5D229CE54955E47(iParam0), 16);
*uParam1 = unk_0xDDB38D7590A81CE5(iParam0);
unk_0x249EC6991E16D61D(iParam0, &(uParam1->f_5), &(uParam1->f_6));
unk_0xD8185C6194306C6E(iParam0, &(uParam1->f_7), &(uParam1->f_8));
unk_0x00D0FF77BA971D60(iParam0, &(uParam1->f_62), &(uParam1->f_63), &(uParam1->f_64));
uParam1->f_65 = unk_0xBA6EC692A8E9BD41(iParam0);
uParam1->f_67 = unk_0x9373D3C23637D009(iParam0);
uParam1->f_69 = unk_0x8342B65392C8BC37(iParam0);
uParam1->f_70 = unk_0xED16A3D69B141AED(iParam0);
unk_0x292472155924CBB5(iParam0, &(uParam1->f_71), &(uParam1->f_72), &(uParam1->f_73));
unk_0x922C8705F0BA67E6(iParam0, &(uParam1->f_74), &(uParam1->f_75), &(uParam1->f_76));
if (unk_0x243FC0956CEB6D1F(iParam0, 2))
{
unk_0x2BCFB39E86340DAA(&(uParam1->f_77), 28);
}
if (unk_0x243FC0956CEB6D1F(iParam0, 3))
{
unk_0x2BCFB39E86340DAA(&(uParam1->f_77), 29);
}
if (unk_0x243FC0956CEB6D1F(iParam0, 0))
{
unk_0x2BCFB39E86340DAA(&(uParam1->f_77), 30);
}
if (unk_0x243FC0956CEB6D1F(iParam0, 1))
{
unk_0x2BCFB39E86340DAA(&(uParam1->f_77), 31);
}
if (uParam1->f_65 == -1 && !func_326(uParam1->f_66))
{
uParam1->f_65 = 0;
}
if (unk_0xEF6267624B1C9336(iParam0, 0))
{
uParam1->f_68 = unk_0x392DF1C78010FB0C(iParam0);
}
if (unk_0xCA8C103FCD316F89(uParam1->f_66))
{
if (unk_0xB4476DCF5073F3D1(iParam0))
{
switch (unk_0xED4856750A5EA5E8(iParam0))
{
case 3:
case 0:
unk_0xFA57C719261AA55D(&(uParam1->f_77), 23);
unk_0x2BCFB39E86340DAA(&(uParam1->f_77), 22);
break;
case 4:
case 1:
unk_0xFA57C719261AA55D(&(uParam1->f_77), 23);
unk_0xFA57C719261AA55D(&(uParam1->f_77), 22);
break;
case 5:
unk_0x2BCFB39E86340DAA(&(uParam1->f_77), 23);
break;
}
}
else
{
unk_0x2BCFB39E86340DAA(&(uParam1->f_77), 23);
}
}
if (!unk_0xCBFCD862A600B654(iParam0))
{
unk_0x2BCFB39E86340DAA(&(uParam1->f_77), 9);
}
if (unk_0x36167F9370DCE78E(iParam0))
{
unk_0x2BCFB39E86340DAA(&(uParam1->f_77), 10);
}
if (unk_0x8DEA0E8C80861E9D(iParam0))
{
unk_0x2BCFB39E86340DAA(&(uParam1->f_77), 13);
unk_0xE5F6CFB0158C9F97(iParam0, &(uParam1->f_71), &(uParam1->f_72), &(uParam1->f_73));
}
if (unk_0xE9FF101C94B1BBDB(iParam0))
{
unk_0x2BCFB39E86340DAA(&(uParam1->f_77), 12);
}
func_225(&iParam0, &(uParam1->f_9), &(uParam1->f_59));
iVar0 = 0;
while (iVar0 <= 11)
{
if (unk_0xED6D3EA61B44622B(iParam0, iVar0 + 1))
{
unk_0x2BCFB39E86340DAA(&(uParam1->f_77), func_325(iVar0 + 1));
}
iVar0++;
}
if (unk_0x33C323290E3BDAB1(iParam0, 0))
{
unk_0x2BCFB39E86340DAA(&(uParam1->f_77), 11);
}
else
{
unk_0xFA57C719261AA55D(&(uParam1->f_77), 11);
}
if (unk_0xAEAF59799C2F26E4(iParam0, "IgnoredByQuickSave") && unk_0x13AF6A38CAD2D5DD(iParam0, "IgnoredByQuickSave"))
{
unk_0x2BCFB39E86340DAA(&(uParam1->f_77), 27);
}
else
{
unk_0xFA57C719261AA55D(&(uParam1->f_77), 27);
}
}
}
int func_325(int iParam0)
{
switch (iParam0)
{
case 1:
return 0;
break;
case 2:
return 1;
break;
case 3:
return 2;
break;
case 4:
return 3;
break;
case 5:
return 4;
break;
case 6:
return 5;
break;
case 7:
return 6;
break;
case 8:
return 7;
break;
case 9:
return 8;
break;
case 10:
return 24;
break;
case 11:
return 25;
break;
case 12:
return 26;
break;
}
return 0;
}
int func_326(int iParam0)
{
switch (iParam0)
{
case joaat("granger"):
case -998177792:
return 1;
default:
}
return 0;
}
void func_327(var uParam0)
{
int iVar0;
uParam0->f_66 = 0;
uParam0->f_77 = 0;
uParam0->f_65 = 0;
uParam0->f_62 = 0;
uParam0->f_63 = 0;
uParam0->f_64 = 0;
uParam0->f_74 = 0;
uParam0->f_75 = 0;
uParam0->f_76 = 0;
*uParam0 = 0;
StringCopy(&(uParam0->f_1), "", 16);
uParam0->f_5 = 0;
uParam0->f_6 = 0;
uParam0->f_7 = 0;
uParam0->f_8 = 0;
iVar0 = 0;
while (iVar0 < 49)
{
uParam0->f_9[iVar0] = 0;
iVar0++;
}
iVar0 = 0;
while (iVar0 < 2)
{
uParam0->f_59[iVar0] = 0;
iVar0++;
}
uParam0->f_67 = 0;
uParam0->f_68 = 0;
uParam0->f_69 = 0;
uParam0->f_70 = 1;
uParam0->f_71 = 0;
uParam0->f_72 = 0;
uParam0->f_73 = 0;
}
int func_328(int iParam0, var uParam1, int iParam2, int iParam3)
{
char* sVar0;
if (unk_0xDC5D81351D6A4DDB(iParam0))
{
if (!unk_0x4915F4759304D5CF(iParam0))
{
if (iParam0 == unk_0xA19140A5C42D8715())
{
*uParam1 = unk_0xC409B91AC4749F88();
}
else
{
*uParam1 = unk_0xCAEB6CE71A2C7212(iParam0, 1);
}
if (unk_0xDC5D81351D6A4DDB(*uParam1))
{
if (unk_0x1095F403F52B42E1(*uParam1, 0))
{
if (iParam2 == 0 || unk_0x499324B3EF19C288(unk_0xE2BBD32891C18569(*uParam1, true), unk_0xE2BBD32891C18569(iParam0, true), true) < 100f)
{
if (unk_0xD3C4AB5E628133C1(*uParam1, joaat("taxi")))
{
if (unk_0xB0D49A1F9F054602(*uParam1, -1, 0) != iParam0 && unk_0xB0D49A1F9F054602(*uParam1, -1, 0) != 0)
{
return 0;
}
}
if (func_227(*uParam1, func_44(), 1))
{
sVar0 = unk_0x61D2332983ACC05C();
if (!unk_0x3CAC2741CC1A631F(sVar0, "save_anywhere"))
{
return 0;
}
else if (!unk_0x5D7DFE2058701942(iParam0, 1))
{
return 0;
}
}
if (iParam3 == 1)
{
if (unk_0xAEAF59799C2F26E4(*uParam1, "IgnoredByQuickSave"))
{
if (unk_0x13AF6A38CAD2D5DD(*uParam1, "IgnoredByQuickSave"))
{
return 0;
}
}
}
else if (unk_0xD3C4AB5E628133C1(*uParam1, joaat("blimp")))
{
return 0;
}
return 1;
}
}
}
}
}
return 0;
}
void func_329(int iParam0, var uParam1, int iParam2, int iParam3)
{
int iVar0;
int iVar1;
if (!unk_0x4915F4759304D5CF(iParam0))
{
iVar0 = func_48(iParam0);
iVar1 = 0;
while (iVar1 < 12)
{
func_332(iParam0, iVar1, &(uParam1->f_13[iVar1]), uParam1[iVar1], &(uParam1->f_26[iVar1]), iParam2, 145);
iVar1++;
}
iVar1 = 0;
while (iVar1 < 9)
{
func_331(iParam0, iVar1, &(uParam1->f_39[iVar1]), &(uParam1->f_49[iVar1]), iParam2, 145);
iVar1++;
}
if (func_47(iVar0))
{
uParam1->f_59 = Global_106070.f_2355.f_539[iVar0 /*65*/].f_59;
uParam1->f_60 = Global_106070.f_2355.f_539[iVar0 /*65*/].f_60;
uParam1->f_61 = Global_106070.f_2355.f_539[iVar0 /*65*/].f_61;
uParam1->f_62 = Global_106070.f_2355.f_539[iVar0 /*65*/].f_62;
uParam1->f_63 = Global_106070.f_2355.f_539[iVar0 /*65*/].f_63;
uParam1->f_64 = Global_106070.f_2355.f_539[iVar0 /*65*/].f_64;
}
else if (unk_0x4C9BACA8D249CB13() && unk_0x8F474E419F56E48D(iParam0) == unk_0x8F474E419F56E48D(unk_0xA19140A5C42D8715()))
{
if (func_330(161, iParam3))
{
uParam1->f_59 = func_19(2051, iParam3, 0);
}
else
{
uParam1->f_59 = func_19(752, iParam3, 0);
}
uParam1->f_60 = func_19(753, iParam3, 0);
uParam1->f_61 = func_19(754, iParam3, 0);
}
if (unk_0x4C9BACA8D249CB13() && iParam0 == unk_0xA19140A5C42D8715())
{
if (func_330(161, iParam3))
{
uParam1->f_59 = func_19(2051, iParam3, 0);
}
else
{
uParam1->f_59 = func_19(752, iParam3, 0);
}
}
}
}
int func_330(int iParam0, int iParam1)
{
var uVar0;
var uVar1;
uVar0 = Global_2566070[iParam0 /*3*/][func_17(iParam1)];
if (unk_0x57AA4E7564A22FCD(uVar0, &uVar1, -1))
{
return uVar1;
}
return 0;
}
void func_331(int iParam0, int iParam1, var uParam2, var uParam3, int iParam4, int iParam5)
{
int iVar0;
iVar0 = func_48(iParam0);
if (iParam0 != 0)
{
*uParam2 = unk_0xD1241BB51B6FE6DA(iParam0, iParam1);
*uParam3 = unk_0x2FB5EBD67ABDBF18(iParam0, iParam1);
}
else
{
iVar0 = iParam5;
}
if (iParam4 == 0)
{
return;
}
if (iParam1 == 0)
{
if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
{
if (iParam0 != 0)
{
if (unk_0xE5862BC166DAD032(iParam0) && unk_0x73B56EA1E8AE51F5(iParam0) != -1)
{
*uParam2 = unk_0x73B56EA1E8AE51F5(iParam0);
*uParam3 = unk_0x64922234B17106E1(iParam0);
}
}
}
}
switch (iVar0)
{
case 0:
if (iParam1 == 0)
{
if (*uParam2 == 7)
{
if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
{
*uParam2 = -1;
*uParam3 = -1;
}
}
else if (*uParam2 == 11)
{
if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
{
*uParam2 = -1;
*uParam3 = -1;
}
}
else if (*uParam2 == 21)
{
if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 16 != 0)
{
*uParam2 = -1;
*uParam3 = -1;
}
}
else if (*uParam2 == 23)
{
if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
{
*uParam2 = -1;
*uParam3 = -1;
}
}
else if (*uParam2 == 27)
{
if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
{
*uParam2 = -1;
*uParam3 = -1;
}
}
else if (*uParam2 == 28)
{
if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
{
*uParam2 = -1;
*uParam3 = -1;
}
}
else if (*uParam2 >= 14 && *uParam2 <= 20)
{
if (iParam4 & 2 != 0 || iParam4 & 4 != 0)
{
*uParam2 = -1;
*uParam3 = -1;
}
}
}
else if (iParam1 == 1)
{
if (*uParam2 == 1)
{
if (iParam4 & 2 != 0 || iParam4 & 64 != 0)
{
*uParam2 = -1;
*uParam3 = -1;
}
}
}
break;
case 1:
if (iParam1 == 0)
{
if (*uParam2 == 2)
{
if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
{
*uParam2 = -1;
*uParam3 = -1;
}
}
else if (*uParam2 == 4)
{
if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 16 != 0)
{
*uParam2 = -1;
*uParam3 = -1;
}
}
else if (*uParam2 == 6)
{
if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
{
*uParam2 = -1;
*uParam3 = -1;
}
}
else if (*uParam2 == 17)
{
if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
{
*uParam2 = -1;
*uParam3 = -1;
}
}
else if (*uParam2 == 20)
{
if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
{
*uParam2 = -1;
*uParam3 = -1;
}
}
else if (*uParam2 == 21)
{
if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
{
*uParam2 = -1;
*uParam3 = -1;
}
}
else if (*uParam2 >= 8 && *uParam2 <= 14)
{
if (iParam4 & 2 != 0 || iParam4 & 4 != 0)
{
*uParam2 = -1;
*uParam3 = -1;
}
}
}
break;
case 2:
if (iParam1 == 0)
{
if (*uParam2 == 9)
{
if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
{
*uParam2 = -1;
*uParam3 = -1;
}
}
else if (*uParam2 == 11)
{
if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
{
*uParam2 = -1;
*uParam3 = -1;
}
}
else if (*uParam2 == 12)
{
if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
{
*uParam2 = -1;
*uParam3 = -1;
}
}
else if (*uParam2 == 21)
{
if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
{
*uParam2 = -1;
*uParam3 = -1;
}
}
else if (*uParam2 == 23)
{
if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
{
*uParam2 = -1;
*uParam3 = -1;
}
}
else if (*uParam2 == 27)
{
if ((iParam4 & 1 != 0 || iParam4 & 2 != 0) || iParam4 & 8 != 0)
{
*uParam2 = -1;
*uParam3 = -1;
}
}
else if ((*uParam2 >= 14 && *uParam2 <= 20) || *uParam2 == 2)
{
if (iParam4 & 2 != 0 || iParam4 & 4 != 0)
{
*uParam2 = -1;
*uParam3 = -1;
}
}
}
break;
}
}
void func_332(int iParam0, int iParam1, var uParam2, var uParam3, var uParam4, int iParam5, int iParam6)
{
int iVar0;
iVar0 = func_48(iParam0);
if (iParam0 != 0)
{
*uParam2 = unk_0x774CB20D17C3FF03(iParam0, iParam1);
*uParam3 = unk_0x7710E77D1959B321(iParam0, iParam1);
*uParam4 = unk_0xA4B664E8E0A26C23(iParam0, iParam1);
}
else
{
iVar0 = iParam6;
}
if (iParam5 == 0)
{
return;
}
switch (iVar0)
{
case 0:
if (iParam1 == 8)
{
if ((iParam5 & 1 != 0 || iParam5 & 2 != 0) || iParam5 & 32 != 0)
{
if (*uParam2 == 15)
{
*uParam2 = 0;
*uParam3 = 0;
}
}
if (iParam5 & 2 != 0 || iParam5 & 64 != 0)
{
if (*uParam2 == 3 || *uParam2 == 22)
{
*uParam2 = 0;
*uParam3 = 0;
}
}
}
else if (iParam1 == 9)
{
if ((iParam5 & 1 != 0 || iParam5 & 2 != 0) || iParam5 & 32 != 0)
{
if (*uParam2 == 5)
{
*uParam2 = 0;
*uParam3 = 0;
}
}
if (iParam5 & 2 != 0 || iParam5 & 4 != 0)
{
if (*uParam2 == 8)
{
*uParam2 = 0;
*uParam3 = 0;
}
}
}
break;
case 1:
if (iParam1 == 8)
{
if ((iParam5 & 1 != 0 || iParam5 & 2 != 0) || iParam5 & 32 != 0)
{
if (*uParam2 == 1 || *uParam2 == 10)
{
*uParam2 = 14;
*uParam3 = 0;
}
}
if (iParam5 & 2 != 0 || iParam5 & 64 != 0)
{
if (*uParam2 == 19)
{
*uParam2 = 14;
*uParam3 = 0;
}
}
}
else if (iParam1 == 9)
{
if (iParam5 & 2 != 0 || iParam5 & 4 != 0)
{
if (*uParam2 == 5)
{
*uParam2 = 0;
*uParam3 = 0;
}
}
}
break;
case 2:
if (iParam1 == 8)
{
if ((iParam5 & 1 != 0 || iParam5 & 2 != 0) || iParam5 & 32 != 0)
{
if (*uParam2 == 3)
{
*uParam2 = 14;
*uParam3 = 0;
}
}
}
else if (iParam1 == 9)
{
if (*uParam2 >= 5 && *uParam2 <= 7)
{
if (iParam5 & 2 != 0 || iParam5 & 4 != 0)
{
*uParam2 = 0;
*uParam3 = 0;
}
}
}
break;
}
}
int func_333()
{
func_45();
return Global_106070.f_2355.f_539.f_4301;
}
void func_334(int iParam0, bool bParam1)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
iVar0 = func_48(iParam0);
if (func_47(iVar0) && !unk_0x4915F4759304D5CF(iParam0))
{
if (iParam0 == unk_0xA19140A5C42D8715())
{
func_335(iParam0, &(Global_106070.f_2355.f_539.f_298[iVar0 /*472*/]));
iVar2 = 0;
while (iVar2 <= (8 - 1))
{
Global_106070.f_2355.f_539.f_1715[iVar2 /*4*/][iVar0] = unk_0x3A15689FB6B31DEF(iVar2);
if (bParam1)
{
iVar1 = unk_0xB1D3CAE10C3C8705();
if (Global_106070.f_2355.f_539.f_1715[iVar2 /*4*/][iVar0] == iVar1)
{
Global_106070.f_2355.f_539.f_1748 = iVar2;
}
}
iVar2++;
}
unk_0xFE4C24D1490D3EC8(unk_0xD4E735F4B6A956AC(), &iVar3);
if (iVar0 == 0)
{
unk_0x93180BE33E7149EF(joaat("sp0_parachute_current_tint"), iVar3, 1);
}
else if (iVar0 == 1)
{
unk_0x93180BE33E7149EF(joaat("sp1_parachute_current_tint"), iVar3, 1);
}
else if (iVar0 == 2)
{
unk_0x93180BE33E7149EF(joaat("sp2_parachute_current_tint"), iVar3, 1);
}
}
}
}
void func_335(int iParam0, var uParam1)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
struct<5> Var4;
int iVar5;
int iVar6;
struct<2> Var7;
struct<4> Var8;
int iVar9;
int iVar10;
if (!unk_0x4915F4759304D5CF(iParam0))
{
iVar0 = 0;
while (iVar0 <= (44 - 1))
{
(uParam1[iVar0 /*5*/])->f_1 = 0;
iVar0++;
}
iVar0 = 0;
while (iVar0 <= (44 - 1))
{
iVar3 = func_340(iVar0);
if (iVar3 != 0)
{
Var4 = unk_0x3D2A81E3C295D501(iParam0, func_340(iVar0));
Var4.f_1 = 0;
Var4.f_2 = 0;
Var4.f_3 = 0;
Var4.f_4 = 0;
if (Var4 != 0 && Var4 != joaat("weapon_unarmed"))
{
Var4.f_1 = unk_0x8F62F4EC66847EC2(iParam0, Var4);
if (Var4 == joaat("gadget_parachute"))
{
Var4.f_1 = 1;
}
Var4.f_3 = unk_0x52AB19133B083547(iParam0, Var4);
Var4.f_4 = unk_0x390CF5235B1916CE(iParam0, Var4);
if (Var4.f_1 == -1)
{
if (!unk_0x777DF4661165BA4B(iParam0, Var4, &(Var4.f_1)))
{
Var4.f_1 = 0;
}
}
(uParam1[iVar0 /*5*/])->f_1 = Var4.f_1;
iVar1 = 0;
iVar2 = func_338(Var4, iVar1);
while (iVar2 != 0)
{
if (unk_0x15763A17141CD6EE(iParam0, Var4, iVar2))
{
unk_0x2BCFB39E86340DAA(&(Var4.f_2), iVar1);
}
iVar1++;
iVar2 = func_338(Var4, iVar1);
}
}
*(uParam1[iVar0 /*5*/]) = { Var4 };
}
iVar0++;
}
iVar0 = 0;
while (iVar0 <= (50 - 1))
{
uParam1->f_221[iVar0 /*5*/].f_1 = 0;
iVar0++;
}
iVar6 = unk_0x0AD363FF0CEF93B1();
iVar5 = 0;
while (iVar5 < iVar6)
{
if ((unk_0x8798F3E6AE76AF63(iVar5, &Var7) && !func_337(Var7.f_1)) && iVar9 < 50)
{
if (!unk_0x3B61940560400F58(Var7))
{
Var4 = Var7.f_1;
Var4.f_1 = 0;
Var4.f_2 = 0;
Var4.f_3 = 0;
Var4.f_4 = 0;
Var4.f_1 = unk_0x8F62F4EC66847EC2(iParam0, Var4);
if (unk_0x22B3625D717A4563(iParam0, Var4, 0))
{
Var4.f_3 = unk_0x52AB19133B083547(iParam0, Var4);
Var4.f_4 = unk_0x390CF5235B1916CE(iParam0, Var4);
}
if (Var4.f_1 == -1)
{
if (!unk_0x777DF4661165BA4B(iParam0, Var4, &(Var4.f_1)))
{
Var4.f_1 = 0;
}
}
uParam1->f_221[iVar9 /*5*/].f_1 = Var4.f_1;
iVar10 = 0;
iVar1 = 0;
while (iVar1 < unk_0x6E55AE7B1FEC08C5(iVar5))
{
if (unk_0xA9A013B7FD7A9A7F(iVar5, iVar1, &Var8))
{
if (!func_336(Var8.f_3))
{
if (unk_0x15763A17141CD6EE(iParam0, Var4, Var8.f_3))
{
unk_0x2BCFB39E86340DAA(&(Var4.f_2), iVar10);
}
iVar10++;
}
}
iVar1++;
}
}
if (Var4 != 0)
{
if (!unk_0x22B3625D717A4563(iParam0, Var4, 0))
{
Var4 = 0;
Var4.f_1 = 0;
}
}
uParam1->f_221[iVar9 /*5*/] = { Var4 };
iVar9++;
}
iVar5++;
}
}
}
int func_336(int iParam0)
{
switch (iParam0)
{
case -1258515792:
case 438243936:
case -455079056:
case 740920107:
case -541616347:
case 1809261196:
case -1646538868:
case -1290164948:
case -964465134:
case 1135718771:
case 1253942266:
case -403805974:
case 691432737:
case 987648331:
case -431680535:
case -847582310:
case -92592218:
case -494548326:
case 730876697:
case 583159708:
case -1928503603:
case 520557834:
return 1;
break;
}
return 0;
}
int func_337(int iParam0)
{
if (unk_0x4C9BACA8D249CB13())
{
}
else
{
switch (iParam0)
{
case joaat("weapon_pistol50"):
case joaat("weapon_bullpupshotgun"):
case joaat("weapon_assaultsmg"):
return 0;
break;
case joaat("weapon_bottle"):
case joaat("weapon_snspistol"):
case joaat("weapon_gusenberg"):
return 0;
break;
case joaat("weapon_heavypistol"):
case joaat("weapon_specialcarbine"):
return 0;
break;
case joaat("weapon_bullpuprifle"):
return 0;
break;
case joaat("weapon_dagger"):
case joaat("weapon_vintagepistol"):
return 0;
break;
case joaat("weapon_firework"):
case joaat("weapon_musket"):
return 0;
break;
case joaat("weapon_heavyshotgun"):
case joaat("weapon_marksmanrifle"):
return 0;
break;
case joaat("weapon_hominglauncher"):
case joaat("weapon_proxmine"):
return 0;
break;
case joaat("weapon_combatpdw"):
case joaat("weapon_knuckle"):
case joaat("weapon_marksmanpistol"):
return 0;
break;
case -947031628:
case -572349828:
case 392730790:
case -1523701417:
case -2112826155:
case -664359727:
case -1887867191:
case -837150131:
case -344484024:
case joaat("weapon_flaregun"):
case joaat("weapon_handcuffs"):
case joaat("weapon_snowball"):
case joaat("weapon_garbagebag"):
case joaat("weapon_flashlight"):
case joaat("weapon_switchblade"):
case joaat("weapon_revolver"):
case joaat("weapon_dbshotgun"):
case joaat("weapon_compactrifle"):
case 317205821:
case -1121678507:
case 125959754:
case -853065399:
case -1169823560:
case -1810795771:
case 419712736:
case -1746263880:
case 1198256469:
case -1238556825:
case -1355376991:
return 1;
break;
}
}
return 0;
}
int func_338(int iParam0, int iParam1)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
var uVar4;
struct<4> Var5;
iVar0 = 0;
switch (iParam0)
{
case joaat("weapon_pistol"):
switch (iParam1)
{
case 0:
iVar0 = 1623028892;
break;
case 1:
iVar0 = joaat("component_pistol_clip_01");
break;
case 2:
iVar0 = joaat("component_pistol_clip_02");
break;
case 3:
iVar0 = joaat("component_at_pi_flsh");
break;
case 4:
iVar0 = joaat("component_at_pi_supp_02");
break;
case 5:
iVar0 = joaat("component_pistol_varmod_luxe");
break;
}
break;
case joaat("weapon_combatpistol"):
switch (iParam1)
{
case 0:
iVar0 = joaat("component_combatpistol_clip_01");
break;
case 1:
iVar0 = joaat("component_combatpistol_clip_02");
break;
case 2:
iVar0 = joaat("component_at_pi_flsh");
break;
case 3:
iVar0 = joaat("component_at_pi_supp");
break;
case 4:
iVar0 = joaat("component_combatpistol_varmod_lowrider");
break;
}
break;
case joaat("weapon_appistol"):
switch (iParam1)
{
case 0:
iVar0 = joaat("component_appistol_clip_01");
break;
case 1:
iVar0 = joaat("component_appistol_clip_02");
break;
case 2:
iVar0 = joaat("component_at_pi_flsh");
break;
case 3:
iVar0 = joaat("component_at_pi_supp");
break;
case 4:
iVar0 = joaat("component_appistol_varmod_luxe");
break;
}
break;
case joaat("weapon_microsmg"):
switch (iParam1)
{
case 0:
iVar0 = joaat("component_microsmg_clip_01");
break;
case 1:
iVar0 = joaat("component_microsmg_clip_02");
break;
case 2:
iVar0 = joaat("component_at_pi_flsh");
break;
case 3:
iVar0 = joaat("component_at_scope_macro");
break;
case 4:
iVar0 = joaat("component_at_ar_supp_02");
break;
case 5:
iVar0 = joaat("component_microsmg_varmod_luxe");
break;
}
break;
case joaat("weapon_smg"):
switch (iParam1)
{
case 0:
iVar0 = 1623028892;
break;
case 1:
iVar0 = joaat("component_smg_clip_01");
break;
case 2:
iVar0 = joaat("component_smg_clip_02");
break;
case 3:
iVar0 = joaat("component_smg_clip_03");
break;
case 4:
iVar0 = joaat("component_at_ar_flsh");
break;
case 5:
iVar0 = joaat("component_at_pi_supp");
break;
case 6:
iVar0 = joaat("component_at_scope_macro_02");
break;
case 7:
iVar0 = joaat("component_at_ar_afgrip");
break;
case 8:
iVar0 = joaat("component_smg_varmod_luxe");
break;
}
break;
case joaat("weapon_assaultrifle"):
switch (iParam1)
{
case 0:
iVar0 = 1623028892;
break;
case 1:
iVar0 = joaat("component_assaultrifle_clip_01");
break;
case 2:
iVar0 = joaat("component_assaultrifle_clip_02");
break;
case 3:
iVar0 = joaat("component_assaultrifle_clip_03");
break;
case 4:
iVar0 = joaat("component_at_ar_afgrip");
break;
case 5:
iVar0 = joaat("component_at_ar_flsh");
break;
case 6:
iVar0 = joaat("component_at_scope_macro");
break;
case 7:
iVar0 = joaat("component_at_ar_supp_02");
break;
case 8:
iVar0 = joaat("component_assaultrifle_varmod_luxe");
break;
}
break;
case joaat("weapon_carbinerifle"):
switch (iParam1)
{
case 0:
iVar0 = 1623028892;
break;
case 1:
iVar0 = joaat("component_carbinerifle_clip_01");
break;
case 2:
iVar0 = joaat("component_carbinerifle_clip_02");
break;
case 3:
iVar0 = joaat("component_carbinerifle_clip_03");
break;
case 4:
iVar0 = joaat("component_at_railcover_01");
break;
case 5:
iVar0 = joaat("component_at_ar_afgrip");
break;
case 6:
iVar0 = joaat("component_at_ar_flsh");
break;
case 7:
iVar0 = joaat("component_at_scope_medium");
break;
case 8:
iVar0 = joaat("component_at_ar_supp");
break;
case 9:
iVar0 = joaat("component_carbinerifle_varmod_luxe");
break;
}
break;
case joaat("weapon_advancedrifle"):
switch (iParam1)
{
case 0:
iVar0 = joaat("component_advancedrifle_clip_01");
break;
case 1:
iVar0 = joaat("component_advancedrifle_clip_02");
break;
case 2:
iVar0 = joaat("component_at_ar_flsh");
break;
case 3:
iVar0 = joaat("component_at_scope_small");
break;
case 4:
iVar0 = joaat("component_at_ar_supp");
break;
case 5:
iVar0 = joaat("component_advancedrifle_varmod_luxe");
break;
}
break;
case joaat("weapon_mg"):
switch (iParam1)
{
case 0:
iVar0 = joaat("component_mg_clip_01");
break;
case 1:
iVar0 = joaat("component_mg_clip_02");
break;
case 2:
iVar0 = joaat("component_at_scope_small_02");
break;
case 3:
iVar0 = joaat("component_at_ar_afgrip");
break;
case 4:
iVar0 = joaat("component_mg_varmod_lowrider");
break;
}
break;
case joaat("weapon_combatmg"):
switch (iParam1)
{
case 0:
iVar0 = 1623028892;
break;
case 1:
iVar0 = joaat("component_combatmg_clip_01");
break;
case 2:
iVar0 = joaat("component_combatmg_clip_02");
break;
case 3:
iVar0 = joaat("component_at_ar_afgrip");
break;
case 4:
iVar0 = joaat("component_at_scope_medium");
break;
case 5:
iVar0 = joaat("component_combatmg_varmod_lowrider");
break;
}
break;
case joaat("weapon_pumpshotgun"):
switch (iParam1)
{
case 0:
iVar0 = joaat("component_at_sr_supp");
break;
case 1:
iVar0 = joaat("component_at_ar_flsh");
break;
case 2:
iVar0 = joaat("component_pumpshotgun_varmod_lowrider");
break;
}
break;
case joaat("weapon_assaultshotgun"):
switch (iParam1)
{
case 0:
iVar0 = joaat("component_assaultshotgun_clip_01");
break;
case 1:
iVar0 = joaat("component_assaultshotgun_clip_02");
break;
case 2:
iVar0 = joaat("component_at_ar_afgrip");
break;
case 3:
iVar0 = joaat("component_at_ar_flsh");
break;
case 4:
iVar0 = joaat("component_at_ar_supp");
break;
}
break;
case joaat("weapon_sniperrifle"):
switch (iParam1)
{
case 0:
iVar0 = joaat("component_sniperrifle_clip_01");
break;
case 1:
iVar0 = joaat("component_at_scope_large");
break;
case 2:
iVar0 = joaat("component_at_scope_max");
break;
case 3:
iVar0 = joaat("component_at_ar_supp_02");
break;
case 4:
iVar0 = joaat("component_sniperrifle_varmod_luxe");
break;
}
break;
case joaat("weapon_heavysniper"):
switch (iParam1)
{
case 0:
iVar0 = 1623028892;
break;
case 1:
iVar0 = joaat("component_heavysniper_clip_01");
break;
case 2:
iVar0 = joaat("component_at_scope_large");
break;
case 3:
iVar0 = joaat("component_at_scope_max");
break;
}
break;
case joaat("weapon_grenadelauncher"):
switch (iParam1)
{
case 0:
iVar0 = joaat("component_at_ar_afgrip");
break;
case 1:
iVar0 = joaat("component_at_ar_flsh");
break;
case 2:
iVar0 = joaat("component_at_scope_small");
break;
}
break;
case joaat("weapon_minigun"):
switch (iParam1)
{
case 0:
iVar0 = joaat("component_minigun_clip_01");
break;
}
break;
case joaat("weapon_assaultsmg"):
switch (iParam1)
{
case 0:
iVar0 = joaat("component_assaultsmg_clip_01");
break;
case 1:
iVar0 = joaat("component_assaultsmg_clip_02");
break;
case 2:
iVar0 = joaat("component_at_ar_flsh");
break;
case 3:
iVar0 = joaat("component_at_scope_macro");
break;
case 4:
iVar0 = joaat("component_at_ar_supp_02");
break;
case 5:
iVar0 = joaat("component_assaultsmg_varmod_lowrider");
break;
}
break;
case joaat("weapon_bullpupshotgun"):
switch (iParam1)
{
case 0:
iVar0 = joaat("component_at_ar_afgrip");
break;
case 1:
iVar0 = joaat("component_at_ar_flsh");
break;
case 2:
iVar0 = joaat("component_at_ar_supp_02");
break;
}
break;
case joaat("weapon_pistol50"):
switch (iParam1)
{
case 0:
iVar0 = joaat("component_pistol50_clip_01");
break;
case 1:
iVar0 = joaat("component_pistol50_clip_02");
break;
case 2:
iVar0 = joaat("component_at_pi_flsh");
break;
case 3:
iVar0 = joaat("component_at_ar_supp_02");
break;
case 4:
iVar0 = joaat("component_pistol50_varmod_luxe");
break;
}
break;
case joaat("weapon_combatpdw"):
switch (iParam1)
{
case 0:
iVar0 = joaat("component_combatpdw_clip_01");
break;
case 1:
iVar0 = joaat("component_combatpdw_clip_02");
break;
case 2:
iVar0 = joaat("component_combatpdw_clip_03");
break;
case 3:
iVar0 = joaat("component_at_ar_flsh");
break;
case 4:
iVar0 = joaat("component_at_scope_small");
break;
case 5:
iVar0 = joaat("component_at_ar_afgrip");
break;
}
break;
case joaat("weapon_sawnoffshotgun"):
switch (iParam1)
{
case 0:
iVar0 = joaat("component_sawnoffshotgun_varmod_luxe");
break;
}
break;
case joaat("weapon_bullpuprifle"):
switch (iParam1)
{
case 0:
iVar0 = joaat("component_bullpuprifle_clip_01");
break;
case 1:
iVar0 = joaat("component_bullpuprifle_clip_02");
break;
case 2:
iVar0 = joaat("component_at_ar_flsh");
break;
case 3:
iVar0 = joaat("component_at_scope_small");
break;
case 4:
iVar0 = joaat("component_at_ar_supp");
break;
case 5:
iVar0 = joaat("component_at_ar_afgrip");
break;
case 6:
iVar0 = joaat("component_bullpuprifle_varmod_low");
break;
}
break;
case joaat("weapon_snspistol"):
switch (iParam1)
{
case 0:
iVar0 = joaat("component_snspistol_clip_01");
break;
case 1:
iVar0 = joaat("component_snspistol_clip_02");
break;
case 2:
iVar0 = joaat("component_snspistol_varmod_lowrider");
break;
}
break;
case joaat("weapon_specialcarbine"):
switch (iParam1)
{
case 0:
iVar0 = joaat("component_specialcarbine_clip_01");
break;
case 1:
iVar0 = joaat("component_specialcarbine_clip_02");
break;
case 2:
iVar0 = joaat("component_specialcarbine_clip_03");
break;
case 3:
iVar0 = joaat("component_at_ar_flsh");
break;
case 4:
iVar0 = joaat("component_at_scope_medium");
break;
case 5:
iVar0 = joaat("component_at_ar_supp_02");
break;
case 6:
iVar0 = joaat("component_at_ar_afgrip");
break;
case 7:
iVar0 = joaat("component_specialcarbine_varmod_lowrider");
break;
}
break;
case joaat("weapon_knuckle"):
switch (iParam1)
{
case 0:
iVar0 = joaat("component_knuckle_varmod_pimp");
break;
case 1:
iVar0 = joaat("component_knuckle_varmod_ballas");
break;
case 2:
iVar0 = joaat("component_knuckle_varmod_dollar");
break;
case 3:
iVar0 = joaat("component_knuckle_varmod_diamond");
break;
case 4:
iVar0 = joaat("component_knuckle_varmod_hate");
break;
case 5:
iVar0 = joaat("component_knuckle_varmod_love");
break;
case 6:
iVar0 = joaat("component_knuckle_varmod_player");
break;
case 7:
iVar0 = joaat("component_knuckle_varmod_king");
break;
case 8:
iVar0 = joaat("component_knuckle_varmod_vagos");
break;
}
break;
case joaat("weapon_machinepistol"):
switch (iParam1)
{
case 0:
iVar0 = joaat("component_machinepistol_clip_01");
break;
case 1:
iVar0 = joaat("component_machinepistol_clip_02");
break;
case 2:
iVar0 = joaat("component_machinepistol_clip_03");
break;
case 3:
iVar0 = joaat("component_at_pi_supp");
break;
}
break;
case joaat("weapon_switchblade"):
switch (iParam1)
{
case 0:
iVar0 = joaat("component_switchblade_varmod_var1");
break;
case 1:
iVar0 = joaat("component_switchblade_varmod_var2");
break;
}
break;
case joaat("weapon_revolver"):
switch (iParam1)
{
case 0:
iVar0 = joaat("component_revolver_clip_01");
break;
case 1:
iVar0 = joaat("component_revolver_varmod_boss");
break;
case 2:
iVar0 = joaat("component_revolver_varmod_goon");
break;
}
break;
case -1121678507:
switch (iParam1)
{
case 0:
iVar0 = -2067221805;
break;
case 1:
iVar0 = -1820405577;
break;
}
break;
default:
if (iParam0 != 0)
{
iVar1 = func_339(iParam0, &uVar4);
if (iVar1 != -1)
{
iVar2 = 0;
while (iVar2 < unk_0x6E55AE7B1FEC08C5(iVar1))
{
if (unk_0xA9A013B7FD7A9A7F(iVar1, iVar2, &Var5))
{
if (!func_336(Var5.f_3))
{
if (iVar3 == iParam1)
{
return Var5.f_3;
}
iVar3++;
}
}
iVar2++;
}
}
}
break;
}
return iVar0;
}
int func_339(int iParam0, var uParam1)
{
int iVar0;
int iVar1;
iVar1 = unk_0x0AD363FF0CEF93B1();
iVar0 = 0;
while (iVar0 < iVar1)
{
if (unk_0x8798F3E6AE76AF63(iVar0, uParam1))
{
if (uParam1->f_1 == iParam0)
{
return iVar0;
}
}
iVar0++;
}
return -1;
}
int func_340(int iParam0)
{
int iVar0;
iVar0 = 0;
switch (iParam0)
{
case 0:
iVar0 = 1993361168;
break;
case 1:
iVar0 = 1277010230;
break;
case 2:
iVar0 = 932043479;
break;
case 3:
iVar0 = -690654591;
break;
case 4:
iVar0 = -1459198205;
break;
case 5:
iVar0 = 195782970;
break;
case 6:
iVar0 = -438797331;
break;
case 7:
iVar0 = 896793492;
break;
case 8:
iVar0 = 495159329;
break;
case 9:
iVar0 = -1155528315;
break;
case 10:
iVar0 = -515636489;
break;
case 11:
iVar0 = -871913299;
break;
case 12:
iVar0 = -1352759032;
break;
case 13:
iVar0 = -542958961;
break;
case 14:
iVar0 = 1682645887;
break;
case 15:
iVar0 = -859470162;
break;
case 16:
iVar0 = -2125426402;
break;
case 17:
iVar0 = 2067210266;
break;
case 18:
iVar0 = -538172856;
break;
case 19:
iVar0 = 1783244476;
break;
case 20:
iVar0 = 439844898;
break;
case 21:
iVar0 = -24829327;
break;
case 22:
iVar0 = 1949306232;
break;
case 23:
iVar0 = -1941230881;
break;
case 24:
iVar0 = -1033554448;
break;
case 25:
iVar0 = 320513715;
break;
case 26:
iVar0 = -695165975;
break;
case 27:
iVar0 = -281028447;
break;
case 28:
iVar0 = -686713772;
break;
case 29:
iVar0 = 347509793;
break;
case 30:
iVar0 = 1769089473;
break;
case 31:
iVar0 = 189935548;
break;
case 33:
iVar0 = 248801358;
break;
case 34:
iVar0 = 386596758;
break;
case 35:
iVar0 = -157212362;
break;
case 36:
iVar0 = 436985596;
break;
case 37:
iVar0 = -47957369;
break;
case 38:
iVar0 = 575938238;
break;
}
return iVar0;
}
void func_341(int iParam0)
{
int iVar0;
iVar0 = func_48(iParam0);
if (func_47(iVar0) && !unk_0x4915F4759304D5CF(iParam0))
{
Global_106070.f_2355.f_539.f_294[iVar0] = unk_0xBEE435F0F4CCC194(iParam0);
}
}
void func_342(var uParam0, int iParam1)
{
int iVar0;
vector3 vVar1;
var uVar2;
int iVar3;
*uParam0 = { unk_0xE2BBD32891C18569(unk_0xA19140A5C42D8715(), true) };
uParam0->f_3 = unk_0x552C823E1D2A019C(unk_0xA19140A5C42D8715());
uParam0->f_5 = unk_0xFCD57A307851D560(unk_0xA19140A5C42D8715());
if (unk_0x58E3CCF930D23BD5(unk_0xD4E735F4B6A956AC()))
{
uParam0->f_4 = unk_0x91347D2A80F38492(unk_0xD4E735F4B6A956AC());
}
if (vdist(*uParam0, 320.9934f, 265.2515f, 82.1221f) < 10f)
{
*uParam0 = { 301.2162f, 202.1357f, 103.3797f };
uParam0->f_3 = 156.5144f;
}
else if (vdist(*uParam0, 377.153f, -717.567f, 10.0536f) < 10f)
{
*uParam0 = { 394.2567f, -713.5439f, 28.2853f };
uParam0->f_3 = 276.6273f;
}
else if (vdist(*uParam0, -1425.564f, -244.3f, 15.8053f) < 10f)
{
*uParam0 = { -1423.472f, -214.2539f, 45.5004f };
uParam0->f_3 = 353.8757f;
}
else if (unk_0x8B1574454E8C2421(joaat("finale_choice")) > 0)
{
*uParam0 = { 4.2587f, 525.0214f, 173.6281f };
uParam0->f_3 = 203.6746f;
}
else if (unk_0x05EFB6A616B6FADE(Global_71453, 4))
{
*uParam0 = { 452.0255f, 5571.85f, 780.1859f };
uParam0->f_3 = 78.9858f;
}
else if (unk_0x05EFB6A616B6FADE(Global_71453, 5))
{
*uParam0 = { -745.4462f, 5595.146f, 40.6594f };
uParam0->f_3 = 261.747f;
}
else if (unk_0x05EFB6A616B6FADE(Global_71453, 6))
{
*uParam0 = { -1675.521f, -1125.59f, 12.091f };
uParam0->f_3 = 271.8208f;
}
else if (unk_0x05EFB6A616B6FADE(Global_71453, 7))
{
*uParam0 = { -1631.219f, -1112.805f, 12.0212f };
uParam0->f_3 = 316.8879f;
}
else if (unk_0xDA3A4E46D189F555(unk_0xA19140A5C42D8715()) == unk_0xB68EB57358F46F86(1272.659f, -1715.467f, 53.7715f, "v_lesters"))
{
*uParam0 = { 1276.956f, -1725.189f, 53.6551f };
uParam0->f_3 = 204.1703f;
}
else if (unk_0x54F6F5A823224519(unk_0xA19140A5C42D8715(), -415.4365f, 2068.289f, 113.3002f, -564.9516f, 1884.703f, 134.0403f, 258.75f, 0, true, 0) || unk_0x54F6F5A823224519(unk_0xA19140A5C42D8715(), -596.4706f, 2089.921f, 125.4128f, -581.2134f, 2036.256f, 136.2836f, 9.5f, 0, true, 0))
{
*uParam0 = { -601.59f, 2099.197f, 128.8928f };
uParam0->f_3 = 204.7498f;
}
else if (vdist(*uParam0, -1007.393f, -477.9584f, 52.5357f) < 8f)
{
*uParam0 = { -1018.376f, -483.9436f, 36.0964f };
uParam0->f_3 = 114.7664f;
}
else if (vdist(*uParam0, 480.6662f, -1317.808f, 28.20303f) < 15f)
{
*uParam0 = { 497.7238f, -1310.932f, 28.2372f };
uParam0->f_3 = 289.3663f;
}
else if (vdist(*uParam0, 2329.527f, 2571.311f, 45.6779f) < 5f)
{
*uParam0 = { 2316.93f, 2594.153f, 45.7199f };
uParam0->f_3 = 348.1325f;
}
if (iParam1 == 1)
{
if (func_345(&iVar0))
{
if (func_344(iVar0, &vVar1, &uVar2))
{
vVar1.z = (vVar1.z + 1f);
*uParam0 = { vVar1 };
uParam0->f_3 = uVar2;
}
}
else if (unk_0x54F6F5A823224519(unk_0xA19140A5C42D8715(), 207.4336f, -1019.795f, -100.4728f, 189.9338f, -1019.623f, -95.56883f, 17.1875f, 0, true, 0))
{
iVar3 = func_44();
if (iVar3 == 0)
{
*uParam0 = { -65.1234f, 81.2517f, 70.5644f };
uParam0->f_3 = 71.6237f;
}
else if (iVar3 == 1)
{
*uParam0 = { -68.5531f, -1824.377f, 25.9424f };
uParam0->f_3 = 215.8295f;
}
else if (iVar3 == 2)
{
*uParam0 = { -220.8189f, -1162.302f, 22.0242f };
uParam0->f_3 = 70.2711f;
}
}
else if (unk_0x54F6F5A823224519(unk_0xA19140A5C42D8715(), 483.7175f, -1326.63f, 28.2135f, 474.9644f, -1307.998f, 34.49498f, 12f, 0, true, 0))
{
*uParam0 = { 495.4108f, -1306.08f, 29.2883f };
uParam0->f_3 = 213.6273f;
}
else if (unk_0x54F6F5A823224519(unk_0xA19140A5C42D8715(), -1146.77f, -1534.22f, 3.37f, -1158.453f, -1517.75f, 6.374244f, 13f, 0, true, 0))
{
*uParam0 = { -1160.095f, -1515.407f, 3.1496f };
uParam0->f_3 = 305.6424f;
}
else if (unk_0x54F6F5A823224519(unk_0xA19140A5C42D8715(), 439.5432f, -996.9769f, 24.88307f, 428.2935f, -997.0192f, 28.57458f, 8.5f, 0, true, 0))
{
*uParam0 = { 431.8853f, -1013.133f, 28.7907f };
uParam0->f_3 = 186.6814f;
}
else if (func_343(*uParam0, "v_hospital", 307.3065f, -589.9595f, 43.302f))
{
*uParam0 = { 279.4137f, -585.8815f, 43.2502f };
uParam0->f_3 = 48.8028f;
}
}
}
int func_343(vector3 vParam0, char* sParam1, vector3 vParam2)
{
int iVar0;
int iVar1;
if (!unk_0x92270AFB0B51829C(vParam0))
{
iVar0 = unk_0xB68EB57358F46F86(vParam2, sParam1);
if (!unk_0x893915B076B1DDF7(iVar0))
{
return 0;
}
iVar1 = unk_0x65D249E18D7A5AFD(vParam0);
if (iVar1 == iVar0)
{
return 1;
}
}
return 0;
}
bool func_344(int iParam0, var uParam1, var uParam2)
{
*uParam1 = { 0f, 0f, 0f };
*uParam2 = 0f;
switch (iParam0)
{
case 0:
*uParam1 = { -829.842f, -191.7454f, 36.4386f };
*uParam2 = 29.5061f;
break;
case 1:
*uParam1 = { 129.8484f, -1716.528f, 28.0702f };
*uParam2 = 50.3483f;
break;
case 2:
*uParam1 = { -1296.913f, -1120.999f, 5.3951f };
*uParam2 = 0.9933f;
break;
case 3:
*uParam1 = { 1938.028f, 3718.736f, 31.3154f };
*uParam2 = 118.2305f;
break;
case 4:
*uParam1 = { 1197.866f, -469.3809f, 65.0885f };
*uParam2 = 346.4477f;
break;
case 5:
*uParam1 = { -32.2161f, -135.8212f, 56.0532f };
*uParam2 = 186.0052f;
break;
case 6:
*uParam1 = { -287.7696f, 6238.081f, 30.2902f };
*uParam2 = 316.1349f;
break;
case 7:
*uParam1 = { 99.2876f, -1395.16f, 28.2759f };
*uParam2 = 320.2739f;
break;
case 8:
*uParam1 = { 1679.445f, 4819.056f, 41.0035f };
*uParam2 = 4.6192f;
break;
case 9:
*uParam1 = { 411.3063f, -809.1863f, 28.1554f };
*uParam2 = 1.8972f;
break;
case 10:
*uParam1 = { -1088.054f, 2699.167f, 19.2748f };
*uParam2 = 129.7382f;
break;
case 11:
*uParam1 = { 1194.163f, 2695.644f, 36.9225f };
*uParam2 = 1.1454f;
break;
case 12:
*uParam1 = { -821.2829f, -1088.027f, 10.0499f };
*uParam2 = 120.5883f;
break;
case 13:
*uParam1 = { -3.3416f, 6521.303f, 30.2961f };
*uParam2 = 316.4451f;
break;
case 14:
*uParam1 = { -1208.417f, -785.9635f, 16.0139f };
*uParam2 = 36.3181f;
break;
case 15:
*uParam1 = { 623.1845f, 2739.191f, 40.9588f };
*uParam2 = 3.5411f;
break;
case 16:
*uParam1 = { 130.9555f, -198.2084f, 53.41f };
*uParam2 = 251.3506f;
break;
case 17:
*uParam1 = { -3164.065f, 1067.317f, 19.6778f };
*uParam2 = 101.2229f;
break;
case 18:
*uParam1 = { -713.2797f, -174.2767f, 35.8962f };
*uParam2 = 29.8138f;
break;
case 19:
*uParam1 = { -147.0616f, -306.4322f, 37.7912f };
*uParam2 = 160.4526f;
break;
case 20:
*uParam1 = { -1461.355f, -230.6092f, 48.3064f };
*uParam2 = 318.7851f;
break;
case 21:
*uParam1 = { -1347.739f, -1278.573f, 3.8952f };
*uParam2 = 17.9365f;
break;
case 22:
*uParam1 = { 325.6833f, 164.3263f, 102.4425f };
*uParam2 = 68.6407f;
break;
case 23:
*uParam1 = { 1858.774f, 3742.393f, 32.0779f };
*uParam2 = 301.2329f;
break;
case 24:
*uParam1 = { -286.3272f, 6202.802f, 30.3323f };
*uParam2 = 225.1334f;
break;
case 25:
*uParam1 = { -1161.596f, -1417.7f, 3.712f };
*uParam2 = 246.9161f;
break;
case 26:
*uParam1 = { 1308.952f, -1660.611f, 50.2362f };
*uParam2 = 163.5456f;
break;
case 27:
*uParam1 = { -3161.585f, 1074.214f, 19.6847f };
*uParam2 = 98.6092f;
break;
case 28:
*uParam1 = { 28.423f, -1110.814f, 28.2848f };
*uParam2 = 85.2495f;
break;
case 29:
*uParam1 = { 1704.966f, 3749.709f, 33.0188f };
*uParam2 = 45.6778f;
break;
case 30:
*uParam1 = { 223.949f, -38.7894f, 68.6483f };
*uParam2 = 159.4265f;
break;
case 31:
*uParam1 = { 837.7854f, -1017.963f, 26.3045f };
*uParam2 = 181.0445f;
break;
case 32:
*uParam1 = { -313.1914f, 6093.351f, 30.4625f };
*uParam2 = 315.8405f;
break;
case 33:
*uParam1 = { -663.4631f, -952.8069f, 20.3143f };
*uParam2 = 92.6796f;
break;
case 34:
*uParam1 = { -1323.06f, -392.8577f, 35.4596f };
*uParam2 = 210.7398f;
break;
case 35:
*uParam1 = { -1106.102f, 2684.35f, 18.0953f };
*uParam2 = 127.0383f;
break;
case 36:
*uParam1 = { -3157.932f, 1081.309f, 19.6953f };
*uParam2 = 100.2942f;
break;
case 37:
*uParam1 = { 2562.882f, 312.8641f, 107.4612f };
*uParam2 = 179.205f;
break;
case 38:
*uParam1 = { 822.48f, -2142.875f, 27.8496f };
*uParam2 = 355.0598f;
break;
case 39:
*uParam1 = { -1137.053f, -1993.916f, 12.1677f };
*uParam2 = 43.1213f;
break;
case 40:
*uParam1 = { 717.8107f, -1084.081f, 21.3094f };
*uParam2 = 93.2649f;
break;
case 41:
*uParam1 = { -387.6789f, -128.2568f, 37.6796f };
*uParam2 = 119.1085f;
break;
case 42:
*uParam1 = { 117.8835f, 6599.415f, 31.0134f };
*uParam2 = 90.7225f;
break;
case 43:
*uParam1 = { 1201.709f, 2664.813f, 36.8102f };
*uParam2 = 133.9002f;
break;
case 44:
*uParam1 = { -200.1521f, -1297.502f, 30.296f };
*uParam2 = 269.0687f;
break;
case 45:
*uParam1 = { 0f, 0f, 0f };
*uParam2 = 0f;
break;
case 46:
*uParam1 = { 0f, 0f, 0f };
*uParam2 = 0f;
break;
case 47:
*uParam1 = { 0f, 0f, 0f };
*uParam2 = 0f;
break;
case 48:
*uParam1 = { 0f, 0f, 0f };
*uParam2 = 0f;
break;
case 49:
*uParam1 = { 0f, 0f, 0f };
*uParam2 = 0f;
break;
}
return !func_244(*uParam1, 0f, 0f, 0f, 0);
}
int func_345(var uParam0)
{
if (!unk_0x7112137033807390(unk_0xA19140A5C42D8715(), 0) && !unk_0x4915F4759304D5CF(unk_0xA19140A5C42D8715()))
{
if (func_365())
{
*uParam0 = func_348(unk_0xE2BBD32891C18569(unk_0xA19140A5C42D8715(), false), 6, -1, 0, 1, -1);
if (func_347(*uParam0) && !func_346(*uParam0))
{
return 1;
}
}
}
return 0;
}
bool func_346(int iParam0)
{
return func_23(iParam0, 0, 1);
}
bool func_347(int iParam0)
{
return func_23(iParam0, 5, 1);
}
int func_348(vector3 vParam0, int iParam1, int iParam2, bool bParam3, int iParam4, int iParam5)
{
int iVar0;
float fVar1;
float fVar2;
int iVar3;
fVar2 = 1000000f;
iVar3 = -1;
iVar0 = 0;
while (iVar0 <= 49)
{
if (iParam1 == 6 || iParam1 == func_364(iVar0))
{
if (!bParam3 || func_363(iVar0))
{
fVar1 = unk_0x499324B3EF19C288(vParam0, func_349(iVar0, 0), true);
if (((fVar1 < fVar2 && (fVar1 <= IntToFloat(iParam2) || iParam2 == -1)) && (iParam4 || iVar0 != 21)) && iVar0 != iParam5)
{
fVar2 = fVar1;
iVar3 = iVar0;
}
}
}
iVar0++;
}
return iVar3;
}
Vector3 func_349(int iParam0, bool bParam1)
{
switch (iParam0)
{
case -1:
return 0f, 0f, 0f;
break;
case 0:
return -821.9946f, -187.1776f, 36.5689f;
break;
case 1:
return 133.5702f, -1710.918f, 28.2916f;
break;
case 2:
return -1287.082f, -1116.558f, 5.9901f;
break;
case 3:
return 1933.119f, 3726.079f, 31.8444f;
break;
case 4:
return 1208.333f, -470.917f, 65.208f;
break;
case 5:
return -30.7448f, -148.4921f, 56.0765f;
break;
case 6:
return -280.8165f, 6231.771f, 30.6955f;
break;
case 7:
return 80.665f, -1391.669f, 28.3761f;
break;
case 8:
return 1687.881f, 4820.55f, 41.0096f;
break;
case 9:
return 419.531f, -807.5787f, 28.4896f;
break;
case 10:
return -1094.049f, 2704.171f, 18.0873f;
break;
case 11:
return 1197.972f, 2704.22f, 37.1572f;
break;
case 12:
return -818.6218f, -1077.533f, 10.3282f;
break;
case 13:
return -0.2361f, 6516.045f, 30.8684f;
break;
case 14:
return -1199.809f, -776.6886f, 16.3237f;
break;
case 15:
return 618.1857f, 2752.567f, 41.0881f;
break;
case 16:
return 126.6853f, -212.5027f, 53.5578f;
break;
case 17:
return -3168.966f, 1055.287f, 19.8632f;
break;
case 18:
return -715.3598f, -155.7742f, 36.4105f;
break;
case 19:
return -158.2199f, -304.9663f, 38.735f;
break;
case 20:
return -1455.005f, -233.1862f, 48.7936f;
break;
case 21:
return -1335.973f, -1278.555f, 3.8598f;
break;
case 22:
return 321.6098f, 179.4165f, 102.5865f;
break;
case 23:
return 1861.685f, 3750.08f, 32.0318f;
break;
case 24:
return -290.1603f, 6199.095f, 30.4871f;
break;
case 25:
return -1153.948f, -1425.019f, 3.9544f;
break;
case 26:
return 1322.455f, -1651.125f, 51.1885f;
break;
case 27:
return -3169.42f, 1074.727f, 19.8343f;
break;
case 28:
return 17.6804f, -1114.288f, 28.797f;
break;
case 29:
return 1697.979f, 3753.2f, 33.7053f;
break;
case 30:
return 245.2711f, -45.8126f, 68.941f;
break;
case 31:
return 844.1248f, -1025.571f, 27.1948f;
break;
case 32:
return -325.8904f, 6077.026f, 30.4548f;
break;
case 33:
return -664.2178f, -943.3646f, 20.8292f;
break;
case 34:
return -1313.948f, -390.9637f, 35.592f;
break;
case 35:
return -1111.238f, 2688.463f, 17.6131f;
break;
case 36:
return -3165.231f, 1082.855f, 19.8438f;
break;
case 37:
return 2569.612f, 302.576f, 107.7349f;
break;
case 38:
return 811.8699f, -2149.102f, 28.6363f;
break;
case 39:
return -1147.314f, -1992.434f, 12.1803f;
break;
case 40:
return 724.524f, -1089.081f, 21.1692f;
break;
case 41:
return -354.5272f, -135.4011f, 38.185f;
break;
case 42:
return 113.2615f, 6624.28f, 30.7871f;
break;
case 43:
return 1174.707f, 2644.45f, 36.7552f;
break;
case 44:
if (bParam1)
{
return -211.5f, -1324.2f, 30.296f;
}
else
{
return -205.6654f, -1311.113f, 30.296f;
}
break;
case 45:
return func_360(Global_95303);
break;
case 46:
if (Global_1589591 != func_359())
{
if (func_358(Global_1589591))
{
return func_351(2, 2);
}
else if (func_350(Global_1589591))
{
return func_351(45, 3);
}
else
{
return 1000000f, 1000000f, 1000000f;
}
}
else
{
return 1000000f, 1000000f, 1000000f;
}
break;
case 47:
return 510.1f, 4749.5f, -69f;
break;
case 48:
return -1422.197f, -3015.803f, -79.1603f;
break;
case 49:
return 203.0799f, 5200.189f, -89.6f;
break;
}
return 1000000f, 1000000f, 1000000f;
}
int func_350(int iParam0)
{
if (iParam0 != func_359())
{
if ((unk_0x05EFB6A616B6FADE(Global_1589747[iParam0 /*790*/].f_273.f_250, 0) || unk_0x05EFB6A616B6FADE(Global_1589747[iParam0 /*790*/].f_273.f_250, 1)) || unk_0x05EFB6A616B6FADE(Global_1589747[iParam0 /*790*/].f_273.f_250, 2))
{
return 1;
}
}
return 0;
}
Vector3 func_351(int iParam0, int iParam1)
{
vector3 vVar0;
vector3 vVar1;
vVar1 = { 1000000f, 1000000f, 1000000f };
if (Global_1589591 != func_359())
{
if (iParam1 == 3)
{
if (func_352(iParam0, 1, &vVar0, 0, 0))
{
vVar1 = { vVar0 };
}
}
else if (iParam1 == 2)
{
if (unk_0x05EFB6A616B6FADE(Global_1589747[Global_1589591 /*790*/].f_273.f_250, 4))
{
if (func_352(iParam0, 1, &vVar0, 0, 0))
{
vVar1 = { vVar0 };
}
}
else if (unk_0x05EFB6A616B6FADE(Global_1589747[Global_1589591 /*790*/].f_273.f_250, 5))
{
if (func_352(iParam0, 2, &vVar0, 0, 0))
{
vVar1 = { vVar0 };
}
}
}
}
return vVar1;
}
int func_352(int iParam0, int iParam1, var uParam2, int iParam3, bool bParam4)
{
struct<4> Var0;
vector3 vVar1;
struct<4> Var2;
vector3 vVar3;
if (!func_357(iParam3, &Var0))
{
return 0;
}
if (!func_357(iParam1, &vVar1))
{
return 0;
}
if (!bParam4)
{
Var2 = { func_355(iParam0) };
}
else
{
Var2 = { func_354(iParam0) };
}
vVar3 = { Var2 - Var0 };
vVar3 = { func_353(vVar3, -Var0.f_3.f_2) };
vVar3 = { func_353(vVar3, vVar1.f_3.f_2) };
*uParam2 = { unk_0x2F230B37E9FFF23F(vVar1, 0f, vVar3) };
uParam2->f_3 = { Var2.f_3 };
return 1;
}
Vector3 func_353(vector3 vParam0, float fParam1)
{
vector3 vVar0;
float fVar1;
float fVar2;
fVar1 = sin(fParam1);
fVar2 = cos(fParam1);
vVar0.x = ((vParam0.x * fVar2) - (vParam0.y * fVar1));
vVar0.y = ((vParam0.x * fVar1) + (vParam0.y * fVar2));
vVar0.z = vParam0.z;
return vVar0;
}
struct<6> func_354(int iParam0)
{
struct<6> Var0;
switch (iParam0)
{
case 0:
Var0 = { 1102.1f, -3010.2f, -39.35f };
Var0.f_3 = { 0f, 0f, 115.92f };
break;
case 1:
Var0 = { 1105.05f, -3010.2f, -39.35f };
Var0.f_3 = { 0f, 0f, -103.32f };
break;
case 2:
Var0 = { 1105.05f, -3008.75f, -39.35f };
Var0.f_3 = { 0f, 0f, -77.76f };
break;
case 3:
Var0 = { 1102.1f, -3002.1f, -39.35f };
Var0.f_3 = { 0f, 0f, 102.96f };
break;
case 4:
Var0 = { 1105.05f, -3002.1f, -39.35f };
Var0.f_3 = { 0f, 0f, -101.88f };
break;
case 5:
Var0 = { 1105.05f, -3000.65f, -39.35f };
Var0.f_3 = { 0f, 0f, -81.36f };
break;
case 6:
Var0 = { 1102.1f, -2994.2f, -39.35f };
Var0.f_3 = { 0f, 0f, 103.32f };
break;
case 7:
Var0 = { 1105.05f, -2994.2f, -39.35f };
Var0.f_3 = { 0f, 0f, -109.8f };
break;
case 8:
Var0 = { 1105.05f, -2992.65f, -39.35f };
Var0.f_3 = { 0f, 0f, -84.96f };
break;
}
return Var0;
}
struct<6> func_355(int iParam0)
{
return func_356(iParam0);
}
struct<6> func_356(int iParam0)
{
struct<6> Var0;
switch (iParam0)
{
case 0:
Var0 = { 1105.22f, -3013.985f, -40f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 1:
Var0 = { 1104.105f, -3013.985f, -40f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 19:
Var0 = { 1105.22f, -3005.985f, -40f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 20:
Var0 = { 1104.105f, -3005.985f, -40f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 2:
Var0 = { 1102f, -3011.925f, -39.95f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 3:
Var0 = { 1103f, -3010f, -38.125f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 4:
Var0 = { 1103.213f, -3013.483f, -39.03f };
Var0.f_3 = { 0f, 0f, 31.32f };
break;
case 5:
Var0.f_3 = { 0f, 0f, 0f };
Var0 = { 1101.408f, -3012.32f, -38.45339f };
break;
case 6:
Var0.f_3 = { 0f, 0f, 0f };
Var0 = { 1103.037f, -3012.318f, -39.99874f };
break;
case 7:
Var0 = { 1105.645f, -3012.04f, -39.542f };
Var0.f_3 = { 0f, 0f, -86.04f };
break;
case 8:
Var0.f_3 = { 0f, 0f, 0f };
Var0 = { 1104.063f, -3012.368f, -39.99875f };
break;
case 9:
Var0 = { 1105.665f, -3012.334f, -38.50835f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 10:
Var0 = { 1102.504f, -3012.35f, -39.341f };
Var0.f_3 = { 0f, 0f, -96.48f };
break;
case 11:
Var0 = { 1102.928f, -3012.693f, -39.99945f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 12:
Var0 = { 1102.942f, -3011.315f, -37.99945f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 61:
Var0 = { 1101.994f, -3012.878f, -39.95f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 62:
Var0 = { 1103.152f, -3013.032f, -38.24946f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 13:
Var0 = { 1102.465f, -3009.515f, -39.341f };
Var0.f_3 = { 0f, 0f, -12.96f };
break;
case 14:
Var0 = { 1102.917f, -3009.525f, -39.99945f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 15:
Var0 = { 1102.922f, -3010.887f, -37.99945f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 63:
Var0 = { 1101.682f, -3009.227f, -39.95f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 64:
Var0 = { 1102.453f, -3008.51f, -38.2f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 16:
Var0 = { 1104.684f, -3009.561f, -39.341f };
Var0.f_3 = { 0f, 0f, 169.56f };
break;
case 17:
Var0 = { 1104.34f, -3008.698f, -39.99945f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 18:
Var0 = { 1104.344f, -3009.618f, -37.98172f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 65:
Var0 = { 1105.459f, -3009.793f, -39.95f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 66:
Var0 = { 1104.783f, -3010.433f, -38.2f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 44:
Var0 = { 1104.025f, -3007.316f, -39.9987f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 21:
Var0 = { 1103.562f, -3014f, -40f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 22:
Var0 = { 1103.562f, -3014f, -40f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 23:
Var0 = { 1102.1f, -3010.2f, -39.35f };
Var0.f_3 = { 0f, 0f, 115.92f };
break;
case 24:
Var0 = { 1105.05f, -3010.2f, -39.35f };
Var0.f_3 = { 0f, 0f, -103.32f };
break;
case 25:
Var0 = { 1105.05f, -3008.75f, -39.35f };
Var0.f_3 = { 0f, 0f, -77.76f };
break;
case 26:
Var0 = { 1102.05f, -3011.717f, -39.35f };
Var0.f_3 = { 0f, 0f, 90f };
break;
case 27:
Var0 = { 1102.05f, -3012.653f, -39.35f };
Var0.f_3 = { 0f, 0f, 90f };
break;
case 28:
Var0 = { 1105.05f, -3012.653f, -39.35f };
Var0.f_3 = { 0f, 0f, -90f };
break;
case 29:
Var0 = { 1105.05f, -3011.717f, -39.35f };
Var0.f_3 = { 0f, 0f, -90f };
break;
case 30:
Var0 = { 1102.1f, -3002.1f, -39.35f };
Var0.f_3 = { 0f, 0f, 102.96f };
break;
case 31:
Var0 = { 1105.05f, -3002.1f, -39.35f };
Var0.f_3 = { 0f, 0f, -101.88f };
break;
case 32:
Var0 = { 1105.05f, -3000.65f, -39.35f };
Var0.f_3 = { 0f, 0f, -81.36f };
break;
case 33:
Var0 = { 1102.05f, -3003.592f, -39.35f };
Var0.f_3 = { 0f, 0f, 90f };
break;
case 34:
Var0 = { 1102.05f, -3004.541f, -39.35f };
Var0.f_3 = { 0f, 0f, 90f };
break;
case 35:
Var0 = { 1105.05f, -3004.541f, -39.35f };
Var0.f_3 = { 0f, 0f, -90f };
break;
case 36:
Var0 = { 1105.05f, -3003.592f, -39.35f };
Var0.f_3 = { 0f, 0f, -90f };
break;
case 37:
Var0 = { 1102.1f, -2994.2f, -39.35f };
Var0.f_3 = { 0f, 0f, 103.32f };
break;
case 38:
Var0 = { 1105.05f, -2994.2f, -39.35f };
Var0.f_3 = { 0f, 0f, -109.8f };
break;
case 39:
Var0 = { 1105.05f, -2992.65f, -39.35f };
Var0.f_3 = { 0f, 0f, -84.96f };
break;
case 40:
Var0 = { 1102.05f, -2995.582f, -39.35f };
Var0.f_3 = { 0f, 0f, 90f };
break;
case 41:
Var0 = { 1102.05f, -2996.501f, -39.35f };
Var0.f_3 = { 0f, 0f, 90f };
break;
case 42:
Var0 = { 1105.05f, -2996.501f, -39.35f };
Var0.f_3 = { 0f, 0f, -90f };
break;
case 43:
Var0 = { 1105.05f, -2995.582f, -39.35f };
Var0.f_3 = { 0f, 0f, -90f };
break;
case 45:
Var0 = { 1101f, -3011.9f, -39.95f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 46:
Var0 = { 1102f, -3010f, -38.115f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 47:
Var0 = { 1105.174f, -3004.16f, -40f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 48:
Var0 = { 1105.175f, -3005.818f, -37.91948f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 49:
Var0 = { 1106.6f, -3000.847f, -39.89988f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 50:
Var0 = { 1106.601f, -3002.171f, -37.89988f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 51:
Var0 = { 1101.95f, -3011.9f, -39.2f };
Var0.f_3 = { 0f, 0f, 49.5f };
break;
case 52:
Var0 = { 1101.95f, -3010f, -39.2f };
Var0.f_3 = { 0f, 0f, 130.32f };
break;
case 53:
Var0 = { 1105.16f, -3009.06f, -39.2f };
Var0.f_3 = { 0f, 0f, -44.64f };
break;
case 54:
Var0 = { 1102.476f, -3008.508f, -40f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 55:
Var0 = { 1099f, -3008.508f, -40f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 56:
Var0 = { 1103.593f, -3008.27f, -39.9987f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 57:
Var0 = { 1103.565f, -3014f, -39.988f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 58:
Var0 = { 1103.565f, -3014f, -40f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 59:
Var0 = { 1103.565f, -3014f, -40f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 60:
Var0 = { 1103.55f, -3014f, -40f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 67:
Var0 = { 1103.55f, -3013.762f, -40f };
Var0.f_3 = { 0f, 0f, 180f };
break;
case 68:
Var0 = { 1103.55f, -3006.186f, -40f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 71:
case 69:
case 70:
case 73:
case 72:
case 74:
Var0 = { 1103.6f, -3013.933f, -40f };
Var0.f_3 = { 0f, 0f, 0f };
break;
}
return Var0;
}
int func_357(int iParam0, var uParam1)
{
switch (iParam0)
{
case 0:
*uParam1 = { 1103.562f, -3014f, -40f };
uParam1->f_3 = { 0f, 0f, 0f };
return 1;
case 1:
*uParam1 = { 1103.562f, -3006f, -40f };
uParam1->f_3 = { 0f, 0f, 0f };
return 1;
case 2:
*uParam1 = { 1103.562f, -2998f, -40f };
uParam1->f_3 = { 0f, 0f, 0f };
return 1;
default:
}
return 0;
}
int func_358(int iParam0)
{
if (iParam0 != func_359())
{
if ((unk_0x05EFB6A616B6FADE(Global_1589747[iParam0 /*790*/].f_273.f_250, 3) || unk_0x05EFB6A616B6FADE(Global_1589747[iParam0 /*790*/].f_273.f_250, 4)) || unk_0x05EFB6A616B6FADE(Global_1589747[iParam0 /*790*/].f_273.f_250, 5))
{
return 1;
}
}
return 0;
}
int func_359()
{
return -1;
}
Vector3 func_360(int iParam0)
{
switch (iParam0)
{
case 1:
return 1060f, -2990f, -35f;
break;
case 2:
return 1060f, -2990f, -35f;
break;
case 3:
return 974.9542f, -3000.091f, -35f;
break;
case 6:
return -1586.36f, -566.6f, 106.17f;
break;
case 7:
return -1389.87f, -465.17f, 82.68f;
break;
case 8:
return -145.81f, -590.2f, 171.13f;
break;
case 9:
return -62.49f, -823.55f, 288.74f;
break;
case 4:
return 1102.515f, -3158.888f, -38.5186f;
break;
case 5:
return 1005.861f, -3156.162f, -39.907f;
break;
case 10:
return 1103.562f, -3000f, -40f;
break;
case 11:
return 938.3077f, -3196.112f, -100f;
break;
case 12:
return -1266.802f, -3014.836f, -49.4895f;
break;
case 13:
return 520.0001f, 4750f, -70f;
break;
case 14:
return 345.0041f, 4842.001f, -59.9997f;
break;
case 15:
return -1604.664f, -3012.583f, -79.9999f;
break;
case 16:
return -1421.015f, -3012.587f, -80f;
break;
case 17:
if (func_361() == 0)
{
return 205f, 5180f, -90f;
}
else
{
return 170f, 5190f, 10f;
}
break;
default:
return 0f, 0f, -200f;
break;
}
return 0f, 0f, -200f;
}
int func_361()
{
return func_362(unk_0xD4E735F4B6A956AC());
}
int func_362(int iParam0)
{
return unk_0x493DDADBC14A1274(Global_2423801[iParam0 /*413*/].f_309.f_3, 28, 31);
}
int func_363(int iParam0)
{
return func_23(iParam0, 0, 0);
}
int func_364(int iParam0)
{
switch (iParam0)
{
case -1:
return 6;
break;
case 0:
return 0;
break;
case 1:
return 0;
break;
case 2:
return 0;
break;
case 3:
return 0;
break;
case 4:
return 0;
break;
case 5:
return 0;
break;
case 6:
return 0;
break;
case 7:
return 1;
break;
case 8:
return 1;
break;
case 9:
return 1;
break;
case 10:
return 1;
break;
case 11:
return 1;
break;
case 12:
return 1;
break;
case 13:
return 1;
break;
case 14:
return 1;
break;
case 15:
return 1;
break;
case 16:
return 1;
break;
case 17:
return 1;
break;
case 18:
return 1;
break;
case 19:
return 1;
break;
case 20:
return 1;
break;
case 21:
return 1;
break;
case 22:
return 2;
break;
case 23:
return 2;
break;
case 24:
return 2;
break;
case 25:
return 2;
break;
case 26:
return 2;
break;
case 27:
return 2;
break;
case 28:
return 3;
break;
case 29:
return 3;
break;
case 30:
return 3;
break;
case 31:
return 3;
break;
case 32:
return 3;
break;
case 33:
return 3;
break;
case 34:
return 3;
break;
case 35:
return 3;
break;
case 36:
return 3;
break;
case 37:
return 3;
break;
case 38:
return 3;
break;
case 39:
return 4;
break;
case 40:
return 4;
break;
case 41:
return 4;
break;
case 42:
return 4;
break;
case 43:
return 4;
break;
case 44:
return 4;
break;
case 45:
return 5;
break;
case 46:
return 3;
break;
case 47:
return 3;
break;
case 48:
return 3;
break;
case 49:
return 3;
break;
}
return 6;
}
bool func_365()
{
return Global_93284.f_327 > 0;
}
void func_366(int iParam0)
{
if (iParam0 < 94)
{
func_37();
Global_71460 = iParam0;
Global_71459 = 0;
Global_71462 = 1;
}
}
void func_367(char* sParam0, int iParam1, int iParam2)
{
if (!unk_0x429D45A6C6520026(&Global_90397))
{
unk_0x70D5564B24C33858(&Global_90397, 0, 0, 0, 1, 0);
StringCopy(&Global_90397, "", 64);
}
StringCopy(&Global_90397, sParam0, 64);
unk_0x68A0B28BF08CE0B0(sParam0, iParam1, iParam2, func_888(0));
}
void func_368(int iParam0)
{
var uVar0;
vector3 vVar1[24];
if (unk_0x365C4466BC171A2D() || unk_0x29A02C184A66D25E())
{
uVar0 = iParam0;
unk_0x14D4D10C8FD9E0DD(1, &uVar0, 1, 1);
}
else if (unk_0x332D85764ED0503F() || unk_0x7DD04831D0FC44CA())
{
StringCopy(&cVar1, "SPM_", 24);
StringIntConCat(&cVar1, iParam0, 24);
StringConCat(&cVar1, "_STR", 24);
unk_0x5182FF270C9DCEBC(1, &cVar1);
}
}
void func_369(var uParam0)
{
bool bVar0;
int iVar1;
int iVar2;
if (*uParam0 == -1)
{
return;
}
if (Global_71202 == *uParam0)
{
func_370(*uParam0, 0);
}
if (Global_71201 == *uParam0)
{
Global_71201 = -1;
}
bVar0 = false;
iVar1 = 0;
while (!bVar0 && iVar1 < Global_71198)
{
if (Global_71187[iVar1 /*2*/] == *uParam0)
{
bVar0 = true;
}
else
{
iVar1++;
}
}
if (!bVar0)
{
return;
}
iVar2 = iVar1;
while (iVar2 <= (Global_71198 - 2))
{
Global_71187[iVar2 /*2*/] = Global_71187[iVar2 + 1 /*2*/];
Global_71187[iVar2 /*2*/].f_1 = Global_71187[iVar2 + 1 /*2*/].f_1;
iVar2++;
}
Global_71187[(Global_71198 - 1) /*2*/] = -1;
Global_71187[(Global_71198 - 1) /*2*/].f_1 = 3;
Global_71198 = (Global_71198 - 1);
Global_71199 = 1;
Global_71200 = unk_0x817B152F7462D506();
*uParam0 = -1;
}
void func_370(int iParam0, bool bParam1)
{
if (iParam0 == -1)
{
return;
}
if (bParam1)
{
if (Global_71201 == iParam0)
{
Global_71202 = iParam0;
}
}
else if (Global_71202 == iParam0)
{
Global_71202 = -1;
}
}
void func_371()
{
int iVar0;
iVar0 = 0;
while (iVar0 < Global_71229)
{
StringCopy(&(Global_71230[iVar0 /*6*/]), "", 24);
iVar0++;
}
Global_71229 = 0;
}
void func_372()
{
var uVar0;
var uVar1;
int iVar2;
int iVar3;
iVar2 = 0;
while (iVar2 < 3)
{
iVar3 = Global_106070.f_18505[iVar2];
if (func_245(iVar3, &uVar0, &uVar1))
{
if (((iVar3 != 8 && iVar3 != 11) && iVar3 != 9) && iVar3 != 10)
{
Global_106070.f_18505[iVar2] = 318;
}
}
iVar2++;
}
}
void func_373()
{
int iVar0;
int iVar1;
iVar0 = 0;
while (iVar0 < 263)
{
if (Global_25834[iVar0 /*23*/].f_16 == 6)
{
iVar1 = iVar0;
func_374(iVar1);
}
iVar0++;
}
}
void func_374(int iParam0)
{
func_377(iParam0, 0, 0);
func_376(iParam0, 1);
func_375(iParam0, 1);
}
void func_375(int iParam0, bool bParam1)
{
int iVar0;
iVar0 = iParam0;
if ((iVar0 < 0 || iVar0 >= 263) || iParam0 == 263)
{
return;
}
if (bParam1 == unk_0x05EFB6A616B6FADE(Global_25834[iVar0 /*23*/].f_11, 4))
{
return;
}
if (bParam1)
{
unk_0x2BCFB39E86340DAA(&(Global_25834[iVar0 /*23*/].f_11), 4);
}
else
{
unk_0xFA57C719261AA55D(&(Global_25834[iVar0 /*23*/].f_11), 4);
}
if (Global_25831 == 1)
{
Global_25832 = 1;
}
Global_25831 = 1;
unk_0x2BCFB39E86340DAA(&(Global_25834[iVar0 /*23*/].f_11), 18);
}
void func_376(int iParam0, bool bParam1)
{
int iVar0;
iVar0 = iParam0;
if ((iVar0 < 0 || iVar0 >= 263) || iParam0 == 263)
{
return;
}
if (bParam1 == unk_0x05EFB6A616B6FADE(Global_25834[iVar0 /*23*/].f_11, 5))
{
return;
}
if (bParam1)
{
unk_0x2BCFB39E86340DAA(&(Global_25834[iVar0 /*23*/].f_11), 5);
}
else
{
unk_0xFA57C719261AA55D(&(Global_25834[iVar0 /*23*/].f_11), 5);
}
if (Global_25831 == 1)
{
Global_25832 = 1;
}
Global_25831 = 1;
unk_0x2BCFB39E86340DAA(&(Global_25834[iVar0 /*23*/].f_11), 18);
}
void func_377(int iParam0, bool bParam1, bool bParam2)
{
int iVar0;
iVar0 = iParam0;
if ((iVar0 < 0 || iVar0 >= 263) || iParam0 == 263)
{
return;
}
if (bParam1 == unk_0x05EFB6A616B6FADE(Global_25834[iVar0 /*23*/].f_11, 6))
{
return;
}
if (bParam1)
{
unk_0x2BCFB39E86340DAA(&(Global_25834[iVar0 /*23*/].f_11), 6);
}
else
{
unk_0xFA57C719261AA55D(&(Global_25834[iVar0 /*23*/].f_11), 6);
}
if (bParam2)
{
unk_0x2BCFB39E86340DAA(&(Global_25834[iVar0 /*23*/].f_11), 11);
}
else
{
unk_0xFA57C719261AA55D(&(Global_25834[iVar0 /*23*/].f_11), 11);
}
if (Global_25831 == 1)
{
Global_25832 = 1;
}
Global_25831 = 1;
unk_0x2BCFB39E86340DAA(&(Global_25834[iVar0 /*23*/].f_11), 18);
}
int func_378(int iParam0)
{
switch (iParam0)
{
case 62:
case 15:
return 0;
break;
case 47:
return 1;
break;
}
return 145;
}
void func_379()
{
Global_14688 = 0;
func_380();
}
void func_380()
{
unk_0xB4E5B1A6FE923ECB();
Global_16833 = 0;
if ((unk_0xB39808C1DCE0DCFA() || Global_14513.f_1 == 9) || Global_14512 == 1)
{
unk_0xA8B97F91CBDE376C(false);
Global_15822 = 6;
Global_14513.f_1 = 3;
return;
}
if (unk_0x904275961B875DEB())
{
unk_0xA8B97F91CBDE376C(true);
Global_15822 = 6;
return;
}
}
int func_381()
{
if (Global_15822 != 0 || unk_0x904275961B875DEB())
{
return 1;
}
return 0;
}
void func_382()
{
if (Global_3188[0 /*2811*/][0 /*281*/].f_259 == 2)
{
Global_3188[0 /*2811*/][0 /*281*/].f_259 = 0;
}
if (Global_3188[1 /*2811*/][0 /*281*/].f_259 == 2)
{
Global_3188[1 /*2811*/][0 /*281*/].f_259 = 0;
}
if (Global_3188[2 /*2811*/][0 /*281*/].f_259 == 2)
{
Global_3188[2 /*2811*/][0 /*281*/].f_259 = 0;
}
unk_0xFA57C719261AA55D(&Global_2383, 25);
unk_0x2BCFB39E86340DAA(&Global_2384, 11);
}
void func_383(int iParam0, int iParam1)
{
int iVar0;
int iVar1;
struct<65> Var2;
int iVar3;
if (!unk_0x4915F4759304D5CF(iParam0))
{
iVar0 = func_48(iParam0);
if (func_47(iVar0))
{
if (iVar0 == 2)
{
iVar1 = func_116(iParam0, 4, -1);
if (iVar1 == 93)
{
func_546(iVar0);
func_390(iParam0, &(Global_106070.f_2355.f_539[iVar0 /*65*/]), 0, 0, 1, 0);
}
}
Var2 = 12;
Var2.f_13 = 12;
Var2.f_26 = 12;
Var2.f_39 = 9;
Var2.f_49 = 9;
func_329(iParam0, &Var2, 1, -1);
Global_93022[iVar0 /*65*/] = { Var2 };
if (iParam0 == unk_0xA19140A5C42D8715())
{
func_385();
}
if (unk_0xFEB6EEC0545AF7AA(unk_0x61D2332983ACC05C()) != unk_0xFEB6EEC0545AF7AA("clothes_shop_sp") || (unk_0x8B1574454E8C2421(joaat("lester1")) == 0 && unk_0x8B1574454E8C2421(joaat("michael4")) == 0))
{
if (iParam1 || ((((((!func_46(0) && !func_46(1)) && !func_46(2)) && !func_46(3)) && !func_46(4)) && !func_46(9)) && !func_46(10)))
{
Global_106070.f_2355.f_539[iVar0 /*65*/] = { Var2 };
Global_106070.f_2355.f_539.f_2371[iVar0] = func_384(iParam0);
iVar3 = 0;
while (iVar3 < 12)
{
Global_106070.f_2355.f_539.f_204[iVar3 /*4*/][iVar0] = func_139(iParam0, func_153(iVar3));
iVar3++;
}
iVar3 = 0;
while (iVar3 < 12)
{
Global_106070.f_2355.f_539.f_204[iVar3 /*4*/][iVar0] = func_139(iParam0, func_153(iVar3));
iVar3++;
}
if (iVar0 == 0)
{
if (Global_106070.f_9057.f_99.f_58[121])
{
Global_106070.f_9057.f_99.f_58[122] = 1;
}
}
}
}
}
}
}
int func_384(int iParam0)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
iVar0 = 0;
iVar1 = 0;
while (iVar1 < 12)
{
iVar4 = iVar1;
iVar3 = unk_0xE73139FCB8A4B748(iParam0, iVar4);
iVar2 = 0;
while (iVar2 < iVar3)
{
iVar0 = (iVar0 + unk_0x2B322C65C819A12B(iParam0, iVar4, iVar2));
iVar2++;
}
iVar1++;
}
iVar5 = 0;
while (iVar5 < 9)
{
iVar8 = iVar5;
iVar7 = unk_0xFBE47E4C51D1D9AE(iParam0, iVar8);
iVar6 = 0;
while (iVar6 < iVar7)
{
iVar0 = (iVar0 + unk_0x912FC8EEC1AA4059(iParam0, iVar8, iVar6));
iVar6++;
}
iVar5++;
}
return iVar0;
}
void func_385()
{
struct<50> Var0;
if ((unk_0x4915F4759304D5CF(unk_0xA19140A5C42D8715()) || !func_47(func_44())) || !func_387())
{
return;
}
Var0 = 12;
Var0.f_13 = 12;
Var0.f_26 = 12;
Var0.f_39 = 9;
Var0.f_49 = 9;
func_329(unk_0xA19140A5C42D8715(), &Var0, 1, -1);
func_386(1306, Var0[0], -1, 1);
func_386(1307, Var0[1], -1, 1);
func_386(1308, Var0[2], -1, 1);
func_386(1309, Var0[3], -1, 1);
func_386(1310, Var0[4], -1, 1);
func_386(1311, Var0[5], -1, 1);
func_386(1312, Var0[6], -1, 1);
func_386(1313, Var0[7], -1, 1);
func_386(1314, Var0[8], -1, 1);
func_386(1315, Var0[9], -1, 1);
func_386(1316, Var0[10], -1, 1);
func_386(1317, Var0[11], -1, 1);
func_386(1318, Var0.f_13[0], -1, 1);
func_386(1319, Var0.f_13[1], -1, 1);
func_386(1320, Var0.f_13[2], -1, 1);
func_386(1321, Var0.f_13[3], -1, 1);
func_386(1322, Var0.f_13[4], -1, 1);
func_386(1323, Var0.f_13[5], -1, 1);
func_386(1324, Var0.f_13[6], -1, 1);
func_386(1325, Var0.f_13[7], -1, 1);
func_386(1326, Var0.f_13[8], -1, 1);
func_386(1327, Var0.f_13[9], -1, 1);
func_386(1328, Var0.f_13[10], -1, 1);
func_386(1329, Var0.f_13[11], -1, 1);
func_386(1330, Var0.f_26[0], -1, 1);
func_386(1331, Var0.f_26[1], -1, 1);
func_386(1332, Var0.f_26[2], -1, 1);
func_386(1333, Var0.f_26[3], -1, 1);
func_386(1334, Var0.f_26[4], -1, 1);
func_386(1335, Var0.f_26[5], -1, 1);
func_386(1336, Var0.f_26[6], -1, 1);
func_386(1337, Var0.f_26[7], -1, 1);
func_386(1338, Var0.f_26[8], -1, 1);
func_386(1339, Var0.f_26[9], -1, 1);
func_386(1340, Var0.f_26[10], -1, 1);
func_386(1341, Var0.f_26[11], -1, 1);
func_386(1342, Var0.f_39[0], -1, 1);
func_386(1343, Var0.f_39[1], -1, 1);
func_386(1344, Var0.f_39[2], -1, 1);
func_386(1345, Var0.f_39[3], -1, 1);
func_386(1346, Var0.f_39[4], -1, 1);
func_386(1347, Var0.f_39[5], -1, 1);
func_386(1348, Var0.f_39[6], -1, 1);
func_386(1349, Var0.f_39[7], -1, 1);
func_386(1350, Var0.f_39[8], -1, 1);
func_386(1351, Var0.f_49[0], -1, 1);
func_386(1352, Var0.f_49[1], -1, 1);
func_386(1353, Var0.f_49[2], -1, 1);
func_386(1354, Var0.f_49[3], -1, 1);
func_386(1355, Var0.f_49[4], -1, 1);
func_386(1356, Var0.f_49[5], -1, 1);
func_386(1357, Var0.f_49[6], -1, 1);
func_386(1358, Var0.f_49[7], -1, 1);
func_386(1359, Var0.f_49[8], -1, 1);
func_386(1360, func_44(), -1, 1);
unk_0x0C62A7470B522D80(joaat("clo_stored_initial"), true, 1);
Global_106070.f_2355.f_539.f_4295 = 1;
}
var func_386(int iParam0, int iParam1, int iParam2, int iParam3)
{
int iVar0;
int iVar1;
var uVar2;
if (iParam2 == -1)
{
iParam2 = func_18();
}
if (iParam1 < 0)
{
iParam1 = 255;
}
iVar0 = 0;
iVar1 = 0;
if (iParam0 >= 384 && iParam0 < 457)
{
iVar0 = unk_0xB3BA69AF3BAB6907((iParam0 - 384), 0, 1, iParam2);
iVar1 = ((iParam0 - 384) - unk_0x255504F58AF9B890((iParam0 - 384)) * 8) * 8;
}
else if (iParam0 >= 457 && iParam0 < 513)
{
iVar0 = unk_0xB3BA69AF3BAB6907((iParam0 - 457), 1, 1, iParam2);
iVar1 = ((iParam0 - 457) - unk_0x255504F58AF9B890((iParam0 - 457)) * 8) * 8;
}
else if (iParam0 >= 1281 && iParam0 < 1305)
{
iVar0 = unk_0xB3BA69AF3BAB6907((iParam0 - 1281), 0, 0, 0);
iVar1 = ((iParam0 - 1281) - unk_0x255504F58AF9B890((iParam0 - 1281)) * 8) * 8;
}
else if (iParam0 >= 1305 && iParam0 < 1361)
{
iVar0 = unk_0xB3BA69AF3BAB6907((iParam0 - 1305), 1, 0, 0);
iVar1 = ((iParam0 - 1305) - unk_0x255504F58AF9B890((iParam0 - 1305)) * 8) * 8;
}
else if (iParam0 >= 1393 && iParam0 < 2919)
{
iVar0 = unk_0x931785B1D4E0FF39((iParam0 - 1393), 0, 1, iParam2);
iVar1 = ((iParam0 - 1393) - unk_0x255504F58AF9B890((iParam0 - 1393)) * 8) * 8;
}
else if (iParam0 >= 1361 && iParam0 < 1393)
{
iVar0 = unk_0x931785B1D4E0FF39((iParam0 - 1361), 0, 0, 0);
iVar1 = ((iParam0 - 1361) - unk_0x255504F58AF9B890((iParam0 - 1361)) * 8) * 8;
}
else if (iParam0 >= 3879 && iParam0 < 4143)
{
iVar0 = unk_0x13224BDDFB82DC6F((iParam0 - 3879), 0, 1, iParam2, "_NGPSTAT_INT");
iVar1 = ((iParam0 - 3879) - unk_0x255504F58AF9B890((iParam0 - 3879)) * 8) * 8;
}
else if (iParam0 >= 4143 && iParam0 < 4207)
{
iVar0 = unk_0x13224BDDFB82DC6F((iParam0 - 4143), 0, 0, 0, "_NGPSTAT_INT");
iVar1 = ((iParam0 - 4143) - unk_0x255504F58AF9B890((iParam0 - 4143)) * 8) * 8;
}
else if (iParam0 >= 4399 && iParam0 < 6028)
{
iVar0 = unk_0x13224BDDFB82DC6F((iParam0 - 4399), 0, 1, iParam2, "_LRPSTAT_INT");
iVar1 = ((iParam0 - 4399) - unk_0x255504F58AF9B890((iParam0 - 4399)) * 8) * 8;
}
else if (iParam0 >= 6413 && iParam0 < 7262)
{
iVar0 = unk_0x13224BDDFB82DC6F((iParam0 - 6413), 0, 1, iParam2, "_APAPSTAT_INT");
iVar1 = ((iParam0 - 6413) - unk_0x255504F58AF9B890((iParam0 - 6413)) * 8) * 8;
}
else if (iParam0 >= 7262 && iParam0 < 7313)
{
iVar0 = unk_0x13224BDDFB82DC6F((iParam0 - 7262), 0, 1, iParam2, "_LR2PSTAT_INT");
iVar1 = ((iParam0 - 7262) - unk_0x255504F58AF9B890((iParam0 - 7262)) * 8) * 8;
}
else if (iParam0 >= 7681 && iParam0 < 9361)
{
iVar0 = unk_0x13224BDDFB82DC6F((iParam0 - 7681), 0, 1, iParam2, "_BIKEPSTAT_INT");
iVar1 = ((iParam0 - 7681) - unk_0x255504F58AF9B890((iParam0 - 7681)) * 8) * 8;
}
else if (iParam0 >= 9553 && iParam0 < 15265)
{
iVar0 = unk_0x13224BDDFB82DC6F((iParam0 - 9553), 0, 1, iParam2, "_IMPEXPPSTAT_INT");
iVar1 = ((iParam0 - 9553) - unk_0x255504F58AF9B890((iParam0 - 9553)) * 8) * 8;
}
else if (iParam0 >= 15265 && iParam0 < 15369)
{
iVar0 = unk_0x13224BDDFB82DC6F((iParam0 - 15265), 0, 1, iParam2, "_GUNRPSTAT_INT");
iVar1 = ((iParam0 - 15265) - unk_0x255504F58AF9B890((iParam0 - 15265)) * 8) * 8;
}
else if (iParam0 >= 16010 && iParam0 < 18098)
{
iVar0 = unk_0x13224BDDFB82DC6F((iParam0 - 16010), 0, 1, iParam2, "_DLCSMUGCHARPSTAT_INT");
iVar1 = ((iParam0 - 16010) - unk_0x255504F58AF9B890((iParam0 - 16010)) * 8) * 8;
}
else if (iParam0 >= 18162 && iParam0 < 19018)
{
iVar0 = unk_0x13224BDDFB82DC6F((iParam0 - 18162), 0, 1, iParam2, "_GANGOPSPSTAT_INT");
iVar1 = ((iParam0 - 18162) - unk_0x255504F58AF9B890((iParam0 - 18162)) * 8) * 8;
}
else if (iParam0 >= 19018 && iParam0 < 22066)
{
iVar0 = unk_0x13224BDDFB82DC6F((iParam0 - 19018), 0, 1, iParam2, "_BUSINESSBATPSTAT_INT");
iVar1 = ((iParam0 - 19018) - unk_0x255504F58AF9B890((iParam0 - 19018)) * 8) * 8;
}
else if (iParam0 >= 22194 && iParam0 < 24962)
{
iVar0 = unk_0x13224BDDFB82DC6F((iParam0 - 22194), 0, 1, iParam2, "_ARENAWARSPSTAT_INT");
iVar1 = ((iParam0 - 22194) - unk_0x255504F58AF9B890((iParam0 - 22194)) * 8) * 8;
}
else if (iParam0 >= 7641 && iParam0 < 7681)
{
iVar0 = unk_0x13224BDDFB82DC6F((iParam0 - 7641), 0, 1, iParam2, "_NGDLCPSTAT_INT");
iVar1 = ((iParam0 - 7641) - unk_0x255504F58AF9B890((iParam0 - 7641)) * 8) * 8;
}
else if (iParam0 >= 7313 && iParam0 < 7321)
{
iVar0 = unk_0x13224BDDFB82DC6F((iParam0 - 7313), 0, 0, 0, "_NGDLCPSTAT_INT");
iVar1 = ((iParam0 - 7313) - unk_0x255504F58AF9B890((iParam0 - 7313)) * 8) * 8;
}
uVar2 = unk_0x440E9EB086F84471(iVar0, iParam1, iVar1, 8, iParam3);
return uVar2;
}
int func_387()
{
if (func_389() && func_388(0))
{
return 1;
}
return 0;
}
var func_388(int iParam0)
{
return Global_1312373[iParam0];
}
var func_389()
{
return func_388(func_18() + 1);
}
void func_390(int iParam0, var uParam1, bool bParam2, bool bParam3, bool bParam4, int iParam5)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
bool bVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
int iVar9;
int iVar10;
int iVar11;
struct<5> Var12;
if (!unk_0x4915F4759304D5CF(iParam0) || iParam5)
{
iVar0 = func_48(iParam0);
iVar1 = unk_0x8F474E419F56E48D(iParam0);
iVar3 = 0;
while (iVar3 < 12)
{
if (iVar3 != 1 || (iVar3 == 1 && !bParam2))
{
if (bParam4)
{
if (uParam1->f_13[iVar3] != 0 && uParam1->f_13[iVar3] >= unk_0xE73139FCB8A4B748(iParam0, iVar3))
{
uParam1->f_13[iVar3] = 0;
}
if ((*uParam1)[iVar3] != 0 && (*uParam1)[iVar3] >= unk_0x2B322C65C819A12B(iParam0, iVar3, uParam1->f_13[iVar3]))
{
(*uParam1)[iVar3] = 0;
}
}
unk_0x72A0FF8C49CFFC0D(iParam0, iVar3, uParam1->f_13[iVar3], (*uParam1)[iVar3], uParam1->f_26[iVar3]);
}
iVar3++;
}
iVar3 = 0;
while (iVar3 < 9)
{
if (bParam4)
{
if (uParam1->f_39[iVar3] != -1 && uParam1->f_39[iVar3] != 255)
{
if (uParam1->f_39[iVar3] >= unk_0xFBE47E4C51D1D9AE(iParam0, iVar3))
{
uParam1->f_39[iVar3] = -1;
}
else if (uParam1->f_49[iVar3] >= unk_0x912FC8EEC1AA4059(iParam0, iVar3, uParam1->f_39[iVar3]))
{
uParam1->f_49[iVar3] = 0;
}
}
}
if (uParam1->f_39[iVar3] != -1 && uParam1->f_39[iVar3] != 255)
{
unk_0x73774776D23F43BA(iParam0, iVar3, uParam1->f_39[iVar3], uParam1->f_49[iVar3], false);
}
else
{
unk_0x8757CF4763C139B6(iParam0, iVar3);
}
iVar3++;
}
if (func_47(iVar0))
{
Global_106070.f_2355.f_539[iVar0 /*65*/].f_59 = uParam1->f_59;
Global_106070.f_2355.f_539[iVar0 /*65*/].f_60 = uParam1->f_60;
Global_106070.f_2355.f_539[iVar0 /*65*/].f_61 = uParam1->f_61;
if (func_146(iParam0, iVar1, &iVar2, 0))
{
func_110(iParam0, 2, iVar2, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
Global_106070.f_2355.f_539[iVar0 /*65*/].f_62 = uParam1->f_62;
Global_106070.f_2355.f_539[iVar0 /*65*/].f_63 = uParam1->f_63;
Global_106070.f_2355.f_539[iVar0 /*65*/].f_64 = uParam1->f_64;
if (func_108(iParam0, iVar1, &iVar2))
{
func_110(iParam0, 1, iVar2, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
}
else if (unk_0x4C9BACA8D249CB13() && unk_0x8F474E419F56E48D(iParam0) == unk_0x8F474E419F56E48D(unk_0xA19140A5C42D8715()))
{
bVar4 = func_543(iParam0);
func_16(753, uParam1->f_60, Global_71014, 1, 0);
func_16(754, uParam1->f_61, Global_71014, 1, 0);
iVar5 = func_140(iParam0, uParam1->f_13[2], (*uParam1)[2], 2);
if (iVar5 != -99)
{
iVar6 = -99;
if (iVar1 == joaat("mp_m_freemode_01"))
{
iVar6 = func_541(iVar5);
}
else if (iVar1 == joaat("mp_f_freemode_01"))
{
iVar6 = func_539(iVar5);
}
if (iVar6 != -99 && iVar5 != iVar6)
{
iVar5 = iVar6;
}
}
func_393(iParam0, 2, iVar5, 0, -1, 0, 0, 0, -1, -1, Global_71014, bVar4, 0, 0);
if (!bParam2)
{
iVar7 = func_140(iParam0, uParam1->f_13[1], (*uParam1)[1], 1);
func_393(iParam0, 1, iVar7, 0, -1, 0, 0, 0, -1, -1, Global_71014, bVar4, 0, 0);
}
if (!bParam3)
{
iVar8 = func_131(iParam0, uParam1->f_39[0], uParam1->f_49[0], 0);
func_393(iParam0, 14, iVar8, 0, -1, 0, 0, 0, -1, -1, Global_71014, bVar4, 0, 0);
}
}
if (unk_0x4C9BACA8D249CB13() && iParam0 == unk_0xA19140A5C42D8715())
{
iVar9 = uParam1->f_59;
if (iVar1 == joaat("mp_m_freemode_01"))
{
iVar9 = func_541(iVar9);
}
else
{
iVar9 = func_539(iVar9);
}
func_16(752, iVar9, Global_71014, 1, 0);
func_16(2051, iVar9, Global_71014, 1, 0);
func_391(161, 1, -1, 1);
}
if (unk_0x4C9BACA8D249CB13())
{
iVar10 = unk_0xBDB0A560F4FBB443(iParam0, 1, unk_0x774CB20D17C3FF03(iParam0, 1), unk_0x7710E77D1959B321(iParam0, 1));
iVar11 = unk_0xEF84BAF28F219386(iParam0, 1, unk_0xD1241BB51B6FE6DA(iParam0, 1), unk_0x2FB5EBD67ABDBF18(iParam0, 1));
if (iVar10 == 1551873674 || iVar10 == 1058287519)
{
if (!unk_0x4BE6499482BEE1D8(iVar11, -2103452271, 1))
{
unk_0xF21D7CAB6815AD7E(&Var12);
if (iVar10 == 1551873674)
{
unk_0x1B674FE324A34577(-518535904, &Var12);
}
else
{
unk_0x1B674FE324A34577(530896308, &Var12);
}
unk_0x73774776D23F43BA(iParam0, 1, Var12.f_3, Var12.f_4, false);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar11, -2103452271, 1))
{
unk_0x8757CF4763C139B6(iParam0, 1);
}
}
}
}
void func_391(int iParam0, bool bParam1, int iParam2, int iParam3)
{
int iVar0;
if (func_392())
{
iVar0 = Global_2566070[iParam0 /*3*/][func_17(iParam2)];
if (iVar0 != 0)
{
unk_0x0C62A7470B522D80(iVar0, bParam1, iParam3);
}
}
}
int func_392()
{
return 1;
return 0;
}
int func_393(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10, bool bParam11, bool bParam12, bool bParam13)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
var uVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
int iVar9;
int iVar10;
int iVar11;
int iVar12;
var uVar13;
var uVar14;
var uVar15;
var uVar16;
var uVar17;
int iVar18;
var uVar19;
int iVar20;
int iVar21;
int iVar22;
int iVar23;
int iVar24;
int iVar25;
int iVar26;
int iVar27;
int iVar28;
int iVar29;
int iVar30;
int iVar31;
int iVar32;
int iVar33;
int iVar34;
int iVar35;
int iVar36;
int iVar37;
int iVar38;
int iVar39;
int iVar40;
int iVar41;
int iVar42;
int iVar43;
int iVar44;
int iVar45;
int iVar46;
int iVar47;
int iVar48;
int iVar49;
int iVar50;
int iVar51;
int iVar52;
float fVar53;
int iVar54;
int iVar55;
int iVar56;
int iVar57;
int iVar58;
int iVar59;
int iVar60;
int iVar61;
int iVar62;
int iVar63;
int iVar64;
var uVar65;
int iVar66;
int iVar67;
int iVar68;
int iVar69;
int iVar70;
int iVar71;
int iVar72;
int iVar73;
int iVar74;
int iVar75;
int iVar76;
var uVar77;
int iVar78;
int iVar79;
int iVar80;
int iVar81;
int iVar82;
if (!unk_0x4C9BACA8D249CB13())
{
if ((Global_1312791 != 4 && Global_1312791 != 5) && Global_1312791 != 7)
{
return 0;
}
}
if (unk_0x4915F4759304D5CF(iParam0) || iParam2 == -99)
{
return 0;
}
if (iParam0 == unk_0xA19140A5C42D8715() && Global_2423801[unk_0xD4E735F4B6A956AC() /*413*/].f_222 == 2)
{
if (!bParam12)
{
return 0;
}
}
if (iParam10 == -1)
{
iParam10 = Global_71014;
}
Global_71015++;
iVar5 = unk_0x8F474E419F56E48D(iParam0);
iVar6 = -99;
iVar7 = -99;
iVar8 = -1;
iVar9 = -99;
iVar10 = -99;
iVar11 = -1;
iVar12 = -1;
if (iParam5 == 0)
{
Global_71017[1 /*14*/] = { func_506(iVar5, iParam1, iParam2, -1) };
if (!func_145(iParam3))
{
Global_71015 = (Global_71015 - 1);
return 0;
}
func_504(iVar5, iParam1, iParam2, 1);
}
if (iParam1 == 12)
{
uVar13 = Global_2621444;
uVar14 = Global_2621445;
unk_0x406CCC2A13C8D900(iParam0);
uVar15 = 15;
if (iParam5 == 1)
{
uVar15 = { Global_71060 };
}
else
{
uVar15 = { func_151(iVar5, iParam2) };
}
iVar0 = 0;
while (iVar0 <= 14)
{
if (uVar15[iVar0] != -99)
{
if (iVar0 == 10 && uVar15.f_16)
{
Global_71017[1 /*14*/] = { func_506(iVar5, 10, 0, -1) };
if (iParam4 == -1)
{
unk_0x72A0FF8C49CFFC0D(iParam0, func_147(iVar0), Global_71017[1 /*14*/].f_3, Global_71017[1 /*14*/].f_4, unk_0xA4B664E8E0A26C23(iParam0, func_147(iVar0)));
}
else
{
unk_0x72A0FF8C49CFFC0D(iParam0, func_147(iVar0), Global_71017[1 /*14*/].f_3, Global_71017[1 /*14*/].f_4, iParam4);
}
if (unk_0x05EFB6A616B6FADE(Global_71017[1 /*14*/].f_6, 1))
{
func_504(iVar5, 10, 0, 1);
}
}
else
{
Global_71017[1 /*14*/] = { func_506(iVar5, iVar0, uVar15[iVar0], -1) };
if (unk_0x05EFB6A616B6FADE(Global_71017[1 /*14*/].f_6, 0) || iVar0 == 13)
{
if (iVar0 == 13)
{
uVar16 = 9;
if (iParam5 == 1)
{
uVar16 = { Global_71077 };
}
else
{
uVar16 = { func_148(iVar5, uVar15[iVar0]) };
}
iVar1 = 0;
while (iVar1 <= 8)
{
Global_71017[1 /*14*/] = { func_506(iVar5, 14, uVar16[iVar1], -1) };
func_126(iParam0, Global_71017[1 /*14*/].f_12, Global_71017[1 /*14*/].f_3, Global_71017[1 /*14*/].f_4);
if (unk_0x05EFB6A616B6FADE(Global_71017[1 /*14*/].f_6, 1))
{
func_504(iVar5, iVar0, uVar15[iVar0], 1);
}
iVar1++;
}
}
else if (iVar0 != 14 && iVar0 != 12)
{
if (iVar0 != 1)
{
if (iParam4 == -1)
{
unk_0x72A0FF8C49CFFC0D(iParam0, func_147(iVar0), Global_71017[1 /*14*/].f_3, Global_71017[1 /*14*/].f_4, unk_0xA4B664E8E0A26C23(iParam0, func_147(iVar0)));
}
else
{
unk_0x72A0FF8C49CFFC0D(iParam0, func_147(iVar0), Global_71017[1 /*14*/].f_3, Global_71017[1 /*14*/].f_4, iParam4);
}
}
else
{
func_393(iParam0, iVar0, uVar15[iVar0], 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
if (unk_0x05EFB6A616B6FADE(Global_71017[1 /*14*/].f_6, 1))
{
func_504(iVar5, iVar0, uVar15[iVar0], 1);
}
}
}
}
}
else if (iVar0 != 12 && iVar0 != 14)
{
Global_71017[1 /*14*/] = { func_506(iVar5, iVar0, func_503(iParam0, iVar0, -1), -1) };
if (unk_0x05EFB6A616B6FADE(Global_71017[1 /*14*/].f_6, 3))
{
uVar17 = { func_151(iVar5, 0) };
func_393(iParam0, iVar0, uVar17[iVar0], 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
}
iVar0++;
}
Global_2621444 = uVar13;
Global_2621445 = uVar14;
if (iParam5 == 0)
{
iVar18 = func_502();
if (iVar18 != -1)
{
func_499(iVar18, 0, iParam10);
}
func_497(iParam0, 11, uVar15[11], iParam6, 0);
}
}
else if (iParam1 == 13)
{
uVar19 = { func_148(iVar5, iParam2) };
iVar1 = 0;
while (iVar1 <= 8)
{
Global_71017[1 /*14*/] = { func_506(iVar5, 14, uVar19[iVar1], -1) };
func_126(iParam0, Global_71017[1 /*14*/].f_12, Global_71017[1 /*14*/].f_3, Global_71017[1 /*14*/].f_4);
if (unk_0x05EFB6A616B6FADE(Global_71017[1 /*14*/].f_6, 1))
{
func_504(iVar5, 14, uVar19[iVar1], 1);
}
if (iParam5 == 0)
{
if (Global_71015 == 1)
{
iVar2 = 0;
while (iVar2 < 15)
{
iVar3 = func_495(iParam0, iVar5, 14, uVar19[iVar1], iVar2, 0);
if (iVar3 != -99)
{
func_393(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
iVar2++;
}
}
}
iVar1++;
}
}
else if (iParam1 == 14)
{
func_126(iParam0, Global_71017[1 /*14*/].f_12, Global_71017[1 /*14*/].f_3, Global_71017[1 /*14*/].f_4);
if (unk_0x05EFB6A616B6FADE(Global_71017[1 /*14*/].f_6, 1))
{
func_504(iVar5, iParam1, iParam2, 1);
}
if (Global_71017[1 /*14*/].f_12 == 0)
{
if (unk_0x05EFB6A616B6FADE(Global_71017[1 /*14*/].f_6, 6) && unk_0x4BE6499482BEE1D8(Global_2621444, 537651880, 1))
{
}
else
{
iVar20 = unk_0xBDB0A560F4FBB443(iParam0, 1, unk_0x774CB20D17C3FF03(iParam0, 1), unk_0x7710E77D1959B321(iParam0, 1));
if (unk_0x4BE6499482BEE1D8(iVar20, 66092876, 0))
{
func_393(iParam0, 1, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
Global_71017[1 /*14*/] = { func_506(iVar5, iParam1, iParam2, -1) };
}
}
}
if (Global_71017[1 /*14*/].f_12 == 0)
{
func_491(iParam0);
}
if (iParam5 == 0)
{
if (Global_71015 == 1)
{
iVar2 = 0;
while (iVar2 < 15)
{
iVar3 = func_495(iParam0, iVar5, iParam1, iParam2, iVar2, 0);
if (iVar3 != -99)
{
func_393(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
iVar2++;
}
iVar3 = func_495(iParam0, iVar5, iParam1, iParam2, 14, 1);
if (iVar3 != -99)
{
func_393(iParam0, 14, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
}
}
}
else
{
if (iParam1 == 11)
{
if (iParam5 == 0)
{
iVar21 = -1;
if (unk_0x05EFB6A616B6FADE(Global_71017[1 /*14*/].f_6, 6) && unk_0x4BE6499482BEE1D8(Global_2621444, -1996375172, 11))
{
unk_0xF730BA6C2D0926CC(iParam0, Global_1314014, Global_1314015, Global_1314016, 0);
unk_0xF730BA6C2D0926CC(iParam0, Global_1314014, Global_1314015, Global_1314016, 1);
unk_0xF730BA6C2D0926CC(iParam0, Global_1314014, Global_1314015, Global_1314016, 2);
unk_0xF730BA6C2D0926CC(iParam0, Global_1314014, Global_1314015, Global_1314016, 3);
}
iVar22 = func_139(iParam0, 11);
iVar23 = func_139(iParam0, 8);
iVar24 = func_139(iParam0, 4);
iVar8 = unk_0xBDB0A560F4FBB443(iParam0, 8, unk_0x774CB20D17C3FF03(iParam0, 8), unk_0x7710E77D1959B321(iParam0, 8));
if (unk_0x4BE6499482BEE1D8(iVar8, 240476421, 8))
{
if (iVar5 == joaat("mp_m_freemode_01"))
{
iVar21 = func_128(iVar5, iParam2, 11, 3);
}
else if (iVar5 == joaat("mp_f_freemode_01"))
{
iVar21 = func_128(iVar5, iParam2, 11, 4);
}
if ((((((unk_0x4BE6499482BEE1D8(iVar21, 320460654, 0) || unk_0x4BE6499482BEE1D8(iVar21, -2017999390, 0)) || unk_0x4BE6499482BEE1D8(iVar21, -1410897066, 0)) || unk_0x4BE6499482BEE1D8(iVar21, -826135203, 0)) || unk_0x4BE6499482BEE1D8(iVar21, -1855618474, 0)) || unk_0x4BE6499482BEE1D8(iVar21, -1420825402, 0)) || unk_0x4BE6499482BEE1D8(iVar21, -299089347, 0))
{
}
else
{
iVar9 = func_139(iParam0, 8);
}
}
iVar25 = unk_0xBDB0A560F4FBB443(iParam0, 3, unk_0x774CB20D17C3FF03(iParam0, 3), 0);
if (unk_0x4BE6499482BEE1D8(iVar25, -356646862, 0))
{
iVar26 = func_490(iVar5, iVar23, iVar22, iVar24);
if (iVar26 == -99)
{
iVar26 = func_495(iParam0, iVar5, 11, iVar22, 3, 0);
}
switch (iVar25)
{
case 1165919867:
case 1606204151:
case 1774276352:
case 1934254610:
case 980775017:
case 399321881:
iVar26 = 11;
iVar21 = func_128(iVar5, iParam2, 11, 4);
if (!unk_0x4BE6499482BEE1D8(iVar21, -530089825, 0))
{
iVar26 = -99;
}
break;
}
if (iVar26 != -99)
{
iVar27 = 0;
while (iVar27 < 17)
{
if (func_489(iVar5, iVar26, iVar27) == iVar25)
{
iVar11 = iVar27;
iVar12 = unk_0x7710E77D1959B321(iParam0, 3);
}
iVar27++;
}
}
}
iVar21 = -1;
if ((iVar5 == joaat("mp_f_freemode_01") && iParam2 >= 256) && unk_0x4BE6499482BEE1D8(func_128(iVar5, iParam2, 11, 4), -1200513218, 0))
{
iVar22 = func_139(iParam0, 11);
if (iVar22 >= 256)
{
iVar21 = func_128(iVar5, iVar22, 11, 4);
}
if (iVar22 >= 256 && unk_0x4BE6499482BEE1D8(iVar21, 1965569012, 0))
{
iVar28 = func_487(iVar5, iVar22, iParam2, unk_0x7710E77D1959B321(iParam0, 11));
if (iVar28 != -99)
{
func_393(iParam0, 8, iVar28, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
Global_71017[1 /*14*/] = { func_506(iVar5, iParam1, iParam2, -1) };
}
}
}
else if (func_486(iVar5, iParam2, -1))
{
if (iVar5 == joaat("mp_m_freemode_01"))
{
if (iVar22 >= 237)
{
iVar21 = func_128(iVar5, iVar22, 11, 3);
}
}
else if (iVar5 == joaat("mp_f_freemode_01"))
{
if (iVar22 >= 256)
{
iVar21 = func_128(iVar5, iVar22, 11, 4);
}
}
iVar9 = -99;
if (!func_486(iVar5, iVar22, -1))
{
if ((iVar5 == joaat("mp_f_freemode_01") && iVar22 >= 256) && (unk_0x4BE6499482BEE1D8(iVar21, -1200513218, 0) || unk_0x4BE6499482BEE1D8(iVar21, 1965569012, 0)))
{
}
else if ((iVar5 == joaat("mp_f_freemode_01") && iVar22 >= 256) && ((((((((unk_0x4BE6499482BEE1D8(iVar21, 684992453, 0) || unk_0x4BE6499482BEE1D8(iVar21, 916636514, 0)) || unk_0x4BE6499482BEE1D8(iVar21, -1939378450, 0)) || unk_0x4BE6499482BEE1D8(iVar21, -820724897, 0)) || unk_0x4BE6499482BEE1D8(iVar21, 153792394, 0)) || unk_0x4BE6499482BEE1D8(iVar21, -872449705, 0)) || unk_0x4BE6499482BEE1D8(iVar21, 700658917, 0)) || unk_0x4BE6499482BEE1D8(iVar21, -549843760, 0)) || unk_0x4BE6499482BEE1D8(iVar21, 1830529185, 0)))
{
}
else
{
iVar29 = func_485(iParam0, iParam2);
iVar30 = func_487(iVar5, iVar22, iParam2, unk_0x7710E77D1959B321(iParam0, 11));
if (iVar30 != -99)
{
func_393(iParam0, 8, iVar30, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
Global_71017[1 /*14*/] = { func_506(iVar5, iParam1, iParam2, -1) };
iVar9 = -99;
}
else if (iVar29 != -99 && (iParam0 == unk_0xA19140A5C42D8715() || iParam0 == Global_4265986))
{
func_393(iParam0, 8, iVar29, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
Global_71017[1 /*14*/] = { func_506(iVar5, iParam1, iParam2, -1) };
}
else
{
if (iVar5 == joaat("mp_m_freemode_01"))
{
iVar31 = func_484(iVar5, 11, -1);
Global_71017[1 /*14*/] = { func_506(iVar5, 11, iVar31, -1) };
iVar30 = func_487(iVar5, iVar31, iParam2, Global_71017[1 /*14*/].f_4);
if (iVar30 == -99 || unk_0x4BE6499482BEE1D8(func_128(iVar5, iParam2, 11, 3), -1237899132, 0))
{
iVar30 = 240;
}
}
else if (iVar5 == joaat("mp_f_freemode_01"))
{
if (unk_0x4BE6499482BEE1D8(func_128(iVar5, iParam2, 11, 4), -1237899132, 0))
{
iVar30 = 120;
}
else
{
iVar30 = 48;
}
}
func_393(iParam0, 8, iVar30, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
Global_71017[1 /*14*/] = { func_506(iVar5, iParam1, iParam2, -1) };
}
}
}
else
{
Global_71017[1 /*14*/] = { func_506(iVar5, 11, iVar22, -1) };
iVar32 = Global_71017[1 /*14*/].f_3;
Global_71017[1 /*14*/] = { func_506(iVar5, 11, iParam2, -1) };
iVar33 = Global_71017[1 /*14*/].f_3;
if (iVar32 != iVar33)
{
iVar35 = func_485(iParam0, iParam2);
Global_71017[1 /*14*/] = { func_506(iVar5, 8, iVar23, -1) };
iVar34 = Global_71017[1 /*14*/].f_4;
iVar36 = func_483(iVar5, iVar23, iVar34);
if (iVar35 != -99 && (iParam0 == unk_0xA19140A5C42D8715() || iParam0 == Global_4265986))
{
iVar37 = iVar35;
}
else if (iVar36 == -99)
{
iVar37 = iVar23;
if (iVar5 == joaat("mp_m_freemode_01"))
{
iVar38 = func_128(iVar5, iParam2, 11, 3);
if (((iParam2 >= 96 && iParam2 <= 107) || func_482(iVar38) == 6) || unk_0x4BE6499482BEE1D8(iVar38, -1237899132, 0))
{
iVar36 = func_484(iVar5, 11, -1);
Global_71017[1 /*14*/] = { func_506(iVar5, 11, iVar36, -1) };
iVar37 = func_487(iVar5, iVar36, iParam2, Global_71017[1 /*14*/].f_4);
}
}
if (iVar5 == joaat("mp_f_freemode_01") && (iVar23 == 32 || iVar23 == 33))
{
if (!unk_0x4BE6499482BEE1D8(func_128(iVar5, iParam2, 11, 4), -491588875, 0))
{
iVar36 = func_484(iVar5, 11, -1);
Global_71017[1 /*14*/] = { func_506(iVar5, 11, iVar36, -1) };
iVar37 = func_487(iVar5, iVar36, iParam2, Global_71017[1 /*14*/].f_4);
}
}
iVar39 = -1;
if (iVar5 == joaat("mp_m_freemode_01"))
{
iVar39 = func_128(iVar5, iVar23, 8, 3);
}
else if (iVar5 == joaat("mp_f_freemode_01"))
{
iVar39 = func_128(iVar5, iVar23, 8, 4);
}
if (unk_0x4BE6499482BEE1D8(iVar39, -316495692, 0))
{
iVar36 = func_484(iVar5, 11, -1);
Global_71017[1 /*14*/] = { func_506(iVar5, 11, iVar36, -1) };
iVar37 = func_487(iVar5, iVar36, iParam2, Global_71017[1 /*14*/].f_4);
}
}
else
{
iVar37 = func_487(iVar5, iVar36, iParam2, iVar34);
if (iVar5 == joaat("mp_m_freemode_01"))
{
if (unk_0x4BE6499482BEE1D8(func_128(iVar5, iParam2, 11, 3), -1719338724, 0))
{
if (!func_481(iVar5, func_139(iParam0, 4), iVar36))
{
iVar37 = 240;
}
}
}
else if (iVar5 == joaat("mp_f_freemode_01"))
{
if (unk_0x4BE6499482BEE1D8(func_128(iVar5, iParam2, 11, 4), -1719338724, 0))
{
if (!func_481(iVar5, func_139(iParam0, 4), iVar36))
{
iVar37 = 48;
}
}
}
}
if (iVar37 != -99)
{
func_393(iParam0, 8, iVar37, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
else if (iVar5 == joaat("mp_m_freemode_01"))
{
iVar36 = func_484(iVar5, 11, -1);
Global_71017[1 /*14*/] = { func_506(iVar5, 11, iVar36, -1) };
iVar37 = func_487(iVar5, iVar36, iParam2, Global_71017[1 /*14*/].f_4);
if (iVar37 == -99)
{
iVar37 = 240;
}
func_393(iParam0, 8, iVar37, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
else if (iVar5 == joaat("mp_f_freemode_01"))
{
func_393(iParam0, 8, 48, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
Global_71017[1 /*14*/] = { func_506(iVar5, iParam1, iParam2, -1) };
}
}
}
func_478(iVar5, iParam2);
if (!bParam13)
{
unk_0x72A0FF8C49CFFC0D(iParam0, 10, 0, 0, unk_0xA4B664E8E0A26C23(iParam0, 10));
}
}
func_497(iParam0, iParam1, iParam2, iParam6, 0);
if (iParam5 == 0)
{
iVar6 = func_490(iVar5, func_503(iParam0, 8, -1), iParam2, func_503(iParam0, 4, -1));
}
}
else if (iParam1 == 2)
{
if (iParam5 == 0)
{
if (iParam8 == -1)
{
iParam8 = func_19(2151, iParam10, 0);
}
if (iParam9 == -1)
{
iParam9 = func_19(2158, iParam10, 0);
}
unk_0xDD193DFA8DC47CA6(iParam0, iParam8, iParam9);
}
if (iParam7 == 0)
{
if (iParam2 != -99)
{
iVar40 = -99;
if (iVar5 == joaat("mp_m_freemode_01"))
{
iVar40 = func_541(iParam2);
}
else if (iVar5 == joaat("mp_f_freemode_01"))
{
iVar40 = func_539(iParam2);
}
if (iVar40 != -99 && iParam2 != iVar40)
{
iParam2 = iVar40;
}
}
func_436(iParam0, iParam2, iParam10, bParam11);
}
}
else if (iParam1 == 8)
{
iVar41 = unk_0xBDB0A560F4FBB443(iParam0, 3, unk_0x774CB20D17C3FF03(iParam0, 3), 0);
if (unk_0x4BE6499482BEE1D8(iVar41, -356646862, 0))
{
iVar42 = func_139(iParam0, 11);
iVar43 = func_139(iParam0, 4);
iVar44 = func_490(iVar5, iParam2, iVar42, iVar43);
if (iVar44 == -99)
{
iVar44 = func_495(iParam0, iVar5, 11, iVar42, 3, 0);
}
switch (iVar41)
{
case 1165919867:
case 1606204151:
case 1774276352:
case 1934254610:
case 980775017:
case 399321881:
iVar44 = 11;
iVar45 = func_128(iVar5, iParam2, 11, 4);
if (!unk_0x4BE6499482BEE1D8(iVar45, -530089825, 0))
{
iVar44 = -99;
}
break;
}
if (iVar44 != -99)
{
iVar46 = 0;
while (iVar46 < 17)
{
if (func_489(iVar5, iVar44, iVar46) == iVar41)
{
iVar11 = iVar46;
iVar12 = unk_0x7710E77D1959B321(iParam0, 3);
}
iVar46++;
}
}
}
func_497(iParam0, iParam1, iParam2, iParam6, 0);
iVar47 = func_139(iParam0, 11);
if (func_486(iVar5, iVar47, -1))
{
iVar48 = func_483(iVar5, iParam2, Global_71017[1 /*14*/].f_4);
func_478(iVar5, iVar48);
}
if (iParam5 == 0)
{
iVar6 = func_490(iVar5, iParam2, func_139(iParam0, 11), func_139(iParam0, 4));
}
}
else if (iParam1 == 9)
{
if (iParam2 >= 1 && iParam2 <= 41)
{
iVar49 = func_139(iParam0, 7);
if (!func_433(iVar5, iVar49, 9, -99, -99, -99, iParam0, 0, iParam2, -99, -99, -99))
{
unk_0x72A0FF8C49CFFC0D(iParam0, func_147(7), 0, 0, 0);
}
}
}
else if (iParam1 == 1)
{
if (((iVar5 == joaat("mp_m_freemode_01") && iParam2 >= 26) && unk_0x4BE6499482BEE1D8(Global_2621444, -921710083, 0)) || ((iVar5 == joaat("mp_f_freemode_01") && iParam2 >= 26) && unk_0x4BE6499482BEE1D8(Global_2621444, -921710083, 0)))
{
iVar50 = func_19(2098, iParam10, 0);
iVar51 = func_19(2099, iParam10, 0);
iVar52 = func_19(2100, iParam10, 0);
fVar53 = func_432(135, iParam10);
if (iVar5 == joaat("mp_m_freemode_01"))
{
unk_0x45815D1E96AFF8EA(iParam0, 0, 0, 0, iVar50, iVar51, iVar52, 0f, fVar53, 0f, false);
}
else if (iVar5 == joaat("mp_f_freemode_01"))
{
unk_0x45815D1E96AFF8EA(iParam0, 21, 0, 0, iVar50, iVar51, iVar52, 0f, fVar53, 0f, false);
}
iVar54 = 0;
while (iVar54 < 20)
{
unk_0x023BE7D6B84BE892(iParam0, iVar54, 0f);
iVar54++;
}
}
else
{
func_416(iParam0, iParam10);
}
}
else if (iParam1 == 4)
{
iVar55 = func_139(iParam0, 11);
iVar56 = func_139(iParam0, 8);
if (iVar5 == joaat("mp_m_freemode_01"))
{
if (unk_0x4BE6499482BEE1D8(func_128(iVar5, iVar55, 11, 3), -1719338724, 0))
{
if (!func_481(iVar5, iParam2, func_483(iVar5, iVar56, 0)))
{
func_393(iParam0, 8, 240, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
Global_71017[1 /*14*/] = { func_506(iVar5, iParam1, iParam2, -1) };
}
}
}
else if (iVar5 == joaat("mp_f_freemode_01"))
{
if (unk_0x4BE6499482BEE1D8(func_128(iVar5, iVar55, 11, 4), -1719338724, 0))
{
if (!func_481(iVar5, iParam2, func_483(iVar5, iVar56, 0)))
{
func_393(iParam0, 8, 78, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
Global_71017[1 /*14*/] = { func_506(iVar5, iParam1, iParam2, -1) };
}
}
}
if (iParam5 == 0)
{
iVar6 = func_490(iVar5, func_139(iParam0, 8), func_139(iParam0, 11), iParam2);
}
iVar57 = unk_0xBDB0A560F4FBB443(iParam0, 3, unk_0x774CB20D17C3FF03(iParam0, 3), 0);
if (unk_0x4BE6499482BEE1D8(iVar57, -356646862, 0))
{
iVar58 = func_490(iVar5, iVar56, iVar55, iParam2);
if (iVar58 == -99)
{
iVar58 = func_495(iParam0, iVar5, 11, iVar55, 3, 0);
}
switch (iVar57)
{
case 1165919867:
case 1606204151:
case 1774276352:
case 1934254610:
case 980775017:
case 399321881:
iVar58 = 11;
iVar59 = func_128(iVar5, iParam2, 11, 4);
if (!unk_0x4BE6499482BEE1D8(iVar59, -530089825, 0))
{
iVar58 = -99;
}
break;
}
if (iVar58 != -99)
{
iVar60 = 0;
while (iVar60 < 17)
{
if (func_489(iVar5, iVar58, iVar60) == iVar57)
{
iVar11 = iVar60;
iVar12 = unk_0x7710E77D1959B321(iParam0, 3);
}
iVar60++;
}
}
}
}
if (iParam4 == -1)
{
unk_0x72A0FF8C49CFFC0D(iParam0, func_147(iParam1), Global_71017[1 /*14*/].f_3, Global_71017[1 /*14*/].f_4, unk_0xA4B664E8E0A26C23(iParam0, func_147(iParam1)));
}
else
{
unk_0x72A0FF8C49CFFC0D(iParam0, func_147(iParam1), Global_71017[1 /*14*/].f_3, Global_71017[1 /*14*/].f_4, iParam4);
}
if (iParam5 == 0)
{
if (Global_71015 == 1)
{
iVar2 = 0;
while (iVar2 < 15)
{
iVar3 = func_495(iParam0, iVar5, iParam1, iParam2, iVar2, 0);
if (iVar3 != -99)
{
func_393(iParam0, iVar2, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, iParam1 == 10);
if (iVar2 == 3)
{
switch (Global_2621444)
{
case 1165919867:
case 1606204151:
case 1774276352:
case 1934254610:
case 980775017:
case 399321881:
iVar11 = -1;
break;
}
}
else if (iVar2 == 8)
{
if (iVar6 != -99)
{
iVar6 = func_490(iVar5, iVar3, func_139(iParam0, 11), func_139(iParam0, 4));
}
}
}
iVar2++;
}
iVar3 = func_495(iParam0, iVar5, iParam1, iParam2, 14, 1);
if (iVar3 != -99)
{
func_393(iParam0, 14, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
}
if ((iParam1 == 11 || iParam1 == 8) || iParam1 == 4)
{
if (func_415(iParam0))
{
iVar61 = func_413(iParam0, iVar5, iParam1, iParam2);
if (iVar61 > 0)
{
iVar61 = (iVar61 + unk_0x7710E77D1959B321(iParam0, 9));
if (!func_412(iParam0, 9, iVar61))
{
func_393(iParam0, 9, iVar61, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
}
else
{
func_393(iParam0, 9, 0, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
iVar8 = unk_0xBDB0A560F4FBB443(iParam0, 8, unk_0x774CB20D17C3FF03(iParam0, 8), unk_0x7710E77D1959B321(iParam0, 8));
if (unk_0x4BE6499482BEE1D8(iVar8, 240476421, 8))
{
func_393(iParam0, 9, 0, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
}
}
if (iParam1 == 11 || iParam1 == 8)
{
iVar62 = func_19(2040, -1, 0);
if (unk_0x774CB20D17C3FF03(iParam0, 5) != 0)
{
unk_0x72A0FF8C49CFFC0D(iParam0, 5, func_406(iParam0, iVar62), func_405(iParam0, iVar62), func_404(iParam0, iVar62));
}
if (iParam0 == unk_0xA19140A5C42D8715())
{
unk_0xBC17DC7C428EC7F1(unk_0xD4E735F4B6A956AC(), 5, func_406(unk_0xA19140A5C42D8715(), iVar62), func_405(unk_0xA19140A5C42D8715(), iVar62), 0);
unk_0xD51625EE684BFF8A(unk_0xD4E735F4B6A956AC(), func_404(unk_0xA19140A5C42D8715(), iVar62));
func_403(unk_0xD4E735F4B6A956AC(), iVar62);
}
}
if (iParam1 == 7)
{
if ((iVar5 == joaat("mp_m_freemode_01") && iParam2 >= 92) || (iVar5 == joaat("mp_f_freemode_01") && iParam2 >= 55))
{
if (unk_0x4BE6499482BEE1D8(Global_2621444, -319568873, 0))
{
func_393(iParam0, 9, 0, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
}
}
if (iVar5 == joaat("mp_f_freemode_01") && (iParam1 == 11 || iParam1 == 4))
{
if (iParam1 == 11)
{
iVar63 = func_503(iParam0, 4, -1);
iVar64 = iParam2;
}
else
{
iVar63 = iParam2;
iVar64 = func_503(iParam0, 11, -1);
}
if (func_402(iVar5, 11, iVar64, -1))
{
if (!func_401(iVar5, 4, iVar63, -1))
{
if (func_400(iVar5, 4, iVar63, &uVar65))
{
func_393(iParam0, 4, uVar65, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
}
}
else if (func_401(iVar5, 4, iVar63, -1))
{
if (func_399(iVar5, 4, iVar63, &uVar65))
{
func_393(iParam0, 4, uVar65, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
}
}
if (iParam1 == 4 || iParam1 == 6)
{
iVar66 = unk_0x774CB20D17C3FF03(iParam0, 6);
iVar67 = unk_0x7710E77D1959B321(iParam0, 6);
iVar68 = unk_0xBDB0A560F4FBB443(iParam0, 6, iVar66, iVar67);
iVar69 = unk_0x774CB20D17C3FF03(iParam0, 4);
iVar70 = unk_0x7710E77D1959B321(iParam0, 4);
iVar71 = unk_0xBDB0A560F4FBB443(iParam0, 4, iVar69, iVar70);
iVar72 = func_139(iParam0, 4);
iVar73 = func_139(iParam0, 6);
if (func_398(iVar5, iVar68))
{
if (unk_0x4BE6499482BEE1D8(iVar68, 1812005517, 0) != func_397(iVar5, iVar72, iVar68))
{
iVar74 = unk_0xC32CC87227998BA0(iVar68);
iVar75 = 0;
while (iVar75 < iVar74)
{
unk_0xD87AFE0D33276102(iVar68, iVar75, &iVar76, &uVar77, &iVar78);
if (iVar78 == 6)
{
if (iVar76 != 0 && iVar76 != 1849449579)
{
if (iVar5 == joaat("mp_m_freemode_01"))
{
iVar73 = func_133(iVar5, iVar76, 6, 3);
iVar68 = iVar76;
func_393(iParam0, 6, iVar73, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
else if (iVar5 == joaat("mp_f_freemode_01"))
{
iVar73 = func_133(iVar5, iVar76, 6, 4);
iVar68 = iVar76;
func_393(iParam0, 6, iVar73, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
iVar75 = iVar74 + 1;
}
}
iVar75++;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar71, -2042643157, 0) != func_396(iVar5, iVar73, iVar71))
{
iVar74 = unk_0xC32CC87227998BA0(iVar71);
iVar75 = 0;
while (iVar75 < iVar74)
{
unk_0xD87AFE0D33276102(iVar71, iVar75, &iVar76, &uVar77, &iVar78);
if (iVar78 == 4)
{
if (iVar76 != 0 && iVar76 != 1849449579)
{
if (iVar5 == joaat("mp_m_freemode_01"))
{
iVar72 = func_133(iVar5, iVar76, 4, 3);
iVar71 = iVar76;
func_393(iParam0, 4, iVar72, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
else if (iVar5 == joaat("mp_f_freemode_01"))
{
iVar72 = func_133(iVar5, iVar76, 4, 4);
iVar71 = iVar76;
func_393(iParam0, 4, iVar72, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
iVar75 = iVar74 + 1;
}
}
iVar75++;
}
}
}
if (func_398(iVar5, iVar71))
{
if (unk_0x4BE6499482BEE1D8(iVar71, -2042643157, 0) != func_396(iVar5, iVar73, iVar71))
{
iVar74 = unk_0xC32CC87227998BA0(iVar71);
iVar75 = 0;
while (iVar75 < iVar74)
{
unk_0xD87AFE0D33276102(iVar71, iVar75, &iVar76, &uVar77, &iVar78);
if (iVar78 == 4)
{
if (iVar76 != 0 && iVar76 != 1849449579)
{
if (iVar5 == joaat("mp_m_freemode_01"))
{
iVar72 = func_133(iVar5, iVar76, 4, 3);
iVar71 = iVar76;
func_393(iParam0, 4, iVar72, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
else if (iVar5 == joaat("mp_f_freemode_01"))
{
iVar72 = func_133(iVar5, iVar76, 4, 4);
iVar71 = iVar76;
func_393(iParam0, 4, iVar72, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
iVar75 = iVar74 + 1;
}
}
iVar75++;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar68, 1812005517, 0) != func_397(iVar5, iVar72, iVar68))
{
iVar74 = unk_0xC32CC87227998BA0(iVar68);
iVar75 = 0;
while (iVar75 < iVar74)
{
unk_0xD87AFE0D33276102(iVar68, iVar75, &iVar76, &uVar77, &iVar78);
if (iVar78 == 6)
{
if (iVar76 != 0 && iVar76 != 1849449579)
{
if (iVar5 == joaat("mp_m_freemode_01"))
{
iVar73 = func_133(iVar5, iVar76, 6, 3);
iVar68 = iVar76;
func_393(iParam0, 6, iVar73, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
else if (iVar5 == joaat("mp_f_freemode_01"))
{
iVar73 = func_133(iVar5, iVar76, 6, 4);
iVar68 = iVar76;
func_393(iParam0, 6, iVar73, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
iVar75 = iVar74 + 1;
}
}
iVar75++;
}
}
}
}
if (iParam1 == 11 || iParam1 == 1)
{
func_491(iParam0);
iVar79 = unk_0x774CB20D17C3FF03(iParam0, 1);
iVar80 = unk_0x7710E77D1959B321(iParam0, 1);
iVar81 = unk_0xBDB0A560F4FBB443(iParam0, 1, iVar79, iVar80);
if (unk_0x4BE6499482BEE1D8(iVar81, 838607662, 0))
{
iVar3 = func_495(iParam0, iVar5, iParam1, iParam2, 14, 0);
if (iVar3 != -99)
{
func_393(iParam0, 14, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
iVar3 = func_495(iParam0, iVar5, iParam1, iParam2, 14, 1);
if (iVar3 != -99)
{
func_393(iParam0, 14, iVar3, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
}
}
}
}
if (iParam1 != 2)
{
if (func_394(iParam0, &uVar4))
{
func_393(iParam0, 2, uVar4, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
}
if (iVar6 != -99 && !bParam13)
{
func_393(iParam0, 3, iVar6, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
if (iVar9 != -99)
{
func_393(iParam0, 8, iVar9, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
if (iVar7 != -99)
{
func_393(iParam0, 1, iVar7, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
if (iVar11 != -1)
{
iVar82 = func_489(iVar5, func_503(iParam0, 3, -1), iVar11);
if (iVar82 != -1)
{
if (iVar5 == joaat("mp_m_freemode_01"))
{
iVar10 = func_133(iVar5, iVar82, 3, 3);
}
else if (iVar5 == joaat("mp_f_freemode_01"))
{
iVar10 = func_133(iVar5, iVar82, 3, 4);
}
if (iVar10 != -99)
{
iVar10 = (iVar10 + iVar12);
func_393(iParam0, 3, iVar10, 0, iParam4, 0, 0, 0, -1, -1, -1, 0, 0, 0);
}
}
}
Global_71015 = (Global_71015 - 1);
return 1;
}
int func_394(int iParam0, var uParam1)
{
int iVar0;
int iVar1;
*uParam1 = func_503(unk_0xA19140A5C42D8715(), 2, -1);
if (func_19(753, Global_71014, 0) != -99 && func_387())
{
if (func_395() == 4)
{
return 1;
}
if (func_19(753, Global_71014, 0) == 0 && func_19(754, Global_71014, 0) == 0)
{
if (func_330(161, Global_71014))
{
if (func_19(2051, Global_71014, 0) == 0)
{
return 0;
}
}
else if (func_19(752, Global_71014, 0) == 0)
{
return 0;
}
}
iVar0 = func_19(753, Global_71014, 0);
iVar1 = func_19(754, Global_71014, 0);
if (!func_412(iParam0, iVar1, iVar0))
{
if (func_330(161, Global_71014))
{
*uParam1 = func_19(2051, Global_71014, 0);
}
else
{
*uParam1 = func_19(752, Global_71014, 0);
}
func_16(753, -99, Global_71014, 1, 0);
func_16(754, 2, Global_71014, 1, 0);
return 1;
}
}
return 0;
}
int func_395()
{
return Global_1312791;
}
int func_396(int iParam0, int iParam1, int iParam2)
{
int iVar0;
iVar0 = -1;
switch (iParam0)
{
case joaat("mp_m_freemode_01"):
if (iParam1 >= 256)
{
iVar0 = func_128(iParam0, iParam1, 6, 3);
}
if (unk_0x4BE6499482BEE1D8(iVar0, -364248070, 0))
{
if ((unk_0x4BE6499482BEE1D8(iParam2, -1080576805, 0) || unk_0x4BE6499482BEE1D8(iParam2, -1387458490, 0)) || unk_0x4BE6499482BEE1D8(iParam2, -1420825402, 0))
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iParam2, -56268180, 0))
{
if ((((((((((unk_0x4BE6499482BEE1D8(iVar0, -713698407, 0) || unk_0x4BE6499482BEE1D8(iVar0, 140732128, 0)) || unk_0x4BE6499482BEE1D8(iVar0, 2106216756, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -849839091, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -1446333198, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -269266203, 0)) || unk_0x4BE6499482BEE1D8(iVar0, 201427653, 0)) || unk_0x4BE6499482BEE1D8(iVar0, 967829025, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -685039259, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -1266557933, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -364248070, 0))
{
return 1;
}
}
break;
case joaat("mp_f_freemode_01"):
if (iParam1 >= 256)
{
iVar0 = func_128(iParam0, iParam1, 6, 4);
}
if (unk_0x4BE6499482BEE1D8(iParam2, -56268180, 0))
{
if (((((((((unk_0x4BE6499482BEE1D8(iVar0, -713698407, 0) || unk_0x4BE6499482BEE1D8(iVar0, 140732128, 0)) || unk_0x4BE6499482BEE1D8(iVar0, 1863955539, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -849839091, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -269266203, 0)) || unk_0x4BE6499482BEE1D8(iVar0, 201427653, 0)) || unk_0x4BE6499482BEE1D8(iVar0, 967829025, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -685039259, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -1266557933, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -309899747, 0))
{
return 1;
}
}
break;
}
return 0;
return 0;
}
int func_397(int iParam0, int iParam1, int iParam2)
{
int iVar0;
int iVar1;
int iVar2;
iVar0 = -1;
iVar1 = -1;
switch (iParam0)
{
case joaat("mp_m_freemode_01"):
if (iParam1 >= 256)
{
iVar0 = func_128(iParam0, iParam1, 4, 3);
iVar1 = func_482(iVar0);
}
if (unk_0x4BE6499482BEE1D8(iParam2, -364248070, 0) || unk_0x4BE6499482BEE1D8(iParam2, -56268180, 0))
{
iVar2 = 1;
if ((((((((((((((((((((((iParam1 >= 32 && iParam1 <= 47) || (iParam1 >= 64 && iParam1 <= 79)) || (iParam1 >= 96 && iParam1 <= 111)) || (iParam1 >= 176 && iParam1 <= 191)) || (iParam1 >= 192 && iParam1 <= 207)) || (iParam1 >= 224 && iParam1 <= 239)) || (iParam1 >= 240 && iParam1 <= 255)) || iVar1 == 2) || iVar1 == 4) || iVar1 == 6) || iVar1 == 11) || iVar1 == 12) || iVar1 == 14) || iVar1 == 15) || unk_0x4BE6499482BEE1D8(iVar0, 320460654, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -269266203, 0)) || unk_0x4BE6499482BEE1D8(iVar0, 201427653, 0)) || unk_0x4BE6499482BEE1D8(iVar0, 967829025, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -685039259, 0)) || (unk_0x4BE6499482BEE1D8(iVar0, -1080576805, 0) && !unk_0x4BE6499482BEE1D8(iParam2, -364248070, 0))) || (unk_0x4BE6499482BEE1D8(iVar0, -1387458490, 0) && !unk_0x4BE6499482BEE1D8(iParam2, -364248070, 0))) || (unk_0x4BE6499482BEE1D8(iVar0, -1420825402, 0) && !unk_0x4BE6499482BEE1D8(iParam2, -364248070, 0)))
{
iVar2 = 0;
}
switch (iVar0)
{
case -439764935:
case 1858824227:
case -44268217:
case 301706885:
case 1283072893:
case -1590178565:
case 1995307108:
case 1029014836:
case -365568266:
case -138446327:
case -2034722819:
case -1219513062:
case 153704652:
case 356276239:
case 586511233:
case 1558996842:
case 1183988406:
case 1000678684:
case 761792674:
case -145679239:
case 686423978:
case -763407658:
case 74266289:
case 987390769:
case 1591372991:
case 1834027448:
case 913054691:
case 1142372153:
case -1698011990:
case -1443101939:
case 2133699953:
case -1924511318:
case -475531676:
case -237137197:
case 754461254:
case -1155840382:
case 629180074:
case 859251223:
case 1610316715:
case 901392169:
case -92983136:
case 1346362420:
case 485782942:
case 312004063:
case 6695290:
case 1724446270:
case -448105673:
case -611098679:
case -1111088081:
case -1406369540:
case -1912159043:
case 2076516410:
case 1919618438:
case 45227112:
case -2129094253:
case -421370587:
case -675363106:
iVar2 = 0;
break;
}
if (((unk_0x4BE6499482BEE1D8(iParam2, 1248753945, 0) || unk_0x4BE6499482BEE1D8(iParam2, 481861038, 0)) || unk_0x4BE6499482BEE1D8(iParam2, 713391749, 0)) || unk_0x4BE6499482BEE1D8(iParam2, 434101562, 0))
{
if ((((((unk_0x4BE6499482BEE1D8(iVar0, -1080576805, 0) || unk_0x4BE6499482BEE1D8(iVar0, -1387458490, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -269266203, 0)) || unk_0x4BE6499482BEE1D8(iVar0, 201427653, 0)) || unk_0x4BE6499482BEE1D8(iVar0, 967829025, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -685039259, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -1420825402, 0))
{
iVar2 = 1;
}
}
return iVar2;
}
break;
case joaat("mp_f_freemode_01"):
if (iParam1 >= 256)
{
iVar0 = func_128(iParam0, iParam1, 4, 4);
iVar1 = func_482(iVar0);
}
if (unk_0x4BE6499482BEE1D8(iParam2, -364248070, 0) || unk_0x4BE6499482BEE1D8(iParam2, -56268180, 0))
{
if ((unk_0x4BE6499482BEE1D8(iVar0, -1080576805, 0) || unk_0x4BE6499482BEE1D8(iVar0, -1387458490, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -1420825402, 0))
{
if ((((unk_0x4BE6499482BEE1D8(iParam2, -364248070, 0) || unk_0x4BE6499482BEE1D8(iParam2, -979468724, 0)) || unk_0x4BE6499482BEE1D8(iParam2, -1813210391, 0)) || unk_0x4BE6499482BEE1D8(iParam2, 1248753945, 0)) || unk_0x4BE6499482BEE1D8(iParam2, 481861038, 0))
{
return 1;
}
return 0;
}
if (((((((((((((((((((((((((iParam1 >= 16 && iParam1 <= 31) || (iParam1 >= 48 && iParam1 <= 63)) || (iParam1 >= 96 && iParam1 <= 111)) || iVar1 == 1) || iVar1 == 3) || iVar1 == 6) || unk_0x4BE6499482BEE1D8(iVar0, 1863955539, 0)) || unk_0x4BE6499482BEE1D8(iVar0, 2106216756, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -761463976, 0)) || unk_0x4BE6499482BEE1D8(iVar0, 684992453, 0)) || unk_0x4BE6499482BEE1D8(iVar0, 916636514, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -1939378450, 0)) || unk_0x4BE6499482BEE1D8(iVar0, 264959411, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -1127835965, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -1119232689, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -1207283343, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -849839091, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -2088146832, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -1446333198, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -430330349, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -1103045158, 0)) || unk_0x4BE6499482BEE1D8(iVar0, 1055526375, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -2020757158, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -1325813684, 0)) || unk_0x4BE6499482BEE1D8(iVar0, 1052059919, 0))
{
return 1;
}
}
break;
}
return 0;
}
int func_398(int iParam0, int iParam1)
{
switch (iParam0)
{
case joaat("mp_m_freemode_01"):
if (unk_0x4BE6499482BEE1D8(iParam1, -364248070, 0) || unk_0x4BE6499482BEE1D8(iParam1, -56268180, 0))
{
return 1;
}
break;
case joaat("mp_f_freemode_01"):
if (unk_0x4BE6499482BEE1D8(iParam1, -364248070, 0) || unk_0x4BE6499482BEE1D8(iParam1, -56268180, 0))
{
return 1;
}
break;
}
return 0;
}
int func_399(int iParam0, int iParam1, int iParam2, var uParam3)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
var uVar4;
int iVar5;
switch (iParam0)
{
case joaat("mp_f_freemode_01"):
switch (iParam1)
{
case 4:
if (iParam2 >= 256)
{
iVar0 = func_128(iParam0, iParam2, iParam1, 4);
if (iVar0 != -1)
{
iVar1 = unk_0xC32CC87227998BA0(iVar0);
iVar2 = 0;
while (iVar2 < iVar1)
{
unk_0xD87AFE0D33276102(iVar0, iVar2, &iVar3, &uVar4, &iVar5);
if (iVar5 == 4)
{
if (iVar3 != 0 && iVar3 != 1849449579)
{
if (!unk_0x4BE6499482BEE1D8(iVar3, -1100807313, 0))
{
*uParam3 = func_133(iParam0, iVar3, iParam1, 4);
return 1;
}
}
}
iVar2++;
}
}
}
break;
}
break;
}
return 0;
}
int func_400(int iParam0, int iParam1, int iParam2, var uParam3)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
var uVar4;
int iVar5;
switch (iParam0)
{
case joaat("mp_f_freemode_01"):
switch (iParam1)
{
case 4:
if (iParam2 >= 256)
{
iVar0 = func_128(iParam0, iParam2, iParam1, 4);
if (iVar0 != -1)
{
iVar1 = unk_0xC32CC87227998BA0(iVar0);
iVar2 = 0;
while (iVar2 < iVar1)
{
unk_0xD87AFE0D33276102(iVar0, iVar2, &iVar3, &uVar4, &iVar5);
if (iVar5 == 4)
{
if (iVar3 != 0 && iVar3 != 1849449579)
{
if (unk_0x4BE6499482BEE1D8(iVar3, -1100807313, 0))
{
*uParam3 = func_133(iParam0, iVar3, iParam1, 4);
return 1;
}
}
}
iVar2++;
}
}
}
break;
}
break;
}
return 0;
}
int func_401(int iParam0, int iParam1, int iParam2, int iParam3)
{
switch (iParam0)
{
case joaat("mp_f_freemode_01"):
switch (iParam1)
{
case 4:
if (iParam2 >= 256)
{
if (iParam3 == -1)
{
iParam3 = func_128(iParam0, iParam2, 4, 4);
}
if (unk_0x4BE6499482BEE1D8(iParam3, -1100807313, 0))
{
return 1;
}
}
break;
}
break;
}
return 0;
}
int func_402(int iParam0, int iParam1, int iParam2, int iParam3)
{
switch (iParam0)
{
case joaat("mp_f_freemode_01"):
switch (iParam1)
{
case 11:
if (iParam2 >= 256)
{
if (iParam3 == -1)
{
iParam3 = func_128(iParam0, iParam2, 11, 4);
}
return unk_0x4BE6499482BEE1D8(iParam3, -530089825, 0);
}
break;
}
break;
}
return 0;
}
void func_403(int iParam0, int iParam1)
{
if (iParam1 > 61)
{
unk_0x97A219F934B3F083(iParam0, -548227459);
}
else if (iParam1 > 51)
{
unk_0x97A219F934B3F083(iParam0, 1269440357);
}
else if (iParam1 > 46)
{
unk_0x97A219F934B3F083(iParam0, 1766664132);
}
else if (iParam1 > 26)
{
unk_0x97A219F934B3F083(iParam0, 1277738372);
}
else if (iParam1 > 0)
{
unk_0x97A219F934B3F083(iParam0, 1269440357);
}
else
{
unk_0x519EC0448A77FA81(iParam0);
}
}
int func_404(int iParam0, int iParam1)
{
return 0;
}
int func_405(int iParam0, int iParam1)
{
if (iParam1 >= 62)
{
return (iParam1 - 62);
}
if (iParam1 > 51)
{
return (iParam1 - 52);
}
if (iParam1 > 46)
{
return (iParam1 - 47);
}
if (iParam1 > 26)
{
return (iParam1 - 27);
}
if (iParam1 > 0)
{
return (iParam1 - 1);
}
return iParam1;
}
var func_406(int iParam0, int iParam1)
{
bool bVar0;
int iVar1;
int iVar2;
int iVar3;
bVar0 = unk_0x774CB20D17C3FF03(iParam0, 9) != false;
iVar1 = unk_0xBDB0A560F4FBB443(iParam0, 8, unk_0x774CB20D17C3FF03(iParam0, 8), unk_0x7710E77D1959B321(iParam0, 8));
iVar2 = unk_0xBDB0A560F4FBB443(iParam0, 11, unk_0x774CB20D17C3FF03(iParam0, 11), unk_0x7710E77D1959B321(iParam0, 11));
iVar3 = unk_0xBDB0A560F4FBB443(iParam0, 4, unk_0x774CB20D17C3FF03(iParam0, 4), unk_0x7710E77D1959B321(iParam0, 4));
if ((((!bVar0 == Global_71178 || !iParam1 == Global_71179) || !iVar1 == Global_71180) || !iVar2 == Global_71181) || !iVar3 == Global_71182)
{
Global_71178 = bVar0;
Global_71179 = iParam1;
Global_71180 = iVar1;
Global_71181 = iVar2;
Global_71182 = iVar3;
Global_71183 = func_407(iParam0, iParam1);
}
return Global_71183;
}
int func_407(int iParam0, int iParam1)
{
int iVar0;
bool bVar1;
int iVar2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
iVar0 = unk_0x774CB20D17C3FF03(iParam0, 11);
if (unk_0x774CB20D17C3FF03(iParam0, 9) != 0)
{
bVar1 = true;
}
iVar2 = unk_0x8F474E419F56E48D(iParam0);
iVar3 = 0;
if (iParam1 > 61)
{
iVar3 = 69;
}
else if (iParam1 > 51)
{
iVar3 = (iParam1 - 1);
}
else if (iParam1 > 46)
{
iVar3 = 30;
}
else if (iParam1 > 26)
{
iVar3 = 20;
}
else if (iParam1 > 0)
{
iVar3 = 9;
}
else
{
iVar3 = 0;
}
iVar4 = unk_0xBDB0A560F4FBB443(iParam0, 8, unk_0x774CB20D17C3FF03(iParam0, 8), unk_0x7710E77D1959B321(iParam0, 8));
if (unk_0x4BE6499482BEE1D8(iVar4, 240476421, 8))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
if (unk_0x4BE6499482BEE1D8(iVar4, -1499233212, 8))
{
return (2 + iVar3);
}
if (unk_0x4BE6499482BEE1D8(iVar4, 350281921, 8))
{
return func_411(iParam0, iParam1) + 15;
}
if (unk_0x4BE6499482BEE1D8(iVar4, -887141061, 8))
{
return func_411(iParam0, iParam1) + 15;
}
if (unk_0x4BE6499482BEE1D8(iVar4, -1185371730, 8))
{
return func_411(iParam0, iParam1) + 15;
}
if (unk_0x4BE6499482BEE1D8(iVar4, -2124629577, 8))
{
return func_411(iParam0, iParam1) + 15;
}
}
else
{
if (unk_0x4BE6499482BEE1D8(iVar4, -1499233212, 8))
{
return (7 + iVar3);
}
if (unk_0x4BE6499482BEE1D8(iVar4, 350281921, 8))
{
return (8 + iVar3);
}
if (unk_0x4BE6499482BEE1D8(iVar4, -887141061, 8))
{
return func_411(iParam0, iParam1) + 15;
}
if (unk_0x4BE6499482BEE1D8(iVar4, -1185371730, 8))
{
return func_411(iParam0, iParam1) + 15;
}
if (unk_0x4BE6499482BEE1D8(iVar4, -2124629577, 8))
{
return func_411(iParam0, iParam1) + 15;
}
}
return func_411(iParam0, iParam1);
}
if (func_410(iParam0))
{
if (bVar1)
{
return (8 + iVar3);
}
else
{
return (2 + iVar3);
}
}
if (iVar0 > 15)
{
iVar5 = unk_0xBDB0A560F4FBB443(iParam0, 11, iVar0, unk_0x7710E77D1959B321(iParam0, 11));
if (unk_0x4BE6499482BEE1D8(iVar5, 655081063, 0))
{
if (bVar1)
{
return (8 + iVar3);
}
else
{
return (2 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -530089825, 0))
{
if (bVar1)
{
return (6 + iVar3);
}
else
{
return (6 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -713698407, 0))
{
if (iParam1 > 51)
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return 60;
}
else
{
return 53;
}
}
else if (iParam1 > 46)
{
return 39;
}
else if (iParam1 > 26)
{
return 29;
}
else if (iParam1 > 0)
{
return 18;
}
else
{
return 19;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -1882920022, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
if (bVar1)
{
return (8 + iVar3);
}
else
{
return (2 + iVar3);
}
}
else if (bVar1)
{
return (8 + iVar3);
}
else
{
return (2 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -317649054, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
if (bVar1)
{
return (8 + iVar3);
}
else
{
return (2 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -979468724, 0))
{
return func_411(iParam0, iParam1) + 15;
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -306768813, 0))
{
return func_411(iParam0, iParam1) + 15;
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -58412562, 0))
{
return func_411(iParam0, iParam1) + 15;
}
else if (bVar1)
{
return (8 + iVar3);
}
else
{
return (2 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 1536649085, 0) && !unk_0x4BE6499482BEE1D8(iVar5, 350281921, 0))
{
iVar6 = func_409(iVar5, 0);
if (iVar2 == joaat("mp_m_freemode_01"))
{
switch (iVar6)
{
case 0:
return (2 + iVar3);
break;
case 2:
if (iParam1 > 46)
{
return 39;
}
else if (iParam1 > 26)
{
return 29;
}
else if (iParam1 > 0)
{
return 18;
}
else
{
return 19;
}
break;
default:
iVar0 = func_482(iVar5);
break;
}
}
else
{
switch (iVar6)
{
case 2:
return (7 + iVar3);
break;
default:
iVar0 = func_482(iVar5);
break;
}
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 248194463, 0))
{
if (unk_0x4BE6499482BEE1D8(iVar5, -1347486026, 0))
{
return (3 + iVar3);
}
else
{
return (7 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 396458410, 0))
{
iVar7 = func_408(iVar5, 0);
switch (iVar7)
{
case 4:
if (iParam1 > 46)
{
return 39;
}
else if (iParam1 > 26)
{
return 28;
}
else if (iParam1 > 0)
{
return 17;
}
else
{
return 8;
}
break;
case 5:
if (iVar2 == joaat("mp_m_freemode_01"))
{
}
else
{
return (8 + iVar3);
}
break;
case 6:
if (iVar2 == joaat("mp_m_freemode_01"))
{
}
else
{
return (8 + iVar3);
}
break;
case 7:
if (iVar2 == joaat("mp_m_freemode_01"))
{
}
else
{
return (8 + iVar3);
}
break;
case 11:
if (iVar2 == joaat("mp_m_freemode_01"))
{
}
else
{
return (8 + iVar3);
}
break;
case 12:
if (iVar2 == joaat("mp_m_freemode_01"))
{
}
else
{
return (8 + iVar3);
}
break;
case 14:
if (iParam1 > 46)
{
return 39;
}
else if (iParam1 > 26)
{
return 29;
}
else if (iParam1 > 0)
{
return 18;
}
else
{
return 19;
}
break;
default:
iVar0 = func_482(iVar5);
break;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -779835469, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
if (bVar1)
{
return (8 + iVar3);
}
else
{
return (3 + iVar3);
}
}
else if (bVar1)
{
return (8 + iVar3);
}
else
{
return (2 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -1119232689, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (3 + iVar3);
}
else if (bVar1)
{
return (8 + iVar3);
}
else
{
return (1 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -2102859770, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (2 + iVar3);
}
else
{
return (2 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 1784133476, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (2 + iVar3);
}
else if (bVar1)
{
return (8 + iVar3);
}
else
{
return (1 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -1607949555, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (3 + iVar3);
}
else
{
return (4 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 1976716889, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (3 + iVar3);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 2099109084, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (2 + iVar3);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -1488441032, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
if (iParam1 > 46)
{
return 39;
}
else if (iParam1 > 26)
{
return 29;
}
else if (iParam1 > 0)
{
return 18;
}
else
{
return 19;
}
}
else
{
return (4 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -1719167561, 0) || unk_0x4BE6499482BEE1D8(iVar5, 1431529976, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (3 + iVar3);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -1274099003, 0) || unk_0x4BE6499482BEE1D8(iVar5, 1723403459, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
if (unk_0x4BE6499482BEE1D8(iVar5, -1407614029, 0))
{
return func_411(iParam0, iParam1) + 15;
}
else
{
return (3 + iVar3);
}
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 912543594, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (2 + iVar3);
}
}
else if ((unk_0x4BE6499482BEE1D8(iVar5, -1086258388, 0) || unk_0x4BE6499482BEE1D8(iVar5, 103539798, 0)) || unk_0x4BE6499482BEE1D8(iVar5, -994703884, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
if (bVar1)
{
return (8 + iVar3);
}
else
{
return (6 + iVar3);
}
}
else if (bVar1)
{
return (8 + iVar3);
}
else
{
return (7 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 2044466679, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
if (iParam1 > 46)
{
return 39;
}
else if (iParam1 > 26)
{
return 29;
}
else if (iParam1 > 0)
{
return 18;
}
else
{
return 19;
}
}
else if (bVar1)
{
return (4 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -2020757158, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (3 + iVar3);
}
else if (bVar1)
{
return (8 + iVar3);
}
else
{
return (2 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -1064262817, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
if (bVar1)
{
return (8 + iVar3);
}
else
{
return (2 + iVar3);
}
}
else if (bVar1)
{
return func_411(iParam0, iParam1);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -1419806467, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (7 + iVar3);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -1053842259, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
if (bVar1)
{
return (8 + iVar3);
}
else
{
return (2 + iVar3);
}
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -1358888880, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (3 + iVar3);
}
else
{
return (4 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -441291342, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (3 + iVar3);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -747583185, 0))
{
if (iVar2 == joaat("mp_f_freemode_01"))
{
if (bVar1)
{
return func_411(iParam0, iParam1);
}
else
{
return (2 + iVar3);
}
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -1986415230, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -2088146832, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
if (bVar1)
{
return (8 + iVar3);
}
else
{
return (6 + iVar3);
}
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -785939537, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
if (bVar1)
{
return (8 + iVar3);
}
else
{
return (3 + iVar3);
}
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -872449705, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
if (bVar1)
{
return (8 + iVar3);
}
else
{
return (2 + iVar3);
}
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 700658917, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (8 + iVar3);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 1714969731, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
if (bVar1)
{
return (8 + iVar3);
}
else
{
return (2 + iVar3);
}
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 745826556, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (8 + iVar3);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 1055526375, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (8 + iVar3);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 144417099, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (8 + iVar3);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 492620493, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (8 + iVar3);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -416620954, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
if (bVar1)
{
return (8 + iVar3);
}
else
{
return (3 + iVar3);
}
}
else
{
return (4 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -102825006, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
if (bVar1)
{
return (8 + iVar3);
}
else
{
return (2 + iVar3);
}
}
else
{
return (7 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -733792105, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
if (bVar1)
{
return (8 + iVar3);
}
else
{
return (7 + iVar3);
}
}
else
{
return (4 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 137011325, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
if (bVar1)
{
return (8 + iVar3);
}
else
{
return (3 + iVar3);
}
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -641612092, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
}
else
{
return (6 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -1351486939, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
if (bVar1)
{
return (8 + iVar3);
}
else
{
return (2 + iVar3);
}
}
else if (bVar1)
{
return func_411(iParam0, iParam1);
}
else
{
return (2 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -2119756144, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
if (bVar1)
{
return (8 + iVar3);
}
else
{
return (3 + iVar3);
}
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -1507532917, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return func_411(iParam0, iParam1);
}
else
{
return (7 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 947651647, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -1506370874, 0) || unk_0x4BE6499482BEE1D8(iVar5, 1927516484, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (8 + iVar3);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -1786447517, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (8 + iVar3);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -1010805287, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (8 + iVar3);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -1325813684, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (8 + iVar3);
}
else if (bVar1)
{
return func_411(iParam0, iParam1);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -549843760, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (8 + iVar3);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -828478571, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return func_411(iParam0, iParam1);
}
else if (bVar1)
{
return (55 + iVar3);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 1690933245, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (8 + iVar3);
}
else if (bVar1)
{
return func_411(iParam0, iParam1);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 1360588936, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (8 + iVar3);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 2136821028, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (8 + iVar3);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 1830529185, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (8 + iVar3);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -269266203, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (3 + iVar3);
}
else
{
return (4 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 201427653, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (8 + iVar3);
}
else
{
return (4 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 967829025, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (8 + iVar3);
}
else
{
return (4 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -685039259, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (3 + iVar3);
}
else
{
return (4 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -1266557933, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return func_411(iParam0, iParam1);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -979468724, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return func_411(iParam0, iParam1);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -1813210391, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (3 + iVar3);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 263623295, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return func_411(iParam0, iParam1);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -309899747, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (8 + iVar3);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -89003918, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (8 + iVar3);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -747858475, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return func_411(iParam0, iParam1);
}
else
{
return func_411(iParam0, iParam1);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 490219883, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return func_411(iParam0, iParam1);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 1208450825, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return func_411(iParam0, iParam1);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 297865853, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return func_411(iParam0, iParam1);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 602650322, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return func_411(iParam0, iParam1);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 905042630, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return func_411(iParam0, iParam1);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 1204125293, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return func_411(iParam0, iParam1);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 310055897, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return func_411(iParam0, iParam1);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 606713654, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return func_411(iParam0, iParam1);
}
else
{
return func_411(iParam0, iParam1);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 1831422288, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (8 + iVar3);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -838136846, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (8 + iVar3);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 655638019, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (8 + iVar3);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 970679185, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (3 + iVar3);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 83294665, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (8 + iVar3);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 382246252, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (8 + iVar3);
}
else
{
return (4 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -99064836, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return func_411(iParam0, iParam1);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -697656159, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return func_411(iParam0, iParam1) + 15;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -398213037, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return func_411(iParam0, iParam1) + 15;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 1380605304, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
}
else
{
return func_411(iParam0, iParam1);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -306768813, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
}
else
{
return func_411(iParam0, iParam1) + 15;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -58412562, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
}
else
{
return func_411(iParam0, iParam1) + 15;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 1711219157, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return func_411(iParam0, iParam1) + 15;
}
else
{
return func_411(iParam0, iParam1) + 15;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 1466664110, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return func_411(iParam0, iParam1) + 15;
}
else
{
return func_411(iParam0, iParam1) + 15;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -1968575702, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return func_411(iParam0, iParam1) + 15;
}
else
{
return func_411(iParam0, iParam1) + 15;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 245429010, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (48 + iVar3);
}
else
{
return func_411(iParam0, iParam1) + 15;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 15161247, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (48 + iVar3);
}
else
{
return (48 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 2044923487, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
}
else
{
return func_411(iParam0, iParam1) + 15;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -915352927, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
}
else
{
return func_411(iParam0, iParam1) + 15;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -538378351, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
}
else
{
return func_411(iParam0, iParam1) + 15;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -2139144017, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
}
else
{
return func_411(iParam0, iParam1) + 15;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -435539886, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
}
else
{
return func_411(iParam0, iParam1) + 15;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 695107163, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
}
else
{
iVar0 = 7;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -1499233212, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return func_411(iParam0, iParam1) + 15;
}
else
{
return func_411(iParam0, iParam1) + 15;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 350281921, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return func_411(iParam0, iParam1) + 15;
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -2124629577, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
}
else
{
return func_411(iParam0, iParam1) + 15;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 1877382859, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return func_411(iParam0, iParam1) + 15;
}
else
{
return func_411(iParam0, iParam1) + 15;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -1375878737, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (8 + iVar3);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -1347486026, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (1 + iVar3);
}
else
{
return (1 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -1467843180, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (2 + iVar3);
}
else
{
return (2 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -540436505, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return func_411(iParam0, iParam1) + 15;
}
else
{
return func_411(iParam0, iParam1) + 15;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 1207461955, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return func_411(iParam0, iParam1) + 15;
}
else
{
return func_411(iParam0, iParam1) + 15;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -1467843180, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return func_411(iParam0, iParam1);
}
else
{
return func_411(iParam0, iParam1);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -1467843180, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return func_411(iParam0, iParam1) + 15;
}
else
{
return func_411(iParam0, iParam1) + 15;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -785939537, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (8 + iVar3);
}
else
{
return func_411(iParam0, iParam1) + 15;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -785939537, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (8 + iVar3);
}
else
{
return func_411(iParam0, iParam1) + 15;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -939525357, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return func_411(iParam0, iParam1);
}
else
{
return func_411(iParam0, iParam1) + 15;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -1986415230, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (4 + iVar3);
}
else
{
return func_411(iParam0, iParam1);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -1467843180, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return func_411(iParam0, iParam1) + 15;
}
else
{
return func_411(iParam0, iParam1) + 15;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -1663871176, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (8 + iVar3);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -1467843180, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (2 + iVar3);
}
else
{
return (8 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -1467843180, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return func_411(iParam0, iParam1) + 15;
}
else
{
return func_411(iParam0, iParam1) + 15;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -1467843180, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return func_411(iParam0, iParam1);
}
else
{
return func_411(iParam0, iParam1);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -939525357, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return func_411(iParam0, iParam1);
}
else
{
return func_411(iParam0, iParam1) + 15;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 398019854, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return func_411(iParam0, iParam1) + 15;
}
else
{
return func_411(iParam0, iParam1);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 1965569012, 0) && iVar2 == joaat("mp_f_freemode_01"))
{
if (bVar1)
{
return (8 + iVar3);
}
else
{
return (1 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, 2026620439, 0) && iVar2 == joaat("mp_f_freemode_01"))
{
if (bVar1)
{
return (8 + iVar3);
}
else
{
return (2 + iVar3);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar5, -1410897066, 0))
{
if (iVar2 == joaat("mp_m_freemode_01"))
{
return (3 + iVar3);
}
else
{
return (8 + iVar3);
}
}
else if ((unk_0x4BE6499482BEE1D8(iVar5, -2017999390, 0) || unk_0x4BE6499482BEE1D8(iVar5, 320460654, 0)) || unk_0x4BE6499482BEE1D8(iVar5, -826135203, 0))
{
return (7 + iVar3);
}
else
{
iVar8 = iVar0;
iVar0 = func_482(iVar5);
}
}
if (iVar2 == joaat("mp_m_freemode_01"))
{
switch (iVar0)
{
case 0:
if (bVar1)
{
return (2 + iVar3);
}
else
{
return (1 + iVar3);
}
break;
case 1:
if (bVar1)
{
return (2 + iVar3);
}
else
{
return (1 + iVar3);
}
break;
case 2:
if (bVar1)
{
return (7 + iVar3);
}
else
{
return (7 + iVar3);
}
break;
case 3:
if (bVar1)
{
return (3 + iVar3);
}
else
{
return (3 + iVar3);
}
break;
case 4:
if (bVar1)
{
return (3 + iVar3);
}
else
{
return (3 + iVar3);
}
break;
case 5:
if (bVar1)
{
return (2 + iVar3);
}
else
{
return (1 + iVar3);
}
break;
case 6:
if (bVar1)
{
return (2 + iVar3);
}
else
{
return (2 + iVar3);
}
break;
case 7:
if (bVar1)
{
return (3 + iVar3);
}
else
{
return (3 + iVar3);
}
break;
case 8:
if (bVar1)
{
return (8 + iVar3);
}
else
{
return (1 + iVar3);
}
break;
case 9:
if (bVar1)
{
return (2 + iVar3);
}
else
{
return (1 + iVar3);
}
break;
case 10:
if (bVar1)
{
return (3 + iVar3);
}
else
{
return (3 + iVar3);
}
break;
case 11:
if (bVar1)
{
return (8 + iVar3);
}
else
{
return (2 + iVar3);
}
break;
case 12:
if (bVar1)
{
return (2 + iVar3);
}
else
{
return (1 + iVar3);
}
break;
case 13:
if (bVar1)
{
return (7 + iVar3);
}
else
{
return (2 + iVar3);
}
break;
case 14:
if (bVar1)
{
return (6 + iVar3);
}
else
{
return (6 + iVar3);
}
break;
case 15:
if (bVar1)
{
return (2 + iVar3);
}
else
{
return (5 + iVar3);
}
break;
}
}
else
{
switch (iVar0)
{
case 0:
if (bVar1)
{
return (2 + iVar3);
}
else
{
return (1 + iVar3);
}
break;
case 1:
if (bVar1)
{
return (7 + iVar3);
}
else
{
return (7 + iVar3);
}
break;
case 2:
if (bVar1)
{
return (4 + iVar3);
}
else
{
return (3 + iVar3);
}
break;
case 3:
if (bVar1)
{
return (6 + iVar3);
}
else
{
return (5 + iVar3);
}
break;
case 4:
if (bVar1)
{
return (2 + iVar3);
}
else
{
return (1 + iVar3);
}
break;
case 5:
if (bVar1)
{
return (2 + iVar3);
}
else
{
return (1 + iVar3);
}
break;
case 6:
if (bVar1)
{
return (7 + iVar3);
}
else
{
return (7 + iVar3);
}
break;
case 7:
if (bVar1)
{
return (7 + iVar3);
}
else
{
return (7 + iVar3);
}
break;
case 8:
if (bVar1)
{
return (7 + iVar3);
}
else
{
return (7 + iVar3);
}
break;
case 9:
return (2 + iVar3);
break;
case 10:
if (bVar1)
{
return (7 + iVar3);
}
else
{
return (7 + iVar3);
}
break;
case 11:
if (bVar1)
{
return (2 + iVar3);
}
else
{
return (1 + iVar3);
}
break;
case 12:
if (bVar1)
{
return (2 + iVar3);
}
else
{
return (1 + iVar3);
}
break;
case 13:
if (bVar1)
{
return (2 + iVar3);
}
else
{
return (1 + iVar3);
}
break;
case 14:
if (bVar1)
{
return (8 + iVar3);
}
else
{
return (4 + iVar3);
}
break;
case 15:
if (bVar1)
{
return (2 + iVar3);
}
else
{
return (1 + iVar3);
}
break;
}
}
return (1 + iVar3);
return 0;
}
int func_408(int iParam0, int iParam1)
{
int iVar0;
iVar0 = -1;
if (unk_0x4BE6499482BEE1D8(iParam0, 140732128, iParam1))
{
iVar0 = 0;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, 1863955539, iParam1))
{
iVar0 = 1;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, 2106216756, iParam1))
{
iVar0 = 2;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, -761463976, iParam1))
{
iVar0 = 3;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, 1627756587, iParam1))
{
iVar0 = 4;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, 684992453, iParam1))
{
iVar0 = 5;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, 916636514, iParam1))
{
iVar0 = 6;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, -1939378450, iParam1))
{
iVar0 = 7;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, 441715397, iParam1))
{
iVar0 = 8;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, 264959411, iParam1))
{
iVar0 = 9;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, -1127835965, iParam1))
{
iVar0 = 10;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, -820724897, iParam1))
{
iVar0 = 11;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, 153792394, iParam1))
{
iVar0 = 12;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, -672871169, iParam1))
{
iVar0 = 13;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, 572416369, iParam1))
{
iVar0 = 14;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, -196114988, iParam1))
{
iVar0 = 15;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, 1322269404, iParam1))
{
iVar0 = 16;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, 548036233, iParam1))
{
iVar0 = 17;
}
return iVar0;
}
int func_409(int iParam0, int iParam1)
{
int iVar0;
iVar0 = -1;
if (unk_0x4BE6499482BEE1D8(iParam0, -870074461, iParam1))
{
iVar0 = 0;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, -1174924468, iParam1))
{
iVar0 = 1;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, -868698159, iParam1))
{
iVar0 = 2;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, -1177480446, iParam1))
{
iVar0 = 3;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, -1347486026, iParam1))
{
iVar0 = 4;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, -1655154167, iParam1))
{
iVar0 = 5;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, -2105858993, iParam1))
{
iVar0 = 6;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, 1893564692, iParam1))
{
iVar0 = 7;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, 1710451520, iParam1))
{
iVar0 = 8;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, 1416808511, iParam1))
{
iVar0 = 9;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, 1641506460, iParam1))
{
iVar0 = 10;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, 699233865, iParam1))
{
iVar0 = 11;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, 393400788, iParam1))
{
iVar0 = 12;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, 216120498, iParam1))
{
iVar0 = 13;
}
return iVar0;
}
int func_410(int iParam0)
{
if (unk_0x4BE6499482BEE1D8(unk_0xBDB0A560F4FBB443(iParam0, 4, unk_0x774CB20D17C3FF03(iParam0, 4), unk_0x7710E77D1959B321(iParam0, 4)), 1052059919, 0))
{
return 1;
}
return 0;
}
int func_411(int iParam0, int iParam1)
{
if (iParam1 > 69)
{
return 69;
}
if (iParam1 > 61)
{
return 61;
}
if (iParam1 == 53 || iParam1 == 54)
{
return 61;
}
if (iParam1 > 51)
{
return 51;
}
if (iParam1 > 46)
{
return 51;
}
if (iParam1 > 26)
{
return 50;
}
if (iParam1 > 0)
{
return 49;
}
return 48;
}
int func_412(int iParam0, int iParam1, int iParam2)
{
int iVar0;
int iVar1;
var uVar2;
var uVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
var uVar8;
var uVar9;
int iVar10;
var uVar11;
int iVar12;
int iVar13;
var uVar14;
var uVar15;
int iVar16;
struct<5> Var17;
var uVar18;
if (unk_0x4915F4759304D5CF(iParam0))
{
return 0;
}
iVar0 = unk_0x8F474E419F56E48D(iParam0);
Global_71017[1 /*14*/] = { func_506(iVar0, iParam1, iParam2, -1) };
uVar2 = Global_2621444;
uVar3 = Global_2621445;
if (!unk_0x05EFB6A616B6FADE(Global_71017[1 /*14*/].f_6, 0))
{
return 0;
}
if (iParam1 == 12)
{
uVar8 = { func_151(iVar0, iParam2) };
iVar7 = 0;
while (iVar7 < 7)
{
switch (iVar7)
{
case 0:
iVar4 = 1;
break;
case 1:
iVar4 = 4;
break;
case 2:
iVar4 = 6;
break;
case 3:
iVar4 = 7;
break;
case 4:
iVar4 = 8;
break;
case 5:
iVar4 = 11;
break;
case 6:
iVar4 = 13;
break;
}
if (uVar8[iVar4] != -99)
{
if (!func_412(iParam0, iVar4, uVar8[iVar4]))
{
Global_2621444 = uVar2;
Global_2621445 = uVar3;
return 0;
if (iVar4 == 13)
{
uVar9 = { func_148(iVar0, uVar8[iVar4]) };
iVar5 = 0;
while (iVar5 <= 8)
{
if (!func_412(iParam0, 14, uVar9[iVar5]))
{
iVar6 = 0;
while (iVar6 <= 19)
{
Global_71017[2 /*14*/] = { func_506(iVar0, 14, iVar6, -1) };
if (Global_71017[2 /*14*/].f_12 == iVar5)
{
if (func_412(iParam0, 14, iVar6))
{
if (!func_114(iVar0, iParam2, 14, iVar6, &uVar8, &(Global_71017[2 /*14*/])))
{
Global_2621444 = uVar2;
Global_2621445 = uVar3;
return 0;
}
}
}
iVar6++;
}
}
iVar5++;
}
}
else
{
iVar1 = func_139(iParam0, iVar4);
Global_71017[2 /*14*/] = { func_506(iVar0, iVar4, iVar1, -1) };
if (!func_114(iVar0, iParam2, iVar4, iVar1, &uVar8, &(Global_71017[2 /*14*/])))
{
Global_2621444 = uVar2;
Global_2621445 = uVar3;
return 0;
}
}
}
}
iVar7++;
}
if ((uVar8[10] != 0 && uVar8[10] != 1849449579) && uVar8.f_16)
{
if (func_19(1757, Global_71014, 0) != uVar8[10])
{
Global_2621444 = uVar2;
Global_2621445 = uVar3;
return 0;
}
}
Global_2621444 = uVar2;
Global_2621445 = uVar3;
return 1;
}
else if (iParam1 == 13)
{
uVar11 = { func_148(iVar0, iParam2) };
iVar10 = 0;
while (iVar10 <= 8)
{
if (!func_412(iParam0, 14, uVar11[iVar10]))
{
return 0;
}
iVar10++;
}
return 1;
}
else if (iParam1 == 14)
{
if (unk_0xD1241BB51B6FE6DA(iParam0, Global_71017[1 /*14*/].f_12) == Global_71017[1 /*14*/].f_3 && (unk_0x2FB5EBD67ABDBF18(iParam0, Global_71017[1 /*14*/].f_12) == Global_71017[1 /*14*/].f_4 || Global_71017[1 /*14*/].f_3 == -1))
{
return 1;
}
if (((Global_71017[1 /*14*/].f_12 == 0 && unk_0x05EFB6A616B6FADE(Global_71017[1 /*14*/].f_6, 6)) && unk_0x4BE6499482BEE1D8(Global_2621444, -1033433901, 1)) && unk_0x88C4C24486FF1962(Global_2621444) > 0)
{
iVar16 = unk_0x88C4C24486FF1962(Global_2621444);
iVar12 = 0;
while (iVar12 < iVar16)
{
unk_0x500AB268A91234C7(Global_2621444, iVar12, &iVar13, &uVar14, &uVar15);
if (iVar13 != 0 && iVar13 != 1849449579)
{
unk_0xF21D7CAB6815AD7E(&Var17);
unk_0x6D80E868FD724CD2(iVar13, &Var17);
if (Var17.f_3 == unk_0xD1241BB51B6FE6DA(iParam0, Global_71017[1 /*14*/].f_12) && Var17.f_4 == unk_0x2FB5EBD67ABDBF18(iParam0, Global_71017[1 /*14*/].f_12))
{
return 1;
}
}
iVar12++;
}
}
}
else
{
if (Global_71017[1 /*14*/].f_3 == unk_0x774CB20D17C3FF03(iParam0, func_147(iParam1)) && Global_71017[1 /*14*/].f_4 == unk_0x7710E77D1959B321(iParam0, func_147(iParam1)))
{
return 1;
}
if (iParam1 == 4)
{
Global_71016++;
if (Global_71016 == 1)
{
if (func_402(iVar0, 11, func_139(iParam0, 11), -1))
{
if (func_400(iVar0, 4, iParam2, &uVar18))
{
return func_412(iParam0, 4, uVar18);
}
}
else if (func_399(iVar0, 4, iParam2, &uVar18))
{
return func_412(iParam0, 4, uVar18);
}
}
Global_71016 = (Global_71016 - 1);
}
}
return 0;
}
int func_413(int iParam0, int iParam1, int iParam2, int iParam3)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
var uVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
int iVar9;
var uVar10;
int iVar11;
if (func_410(iParam0))
{
return -99;
}
if (func_414(iParam0))
{
return -99;
}
if (iParam2 == 11)
{
if (iParam1 == joaat("mp_m_freemode_01"))
{
if (((((iParam3 >= 0 && iParam3 <= 15) || (iParam3 >= 16 && iParam3 <= 31)) || (iParam3 >= 80 && iParam3 <= 95)) || (iParam3 >= 140 && iParam3 <= 155)) || (iParam3 >= 188 && iParam3 <= 203))
{
return 1;
}
else if (iParam3 >= 32 && iParam3 <= 47)
{
return 6;
}
else if (((iParam3 >= 48 && iParam3 <= 63) || (iParam3 >= 64 && iParam3 <= 79)) || (iParam3 >= 108 && iParam3 <= 123))
{
return 11;
}
else if (iParam3 >= 96 && iParam3 <= 107)
{
return 41;
}
else if (iParam3 >= 156 && iParam3 <= 171)
{
return 36;
}
else if (iParam3 >= 172 && iParam3 <= 187)
{
return 31;
}
else if (iParam3 >= 204 && iParam3 <= 219)
{
return 16;
}
else if ((iParam3 >= 220 && iParam3 <= 235) || (iParam3 >= 124 && iParam3 <= 139))
{
return 26;
}
else if (iParam3 == 236)
{
return 21;
}
else if (iParam3 >= 237)
{
iVar0 = func_128(iParam1, iParam3, 11, 3);
if (iVar0 != -1)
{
iVar1 = unk_0xC32CC87227998BA0(iVar0);
iVar2 = 0;
while (iVar2 < iVar1)
{
unk_0xD87AFE0D33276102(iVar0, iVar2, &iVar3, &uVar4, &iVar5);
if (iVar5 == 9)
{
if (iVar3 != 0 && iVar3 != 1849449579)
{
return func_133(iParam1, iVar3, 9, 3);
}
else
{
return uVar4;
}
}
iVar2++;
}
}
return -99;
}
}
else if (iParam1 == joaat("mp_f_freemode_01"))
{
if ((((((iParam3 >= 0 && iParam3 <= 15) || (iParam3 >= 64 && iParam3 <= 79)) || (iParam3 >= 176 && iParam3 <= 191)) || (iParam3 >= 192 && iParam3 <= 207)) || (iParam3 >= 208 && iParam3 <= 223)) || (iParam3 >= 240 && iParam3 <= 255))
{
return 1;
}
else if (((iParam3 >= 16 && iParam3 <= 31) || (iParam3 >= 112 && iParam3 <= 127)) || (iParam3 >= 128 && iParam3 <= 143))
{
return 16;
}
else if (iParam3 >= 32 && iParam3 <= 47)
{
return 6;
}
else if (iParam3 >= 48 && iParam3 <= 63)
{
return 11;
}
else if ((iParam3 >= 96 && iParam3 <= 111) || (iParam3 >= 160 && iParam3 <= 175))
{
return 21;
}
else if (iParam3 >= 224 && iParam3 <= 239)
{
return 26;
}
else if (iParam3 >= 144 && iParam3 <= 159)
{
return 0;
}
else if (iParam3 >= 80 && iParam3 <= 95)
{
return 31;
}
else if (iParam3 >= 256)
{
iVar6 = func_128(iParam1, iParam3, 11, 4);
if (iVar6 != -1)
{
iVar7 = unk_0xC32CC87227998BA0(iVar6);
iVar8 = 0;
while (iVar8 < iVar7)
{
unk_0xD87AFE0D33276102(iVar6, iVar8, &iVar9, &uVar10, &iVar11);
if (iVar11 == 9)
{
if (iVar9 != 0 && iVar9 != 1849449579)
{
return func_133(iParam1, iVar9, 9, 4);
}
else
{
return uVar10;
}
}
iVar8++;
}
}
return -99;
}
}
}
return -99;
}
int func_414(int iParam0)
{
if (unk_0x4BE6499482BEE1D8(unk_0xBDB0A560F4FBB443(iParam0, 8, unk_0x774CB20D17C3FF03(iParam0, 8), unk_0x7710E77D1959B321(iParam0, 8)), -2124629577, 0))
{
return 1;
}
return 0;
}
int func_415(int iParam0)
{
int iVar0;
if (!unk_0x4915F4759304D5CF(iParam0))
{
iVar0 = unk_0x8F474E419F56E48D(iParam0);
if (iVar0 == joaat("mp_m_freemode_01"))
{
if (unk_0x774CB20D17C3FF03(iParam0, 9) != 0)
{
return 1;
}
}
else if (iVar0 == joaat("mp_f_freemode_01"))
{
if (unk_0x774CB20D17C3FF03(iParam0, 9) != 0)
{
return 1;
}
}
}
return 0;
}
void func_416(int iParam0, int iParam1)
{
struct<10> Var0;
int iVar1;
int iVar2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
float fVar7;
float fVar8;
float fVar9;
bool bVar10;
int iVar11;
if (!unk_0x07E3832452A79D33(iParam0))
{
}
unk_0xE4F28B106BA729FB(iParam0, &Var0);
iVar1 = func_19(2095, iParam1, 0);
iVar2 = func_19(2096, iParam1, 0);
iVar3 = func_19(2097, iParam1, 0);
iVar4 = func_19(2098, iParam1, 0);
iVar5 = func_19(2099, iParam1, 0);
iVar6 = func_19(2100, iParam1, 0);
fVar7 = func_432(134, iParam1);
fVar8 = func_432(135, iParam1);
fVar9 = func_432(136, iParam1);
bVar10 = func_330(160, iParam1);
if (((((((((Var0 != iVar1 || Var0.f_1 != iVar2) || Var0.f_2 != iVar3) || Var0.f_3 != iVar4) || Var0.f_4 != iVar5) || Var0.f_5 != iVar6) || Var0.f_6 != fVar7) || Var0.f_7 != fVar8) || Var0.f_8 != fVar9) || Var0.f_9 != bVar10)
{
unk_0x45815D1E96AFF8EA(iParam0, iVar1, iVar2, iVar3, iVar4, iVar5, iVar6, fVar7, fVar8, fVar9, bVar10);
iVar11 = func_19(2101, iParam1, 0);
if (iVar11 > 0)
{
func_417(iParam0, iParam1, 0);
}
}
}
void func_417(int iParam0, int iParam1, bool bParam2)
{
int iVar0;
int iVar1;
int iVar2;
float fVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
int iVar9;
int iVar10;
float fVar11;
int iVar12;
int iVar13;
int iVar14;
int iVar15;
iVar0 = 0;
while (iVar0 < 20)
{
iVar1 = iVar0;
iVar2 = func_431(iVar1);
if (!bParam2)
{
fVar3 = func_432(iVar2, iParam1);
}
else
{
fVar3 = func_430(iVar2, iParam1);
}
unk_0x023BE7D6B84BE892(iParam0, iVar1, fVar3);
iVar0++;
}
iVar4 = 0;
while (iVar4 < 13)
{
iVar5 = func_429(iVar4);
iVar6 = func_428(iVar5);
iVar7 = func_427(iVar5);
if (iVar6 != -1 && iVar7 != -1)
{
if (!bParam2)
{
iVar10 = func_424(iVar6, iParam1, -1);
fVar11 = func_432(iVar7, iParam1);
}
else
{
iVar10 = func_423(iVar6, iParam1);
fVar11 = func_430(iVar7, iParam1);
}
unk_0x5F777A417C72131B(iParam0, iVar5, iVar10, fVar11);
iVar8 = func_422(iVar5);
iVar9 = func_421(iVar5);
if (iVar8 != -1)
{
if (!bParam2)
{
iVar13 = func_19(iVar8, iParam1, 0);
iVar14 = func_19(iVar9, iParam1, 0);
}
else
{
iVar13 = func_420(iVar8, iParam1);
iVar14 = func_420(iVar9, iParam1);
}
func_419(iVar13, &iVar12, &iVar15);
unk_0xACF91E54AFA72E3C(iParam0, iVar5, iVar15, iVar12, iVar14);
}
}
iVar4++;
}
func_418(&iParam0, iParam1, bParam2);
}
void func_418(int iParam0, int iParam1, bool bParam2)
{
float fVar0;
if (!bParam2)
{
fVar0 = func_432(157, iParam1);
}
else
{
fVar0 = func_430(157, iParam1);
}
if (*iParam0 == unk_0xA19140A5C42D8715())
{
}
unk_0xBFA8D69CC0B52B87(*iParam0, round(fVar0));
}
void func_419(int iParam0, var uParam1, var uParam2)
{
int iVar0;
*uParam1 = shift_right(iParam0, 16);
iVar0 = iParam0 & 65535;
*uParam2 = iVar0;
}
int func_420(int iParam0, int iParam1)
{
var uVar0;
var uVar1;
uVar0 = Global_2535519[iParam0 /*3*/][func_17(iParam1)];
if (unk_0x48F6897EB0054DEF(uVar0, &uVar1))
{
return uVar1;
}
return 0;
}
int func_421(int iParam0)
{
switch (iParam0)
{
case 2:
return 2159;
case 1:
return 2160;
case 5:
return 2161;
case 8:
return 2162;
case 10:
return 2157;
default:
}
return -1;
}
int func_422(int iParam0)
{
switch (iParam0)
{
case 2:
return 2152;
case 1:
return 2153;
case 5:
return 2154;
case 8:
return 2155;
case 10:
return 2156;
default:
}
return -1;
}
int func_423(int iParam0, int iParam1)
{
int iVar0;
int iVar1;
int iVar2;
iVar0 = 0;
if (iParam1 == -1)
{
iParam1 = func_18();
}
iVar1 = 0;
iVar2 = 0;
if (iParam0 >= 384 && iParam0 < 457)
{
iVar1 = unk_0xB3BA69AF3BAB6907((iParam0 - 384), 0, 1, iParam1);
iVar2 = ((iParam0 - 384) - unk_0x255504F58AF9B890((iParam0 - 384)) * 8) * 8;
}
else if (iParam0 >= 457 && iParam0 < 513)
{
iVar1 = unk_0xB3BA69AF3BAB6907((iParam0 - 457), 1, 1, iParam1);
iVar2 = ((iParam0 - 457) - unk_0x255504F58AF9B890((iParam0 - 457)) * 8) * 8;
}
else if (iParam0 >= 1281 && iParam0 < 1305)
{
iVar1 = unk_0xB3BA69AF3BAB6907((iParam0 - 1281), 0, 0, 0);
iVar2 = ((iParam0 - 1281) - unk_0x255504F58AF9B890((iParam0 - 1281)) * 8) * 8;
}
else if (iParam0 >= 1305 && iParam0 < 1361)
{
iVar1 = unk_0xB3BA69AF3BAB6907((iParam0 - 1305), 1, 0, 0);
iVar2 = ((iParam0 - 1305) - unk_0x255504F58AF9B890((iParam0 - 1305)) * 8) * 8;
}
else if (iParam0 >= 1393 && iParam0 < 2919)
{
iVar1 = unk_0x931785B1D4E0FF39((iParam0 - 1393), 0, 1, iParam1);
iVar2 = ((iParam0 - 1393) - unk_0x255504F58AF9B890((iParam0 - 1393)) * 8) * 8;
}
else if (iParam0 >= 1361 && iParam0 < 1393)
{
iVar1 = unk_0x931785B1D4E0FF39((iParam0 - 1361), 0, 0, 0);
iVar2 = ((iParam0 - 1361) - unk_0x255504F58AF9B890((iParam0 - 1361)) * 8) * 8;
}
else if (iParam0 >= 3879 && iParam0 < 4143)
{
iVar1 = unk_0x13224BDDFB82DC6F((iParam0 - 3879), 0, 1, iParam1, "_NGPSTAT_INT");
iVar2 = ((iParam0 - 3879) - unk_0x255504F58AF9B890((iParam0 - 3879)) * 8) * 8;
}
else if (iParam0 >= 4143 && iParam0 < 4207)
{
iVar1 = unk_0x13224BDDFB82DC6F((iParam0 - 4143), 0, 0, 0, "_MP_NGPSTAT_INT");
iVar2 = ((iParam0 - 4143) - unk_0x255504F58AF9B890((iParam0 - 4143)) * 8) * 8;
}
else if (iParam0 >= 4399 && iParam0 < 6028)
{
iVar1 = unk_0x13224BDDFB82DC6F((iParam0 - 4399), 0, 1, iParam1, "_MP_LRPSTAT_INT");
iVar2 = ((iParam0 - 4399) - unk_0x255504F58AF9B890((iParam0 - 4399)) * 8) * 8;
}
else if (iParam0 >= 6413 && iParam0 < 7262)
{
iVar1 = unk_0x13224BDDFB82DC6F((iParam0 - 6413), 0, 1, iParam1, "_MP_APAPSTAT_INT");
iVar2 = ((iParam0 - 6413) - unk_0x255504F58AF9B890((iParam0 - 6413)) * 8) * 8;
}
else if (iParam0 >= 7262 && iParam0 < 7313)
{
iVar1 = unk_0x13224BDDFB82DC6F((iParam0 - 7262), 0, 1, iParam1, "_MP_LR2PSTAT_INT");
iVar2 = ((iParam0 - 7262) - unk_0x255504F58AF9B890((iParam0 - 7262)) * 8) * 8;
}
else if (iParam0 >= 7681 && iParam0 < 9361)
{
iVar1 = unk_0x13224BDDFB82DC6F((iParam0 - 7681), 0, 1, iParam1, "_MP_BIKEPSTAT_INT");
iVar2 = ((iParam0 - 7681) - unk_0x255504F58AF9B890((iParam0 - 7681)) * 8) * 8;
}
else if (iParam0 >= 9553 && iParam0 < 15265)
{
iVar1 = unk_0x13224BDDFB82DC6F((iParam0 - 9553), 0, 1, iParam1, "_MP_IMPEXPPSTAT_INT");
iVar2 = ((iParam0 - 9553) - unk_0x255504F58AF9B890((iParam0 - 9553)) * 8) * 8;
}
else if (iParam0 >= 15265 && iParam0 < 15369)
{
iVar1 = unk_0x13224BDDFB82DC6F((iParam0 - 15265), 0, 1, iParam1, "_MP_GUNRPSTAT_INT");
iVar2 = ((iParam0 - 15265) - unk_0x255504F58AF9B890((iParam0 - 15265)) * 8) * 8;
}
else if (iParam0 >= 7641 && iParam0 < 7681)
{
iVar1 = unk_0x13224BDDFB82DC6F((iParam0 - 7641), 0, 1, iParam1, "_NGDLCPSTAT_INT");
iVar2 = ((iParam0 - 7641) - unk_0x255504F58AF9B890((iParam0 - 7641)) * 8) * 8;
}
else if (iParam0 >= 7313 && iParam0 < 7321)
{
iVar1 = unk_0x13224BDDFB82DC6F((iParam0 - 7313), 0, 0, 0, "_MP_NGDLCPSTAT_INT");
iVar2 = ((iParam0 - 7313) - unk_0x255504F58AF9B890((iParam0 - 7313)) * 8) * 8;
}
else if (iParam0 >= 16010 && iParam0 < 18098)
{
iVar1 = unk_0x13224BDDFB82DC6F((iParam0 - 16010), 0, 1, iParam1, "_DLCSMUGCHARPSTAT_INT");
iVar2 = ((iParam0 - 16010) - unk_0x255504F58AF9B890((iParam0 - 16010)) * 8) * 8;
}
else if (iParam0 >= 18162 && iParam0 < 19018)
{
iVar1 = unk_0x13224BDDFB82DC6F((iParam0 - 18162), 0, 1, iParam1, "_GANGOPSPSTAT_INT");
iVar2 = ((iParam0 - 18162) - unk_0x255504F58AF9B890((iParam0 - 18162)) * 8) * 8;
}
else if (iParam0 >= 19018 && iParam0 < 22066)
{
iVar1 = unk_0x13224BDDFB82DC6F((iParam0 - 19018), 0, 1, iParam1, "_BUSINESSBATPSTAT_INT");
iVar2 = ((iParam0 - 19018) - unk_0x255504F58AF9B890((iParam0 - 19018)) * 8) * 8;
}
else if (iParam0 >= 22194 && iParam0 < 24962)
{
iVar1 = unk_0x13224BDDFB82DC6F((iParam0 - 22194), 0, 1, iParam1, "_ARENAWARSPSTAT_INT");
iVar2 = ((iParam0 - 22194) - unk_0x255504F58AF9B890((iParam0 - 22194)) * 8) * 8;
}
if (!unk_0x961C42CF8946D680(iVar1, &iVar0, iVar2, 8))
{
iVar0 = 0;
}
if (iParam0 == 384)
{
}
return iVar0;
}
int func_424(int iParam0, int iParam1, int iParam2)
{
int iVar0;
int iVar1;
int iVar2;
if (iParam1 == -1)
{
iParam1 = func_18();
}
iVar0 = 0;
iVar1 = func_426(iParam0, iParam1);
iVar2 = func_425(iParam0);
if (0 != iVar1)
{
if (!unk_0x8107725D56824351(iVar1, &iVar0, iVar2, 8, iParam2))
{
iVar0 = 0;
}
}
return iVar0;
}
int func_425(int iParam0)
{
int iVar0;
iVar0 = 0;
if (iParam0 >= 384 && iParam0 < 457)
{
iVar0 = ((iParam0 - 384) - unk_0x255504F58AF9B890((iParam0 - 384)) * 8) * 8;
}
else if (iParam0 >= 457 && iParam0 < 513)
{
iVar0 = ((iParam0 - 457) - unk_0x255504F58AF9B890((iParam0 - 457)) * 8) * 8;
}
else if (iParam0 >= 1281 && iParam0 < 1305)
{
iVar0 = ((iParam0 - 1281) - unk_0x255504F58AF9B890((iParam0 - 1281)) * 8) * 8;
}
else if (iParam0 >= 1305 && iParam0 < 1361)
{
iVar0 = ((iParam0 - 1305) - unk_0x255504F58AF9B890((iParam0 - 1305)) * 8) * 8;
}
else if (iParam0 >= 1361 && iParam0 < 1393)
{
iVar0 = ((iParam0 - 1361) - unk_0x255504F58AF9B890((iParam0 - 1361)) * 8) * 8;
}
else if (iParam0 >= 1393 && iParam0 < 2919)
{
iVar0 = ((iParam0 - 1393) - unk_0x255504F58AF9B890((iParam0 - 1393)) * 8) * 8;
}
else if (iParam0 >= 4143 && iParam0 < 4207)
{
iVar0 = ((iParam0 - 4143) - unk_0x255504F58AF9B890((iParam0 - 4143)) * 8) * 8;
}
else if (iParam0 >= 3879 && iParam0 < 4143)
{
iVar0 = ((iParam0 - 3879) - unk_0x255504F58AF9B890((iParam0 - 3879)) * 8) * 8;
}
else if (iParam0 >= 4399 && iParam0 < 6028)
{
iVar0 = ((iParam0 - 4399) - unk_0x255504F58AF9B890((iParam0 - 4399)) * 8) * 8;
}
else if (iParam0 >= 6413 && iParam0 < 7262)
{
iVar0 = ((iParam0 - 6413) - unk_0x255504F58AF9B890((iParam0 - 6413)) * 8) * 8;
}
else if (iParam0 >= 7262 && iParam0 < 7313)
{
iVar0 = ((iParam0 - 7262) - unk_0x255504F58AF9B890((iParam0 - 7262)) * 8) * 8;
}
else if (iParam0 >= 7681 && iParam0 < 9361)
{
iVar0 = ((iParam0 - 7681) - unk_0x255504F58AF9B890((iParam0 - 7681)) * 8) * 8;
}
else if (iParam0 >= 9553 && iParam0 < 15265)
{
iVar0 = ((iParam0 - 9553) - unk_0x255504F58AF9B890((iParam0 - 9553)) * 8) * 8;
}
else if (iParam0 >= 15265 && iParam0 < 15369)
{
iVar0 = ((iParam0 - 15265) - unk_0x255504F58AF9B890((iParam0 - 15265)) * 8) * 8;
}
else if (iParam0 >= 7313 && iParam0 < 7321)
{
iVar0 = ((iParam0 - 7313) - unk_0x255504F58AF9B890((iParam0 - 7313)) * 8) * 8;
}
else if (iParam0 >= 7641 && iParam0 < 7681)
{
iVar0 = ((iParam0 - 7641) - unk_0x255504F58AF9B890((iParam0 - 7641)) * 8) * 8;
}
else if (iParam0 >= 16010 && iParam0 < 18098)
{
iVar0 = ((iParam0 - 16010) - unk_0x255504F58AF9B890((iParam0 - 16010)) * 8) * 8;
}
else if (iParam0 >= 18162 && iParam0 < 19018)
{
iVar0 = ((iParam0 - 18162) - unk_0x255504F58AF9B890((iParam0 - 18162)) * 8) * 8;
}
else if (iParam0 >= 19018 && iParam0 < 22066)
{
iVar0 = ((iParam0 - 19018) - unk_0x255504F58AF9B890((iParam0 - 19018)) * 8) * 8;
}
else if (iParam0 >= 22194 && iParam0 < 24962)
{
iVar0 = ((iParam0 - 22194) - unk_0x255504F58AF9B890((iParam0 - 22194)) * 8) * 8;
}
return iVar0;
}
int func_426(int iParam0, int iParam1)
{
int iVar0;
if (iParam1 == -1)
{
iParam1 = func_18();
}
iVar0 = 0;
if (iParam0 >= 384 && iParam0 < 457)
{
iVar0 = unk_0xB3BA69AF3BAB6907((iParam0 - 384), 0, 1, iParam1);
}
else if (iParam0 >= 457 && iParam0 < 513)
{
iVar0 = unk_0xB3BA69AF3BAB6907((iParam0 - 457), 1, 1, iParam1);
}
else if (iParam0 >= 1281 && iParam0 < 1305)
{
iVar0 = unk_0xB3BA69AF3BAB6907((iParam0 - 1281), 0, 0, 0);
}
else if (iParam0 >= 1305 && iParam0 < 1361)
{
iVar0 = unk_0xB3BA69AF3BAB6907((iParam0 - 1305), 1, 0, 0);
}
else if (iParam0 >= 1361 && iParam0 < 1393)
{
iVar0 = unk_0x931785B1D4E0FF39((iParam0 - 1361), 0, 0, 0);
}
else if (iParam0 >= 1393 && iParam0 < 2919)
{
iVar0 = unk_0x931785B1D4E0FF39((iParam0 - 1393), 0, 1, iParam1);
}
else if (iParam0 >= 4143 && iParam0 < 4207)
{
iVar0 = unk_0x13224BDDFB82DC6F((iParam0 - 4143), 0, 0, 0, "_NGPSTAT_INT");
}
else if (iParam0 >= 3879 && iParam0 < 4143)
{
iVar0 = unk_0x13224BDDFB82DC6F((iParam0 - 3879), 0, 1, iParam1, "_NGPSTAT_INT");
}
else if (iParam0 >= 4399 && iParam0 < 6028)
{
iVar0 = unk_0x13224BDDFB82DC6F((iParam0 - 4399), 0, 1, iParam1, "_LRPSTAT_INT");
}
else if (iParam0 >= 6413 && iParam0 < 7262)
{
iVar0 = unk_0x13224BDDFB82DC6F((iParam0 - 6413), 0, 1, iParam1, "_APAPSTAT_INT");
}
else if (iParam0 >= 7262 && iParam0 < 7313)
{
iVar0 = unk_0x13224BDDFB82DC6F((iParam0 - 7262), 0, 1, iParam1, "_LR2PSTAT_INT");
}
else if (iParam0 >= 7681 && iParam0 < 9361)
{
iVar0 = unk_0x13224BDDFB82DC6F((iParam0 - 7681), 0, 1, iParam1, "_BIKEPSTAT_INT");
}
else if (iParam0 >= 9553 && iParam0 < 15265)
{
iVar0 = unk_0x13224BDDFB82DC6F((iParam0 - 9553), 0, 1, iParam1, "_IMPEXPPSTAT_INT");
}
else if (iParam0 >= 15265 && iParam0 < 15369)
{
iVar0 = unk_0x13224BDDFB82DC6F((iParam0 - 15265), 0, 1, iParam1, "_GUNRPSTAT_INT");
}
else if (iParam0 >= 7313 && iParam0 < 7321)
{
iVar0 = unk_0x13224BDDFB82DC6F((iParam0 - 7313), 0, 0, 0, "_NGDLCPSTAT_INT");
}
else if (iParam0 >= 7641 && iParam0 < 7681)
{
iVar0 = unk_0x13224BDDFB82DC6F((iParam0 - 7641), 0, 1, iParam1, "_NGDLCPSTAT_INT");
}
else if (iParam0 >= 16010 && iParam0 < 18098)
{
iVar0 = unk_0x13224BDDFB82DC6F((iParam0 - 16010), 0, 1, iParam1, "_DLCSMUGCHARPSTAT_INT");
}
else if (iParam0 >= 18162 && iParam0 < 19018)
{
iVar0 = unk_0x13224BDDFB82DC6F((iParam0 - 18162), 0, 1, iParam1, "_GANGOPSPSTAT_INT");
}
else if (iParam0 >= 19018 && iParam0 < 22066)
{
iVar0 = unk_0x13224BDDFB82DC6F((iParam0 - 19018), 0, 1, iParam1, "_BUSINESSBATPSTAT_INT");
}
else if (iParam0 >= 22194 && iParam0 < 24962)
{
iVar0 = unk_0x13224BDDFB82DC6F((iParam0 - 22194), 0, 1, iParam1, "_ARENAWARSPSTAT_INT");
}
return iVar0;
}
int func_427(int iParam0)
{
switch (iParam0)
{
case 3:
return 90;
case 7:
return 93;
case 0:
return 87;
case 6:
return 92;
case 2:
return 89;
case 1:
return 88;
case 4:
return 91;
case 8:
return 158;
case 9:
return 159;
case 5:
return 160;
case 10:
return 163;
case 11:
return 161;
case 12:
return 162;
default:
}
return -1;
}
int func_428(int iParam0)
{
switch (iParam0)
{
case 3:
return 450;
case 7:
return 453;
case 0:
return 447;
case 6:
return 452;
case 2:
return 449;
case 1:
return 448;
case 4:
return 451;
case 8:
return 3940;
case 9:
return 3941;
case 5:
return 3942;
case 10:
return 3943;
case 11:
return 3944;
case 12:
return 3945;
default:
}
return -1;
}
int func_429(int iParam0)
{
switch (iParam0)
{
case 0:
return 7;
case 1:
return 3;
case 2:
return 9;
case 3:
return 6;
case 4:
return 0;
case 5:
return 4;
case 6:
return 5;
case 7:
return 2;
case 8:
return 1;
case 9:
return 8;
case 10:
return 10;
case 11:
return 11;
case 12:
return 12;
default:
}
return -1;
}
float func_430(int iParam0, int iParam1)
{
var uVar0;
var uVar1;
uVar0 = Global_2565382[iParam0 /*3*/][func_17(iParam1)];
if (unk_0x35B7F624920A440D(uVar0, &uVar1))
{
return uVar1;
}
return 0f;
}
int func_431(int iParam0)
{
switch (iParam0)
{
case 0:
return 137;
case 1:
return 138;
case 2:
return 139;
case 3:
return 140;
case 4:
return 141;
case 5:
return 142;
case 6:
return 143;
case 7:
return 144;
case 8:
return 145;
case 9:
return 146;
case 10:
return 147;
case 11:
return 148;
case 12:
return 149;
case 13:
return 150;
case 14:
return 151;
case 15:
return 152;
case 16:
return 153;
case 17:
return 154;
case 18:
return 155;
case 19:
return 156;
default:
}
return -1;
}
float func_432(int iParam0, int iParam1)
{
int iVar0;
var uVar1;
iVar0 = Global_2565382[iParam0 /*3*/][func_17(iParam1)];
if (unk_0xB13032FADD612FC1(iVar0, &uVar1, -1))
{
return uVar1;
}
return 0f;
}
int func_433(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7, int iParam8, int iParam9, int iParam10, int iParam11)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
int iVar9;
int iVar10;
int iVar11;
int iVar12;
int iVar13;
int iVar14;
int iVar15;
int iVar16;
int iVar17;
int iVar18;
int iVar19;
int iVar20;
struct<7> Var21;
int iVar22;
if (iParam0 == joaat("mp_m_freemode_01"))
{
iVar1 = -1;
iVar2 = -1;
if (Global_4265698 == iParam1)
{
iVar2 = Global_4265697;
iVar1 = Global_4265696;
}
else if (iParam1 >= 92)
{
iVar2 = func_128(iParam0, iParam1, 7, 3);
iVar1 = func_482(iVar2);
Global_4265698 = iParam1;
Global_4265697 = iVar2;
Global_4265696 = iVar1;
}
iVar3 = -1;
iVar4 = -1;
if (Global_4265701 == iParam3)
{
iVar4 = Global_4265700;
iVar3 = Global_4265699;
}
else if (iParam3 >= 237)
{
iVar4 = func_128(iParam0, iParam3, 11, 3);
iVar3 = func_482(iVar4);
Global_4265701 = iParam3;
Global_4265700 = iVar4;
Global_4265699 = iVar3;
}
iVar5 = -1;
iVar6 = -1;
if (Global_4265704 == iParam4)
{
iVar6 = Global_4265703;
iVar5 = Global_4265702;
}
else if (iParam4 >= 241)
{
iVar6 = func_128(iParam0, iParam4, 8, 3);
iVar5 = func_482(iVar6);
Global_4265704 = iParam4;
Global_4265703 = iVar6;
Global_4265702 = iVar5;
}
iVar7 = -1;
iVar8 = -1;
if (Global_4265707 == iParam10)
{
iVar8 = Global_4265706;
iVar7 = Global_4265705;
}
else if (iParam10 >= 26)
{
iVar8 = func_128(iParam0, iParam10, 1, 3);
iVar7 = func_482(iVar8);
Global_4265707 = iParam10;
Global_4265706 = iVar8;
Global_4265705 = iVar7;
}
if (iParam3 != -99)
{
if ((unk_0x4BE6499482BEE1D8(iVar4, -1855618474, 0) || unk_0x4BE6499482BEE1D8(iVar4, 351511157, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1420825402, 0))
{
if (iParam1 != 0)
{
return 0;
}
}
}
if (iParam10 != -99)
{
if (unk_0x4BE6499482BEE1D8(iVar8, 1438931885, 0) && !unk_0x4BE6499482BEE1D8(iVar8, -973213642, 0))
{
if (iParam1 != 0)
{
return 0;
}
}
}
if (iParam3 != -99)
{
if (unk_0x4BE6499482BEE1D8(iVar4, -713698407, 0))
{
if (iParam1 != 0 && !(iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, -713698407, 0)))
{
return 0;
}
}
}
if (iParam3 != -99)
{
if (unk_0x4BE6499482BEE1D8(iVar2, -372885432, 0))
{
if (unk_0x4BE6499482BEE1D8(iVar4, -2103452271, 0))
{
return 1;
}
else
{
return 0;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar2, 531704825, 0))
{
if (unk_0x4BE6499482BEE1D8(iVar4, -2103452271, 0))
{
return 0;
}
}
}
else if (iParam4 != -99)
{
if (unk_0x4BE6499482BEE1D8(iVar2, -372885432, 0))
{
if (iParam4 == 240)
{
return 1;
}
else
{
return 0;
}
}
}
if (unk_0x4BE6499482BEE1D8(iVar2, -120244486, 0))
{
if (iParam9 != -99)
{
iVar9 = -1;
if (iParam9 >= 327)
{
iVar9 = func_128(iParam0, iParam9, 14, 3);
}
if (((iParam9 >= 27 && iParam9 <= 34) || (iParam9 >= 75 && iParam9 <= 82)) || (iParam9 >= 107 && iParam9 <= 114))
{
return 0;
}
switch (iVar9)
{
case 1411612772:
case 1399488226:
case 1103092621:
case 798340921:
case 495850282:
case -1972900644:
case 2016102499:
case 1719477511:
case 288210625:
case -882756821:
case -1242625979:
case -1358792084:
case -1854813796:
case -1257185072:
case -75666008:
case -451657514:
case -1339992339:
case -1987638855:
case 1148780446:
case 1379309694:
case 491826867:
case 1855607109:
case -1962767847:
case -1654116636:
case -1485356286:
case -1178212449:
case -766633809:
case 665568109:
case -288304716:
case 1772824957:
case 1533381874:
case -2012223930:
case 2008237453:
case -1304118613:
case -1543430620:
case -854101936:
case -1061103709:
case -616035151:
case 1307111925:
case 1759289928:
case -1036580403:
case -203035350:
case 917598912:
case 682284723:
case 481083063:
case 114660105:
case 1897981854:
case 1601455173:
case 1932815241:
case 1626031863:
case 926585800:
return 0;
break;
}
}
if (iParam10 != -99)
{
if (unk_0x4BE6499482BEE1D8(iVar8, 1438931885, 0))
{
return 0;
}
}
}
if (iParam3 != -99)
{
if (iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, -1473812293, 0))
{
if (unk_0x4BE6499482BEE1D8(iVar2, 1396865968, 0))
{
if (((((((((((((((((((((((((((((((((((((((((unk_0x4BE6499482BEE1D8(iVar4, -63750166, 0) || unk_0x4BE6499482BEE1D8(iVar4, -870074461, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -868698159, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 1769225721, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1834446747, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1119232689, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -2102859770, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 1784133476, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 2099109084, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1488441032, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1719167561, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1274099003, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1410897066, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 320460654, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -826135203, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 1431529976, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 1723403459, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 2044466679, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -2020757158, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1064262817, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1419806467, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1053842259, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1358888880, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -441291342, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -785939537, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1507532917, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1446333198, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 492620493, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -416620954, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -102825006, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 137011325, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -641612092, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1506370874, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1786447517, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1010805287, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1325813684, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -549843760, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 1690933245, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 1360588936, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 2136821028, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 1830529185, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 1927516484, 0))
{
return 0;
}
else if (func_435(iParam0, iParam3))
{
}
else
{
return 0;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar4, -63750166, 0))
{
return 0;
}
else if (func_435(iParam0, iParam3))
{
return 0;
}
else if (unk_0x4BE6499482BEE1D8(iVar2, -120244486, 0))
{
if (((((((((((((iParam3 >= 188 && iParam3 <= 203) || (iParam3 >= 220 && iParam3 <= 235)) || iVar3 == 12) || iVar3 == 14) || unk_0x4BE6499482BEE1D8(iVar4, -1127835965, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1506370874, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1786447517, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1010805287, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1325813684, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 1690933245, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 1360588936, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 2136821028, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 1927516484, 0))
{
return 0;
}
}
if (iParam10 != -99)
{
if (unk_0x4BE6499482BEE1D8(iVar8, 1438931885, 0))
{
return 0;
}
}
}
if (iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, -353070590, 0))
{
if (((unk_0x4BE6499482BEE1D8(iVar4, -870074461, 0) || unk_0x4BE6499482BEE1D8(iVar4, -868698159, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 1769225721, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1834446747, 0))
{
}
else
{
return 0;
}
}
}
if ((iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, -1473812293, 0)) || (iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, -319568873, 0)))
{
if (iParam11 != -99)
{
iVar10 = -1;
if (iParam11 >= 256)
{
iVar10 = func_128(iParam0, iParam11, 4, 3);
}
if (unk_0x4BE6499482BEE1D8(iVar10, 1052059919, 0))
{
return 0;
}
}
}
if (iParam3 != -99)
{
if (iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, 654065530, 0))
{
if (unk_0x4BE6499482BEE1D8(iVar4, -7109286, 0) || unk_0x4BE6499482BEE1D8(iVar4, -641612092, 0))
{
return 1;
}
else
{
return 0;
}
}
}
if (iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, 596326873, 0))
{
if (iParam3 != -99)
{
if (unk_0x4BE6499482BEE1D8(iVar2, -319568873, 0))
{
if ((iParam3 >= 96 && iParam3 <= 107) || iVar3 == 6)
{
return 0;
}
}
if (iParam3 == 236)
{
if (unk_0x4BE6499482BEE1D8(iVar2, 525778571, 0))
{
return 0;
}
}
else if (((((((((((((((((((((((((((((((((((((((((((((((((((((((((iParam3 >= 172 && iParam3 <= 187) || (iParam3 >= 188 && iParam3 <= 203)) || (iParam3 >= 204 && iParam3 <= 219)) || (iParam3 >= 220 && iParam3 <= 235)) || iVar3 == 11) || iVar3 == 12) || iVar3 == 13) || iVar3 == 14) || unk_0x4BE6499482BEE1D8(iVar4, 974680318, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 1625463492, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -713698407, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 1843965488, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -779835469, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1086258388, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 1627756587, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 1021189127, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1939378450, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 441715397, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 264959411, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1127835965, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 153792394, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -672871169, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 572416369, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -196114988, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 1322269404, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 1769225721, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1655154167, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1607949555, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 2099109084, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1488441032, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1719167561, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 320460654, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -2017999390, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1410897066, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -826135203, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 1431529976, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 1723403459, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 2044466679, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1419806467, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1053842259, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1358888880, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -785939537, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -416620954, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -102825006, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 137011325, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -641612092, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1351486939, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -491588875, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1506370874, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1786447517, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1010805287, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1325813684, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -828478571, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 1690933245, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 2136821028, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 2136821028, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 1927516484, 0))
{
return 0;
}
else if (!unk_0x4BE6499482BEE1D8(iVar2, 525778571, 0))
{
return 0;
}
}
else if (iParam4 != -99)
{
if ((((((((((((((((iParam4 >= 48 && iParam4 <= 63) || (iParam4 >= 64 && iParam4 <= 79)) || (iParam4 >= 96 && iParam4 <= 111)) || (iParam4 >= 112 && iParam4 <= 127)) || (iParam4 >= 192 && iParam4 <= 207)) || (iParam4 >= 208 && iParam4 <= 223)) || iVar5 == 3) || iVar5 == 4) || iVar5 == 6) || iVar5 == 7) || iVar5 == 12) || iVar5 == 13) || unk_0x4BE6499482BEE1D8(iVar6, 651155766, 0)) || unk_0x4BE6499482BEE1D8(iVar6, 974680318, 0)) || unk_0x4BE6499482BEE1D8(iVar6, -1786447517, 0)) || unk_0x4BE6499482BEE1D8(iVar6, -1010805287, 0))
{
return 0;
}
}
}
if (iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, -319568873, 0))
{
if (iParam8 != -99)
{
return 0;
}
}
if (iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, -713698407, 0))
{
if (iParam9 >= 327 && unk_0x4BE6499482BEE1D8(func_128(iParam0, iParam9, 14, 3), -713698407, 1))
{
}
else if (iParam2 == 14 || (iParam2 == 1 && iParam10 != 0))
{
return 0;
}
}
else if ((iParam9 >= 327 && unk_0x4BE6499482BEE1D8(func_128(iParam0, iParam9, 14, 3), -713698407, 1)) && iParam1 != 0)
{
return 0;
}
if (iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, -1119006951, 0))
{
if (iParam3 != -99)
{
if (((((((((((((((((((((((((((((((((((((((((((iParam3 >= 140 && iParam3 <= 155) || (iParam3 >= 188 && iParam3 <= 203)) || (iParam3 >= 204 && iParam3 <= 219)) || (iParam3 >= 220 && iParam3 <= 235)) || iVar3 == 9) || iVar3 == 12) || iVar3 == 13) || iVar3 == 14) || unk_0x4BE6499482BEE1D8(iVar4, 248194463, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 572350888, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1817355735, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -713698407, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 1843965488, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 140732128, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 1863955539, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 1627756587, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 441715397, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 153792394, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 572416369, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 2099109084, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1488441032, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 1538937264, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 2044466679, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1064262817, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1053842259, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1358888880, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -441291342, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -785939537, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -641612092, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1506370874, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1786447517, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1010805287, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1325813684, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -828478571, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 1690933245, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 1360588936, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 2136821028, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 602650322, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -99064836, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -148928294, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 1927516484, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -435539886, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1375878737, 0))
{
return 0;
}
}
else if (iParam4 != -99)
{
if ((((((((((((((((((((((((iParam4 >= 48 && iParam4 <= 63) || (iParam4 >= 64 && iParam4 <= 79)) || (iParam4 >= 96 && iParam4 <= 111)) || (iParam4 >= 112 && iParam4 <= 127)) || (iParam4 >= 144 && iParam4 <= 159)) || (iParam4 >= 160 && iParam4 <= 175)) || (iParam4 >= 176 && iParam4 <= 191)) || (iParam4 >= 192 && iParam4 <= 207)) || (iParam4 >= 208 && iParam4 <= 223)) || iVar5 == 3) || iVar5 == 4) || iVar5 == 6) || iVar5 == 7) || iVar5 == 9) || iVar5 == 10) || iVar5 == 11) || iVar5 == 12) || iVar5 == 13) || unk_0x4BE6499482BEE1D8(iVar6, -1778265882, 0)) || unk_0x4BE6499482BEE1D8(iVar6, 1965569012, 0)) || unk_0x4BE6499482BEE1D8(iVar6, 651155766, 0)) || unk_0x4BE6499482BEE1D8(iVar6, -1914383230, 0)) || unk_0x4BE6499482BEE1D8(iVar6, 1553766533, 0)) || unk_0x4BE6499482BEE1D8(iVar6, 505220913, 0))
{
return 0;
}
}
}
if ((iParam1 >= 1 && iParam1 <= 3) || iVar1 == 1)
{
if (iParam5 != -99)
{
if (iParam5 != 15)
{
return 0;
}
}
if (iParam3 != -99)
{
if (iParam3 != 236)
{
return 0;
}
}
if (iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, 2066241403, 0))
{
return 0;
}
}
else if ((iParam1 >= 4 && iParam1 <= 6) || iVar1 == 2)
{
if (iParam3 != -99)
{
if ((((((((((iParam3 >= 0 && iParam3 <= 15) || (iParam3 >= 16 && iParam3 <= 31)) || (iParam3 >= 32 && iParam3 <= 47)) || (iParam3 >= 80 && iParam3 <= 95)) || (iParam3 >= 124 && iParam3 <= 139)) || iVar3 == 0) || iVar3 == 1) || iVar3 == 2) || iVar3 == 5) || iVar3 == 8)
{
}
else
{
return 0;
}
}
else if (iParam4 != -99)
{
if ((((((((((((iParam4 >= 0 && iParam4 <= 15) || (iParam4 >= 16 && iParam4 <= 31)) || (iParam4 >= 32 && iParam4 <= 47)) || (iParam4 >= 80 && iParam4 <= 95)) || (iParam4 >= 128 && iParam4 <= 143)) || iParam4 == 240) || iVar5 == 0) || iVar5 == 1) || iVar5 == 2) || iVar5 == 5) || iVar5 == 8) || iVar5 == 15)
{
}
else
{
return 0;
}
}
else if (iParam8 != -99)
{
if (!(iParam8 >= 1 && iParam8 <= 41))
{
}
else
{
return 0;
}
}
}
else if ((iParam1 >= 10 && iParam1 <= 25) || iVar1 == 4)
{
if (iParam3 != -99)
{
if ((((((((((((((((((iParam3 >= 0 && iParam3 <= 15) || (iParam3 >= 16 && iParam3 <= 31)) || (iParam3 >= 32 && iParam3 <= 47)) || (iParam3 >= 80 && iParam3 <= 95)) || (iParam3 >= 124 && iParam3 <= 139)) || (iParam3 >= 140 && iParam3 <= 155)) || (iParam3 >= 172 && iParam3 <= 187)) || (iParam3 >= 204 && iParam3 <= 219)) || iParam3 == 236) || iVar3 == 0) || iVar3 == 1) || iVar3 == 2) || iVar3 == 5) || iVar3 == 8) || iVar3 == 9) || iVar3 == 11) || iVar3 == 13) || iVar3 == 15)
{
}
else
{
return 0;
}
}
}
else if ((iParam1 >= 32 && iParam1 <= 37) || iVar1 == 6)
{
if (iParam3 != -99)
{
if ((((iParam3 >= 96 && iParam3 <= 107) || (iParam3 >= 156 && iParam3 <= 171)) || iVar3 == 6) || iVar3 == 10)
{
}
else
{
return 0;
}
}
}
else if (((((iParam1 >= 41 && iParam1 <= 56) || (iParam1 >= 73 && iParam1 <= 88)) || iVar1 == 10) || iVar1 == 12) || (iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, -920534092, 0)))
{
if (iParam3 != -99)
{
if (((iParam3 >= 204 && iParam3 <= 219) || func_486(iParam0, iParam3, -1)) || iVar3 == 13)
{
if (((unk_0x4BE6499482BEE1D8(iVar4, -1446333198, 0) || unk_0x4BE6499482BEE1D8(iVar4, 492620493, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1351486939, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -7109286, 0))
{
return 0;
}
}
else
{
return 0;
}
}
else if (iParam4 != -99)
{
if ((((((iParam4 >= 160 && iParam4 <= 175) || (iParam4 >= 208 && iParam4 <= 223)) || iVar5 == 10) || iVar5 == 13) || (iVar6 != -1 && unk_0x4BE6499482BEE1D8(iVar6, -1778265882, 0))) || (iVar6 != -1 && unk_0x4BE6499482BEE1D8(iVar6, 505220913, 0)))
{
}
else
{
iVar0 = func_139(iParam6, 11);
if ((iVar0 >= 204 && iVar0 <= 219) || (iVar0 >= 237 && func_482(func_128(iParam0, iVar0, 11, 3)) == 13))
{
return 1;
}
if (iParam7 == 1)
{
if ((iParam4 >= 176 && iParam4 <= 191) || iVar5 == 11)
{
return 1;
}
}
return 0;
}
}
}
else if ((iParam1 >= 57 && iParam1 <= 72) || iVar1 == 11)
{
if (iParam3 != -99)
{
if (((((iParam3 >= 204 && iParam3 <= 219) || (iParam3 >= 172 && iParam3 <= 187)) || func_486(iParam0, iParam3, -1)) || iVar3 == 13) || iVar3 == 11)
{
if ((unk_0x4BE6499482BEE1D8(iVar4, -1446333198, 0) || unk_0x4BE6499482BEE1D8(iVar4, 492620493, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -7109286, 0))
{
return 0;
}
}
else
{
return 0;
}
}
else if (iParam4 != -99)
{
if ((((((((((((((((((iParam4 >= 64 && iParam4 <= 79) || (iParam4 >= 96 && iParam4 <= 111)) || (iParam4 >= 160 && iParam4 <= 175)) || (iParam4 >= 208 && iParam4 <= 223)) || iVar5 == 4) || iVar5 == 6) || iVar5 == 10) || iVar5 == 13) || (iVar6 != -1 && unk_0x4BE6499482BEE1D8(iVar6, -1778265882, 0))) || (iVar6 != -1 && unk_0x4BE6499482BEE1D8(iVar6, 1965569012, 0))) || (iVar6 != -1 && unk_0x4BE6499482BEE1D8(iVar6, 651155766, 0))) || (iVar6 != -1 && unk_0x4BE6499482BEE1D8(iVar6, 505220913, 0))) || unk_0x4BE6499482BEE1D8(iVar6, -893126917, 0)) || iVar6 == 2018316953) || iVar6 == 1771468076) || iVar6 == 1529567318) || iVar6 == 1299823859) || iVar6 == 1130047658)
{
}
else
{
iVar0 = func_139(iParam6, 11);
if ((iVar0 >= 204 && iVar0 <= 219) || (iVar0 >= 237 && func_482(func_128(iParam0, iVar0, 11, 3)) == 13))
{
return 1;
}
if (iParam7 == 1)
{
if ((((((iParam4 >= 48 && iParam4 <= 63) || (iParam4 >= 112 && iParam4 <= 127)) || (iParam4 >= 176 && iParam4 <= 191)) || iVar5 == 3) || iVar5 == 7) || iVar5 == 11)
{
if (!unk_0x4BE6499482BEE1D8(iVar6, -7109286, 0))
{
return 1;
}
}
}
return 0;
}
}
}
else if (iParam1 >= 92 && unk_0x4BE6499482BEE1D8(iVar2, -1950939707, 0))
{
if (iParam3 != -99)
{
if ((((((((((((((((((((((iParam3 >= 172 && iParam3 <= 187) || iVar3 == 11) || iVar4 == -27166014) || iVar4 == -273228435) || iVar4 == -2118057713) || iVar4 == -1809078812) || iVar4 == -1522415600) || iVar4 == -1212584705) || iVar4 == -886664231) || iVar4 == -646500230) || iVar4 == -290891042) || iVar4 == 15400801) || iVar4 == -485413449) || iVar4 == -254359230) || unk_0x4BE6499482BEE1D8(iVar4, 1769225721, 0)) || iVar4 == 1343601766) || iVar4 == 567992305) || iVar4 == -192707261) || iVar4 == 1156347903) || iVar4 == 1853344529) || iVar4 == 1597648022) || iVar4 == -1995669446)
{
if (!unk_0x4BE6499482BEE1D8(iVar4, -7109286, 0))
{
}
else
{
return 0;
}
}
else
{
return 0;
}
}
else if (iParam4 != -99)
{
if (((((((((((iParam4 >= 64 && iParam4 <= 79) || (iParam4 >= 96 && iParam4 <= 111)) || iVar5 == 4) || iVar5 == 6) || (iVar6 != -1 && unk_0x4BE6499482BEE1D8(iVar6, 1965569012, 0))) || unk_0x4BE6499482BEE1D8(iVar6, -893126917, 0)) || iVar6 == 2018316953) || iVar6 == 1771468076) || iVar6 == 1529567318) || iVar6 == 1299823859) || iVar6 == 1130047658)
{
}
else
{
if (iParam7 == 1)
{
if ((((((iParam4 >= 48 && iParam4 <= 63) || (iParam4 >= 112 && iParam4 <= 127)) || (iParam4 >= 176 && iParam4 <= 191)) || iVar5 == 3) || iVar5 == 7) || iVar5 == 11)
{
if (!unk_0x4BE6499482BEE1D8(iVar6, -7109286, 0))
{
return 1;
}
}
}
return 0;
}
}
}
else if (iParam1 >= 92 && unk_0x4BE6499482BEE1D8(iVar2, -1371423804, 0))
{
if (iParam3 != -99)
{
if (iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, 1625463492, 0))
{
}
else
{
return 0;
}
}
else if (iParam4 != -99)
{
if (((iVar6 != -1 && unk_0x4BE6499482BEE1D8(iVar6, 651155766, 0)) && unk_0x4BE6499482BEE1D8(iVar2, -277681306, 0)) || ((iVar6 != -1 && unk_0x4BE6499482BEE1D8(iVar6, 505220913, 0)) && !unk_0x4BE6499482BEE1D8(iVar2, -277681306, 0)))
{
}
else
{
return 0;
}
}
}
else if (iParam1 >= 92 && unk_0x4BE6499482BEE1D8(iVar2, -108328099, 0))
{
if (iParam4 != -99)
{
if (((((((((((((((((((((((((((((((((((((((((iParam4 >= 48 && iParam4 <= 63) || (iParam4 >= 112 && iParam4 <= 127)) || (iParam4 >= 176 && iParam4 <= 191)) || iVar6 == 2018316953) || iVar6 == 1771468076) || iVar6 == 1529567318) || iVar6 == 1299823859) || iVar6 == 1130047658) || iVar6 == 936913256) || iVar6 == -1891018679) || iVar6 == -1583940380) || iVar6 == -693410036) || iVar6 == -2129413154) || iVar6 == -1280171750) || iVar6 == -971192849) || iVar6 == 389965873) || iVar6 == -1451291468) || iVar6 == -50613332) || iVar6 == 318070129) || iVar6 == -1851794728) || iVar6 == 673515492) || iVar6 == 889168281) || iVar6 == 1270009599) || iVar6 == 1866208765) || iVar6 == 1546649325) || iVar6 == 1180816209) || iVar6 == -1305325922) || iVar6 == 242616108) || iVar6 == 1085565864) || iVar6 == -1968210019) || iVar6 == 2028002304) || iVar6 == 830393657) || iVar6 == -473747009) || iVar6 == 240453350) || iVar6 == 1083927410) || iVar6 == -374729298) || iVar6 == 399897093) || unk_0x4BE6499482BEE1D8(iVar6, 684992453, 0)) || unk_0x4BE6499482BEE1D8(iVar6, 1458930564, 0)) || unk_0x4BE6499482BEE1D8(iVar6, 2048281121, 0)) || unk_0x4BE6499482BEE1D8(iVar6, 19149565, 0))
{
if (!unk_0x4BE6499482BEE1D8(iVar6, -7109286, 0))
{
}
else
{
return 0;
}
}
else
{
if (iParam7 == 1)
{
if ((((((iParam4 >= 64 && iParam4 <= 79) || (iParam4 >= 96 && iParam4 <= 111)) || (iParam4 >= 160 && iParam4 <= 175)) || iVar5 == 4) || iVar5 == 6) || iVar5 == 10)
{
if (!unk_0x4BE6499482BEE1D8(iVar6, -7109286, 0))
{
return 1;
}
}
}
return 0;
}
}
}
else if (iParam1 >= 92 && unk_0x4BE6499482BEE1D8(iVar2, -378906828, 0))
{
if (iParam3 != -99)
{
if (((((iParam3 >= 64 && iParam3 <= 79) || (iParam3 >= 156 && iParam3 <= 171)) || iVar3 == 4) || iVar3 == 10) || unk_0x4BE6499482BEE1D8(iVar4, 470686834, 0))
{
}
else
{
return 0;
}
}
else if (iParam4 != -99)
{
if (((((((((((((((((((((((((((iParam4 >= 176 && iParam4 <= 191) || iVar6 == 2018316953) || iVar6 == 1771468076) || iVar6 == 1529567318) || iVar6 == 1299823859) || iVar6 == 1130047658) || iVar6 == 936913256) || iVar6 == -1891018679) || iVar6 == -1583940380) || iVar6 == -693410036) || iVar6 == -2129413154) || iVar6 == -1280171750) || iVar6 == -971192849) || iVar6 == 389965873) || iVar6 == -1451291468) || iVar6 == -50613332) || iVar6 == 318070129) || iVar6 == -1851794728) || iVar6 == 673515492) || iVar6 == 889168281) || iVar6 == 1270009599) || iVar6 == 1866208765) || iVar6 == 1546649325) || iVar6 == 1180816209) || iVar6 == -374729298) || iVar6 == 399897093) || unk_0x4BE6499482BEE1D8(iVar6, 684992453, 0))
{
if (!unk_0x4BE6499482BEE1D8(iVar6, -7109286, 0))
{
}
else
{
return 0;
}
}
else
{
if (iParam7 == 1)
{
if ((iParam4 >= 160 && iParam4 <= 175) || iVar5 == 10)
{
if (!unk_0x4BE6499482BEE1D8(iVar6, -7109286, 0))
{
return 1;
}
}
}
return 0;
}
}
}
else if (iParam1 >= 92 && unk_0x4BE6499482BEE1D8(iVar2, -695703461, 0))
{
if (iParam3 != -99)
{
if (((((iParam3 >= 64 && iParam3 <= 79) || (iParam3 >= 188 && iParam3 <= 203)) || iVar3 == 12) || iVar3 == 4) || unk_0x4BE6499482BEE1D8(iVar4, 470686834, 0))
{
}
else
{
return 0;
}
}
else if (iParam4 != -99)
{
if (((iParam4 >= 192 && iParam4 <= 207) || func_434(iVar6)) || (iVar6 != -1 && unk_0x4BE6499482BEE1D8(iVar6, 310957510, 0)))
{
}
else
{
return 0;
}
}
}
else if (iParam1 >= 92 && unk_0x4BE6499482BEE1D8(iVar2, -1473812293, 0))
{
if (iParam3 != -99)
{
if ((iParam3 >= 172 && iParam3 <= 187) || iVar3 == 11)
{
return 0;
}
else if ((iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, 1627756587, 0)) || (iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, 1322269404, 0)))
{
return 0;
}
else if (iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, -713698407, 0))
{
return 0;
}
}
if (iParam8 != -99)
{
if (!(iParam8 >= 1 && iParam8 <= 41))
{
}
else
{
return 0;
}
}
if (iParam10 != -99)
{
if (unk_0x4BE6499482BEE1D8(iVar8, 1438931885, 0))
{
return 0;
}
}
}
}
else if (iParam0 == joaat("mp_f_freemode_01"))
{
iVar11 = -1;
iVar12 = -1;
if (Global_4265698 == iParam1)
{
iVar12 = Global_4265697;
iVar11 = Global_4265696;
}
else if (iParam1 >= 55)
{
iVar12 = func_128(iParam0, iParam1, 7, 4);
iVar11 = func_482(iVar12);
Global_4265698 = iParam1;
Global_4265697 = iVar12;
Global_4265696 = iVar11;
}
iVar13 = -1;
iVar14 = -1;
if (Global_4265701 == iParam3)
{
iVar14 = Global_4265700;
iVar13 = Global_4265699;
}
else if (iParam3 >= 256)
{
iVar14 = func_128(iParam0, iParam3, 11, 4);
iVar13 = func_482(iVar14);
Global_4265701 = iParam3;
Global_4265700 = iVar14;
Global_4265699 = iVar13;
}
iVar15 = -1;
iVar16 = -1;
if (Global_4265704 == iParam4)
{
iVar16 = Global_4265703;
iVar15 = Global_4265702;
}
else if (iParam4 >= 136)
{
iVar16 = func_128(iParam0, iParam4, 8, 4);
iVar15 = func_482(iVar16);
Global_4265704 = iParam4;
Global_4265703 = iVar16;
Global_4265702 = iVar15;
}
iVar17 = -1;
iVar18 = -1;
if (Global_4265707 == iParam10)
{
iVar18 = Global_4265706;
iVar17 = Global_4265705;
}
else if (iParam10 >= 26)
{
iVar18 = func_128(iParam0, iParam10, 1, 4);
iVar17 = func_482(iVar18);
Global_4265707 = iParam10;
Global_4265706 = iVar18;
Global_4265705 = iVar17;
}
iVar19 = -1;
if (iParam9 >= 327)
{
iVar19 = func_128(iParam0, iParam9, 14, 4);
}
if (iParam3 != -99)
{
if (((unk_0x4BE6499482BEE1D8(iVar14, -1855618474, 0) || unk_0x4BE6499482BEE1D8(iVar14, 351511157, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -299089347, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1420825402, 0))
{
if (iParam1 != 0)
{
return 0;
}
}
}
if (iParam10 != -99)
{
if (unk_0x4BE6499482BEE1D8(iVar18, 1438931885, 0) && !unk_0x4BE6499482BEE1D8(iVar18, -973213642, 0))
{
if (((((((iParam1 == 0 || (iParam1 >= 13 && iParam1 <= 18)) || iVar11 == 3) || (iVar12 != -1 && unk_0x4BE6499482BEE1D8(iVar12, -1320139576, 0))) || (iParam1 >= 19 && iParam1 <= 24)) || iVar11 == 4) || (iParam1 >= 25 && iParam1 <= 30)) || iVar11 == 5)
{
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar18, 1438931885, 0))
{
if ((((iParam1 >= 1 && iParam1 <= 12) || iVar11 == 1) || iVar11 == 2) || (iVar12 != -1 && unk_0x4BE6499482BEE1D8(iVar12, 1406402954, 0)))
{
return 0;
}
}
}
if (iParam3 != -99)
{
if (unk_0x4BE6499482BEE1D8(iVar14, -713698407, 0))
{
if (iParam1 != 0 && !(iVar12 != -1 && unk_0x4BE6499482BEE1D8(iVar12, -713698407, 0)))
{
return 0;
}
}
}
if (iParam3 != -99)
{
if (unk_0x4BE6499482BEE1D8(iVar12, -372885432, 0))
{
if (unk_0x4BE6499482BEE1D8(iVar14, -2103452271, 0))
{
return 1;
}
else
{
return 0;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar12, 531704825, 0))
{
if (unk_0x4BE6499482BEE1D8(iVar14, -2103452271, 0))
{
return 0;
}
}
}
else if (iParam4 != -99)
{
if (unk_0x4BE6499482BEE1D8(iVar12, -372885432, 0))
{
if (iParam4 == 66)
{
return 1;
}
else
{
return 0;
}
}
}
if ((iVar12 == 281786684 || iVar12 == 653911448) || iVar12 == -1519558015)
{
if (iParam9 != -99)
{
switch (iVar19)
{
case 1446628467:
case -1938048778:
case 2041418586:
case -1342898200:
case 2026483804:
case -1977527541:
case -1670449242:
case -1385031204:
case -1088111295:
case -1530918836:
case -1221415631:
case -629869643:
case 530255864:
case 38181873:
case 319110510:
case 482562282:
case -1178170642:
case -880726429:
case -699776011:
case -401873032:
case -700496933:
case -404429018:
case -2134238990:
case -2136376254:
case 1861212367:
case -789144321:
case -223092615:
case 763352592:
case -549897852:
case -1976889495:
case -1410575637:
case -428980242:
case -1731482454:
case -1390357480:
case -1765816422:
case -1533320367:
case 939297301:
case 1186965403:
case 1575507436:
case 1783131820:
case 2059866009:
case -1997689882:
case -1617209023:
case -1391954917:
case -1832969872:
return 0;
break;
}
}
if (iParam10 != -99)
{
if (unk_0x4BE6499482BEE1D8(iVar18, 1438931885, 0))
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar16, 240476421, 0))
{
return 0;
}
}
if (iParam3 != -99)
{
if (iVar12 != -1 && unk_0x4BE6499482BEE1D8(iVar12, -1473812293, 0))
{
if (unk_0x4BE6499482BEE1D8(iVar12, 1396865968, 0))
{
if ((((((((((((((((unk_0x4BE6499482BEE1D8(iVar14, -63750166, 0) || unk_0x4BE6499482BEE1D8(iVar14, -1410897066, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 320460654, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -826135203, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -747583185, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -416620954, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -733792105, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -641612092, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1507532917, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 1360588936, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -549843760, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 1830529185, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1506370874, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1786447517, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1010805287, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 2136821028, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 1927516484, 0))
{
return 0;
}
else if (func_435(iParam0, iParam3))
{
}
else
{
return 0;
}
}
else if (func_435(iParam0, iParam3) || unk_0x4BE6499482BEE1D8(iVar14, -63750166, 0))
{
return 0;
}
if (iParam10 != -99)
{
if (unk_0x4BE6499482BEE1D8(iVar18, 1438931885, 0))
{
return 0;
}
}
}
if (iVar12 != -1 && unk_0x4BE6499482BEE1D8(iVar12, -353070590, 0))
{
if ((((unk_0x4BE6499482BEE1D8(iVar14, -870074461, 0) || unk_0x4BE6499482BEE1D8(iVar14, -1174924468, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -868698159, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 1769225721, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1834446747, 0))
{
}
else
{
return 0;
}
}
}
else if (iVar12 != -1 && unk_0x4BE6499482BEE1D8(iVar12, -1473812293, 0))
{
if (unk_0x4BE6499482BEE1D8(iVar16, -63750166, 0))
{
return 0;
}
}
else if (iVar12 != -1 && unk_0x4BE6499482BEE1D8(iVar12, 596326873, 0))
{
if (unk_0x4BE6499482BEE1D8(iVar16, 974680318, 0))
{
return 0;
}
}
if (iVar12 != -1 && unk_0x4BE6499482BEE1D8(iVar12, -713698407, 0))
{
if (iParam9 >= 327 && unk_0x4BE6499482BEE1D8(func_128(iParam0, iParam9, 14, 4), -713698407, 1))
{
}
else if (iParam2 == 14 || (iParam2 == 1 && iParam10 != 0))
{
return 0;
}
}
else if ((iParam9 >= 327 && unk_0x4BE6499482BEE1D8(func_128(iParam0, iParam9, 14, 4), -713698407, 1)) && iParam1 != 0)
{
return 0;
}
if ((((iVar12 != -1 && unk_0x4BE6499482BEE1D8(iVar12, -1473812293, 0)) || (iVar12 != -1 && unk_0x4BE6499482BEE1D8(iVar12, -319568873, 0))) || (iParam1 >= 43 && iParam1 <= 48)) || iVar11 == 8)
{
if (iParam11 != -99)
{
iVar20 = -1;
if (iParam11 >= 256)
{
iVar20 = func_128(iParam0, iParam11, 4, 4);
}
if (unk_0x4BE6499482BEE1D8(iVar20, 1052059919, 0))
{
return 0;
}
}
}
if (iVar12 != -1 && (unk_0x4BE6499482BEE1D8(iVar12, -920534092, 0) || unk_0x4BE6499482BEE1D8(iVar12, 1537081084, 0)))
{
if (iParam2 == 11)
{
if ((((((((((((unk_0x4BE6499482BEE1D8(iVar14, 684992453, 0) || unk_0x4BE6499482BEE1D8(iVar14, 916636514, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1939378450, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -820724897, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 153792394, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -872449705, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 1714969731, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 1055526375, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 947651647, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -549843760, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 1830529185, 0)) || (iParam3 >= 112 && iParam3 <= 127)) || iVar13 == 7)
{
}
else if ((unk_0x4BE6499482BEE1D8(iVar14, 700658917, 0) || unk_0x4BE6499482BEE1D8(iVar14, 745826556, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 144417099, 0))
{
if (unk_0x4BE6499482BEE1D8(iVar12, 1537081084, 0))
{
}
else
{
return 0;
}
}
else
{
return 0;
}
}
else if (iParam2 == 8)
{
if (unk_0x4BE6499482BEE1D8(iVar16, 1553766533, 0) || unk_0x4BE6499482BEE1D8(iVar16, -1914383230, 0))
{
if (unk_0x4BE6499482BEE1D8(iVar12, -920534092, 0))
{
if (unk_0x4BE6499482BEE1D8(iVar16, 441715397, 0) || unk_0x4BE6499482BEE1D8(iVar16, 264959411, 0))
{
if (unk_0x4BE6499482BEE1D8(iVar12, 1828206051, 0))
{
}
else
{
return 0;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar12, 1828206051, 0))
{
return 0;
}
}
}
else
{
return 0;
}
}
}
if (iParam9 != -99)
{
if ((iVar19 != -1 && unk_0x4BE6499482BEE1D8(iVar19, 1406402954, 1)) || (iVar19 != -1 && unk_0x4BE6499482BEE1D8(iVar19, 499051427, 1)))
{
if ((((iParam1 >= 1 && iParam1 <= 12) || iVar11 == 1) || iVar11 == 2) || (iVar12 != -1 && unk_0x4BE6499482BEE1D8(iVar12, 1406402954, 0)))
{
return 0;
}
}
}
if (iVar12 != -1 && unk_0x4BE6499482BEE1D8(iVar12, 596326873, 0))
{
if (iParam3 != -99)
{
if (((((((unk_0x4BE6499482BEE1D8(iVar14, -1358888880, 0) || unk_0x4BE6499482BEE1D8(iVar14, -102825006, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -733792105, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -641612092, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1507532917, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -828478571, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 1360588936, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 974680318, 0))
{
return 0;
}
else if (func_486(iParam0, iParam3, -1))
{
}
else if ((((((((((((((((((((iParam3 >= 32 && iParam3 <= 47) || (iParam3 >= 176 && iParam3 <= 191)) || iVar13 == 2) || iVar13 == 11) || unk_0x4BE6499482BEE1D8(iVar14, 2026620439, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -761463976, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1347486026, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -939525357, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1119232689, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -2102859770, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 1784133476, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1488441032, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 2044466679, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -2020757158, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -430330349, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1351486939, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 2030343924, 0)) || iVar14 == 998321559) || iVar14 == 619380843) || unk_0x4BE6499482BEE1D8(iVar14, -55550566, 0))
{
if (!unk_0x4BE6499482BEE1D8(iVar12, 525778571, 0))
{
return 0;
}
}
else if ((((((((((((((((((((((((((((((((((((((((((((((((iParam3 >= 48 && iParam3 <= 63) || (iParam3 >= 144 && iParam3 <= 159)) || (iParam3 >= 224 && iParam3 <= 239)) || iVar13 == 3) || iVar13 == 9) || iVar13 == 14) || unk_0x4BE6499482BEE1D8(iVar14, -530089825, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 1965569012, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1200513218, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -713698407, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 1843965488, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -55104292, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -779835469, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1086258388, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 140732128, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 2106216756, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 1627756587, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 441715397, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 264959411, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1127835965, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -672871169, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 572416369, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -196114988, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1607949555, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 1976716889, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 2099109084, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1488441032, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 320460654, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -2017999390, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1410897066, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -826135203, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1053842259, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1358888880, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -441291342, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -747583185, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 1407863332, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1986415230, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -785939537, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1103045158, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -102825006, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -641612092, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1507532917, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1506370874, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1786447517, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1010805287, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 2136821028, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 1360588936, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 1927516484, 0))
{
return 0;
}
else if (unk_0x4BE6499482BEE1D8(iVar12, 525778571, 0))
{
return 0;
}
}
else if (iParam4 != -99)
{
if ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((iParam4 >= 71 && iParam4 <= 86) || iVar15 == 11) || unk_0x4BE6499482BEE1D8(iVar16, 1455992833, 0)) || unk_0x4BE6499482BEE1D8(iVar16, 153792394, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -870074461, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -1174924468, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -868698159, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -1177480446, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -1347486026, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -1655154167, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -2105858993, 0)) || unk_0x4BE6499482BEE1D8(iVar16, 1893564692, 0)) || unk_0x4BE6499482BEE1D8(iVar16, 1710451520, 0)) || unk_0x4BE6499482BEE1D8(iVar16, 1416808511, 0)) || unk_0x4BE6499482BEE1D8(iVar16, 1641506460, 0)) || unk_0x4BE6499482BEE1D8(iVar16, 699233865, 0)) || iVar16 == -565297075) || iVar16 == 262349558) || iVar16 == -917804055) || iVar16 == -1156067454) || iVar16 == -2124751863) || iVar16 == 1812836719) || iVar16 == 1582116924) || iVar16 == 877452376) || iVar16 == 1117419763) || iVar16 == 732885188) || iVar16 == -1037820496) || iVar16 == -79097863) || unk_0x4BE6499482BEE1D8(iVar16, -1119232689, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -2102859770, 0)) || unk_0x4BE6499482BEE1D8(iVar16, 1784133476, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -1607949555, 0)) || unk_0x4BE6499482BEE1D8(iVar16, 1976716889, 0)) || unk_0x4BE6499482BEE1D8(iVar16, 2099109084, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -1488441032, 0)) || unk_0x4BE6499482BEE1D8(iVar16, 2044466679, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -2020757158, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -1064262817, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -1419806467, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -1053842259, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -1358888880, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -849839091, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -2088146832, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -352447393, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -642551350, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -819569488, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -2020068325, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -1786447517, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -1010805287, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -1325813684, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -549843760, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -269266203, 0)) || unk_0x4BE6499482BEE1D8(iVar16, 201427653, 0)) || unk_0x4BE6499482BEE1D8(iVar16, 967829025, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -685039259, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -1266557933, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -979468724, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -58412562, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -435539886, 0)) || unk_0x4BE6499482BEE1D8(iVar16, 974680318, 0))
{
if (!unk_0x4BE6499482BEE1D8(iVar12, 525778571, 0))
{
return 0;
}
}
else if (((((((unk_0x4BE6499482BEE1D8(iVar16, 1965569012, 0) || unk_0x4BE6499482BEE1D8(iVar16, 684992453, 0)) || unk_0x4BE6499482BEE1D8(iVar16, 916636514, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -1939378450, 0)) || unk_0x4BE6499482BEE1D8(iVar16, 441715397, 0)) || unk_0x4BE6499482BEE1D8(iVar16, 264959411, 0)) || unk_0x4BE6499482BEE1D8(iVar16, 1353777856, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -1207283343, 0))
{
return 0;
}
else if (func_483(iParam0, iParam4, 0) != -99)
{
if (unk_0x4BE6499482BEE1D8(iVar12, 525778571, 0))
{
return 0;
}
}
}
if (iParam8 != -99)
{
if (!(iParam8 >= 1 && iParam8 <= 31))
{
}
else
{
return 0;
}
}
}
if (iParam3 != -99)
{
if (iVar12 != -1 && unk_0x4BE6499482BEE1D8(iVar12, 654065530, 0))
{
if (unk_0x4BE6499482BEE1D8(iVar14, -1351486939, 0))
{
return 1;
}
else
{
return 0;
}
}
}
if (((iParam1 >= 13 && iParam1 <= 18) || iVar11 == 3) || (iVar12 != -1 && unk_0x4BE6499482BEE1D8(iVar12, -1320139576, 0)))
{
if (iParam3 != -99)
{
if (((((((((iParam3 >= 48 && iParam3 <= 63) || (iParam3 >= 112 && iParam3 <= 127)) || (iParam3 >= 160 && iParam3 <= 175)) || iVar13 == 3) || iVar13 == 7) || iVar13 == 10) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, 2026620439, 0))) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, -1882920022, 0))) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, 1147939952, 0)))
{
return 0;
}
}
else if (iParam4 != -99)
{
if (iParam4 >= 136 && unk_0x4BE6499482BEE1D8(func_128(iParam0, iParam4, 8, 4), 1147939952, 0))
{
return 0;
}
}
else if (iParam9 != -99)
{
if (iVar19 != -1 && unk_0x4BE6499482BEE1D8(iVar19, -1320139576, 1))
{
return 0;
}
}
}
else if ((iParam1 >= 19 && iParam1 <= 24) || iVar11 == 4)
{
if (iParam3 != -99)
{
if (((((((((iParam3 >= 48 && iParam3 <= 63) || (iParam3 >= 112 && iParam3 <= 127)) || (iParam3 >= 160 && iParam3 <= 175)) || iVar13 == 3) || iVar13 == 7) || iVar13 == 10) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, 2026620439, 0))) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, -1882920022, 0))) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, 1147939952, 0)))
{
return 0;
}
}
else if (iParam4 != -99)
{
if (iParam4 >= 136 && unk_0x4BE6499482BEE1D8(func_128(iParam0, iParam4, 8, 4), 1147939952, 0))
{
return 0;
}
}
else if (iParam9 != -99)
{
if (iVar19 != -1 && unk_0x4BE6499482BEE1D8(iVar19, -1320139576, 1))
{
unk_0x6D80E868FD724CD2(iVar19, &Var21);
if (Var21.f_6 == 7)
{
return 0;
}
}
}
}
else if ((iParam1 >= 25 && iParam1 <= 30) || iVar11 == 5)
{
if (iParam3 != -99)
{
if (((((((((iParam3 >= 48 && iParam3 <= 63) || (iParam3 >= 112 && iParam3 <= 127)) || (iParam3 >= 160 && iParam3 <= 175)) || iVar13 == 3) || iVar13 == 7) || iVar13 == 10) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, 2026620439, 0))) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, -1882920022, 0))) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, 1147939952, 0)))
{
return 0;
}
}
else if (iParam4 != -99)
{
if (iParam4 >= 136 && unk_0x4BE6499482BEE1D8(func_128(iParam0, iParam4, 8, 4), 1147939952, 0))
{
return 0;
}
}
else if (iParam9 != -99)
{
if (iVar19 != -1 && unk_0x4BE6499482BEE1D8(iVar19, -1320139576, 1))
{
return 0;
}
}
}
else if ((iParam1 >= 31 && iParam1 <= 36) || iVar11 == 6)
{
if (iParam3 != -99)
{
if ((((((((((((((((((((((((((((((((((((((((((((((iParam3 >= 48 && iParam3 <= 63) || (iParam3 >= 144 && iParam3 <= 159)) || (iParam3 >= 224 && iParam3 <= 239)) || iVar13 == 3) || iVar13 == 9) || iVar13 == 14) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, 1965569012, 0))) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, 2026620439, 0))) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, -1882920022, 0))) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, 396458410, 0))) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, -761463976, 0))) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, 103539798, 0))) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, -1347486026, 0))) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, -994703884, 0))) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, -1119232689, 0))) || unk_0x4BE6499482BEE1D8(iVar14, 320460654, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -2017999390, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1410897066, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -826135203, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 2044466679, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -2020757158, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1064262817, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1053842259, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1358888880, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -441291342, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -747583185, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1986415230, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -430330349, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -102825006, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -733792105, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -641612092, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1351486939, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1507532917, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 2030343924, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -828478571, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 1360588936, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1506370874, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1786447517, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1010805287, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 2136821028, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 602650322, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 905042630, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 1204125293, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1855618474, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 1927516484, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1375878737, 0))
{
return 0;
}
}
}
else if (((iParam1 >= 37 && iParam1 <= 42) || iVar11 == 7) || (iParam1 >= 55 && unk_0x4BE6499482BEE1D8(iVar12, 2083259958, 0)))
{
if (iParam3 != -99)
{
if (((((((((((((((((((((((((((((((((((((((((((((iParam3 >= 32 && iParam3 <= 47) || (iParam3 >= 48 && iParam3 <= 63)) || (iParam3 >= 144 && iParam3 <= 159)) || (iParam3 >= 224 && iParam3 <= 239)) || iVar13 == 2) || iVar13 == 3) || iVar13 == 9) || iVar13 == 14) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, 2026620439, 0))) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, -1882920022, 0))) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, 396458410, 0))) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, -761463976, 0))) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, 821147517, 0))) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, 103539798, 0))) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, -1347486026, 0))) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, -994703884, 0))) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, -1119232689, 0))) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, -1607949555, 0))) || unk_0x4BE6499482BEE1D8(iVar14, 320460654, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -2017999390, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1410897066, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -826135203, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 1965569012, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1064262817, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1053842259, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1358888880, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -441291342, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -747583185, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1986415230, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -430330349, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -102825006, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -733792105, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -641612092, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1351486939, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1507532917, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 2030343924, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -828478571, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 1360588936, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1506370874, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1786447517, 0)) || unk_0x4BE6499482BEE1D8(iVar14, -1010805287, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 2136821028, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 1831422288, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 1927516484, 0)) || unk_0x4BE6499482BEE1D8(iVar14, 974680318, 0))
{
return 0;
}
else if (((((((((((iParam3 >= 112 && iParam3 <= 127) || (iParam3 >= 160 && iParam3 <= 175)) || (iParam3 >= 192 && iParam3 <= 207)) || iVar13 == 7) || iVar13 == 10) || iVar13 == 12) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, 1147939952, 0))) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, -1200513218, 0))) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, 2026620439, 0))) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, -1882920022, 0))) || unk_0x4BE6499482BEE1D8(iVar14, -747583185, 0))
{
if (iParam1 >= 55 && unk_0x4BE6499482BEE1D8(iVar12, 2083259958, 0))
{
return 0;
}
}
}
else if (iParam4 != -99)
{
if (unk_0x4BE6499482BEE1D8(iVar16, 1965569012, 0))
{
if (unk_0x4BE6499482BEE1D8(iVar12, 2083259958, 0))
{
return 0;
}
}
else if (((unk_0x4BE6499482BEE1D8(iVar16, -1786447517, 0) || unk_0x4BE6499482BEE1D8(iVar16, -1010805287, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -1325813684, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -549843760, 0))
{
return 0;
}
else if ((unk_0x4BE6499482BEE1D8(iVar16, -1703203608, 0) || unk_0x4BE6499482BEE1D8(iVar16, -1415000253, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -168336417, 0))
{
return 0;
}
}
else if (iParam9 != -99)
{
if (iVar19 != -1 && unk_0x4BE6499482BEE1D8(iVar19, -1320139576, 1))
{
return 0;
}
}
}
else if ((iParam1 >= 43 && iParam1 <= 48) || iVar11 == 8)
{
if (iParam3 != -99)
{
if ((((((((((((((((((((((iParam3 >= 0 && iParam3 <= 15) || (iParam3 >= 32 && iParam3 <= 47)) || (iParam3 >= 64 && iParam3 <= 79)) || (iParam3 >= 80 && iParam3 <= 95)) || (iParam3 >= 144 && iParam3 <= 159)) || (iParam3 >= 176 && iParam3 <= 191)) || (iParam3 >= 192 && iParam3 <= 207)) || (iParam3 >= 208 && iParam3 <= 223)) || (iParam3 >= 240 && iParam3 <= 255)) || iVar13 == 0) || iVar13 == 2) || iVar13 == 4) || iVar13 == 5) || iVar13 == 9) || iVar13 == 11) || iVar13 == 12) || iVar13 == 13) || iVar13 == 15) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, -1200513218, 0))) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, -530089825, 0))) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, 103539798, 0))) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, -994703884, 0)))
{
}
else
{
return 0;
}
}
}
else if ((iParam1 >= 49 && iParam1 <= 54) || iVar11 == 9)
{
if (iParam3 != -99)
{
if ((((((((((((((((iParam3 >= 0 && iParam3 <= 15) || (iParam3 >= 64 && iParam3 <= 79)) || (iParam3 >= 80 && iParam3 <= 95)) || (iParam3 >= 176 && iParam3 <= 191)) || (iParam3 >= 192 && iParam3 <= 207)) || (iParam3 >= 208 && iParam3 <= 223)) || (iParam3 >= 240 && iParam3 <= 255)) || iVar13 == 0) || iVar13 == 4) || iVar13 == 5) || iVar13 == 11) || iVar13 == 12) || iVar13 == 13) || iVar13 == 15) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, -1200513218, 0))) || (iParam3 >= 256 && unk_0x4BE6499482BEE1D8(iVar14, -530089825, 0)))
{
}
else
{
return 0;
}
}
else if (iParam4 != -99)
{
if (unk_0x4BE6499482BEE1D8(iVar16, -7109286, 0))
{
return 0;
}
else if (((unk_0x4BE6499482BEE1D8(iVar16, -1786447517, 0) || unk_0x4BE6499482BEE1D8(iVar16, -1010805287, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -1325813684, 0)) || unk_0x4BE6499482BEE1D8(iVar16, -549843760, 0))
{
return 0;
}
}
if (iParam8 != -99)
{
if (!(iParam8 >= 1 && iParam8 <= 31))
{
}
else
{
return 0;
}
}
if (iParam10 != -99)
{
if (unk_0x4BE6499482BEE1D8(iVar18, 1438931885, 0))
{
return 0;
}
}
}
else if (iParam1 >= 55 && unk_0x4BE6499482BEE1D8(iVar12, 1716958480, 0))
{
if (iParam3 != -99)
{
if (iVar14 != -1 && unk_0x4BE6499482BEE1D8(iVar14, -747583185, 0))
{
return 1;
}
else
{
return 0;
}
}
if (iParam11 != -99)
{
iVar22 = -1;
if (iParam11 >= 256)
{
iVar22 = func_128(iParam0, iParam11, 4, 4);
}
if (unk_0x4BE6499482BEE1D8(iVar22, -33031567, 0))
{
return 1;
}
else
{
return 0;
}
}
}
}
return 1;
}
int func_434(int iParam0)
{
if (iParam0 != -1)
{
return 0;
}
switch (iParam0)
{
case -783649692:
case 691352495:
case 1313566316:
case 451909412:
case 1552550633:
case -206550874:
case 860928119:
case -445797343:
case 1107219923:
case -173716332:
case -2017140386:
case -538304226:
case -1235599732:
case -592242000:
case 1815489089:
case -831095241:
case 2062043045:
case -1092100326:
case -1065332020:
case -1465994616:
case -1516536717:
case 507503642:
case -1470397961:
case -1392082519:
case 264425668:
case -88859389:
case 560755735:
case 157858412:
case -593565059:
case -513152401:
case -286945526:
case 2004948615:
return 1;
break;
}
return 0;
}
int func_435(int iParam0, int iParam1)
{
int iVar0;
int iVar1;
int iVar2;
if (iParam0 == joaat("mp_m_freemode_01"))
{
iVar0 = func_128(iParam0, iParam1, 11, 3);
if (iVar0 != -1)
{
if (((((((((((((((((((((((((((((((unk_0x4BE6499482BEE1D8(iVar0, -1119232689, 0) || unk_0x4BE6499482BEE1D8(iVar0, -2102859770, 0)) || unk_0x4BE6499482BEE1D8(iVar0, 1784133476, 0)) || unk_0x4BE6499482BEE1D8(iVar0, 1976716889, 0)) || unk_0x4BE6499482BEE1D8(iVar0, 2099109084, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -1488441032, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -1719167561, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -1274099003, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -1410897066, 0)) || unk_0x4BE6499482BEE1D8(iVar0, 320460654, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -826135203, 0)) || unk_0x4BE6499482BEE1D8(iVar0, 1431529976, 0)) || unk_0x4BE6499482BEE1D8(iVar0, 1723403459, 0)) || unk_0x4BE6499482BEE1D8(iVar0, 2044466679, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -2020757158, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -1064262817, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -1419806467, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -1053842259, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -1358888880, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -441291342, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -785939537, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -1446333198, 0)) || unk_0x4BE6499482BEE1D8(iVar0, 492620493, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -1506370874, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -1786447517, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -1010805287, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -1325813684, 0)) || unk_0x4BE6499482BEE1D8(iVar0, 1690933245, 0)) || unk_0x4BE6499482BEE1D8(iVar0, 1360588936, 0)) || unk_0x4BE6499482BEE1D8(iVar0, 2136821028, 0)) || unk_0x4BE6499482BEE1D8(iVar0, 1927516484, 0)) || unk_0x4BE6499482BEE1D8(iVar0, -1603194928, 0))
{
return 1;
}
}
if (iVar0 != -1)
{
if (unk_0x4BE6499482BEE1D8(iVar0, -2017999390, 0))
{
return 1;
}
}
return func_486(iParam0, iParam1, -1);
}
else if (iParam0 == joaat("mp_f_freemode_01"))
{
iVar1 = func_128(iParam0, iParam1, 11, 4);
iVar2 = -1;
if (iVar1 != -1)
{
iVar2 = func_482(iVar1);
}
if (((((((((((((((((((((((((((((((((((((iParam1 >= 16 && iParam1 < 32) || (iParam1 >= 48 && iParam1 < 64)) || (iParam1 >= 96 && iParam1 < 112)) || (iParam1 >= 112 && iParam1 < 128)) || (iParam1 >= 128 && iParam1 < 144)) || (iParam1 >= 144 && iParam1 < 160)) || (iParam1 >= 160 && iParam1 < 176)) || (iParam1 >= 224 && iParam1 < 240)) || iVar2 == 1) || iVar2 == 3) || iVar2 == 6) || iVar2 == 7) || iVar2 == 8) || iVar2 == 9) || iVar2 == 10) || iVar2 == 14) || unk_0x4BE6499482BEE1D8(iVar1, -1393156190, 0)) || unk_0x4BE6499482BEE1D8(iVar1, 1843965488, 0)) || unk_0x4BE6499482BEE1D8(iVar1, 441715397, 0)) || unk_0x4BE6499482BEE1D8(iVar1, 264959411, 0)) || unk_0x4BE6499482BEE1D8(iVar1, -1410897066, 0)) || unk_0x4BE6499482BEE1D8(iVar1, 320460654, 0)) || unk_0x4BE6499482BEE1D8(iVar1, -2017999390, 0)) || unk_0x4BE6499482BEE1D8(iVar1, -826135203, 0)) || unk_0x4BE6499482BEE1D8(iVar1, -747583185, 0)) || unk_0x4BE6499482BEE1D8(iVar1, -102825006, 0)) || unk_0x4BE6499482BEE1D8(iVar1, -733792105, 0)) || unk_0x4BE6499482BEE1D8(iVar1, -641612092, 0)) || unk_0x4BE6499482BEE1D8(iVar1, -1507532917, 0)) || unk_0x4BE6499482BEE1D8(iVar1, -1506370874, 0)) || unk_0x4BE6499482BEE1D8(iVar1, -1786447517, 0)) || unk_0x4BE6499482BEE1D8(iVar1, -1010805287, 0)) || unk_0x4BE6499482BEE1D8(iVar1, -1325813684, 0)) || unk_0x4BE6499482BEE1D8(iVar1, 1690933245, 0)) || unk_0x4BE6499482BEE1D8(iVar1, 1360588936, 0)) || unk_0x4BE6499482BEE1D8(iVar1, 2136821028, 0)) || unk_0x4BE6499482BEE1D8(iVar1, 1927516484, 0))
{
return 1;
}
}
return 0;
}
void func_436(int iParam0, int iParam1, int iParam2, bool bParam3)
{
int iVar0;
int iVar1;
iVar0 = unk_0x8F474E419F56E48D(iParam0);
func_477(unk_0xFEB6EEC0545AF7AA("hairOverlay"), iParam0);
iVar1 = func_476(iVar0, iParam1);
if (iVar1 != -1)
{
if (iParam2 == -1)
{
iParam2 = Global_71014;
}
func_499(iVar1, 1, iParam2);
}
func_437(iParam0, bParam3, 0);
}
void func_437(int iParam0, bool bParam1, bool bParam2)
{
int iVar0;
struct<9> Var1;
int iVar2;
bool bVar3;
bool bVar4;
bool bVar5;
int iVar6;
int iVar7;
int iVar8;
struct<8> Var9;
int iVar10;
if (!unk_0x4915F4759304D5CF(iParam0))
{
iVar0 = Global_71014;
unk_0xDB98135FD1A0303F(iParam0);
iVar2 = func_475(iParam0);
bVar3 = func_469(iParam0, 0);
bVar4 = func_465(iParam0);
bVar5 = func_464(iParam0);
if (bParam1)
{
bVar4 = true;
}
if (bParam2)
{
bVar4 = false;
}
iVar6 = 0;
while (iVar6 < 127)
{
if (func_461(iVar6, iVar0))
{
if (func_456(&Var1, iVar6, iVar2, iParam0, -1))
{
if (func_453(iParam0, &Var1, iVar6, Var1.f_4, Var1.f_8, bVar3, bVar4, bParam1, bVar5))
{
unk_0x8DF379B4FA65C8FF(iParam0, Var1.f_4, Var1.f_5);
}
}
}
iVar6++;
}
if (func_461(123, iVar0))
{
if (unk_0xAD4796F6DC66CFFE(-1719270477, -1824026490) != 7)
{
unk_0x8DF379B4FA65C8FF(iParam0, -1719270477, -1824026490);
}
}
iVar8 = unk_0x174C99FADFCE889F(iVar2);
iVar7 = 0;
while (iVar7 < iVar8)
{
if (unk_0x0E7EFAB4BB04991A(iVar2, iVar7, &Var9))
{
if (!unk_0x3B61940560400F58(Var9))
{
iVar10 = (129 + iVar7);
if (func_461(iVar10, iVar0))
{
if (func_453(iParam0, &(Var9.f_7), iVar10, Var9.f_2, Var9.f_6, bVar3, bVar4, bParam1, bVar5))
{
if (!func_439(Var9.f_2, Var9.f_3))
{
unk_0x8DF379B4FA65C8FF(iParam0, Var9.f_2, Var9.f_3);
func_438(iParam0, Var9.f_2, Var9.f_3);
}
}
}
}
}
iVar7++;
}
}
}
void func_438(int iParam0, int iParam1, int iParam2)
{
switch (iParam1)
{
case 202420620:
switch (iParam2)
{
case 1495413374:
unk_0x8DF379B4FA65C8FF(iParam0, 202420620, -501147160);
break;
}
switch (iParam2)
{
case -1214222467:
unk_0x8DF379B4FA65C8FF(iParam0, 202420620, -1739422168);
break;
}
break;
case -1016521996:
switch (iParam2)
{
case 1321477520:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, 5866095);
break;
case -670835215:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, 1257645214);
break;
case -32315658:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, -1938877708);
break;
case -715501640:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, 177616986);
break;
case 812138662:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, -437640642);
break;
case -1950509905:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, 460297451);
break;
case 1850969667:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, -589899025);
break;
case 997671095:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, 342543493);
break;
case -1526467268:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, -950134188);
break;
case -881852779:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, 2043701187);
break;
case -570992218:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, 794519137);
break;
case -1075500139:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, 90598123);
break;
case -791689054:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, -151296204);
break;
case 699980662:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, 386731882);
break;
case -583230088:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, -1129017399);
break;
case 1922201848:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, -1175077252);
break;
case -767702908:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, -1710583235);
break;
case 1979813112:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, 900966291);
break;
case -2056272592:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, -153754682);
break;
}
switch (iParam2)
{
case 371389080:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, 580372087);
break;
case -521204587:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, -326572091);
break;
case 1685732560:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, -1550532305);
break;
case -1386443378:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, -1913405685);
break;
case -1706648281:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, -956341143);
break;
case -519957866:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, 2063062018);
break;
case 653935582:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, 605481338);
break;
case 2111779395:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, -1708926987);
break;
case 428988289:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, 264383347);
break;
case -1903962822:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, 1101363062);
break;
case 1365770911:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, -1963254369);
break;
case 42029862:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, 390663856);
break;
case 438631811:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, 916481637);
break;
case -1478715891:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, 1930151778);
break;
case -1395531229:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, -1731016702);
break;
case 30333135:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, -1915197882);
break;
case 1783341339:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, -25535717);
break;
case -16077126:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, 1193200233);
break;
case -833643184:
unk_0x8DF379B4FA65C8FF(iParam0, -1016521996, 1031663893);
break;
}
break;
case 1616273011:
switch (iParam2)
{
case -1318802347:
unk_0x8DF379B4FA65C8FF(iParam0, 1616273011, -815706791);
break;
case -1366750043:
unk_0x8DF379B4FA65C8FF(iParam0, 1616273011, -1066127505);
break;
}
break;
case -1194930348:
switch (iParam2)
{
case -841238543:
unk_0x8DF379B4FA65C8FF(iParam0, -1194930348, -441419962);
break;
case -1405854945:
unk_0x8DF379B4FA65C8FF(iParam0, -1194930348, 1647997020);
break;
}
break;
case -777275782:
switch (iParam2)
{
case 671171671:
unk_0x8DF379B4FA65C8FF(iParam0, -777275782, 904519720);
break;
case 1911627074:
unk_0x8DF379B4FA65C8FF(iParam0, -777275782, -607391498);
break;
}
break;
case 484754152:
switch (iParam2)
{
case 266230635:
unk_0x8DF379B4FA65C8FF(iParam0, 484754152, -588549683);
unk_0x8DF379B4FA65C8FF(iParam0, 484754152, 464027076);
break;
case -1261787835:
unk_0x8DF379B4FA65C8FF(iParam0, 484754152, -965491494);
unk_0x8DF379B4FA65C8FF(iParam0, 484754152, 939374190);
break;
}
break;
}
}
int func_439(int iParam0, int iParam1)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
int iVar9;
int iVar10;
int iVar11;
int iVar12;
int iVar13;
int iVar14;
int iVar15;
int iVar16;
int iVar17;
int iVar18;
int iVar19;
switch (iParam0)
{
case -2145114209:
switch (iParam1)
{
case -1015392647:
case 1817749559:
if (func_450(25032, -1, -1))
{
return 0;
}
if (iParam1 == -1015392647)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1742471685:
case 1403640225:
if (func_450(25033, -1, -1))
{
return 0;
}
if (iParam1 == 1742471685)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 408116861:
case 1306937694:
if (func_450(25034, -1, -1))
{
return 0;
}
if (iParam1 == 408116861)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1855327598:
case -95533995:
if (func_450(25035, -1, -1))
{
return 0;
}
if (iParam1 == -1855327598)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1578402908:
case -1871451886:
if (func_450(25036, -1, -1))
{
return 0;
}
if (iParam1 == 1578402908)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1423366674:
case -1120843246:
if (func_450(25037, -1, -1))
{
return 0;
}
if (iParam1 == -1423366674)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1611107047:
case 2081997561:
if (func_450(25038, -1, -1))
{
return 0;
}
if (iParam1 == 1611107047)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 742927305:
case -1339214923:
if (func_450(25039, -1, -1))
{
return 0;
}
if (iParam1 == 742927305)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1578833665:
case 9807447:
if (func_450(25040, -1, -1))
{
return 0;
}
if (iParam1 == -1578833665)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 773738667:
case -236005319:
if (func_450(25041, -1, -1))
{
return 0;
}
if (iParam1 == 773738667)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 213007702:
case -1470794594:
if (func_450(25042, -1, -1))
{
return 0;
}
if (iParam1 == 213007702)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 432208089:
case -2100868384:
if (func_450(25043, -1, -1))
{
return 0;
}
if (iParam1 == 432208089)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 35817542:
case 805626890:
if (func_450(25044, -1, -1))
{
return 0;
}
if (iParam1 == 35817542)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1786080093:
case -438487729:
if (func_450(25045, -1, -1))
{
return 0;
}
if (iParam1 == -1786080093)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -215923306:
case 1258452311:
if (func_450(25046, -1, -1))
{
return 0;
}
if (iParam1 == -215923306)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1275581512:
case -1387587887:
if (func_450(25047, -1, -1))
{
return 0;
}
if (iParam1 == 1275581512)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1214009019:
case 390131826:
if (func_450(25048, -1, -1))
{
return 0;
}
if (iParam1 == -1214009019)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1639713863:
case -933865090:
if (func_450(25049, -1, -1))
{
return 0;
}
if (iParam1 == 1639713863)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 529311368:
case 42888304:
if (func_450(25050, -1, -1))
{
return 0;
}
if (iParam1 == 529311368)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1033895864:
case -1512618189:
if (func_450(25051, -1, -1))
{
return 0;
}
if (iParam1 == -1033895864)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 924043677:
case 1805955770:
if (func_450(25052, -1, -1))
{
return 0;
}
if (iParam1 == 924043677)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -574749266:
case 2040741242:
if (func_450(25053, -1, -1))
{
return 0;
}
if (iParam1 == -574749266)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 519463901:
case -1572115827:
if (func_450(25054, -1, -1))
{
return 0;
}
if (iParam1 == 519463901)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -643353187:
case -2101278774:
if (func_450(25055, -1, -1))
{
return 0;
}
if (iParam1 == -643353187)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1571011017:
case -2006216868:
if (func_450(25056, -1, -1))
{
return 0;
}
if (iParam1 == 1571011017)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -94540936:
case 1445470992:
if (func_450(25057, -1, -1))
{
return 0;
}
if (iParam1 == -94540936)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1884218662:
case 31459402:
if (func_450(25058, -1, -1))
{
return 0;
}
if (iParam1 == 1884218662)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -345261869:
case 850282323:
if (func_450(25059, -1, -1))
{
return 0;
}
if (iParam1 == -345261869)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1022859058:
case 1518409673:
if (func_450(25060, -1, -1))
{
return 0;
}
if (iParam1 == -1022859058)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1786322924:
case 576453072:
if (func_450(25061, -1, -1))
{
return 0;
}
if (iParam1 == -1786322924)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 2085269022:
case 1343575520:
if (func_450(25062, -1, -1))
{
return 0;
}
if (iParam1 == 2085269022)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1511882653:
case -1244055789:
if (func_450(25063, -1, -1))
{
return 0;
}
if (iParam1 == 1511882653)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -506986385:
case 1650491806:
if (func_450(25064, -1, -1))
{
return 0;
}
if (iParam1 == -506986385)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -874081588:
case 507754313:
if (func_450(25065, -1, -1))
{
return 0;
}
if (iParam1 == -874081588)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -2043405937:
case -1168735793:
if (func_450(25066, -1, -1))
{
return 0;
}
if (iParam1 == -2043405937)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 59038842:
case 539301314:
if (func_450(25067, -1, -1))
{
return 0;
}
if (iParam1 == 59038842)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1101237057:
case 485114319:
if (func_450(25068, -1, -1))
{
return 0;
}
if (iParam1 == 1101237057)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -657535677:
case 1397146165:
if (func_450(25069, -1, -1))
{
return 0;
}
if (iParam1 == -657535677)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -2093585025:
case -922912500:
if (func_450(25070, -1, -1))
{
return 0;
}
if (iParam1 == -2093585025)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 908383468:
case 898093918:
if (func_450(25071, -1, -1))
{
return 0;
}
if (iParam1 == 908383468)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1608760399:
case -513817029:
if (func_450(25072, -1, -1))
{
return 0;
}
if (iParam1 == -1608760399)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1373660540:
case 134762953:
if (func_450(25073, -1, -1))
{
return 0;
}
if (iParam1 == 1373660540)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1854316713:
case 252404144:
if (func_450(25074, -1, -1))
{
return 0;
}
if (iParam1 == 1854316713)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -119951196:
case 168579849:
if (func_450(25075, -1, -1))
{
return 0;
}
if (iParam1 == -119951196)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1649842228:
case 1888095634:
if (func_450(25076, -1, -1))
{
return 0;
}
if (iParam1 == -1649842228)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1640764925:
case -1046236786:
if (func_450(25077, -1, -1))
{
return 0;
}
if (iParam1 == -1640764925)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1787927716:
case 33901453:
if (func_450(25078, -1, -1))
{
return 0;
}
if (iParam1 == 1787927716)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 104283481:
case -2043232938:
if (func_450(25079, -1, -1))
{
return 0;
}
if (iParam1 == 104283481)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 378263500:
case 1113927554:
if (func_450(25080, -1, -1))
{
return 0;
}
if (iParam1 == 378263500)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1061215309:
case -1602559301:
if (func_450(25081, -1, -1))
{
return 0;
}
if (iParam1 == -1061215309)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1034166199:
case -1167812298:
if (func_450(25082, -1, -1))
{
return 0;
}
if (iParam1 == 1034166199)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1828057305:
case 1912961832:
if (func_450(25083, -1, -1))
{
return 0;
}
if (iParam1 == 1828057305)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1486297381:
case 647456058:
if (func_450(25084, -1, -1))
{
return 0;
}
if (iParam1 == -1486297381)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -540767159:
case -717523161:
if (func_450(25085, -1, -1))
{
return 0;
}
if (iParam1 == -540767159)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1235960692:
case -1641870267:
if (func_450(25086, -1, -1))
{
return 0;
}
if (iParam1 == -1235960692)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -329316995:
case 1857030685:
if (func_450(25087, -1, -1))
{
return 0;
}
if (iParam1 == -329316995)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -581880272:
case -1074922646:
if (func_450(25088, -1, -1))
{
return 0;
}
if (iParam1 == -581880272)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1807345434:
case -1544308671:
if (func_450(25089, -1, -1))
{
return 0;
}
if (iParam1 == -1807345434)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1018409435:
case -480375220:
if (func_450(25090, -1, -1))
{
return 0;
}
if (iParam1 == -1018409435)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -136011898:
case -1158306419:
if (func_450(25091, -1, -1))
{
return 0;
}
if (iParam1 == -136011898)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -2069494727:
case 808115088:
if (func_450(25092, -1, -1))
{
return 0;
}
if (iParam1 == -2069494727)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -642887005:
case 1544542048:
if (func_450(25093, -1, -1))
{
return 0;
}
if (iParam1 == -642887005)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1810837638:
case 212713658:
if (func_450(25094, -1, -1))
{
return 0;
}
if (iParam1 == -1810837638)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1034484576:
case -537477127:
if (func_450(25095, -1, -1))
{
return 0;
}
if (iParam1 == 1034484576)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1979445594:
case -2067132678:
if (func_450(25096, -1, -1))
{
return 0;
}
if (iParam1 == 1979445594)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1533877336:
case 1060051174:
if (func_450(25097, -1, -1))
{
return 0;
}
if (iParam1 == -1533877336)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -892254987:
case 2038375002:
if (func_450(25098, -1, -1))
{
return 0;
}
if (iParam1 == -892254987)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -654222260:
case -256374303:
if (func_450(25099, -1, -1))
{
return 0;
}
if (iParam1 == -654222260)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 450544862:
case -964420554:
if (iParam1 == 450544862)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
}
break;
case 202420620:
switch (iParam1)
{
case 1495413374:
case -1214222467:
if (func_450(22108, -1, -1) || func_450(25006, -1, -1))
{
return 0;
}
if (iParam1 == 1495413374)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 370906922:
case -1079776812:
if (func_450(9481, -1, -1))
{
return 0;
}
if (iParam1 == 370906922)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 531742637:
case -948990166:
if (func_450(9470, -1, -1))
{
return 0;
}
if (iParam1 == 531742637)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -225805790:
case 1382201813:
if (func_450(9475, -1, -1))
{
return 0;
}
if (iParam1 == -225805790)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -624586952:
case 1576375706:
if (func_450(9472, -1, -1))
{
return 0;
}
if (iParam1 == -624586952)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 915144902:
case -1356500517:
if (func_450(9465, -1, -1))
{
return 0;
}
if (iParam1 == 915144902)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -242746043:
case 1838019927:
if (func_450(9463, -1, -1))
{
return 0;
}
if (iParam1 == -242746043)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1620048835:
case 618955885:
if (func_450(9464, -1, -1))
{
return 0;
}
if (iParam1 == 1620048835)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1097603268:
case 909858453:
if (func_450(9468, -1, -1))
{
return 0;
}
if (iParam1 == -1097603268)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -660672539:
case 1809389163:
if (func_450(9469, -1, -1))
{
return 0;
}
if (iParam1 == -660672539)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -4642188:
case -382370447:
if (func_450(9479, -1, -1))
{
return 0;
}
if (iParam1 == -4642188)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1855977539:
case -290949038:
if (func_450(9473, -1, -1))
{
return 0;
}
if (iParam1 == 1855977539)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1537270222:
case 381474823:
if (func_450(9480, -1, -1))
{
return 0;
}
if (iParam1 == 1537270222)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1226569770:
case 570088958:
if (func_450(9476, -1, -1))
{
return 0;
}
if (iParam1 == -1226569770)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1641457991:
case 1093167087:
if (func_450(9477, -1, -1))
{
return 0;
}
if (iParam1 == 1641457991)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1366312361:
case -1327397746:
if (func_450(9471, -1, -1))
{
return 0;
}
if (iParam1 == 1366312361)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1557113221:
case 655777349:
if (func_450(9474, -1, -1))
{
return 0;
}
if (iParam1 == -1557113221)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1690570414:
case -1496905620:
if (func_450(9467, -1, -1))
{
return 0;
}
if (iParam1 == -1690570414)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -507204255:
case -1043010182:
if (func_450(9478, -1, -1))
{
return 0;
}
if (iParam1 == -507204255)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1804897639:
case -1326077011:
if (func_450(9462, -1, -1))
{
return 0;
}
if (iParam1 == -1804897639)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1375233423:
case -1120323372:
if (func_450(9466, -1, -1))
{
return 0;
}
if (iParam1 == -1375233423)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 490066935:
case -1583620927:
if (func_450(22126, -1, -1))
{
return 0;
}
if (iParam1 == 490066935)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1193725595:
case 1407674396:
if (func_450(22127, -1, -1))
{
return 0;
}
if (iParam1 == 1193725595)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 628493116:
case -244079832:
if (func_450(22128, -1, -1))
{
return 0;
}
if (iParam1 == 628493116)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -2112155518:
case 1055951410:
if (func_450(22124, -1, -1))
{
return 0;
}
if (iParam1 == -2112155518)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1511337702:
case 1092910333:
if (func_450(22130, -1, -1))
{
return 0;
}
if (iParam1 == 1511337702)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -627666528:
case -1874854660:
if (func_450(22125, -1, -1))
{
return 0;
}
if (iParam1 == -627666528)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 768324163:
case -1379192256:
if (func_450(22129, -1, -1))
{
return 0;
}
if (iParam1 == 768324163)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1448761813:
case 1435106801:
if (func_450(22131, -1, -1))
{
return 0;
}
if (iParam1 == -1448761813)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 868551738:
case -1252683947:
if (func_450(22132, -1, -1))
{
return 0;
}
if (iParam1 == 868551738)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
}
switch (iParam1)
{
case -1021262861:
case -1380607703:
if (func_450(22147, -1, -1))
{
return 0;
}
if (iParam1 == -1021262861)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -264447931:
case 1010167914:
if (func_450(22148, -1, -1))
{
return 0;
}
if (iParam1 == -264447931)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -652127435:
case 1059266367:
if (func_450(22149, -1, -1))
{
return 0;
}
if (iParam1 == -652127435)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -610014599:
case 1869746711:
if (func_450(22150, -1, -1))
{
return 0;
}
if (iParam1 == -610014599)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 848073973:
case 167494616:
if (func_450(22151, -1, -1))
{
return 0;
}
if (iParam1 == 848073973)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1561087717:
case 231256171:
if (func_450(22152, -1, -1))
{
return 0;
}
if (iParam1 == 1561087717)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 2067249852:
case -2041196288:
if (func_450(22153, -1, -1))
{
return 0;
}
if (iParam1 == 2067249852)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1963924398:
case -231795220:
if (func_450(22154, -1, -1))
{
return 0;
}
if (iParam1 == 1963924398)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -898550276:
case -1207463639:
if (func_450(22155, -1, -1))
{
return 0;
}
if (iParam1 == -898550276)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1074178691:
case 2023442158:
if (func_450(22156, -1, -1))
{
return 0;
}
if (iParam1 == -1074178691)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -368616744:
case -1293194083:
if (func_450(22157, -1, -1))
{
return 0;
}
if (iParam1 == -368616744)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -78566501:
case 767365246:
if (func_450(22158, -1, -1))
{
return 0;
}
if (iParam1 == -78566501)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1623651387:
case -318042939:
if (func_450(22159, -1, -1))
{
return 0;
}
if (iParam1 == 1623651387)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1229980240:
case -740608006:
if (func_450(22160, -1, -1))
{
return 0;
}
if (iParam1 == -1229980240)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1558321426:
case 126660566:
if (func_450(22161, -1, -1))
{
return 0;
}
if (iParam1 == -1558321426)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 518190097:
case -252733393:
if (func_450(22162, -1, -1))
{
return 0;
}
if (iParam1 == 518190097)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1996043294:
case -1044136613:
if (func_450(22163, -1, -1))
{
return 0;
}
if (iParam1 == -1996043294)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1720844546:
case -891762294:
if (func_450(22164, -1, -1))
{
return 0;
}
if (iParam1 == 1720844546)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -20709979:
case 1410738248:
if (func_450(22165, -1, -1))
{
return 0;
}
if (iParam1 == -20709979)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1617383579:
case -1978727490:
if (func_450(22166, -1, -1))
{
return 0;
}
if (iParam1 == -1617383579)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -525135065:
case 1684642458:
if (func_450(22167, -1, -1))
{
return 0;
}
if (iParam1 == -525135065)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1796039054:
case -147490340:
if (func_450(22168, -1, -1))
{
return 0;
}
if (iParam1 == 1796039054)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1250030109:
case -1422117996:
if (func_450(22169, -1, -1))
{
return 0;
}
if (iParam1 == 1250030109)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1195876295:
case -313931425:
if (func_450(22170, -1, -1))
{
return 0;
}
if (iParam1 == -1195876295)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 672890092:
case 211076563:
if (func_450(22171, -1, -1))
{
return 0;
}
if (iParam1 == 672890092)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 413298313:
case 355035035:
if (func_450(22172, -1, -1))
{
return 0;
}
if (iParam1 == 413298313)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1157302328:
case -1447308868:
if (func_450(22173, -1, -1))
{
return 0;
}
if (iParam1 == 1157302328)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1564457471:
case 1802655618:
if (func_450(22174, -1, -1))
{
return 0;
}
if (iParam1 == -1564457471)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1152621988:
case -1063742156:
if (func_450(22175, -1, -1))
{
return 0;
}
if (iParam1 == 1152621988)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1961291349:
case 1988028531:
if (func_450(22176, -1, -1))
{
return 0;
}
if (iParam1 == -1961291349)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1912591074:
case 73898487:
if (func_450(22177, -1, -1))
{
return 0;
}
if (iParam1 == -1912591074)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1049766626:
case -1041813118:
if (func_450(22178, -1, -1))
{
return 0;
}
if (iParam1 == 1049766626)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
}
break;
case 1616273011:
switch (iParam1)
{
case -2123485438:
case 1457900554:
if (func_450(15426, -1, -1))
{
return 0;
}
if (iParam1 == -2123485438)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -815706791:
case -1066127505:
if (func_450(15422, -1, -1))
{
return 0;
}
if (iParam1 == -815706791)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1318802347:
case -1366750043:
if (func_450(15423, -1, -1))
{
return 0;
}
if (iParam1 == -1318802347)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 306110040:
case 1944822196:
if (func_450(15421, -1, -1))
{
return 0;
}
if (iParam1 == 306110040)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1828101251:
case -1639289459:
if (func_450(15427, -1, -1))
{
return 0;
}
if (iParam1 == 1828101251)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -919314748:
case 1282565442:
if (func_450(15419, -1, -1))
{
return 0;
}
if (iParam1 == -919314748)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1971111649:
case -884280700:
if (func_450(15420, -1, -1))
{
return 0;
}
if (iParam1 == 1971111649)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
}
switch (iParam1)
{
case 1029334921:
case -322091380:
if (func_450(15394, -1, -1))
{
return 0;
}
if (iParam1 == 1029334921)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -534855486:
case -1168575065:
if (func_330(209, -1))
{
return 0;
}
if (iParam1 == -534855486)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -516333262:
case 756873456:
if (func_450(15406, -1, -1))
{
return 0;
}
if (iParam1 == -516333262)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 485135095:
case -730037708:
if (func_450(15395, -1, -1))
{
return 0;
}
if (iParam1 == 485135095)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1713551997:
case -970458486:
if (func_330(209, -1))
{
return 0;
}
if (iParam1 == 1713551997)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1490658501:
case 975601953:
if (func_450(15410, -1, -1))
{
return 0;
}
if (iParam1 == -1490658501)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1735635238:
case 1614208560:
if (func_450(15407, -1, -1))
{
return 0;
}
if (iParam1 == -1735635238)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1931303956:
case -726032561:
if (func_330(209, -1))
{
return 0;
}
if (iParam1 == 1931303956)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1931617488:
case -1824987162:
if (func_330(209, -1))
{
return 0;
}
if (iParam1 == -1931617488)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1726332301:
case 417579524:
if (func_450(15414, -1, -1))
{
return 0;
}
if (iParam1 == -1726332301)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1382922530:
case 734151492:
if (func_450(15415, -1, -1))
{
return 0;
}
if (iParam1 == -1382922530)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 452778672:
case -1766862320:
if (func_450(15399, -1, -1))
{
return 0;
}
if (iParam1 == 452778672)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1776790350:
case 579562906:
if (func_450(15404, -1, -1))
{
return 0;
}
if (iParam1 == -1776790350)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1988057295:
case -619754931:
if (func_330(209, -1))
{
return 0;
}
if (iParam1 == -1988057295)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 816707921:
case 1424441799:
if (func_450(15392, -1, -1))
{
return 0;
}
if (iParam1 == 816707921)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 744446190:
case -1405036369:
if (func_450(15390, -1, -1))
{
return 0;
}
if (iParam1 == 744446190)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 917772807:
case 1929056908:
if (func_450(15402, -1, -1))
{
return 0;
}
if (iParam1 == 917772807)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -292922355:
case -34538790:
if (func_450(15416, -1, -1))
{
return 0;
}
if (iParam1 == -292922355)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1495432685:
case 1898518287:
if (func_330(209, -1))
{
return 0;
}
if (iParam1 == -1495432685)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
}
break;
case -240234547:
switch (iParam1)
{
case 769964545:
case 1916093085:
if (func_450(9366, -1, -1))
{
return 0;
}
if (iParam1 == 769964545)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1424500982:
case -701486200:
if (func_450(9367, -1, -1))
{
return 0;
}
if (iParam1 == 1424500982)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1810785185:
case 1951718630:
if (func_450(9369, -1, -1))
{
return 0;
}
if (iParam1 == -1810785185)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 837990279:
case -1981978861:
if (func_450(9368, -1, -1))
{
return 0;
}
if (iParam1 == 837990279)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1752551314:
case 468661890:
if (func_450(9365, -1, -1))
{
return 0;
}
if (iParam1 == 1752551314)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 735155845:
case 1907925586:
if (func_450(9364, -1, -1))
{
return 0;
}
if (iParam1 == 735155845)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1863251462:
case 646243571:
if (func_450(9363, -1, -1))
{
return 0;
}
if (iParam1 == 1863251462)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -2142058763:
case 1953935161:
if (func_450(9362, -1, -1))
{
return 0;
}
if (iParam1 == -2142058763)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -207591105:
case 874867224:
if (func_450(9370, -1, -1))
{
return 0;
}
if (iParam1 == -207591105)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -932813887:
case 1344008898:
if (func_450(9371, -1, -1))
{
return 0;
}
if (iParam1 == -932813887)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -313503199:
case 1297781304:
if (func_450(9372, -1, -1))
{
return 0;
}
if (iParam1 == -313503199)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 718936417:
case 1977233252:
if (func_450(9373, -1, -1))
{
return 0;
}
if (iParam1 == 718936417)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1107649605:
case -194410344:
if (func_450(9374, -1, -1))
{
return 0;
}
if (iParam1 == -1107649605)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 39090475:
case 392012609:
if (func_450(9384, -1, -1))
{
return 0;
}
if (iParam1 == 39090475)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1628251208:
case 705148450:
if (func_450(9385, -1, -1))
{
return 0;
}
if (iParam1 == 1628251208)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
}
break;
case -1194930348:
switch (iParam1)
{
case -621355603:
case -46521805:
if (func_450(7551, -1, -1) || func_19(3789, -1, 0) >= Global_262145.f_16181)
{
return 0;
}
if (iParam1 == -621355603)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1006202521:
case -1549217620:
if (func_450(7467, -1, -1))
{
return 0;
}
if (iParam1 == -1006202521)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1834049539:
case 1674429052:
if (func_450(7468, -1, -1))
{
return 0;
}
if (iParam1 == -1834049539)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -2060372580:
case -254669596:
if (func_450(7469, -1, -1))
{
return 0;
}
if (iParam1 == -2060372580)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1057304170:
case 1802602254:
if (func_450(7470, -1, -1))
{
return 0;
}
if (iParam1 == 1057304170)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1421572640:
case -941072260:
if (func_450(7471, -1, -1))
{
return 0;
}
if (iParam1 == 1421572640)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 481259621:
case -1844749517:
if (func_450(7472, -1, -1))
{
return 0;
}
if (iParam1 == 481259621)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1227497670:
case 82745424:
if (func_450(7473, -1, -1))
{
return 0;
}
if (iParam1 == 1227497670)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 319276780:
case -673460083:
if (func_450(7474, -1, -1))
{
return 0;
}
if (iParam1 == 319276780)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 2070827921:
case -99954496:
if (func_450(7475, -1, -1))
{
return 0;
}
if (iParam1 == 2070827921)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1433629991:
case 2078163456:
if (func_450(7476, -1, -1))
{
return 0;
}
if (iParam1 == 1433629991)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1712994650:
case 1362343227:
if (func_450(7477, -1, -1))
{
return 0;
}
if (iParam1 == -1712994650)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 2125094286:
case 1176005743:
if (func_450(7478, -1, -1))
{
return 0;
}
if (iParam1 == 2125094286)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 712298404:
case -1504557219:
if (func_450(7479, -1, -1))
{
return 0;
}
if (iParam1 == 712298404)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1998072324:
case 367912881:
if (func_450(7480, -1, -1))
{
return 0;
}
if (iParam1 == 1998072324)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1249206960:
case -836343280:
if (func_450(7481, -1, -1))
{
return 0;
}
if (iParam1 == 1249206960)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
}
break;
case -1907832850:
switch (iParam1)
{
case 2062186390:
case 283190173:
if (func_450(4260, -1, -1))
{
return 0;
}
if (iParam1 == 283190173)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -60867780:
case 1528527015:
if (func_450(4257, -1, -1))
{
return 0;
}
if (iParam1 == 1528527015)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 926967912:
case -1690029966:
if (func_450(4269, -1, -1))
{
return 0;
}
if (iParam1 == -1690029966)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1886278590:
case -1685994466:
if (func_450(4261, -1, -1))
{
return 0;
}
if (iParam1 == -1685994466)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1314959708:
case 255166927:
if (func_450(4259, -1, -1))
{
return 0;
}
if (iParam1 == 255166927)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1696774529:
case -271257487:
if (func_450(4268, -1, -1))
{
return 0;
}
if (iParam1 == -271257487)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -356446484:
case 1885215284:
if (func_450(4265, -1, -1))
{
return 0;
}
if (iParam1 == 1885215284)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 857810380:
case -1935156988:
if (func_450(4258, -1, -1))
{
return 0;
}
if (iParam1 == -1935156988)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -629676646:
case 1061465906:
if (func_450(4264, -1, -1))
{
return 0;
}
if (iParam1 == 1061465906)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1879530481:
case -871031729:
if (func_450(4267, -1, -1))
{
return 0;
}
if (iParam1 == -871031729)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case -1265847311:
case -101171485:
if (func_450(4262, -1, -1))
{
return 0;
}
if (iParam1 == -101171485)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 32094424:
case -1590298770:
if (func_450(4263, -1, -1))
{
return 0;
}
if (iParam1 == -1590298770)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
case 1969286744:
case 303441856:
if (func_450(4266, -1, -1))
{
return 0;
}
if (iParam1 == 303441856)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
}
break;
case 62137527:
switch (iParam1)
{
case 386581472:
case 1466454525:
if (func_19(2931, -1, 0) > 0)
{
return 0;
}
return !func_441(func_447(iParam1, 3), -1);
break;
case 979307144:
case -473732439:
if (func_19(2931, -1, 0) > 0)
{
return 0;
}
return !func_441(func_447(iParam1, 4), -1);
break;
}
break;
case -1542189594:
switch (iParam1)
{
case -2049689650:
case 560620683:
if (func_450(113, -1, -1))
{
return 0;
}
if (iParam1 == -2049689650)
{
return !func_441(func_447(iParam1, 3), -1);
}
else
{
return !func_441(func_447(iParam1, 4), -1);
}
break;
}
break;
case -777275782:
switch (iParam1)
{
case -627999265:
case 1682346315:
case 1021952654:
case 1319396867:
case 560794517:
case 858697496:
case -30981230:
case -328032215:
case -1451681225:
case 267904819:
if (iParam1 == -627999265)
{
if (func_450(3770, -1, -1))
{
return 0;
}
}
else if (iParam1 == 1682346315)
{
if (func_450(3771, -1, -1))
{
return 0;
}
}
else if (iParam1 == 1021952654)
{
if (func_450(3772, -1, -1))
{
return 0;
}
}
else if (iParam1 == 1319396867)
{
if (func_450(3773, -1, -1))
{
return 0;
}
}
else if (iParam1 == 560794517)
{
if (func_450(3774, -1, -1))
{
return 0;
}
}
else if (iParam1 == 858697496)
{
if (func_450(3775, -1, -1))
{
return 0;
}
}
else if (iParam1 == -30981230)
{
if (func_450(3776, -1, -1))
{
return 0;
}
}
else if (iParam1 == -328032215)
{
if (func_450(3777, -1, -1))
{
return 0;
}
}
else if (iParam1 == -1451681225)
{
if (func_450(3778, -1, -1))
{
return 0;
}
}
else if (iParam1 == 267904819)
{
if (func_450(3779, -1, -1))
{
return 0;
}
}
return !func_441(func_447(iParam1, 3), -1);
break;
case -1864998224:
case -2140814897:
case 223468453:
case -83970305:
case -406843262:
case -954740942:
case -1675526854:
case 2111717556:
case -415395003:
case 427521984:
if (iParam1 == -1864998224)
{
if (func_450(3770, -1, -1))
{
return 0;
}
}
else if (iParam1 == -2140814897)
{
if (func_450(3771, -1, -1))
{
return 0;
}
}
else if (iParam1 == 223468453)
{
if (func_450(3772, -1, -1))
{
return 0;
}
}
else if (iParam1 == -83970305)
{
if (func_450(3773, -1, -1))
{
return 0;
}
}
else if (iParam1 == -406843262)
{
if (func_450(3774, -1, -1))
{
return 0;
}
}
else if (iParam1 == -954740942)
{
if (func_450(3775, -1, -1))
{
return 0;
}
}
else if (iParam1 == -1675526854)
{
if (func_450(3776, -1, -1))
{
return 0;
}
}
else if (iParam1 == 2111717556)
{
if (func_450(3777, -1, -1))
{
return 0;
}
}
else if (iParam1 == -415395003)
{
if (func_450(3778, -1, -1))
{
return 0;
}
}
else if (iParam1 == 427521984)
{
if (func_450(3779, -1, -1))
{
return 0;
}
}
return !func_441(func_447(iParam1, 4), -1);
break;
case -863391184:
case 671171671:
case 1675446188:
case 1911627074:
if ((((func_450(3765, -1, -1) && func_450(3766, -1, -1)) && func_450(3767, -1, -1)) && func_450(3768, -1, -1)) && func_450(3769, -1, -1))
{
return 0;
}
return 1;
break;
}
break;
case 243848076:
switch (iParam1)
{
case 632918673:
case 1525246127:
return !func_450(3593, -1, -1);
break;
}
break;
case -1398869298:
switch (iParam1)
{
case 1443536758:
case 1333229624:
case -1665422117:
case 1100930183:
case -1595008258:
case 94055115:
case -627896761:
case 1873477305:
return 1;
break;
case 196632624:
case -1644428107:
case 1108198688:
case 810099095:
return 1;
break;
case 300677115:
case 262692161:
case -1684141219:
case 390655118:
case -479442624:
case -542924311:
case 1696910411:
case -1259058037:
return 1;
break;
case 1980445908:
case -1882429354:
case -1235341889:
case -1544517404:
return 1;
break;
case -1450406320:
case 1412653072:
return (!func_330(152, -1) && !func_450(9440, -1, -1));
break;
case 210195800:
case 7463306:
return (!func_330(151, -1) && !func_450(9430, -1, -1));
break;
case 953986562:
return (!func_441(func_447(iParam1, 3), -1) && !func_450(9426, -1, -1));
break;
case 585335312:
return (!func_441(func_447(iParam1, 3), -1) && !func_450(9427, -1, -1));
break;
case 489617063:
return (!func_441(func_447(iParam1, 3), -1) && !func_450(9428, -1, -1));
break;
case 1843402776:
return (!func_441(func_447(iParam1, 3), -1) && !func_450(9431, -1, -1));
break;
case -1600520821:
return (!func_441(func_447(iParam1, 3), -1) && !func_450(9432, -1, -1));
break;
case 1399087889:
return (!func_441(func_447(iParam1, 3), -1) && !func_450(9433, -1, -1));
break;
case 1169344430:
return (!func_441(func_447(iParam1, 3), -1) && !func_450(9439, -1, -1));
break;
case -2028647818:
return (!func_441(func_447(iParam1, 3), -1) && !func_450(9434, -1, -1));
break;
case -1335845620:
return (!func_441(func_447(iParam1, 3), -1) && !func_450(9435, -1, -1));
break;
case -1209849091:
return (!func_441(func_447(iParam1, 3), -1) && !func_450(9436, -1, -1));
break;
case 2065609077:
return (!func_441(func_447(iParam1, 3), -1) && !func_450(9429, -1, -1));
break;
case -664245241:
return (!func_441(func_447(iParam1, 3), -1) && !func_450(9437, -1, -1));
break;
case 1531057961:
return (!func_441(func_447(iParam1, 4), -1) && !func_450(9426, -1, -1));
break;
case 1986678137:
return (!func_441(func_447(iParam1, 4), -1) && !func_450(9427, -1, -1));
break;
case 2142789653:
return (!func_441(func_447(iParam1, 4), -1) && !func_450(9428, -1, -1));
break;
case 308053343:
return (!func_441(func_447(iParam1, 4), -1) && !func_450(9431, -1, -1));
break;
case 753842819:
return (!func_441(func_447(iParam1, 4), -1) && !func_450(9432, -1, -1));
break;
case 1052794406:
return (!func_441(func_447(iParam1, 4), -1) && !func_450(9433, -1, -1));
break;
case -695726661:
return (!func_441(func_447(iParam1, 4), -1) && !func_450(9439, -1, -1));
break;
case -1001821890:
return (!func_441(func_447(iParam1, 4), -1) && !func_450(9434, -1, -1));
break;
case -1425459522:
return (!func_441(func_447(iParam1, 4), -1) && !func_450(9435, -1, -1));
break;
case 1163510365:
return (!func_441(func_447(iParam1, 4), -1) && !func_450(9436, -1, -1));
break;
case 933242602:
return (!func_441(func_447(iParam1, 4), -1) && !func_450(9429, -1, -1));
break;
case -1347021116:
return (!func_441(func_447(iParam1, 4), -1) && !func_450(9437, -1, -1));
break;
case 1676130538:
case -1730534702:
case -1767432596:
case 1297354841:
case -839806574:
case -542100209:
return !func_440();
break;
}
break;
case -1684351737:
switch (iParam1)
{
case -190040148:
case -11341151:
return !func_450(3608, -1, -1);
break;
}
break;
case -1677471575:
switch (iParam1)
{
case 42936837:
case 516055815:
return (!func_450(3615, -1, -1) && !func_450(9438, -1, -1));
break;
}
break;
case -1056335443:
if (iParam1 == -963164512)
{
return 1;
}
switch (iParam1)
{
case 670952414:
case -1544625218:
return !func_450(3783, -1, -1);
break;
case -282875325:
case 1185175875:
return !func_450(3784, -1, -1);
break;
case 2079623104:
case 155591269:
return !func_450(3785, -1, -1);
break;
case 1088443427:
case -1057958846:
return !func_450(3786, -1, -1);
break;
case 200001600:
case -1853795495:
return !func_450(3787, -1, -1);
break;
case 1620729159:
case -1860485560:
return !func_450(3788, -1, -1);
break;
case -1713274238:
case 499288642:
return !func_450(3789, -1, -1);
break;
case -1571590969:
case -7887054:
return !func_450(3790, -1, -1);
break;
case -457639374:
case -1553041502:
return !func_450(3791, -1, -1);
break;
case 64160805:
case -1080591445:
return !func_450(3792, -1, -1);
break;
case 776078819:
case -1303573005:
if (iParam1 == 776078819)
{
iVar0 = func_19(2442, -1, 0);
if (unk_0x05EFB6A616B6FADE(iVar0, 0))
{
return 0;
}
}
else if (iParam1 == -1303573005)
{
iVar1 = func_19(2422, -1, 0);
if (unk_0x05EFB6A616B6FADE(iVar1, 18))
{
return 0;
}
}
return !func_450(3793, -1, -1);
break;
case -1069464482:
case 2085207152:
if (iParam1 == -1069464482)
{
iVar2 = func_19(2442, -1, 0);
if (unk_0x05EFB6A616B6FADE(iVar2, 1))
{
return 0;
}
}
else if (iParam1 == 2085207152)
{
iVar3 = func_19(2422, -1, 0);
if (unk_0x05EFB6A616B6FADE(iVar3, 19))
{
return 0;
}
}
return !func_450(3794, -1, -1);
break;
case -1342875239:
case 857137150:
if (iParam1 == -1342875239)
{
iVar4 = func_19(2442, -1, 0);
if (unk_0x05EFB6A616B6FADE(iVar4, 2))
{
return 0;
}
}
else if (iParam1 == 857137150)
{
iVar5 = func_19(2422, -1, 0);
if (unk_0x05EFB6A616B6FADE(iVar5, 20))
{
return 0;
}
}
return !func_450(3795, -1, -1);
break;
case 1967892405:
case 535952639:
if (iParam1 == 1967892405)
{
iVar6 = func_19(2442, -1, 0);
if (unk_0x05EFB6A616B6FADE(iVar6, 3))
{
return 0;
}
}
else if (iParam1 == 535952639)
{
iVar7 = func_19(2422, -1, 0);
if (unk_0x05EFB6A616B6FADE(iVar7, 21))
{
return 0;
}
}
return !func_450(3796, -1, -1);
break;
case 642864781:
case -1974657401:
if (iParam1 == 642864781)
{
iVar8 = func_19(2442, -1, 0);
if (unk_0x05EFB6A616B6FADE(iVar8, 4))
{
return 0;
}
}
else if (iParam1 == -1974657401)
{
iVar9 = func_19(2422, -1, 0);
if (unk_0x05EFB6A616B6FADE(iVar9, 22))
{
return 0;
}
}
return !func_450(3797, -1, -1);
break;
case 1270860039:
case 129909013:
if (iParam1 == 1270860039)
{
iVar10 = func_19(2442, -1, 0);
if (unk_0x05EFB6A616B6FADE(iVar10, 5))
{
return 0;
}
}
else if (iParam1 == 129909013)
{
iVar11 = func_19(2422, -1, 0);
if (unk_0x05EFB6A616B6FADE(iVar11, 23))
{
return 0;
}
}
return !func_450(3798, -1, -1);
break;
case -1290780406:
case -1499060170:
if (iParam1 == -1290780406)
{
iVar12 = func_19(2442, -1, 0);
if (unk_0x05EFB6A616B6FADE(iVar12, 6))
{
return 0;
}
}
else if (iParam1 == -1499060170)
{
iVar13 = func_19(2422, -1, 0);
if (unk_0x05EFB6A616B6FADE(iVar13, 24))
{
return 0;
}
}
return !func_450(3799, -1, -1);
break;
case 1127641545:
case 412032123:
if (iParam1 == 1127641545)
{
iVar14 = func_19(2442, -1, 0);
if (unk_0x05EFB6A616B6FADE(iVar14, 7))
{
return 0;
}
}
else if (iParam1 == 412032123)
{
iVar15 = func_19(2422, -1, 0);
if (unk_0x05EFB6A616B6FADE(iVar15, 25))
{
return 0;
}
}
return !func_450(3800, -1, -1);
break;
case -1221948530:
case 915049044:
if (iParam1 == -1221948530)
{
iVar16 = func_19(2442, -1, 0);
if (unk_0x05EFB6A616B6FADE(iVar16, 8))
{
return 0;
}
}
else if (iParam1 == 915049044)
{
iVar17 = func_19(2422, -1, 0);
if (unk_0x05EFB6A616B6FADE(iVar17, 26))
{
return 0;
}
}
return !func_450(3801, -1, -1);
break;
case 1954153055:
case 456478679:
if (iParam1 == 1954153055)
{
iVar18 = func_19(2442, -1, 0);
if (unk_0x05EFB6A616B6FADE(iVar18, 9))
{
return 0;
}
}
else if (iParam1 == 456478679)
{
iVar19 = func_19(2422, -1, 0);
if (unk_0x05EFB6A616B6FADE(iVar19, 27))
{
return 0;
}
}
return !func_450(3802, -1, -1);
break;
}
break;
case 484754152:
switch (iParam1)
{
case -588549683:
case 464027076:
return 1;
break;
case -965491494:
case 939374190:
return 1;
break;
}
break;
case 598190139:
switch (iParam1)
{
case -1458541976:
case -606014753:
case -613376371:
case -446291501:
case -1034642040:
case 1022637316:
case -1677156418:
case -1130213300:
return !func_242();
break;
}
break;
}
return 0;
}
bool func_440()
{
return unk_0x05BEBC245254F6F2(-1762644250);
}
bool func_441(int iParam0, int iParam1)
{
int iVar0;
int iVar1;
if (func_444(iParam0) == 9954)
{
return 0;
}
iVar0 = func_443(iParam0, iParam1);
iVar1 = iParam0;
return unk_0x05EFB6A616B6FADE(iVar0, func_442(iVar1));
}
int func_442(int iParam0)
{
return (iParam0 % 32);
}
int func_443(var uParam0, int iParam1)
{
int iVar0;
iVar0 = func_19(func_444(uParam0), iParam1, 0);
return iVar0;
}
int func_444(var uParam0)
{
int iVar0;
int iVar1;
iVar0 = uParam0;
iVar1 = func_446(iVar0);
if ((func_21() == 0 || func_445() == 0) || (func_21() == 999 && func_445() == 999))
{
switch (iVar1)
{
case 0:
return 1038;
break;
case 1:
return 1039;
break;
case 2:
return 1040;
break;
case 3:
return 1041;
break;
case 4:
return 1042;
break;
case 5:
return 1502;
break;
case 6:
return 1756;
break;
case 7:
return 1950;
break;
case 8:
return 1951;
break;
case 9:
return 1952;
break;
case 10:
return 1953;
break;
case 11:
return 1954;
break;
case 12:
return 1955;
break;
case 13:
return 2422;
break;
case 14:
return 2442;
break;
case 15:
return 2445;
break;
case 16:
return 2448;
break;
case 17:
return 2611;
break;
case 18:
return 2614;
break;
case 19:
return 2617;
break;
case 20:
return 3783;
break;
case 21:
return 3786;
break;
case 22:
return 3861;
break;
case 23:
return 3864;
break;
case 24:
return 3867;
break;
case 25:
return 3870;
break;
case 26:
return 5361;
break;
case 27:
return 5364;
break;
case 28:
return 5466;
break;
case 29:
return 5469;
break;
case 30:
return 6428;
break;
case 31:
return 6431;
break;
case 32:
return 7252;
break;
case 33:
return 7255;
break;
case 34:
return 7258;
break;
case 35:
return 7967;
break;
case 36:
return 7970;
break;
case 37:
return 7973;
break;
case 38:
return 7976;
break;
}
}
return 9954;
}
int func_445()
{
return Global_25460;
}
int func_446(int iParam0)
{
return (iParam0 / 32);
}
int func_447(int iParam0, int iParam1)
{
var uVar0;
int iVar1;
int iVar2;
struct<4> Var3;
if (iParam1 == 3)
{
if (func_449(iParam0, &uVar0))
{
return uVar0;
}
}
else if (iParam1 == 4)
{
if (func_448(iParam0, &uVar0))
{
return uVar0;
}
}
iVar2 = unk_0x174C99FADFCE889F(iParam1);
iVar1 = 0;
while (iVar1 < iVar2)
{
if (unk_0x0E7EFAB4BB04991A(iParam1, iVar1, &Var3))
{
if (iParam0 == Var3.f_3)
{
return (129 + iVar1);
}
}
iVar1++;
}
return -1;
}
int func_448(int iParam0, var uParam1)
{
int iVar0;
iVar0 = -1;
switch (iParam0)
{
case 497719213:
iVar0 = 0;
break;
case -1575660783:
iVar0 = 1;
break;
case -720631087:
iVar0 = 2;
break;
case 2143620721:
iVar0 = 3;
break;
case 2049754822:
iVar0 = 4;
break;
case -1293749076:
iVar0 = 5;
break;
case -1571403599:
iVar0 = 6;
break;
case -711123906:
iVar0 = 7;
break;
case 152801037:
iVar0 = 8;
break;
case -1324018585:
iVar0 = 9;
break;
case -481068829:
iVar0 = 10;
break;
case -1486741196:
iVar0 = 11;
break;
case 939412564:
iVar0 = 12;
break;
case 1187637739:
iVar0 = 13;
break;
case -1092669445:
iVar0 = 14;
break;
case 1659530389:
iVar0 = 15;
break;
case 996857777:
iVar0 = 16;
break;
case 817476859:
iVar0 = 17;
break;
case -17051268:
iVar0 = 18;
break;
case 1293774274:
iVar0 = 19;
break;
case 567121699:
iVar0 = 20;
break;
case -1179302160:
iVar0 = 21;
break;
case -949165473:
iVar0 = 22;
break;
case 354975189:
iVar0 = 23;
break;
case -489121482:
iVar0 = 24;
break;
case -1636954018:
iVar0 = 25;
break;
case -1277740240:
iVar0 = 26;
break;
case -1047439708:
iVar0 = 27;
break;
case -814026121:
iVar0 = 28;
break;
case 1732157956:
iVar0 = 29;
break;
case 1024282018:
iVar0 = 30;
break;
case -2099685063:
iVar0 = 31;
break;
case 1483932781:
iVar0 = 32;
break;
case 1406925627:
iVar0 = 33;
break;
case 698590923:
iVar0 = 34;
break;
case 1869001296:
iVar0 = 35;
break;
case 1169907450:
iVar0 = 36;
break;
case 717727185:
iVar0 = 37;
break;
case 1058197095:
iVar0 = 38;
break;
case 434115743:
iVar0 = 39;
break;
case 665432114:
iVar0 = 40;
break;
case 1198780358:
iVar0 = 41;
break;
case -2128873857:
iVar0 = 42;
break;
case -148547780:
iVar0 = 43;
break;
case 1819096318:
iVar0 = 44;
break;
case 1051122042:
iVar0 = 45;
break;
case -1350495965:
iVar0 = 46;
break;
case -150859291:
iVar0 = 47;
break;
case -1186193045:
iVar0 = 48;
break;
case -1206837515:
iVar0 = 49;
break;
case -1513653662:
iVar0 = 50;
break;
case -543948331:
iVar0 = 51;
break;
case -175559233:
iVar0 = 52;
break;
case -131530830:
iVar0 = 53;
break;
case -1816086813:
iVar0 = 54;
break;
case -2113006722:
iVar0 = 55;
break;
case -1101886458:
iVar0 = 56;
break;
case -1398740829:
iVar0 = 57;
break;
case 1939258347:
iVar0 = 58;
break;
case -1004151544:
iVar0 = 59;
break;
case -822873436:
iVar0 = 60;
break;
case -1445222284:
iVar0 = 61;
break;
case -63910623:
iVar0 = 62;
break;
case 101834979:
iVar0 = 63;
break;
case -673512330:
iVar0 = 64;
break;
case -423845319:
iVar0 = 65;
break;
case 963561372:
iVar0 = 66;
break;
case 1384839636:
iVar0 = 67;
break;
case -1712879828:
iVar0 = 68;
break;
case -951688727:
iVar0 = 69;
break;
case -1132639145:
iVar0 = 70;
break;
case -513632731:
iVar0 = 71;
break;
case 263680718:
iVar0 = 72;
break;
case 36296627:
iVar0 = 73;
break;
case 800240324:
iVar0 = 74;
break;
case 614243480:
iVar0 = 75;
break;
case 1408138043:
iVar0 = 76;
break;
case 957564293:
iVar0 = 77;
break;
case -1614279399:
iVar0 = 78;
break;
case -1451286393:
iVar0 = 79;
break;
case -1758069771:
iVar0 = 80;
break;
case -1225475222:
iVar0 = 81;
break;
case -1992892433:
iVar0 = 82;
break;
case -1838157215:
iVar0 = 83;
break;
case 1688803028:
iVar0 = 84;
break;
case 1844259164:
iVar0 = 85;
break;
case 1070943545:
iVar0 = 86;
break;
case 1234460855:
iVar0 = 87;
break;
case -753798460:
iVar0 = 88;
break;
case -1453351072:
iVar0 = 89;
break;
case -1308053326:
iVar0 = 90;
break;
case -2083859401:
iVar0 = 91;
break;
case 1586137527:
iVar0 = 92;
break;
case 1884564810:
iVar0 = 93;
break;
case 1092964089:
iVar0 = 94;
break;
case 1264280421:
iVar0 = 95;
break;
case 496601058:
iVar0 = 96;
break;
case 861352797:
iVar0 = 97;
break;
case 1418328330:
iVar0 = 98;
break;
case 1784554566:
iVar0 = 99;
break;
}
switch (iParam0)
{
case 2081736627:
iVar0 = 100;
break;
case -1897271971:
iVar0 = 101;
break;
case -1666742056:
iVar0 = 102;
break;
case -1282165072:
iVar0 = 103;
break;
case -1052880379:
iVar0 = 104;
break;
case -745474390:
iVar0 = 105;
break;
case -515796465:
iVar0 = 106;
break;
case -811206225:
iVar0 = 107;
break;
case -1586815686:
iVar0 = 108;
break;
case -1423429452:
iVar0 = 109;
break;
case -1697869815:
iVar0 = 110;
break;
case -1470846183:
iVar0 = 111;
break;
case 1093884035:
iVar0 = 112;
break;
case 861256904:
iVar0 = 113;
break;
case 603201029:
iVar0 = 114;
break;
case 1991426949:
iVar0 = 115;
break;
case -135838228:
iVar0 = 116;
break;
case 121616864:
iVar0 = 117;
break;
case -834517002:
iVar0 = 118;
break;
case -403932342:
iVar0 = 119;
break;
case -1179738417:
iVar0 = 120;
break;
case -1022250603:
iVar0 = 121;
break;
case 558694786:
iVar0 = 122;
break;
case 569279177:
iVar0 = 123;
break;
case 544309199:
iVar0 = 124;
break;
case 1190448341:
iVar0 = 125;
break;
case 885139568:
iVar0 = 126;
break;
case -1845683606:
iVar0 = 127;
break;
case -1555317497:
iVar0 = 128;
break;
case 1704673699:
iVar0 = 129;
break;
case 1993401358:
iVar0 = 130;
break;
case 1227065524:
iVar0 = 131;
break;
case -533227790:
iVar0 = 132;
break;
case 309459814:
iVar0 = 133;
break;
case 77815753:
iVar0 = 134;
break;
case -280939203:
iVar0 = 135;
break;
case 1246882601:
iVar0 = 136;
break;
case 314833986:
iVar0 = 137;
break;
case -25635924:
iVar0 = 138;
break;
case 351567983:
iVar0 = 139;
break;
case -2027428652:
iVar0 = 140;
break;
case 962677064:
iVar0 = 141;
break;
case -105475497:
iVar0 = 142;
break;
case 766835283:
iVar0 = 143;
break;
case 471979821:
iVar0 = 144;
break;
case 1122542778:
iVar0 = 145;
break;
case 815530017:
iVar0 = 146;
break;
case 1157900525:
iVar0 = 147;
break;
case 859243859:
iVar0 = 148;
break;
case 2032013608:
iVar0 = 149;
break;
case 1471663700:
iVar0 = 150;
break;
case -1679206722:
iVar0 = 151;
break;
case -309397848:
iVar0 = 152;
break;
case 534666054:
iVar0 = 153;
break;
case -769376301:
iVar0 = 154;
break;
case 1531057961:
iVar0 = 155;
break;
case 1986678137:
iVar0 = 156;
break;
case 2142789653:
iVar0 = 157;
break;
case 7463306:
iVar0 = 158;
break;
case 308053343:
iVar0 = 159;
break;
case 753842819:
iVar0 = 160;
break;
case 1052794406:
iVar0 = 161;
break;
case -695726661:
iVar0 = 162;
break;
case -1001821890:
iVar0 = 163;
break;
case -1425459522:
iVar0 = 164;
break;
case 1412653072:
iVar0 = 165;
break;
case 1163510365:
iVar0 = 166;
break;
case 933242602:
iVar0 = 167;
break;
case -1347021116:
iVar0 = 168;
break;
case 1297354841:
iVar0 = 169;
break;
case -839806574:
iVar0 = 170;
break;
case -542100209:
iVar0 = 171;
break;
case 1472218269:
iVar0 = 172;
break;
case 1783196079:
iVar0 = 173;
break;
case 1007062314:
iVar0 = 174;
break;
case -870732522:
iVar0 = 175;
break;
case 547542627:
iVar0 = 176;
break;
case 863894553:
iVar0 = 177;
break;
case -2099242332:
iVar0 = 178;
break;
case -1860028632:
iVar0 = 179;
break;
case -560967165:
iVar0 = 180;
break;
case -59437904:
iVar0 = 181;
break;
case 757067269:
iVar0 = 182;
break;
case 455625238:
iVar0 = 183;
break;
case -1750514914:
iVar0 = 184;
break;
case -983982466:
iVar0 = 185;
break;
case -232228837:
iVar0 = 186;
break;
case 1558269323:
iVar0 = 187;
break;
case 2070579873:
iVar0 = 188;
break;
case -1203181916:
iVar0 = 189;
break;
case -2112587204:
iVar0 = 190;
break;
case 1942412705:
iVar0 = 191;
break;
case -1846437386:
iVar0 = 192;
break;
case 61799795:
iVar0 = 193;
break;
case -1388490611:
iVar0 = 194;
break;
case -1627212776:
iVar0 = 195;
break;
case 1525246127:
iVar0 = 196;
break;
case -11341151:
iVar0 = 197;
break;
case 516055815:
iVar0 = 198;
break;
case -1034642040:
iVar0 = 199;
break;
}
switch (iParam0)
{
case 1022637316:
iVar0 = 200;
break;
case -1677156418:
iVar0 = 201;
break;
case -1130213300:
iVar0 = 202;
break;
case 104062694:
iVar0 = 203;
break;
case 869579299:
iVar0 = 204;
break;
case 1201332655:
iVar0 = 205;
break;
case 1028967715:
iVar0 = 206;
break;
case -1651634800:
iVar0 = 207;
break;
case -892278763:
iVar0 = 208;
break;
case -1032005779:
iVar0 = 209;
break;
case -255675400:
iVar0 = 210;
break;
case 1890137027:
iVar0 = 211;
break;
case -406805808:
iVar0 = 212;
break;
case -592540500:
iVar0 = 213;
break;
case 205417419:
iVar0 = 214;
break;
case -2127276619:
iVar0 = 215;
break;
case -1362677538:
iVar0 = 216;
break;
case -1549722990:
iVar0 = 217;
break;
case 3495990:
iVar0 = 218;
break;
case -285526590:
iVar0 = 219;
break;
case 1907377338:
iVar0 = 220;
break;
case 2136399879:
iVar0 = 221;
break;
case 1568410532:
iVar0 = 222;
break;
case 1068879892:
iVar0 = 223;
break;
case -1592750929:
iVar0 = 224;
break;
case 772896404:
iVar0 = 225;
break;
case -1999229916:
iVar0 = 226;
break;
case -744701520:
iVar0 = 227;
break;
case -425039925:
iVar0 = 228;
break;
case -798409911:
iVar0 = 229;
break;
case 1379974898:
iVar0 = 230;
break;
case -1681436154:
iVar0 = 231;
break;
case -1486919370:
iVar0 = 232;
break;
case 2014677667:
iVar0 = 233;
break;
case 325697857:
iVar0 = 234;
break;
case -1188819501:
iVar0 = 235;
break;
case -1765193438:
iVar0 = 236;
break;
case -1416269126:
iVar0 = 237;
break;
case -2111365154:
iVar0 = 238;
break;
case -1880573087:
iVar0 = 239;
break;
case 1421296887:
iVar0 = 240;
break;
case 1655562468:
iVar0 = 241;
break;
case 946048080:
iVar0 = 242;
break;
case 1188768063:
iVar0 = 243;
break;
case 498456313:
iVar0 = 244;
break;
case 323007907:
iVar0 = 245;
break;
case -1325371100:
iVar0 = 246;
break;
case -829313978:
iVar0 = 247;
break;
case -530624543:
iVar0 = 248;
break;
case -299046020:
iVar0 = 249;
break;
case 1812260650:
iVar0 = 250;
break;
case 2043511487:
iVar0 = 251;
break;
case -1753235933:
iVar0 = 252;
break;
case -1525589690:
iVar0 = 253;
break;
case 31003408:
iVar0 = 254;
break;
case -1864998224:
iVar0 = 255;
break;
case -2140814897:
iVar0 = 256;
break;
case 223468453:
iVar0 = 257;
break;
case -83970305:
iVar0 = 258;
break;
case -406843262:
iVar0 = 259;
break;
case -954740942:
iVar0 = 260;
break;
case -1675526854:
iVar0 = 261;
break;
case 2111717556:
iVar0 = 262;
break;
case -415395003:
iVar0 = 263;
break;
case 427521984:
iVar0 = 264;
break;
case 1570178485:
iVar0 = 265;
break;
case -1619850916:
iVar0 = 266;
break;
case -713067148:
iVar0 = 267;
break;
case 946477614:
iVar0 = 268;
break;
case -1423343701:
iVar0 = 269;
break;
case 445931457:
iVar0 = 270;
break;
case 678558588:
iVar0 = 271;
break;
case -854631987:
iVar0 = 272;
break;
case -1707871209:
iVar0 = 273;
break;
case 1675446188:
iVar0 = 274;
break;
case 1911627074:
iVar0 = 275;
break;
case -607391498:
iVar0 = 276;
break;
case -1544625218:
iVar0 = 277;
break;
case 1185175875:
iVar0 = 278;
break;
case 155591269:
iVar0 = 279;
break;
case -1057958846:
iVar0 = 280;
break;
case -1853795495:
iVar0 = 281;
break;
case -1860485560:
iVar0 = 282;
break;
case 499288642:
iVar0 = 283;
break;
case -7887054:
iVar0 = 284;
break;
case -1553041502:
iVar0 = 285;
break;
case -1080591445:
iVar0 = 286;
break;
case -741060436:
iVar0 = 287;
break;
case 645634644:
iVar0 = 288;
break;
case -1096728771:
iVar0 = 289;
break;
case 503268386:
iVar0 = 290;
break;
case 109804153:
iVar0 = 291;
break;
case 1410910279:
iVar0 = 292;
break;
case 1501700194:
iVar0 = 293;
break;
case -1793199216:
iVar0 = 294;
break;
case 1405944575:
iVar0 = 295;
break;
case 1731382556:
iVar0 = 296;
break;
case 1743809026:
iVar0 = 297;
break;
case 1589237530:
iVar0 = 298;
break;
case -1558441108:
iVar0 = 299;
break;
}
switch (iParam0)
{
case 793815980:
iVar0 = 303;
break;
case 87277824:
iVar0 = 304;
break;
case 1305470790:
iVar0 = 305;
break;
case 252924758:
iVar0 = 306;
break;
case 1043745875:
iVar0 = 307;
break;
case 24304530:
iVar0 = 308;
break;
case 582246031:
iVar0 = 309;
break;
case 1840225396:
iVar0 = 310;
break;
case -47863515:
iVar0 = 311;
break;
case 26968202:
iVar0 = 312;
break;
case 1720638120:
iVar0 = 313;
break;
case 1372737856:
iVar0 = 314;
break;
case -675719916:
iVar0 = 315;
break;
case -610888268:
iVar0 = 316;
break;
case -129698248:
iVar0 = 317;
break;
case 1060644905:
iVar0 = 318;
break;
case 776078819:
iVar0 = 319;
break;
case -1069464482:
iVar0 = 320;
break;
case -1342875239:
iVar0 = 321;
break;
case 1967892405:
iVar0 = 322;
break;
case 642864781:
iVar0 = 323;
break;
case 1270860039:
iVar0 = 324;
break;
case -1290780406:
iVar0 = 325;
break;
case 1127641545:
iVar0 = 326;
break;
case -1221948530:
iVar0 = 327;
break;
case 1954153055:
iVar0 = 328;
break;
case 543727307:
iVar0 = 329;
break;
case -1806626643:
iVar0 = 330;
break;
case 1146362323:
iVar0 = 331;
break;
case -1918158051:
iVar0 = 332;
break;
case -1835082731:
iVar0 = 333;
break;
case 1935907419:
iVar0 = 334;
break;
case 961997868:
iVar0 = 335;
break;
case -415246024:
iVar0 = 336;
break;
case -2003529037:
iVar0 = 337;
break;
case -1272951326:
iVar0 = 338;
break;
case 837851491:
iVar0 = 339;
break;
case -64649653:
iVar0 = 340;
break;
case 1997623301:
iVar0 = 341;
break;
case 1177835340:
iVar0 = 342;
break;
case -1261787835:
iVar0 = 343;
break;
case -965491494:
iVar0 = 344;
break;
case 939374190:
iVar0 = 345;
break;
case 149461503:
iVar0 = 346;
break;
case -1117498985:
iVar0 = 347;
break;
case 1184468662:
iVar0 = 348;
break;
case -772488648:
iVar0 = 349;
break;
case -1399171334:
iVar0 = 350;
break;
case -963164512:
iVar0 = 351;
break;
case -1284517669:
iVar0 = 352;
break;
case 1613773443:
iVar0 = 353;
break;
case 1963092516:
iVar0 = 354;
break;
case -878642668:
iVar0 = 355;
break;
case -1618544925:
iVar0 = 356;
break;
case 1185417232:
iVar0 = 357;
break;
case -1649044153:
iVar0 = 358;
break;
case -1293956525:
iVar0 = 359;
break;
case -84085370:
iVar0 = 360;
break;
case -943861479:
iVar0 = 361;
break;
case -1355455834:
iVar0 = 362;
break;
case 711764191:
iVar0 = 363;
break;
case 41616632:
iVar0 = 364;
break;
case -2053984264:
iVar0 = 365;
break;
case -522832741:
iVar0 = 366;
break;
case 711940316:
iVar0 = 367;
break;
case -1512107004:
iVar0 = 368;
break;
case -273305505:
iVar0 = 369;
break;
case -779122930:
iVar0 = 370;
break;
case 565678099:
iVar0 = 371;
break;
case 2130135469:
iVar0 = 372;
break;
case 2142072717:
iVar0 = 373;
break;
case -636638153:
iVar0 = 374;
break;
case 289539239:
iVar0 = 375;
break;
case -1040822561:
iVar0 = 376;
break;
case 217486581:
iVar0 = 377;
break;
case -2147244302:
iVar0 = 378;
break;
case 830186237:
iVar0 = 379;
break;
case -1902384566:
iVar0 = 380;
break;
case 1471583453:
iVar0 = 381;
break;
case 2007332931:
iVar0 = 382;
break;
case 1104156493:
iVar0 = 383;
break;
case 616400258:
iVar0 = 384;
break;
case 511243162:
iVar0 = 385;
break;
case -477451680:
iVar0 = 386;
break;
case 743616295:
iVar0 = 387;
break;
case 712215816:
iVar0 = 388;
break;
case 1475570942:
iVar0 = 389;
break;
case -1768978416:
iVar0 = 390;
break;
case -2139711822:
iVar0 = 391;
break;
case -1509236263:
iVar0 = 392;
break;
case -1143383459:
iVar0 = 393;
break;
case -1690206781:
iVar0 = 394;
break;
case 1947095236:
iVar0 = 395;
break;
case 300333876:
iVar0 = 396;
break;
case 37732721:
iVar0 = 397;
break;
case 959183706:
iVar0 = 398;
break;
case -1542393224:
iVar0 = 399;
break;
}
switch (iParam0)
{
case 874488242:
iVar0 = 400;
break;
case 1389335000:
iVar0 = 401;
break;
case -366075547:
iVar0 = 402;
break;
case -1125431584:
iVar0 = 403;
break;
case -2000068963:
iVar0 = 404;
break;
case 1497445248:
iVar0 = 405;
break;
case 1989766704:
iVar0 = 406;
break;
case -2086401979:
iVar0 = 407;
break;
case -1846467361:
iVar0 = 408;
break;
case -1325458477:
iVar0 = 409;
break;
case -566725051:
iVar0 = 410;
break;
case -787850263:
iVar0 = 411;
break;
case -1885021085:
iVar0 = 412;
break;
case 979307144:
iVar0 = 413;
break;
case -473732439:
iVar0 = 414;
break;
case 2062186390:
iVar0 = 415;
break;
case -60867780:
iVar0 = 416;
break;
case 926967912:
iVar0 = 417;
break;
case -1886278590:
iVar0 = 418;
break;
case -1314959708:
iVar0 = 419;
break;
case -1696774529:
iVar0 = 420;
break;
case -356446484:
iVar0 = 421;
break;
case 857810380:
iVar0 = 422;
break;
case -629676646:
iVar0 = 423;
break;
case -1879530481:
iVar0 = 424;
break;
case -1265847311:
iVar0 = 425;
break;
case 32094424:
iVar0 = 426;
break;
case 1969286744:
iVar0 = 427;
break;
case 560620683:
iVar0 = 428;
break;
case -148312642:
iVar0 = 429;
break;
case -578277428:
iVar0 = 430;
break;
case -718909970:
iVar0 = 431;
break;
case -859026859:
iVar0 = 432;
break;
case -839897805:
iVar0 = 433;
break;
case 1676439910:
iVar0 = 434;
break;
case -294157184:
iVar0 = 435;
break;
case -1222200221:
iVar0 = 436;
break;
case 874532672:
iVar0 = 437;
break;
case -135929055:
iVar0 = 438;
break;
case 1654917353:
iVar0 = 439;
break;
case -13131391:
iVar0 = 440;
break;
case 154845196:
iVar0 = 441;
break;
case -1147884322:
iVar0 = 442;
break;
case 291693311:
iVar0 = 443;
break;
case -1401933531:
iVar0 = 444;
break;
case 1820267020:
iVar0 = 445;
break;
case 2134488961:
iVar0 = 446;
break;
case -1861952745:
iVar0 = 447;
break;
case 994458405:
iVar0 = 448;
break;
case -1931715008:
iVar0 = 449;
break;
case 1308745884:
iVar0 = 450;
break;
case -1322955084:
iVar0 = 451;
break;
case -816658183:
iVar0 = 452;
break;
case -988307698:
iVar0 = 453;
break;
case -1341411308:
iVar0 = 454;
break;
case 1865570599:
iVar0 = 455;
break;
case -549458010:
iVar0 = 456;
break;
case -1328545177:
iVar0 = 457;
break;
case -1361353619:
iVar0 = 458;
break;
case 1103253806:
iVar0 = 459;
break;
case -24183456:
iVar0 = 460;
break;
case 436214104:
iVar0 = 461;
break;
case 2072615278:
iVar0 = 462;
break;
case -1131891426:
iVar0 = 463;
break;
case 1392085456:
iVar0 = 464;
break;
case 2035895234:
iVar0 = 465;
break;
case 368784798:
iVar0 = 466;
break;
case 1398938833:
iVar0 = 467;
break;
case 1250040566:
iVar0 = 468;
break;
case 2133228190:
iVar0 = 469;
break;
case 675551540:
iVar0 = 470;
break;
case -1826137848:
iVar0 = 471;
break;
case -144105601:
iVar0 = 472;
break;
case -748983650:
iVar0 = 473;
break;
case 630291027:
iVar0 = 474;
break;
case 293950434:
iVar0 = 475;
break;
case 1857352111:
iVar0 = 476;
break;
case -777671131:
iVar0 = 477;
break;
case 221602924:
iVar0 = 478;
break;
case 2039295216:
iVar0 = 479;
break;
case 1800147054:
iVar0 = 480;
break;
case -2019505897:
iVar0 = 481;
break;
case 1647997020:
iVar0 = 482;
break;
case -1405854945:
iVar0 = 483;
break;
case -1171294997:
iVar0 = 484;
break;
case -77076350:
iVar0 = 485;
break;
case 775569873:
iVar0 = 486;
break;
case 330569485:
iVar0 = 487;
break;
case -1549217620:
iVar0 = 488;
break;
case 1674429052:
iVar0 = 489;
break;
case -254669596:
iVar0 = 490;
break;
case 1802602254:
iVar0 = 491;
break;
case -941072260:
iVar0 = 492;
break;
case -1844749517:
iVar0 = 493;
break;
case 82745424:
iVar0 = 494;
break;
case -673460083:
iVar0 = 495;
break;
case -99954496:
iVar0 = 496;
break;
case 2078163456:
iVar0 = 497;
break;
case 1362343227:
iVar0 = 498;
break;
case 1176005743:
iVar0 = 499;
break;
}
switch (iParam0)
{
case -1504557219:
iVar0 = 500;
break;
case 367912881:
iVar0 = 501;
break;
case -836343280:
iVar0 = 502;
break;
case -46521805:
iVar0 = 503;
break;
case -743048780:
iVar0 = 504;
break;
case 1294865118:
iVar0 = 505;
break;
case -1479686374:
iVar0 = 506;
break;
case 256017193:
iVar0 = 507;
break;
case 1232443120:
iVar0 = 508;
break;
case -803282271:
iVar0 = 509;
break;
case 1788600442:
iVar0 = 510;
break;
case 1439605343:
iVar0 = 511;
break;
case -1094679264:
iVar0 = 512;
break;
case 1230482241:
iVar0 = 513;
break;
case 2054714291:
iVar0 = 514;
break;
case 192117676:
iVar0 = 515;
break;
case -2071204405:
iVar0 = 516;
break;
case -1618181476:
iVar0 = 517;
break;
case -1408253665:
iVar0 = 518;
break;
case -134185391:
iVar0 = 519;
break;
case -785783411:
iVar0 = 520;
break;
case -633466710:
iVar0 = 521;
break;
case -2072487372:
iVar0 = 522;
break;
case 1211025296:
iVar0 = 523;
break;
case 742659337:
iVar0 = 524;
break;
case 1365533160:
iVar0 = 525;
break;
case 1213205618:
iVar0 = 526;
break;
case -164052103:
iVar0 = 527;
break;
case -1306490297:
iVar0 = 528;
break;
case -994802645:
iVar0 = 529;
break;
case 637406209:
iVar0 = 530;
break;
case -170855031:
iVar0 = 531;
break;
case 1333098305:
iVar0 = 532;
break;
case 119103934:
iVar0 = 533;
break;
case -141369051:
iVar0 = 534;
break;
case -593355218:
iVar0 = 535;
break;
case 316832763:
iVar0 = 536;
break;
case -393713544:
iVar0 = 537;
break;
case -1876234625:
iVar0 = 538;
break;
case -1453082334:
iVar0 = 539;
break;
case -1397705983:
iVar0 = 540;
break;
case -1278086171:
iVar0 = 541;
break;
case -1510892268:
iVar0 = 542;
break;
case 204876084:
iVar0 = 543;
break;
case -988359492:
iVar0 = 544;
break;
case 975745281:
iVar0 = 545;
break;
case 591099372:
iVar0 = 546;
break;
case -1014948306:
iVar0 = 547;
break;
case -1866439788:
iVar0 = 548;
break;
case -1265767186:
iVar0 = 549;
break;
case 2070931859:
iVar0 = 550;
break;
case 413611416:
iVar0 = 551;
break;
case 765001063:
iVar0 = 552;
break;
case -686624622:
iVar0 = 553;
break;
case -937548349:
iVar0 = 554;
break;
case 212584159:
iVar0 = 555;
break;
case -328340062:
iVar0 = 556;
break;
case 1657725123:
iVar0 = 557;
break;
case -1517964336:
iVar0 = 558;
break;
case -785490239:
iVar0 = 559;
break;
case -11769229:
iVar0 = 560;
break;
case 745912106:
iVar0 = 561;
break;
case -2064265098:
iVar0 = 562;
break;
case -1515892875:
iVar0 = 563;
break;
case 1368234729:
iVar0 = 564;
break;
case 1960230923:
iVar0 = 565;
break;
case -860169810:
iVar0 = 566;
break;
case -177882114:
iVar0 = 567;
break;
case 661384509:
iVar0 = 568;
break;
case 1221860095:
iVar0 = 569;
break;
case 698192473:
iVar0 = 570;
break;
case -817251083:
iVar0 = 571;
break;
case -1108876323:
iVar0 = 572;
break;
case 1274482696:
iVar0 = 573;
break;
case 468009056:
iVar0 = 574;
break;
case 2063732427:
iVar0 = 575;
break;
case -764016411:
iVar0 = 576;
break;
case -1530816149:
iVar0 = 577;
break;
case 1189996018:
iVar0 = 578;
break;
case -210110115:
iVar0 = 579;
break;
case -207110256:
iVar0 = 580;
break;
case 1801308144:
iVar0 = 581;
break;
case 320631086:
iVar0 = 582;
break;
case 1022560466:
iVar0 = 583;
break;
case -952946041:
iVar0 = 584;
break;
case 1321460664:
iVar0 = 585;
break;
case -781625914:
iVar0 = 586;
break;
case -1522247835:
iVar0 = 587;
break;
case -1531245231:
iVar0 = 588;
break;
case -1070472994:
iVar0 = 589;
break;
case -2113341060:
iVar0 = 590;
break;
case 965047293:
iVar0 = 591;
break;
case 2114285045:
iVar0 = 592;
break;
case -1635032213:
iVar0 = 593;
break;
case 1310864345:
iVar0 = 594;
break;
case -973977633:
iVar0 = 595;
break;
case -1439643329:
iVar0 = 596;
break;
case 434150104:
iVar0 = 597;
break;
case 1243301688:
iVar0 = 598;
break;
case -1233567982:
iVar0 = 599;
break;
}
switch (iParam0)
{
case 1262886680:
iVar0 = 600;
break;
case 283135569:
iVar0 = 601;
break;
case -548917969:
iVar0 = 602;
break;
case 153465812:
iVar0 = 603;
break;
case 1916093085:
iVar0 = 604;
break;
case -701486200:
iVar0 = 605;
break;
case 1951718630:
iVar0 = 606;
break;
case -1981978861:
iVar0 = 607;
break;
case -1998094267:
iVar0 = 608;
break;
case -718445629:
iVar0 = 609;
break;
case -35697399:
iVar0 = 610;
break;
case -899081349:
iVar0 = 611;
break;
case 1123547916:
iVar0 = 612;
break;
case -1139893782:
iVar0 = 613;
break;
case 1446511785:
iVar0 = 614;
break;
case 1234256191:
iVar0 = 615;
break;
case 413901048:
iVar0 = 616;
break;
case 1527450164:
iVar0 = 617;
break;
case -1786525476:
iVar0 = 618;
break;
case 1439516635:
iVar0 = 619;
break;
case 733800794:
iVar0 = 620;
break;
case -399223540:
iVar0 = 621;
break;
case -1894392230:
iVar0 = 622;
break;
case 229993415:
iVar0 = 623;
break;
case -620189683:
iVar0 = 624;
break;
case 1846617794:
iVar0 = 625;
break;
case -1142479347:
iVar0 = 626;
break;
case -512960025:
iVar0 = 627;
break;
case -759812557:
iVar0 = 628;
break;
case 468661890:
iVar0 = 629;
break;
case 1907925586:
iVar0 = 630;
break;
case 646243571:
iVar0 = 631;
break;
case 1953935161:
iVar0 = 632;
break;
case 874867224:
iVar0 = 633;
break;
case 1344008898:
iVar0 = 634;
break;
case 1297781304:
iVar0 = 635;
break;
case 1977233252:
iVar0 = 636;
break;
case -194410344:
iVar0 = 637;
break;
case 392012609:
iVar0 = 638;
break;
case 705148450:
iVar0 = 639;
break;
case 1677522529:
iVar0 = 640;
break;
case -1362677538:
iVar0 = 641;
break;
case 863458948:
iVar0 = 642;
break;
case 9874621:
iVar0 = 643;
break;
case 1809338990:
iVar0 = 644;
break;
case -346939959:
iVar0 = 645;
break;
case -934753544:
iVar0 = 646;
break;
case 1604986209:
iVar0 = 647;
break;
case -1514700421:
iVar0 = 648;
break;
case 1177361060:
iVar0 = 649;
break;
case -937529288:
iVar0 = 650;
break;
case 547723644:
iVar0 = 651;
break;
case 1750314531:
iVar0 = 652;
break;
case -988332613:
iVar0 = 653;
break;
case 80720443:
iVar0 = 654;
break;
case -1220194634:
iVar0 = 655;
break;
case -925735153:
iVar0 = 656;
break;
case -1403745446:
iVar0 = 657;
break;
case -1084626028:
iVar0 = 658;
break;
case 2060572320:
iVar0 = 659;
break;
case 1064377095:
iVar0 = 660;
break;
case -1985597576:
iVar0 = 661;
break;
case -2003189104:
iVar0 = 662;
break;
case 1452329956:
iVar0 = 663;
break;
case 1928573506:
iVar0 = 664;
break;
case -185753722:
iVar0 = 665;
break;
case -1580916109:
iVar0 = 666;
break;
case -1077059973:
iVar0 = 667;
break;
case 131755133:
iVar0 = 668;
break;
case -253351038:
iVar0 = 669;
break;
case 1332845224:
iVar0 = 670;
break;
case -685051870:
iVar0 = 671;
break;
case 2122847199:
iVar0 = 672;
break;
case -149940744:
iVar0 = 673;
break;
case -147741130:
iVar0 = 674;
break;
case 302211868:
iVar0 = 675;
break;
case -1361568592:
iVar0 = 676;
break;
case -156600218:
iVar0 = 677;
break;
case 1592739450:
iVar0 = 678;
break;
case -633744004:
iVar0 = 679;
break;
case -1467745952:
iVar0 = 680;
break;
case 1129961041:
iVar0 = 681;
break;
case -1221180772:
iVar0 = 682;
break;
case 1957517559:
iVar0 = 683;
break;
case -335233377:
iVar0 = 684;
break;
case 2146762380:
iVar0 = 685;
break;
case 427236107:
iVar0 = 686;
break;
case -49636427:
iVar0 = 687;
break;
case 1988133312:
iVar0 = 688;
break;
case 40044091:
iVar0 = 689;
break;
case -1189893809:
iVar0 = 690;
break;
case 1182549017:
iVar0 = 691;
break;
case 1403255481:
iVar0 = 692;
break;
case 821579887:
iVar0 = 693;
break;
case 1975948161:
iVar0 = 694;
break;
case -953362234:
iVar0 = 695;
break;
case 1521494915:
iVar0 = 696;
break;
case 84635211:
iVar0 = 697;
break;
case 2074655231:
iVar0 = 698;
break;
case 1742494019:
iVar0 = 699;
break;
}
switch (iParam0)
{
case 1841934566:
iVar0 = 700;
break;
case 1648222412:
iVar0 = 701;
break;
case 1019312748:
iVar0 = 702;
break;
case -1218730541:
iVar0 = 703;
break;
case -88186884:
iVar0 = 704;
break;
case 1428588096:
iVar0 = 705;
break;
case -1788493673:
iVar0 = 706;
break;
case -241894528:
iVar0 = 707;
break;
case -1425414573:
iVar0 = 708;
break;
case 1797163947:
iVar0 = 709;
break;
case 823191231:
iVar0 = 710;
break;
case 894133321:
iVar0 = 711;
break;
case 1889485313:
iVar0 = 712;
break;
case 687338866:
iVar0 = 713;
break;
case 1827923343:
iVar0 = 714;
break;
case -1893751733:
iVar0 = 715;
break;
case 1739151647:
iVar0 = 716;
break;
case 1361186211:
iVar0 = 717;
break;
case -188624940:
iVar0 = 718;
break;
case -1097074643:
iVar0 = 719;
break;
case -609708185:
iVar0 = 720;
break;
case 1295911115:
iVar0 = 721;
break;
case -1694728829:
iVar0 = 722;
break;
case -322091380:
iVar0 = 723;
break;
case -1168575065:
iVar0 = 724;
break;
case 756873456:
iVar0 = 725;
break;
case -730037708:
iVar0 = 726;
break;
case -970458486:
iVar0 = 727;
break;
case 975601953:
iVar0 = 728;
break;
case 1614208560:
iVar0 = 729;
break;
case -726032561:
iVar0 = 730;
break;
case -1824987162:
iVar0 = 731;
break;
case 417579524:
iVar0 = 732;
break;
case 734151492:
iVar0 = 733;
break;
case -1766862320:
iVar0 = 734;
break;
case 579562906:
iVar0 = 735;
break;
case -619754931:
iVar0 = 736;
break;
case 1424441799:
iVar0 = 737;
break;
case -1405036369:
iVar0 = 738;
break;
case 1929056908:
iVar0 = 739;
break;
case -34538790:
iVar0 = 740;
break;
case 1898518287:
iVar0 = 741;
break;
case -893104650:
iVar0 = 742;
break;
case -553814424:
iVar0 = 743;
break;
case 201431212:
iVar0 = 744;
break;
case 528695215:
iVar0 = 745;
break;
case -1266435389:
iVar0 = 746;
break;
case 980213248:
iVar0 = 747;
break;
case 1019119277:
iVar0 = 748;
break;
case 1187710323:
iVar0 = 749;
break;
case 382848971:
iVar0 = 750;
break;
case -1567832243:
iVar0 = 751;
break;
case 2049506430:
iVar0 = 752;
break;
case 92806870:
iVar0 = 753;
break;
case -628203424:
iVar0 = 754;
break;
case 2125178682:
iVar0 = 755;
break;
case 399660858:
iVar0 = 756;
break;
case -624842093:
iVar0 = 757;
break;
case 282885412:
iVar0 = 758;
break;
case 1599917585:
iVar0 = 759;
break;
case -703540963:
iVar0 = 760;
break;
case 904358018:
iVar0 = 761;
break;
case 560877895:
iVar0 = 762;
break;
case 2145953489:
iVar0 = 763;
break;
case -87437351:
iVar0 = 764;
break;
case -187239215:
iVar0 = 765;
break;
case 1481255878:
iVar0 = 766;
break;
case 1805700785:
iVar0 = 767;
break;
case -368780168:
iVar0 = 768;
break;
case 1457900554:
iVar0 = 769;
break;
case -1066127505:
iVar0 = 770;
break;
case -1366750043:
iVar0 = 771;
break;
case 1944822196:
iVar0 = 772;
break;
case -1639289459:
iVar0 = 773;
break;
case 1282565442:
iVar0 = 774;
break;
case -884280700:
iVar0 = 775;
break;
case -1047313079:
iVar0 = 776;
break;
case 1849315700:
iVar0 = 777;
break;
case -2129853791:
iVar0 = 778;
break;
case -643974508:
iVar0 = 779;
break;
case 614424236:
iVar0 = 780;
break;
case 2059836334:
iVar0 = 781;
break;
case 221447729:
iVar0 = 782;
break;
case 1965910391:
iVar0 = 783;
break;
case 1822250244:
iVar0 = 784;
break;
case 2144765713:
iVar0 = 785;
break;
case 280971002:
iVar0 = 786;
break;
case -1869294378:
iVar0 = 787;
break;
case -869172334:
iVar0 = 788;
break;
case -1028499109:
iVar0 = 789;
break;
case 1076096084:
iVar0 = 790;
break;
case -636780127:
iVar0 = 791;
break;
case 603013184:
iVar0 = 792;
break;
case 1351256035:
iVar0 = 793;
break;
case 49108481:
iVar0 = 794;
break;
case 354124980:
iVar0 = 795;
break;
case -962894007:
iVar0 = 796;
break;
case 1617075313:
iVar0 = 797;
break;
case -635749278:
iVar0 = 798;
break;
case -1208904204:
iVar0 = 799;
break;
}
switch (iParam0)
{
case 414914435:
iVar0 = 800;
break;
case -2100006249:
iVar0 = 801;
break;
case 424018111:
iVar0 = 802;
break;
case 849119336:
iVar0 = 803;
break;
case 1807228945:
iVar0 = 804;
break;
case -1119071247:
iVar0 = 805;
break;
case -1146714704:
iVar0 = 806;
break;
case -288852985:
iVar0 = 807;
break;
case -562029507:
iVar0 = 808;
break;
case -470534615:
iVar0 = 809;
break;
case 371389080:
iVar0 = 810;
break;
case -521204587:
iVar0 = 811;
break;
case 1685732560:
iVar0 = 812;
break;
case -1386443378:
iVar0 = 813;
break;
case -1706648281:
iVar0 = 814;
break;
case -519957866:
iVar0 = 815;
break;
case 653935582:
iVar0 = 816;
break;
case 2111779395:
iVar0 = 817;
break;
case 428988289:
iVar0 = 818;
break;
case -1903962822:
iVar0 = 819;
break;
case 1365770911:
iVar0 = 820;
break;
case 42029862:
iVar0 = 821;
break;
case 438631811:
iVar0 = 822;
break;
case -1478715891:
iVar0 = 823;
break;
case -1395531229:
iVar0 = 824;
break;
case 30333135:
iVar0 = 825;
break;
case 1783341339:
iVar0 = 826;
break;
case -16077126:
iVar0 = 827;
break;
case -833643184:
iVar0 = 828;
break;
case 163330499:
iVar0 = 829;
break;
case 667415171:
iVar0 = 830;
break;
case 242101919:
iVar0 = 831;
break;
case 163238890:
iVar0 = 832;
break;
case 1859431148:
iVar0 = 833;
break;
case -1736964311:
iVar0 = 834;
break;
case 843062770:
iVar0 = 835;
break;
case -1233797068:
iVar0 = 836;
break;
case 1480738976:
iVar0 = 837;
break;
case -960020839:
iVar0 = 838;
break;
case 444195464:
iVar0 = 839;
break;
case 1370108117:
iVar0 = 840;
break;
case -88227822:
iVar0 = 841;
break;
case 239540513:
iVar0 = 842;
break;
case 1420328020:
iVar0 = 843;
break;
case 621404024:
iVar0 = 844;
break;
case -1918622460:
iVar0 = 845;
break;
case -947347525:
iVar0 = 846;
break;
case 292920241:
iVar0 = 847;
break;
case 720930282:
iVar0 = 848;
break;
case 143213281:
iVar0 = 849;
break;
case -164042492:
iVar0 = 850;
break;
case -1370021995:
iVar0 = 851;
break;
case 1397178481:
iVar0 = 852;
break;
case -716829520:
iVar0 = 853;
break;
case -478457952:
iVar0 = 854;
break;
case 1825323565:
iVar0 = 855;
break;
case -1122655717:
iVar0 = 856;
break;
case -356634497:
iVar0 = 857;
break;
case -1346341418:
iVar0 = 858;
break;
case -1214222467:
iVar0 = 859;
break;
case -1079776812:
iVar0 = 860;
break;
case -948990166:
iVar0 = 861;
break;
case 1382201813:
iVar0 = 862;
break;
case 1576375706:
iVar0 = 863;
break;
case -1356500517:
iVar0 = 864;
break;
case 1838019927:
iVar0 = 865;
break;
case 618955885:
iVar0 = 866;
break;
case 909858453:
iVar0 = 867;
break;
case 1809389163:
iVar0 = 868;
break;
case -382370447:
iVar0 = 869;
break;
case -290949038:
iVar0 = 870;
break;
case 381474823:
iVar0 = 871;
break;
case 570088958:
iVar0 = 872;
break;
case 1093167087:
iVar0 = 873;
break;
case -1327397746:
iVar0 = 874;
break;
case 655777349:
iVar0 = 875;
break;
case -1496905620:
iVar0 = 876;
break;
case -1043010182:
iVar0 = 877;
break;
case -1326077011:
iVar0 = 878;
break;
case -1120323372:
iVar0 = 879;
break;
case -1583620927:
iVar0 = 880;
break;
case 1407674396:
iVar0 = 881;
break;
case -244079832:
iVar0 = 882;
break;
case 1055951410:
iVar0 = 883;
break;
case 1092910333:
iVar0 = 884;
break;
case -1874854660:
iVar0 = 885;
break;
case -1379192256:
iVar0 = 886;
break;
case 1435106801:
iVar0 = 887;
break;
case -1252683947:
iVar0 = 888;
break;
case -1380607703:
iVar0 = 889;
break;
case 1010167914:
iVar0 = 890;
break;
case 1059266367:
iVar0 = 891;
break;
case 1869746711:
iVar0 = 892;
break;
case 167494616:
iVar0 = 893;
break;
case 231256171:
iVar0 = 894;
break;
case -2041196288:
iVar0 = 895;
break;
case -231795220:
iVar0 = 896;
break;
case -1207463639:
iVar0 = 897;
break;
case 2023442158:
iVar0 = 898;
break;
case -1293194083:
iVar0 = 899;
break;
}
switch (iParam0)
{
case 767365246:
iVar0 = 900;
break;
case -318042939:
iVar0 = 901;
break;
case -740608006:
iVar0 = 902;
break;
case 126660566:
iVar0 = 903;
break;
case -252733393:
iVar0 = 904;
break;
case -1044136613:
iVar0 = 905;
break;
case -891762294:
iVar0 = 906;
break;
case 1410738248:
iVar0 = 907;
break;
case -1978727490:
iVar0 = 908;
break;
case 1684642458:
iVar0 = 909;
break;
case -147490340:
iVar0 = 910;
break;
case -1422117996:
iVar0 = 911;
break;
case -313931425:
iVar0 = 912;
break;
case 211076563:
iVar0 = 913;
break;
case 355035035:
iVar0 = 914;
break;
case -1447308868:
iVar0 = 915;
break;
case 1802655618:
iVar0 = 916;
break;
case -1063742156:
iVar0 = 917;
break;
case 1988028531:
iVar0 = 918;
break;
case 73898487:
iVar0 = 919;
break;
case -1041813118:
iVar0 = 920;
break;
case -964420554:
iVar0 = 921;
break;
case 1817749559:
iVar0 = 922;
break;
case 1403640225:
iVar0 = 923;
break;
case 1306937694:
iVar0 = 924;
break;
case -95533995:
iVar0 = 925;
break;
case -1871451886:
iVar0 = 926;
break;
case -1120843246:
iVar0 = 927;
break;
case 2081997561:
iVar0 = 928;
break;
case -1339214923:
iVar0 = 929;
break;
case 9807447:
iVar0 = 930;
break;
case -236005319:
iVar0 = 931;
break;
case -1470794594:
iVar0 = 932;
break;
case -2100868384:
iVar0 = 933;
break;
case 805626890:
iVar0 = 934;
break;
case -438487729:
iVar0 = 935;
break;
case 1258452311:
iVar0 = 936;
break;
case -1387587887:
iVar0 = 937;
break;
case 390131826:
iVar0 = 938;
break;
case -933865090:
iVar0 = 939;
break;
case 42888304:
iVar0 = 940;
break;
case -1512618189:
iVar0 = 941;
break;
case 1805955770:
iVar0 = 942;
break;
case 2040741242:
iVar0 = 943;
break;
case -1572115827:
iVar0 = 944;
break;
case -2101278774:
iVar0 = 945;
break;
case -2006216868:
iVar0 = 946;
break;
case 1445470992:
iVar0 = 947;
break;
case 31459402:
iVar0 = 948;
break;
case 850282323:
iVar0 = 949;
break;
case 1518409673:
iVar0 = 950;
break;
case 576453072:
iVar0 = 951;
break;
case 1343575520:
iVar0 = 952;
break;
case -1244055789:
iVar0 = 953;
break;
case 1650491806:
iVar0 = 954;
break;
case 507754313:
iVar0 = 955;
break;
case -1168735793:
iVar0 = 956;
break;
case 539301314:
iVar0 = 957;
break;
case 485114319:
iVar0 = 958;
break;
case 1397146165:
iVar0 = 959;
break;
case -922912500:
iVar0 = 960;
break;
case 898093918:
iVar0 = 961;
break;
case -513817029:
iVar0 = 962;
break;
case 134762953:
iVar0 = 963;
break;
case 252404144:
iVar0 = 964;
break;
case 168579849:
iVar0 = 965;
break;
case 1888095634:
iVar0 = 966;
break;
case -1046236786:
iVar0 = 967;
break;
case 33901453:
iVar0 = 968;
break;
case -2043232938:
iVar0 = 969;
break;
case 1113927554:
iVar0 = 970;
break;
case -1602559301:
iVar0 = 971;
break;
case -1167812298:
iVar0 = 972;
break;
case 1912961832:
iVar0 = 973;
break;
case 647456058:
iVar0 = 974;
break;
case -717523161:
iVar0 = 975;
break;
case -1641870267:
iVar0 = 976;
break;
case 1857030685:
iVar0 = 977;
break;
case -1074922646:
iVar0 = 978;
break;
case -1544308671:
iVar0 = 979;
break;
case -480375220:
iVar0 = 980;
break;
case -1158306419:
iVar0 = 981;
break;
case 808115088:
iVar0 = 982;
break;
case 1544542048:
iVar0 = 983;
break;
case 212713658:
iVar0 = 984;
break;
case -537477127:
iVar0 = 985;
break;
case -2067132678:
iVar0 = 986;
break;
case 1060051174:
iVar0 = 987;
break;
case 2038375002:
iVar0 = 988;
break;
case -256374303:
iVar0 = 989;
break;
case -2088960010:
iVar0 = 990;
break;
case 53750878:
iVar0 = 991;
break;
case -162426614:
iVar0 = 992;
break;
case 764954331:
iVar0 = 993;
break;
case -111852222:
iVar0 = 994;
break;
case -2132895820:
iVar0 = 995;
break;
case -1693221374:
iVar0 = 996;
break;
case 1413331587:
iVar0 = 997;
break;
case -955872734:
iVar0 = 998;
break;
case -858057022:
iVar0 = 999;
break;
}
switch (iParam0)
{
case 848913252:
iVar0 = 1000;
break;
case -437731710:
iVar0 = 1001;
break;
case -1554819122:
iVar0 = 1002;
break;
case 160748074:
iVar0 = 1003;
break;
case -1994066555:
iVar0 = 1004;
break;
case 1529932499:
iVar0 = 1005;
break;
case -768319839:
iVar0 = 1006;
break;
case 514923246:
iVar0 = 1007;
break;
case 2095668450:
iVar0 = 1008;
break;
case -1360851461:
iVar0 = 1009;
break;
case -1204294910:
iVar0 = 1010;
break;
case 825438363:
iVar0 = 1011;
break;
case 1442163504:
iVar0 = 1012;
break;
case -518038969:
iVar0 = 1013;
break;
case -1562358717:
iVar0 = 1014;
break;
case -1942234381:
iVar0 = 1015;
break;
case 1848637041:
iVar0 = 1016;
break;
case -1724314576:
iVar0 = 1017;
break;
case 1610788609:
iVar0 = 1018;
break;
case 438240239:
iVar0 = 1019;
break;
case -532184873:
iVar0 = 1020;
break;
case -176418916:
iVar0 = 1021;
break;
case -255254961:
iVar0 = 1022;
break;
case -1575657225:
iVar0 = 1023;
break;
case 712387083:
iVar0 = 1024;
break;
case 1409023355:
iVar0 = 1025;
break;
case 1855924338:
iVar0 = 1026;
break;
case -851809867:
iVar0 = 1027;
break;
case -710322017:
iVar0 = 1028;
break;
case 1830521267:
iVar0 = 1029;
break;
case 171269136:
iVar0 = 1030;
break;
case 13553741:
iVar0 = 1031;
break;
case 798116039:
iVar0 = 1032;
break;
case 899953426:
iVar0 = 1033;
break;
case -1781084925:
iVar0 = 1034;
break;
case -1001719981:
iVar0 = 1035;
break;
case -849489038:
iVar0 = 1036;
break;
case 789088101:
iVar0 = 1037;
break;
case -899132837:
iVar0 = 1038;
break;
case -1844999955:
iVar0 = 1039;
break;
case 701640495:
iVar0 = 1040;
break;
case -1582889838:
iVar0 = 1041;
break;
case -242968503:
iVar0 = 1042;
break;
case 914325248:
iVar0 = 1043;
break;
case 1925867880:
iVar0 = 1044;
break;
case 1100261909:
iVar0 = 1045;
break;
case -689792496:
iVar0 = 1046;
break;
}
if (iVar0 != -1)
{
*uParam1 = (129 + iVar0);
return 1;
}
return 0;
}
int func_449(int iParam0, var uParam1)
{
int iVar0;
iVar0 = -1;
switch (iParam0)
{
case -1917324065:
iVar0 = 0;
break;
case 1056297333:
iVar0 = 1;
break;
case 494620709:
iVar0 = 2;
break;
case 800453786:
iVar0 = 3;
break;
case -1082736975:
iVar0 = 4;
break;
case -754981437:
iVar0 = 5;
break;
case -1801855538:
iVar0 = 6;
break;
case 459313194:
iVar0 = 7;
break;
case 2007087579:
iVar0 = 8;
break;
case 1987172386:
iVar0 = 9;
break;
case 1801787829:
iVar0 = 10;
break;
case -221624488:
iVar0 = 11;
break;
case 25158851:
iVar0 = 12;
break;
case 472458130:
iVar0 = 13;
break;
case 164352862:
iVar0 = 14;
break;
case -904148779:
iVar0 = 15;
break;
case -694439771:
iVar0 = 16;
break;
case -1469590466:
iVar0 = 17;
break;
case -1511207100:
iVar0 = 18;
break;
case -1352670678:
iVar0 = 19;
break;
case -1960273476:
iVar0 = 20;
break;
case -1657389609:
iVar0 = 21;
break;
case 1826839858:
iVar0 = 22;
break;
case 1989701788:
iVar0 = 23;
break;
case 1213109257:
iVar0 = 24;
break;
case 607407061:
iVar0 = 25;
break;
case 875031480:
iVar0 = 26;
break;
case 1487418552:
iVar0 = 27;
break;
case 264053475:
iVar0 = 28;
break;
case 99094329:
iVar0 = 29;
break;
case -244193715:
iVar0 = 30;
break;
case -540785934:
iVar0 = 31;
break;
case -694833003:
iVar0 = 32;
break;
case -852058665:
iVar0 = 33;
break;
case -1512648940:
iVar0 = 34;
break;
case -761354077:
iVar0 = 35;
break;
case 1560551467:
iVar0 = 36;
break;
case 827974775:
iVar0 = 37;
break;
case 1595162603:
iVar0 = 38;
break;
case 709663738:
iVar0 = 39;
break;
case 990002533:
iVar0 = 40;
break;
case 1860213958:
iVar0 = 41;
break;
case 2119318441:
iVar0 = 42;
break;
case -1953737187:
iVar0 = 43;
break;
case 193320466:
iVar0 = 44;
break;
case 1936646403:
iVar0 = 45;
break;
case -1126042648:
iVar0 = 46;
break;
case -1125022512:
iVar0 = 47;
break;
case -1304369017:
iVar0 = 48;
break;
case -2018143375:
iVar0 = 49;
break;
case 224730392:
iVar0 = 50;
break;
case 439629494:
iVar0 = 51;
break;
case 736778786:
iVar0 = 52;
break;
case 1048444745:
iVar0 = 53;
break;
case 1988816738:
iVar0 = 54;
break;
case 2140603469:
iVar0 = 55;
break;
case 214245031:
iVar0 = 56;
break;
case 1006238992:
iVar0 = 57;
break;
case 689952604:
iVar0 = 58;
break;
case -681528353:
iVar0 = 59;
break;
case 1157448359:
iVar0 = 60;
break;
case 43105745:
iVar0 = 61;
break;
case -270395278:
iVar0 = 62;
break;
case 505181414:
iVar0 = 63;
break;
case 254662409:
iVar0 = 64;
break;
case -982924414:
iVar0 = 65;
break;
case -1156010272:
iVar0 = 66;
break;
case 1885313391:
iVar0 = 67;
break;
case -694786597:
iVar0 = 68;
break;
case -1950199756:
iVar0 = 69;
break;
case 384168721:
iVar0 = 70;
break;
case -369452741:
iVar0 = 71;
break;
case -89113946:
iVar0 = 72;
break;
case 1836261422:
iVar0 = 73;
break;
case -1004417654:
iVar0 = 74;
break;
case -754095263:
iVar0 = 75;
break;
case -1210698509:
iVar0 = 76;
break;
case 1332405298:
iVar0 = 77;
break;
case 552929095:
iVar0 = 78;
break;
case 861154309:
iVar0 = 79;
break;
case -1653801207:
iVar0 = 80;
break;
case -87213624:
iVar0 = 81;
break;
case 1285643631:
iVar0 = 82;
break;
case 523240077:
iVar0 = 83;
break;
case 823174734:
iVar0 = 84;
break;
case -1248612522:
iVar0 = 85;
break;
case 123359970:
iVar0 = 86;
break;
case 369684543:
iVar0 = 87;
break;
case -337142787:
iVar0 = 88;
break;
case 1395583642:
iVar0 = 89;
break;
case 1782520810:
iVar0 = 90;
break;
case -660506451:
iVar0 = 91;
break;
case -1092860637:
iVar0 = 92;
break;
case 524387820:
iVar0 = 93;
break;
case -1829180023:
iVar0 = 94;
break;
case 2091368679:
iVar0 = 95;
break;
case 1851597906:
iVar0 = 96;
break;
case -434629734:
iVar0 = 97;
break;
case 1415278623:
iVar0 = 98;
break;
case 1252285617:
iVar0 = 99;
break;
}
switch (iParam0)
{
case 893595891:
iVar0 = 100;
break;
case 423819507:
iVar0 = 101;
break;
case -1433887872:
iVar0 = 102;
break;
case -464613621:
iVar0 = 103;
break;
case -301227387:
iVar0 = 104;
break;
case -701762906:
iVar0 = 105;
break;
case -890282963:
iVar0 = 106;
break;
case -1188251480:
iVar0 = 107;
break;
case 258827560:
iVar0 = 108;
break;
case 965649655:
iVar0 = 109;
break;
case 718800778:
iVar0 = 110;
break;
case 1959959422:
iVar0 = 111;
break;
case 1200177388:
iVar0 = 112;
break;
case -1874439579:
iVar0 = 113;
break;
case -1679505893:
iVar0 = 114;
break;
case -1976229188:
iVar0 = 115;
break;
case 2037875009:
iVar0 = 116;
break;
case -235146664:
iVar0 = 117;
break;
case -441853516:
iVar0 = 118;
break;
case -664221443:
iVar0 = 119;
break;
case -371627042:
iVar0 = 120;
break;
case -1266220742:
iVar0 = 121;
break;
case -968055611:
iVar0 = 122;
break;
case 248100286:
iVar0 = 123;
break;
case 551606764:
iVar0 = 124;
break;
case 1805971315:
iVar0 = 125;
break;
case -43642121:
iVar0 = 126;
break;
case 1172251624:
iVar0 = 127;
break;
case 1471989667:
iVar0 = 128;
break;
case -2124702788:
iVar0 = 129;
break;
case -1826734271:
iVar0 = 130;
break;
case -900452940:
iVar0 = 131;
break;
case -292194762:
iVar0 = 132;
break;
case 637166847:
iVar0 = 133;
break;
case -1204844181:
iVar0 = 134;
break;
case 324779970:
iVar0 = 135;
break;
case 329039940:
iVar0 = 136;
break;
case 1854928425:
iVar0 = 137;
break;
case 13179549:
iVar0 = 138;
break;
case 1899823455:
iVar0 = 139;
break;
case -2090490448:
iVar0 = 140;
break;
case -1801467868:
iVar0 = 141;
break;
case 953986562:
iVar0 = 142;
break;
case 585335312:
iVar0 = 143;
break;
case 489617063:
iVar0 = 144;
break;
case 210195800:
iVar0 = 145;
break;
case 1843402776:
iVar0 = 146;
break;
case -1600520821:
iVar0 = 147;
break;
case 1399087889:
iVar0 = 148;
break;
case 1169344430:
iVar0 = 149;
break;
case -2028647818:
iVar0 = 150;
break;
case -1335845620:
iVar0 = 151;
break;
case -1450406320:
iVar0 = 152;
break;
case -1209849091:
iVar0 = 153;
break;
case 2065609077:
iVar0 = 154;
break;
case -664245241:
iVar0 = 155;
break;
case 1676130538:
iVar0 = 156;
break;
case -1730534702:
iVar0 = 157;
break;
case -1767432596:
iVar0 = 158;
break;
case -2016105604:
iVar0 = 159;
break;
case 1971947238:
iVar0 = 160;
break;
case -362811247:
iVar0 = 161;
break;
case -668087251:
iVar0 = 162;
break;
case -821282326:
iVar0 = 163;
break;
case -1083467095:
iVar0 = 164;
break;
case 550067555:
iVar0 = 165;
break;
case 1439221609:
iVar0 = 166;
break;
case 67412954:
iVar0 = 167;
break;
case -1999360357:
iVar0 = 168;
break;
case 1461537582:
iVar0 = 169;
break;
case -1828273408:
iVar0 = 170;
break;
case -1319239762:
iVar0 = 171;
break;
case -1234400821:
iVar0 = 172;
break;
case -992303449:
iVar0 = 173;
break;
case -638398249:
iVar0 = 174;
break;
case -41543683:
iVar0 = 175;
break;
case -1934903018:
iVar0 = 176;
break;
case 2132090345:
iVar0 = 177;
break;
case 1751052413:
iVar0 = 178;
break;
case 1519604966:
iVar0 = 179;
break;
case -1964624525:
iVar0 = 180;
break;
case 2006191823:
iVar0 = 181;
break;
case 1633280603:
iVar0 = 182;
break;
case 632918673:
iVar0 = 183;
break;
case -190040148:
iVar0 = 184;
break;
case 42936837:
iVar0 = 185;
break;
case -1458541976:
iVar0 = 186;
break;
case -606014753:
iVar0 = 187;
break;
case -613376371:
iVar0 = 188;
break;
case -446291501:
iVar0 = 189;
break;
case 739308497:
iVar0 = 190;
break;
case 495343292:
iVar0 = 191;
break;
case -1686711653:
iVar0 = 192;
break;
case 1187457341:
iVar0 = 193;
break;
case 956403122:
iVar0 = 194;
break;
case 1647042566:
iVar0 = 195;
break;
case -461478743:
iVar0 = 196;
break;
case -1883325653:
iVar0 = 197;
break;
case -2114248796:
iVar0 = 198;
break;
case 314228205:
iVar0 = 199;
break;
}
switch (iParam0)
{
case 1503775674:
iVar0 = 200;
break;
case 1862399610:
iVar0 = 201;
break;
case 708472048:
iVar0 = 202;
break;
case -1207367545:
iVar0 = 203;
break;
case 111650251:
iVar0 = 204;
break;
case -28941494:
iVar0 = 205;
break;
case -1827173138:
iVar0 = 206;
break;
case -520681423:
iVar0 = 207;
break;
case -209343154:
iVar0 = 208;
break;
case -293579471:
iVar0 = 209;
break;
case 20871853:
iVar0 = 210;
break;
case -89823344:
iVar0 = 211;
break;
case -1820191335:
iVar0 = 212;
break;
case -1588547274:
iVar0 = 213;
break;
case -1224287070:
iVar0 = 214;
break;
case -994150383:
iVar0 = 215;
break;
case -869824793:
iVar0 = 216;
break;
case -633330920:
iVar0 = 217;
break;
case -308131364:
iVar0 = 218;
break;
case -38278649:
iVar0 = 219;
break;
case 555692245:
iVar0 = 220;
break;
case 929455459:
iVar0 = 221;
break;
case -2092436411:
iVar0 = 222;
break;
case 1904300216:
iVar0 = 223;
break;
case -1599361268:
iVar0 = 224;
break;
case -1897002095:
iVar0 = 225;
break;
case -1011813098:
iVar0 = 226;
break;
case -1316794181:
iVar0 = 227;
break;
case -416105443:
iVar0 = 228;
break;
case -47978497:
iVar0 = 229;
break;
case -358202620:
iVar0 = 230;
break;
case 547139312:
iVar0 = 231;
break;
case 1124688073:
iVar0 = 232;
break;
case 888521890:
iVar0 = 233;
break;
case 665823766:
iVar0 = 234;
break;
case 427888057:
iVar0 = 235;
break;
case 1121411181:
iVar0 = 236;
break;
case 890225886:
iVar0 = 237;
break;
case 651012186:
iVar0 = 238;
break;
case 422776101:
iVar0 = 239;
break;
case 1630543134:
iVar0 = 240;
break;
case -1945668916:
iVar0 = 241;
break;
case -627999265:
iVar0 = 242;
break;
case 1682346315:
iVar0 = 243;
break;
case 1021952654:
iVar0 = 244;
break;
case 1319396867:
iVar0 = 245;
break;
case 560794517:
iVar0 = 246;
break;
case 858697496:
iVar0 = 247;
break;
case -30981230:
iVar0 = 248;
break;
case -328032215:
iVar0 = 249;
break;
case -1451681225:
iVar0 = 250;
break;
case 267904819:
iVar0 = 251;
break;
case 1570178485:
iVar0 = 252;
break;
case -1619850916:
iVar0 = 253;
break;
case -713067148:
iVar0 = 254;
break;
case 946477614:
iVar0 = 255;
break;
case -1423343701:
iVar0 = 256;
break;
case 445931457:
iVar0 = 257;
break;
case 678558588:
iVar0 = 258;
break;
case -854631987:
iVar0 = 259;
break;
case -1707871209:
iVar0 = 260;
break;
case -863391184:
iVar0 = 261;
break;
case 671171671:
iVar0 = 262;
break;
case 904519720:
iVar0 = 263;
break;
case 670952414:
iVar0 = 264;
break;
case -282875325:
iVar0 = 265;
break;
case 2079623104:
iVar0 = 266;
break;
case 1088443427:
iVar0 = 267;
break;
case 200001600:
iVar0 = 268;
break;
case 1620729159:
iVar0 = 269;
break;
case -1713274238:
iVar0 = 270;
break;
case -1571590969:
iVar0 = 271;
break;
case -457639374:
iVar0 = 272;
break;
case 64160805:
iVar0 = 273;
break;
case 1015325203:
iVar0 = 274;
break;
case -1951778967:
iVar0 = 275;
break;
case 1836042304:
iVar0 = 276;
break;
case -421094621:
iVar0 = 277;
break;
case 641062099:
iVar0 = 278;
break;
case 597454468:
iVar0 = 279;
break;
case 713758205:
iVar0 = 280;
break;
case 1042267708:
iVar0 = 281;
break;
case -637951661:
iVar0 = 282;
break;
case 195911857:
iVar0 = 283;
break;
case 903988957:
iVar0 = 284;
break;
case 1068170761:
iVar0 = 285;
break;
case -619065384:
iVar0 = 286;
break;
case -497085955:
iVar0 = 287;
break;
case 1138369002:
iVar0 = 288;
break;
case -1957731308:
iVar0 = 289;
break;
case -2063712125:
iVar0 = 290;
break;
case 1773674262:
iVar0 = 291;
break;
case 1027059614:
iVar0 = 292;
break;
case 1366782677:
iVar0 = 293;
break;
case 216134256:
iVar0 = 294;
break;
case 810154442:
iVar0 = 295;
break;
case 77285961:
iVar0 = 296;
break;
case 1617489838:
iVar0 = 297;
break;
case 1697138602:
iVar0 = 298;
break;
case 711811694:
iVar0 = 299;
break;
}
switch (iParam0)
{
case -895106351:
iVar0 = 300;
break;
case 875367934:
iVar0 = 301;
break;
case -979867160:
iVar0 = 302;
break;
case -1233816942:
iVar0 = 303;
break;
case -866958715:
iVar0 = 304;
break;
case -1303573005:
iVar0 = 305;
break;
case 2085207152:
iVar0 = 306;
break;
case 857137150:
iVar0 = 307;
break;
case 535952639:
iVar0 = 308;
break;
case -1974657401:
iVar0 = 309;
break;
case 129909013:
iVar0 = 310;
break;
case -1499060170:
iVar0 = 311;
break;
case 412032123:
iVar0 = 312;
break;
case 915049044:
iVar0 = 313;
break;
case 456478679:
iVar0 = 314;
break;
case 907364848:
iVar0 = 315;
break;
case -1783721060:
iVar0 = 316;
break;
case -1008363280:
iVar0 = 317;
break;
case 1429817922:
iVar0 = 318;
break;
case -938326281:
iVar0 = 319;
break;
case -1073925235:
iVar0 = 320;
break;
case 1498524677:
iVar0 = 321;
break;
case 1525596308:
iVar0 = 322;
break;
case 1232639216:
iVar0 = 323;
break;
case 956061600:
iVar0 = 324;
break;
case 816551665:
iVar0 = 325;
break;
case 2049704410:
iVar0 = 326;
break;
case -796818724:
iVar0 = 327;
break;
case 1775476370:
iVar0 = 328;
break;
case 266230635:
iVar0 = 329;
break;
case -588549683:
iVar0 = 330;
break;
case 464027076:
iVar0 = 331;
break;
case 2122049260:
iVar0 = 332;
break;
case 1049130700:
iVar0 = 333;
break;
case -116952560:
iVar0 = 334;
break;
case 1424723115:
iVar0 = 335;
break;
case -1007272003:
iVar0 = 336;
break;
case -644829701:
iVar0 = 337;
break;
case -2103222497:
iVar0 = 338;
break;
case -1589795073:
iVar0 = 339;
break;
case -1689668067:
iVar0 = 340;
break;
case -189814108:
iVar0 = 341;
break;
case -1595292141:
iVar0 = 342;
break;
case -1540940714:
iVar0 = 343;
break;
case -2136471172:
iVar0 = 344;
break;
case -666892434:
iVar0 = 345;
break;
case -1001125323:
iVar0 = 346;
break;
case 904104464:
iVar0 = 347;
break;
case 690016265:
iVar0 = 348;
break;
case 38190590:
iVar0 = 349;
break;
case 2119761078:
iVar0 = 350;
break;
case -1213131712:
iVar0 = 351;
break;
case 990079224:
iVar0 = 352;
break;
case -905045993:
iVar0 = 353;
break;
case 2104378143:
iVar0 = 354;
break;
case -666631800:
iVar0 = 355;
break;
case 549954933:
iVar0 = 356;
break;
case 1830069972:
iVar0 = 357;
break;
case 859320876:
iVar0 = 358;
break;
case -552358316:
iVar0 = 359;
break;
case 1522216340:
iVar0 = 360;
break;
case -1783296601:
iVar0 = 361;
break;
case 283995288:
iVar0 = 362;
break;
case -975534410:
iVar0 = 363;
break;
case -2088194624:
iVar0 = 364;
break;
case 1744801848:
iVar0 = 365;
break;
case -481389646:
iVar0 = 366;
break;
case -1781363036:
iVar0 = 367;
break;
case 496009839:
iVar0 = 368;
break;
case -667608820:
iVar0 = 369;
break;
case 460475899:
iVar0 = 370;
break;
case 1491168919:
iVar0 = 371;
break;
case -1611478806:
iVar0 = 372;
break;
case 523495612:
iVar0 = 373;
break;
case -78008273:
iVar0 = 374;
break;
case -762375847:
iVar0 = 375;
break;
case 331482129:
iVar0 = 376;
break;
case -2083628050:
iVar0 = 377;
break;
case -468800117:
iVar0 = 378;
break;
case 724819757:
iVar0 = 379;
break;
case -1058761348:
iVar0 = 380;
break;
case -546178212:
iVar0 = 381;
break;
case -118052734:
iVar0 = 382;
break;
case 1654466691:
iVar0 = 383;
break;
case -1077553649:
iVar0 = 384;
break;
case -886092159:
iVar0 = 385;
break;
case -1406331536:
iVar0 = 386;
break;
case -1968934850:
iVar0 = 387;
break;
case 3741245:
iVar0 = 388;
break;
case 1387838298:
iVar0 = 389;
break;
case -1941058219:
iVar0 = 390;
break;
case 955033120:
iVar0 = 391;
break;
case 677119231:
iVar0 = 392;
break;
case -1616214916:
iVar0 = 393;
break;
case -841195297:
iVar0 = 394;
break;
case -909289279:
iVar0 = 395;
break;
case -239567341:
iVar0 = 396;
break;
case -613592707:
iVar0 = 397;
break;
case -988568374:
iVar0 = 398;
break;
case -1090807654:
iVar0 = 399;
break;
}
switch (iParam0)
{
case 534771589:
iVar0 = 400;
break;
case -1340139519:
iVar0 = 401;
break;
case -849980761:
iVar0 = 402;
break;
case -551553478:
iVar0 = 403;
break;
case 386581472:
iVar0 = 404;
break;
case 1466454525:
iVar0 = 405;
break;
case 283190173:
iVar0 = 406;
break;
case 1528527015:
iVar0 = 407;
break;
case -1690029966:
iVar0 = 408;
break;
case -1685994466:
iVar0 = 409;
break;
case 255166927:
iVar0 = 410;
break;
case -271257487:
iVar0 = 411;
break;
case 1885215284:
iVar0 = 412;
break;
case -1935156988:
iVar0 = 413;
break;
case 1061465906:
iVar0 = 414;
break;
case -871031729:
iVar0 = 415;
break;
case -101171485:
iVar0 = 416;
break;
case -1590298770:
iVar0 = 417;
break;
case 303441856:
iVar0 = 418;
break;
case -2049689650:
iVar0 = 419;
break;
case 788520303:
iVar0 = 420;
break;
case -859861445:
iVar0 = 421;
break;
case 1045897298:
iVar0 = 422;
break;
case 116964921:
iVar0 = 423;
break;
case -1502257606:
iVar0 = 424;
break;
case -546150284:
iVar0 = 425;
break;
case -357466888:
iVar0 = 426;
break;
case 718674880:
iVar0 = 427;
break;
case -1529401172:
iVar0 = 428;
break;
case 2088037441:
iVar0 = 429;
break;
case 2048866271:
iVar0 = 430;
break;
case -1565431690:
iVar0 = 431;
break;
case -1528465573:
iVar0 = 432;
break;
case 401532197:
iVar0 = 433;
break;
case 826974918:
iVar0 = 434;
break;
case -676067408:
iVar0 = 435;
break;
case 1877289089:
iVar0 = 436;
break;
case 859380017:
iVar0 = 437;
break;
case 233098354:
iVar0 = 438;
break;
case 566101858:
iVar0 = 439;
break;
case 529460830:
iVar0 = 440;
break;
case -1833118141:
iVar0 = 441;
break;
case 422823598:
iVar0 = 442;
break;
case 1450358661:
iVar0 = 443;
break;
case 741089893:
iVar0 = 444;
break;
case 1289848370:
iVar0 = 445;
break;
case 616166430:
iVar0 = 446;
break;
case 1489225316:
iVar0 = 447;
break;
case 753969632:
iVar0 = 448;
break;
case -1182831168:
iVar0 = 449;
break;
case 1545103753:
iVar0 = 450;
break;
case 2090080808:
iVar0 = 451;
break;
case 903606896:
iVar0 = 452;
break;
case 26759391:
iVar0 = 453;
break;
case 1651885364:
iVar0 = 454;
break;
case 729529407:
iVar0 = 455;
break;
case 528802126:
iVar0 = 456;
break;
case -1468003071:
iVar0 = 457;
break;
case 1683696787:
iVar0 = 458;
break;
case -726859160:
iVar0 = 459;
break;
case 1209899578:
iVar0 = 460;
break;
case 930604285:
iVar0 = 461;
break;
case -308584186:
iVar0 = 462;
break;
case -64129874:
iVar0 = 463;
break;
case -1431204514:
iVar0 = 464;
break;
case -1133334304:
iVar0 = 465;
break;
case -1809784771:
iVar0 = 466;
break;
case -1576934998:
iVar0 = 467;
break;
case -1570929684:
iVar0 = 468;
break;
case 1976578151:
iVar0 = 469;
break;
case -441419962:
iVar0 = 470;
break;
case -841238543:
iVar0 = 471;
break;
case 1644315794:
iVar0 = 472;
break;
case 1964334039:
iVar0 = 473;
break;
case -1168614925:
iVar0 = 474;
break;
case -56760095:
iVar0 = 475;
break;
case -1006202521:
iVar0 = 476;
break;
case -1834049539:
iVar0 = 477;
break;
case -2060372580:
iVar0 = 478;
break;
case 1057304170:
iVar0 = 479;
break;
case 1421572640:
iVar0 = 480;
break;
case 481259621:
iVar0 = 481;
break;
case 1227497670:
iVar0 = 482;
break;
case 319276780:
iVar0 = 483;
break;
case 2070827921:
iVar0 = 484;
break;
case 1433629991:
iVar0 = 485;
break;
case -1712994650:
iVar0 = 486;
break;
case 2125094286:
iVar0 = 487;
break;
case 712298404:
iVar0 = 488;
break;
case 1998072324:
iVar0 = 489;
break;
case 1249206960:
iVar0 = 490;
break;
case -621355603:
iVar0 = 491;
break;
case 1570835960:
iVar0 = 492;
break;
case -1254202543:
iVar0 = 493;
break;
case -956136061:
iVar0 = 494;
break;
case -1925480683:
iVar0 = 495;
break;
case 220143168:
iVar0 = 496;
break;
case -1021851577:
iVar0 = 497;
break;
case -773345516:
iVar0 = 498;
break;
case 1091795205:
iVar0 = 499;
break;
}
switch (iParam0)
{
case -1159824040:
iVar0 = 500;
break;
case 1448723789:
iVar0 = 501;
break;
case -488127340:
iVar0 = 502;
break;
case -1964967283:
iVar0 = 503;
break;
case -1635180127:
iVar0 = 504;
break;
case -10501563:
iVar0 = 505;
break;
case 933419071:
iVar0 = 506;
break;
case 1362374839:
iVar0 = 507;
break;
case 488078687:
iVar0 = 508;
break;
case -1869054624:
iVar0 = 509;
break;
case -1817642831:
iVar0 = 510;
break;
case 482472119:
iVar0 = 511;
break;
case -1736839817:
iVar0 = 512;
break;
case 415527077:
iVar0 = 513;
break;
case -907440189:
iVar0 = 514;
break;
case -2099454789:
iVar0 = 515;
break;
case -1719543542:
iVar0 = 516;
break;
case 1848661824:
iVar0 = 517;
break;
case -2018029706:
iVar0 = 518;
break;
case -717212544:
iVar0 = 519;
break;
case -594210450:
iVar0 = 520;
break;
case 1520437442:
iVar0 = 521;
break;
case 374349467:
iVar0 = 522;
break;
case 1533123503:
iVar0 = 523;
break;
case -1832780872:
iVar0 = 524;
break;
case 130721536:
iVar0 = 525;
break;
case 195356001:
iVar0 = 526;
break;
case -556915722:
iVar0 = 527;
break;
case -1930562696:
iVar0 = 528;
break;
case 941227127:
iVar0 = 529;
break;
case -842699589:
iVar0 = 530;
break;
case 1654019571:
iVar0 = 531;
break;
case 224191803:
iVar0 = 532;
break;
case -1996796255:
iVar0 = 533;
break;
case -1850715440:
iVar0 = 534;
break;
case 1603163718:
iVar0 = 535;
break;
case 1567227108:
iVar0 = 536;
break;
case -1630649997:
iVar0 = 537;
break;
case -25727072:
iVar0 = 538;
break;
case -1363418653:
iVar0 = 539;
break;
case 1878229535:
iVar0 = 540;
break;
case 1531050226:
iVar0 = 541;
break;
case 1246243345:
iVar0 = 542;
break;
case 463561930:
iVar0 = 543;
break;
case 1431846777:
iVar0 = 544;
break;
case -460168116:
iVar0 = 545;
break;
case -2015343582:
iVar0 = 546;
break;
case 2051301469:
iVar0 = 547;
break;
case 1887452986:
iVar0 = 548;
break;
case -1551331969:
iVar0 = 549;
break;
case 682382693:
iVar0 = 550;
break;
case 765481743:
iVar0 = 551;
break;
case 1094179010:
iVar0 = 552;
break;
case 1906582382:
iVar0 = 553;
break;
case 1923135102:
iVar0 = 554;
break;
case -964908188:
iVar0 = 555;
break;
case -1145896773:
iVar0 = 556;
break;
case -776248682:
iVar0 = 557;
break;
case 872613482:
iVar0 = 558;
break;
case 1049060638:
iVar0 = 559;
break;
case -927135334:
iVar0 = 560;
break;
case -445820043:
iVar0 = 561;
break;
case 1610045630:
iVar0 = 562;
break;
case -1070800165:
iVar0 = 563;
break;
case -589592162:
iVar0 = 564;
break;
case 1723966869:
iVar0 = 565;
break;
case 402539085:
iVar0 = 566;
break;
case 873283678:
iVar0 = 567;
break;
case -883161109:
iVar0 = 568;
break;
case -1764919154:
iVar0 = 569;
break;
case -2050352513:
iVar0 = 570;
break;
case 1114188021:
iVar0 = 571;
break;
case 1798282399:
iVar0 = 572;
break;
case 1944820428:
iVar0 = 573;
break;
case 100210893:
iVar0 = 574;
break;
case -1699022511:
iVar0 = 575;
break;
case 466917406:
iVar0 = 576;
break;
case -349746245:
iVar0 = 577;
break;
case 715904570:
iVar0 = 578;
break;
case 281777035:
iVar0 = 579;
break;
case 1511283406:
iVar0 = 580;
break;
case -241337647:
iVar0 = 581;
break;
case 748393780:
iVar0 = 582;
break;
case 709511536:
iVar0 = 583;
break;
case -652535466:
iVar0 = 584;
break;
case -1148900842:
iVar0 = 585;
break;
case -271863310:
iVar0 = 586;
break;
case 35654857:
iVar0 = 587;
break;
case 1894813304:
iVar0 = 588;
break;
case 1184660438:
iVar0 = 589;
break;
case -1461750963:
iVar0 = 590;
break;
case 769964545:
iVar0 = 591;
break;
case 1424500982:
iVar0 = 592;
break;
case -1810785185:
iVar0 = 593;
break;
case 837990279:
iVar0 = 594;
break;
case -1357788003:
iVar0 = 595;
break;
case -8210327:
iVar0 = 596;
break;
case 1186553524:
iVar0 = 597;
break;
case 1174934203:
iVar0 = 598;
break;
case -984449089:
iVar0 = 599;
break;
}
switch (iParam0)
{
case -49570837:
iVar0 = 600;
break;
case -1680371785:
iVar0 = 601;
break;
case -1850912390:
iVar0 = 602;
break;
case -1740038087:
iVar0 = 603;
break;
case -619541947:
iVar0 = 604;
break;
case 294240494:
iVar0 = 605;
break;
case -765542196:
iVar0 = 606;
break;
case -1420662645:
iVar0 = 607;
break;
case 331918356:
iVar0 = 608;
break;
case 204953755:
iVar0 = 609;
break;
case 1764172461:
iVar0 = 610;
break;
case 1462870109:
iVar0 = 611;
break;
case -2071014467:
iVar0 = 612;
break;
case 478439238:
iVar0 = 613;
break;
case 796489219:
iVar0 = 614;
break;
case 843279688:
iVar0 = 615;
break;
case 1752551314:
iVar0 = 616;
break;
case 735155845:
iVar0 = 617;
break;
case 1863251462:
iVar0 = 618;
break;
case -2142058763:
iVar0 = 619;
break;
case -207591105:
iVar0 = 620;
break;
case -932813887:
iVar0 = 621;
break;
case -313503199:
iVar0 = 622;
break;
case 718936417:
iVar0 = 623;
break;
case -1107649605:
iVar0 = 624;
break;
case 39090475:
iVar0 = 625;
break;
case 1628251208:
iVar0 = 626;
break;
case -311245907:
iVar0 = 627;
break;
case -942031335:
iVar0 = 628;
break;
case -1285040537:
iVar0 = 629;
break;
case -606706891:
iVar0 = 630;
break;
case -1719095858:
iVar0 = 631;
break;
case 1725502681:
iVar0 = 632;
break;
case 609583888:
iVar0 = 633;
break;
case -1172383155:
iVar0 = 634;
break;
case -3492404:
iVar0 = 635;
break;
case -1006004645:
iVar0 = 636;
break;
case -1937311482:
iVar0 = 637;
break;
case -2065604094:
iVar0 = 638;
break;
case 2028818254:
iVar0 = 639;
break;
case 1624012067:
iVar0 = 640;
break;
case -1877817141:
iVar0 = 641;
break;
case -911576192:
iVar0 = 642;
break;
case -2038013276:
iVar0 = 643;
break;
case -901986542:
iVar0 = 644;
break;
case 1792492176:
iVar0 = 645;
break;
case -86485329:
iVar0 = 646;
break;
case -1083434268:
iVar0 = 647;
break;
case 613606704:
iVar0 = 648;
break;
case -394853815:
iVar0 = 649;
break;
case -1103127620:
iVar0 = 650;
break;
case -1565650506:
iVar0 = 651;
break;
case 1845793118:
iVar0 = 652;
break;
case 105835401:
iVar0 = 653;
break;
case 874268443:
iVar0 = 654;
break;
case 2088424900:
iVar0 = 655;
break;
case -786732051:
iVar0 = 656;
break;
case 2054090970:
iVar0 = 657;
break;
case 1878368697:
iVar0 = 658;
break;
case 569662133:
iVar0 = 659;
break;
case -792802958:
iVar0 = 660;
break;
case 2006001399:
iVar0 = 661;
break;
case 1785762805:
iVar0 = 662;
break;
case 737220320:
iVar0 = 663;
break;
case 1396060544:
iVar0 = 664;
break;
case -1964728736:
iVar0 = 665;
break;
case 1593302778:
iVar0 = 666;
break;
case 84849272:
iVar0 = 667;
break;
case -402776165:
iVar0 = 668;
break;
case -221660734:
iVar0 = 669;
break;
case 1648112645:
iVar0 = 670;
break;
case 2066668749:
iVar0 = 671;
break;
case -4424163:
iVar0 = 672;
break;
case -173288591:
iVar0 = 673;
break;
case 253771760:
iVar0 = 674;
break;
case -1431574022:
iVar0 = 675;
break;
case 959314664:
iVar0 = 676;
break;
case 1670479428:
iVar0 = 677;
break;
case 1779534675:
iVar0 = 678;
break;
case -1268204471:
iVar0 = 679;
break;
case -1937668252:
iVar0 = 680;
break;
case -192802570:
iVar0 = 681;
break;
case 1200380295:
iVar0 = 682;
break;
case -644503216:
iVar0 = 683;
break;
case 496410473:
iVar0 = 684;
break;
case 462780886:
iVar0 = 685;
break;
case 211198653:
iVar0 = 686;
break;
case -504012739:
iVar0 = 687;
break;
case 34276608:
iVar0 = 688;
break;
case -2088223199:
iVar0 = 689;
break;
case 2056773549:
iVar0 = 690;
break;
case 962023066:
iVar0 = 691;
break;
case 893288510:
iVar0 = 692;
break;
case 1963590204:
iVar0 = 693;
break;
case 919272855:
iVar0 = 694;
break;
case 413754974:
iVar0 = 695;
break;
case -1862916472:
iVar0 = 696;
break;
case -1184732039:
iVar0 = 697;
break;
case -143503455:
iVar0 = 698;
break;
case -1119221482:
iVar0 = 699;
break;
}
switch (iParam0)
{
case -1642199958:
iVar0 = 700;
break;
case 133895676:
iVar0 = 701;
break;
case -2040228203:
iVar0 = 702;
break;
case -783643150:
iVar0 = 703;
break;
case 291473683:
iVar0 = 704;
break;
case -545474062:
iVar0 = 705;
break;
case 1013405919:
iVar0 = 706;
break;
case 673922718:
iVar0 = 707;
break;
case -1707377523:
iVar0 = 708;
break;
case 1029334921:
iVar0 = 709;
break;
case -534855486:
iVar0 = 710;
break;
case -516333262:
iVar0 = 711;
break;
case 485135095:
iVar0 = 712;
break;
case 1713551997:
iVar0 = 713;
break;
case -1490658501:
iVar0 = 714;
break;
case -1735635238:
iVar0 = 715;
break;
case 1931303956:
iVar0 = 716;
break;
case -1931617488:
iVar0 = 717;
break;
case -1726332301:
iVar0 = 718;
break;
case -1382922530:
iVar0 = 719;
break;
case 452778672:
iVar0 = 720;
break;
case -1776790350:
iVar0 = 721;
break;
case -1988057295:
iVar0 = 722;
break;
case 816707921:
iVar0 = 723;
break;
case 744446190:
iVar0 = 724;
break;
case 917772807:
iVar0 = 725;
break;
case -292922355:
iVar0 = 726;
break;
case -1495432685:
iVar0 = 727;
break;
case -811147717:
iVar0 = 728;
break;
case -851111149:
iVar0 = 729;
break;
case 1404205290:
iVar0 = 730;
break;
case -1365916084:
iVar0 = 731;
break;
case -422913369:
iVar0 = 732;
break;
case -892793487:
iVar0 = 733;
break;
case -1795208156:
iVar0 = 734;
break;
case 573261452:
iVar0 = 735;
break;
case 2111374302:
iVar0 = 736;
break;
case 1832021545:
iVar0 = 737;
break;
case 209273925:
iVar0 = 738;
break;
case -54254731:
iVar0 = 739;
break;
case 112211142:
iVar0 = 740;
break;
case 1306824915:
iVar0 = 741;
break;
case -1841627189:
iVar0 = 742;
break;
case -1814153457:
iVar0 = 743;
break;
case -46260381:
iVar0 = 744;
break;
case -303409019:
iVar0 = 745;
break;
case -1521133289:
iVar0 = 746;
break;
case -648193607:
iVar0 = 747;
break;
case 820296726:
iVar0 = 748;
break;
case 2025651359:
iVar0 = 749;
break;
case 1082588124:
iVar0 = 750;
break;
case -457752320:
iVar0 = 751;
break;
case 1173525590:
iVar0 = 752;
break;
case -2123485438:
iVar0 = 753;
break;
case -815706791:
iVar0 = 754;
break;
case -1318802347:
iVar0 = 755;
break;
case 306110040:
iVar0 = 756;
break;
case 1828101251:
iVar0 = 757;
break;
case -919314748:
iVar0 = 758;
break;
case 1971111649:
iVar0 = 759;
break;
case -1477471726:
iVar0 = 760;
break;
case -650926235:
iVar0 = 761;
break;
case -618318124:
iVar0 = 762;
break;
case -1820938681:
iVar0 = 763;
break;
case -1532633409:
iVar0 = 764;
break;
case 1605199232:
iVar0 = 765;
break;
case 113768799:
iVar0 = 766;
break;
case -267657422:
iVar0 = 767;
break;
case -543540488:
iVar0 = 768;
break;
case 146774245:
iVar0 = 769;
break;
case -439062355:
iVar0 = 770;
break;
case -187785912:
iVar0 = 771;
break;
case 654127400:
iVar0 = 772;
break;
case -2031558195:
iVar0 = 773;
break;
case -1071879097:
iVar0 = 774;
break;
case 2048147896:
iVar0 = 775;
break;
case -1545551839:
iVar0 = 776;
break;
case -1811149087:
iVar0 = 777;
break;
case -256036523:
iVar0 = 778;
break;
case -247186222:
iVar0 = 779;
break;
case -355946577:
iVar0 = 780;
break;
case 181399885:
iVar0 = 781;
break;
case -1219430710:
iVar0 = 782;
break;
case 928781515:
iVar0 = 783;
break;
case -1757440846:
iVar0 = 784;
break;
case -887356639:
iVar0 = 785;
break;
case -162415909:
iVar0 = 786;
break;
case -1822176783:
iVar0 = 787;
break;
case -131581709:
iVar0 = 788;
break;
case -969415240:
iVar0 = 789;
break;
case 1482211094:
iVar0 = 790;
break;
case 1942093304:
iVar0 = 791;
break;
case 1376322385:
iVar0 = 792;
break;
case 1678423640:
iVar0 = 793;
break;
case 1321477520:
iVar0 = 794;
break;
case -670835215:
iVar0 = 795;
break;
case -32315658:
iVar0 = 796;
break;
case -715501640:
iVar0 = 797;
break;
case 812138662:
iVar0 = 798;
break;
case -1950509905:
iVar0 = 799;
break;
}
switch (iParam0)
{
case 1850969667:
iVar0 = 800;
break;
case 997671095:
iVar0 = 801;
break;
case -1526467268:
iVar0 = 802;
break;
case -881852779:
iVar0 = 803;
break;
case -570992218:
iVar0 = 804;
break;
case -1075500139:
iVar0 = 805;
break;
case -791689054:
iVar0 = 806;
break;
case 699980662:
iVar0 = 807;
break;
case -583230088:
iVar0 = 808;
break;
case 1922201848:
iVar0 = 809;
break;
case -767702908:
iVar0 = 810;
break;
case 1979813112:
iVar0 = 811;
break;
case -2056272592:
iVar0 = 812;
break;
case 909368414:
iVar0 = 813;
break;
case -940321245:
iVar0 = 814;
break;
case -2018521849:
iVar0 = 815;
break;
case 1113883376:
iVar0 = 816;
break;
case 296940654:
iVar0 = 817;
break;
case 388715677:
iVar0 = 818;
break;
case 2121965551:
iVar0 = 819;
break;
case -1233846590:
iVar0 = 820;
break;
case -1448569917:
iVar0 = 821;
break;
case 257911811:
iVar0 = 822;
break;
case 1945550351:
iVar0 = 823;
break;
case 1745422723:
iVar0 = 824;
break;
case 1031130678:
iVar0 = 825;
break;
case -416717212:
iVar0 = 826;
break;
case -1228169566:
iVar0 = 827;
break;
case 1472355612:
iVar0 = 828;
break;
case 19369937:
iVar0 = 829;
break;
case 662247816:
iVar0 = 830;
break;
case -1572191963:
iVar0 = 831;
break;
case -791841628:
iVar0 = 832;
break;
case -1531355431:
iVar0 = 833;
break;
case 2040691909:
iVar0 = 834;
break;
case -2114317157:
iVar0 = 835;
break;
case -2085191627:
iVar0 = 836;
break;
case 946610385:
iVar0 = 837;
break;
case 1384666834:
iVar0 = 838;
break;
case -1850499077:
iVar0 = 839;
break;
case 1599340952:
iVar0 = 840;
break;
case -911004337:
iVar0 = 841;
break;
case 1896039464:
iVar0 = 842;
break;
case 1588676114:
iVar0 = 843;
break;
case -861144593:
iVar0 = 844;
break;
case -29907878:
iVar0 = 845;
break;
case 1886796781:
iVar0 = 846;
break;
case -862474356:
iVar0 = 847;
break;
case 1495413374:
iVar0 = 848;
break;
case 370906922:
iVar0 = 849;
break;
case 531742637:
iVar0 = 850;
break;
case -225805790:
iVar0 = 851;
break;
case -624586952:
iVar0 = 852;
break;
case 915144902:
iVar0 = 853;
break;
case -242746043:
iVar0 = 854;
break;
case 1620048835:
iVar0 = 855;
break;
case -1097603268:
iVar0 = 856;
break;
case -660672539:
iVar0 = 857;
break;
case -4642188:
iVar0 = 858;
break;
case 1855977539:
iVar0 = 859;
break;
case 1537270222:
iVar0 = 860;
break;
case -1226569770:
iVar0 = 861;
break;
case 1641457991:
iVar0 = 862;
break;
case 1366312361:
iVar0 = 863;
break;
case -1557113221:
iVar0 = 864;
break;
case -1690570414:
iVar0 = 865;
break;
case -507204255:
iVar0 = 866;
break;
case -1804897639:
iVar0 = 867;
break;
case -1375233423:
iVar0 = 868;
break;
case 490066935:
iVar0 = 869;
break;
case 1193725595:
iVar0 = 870;
break;
case 628493116:
iVar0 = 871;
break;
case -2112155518:
iVar0 = 872;
break;
case 1511337702:
iVar0 = 873;
break;
case -627666528:
iVar0 = 874;
break;
case 768324163:
iVar0 = 875;
break;
case -1448761813:
iVar0 = 876;
break;
case 868551738:
iVar0 = 877;
break;
case -1021262861:
iVar0 = 878;
break;
case -264447931:
iVar0 = 879;
break;
case -652127435:
iVar0 = 880;
break;
case -610014599:
iVar0 = 881;
break;
case 848073973:
iVar0 = 882;
break;
case 1561087717:
iVar0 = 883;
break;
case 2067249852:
iVar0 = 884;
break;
case 1963924398:
iVar0 = 885;
break;
case -898550276:
iVar0 = 886;
break;
case -1074178691:
iVar0 = 887;
break;
case -368616744:
iVar0 = 888;
break;
case -78566501:
iVar0 = 889;
break;
case 1623651387:
iVar0 = 890;
break;
case -1229980240:
iVar0 = 891;
break;
case -1558321426:
iVar0 = 892;
break;
case 518190097:
iVar0 = 893;
break;
case -1996043294:
iVar0 = 894;
break;
case 1720844546:
iVar0 = 895;
break;
case -20709979:
iVar0 = 896;
break;
case -1617383579:
iVar0 = 897;
break;
case -525135065:
iVar0 = 898;
break;
case 1796039054:
iVar0 = 899;
break;
}
switch (iParam0)
{
case 1250030109:
iVar0 = 900;
break;
case -1195876295:
iVar0 = 901;
break;
case 672890092:
iVar0 = 902;
break;
case 413298313:
iVar0 = 903;
break;
case 1157302328:
iVar0 = 904;
break;
case -1564457471:
iVar0 = 905;
break;
case 1152621988:
iVar0 = 906;
break;
case -1961291349:
iVar0 = 907;
break;
case -1912591074:
iVar0 = 908;
break;
case 1049766626:
iVar0 = 909;
break;
case 450544862:
iVar0 = 910;
break;
case -1015392647:
iVar0 = 911;
break;
case 1742471685:
iVar0 = 912;
break;
case 408116861:
iVar0 = 913;
break;
case -1855327598:
iVar0 = 914;
break;
case 1578402908:
iVar0 = 915;
break;
case -1423366674:
iVar0 = 916;
break;
case 1611107047:
iVar0 = 917;
break;
case 742927305:
iVar0 = 918;
break;
case -1578833665:
iVar0 = 919;
break;
case 773738667:
iVar0 = 920;
break;
case 213007702:
iVar0 = 921;
break;
case 432208089:
iVar0 = 922;
break;
case 35817542:
iVar0 = 923;
break;
case -1786080093:
iVar0 = 924;
break;
case -215923306:
iVar0 = 925;
break;
case 1275581512:
iVar0 = 926;
break;
case -1214009019:
iVar0 = 927;
break;
case 1639713863:
iVar0 = 928;
break;
case 529311368:
iVar0 = 929;
break;
case -1033895864:
iVar0 = 930;
break;
case 924043677:
iVar0 = 931;
break;
case -574749266:
iVar0 = 932;
break;
case 519463901:
iVar0 = 933;
break;
case -643353187:
iVar0 = 934;
break;
case 1571011017:
iVar0 = 935;
break;
case -94540936:
iVar0 = 936;
break;
case 1884218662:
iVar0 = 937;
break;
case -345261869:
iVar0 = 938;
break;
case -1022859058:
iVar0 = 939;
break;
case -1786322924:
iVar0 = 940;
break;
case 2085269022:
iVar0 = 941;
break;
case 1511882653:
iVar0 = 942;
break;
case -506986385:
iVar0 = 943;
break;
case -874081588:
iVar0 = 944;
break;
case -2043405937:
iVar0 = 945;
break;
case 59038842:
iVar0 = 946;
break;
case 1101237057:
iVar0 = 947;
break;
case -657535677:
iVar0 = 948;
break;
case -2093585025:
iVar0 = 949;
break;
case 908383468:
iVar0 = 950;
break;
case -1608760399:
iVar0 = 951;
break;
case 1373660540:
iVar0 = 952;
break;
case 1854316713:
iVar0 = 953;
break;
case -119951196:
iVar0 = 954;
break;
case -1649842228:
iVar0 = 955;
break;
case -1640764925:
iVar0 = 956;
break;
case 1787927716:
iVar0 = 957;
break;
case 104283481:
iVar0 = 958;
break;
case 378263500:
iVar0 = 959;
break;
case -1061215309:
iVar0 = 960;
break;
case 1034166199:
iVar0 = 961;
break;
case 1828057305:
iVar0 = 962;
break;
case -1486297381:
iVar0 = 963;
break;
case -540767159:
iVar0 = 964;
break;
case -1235960692:
iVar0 = 965;
break;
case -329316995:
iVar0 = 966;
break;
case -581880272:
iVar0 = 967;
break;
case -1807345434:
iVar0 = 968;
break;
case -1018409435:
iVar0 = 969;
break;
case -136011898:
iVar0 = 970;
break;
case -2069494727:
iVar0 = 971;
break;
case -642887005:
iVar0 = 972;
break;
case -1810837638:
iVar0 = 973;
break;
case 1034484576:
iVar0 = 974;
break;
case 1979445594:
iVar0 = 975;
break;
case -1533877336:
iVar0 = 976;
break;
case -892254987:
iVar0 = 977;
break;
case -654222260:
iVar0 = 978;
break;
case -152607027:
iVar0 = 979;
break;
case 1211414106:
iVar0 = 980;
break;
case -1178363901:
iVar0 = 981;
break;
case -170830010:
iVar0 = 982;
break;
case 1571032538:
iVar0 = 983;
break;
case -975101512:
iVar0 = 984;
break;
case 1710494656:
iVar0 = 985;
break;
case 1298803936:
iVar0 = 986;
break;
case 669174749:
iVar0 = 987;
break;
case 1344478544:
iVar0 = 988;
break;
case -737204659:
iVar0 = 989;
break;
case 1519364050:
iVar0 = 990;
break;
case -1470963239:
iVar0 = 991;
break;
case 1768755677:
iVar0 = 992;
break;
case -428330966:
iVar0 = 993;
break;
case -532155133:
iVar0 = 994;
break;
case 717197242:
iVar0 = 995;
break;
case -1103242747:
iVar0 = 996;
break;
case 95120204:
iVar0 = 997;
break;
case 1478647927:
iVar0 = 998;
break;
case -1996321684:
iVar0 = 999;
break;
}
switch (iParam0)
{
case -1232815296:
iVar0 = 1000;
break;
case -942600475:
iVar0 = 1001;
break;
case -157448893:
iVar0 = 1002;
break;
case 1273306186:
iVar0 = 1003;
break;
case -393833589:
iVar0 = 1004;
break;
case 1108909619:
iVar0 = 1005;
break;
case -1547493052:
iVar0 = 1006;
break;
case -558224274:
iVar0 = 1007;
break;
case 2039104212:
iVar0 = 1008;
break;
case 269443194:
iVar0 = 1009;
break;
case -1335458450:
iVar0 = 1010;
break;
case -538608496:
iVar0 = 1011;
break;
case 760412020:
iVar0 = 1012;
break;
case -1423594652:
iVar0 = 1013;
break;
case -749306822:
iVar0 = 1014;
break;
case -1357502125:
iVar0 = 1015;
break;
case -1697184517:
iVar0 = 1016;
break;
case 2069079025:
iVar0 = 1017;
break;
case 165790469:
iVar0 = 1018;
break;
case -1996334680:
iVar0 = 1019;
break;
case -1718451770:
iVar0 = 1020;
break;
case -1351890796:
iVar0 = 1021;
break;
case -708316325:
iVar0 = 1022;
break;
case 343427644:
iVar0 = 1023;
break;
case 997385641:
iVar0 = 1024;
break;
case 829594522:
iVar0 = 1025;
break;
case -755577025:
iVar0 = 1026;
break;
case 1130349640:
iVar0 = 1027;
break;
case 235241707:
iVar0 = 1028;
break;
case 177991867:
iVar0 = 1029;
break;
case 632622256:
iVar0 = 1030;
break;
case 1897109337:
iVar0 = 1031;
break;
case -1277167165:
iVar0 = 1032;
break;
case -2040688458:
iVar0 = 1033;
break;
case 2053577657:
iVar0 = 1034;
break;
case 1475157023:
iVar0 = 1035;
break;
}
if (iVar0 != -1)
{
*uParam1 = (129 + iVar0);
return 1;
}
return 0;
}
int func_450(int iParam0, int iParam1, int iParam2)
{
int iVar0;
int iVar1;
var uVar2;
iVar0 = 0;
if (iParam1 == -1)
{
iParam1 = func_18();
}
iVar1 = func_452(iParam0, iParam1);
uVar2 = func_451(iParam0);
if (0 != iVar1)
{
iVar0 = unk_0x07EEB31CF063DAB7(iVar1, uVar2, iParam2);
}
return iVar0;
}
int func_451(int iParam0)
{
int iVar0;
iVar0 = 0;
if (iParam0 >= 0 && iParam0 < 192)
{
iVar0 = ((iParam0 - 0) - unk_0x12FA763CEA4960B5((iParam0 - 0)) * 64);
}
else if (iParam0 >= 192 && iParam0 < 384)
{
iVar0 = ((iParam0 - 192) - unk_0x12FA763CEA4960B5((iParam0 - 192)) * 64);
}
else if (iParam0 >= 513 && iParam0 < 705)
{
iVar0 = ((iParam0 - 513) - unk_0x12FA763CEA4960B5((iParam0 - 513)) * 64);
}
else if (iParam0 >= 705 && iParam0 < 1281)
{
iVar0 = ((iParam0 - 705) - unk_0x12FA763CEA4960B5((iParam0 - 705)) * 64);
}
else if (iParam0 >= 2919 && iParam0 < 3111)
{
iVar0 = ((iParam0 - 2919) - unk_0x12FA763CEA4960B5((iParam0 - 2919)) * 64);
}
else if (iParam0 >= 3111 && iParam0 < 3879)
{
iVar0 = ((iParam0 - 3111) - unk_0x12FA763CEA4960B5((iParam0 - 3111)) * 64);
}
else if (iParam0 >= 4335 && iParam0 < 4399)
{
iVar0 = ((iParam0 - 4335) - unk_0x12FA763CEA4960B5((iParam0 - 4335)) * 64);
}
else if (iParam0 >= 4207 && iParam0 < 4335)
{
iVar0 = ((iParam0 - 4207) - unk_0x12FA763CEA4960B5((iParam0 - 4207)) * 64);
}
else if (iParam0 >= 6029 && iParam0 < 6413)
{
iVar0 = ((iParam0 - 6029) - unk_0x12FA763CEA4960B5((iParam0 - 6029)) * 64);
}
else if (iParam0 >= 7385 && iParam0 < 7641)
{
iVar0 = ((iParam0 - 7385) - unk_0x12FA763CEA4960B5((iParam0 - 7385)) * 64);
}
else if (iParam0 >= 7321 && iParam0 < 7385)
{
iVar0 = ((iParam0 - 7321) - unk_0x12FA763CEA4960B5((iParam0 - 7321)) * 64);
}
else if (iParam0 >= 9361 && iParam0 < 9553)
{
iVar0 = ((iParam0 - 9361) - unk_0x12FA763CEA4960B5((iParam0 - 9361)) * 64);
}
else if (iParam0 >= 15369 && iParam0 < 15561)
{
iVar0 = ((iParam0 - 15369) - unk_0x12FA763CEA4960B5((iParam0 - 15369)) * 64);
}
else if (iParam0 >= 15562 && iParam0 < 15946)
{
iVar0 = ((iParam0 - 15562) - unk_0x12FA763CEA4960B5((iParam0 - 15562)) * 64);
}
else if (iParam0 >= 15946 && iParam0 < 16010)
{
iVar0 = ((iParam0 - 15946) - unk_0x12FA763CEA4960B5((iParam0 - 15946)) * 64);
}
else if (iParam0 >= 18098 && iParam0 < 18162)
{
iVar0 = ((iParam0 - 18098) - unk_0x12FA763CEA4960B5((iParam0 - 18098)) * 64);
}
else if (iParam0 >= 22066 && iParam0 < 22194)
{
iVar0 = ((iParam0 - 22066) - unk_0x12FA763CEA4960B5((iParam0 - 22066)) * 64);
}
else if (iParam0 >= 24962 && iParam0 < 25538)
{
iVar0 = ((iParam0 - 24962) - unk_0x12FA763CEA4960B5((iParam0 - 24962)) * 64);
}
return iVar0;
}
int func_452(int iParam0, int iParam1)
{
int iVar0;
if (iParam1 == -1)
{
iParam1 = func_18();
}
iVar0 = 0;
if (iParam0 >= 0 && iParam0 < 192)
{
iVar0 = unk_0xF84B918DCDA549C0((iParam0 - 0), 0, 1, iParam1);
}
else if (iParam0 >= 192 && iParam0 < 384)
{
iVar0 = unk_0xF84B918DCDA549C0((iParam0 - 192), 1, 1, iParam1);
}
else if (iParam0 >= 513 && iParam0 < 705)
{
iVar0 = unk_0xF84B918DCDA549C0((iParam0 - 513), 0, 0, 0);
}
else if (iParam0 >= 705 && iParam0 < 1281)
{
iVar0 = unk_0xF84B918DCDA549C0((iParam0 - 705), 1, 0, 0);
}
else if (iParam0 >= 2919 && iParam0 < 3111)
{
iVar0 = unk_0x7D93C2914375D70B((iParam0 - 2919), 0, 0, 0);
}
else if (iParam0 >= 3111 && iParam0 < 3879)
{
iVar0 = unk_0x7D93C2914375D70B((iParam0 - 3111), 0, 1, iParam1);
}
else if (iParam0 >= 4335 && iParam0 < 4399)
{
iVar0 = unk_0xD7C999E88C211597((iParam0 - 4335), 0, 0, 0, "_NGPSTAT_BOOL");
}
else if (iParam0 >= 4207 && iParam0 < 4335)
{
iVar0 = unk_0xD7C999E88C211597((iParam0 - 4207), 0, 1, iParam1, "_NGPSTAT_BOOL");
}
else if (iParam0 >= 6029 && iParam0 < 6413)
{
iVar0 = unk_0xD7C999E88C211597((iParam0 - 6029), 0, 1, iParam1, "_NGTATPSTAT_BOOL");
}
else if (iParam0 >= 7321 && iParam0 < 7385)
{
iVar0 = unk_0xD7C999E88C211597((iParam0 - 7321), 0, 0, 0, "_NGDLCPSTAT_BOOL");
}
else if (iParam0 >= 7385 && iParam0 < 7641)
{
iVar0 = unk_0xD7C999E88C211597((iParam0 - 7385), 0, 1, iParam1, "_NGDLCPSTAT_BOOL");
}
else if (iParam0 >= 9361 && iParam0 < 9553)
{
iVar0 = unk_0xD7C999E88C211597((iParam0 - 9361), 0, 1, iParam1, "_DLCBIKEPSTAT_BOOL");
}
else if (iParam0 >= 15369 && iParam0 < 15561)
{
iVar0 = unk_0xD7C999E88C211597((iParam0 - 15369), 0, 1, iParam1, "_DLCGUNPSTAT_BOOL");
}
else if (iParam0 >= 15562 && iParam0 < 15946)
{
iVar0 = unk_0xD7C999E88C211597((iParam0 - 15562), 0, 1, iParam1, "_GUNTATPSTAT_BOOL");
}
else if (iParam0 >= 15946 && iParam0 < 16010)
{
iVar0 = unk_0xD7C999E88C211597((iParam0 - 15946), 0, 1, iParam1, "_DLCSMUGCHARPSTAT_BOOL");
}
else if (iParam0 >= 18098 && iParam0 < 18162)
{
iVar0 = unk_0xD7C999E88C211597((iParam0 - 18098), 0, 1, iParam1, "_GANGOPSPSTAT_BOOL");
}
else if (iParam0 >= 22066 && iParam0 < 22194)
{
iVar0 = unk_0xD7C999E88C211597((iParam0 - 22066), 0, 1, iParam1, "_BUSINESSBATPSTAT_BOOL");
}
else if (iParam0 >= 24962 && iParam0 < 25538)
{
iVar0 = unk_0xD7C999E88C211597((iParam0 - 24962), 0, 1, iParam1, "_ARENAWARSPSTAT_BOOL");
}
return iVar0;
}
int func_453(int iParam0, char* sParam1, int iParam2, int iParam3, int iParam4, bool bParam5, bool bParam6, bool bParam7, bool bParam8)
{
int iVar0;
int iVar1;
iVar0 = unk_0x8F474E419F56E48D(iParam0);
if (iParam4 == 0)
{
iVar1 = func_455(iVar0, sParam1, iParam4);
iParam4 = unk_0xFEB6EEC0545AF7AA(func_454(iVar1));
}
if (iParam3 == 449512698)
{
return 0;
}
switch (iParam4)
{
case -793495770:
case -763917073:
case -1409061796:
case -2066166276:
case 849089063:
case 1192230427:
case -454273031:
case -1459967458:
case 1548327796:
case -1238079313:
case 129912816:
case -1469750959:
case 1586504577:
case 1753976524:
case 1361645381:
case -388268096:
if (bParam5)
{
return 0;
}
if ((((iParam4 == -793495770 || (iParam4 == -1409061796 && iVar0 == joaat("mp_f_freemode_01"))) || iParam4 == -2066166276) || iParam4 == 849089063) || iParam4 == 1192230427)
{
if (!bParam6)
{
if (Global_4266807 == -1)
{
if (!Global_93284.f_1489)
{
if (func_461(13, -1))
{
return 0;
}
else if (func_461(14, -1))
{
return 0;
}
else if (func_461(15, -1))
{
return 0;
}
else if (func_461(16, -1))
{
return 0;
}
else if (func_461(71, -1))
{
return 0;
}
else if (func_461(72, -1))
{
}
}
}
else if (Global_4266807 == 13)
{
return 0;
}
else if (Global_4266807 == 14)
{
return 0;
}
else if (Global_4266807 == 15)
{
return 0;
}
else if (Global_4266807 == 16)
{
return 0;
}
else if (Global_4266807 == 71)
{
return 0;
}
else if (Global_4266807 == 72)
{
}
}
}
else if (iParam4 == -763917073)
{
if (!bParam6)
{
if (Global_4266807 == -1)
{
if (!Global_93284.f_1489)
{
if (func_461(13, -1))
{
return 0;
}
else if (func_461(14, -1))
{
return 0;
}
else if (func_461(15, -1))
{
return 0;
}
else if (func_461(16, -1))
{
return 0;
}
else if (func_461(71, -1))
{
return 0;
}
else if (func_461(72, -1))
{
}
}
}
else if (Global_4266807 == 13)
{
return 0;
}
else if (Global_4266807 == 14)
{
return 0;
}
else if (Global_4266807 == 15)
{
return 0;
}
else if (Global_4266807 == 16)
{
return 0;
}
else if (Global_4266807 == 71)
{
return 0;
}
else if (Global_4266807 == 72)
{
}
}
}
else if ((iParam4 == 129912816 || iParam4 == 1361645381) || iParam4 == -1469750959)
{
if (!bParam6)
{
if (Global_4266807 == -1)
{
if (!Global_93284.f_1489)
{
if (func_461(13, -1))
{
}
else if (func_461(14, -1))
{
return 0;
}
else if (func_461(15, -1))
{
return 0;
}
else if (func_461(16, -1))
{
}
else if (func_461(71, -1))
{
return 0;
}
else if (func_461(72, -1))
{
}
}
}
else if (Global_4266807 == 13)
{
}
else if (Global_4266807 == 14)
{
return 0;
}
else if (Global_4266807 == 15)
{
return 0;
}
else if (Global_4266807 == 16)
{
}
else if (Global_4266807 == 71)
{
return 0;
}
else if (Global_4266807 == 72)
{
}
}
}
else if (iParam4 == 1928884106)
{
if (!bParam6)
{
if (Global_4266807 == -1)
{
if (!Global_93284.f_1489)
{
if (func_461(13, -1))
{
}
else if (func_461(14, -1))
{
}
else if (func_461(15, -1))
{
}
else if (func_461(16, -1))
{
}
else if (func_461(71, -1))
{
}
else if (func_461(72, -1))
{
}
}
}
else if (Global_4266807 == 13)
{
}
else if (Global_4266807 == 14)
{
}
else if (Global_4266807 == 15)
{
}
else if (Global_4266807 == 16)
{
}
else if (Global_4266807 == 71)
{
}
else if (Global_4266807 == 72)
{
}
}
}
break;
case 1484379715:
case 711089605:
case 1206993109:
case 32564956:
case 1618133209:
case 314326195:
case 1928884106:
case 1565386395:
case 2107621060:
if (bParam8)
{
return 0;
}
if (!bParam6)
{
if (Global_4266807 == -1)
{
if (!Global_93284.f_1489)
{
if (func_461(13, -1))
{
}
else if (func_461(14, -1))
{
}
else if (func_461(15, -1))
{
return 0;
}
else if (func_461(16, -1))
{
}
else if (func_461(71, -1))
{
}
else if (func_461(72, -1))
{
return 0;
}
}
}
else if (Global_4266807 == 13)
{
}
else if (Global_4266807 == 14)
{
}
else if (Global_4266807 == 15)
{
return 0;
}
else if (Global_4266807 == 16)
{
}
else if (Global_4266807 == 71)
{
}
else if (Global_4266807 == 72)
{
return 0;
}
}
break;
case 1019352240:
if (bParam8)
{
if (iVar0 == joaat("mp_m_freemode_01"))
{
if (Global_4266807 == -1)
{
if (!Global_93284.f_1489)
{
if (func_461(15, -1))
{
return 0;
}
}
}
else if (Global_4266807 == 15)
{
return 0;
}
}
}
if (bParam6)
{
return 0;
}
if (bParam5)
{
if (Global_4266807 == -1)
{
if (!Global_93284.f_1489)
{
if (func_461(13, -1))
{
return 0;
}
else if (func_461(14, -1))
{
return 0;
}
else if (func_461(15, -1))
{
if (!unk_0x3CAC2741CC1A631F(sParam1, "TAT_FMM_CLB"))
{
return 0;
}
}
else if (func_461(16, -1))
{
}
else if (func_461(71, -1))
{
}
else if (func_461(72, -1))
{
}
}
}
else if (Global_4266807 == 13)
{
return 0;
}
else if (Global_4266807 == 14)
{
return 0;
}
else if (Global_4266807 == 15)
{
if (!unk_0x3CAC2741CC1A631F(sParam1, "TAT_FMM_CLB"))
{
return 0;
}
}
else if (Global_4266807 == 16)
{
}
else if (Global_4266807 == 71)
{
}
else if (Global_4266807 == 72)
{
}
}
break;
case 0:
case 2:
case -518474626:
if (bParam5)
{
if (!unk_0x429D45A6C6520026(sParam1))
{
switch (unk_0xFEB6EEC0545AF7AA(sParam1))
{
case 1774176944:
case 1363941829:
case -328314869:
case -1903783095:
case -1674924399:
case -106785870:
case -344656041:
case 1480281490:
case -2097372400:
case 118598456:
case -1386676768:
case 1464947154:
case -1282504117:
case -1877294236:
case 736950162:
return 0;
break;
}
}
}
if (iVar0 == joaat("mp_m_freemode_01"))
{
}
else if (iVar0 == joaat("mp_f_freemode_01"))
{
if (!bParam6)
{
if (Global_4266807 == -1)
{
if (!Global_93284.f_1489)
{
if (func_461(13, -1))
{
}
else if (func_461(14, -1))
{
}
else if (func_461(15, -1))
{
}
else if (func_461(16, -1))
{
}
else if (func_461(71, -1))
{
}
else if (func_461(72, -1))
{
}
}
}
else if (Global_4266807 == 13)
{
return 0;
}
else if (Global_4266807 == 14)
{
}
else if (Global_4266807 == 15)
{
return 0;
}
else if (Global_4266807 == 16)
{
}
else if (Global_4266807 == 71)
{
}
else if (Global_4266807 == 72)
{
}
}
}
break;
case 277073536:
if (bParam7)
{
return 0;
}
break;
}
return 1;
}
char* func_454(int iParam0)
{
switch (iParam0)
{
case 0:
return "ARM_LEFT_FULL_SLEEVE";
break;
case 1:
return "ARM_LEFT_SHORT_SLEEVE";
break;
case 2:
return "ARM_LEFT_LOWER_SLEEVE";
break;
case 3:
return "ARM_LEFT_LOWER_INNER";
break;
case 4:
return "ARM_LEFT_LOWER_OUTER";
break;
case 5:
return "ARM_LEFT_WRIST";
break;
case 6:
return "ARM_LEFT_UPPER_SLEEVE";
break;
case 7:
return "ARM_LEFT_UPPER_TRICEP";
break;
case 8:
return "ARM_LEFT_UPPER_SIDE";
break;
case 9:
return "ARM_LEFT_UPPER_BICEP";
break;
case 10:
return "ARM_LEFT_SHOULDER";
break;
case 11:
return "ARM_LEFT_ELBOW";
break;
case 12:
return "ARM_RIGHT_FULL_SLEEVE";
break;
case 13:
return "ARM_RIGHT_SHORT_SLEEVE";
break;
case 14:
return "ARM_RIGHT_LOWER_SLEEVE";
break;
case 15:
return "ARM_RIGHT_LOWER_INNER";
break;
case 16:
return "ARM_RIGHT_LOWER_OUTER";
break;
case 17:
return "ARM_RIGHT_WRIST";
break;
case 18:
return "ARM_RIGHT_UPPER_SLEEVE";
break;
case 19:
return "ARM_RIGHT_UPPER_TRICEP";
break;
case 20:
return "ARM_RIGHT_UPPER_SIDE";
break;
case 21:
return "ARM_RIGHT_UPPER_BICEP";
break;
case 22:
return "ARM_RIGHT_SHOULDER";
break;
case 23:
return "ARM_RIGHT_ELBOW";
break;
case 24:
return "HAND_LEFT";
break;
case 25:
return "HAND_RIGHT";
break;
case 26:
return "BACK_FULL";
break;
case 27:
return "BACK_FULL_ARMS_FULL_BACK";
break;
case 28:
return "BACK_FULL_SHORT";
break;
case 29:
return "BACK_MID";
break;
case 30:
return "BACK_UPPER";
break;
case 31:
return "BACK_UPPER_LEFT";
break;
case 32:
return "BACK_UPPER_RIGHT";
break;
case 33:
return "BACK_LOWER";
break;
case 34:
return "BACK_LOWER_LEFT";
break;
case 35:
return "BACK_LOWER_MID";
break;
case 36:
return "BACK_LOWER_RIGHT";
break;
case 37:
return "CHEST_FULL";
break;
case 38:
return "CHEST_STOM";
break;
case 39:
return "CHEST_STOM_FULL";
break;
case 40:
return "CHEST_LEFT";
break;
case 41:
return "CHEST_UPPER_LEFT";
break;
case 42:
return "CHEST_RIGHT";
break;
case 43:
return "CHEST_UPPER_RIGHT";
break;
case 44:
return "CHEST_MID";
break;
case 45:
return "TORSO_SIDE_RIGHT";
break;
case 46:
return "TORSO_SIDE_LEFT";
break;
case 47:
return "STOMACH_FULL";
break;
case 48:
return "STOMACH_UPPER";
break;
case 49:
return "STOMACH_UPPER_LEFT";
break;
case 50:
return "STOMACH_UPPER_RIGHT";
break;
case 51:
return "STOMACH_LOWER";
break;
case 52:
return "STOMACH_LOWER_LEFT";
break;
case 53:
return "STOMACH_LOWER_RIGHT";
break;
case 54:
return "STOMACH_LEFT";
break;
case 55:
return "STOMACH_RIGHT";
break;
case 56:
return "FACE";
break;
case 57:
return "HEAD_LEFT";
break;
case 58:
return "HEAD_RIGHT";
break;
case 59:
return "NECK_FRONT";
break;
case 60:
return "NECK_BACK";
break;
case 61:
return "NECK_LEFT_FULL";
break;
case 62:
return "NECK_LEFT_BACK";
break;
case 63:
return "NECK_RIGHT_FULL";
break;
case 64:
return "NECK_RIGHT_BACK";
break;
case 65:
return "LEG_LEFT_FULL_SLEEVE";
break;
case 66:
return "LEG_LEFT_FULL_FRONT";
break;
case 67:
return "LEG_LEFT_FULL_BACK";
break;
case 68:
return "LEG_LEFT_UPPER_SLEEVE";
break;
case 69:
return "LEG_LEFT_UPPER_FRONT";
break;
case 70:
return "LEG_LEFT_UPPER_BACK";
break;
case 71:
return "LEG_LEFT_UPPER_OUTER";
break;
case 72:
return "LEG_LEFT_UPPER_INNER";
break;
case 73:
return "LEG_LEFT_LOWER_SLEEVE";
break;
case 74:
return "LEG_LEFT_LOWER_FRONT";
break;
case 75:
return "LEG_LEFT_LOWER_BACK";
break;
case 76:
return "LEG_LEFT_LOWER_OUTER";
break;
case 77:
return "LEG_LEFT_LOWER_INNER";
break;
case 78:
return "LEG_LEFT_KNEE";
break;
case 79:
return "LEG_LEFT_ANKLE";
break;
case 80:
return "LEG_LEFT_CALF";
break;
case 81:
return "LEG_RIGHT_FULL_SLEEVE";
break;
case 82:
return "LEG_RIGHT_FULL_FRONT";
break;
case 83:
return "LEG_RIGHT_FULL_BACK";
break;
case 84:
return "LEG_RIGHT_UPPER_SLEEVE";
break;
case 85:
return "LEG_RIGHT_UPPER_FRONT";
break;
case 86:
return "LEG_RIGHT_UPPER_BACK";
break;
case 87:
return "LEG_RIGHT_UPPER_OUTER";
break;
case 88:
return "LEG_RIGHT_UPPER_INNER";
break;
case 89:
return "LEG_RIGHT_LOWER_SLEEVE";
break;
case 90:
return "LEG_RIGHT_LOWER_FRONT";
break;
case 91:
return "LEG_RIGHT_LOWER_BACK";
break;
case 92:
return "LEG_RIGHT_LOWER_OUTER";
break;
case 93:
return "LEG_RIGHT_LOWER_INNER";
break;
case 94:
return "LEG_RIGHT_KNEE";
break;
case 95:
return "LEG_RIGHT_ANKLE";
break;
case 96:
return "LEG_RIGHT_CALF";
break;
case 97:
return "FOOT_LEFT";
break;
case 98:
return "FOOT_RIGHT";
break;
}
return "";
}
int func_455(int iParam0, char* sParam1, int iParam2)
{
switch (iParam2)
{
case 1019352240:
case 2140335355:
case 277073536:
return -1;
break;
}
switch (iParam2)
{
case -1775023605:
return 0;
break;
case 917950949:
return 1;
break;
case -1684314297:
return 2;
break;
case -1546663824:
return 3;
break;
case -2119253768:
return 4;
break;
case 1639951086:
return 5;
break;
case 1372660034:
return 6;
break;
case -1524227787:
return 7;
break;
case -311742370:
return 8;
break;
case -2057190659:
return 9;
break;
case -686545645:
return 10;
break;
case -80377674:
return 11;
break;
case -1055976551:
return 12;
break;
case 1963750528:
return 13;
break;
case 796226384:
return 14;
break;
case 123428314:
return 15;
break;
case 1944550961:
return 16;
break;
case 2136911405:
return 17;
break;
case -1309595991:
return 18;
break;
case 1470319061:
return 19;
break;
case -1716562576:
return 20;
break;
case -1940582056:
return 21;
break;
case 1089807219:
return 22;
break;
case -1073830579:
return 23;
break;
case 1071134407:
return 24;
break;
case 1455567330:
return 25;
break;
case 711089605:
return 26;
break;
case 1206993109:
return 27;
break;
case 32564956:
return 28;
break;
case 314326195:
return 29;
break;
case 1928884106:
return 30;
break;
case 1565386395:
return 31;
break;
case 2107621060:
return 32;
break;
case 1618133209:
return 33;
break;
case -951899470:
return 34;
break;
case 2048696626:
return 35;
break;
case 74017048:
return 36;
break;
case -793495770:
return 37;
break;
case 849089063:
return 38;
break;
case 1192230427:
return 39;
break;
case -763917073:
return 40;
break;
case 337552605:
return 41;
break;
case -2066166276:
return 42;
break;
case 100935796:
return 43;
break;
case -1409061796:
return 44;
break;
case 1548327796:
return 45;
break;
case -1459967458:
return 46;
break;
case 129912816:
return 47;
break;
case 1387715942:
return 48;
break;
case -1871804242:
return 49;
break;
case 1603728616:
return 50;
break;
case -742053244:
return 51;
break;
case 1586504577:
return 52;
break;
case 1753976524:
return 53;
break;
case -1469750959:
return 54;
break;
case -388268096:
return 55;
break;
case -1538681432:
return 56;
break;
case -737856380:
return 57;
break;
case 1261643197:
return 58;
break;
case 436139458:
return 59;
break;
case 1012782925:
return 60;
break;
case -277214012:
return 61;
break;
case -484264198:
return 62;
break;
case 1708200656:
return 63;
break;
case 758827473:
return 64;
break;
case 1039283199:
return 65;
break;
case 325801797:
return 66;
break;
case -1946435033:
return 67;
break;
case -1917346117:
return 68;
break;
case -382139768:
return 69;
break;
case 1725561361:
return 70;
break;
case -266913369:
return 71;
break;
case 511433871:
return 72;
break;
case -1399656601:
return 73;
break;
case -1560441083:
return 74;
break;
case 1034503747:
return 75;
break;
case -1170681301:
return 76;
break;
case 660577126:
return 77;
break;
case -818089340:
return 78;
break;
case 1052642087:
return 79;
break;
case 134497037:
return 80;
break;
case -624267373:
return 81;
break;
case -1178847967:
return 82;
break;
case -197292861:
return 83;
break;
case 730193962:
return 84;
break;
case 1469472731:
return 85;
break;
case -1918884694:
return 86;
break;
case -1670727628:
return 87;
break;
case -1389296468:
return 88;
break;
case -405262373:
return 89;
break;
case -1619609833:
return 90;
break;
case 2060550302:
return 91;
break;
case -1202647020:
return 92;
break;
case 12584588:
return 93;
break;
case -1559605744:
return 94;
break;
case -88374898:
return 95;
break;
case -292219126:
return 96;
break;
case -634232984:
return 97;
break;
case -1259754598:
return 98;
break;
}
switch (unk_0xFEB6EEC0545AF7AA(sParam1))
{
case 1948764112:
return -1;
break;
case 1099734529:
return 12;
break;
case 1875475066:
return 12;
break;
case -2027116220:
if (iParam0 == joaat("mp_m_freemode_01"))
{
return 75;
}
else
{
return 65;
}
break;
case 973279522:
return 26;
break;
case -344656041:
return 47;
break;
case 437243648:
return 1;
break;
case -1636967950:
return 75;
break;
case -1759426263:
return 1;
break;
case 1702259548:
return 89;
break;
case 1471205329:
return 73;
break;
case -33154131:
return 22;
break;
case -1364624791:
return 91;
break;
case 2048169112:
return 26;
break;
case -2132107540:
return 73;
break;
case -2097372400:
return 38;
break;
case -106785870:
if (iParam0 == joaat("mp_m_freemode_01"))
{
return 40;
}
else
{
return 42;
}
break;
case 1116120433:
return 31;
break;
case 118598456:
return 42;
break;
case 1480281490:
return 47;
break;
case -652292269:
return 75;
break;
case -1179283327:
return 20;
break;
case 860620540:
return 32;
break;
case -880004050:
return 14;
break;
case -1386676768:
return 52;
break;
case 2104696341:
return 30;
break;
case -1952728474:
return 6;
break;
case 1464947154:
return 80;
break;
case -1134718043:
return 13;
break;
case -440373586:
if (iParam0 == joaat("mp_m_freemode_01"))
{
return 67;
}
else
{
return 75;
}
break;
case -1282504117:
if (iParam0 == joaat("mp_m_freemode_01"))
{
return 40;
}
else
{
return 42;
}
break;
case -1035884623:
return 73;
break;
case -1877294236:
return 47;
break;
case 1289632992:
return 73;
break;
case 1152623695:
return 10;
break;
case 1705208746:
return 26;
break;
case 1774176944:
return 42;
break;
case -2016202731:
return 89;
break;
case 474241973:
return 16;
break;
case 1549424756:
return 91;
break;
case 1915520024:
return 82;
break;
case -654914345:
return 13;
break;
case -1745115353:
return 75;
break;
case 1466027815:
return 26;
break;
case -161772432:
return 10;
break;
case 74131599:
return 90;
break;
case 363383562:
return 89;
break;
case 736950162:
return 38;
break;
case 1291882802:
return 20;
break;
case -281772534:
return 26;
break;
case -837798134:
return 18;
break;
case 62456:
return 56;
break;
case -800320369:
return 3;
break;
case 1363941829:
return 47;
break;
case 1586377801:
if (iParam0 == joaat("mp_m_freemode_01"))
{
return 28;
}
else
{
return 26;
}
break;
case -1514257748:
return 89;
break;
case -1023836894:
return 6;
break;
case -1974105125:
return 33;
break;
case -558386018:
return 16;
break;
case -328314869:
return 40;
break;
case -1903783095:
return 40;
break;
case -1674924399:
return 40;
break;
case -252323802:
return 33;
break;
case 11466648:
return 6;
break;
case 927130819:
if (iParam0 == joaat("mp_m_freemode_01"))
{
return 28;
}
else
{
return 26;
}
break;
case -978943608:
if (iParam0 == joaat("mp_m_freemode_01"))
{
return 28;
}
else
{
return 26;
}
break;
case 452144164:
if (iParam0 == joaat("mp_m_freemode_01"))
{
return 28;
}
else
{
return 26;
}
break;
case 691194019:
if (iParam0 == joaat("mp_m_freemode_01"))
{
return 28;
}
else
{
return 26;
}
break;
case -1516865571:
return 44;
break;
case 2130586285:
return 32;
break;
case 386521802:
return 3;
break;
case 579924440:
return 33;
break;
case 741770527:
return 31;
break;
case 1173403795:
return 33;
break;
case -569087776:
return 45;
break;
case -1344959389:
return 89;
break;
case -211217527:
return 64;
break;
case 86488838:
return 53;
break;
case 705494964:
return 52;
break;
case -137684175:
return 30;
break;
case -979388709:
return 41;
break;
case 324653646:
return 43;
break;
case -518820414:
return 52;
break;
case -1361737401:
return 20;
break;
case 2010946386:
return 8;
break;
case -894811920:
return 10;
break;
case 165068612:
return 28;
break;
case 1549427782:
return 40;
break;
case -927613913:
return 42;
break;
case 385144996:
return 56;
break;
case -814626401:
return 57;
break;
case -1248225809:
return 52;
break;
case 1910378101:
return 8;
break;
case -2124501642:
return 91;
break;
case -1943747838:
return 20;
break;
case -1570115700:
return 75;
break;
case 931699147:
return 62;
break;
case 1019520067:
return 63;
break;
case -859358814:
return 20;
break;
case -1157818866:
return 58;
break;
case -247856505:
return 47;
break;
case -1628534963:
return 37;
break;
case -1051898870:
return 33;
break;
case 1334929540:
return 80;
break;
case 1097124907:
return 64;
break;
case 747545215:
return 62;
break;
case 61892743:
return 96;
break;
case 501548332:
return 15;
break;
case -244169717:
return 48;
break;
case 421886905:
return 37;
break;
case -1398791504:
return 33;
break;
case -106152761:
return 3;
break;
case 125491300:
return 41;
break;
case -1576950557:
return 52;
break;
case -1815115649:
return 53;
break;
case -1043396870:
return 59;
break;
case -1388618285:
return 3;
break;
case -948484638:
return 48;
break;
case 643387405:
return 33;
break;
case 979630098:
return 64;
break;
case 211688583:
return 62;
break;
case 1343791995:
return 60;
break;
case 576309246:
return 20;
break;
case 949154944:
return 40;
break;
case -622511834:
return 42;
break;
case -275651969:
return 11;
break;
case -1256283855:
return 15;
break;
case 955525350:
return 40;
break;
case 1252641873:
return 22;
break;
case -2034766264:
return 40;
break;
case 1748021562:
return 22;
break;
case -657146050:
return 30;
break;
case -955835485:
return 19;
break;
case -1269959119:
return 40;
break;
case -1478763187:
return 4;
break;
case -1881592504:
return 15;
break;
case 2115996117:
return 62;
break;
case 1824417551:
return 45;
break;
case 1502068898:
return 24;
break;
case -2019287742:
return 22;
break;
case -1780827729:
return 80;
break;
case -1966497207:
return 25;
break;
case -2126999769:
return 30;
break;
case 2014772448:
return 30;
break;
case 1705760778:
return 44;
break;
case 497993745:
return 15;
break;
case 1142887665:
return 9;
break;
case 22777707:
return 3;
break;
case 799173624:
return 16;
break;
case -410297401:
return 17;
break;
case 214410819:
return 75;
break;
case -2098342992:
return 23;
break;
case -1280920283:
return 64;
break;
case -1501455653:
return 16;
break;
case 2117454408:
return 25;
break;
case -1945704982:
return 32;
break;
case -1581870771:
return 31;
break;
case -1350521631:
return 10;
break;
case -954508266:
return 5;
break;
case -716244867:
return 4;
break;
case 185361399:
return 52;
break;
case -1208107213:
return 35;
break;
case -812421538:
return 30;
break;
case -566096965:
return 32;
break;
case -316757644:
return 38;
break;
case -103496992:
return 24;
break;
case 391708136:
return 52;
break;
case 616667309:
return 20;
break;
case 870102755:
return 10;
break;
case 1093030262:
return 92;
break;
case 1378218869:
return 0;
break;
case 332555747:
return 80;
break;
case 1077526193:
return 34;
break;
case 1332632858:
return 91;
break;
case 1556379590:
return 10;
break;
case 1780093553:
return 22;
break;
case 2001284303:
return 14;
break;
case -2059941716:
return 30;
break;
case -1759875983:
return 40;
break;
case -1521153818:
return 24;
break;
}
if (iParam2 == 0 && unk_0x429D45A6C6520026(sParam1))
{
return -1;
}
switch (iParam2)
{
case -518474626:
return -1;
break;
}
return -1;
}
bool func_456(char* sParam0, int iParam1, int iParam2, int iParam3, int iParam4)
{
int iVar0;
int iVar1;
func_460(sParam0, -1, 0, "", "", "", "", iParam2, -1, 0);
if (unk_0xDC5D81351D6A4DDB(iParam3) && !unk_0x4915F4759304D5CF(iParam3))
{
iVar0 = unk_0x8F474E419F56E48D(iParam3);
}
switch (iParam2)
{
case 0:
switch (iParam1)
{
case 0:
func_460(sParam0, iParam1, iParam3, "TAT_MIC_01", "singleplayer_overlays", "MK_000", "", iParam2, 300, 3);
break;
case 1:
func_460(sParam0, iParam1, iParam3, "TAT_MIC_02", "singleplayer_overlays", "MK_001", "", iParam2, 450, 0);
break;
case 2:
func_460(sParam0, iParam1, iParam3, "TAT_MIC_03", "singleplayer_overlays", "MK_002", "", iParam2, 250, 4);
break;
case 3:
func_460(sParam0, iParam1, iParam3, "TAT_MIC_04", "singleplayer_overlays", "MK_003", "", iParam2, 175, 0);
break;
case 4:
func_460(sParam0, iParam1, iParam3, "TAT_MIC_06", "singleplayer_overlays", "MK_005", "", iParam2, 380, 0);
break;
case 5:
func_460(sParam0, iParam1, iParam3, "TAT_MIC_07", "singleplayer_overlays", "MK_006", "", iParam2, 180, 0);
break;
case 6:
func_460(sParam0, iParam1, iParam3, "TAT_MIC_08", "singleplayer_overlays", "MK_007", "", iParam2, 240, 0);
break;
case 7:
func_460(sParam0, iParam1, iParam3, "TAT_MIC_10", "singleplayer_overlays", "MK_009", "", iParam2, 195, 0);
break;
case 8:
func_460(sParam0, iParam1, iParam3, "TAT_MIC_11", "singleplayer_overlays", "MK_010", "", iParam2, 280, 6);
break;
case 9:
if (func_240() || func_239())
{
iVar1 = 400;
if (func_242() && (func_459() || func_458()))
{
iVar1 = 0;
}
func_460(sParam0, iParam1, iParam3, "TAT_MIC_12", "singleplayer_overlays", "MK_011", "", iParam2, iVar1, 2);
}
break;
case 10:
func_460(sParam0, iParam1, iParam3, "TAT_MIC_13", "singleplayer_overlays", "MK_012", "", iParam2, 320, 3);
break;
case 11:
func_460(sParam0, iParam1, iParam3, "TAT_MIC_14", "singleplayer_overlays", "MK_013", "", iParam2, 500, 2);
break;
case 12:
func_460(sParam0, iParam1, iParam3, "TAT_MIC_16", "singleplayer_overlays", "MK_015", "", iParam2, 220, 0);
break;
case 13:
func_460(sParam0, iParam1, iParam3, "TAT_MIC_17", "singleplayer_overlays", "MK_016", "", iParam2, 320, 4);
break;
case 14:
func_460(sParam0, iParam1, iParam3, "TAT_MIC_18", "singleplayer_overlays", "MK_017", "", iParam2, 140, 2);
break;
case 15:
func_460(sParam0, iParam1, iParam3, "TAT_MIC_20", "singleplayer_overlays", "MK_019", "", iParam2, 350, 0);
break;
case 16:
func_460(sParam0, iParam1, iParam3, "TAT_MIC_21", "singleplayer_overlays", "MK_020", "", iParam2, 350, 0);
break;
case 17:
func_460(sParam0, iParam1, iParam3, "TAT_MIC_05", "singleplayer_overlays", "MK_004", "", iParam2, 120, 1);
break;
case 18:
func_460(sParam0, iParam1, iParam3, "TAT_MIC_09", "singleplayer_overlays", "MK_008", "", iParam2, 99, 1);
break;
case 19:
func_460(sParam0, iParam1, iParam3, "TAT_MIC_15", "singleplayer_overlays", "MK_014", "", iParam2, 400, 1);
break;
case 20:
func_460(sParam0, iParam1, iParam3, "TAT_MIC_19", "singleplayer_overlays", "MK_018", "", iParam2, 420, 1);
break;
default:
func_457(sParam0, iParam2, iParam1, 21);
break;
}
break;
case 1:
switch (iParam1)
{
case 0:
if (func_240() || func_239())
{
iVar1 = 450;
if (func_242() && (func_459() || func_458()))
{
iVar1 = 0;
}
func_460(sParam0, iParam1, iParam3, "TAT_FRA_01", "singleplayer_overlays", "fr_000", "", iParam2, iVar1, 0);
}
break;
case 1:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_02", "singleplayer_overlays", "fr_001", "", iParam2, 230, 0);
break;
case 2:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_03", "singleplayer_overlays", "fr_002", "", iParam2, 310, 0);
break;
case 3:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_04", "singleplayer_overlays", "fr_003", "", iParam2, 260, 0);
break;
case 4:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_07", "singleplayer_overlays", "fr_006", "", iParam2, 240, 2);
break;
case 5:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_08", "singleplayer_overlays", "fr_007", "", iParam2, 190, 3);
break;
case 6:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_09", "singleplayer_overlays", "fr_008", "", iParam2, 200, 2);
break;
case 7:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_10", "singleplayer_overlays", "fr_009", "", iParam2, 225, 0);
break;
case 8:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_12", "singleplayer_overlays", "fr_011", "", iParam2, 195, 0);
break;
case 9:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_13", "singleplayer_overlays", "fr_012", "", iParam2, 275, 2);
break;
case 10:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_14", "singleplayer_overlays", "fr_013", "", iParam2, 80, 0);
break;
case 11:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_15", "singleplayer_overlays", "fr_014", "", iParam2, 95, 0);
break;
case 12:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_16", "singleplayer_overlays", "fr_015", "", iParam2, 300, 3);
break;
case 13:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_17", "singleplayer_overlays", "fr_016", "", iParam2, 450, 3);
break;
case 14:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_18", "singleplayer_overlays", "fr_017", "", iParam2, 345, 3);
break;
case 15:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_19", "singleplayer_overlays", "fr_018", "", iParam2, 550, 0);
break;
case 16:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_20", "singleplayer_overlays", "fr_019", "", iParam2, 200, 0);
break;
case 17:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_21", "singleplayer_overlays", "fr_020", "", iParam2, 180, 0);
break;
case 18:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_22", "singleplayer_overlays", "fr_021", "", iParam2, 140, 0);
break;
case 19:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_24", "singleplayer_overlays", "fr_023", "", iParam2, 245, 0);
break;
case 20:
break;
case 21:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_26", "singleplayer_overlays", "fr_025", "", iParam2, 370, 0);
break;
case 22:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_27", "singleplayer_overlays", "fr_026", "", iParam2, 350, 0);
break;
case 23:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_28", "singleplayer_overlays", "fr_027", "", iParam2, 310, 0);
break;
case 24:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_29", "singleplayer_overlays", "fr_028", "", iParam2, 210, 0);
break;
case 25:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_30", "singleplayer_overlays", "fr_029", "", iParam2, 245, 0);
break;
case 26:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_31", "singleplayer_overlays", "fr_030", "", iParam2, 85, 0);
break;
case 27:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_32", "singleplayer_overlays", "fr_031", "", iParam2, 210, 0);
break;
case 28:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_33", "singleplayer_overlays", "fr_032", "", iParam2, 225, 0);
break;
case 29:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_34", "singleplayer_overlays", "fr_033", "", iParam2, 145, 0);
break;
case 30:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_35", "singleplayer_overlays", "fr_034", "", iParam2, 230, 0);
break;
case 31:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_36", "singleplayer_overlays", "fr_035", "", iParam2, 195, 0);
break;
case 32:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_37", "singleplayer_overlays", "fr_036", "", iParam2, 255, 0);
break;
case 33:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_38", "singleplayer_overlays", "fr_037", "", iParam2, 300, 0);
break;
case 34:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_40", "singleplayer_overlays", "fr_039", "", iParam2, 300, 0);
break;
case 35:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_05", "singleplayer_overlays", "fr_004", "", iParam2, 255, 1);
break;
case 36:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_06", "singleplayer_overlays", "fr_005", "", iParam2, 175, 1);
break;
case 37:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_11", "singleplayer_overlays", "fr_010", "", iParam2, 520, 1);
break;
case 38:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_23", "singleplayer_overlays", "fr_022", "", iParam2, 125, 1);
break;
case 39:
func_460(sParam0, iParam1, iParam3, "TAT_FRA_39", "singleplayer_overlays", "fr_038", "", iParam2, 365, 1);
break;
default:
func_457(sParam0, iParam2, iParam1, 40);
break;
}
break;
case 2:
switch (iParam1)
{
case 0:
func_460(sParam0, iParam1, iParam3, "TAT_TRV_01", "singleplayer_overlays", "tp_000", "", iParam2, 120, 0);
break;
case 1:
func_460(sParam0, iParam1, iParam3, "TAT_TRV_02", "singleplayer_overlays", "tp_001", "", iParam2, 150, 3);
break;
case 2:
func_460(sParam0, iParam1, iParam3, "TAT_TRV_03", "singleplayer_overlays", "tp_002", "", iParam2, 100, 0);
break;
case 3:
func_460(sParam0, iParam1, iParam3, "TAT_TRV_04", "singleplayer_overlays", "tp_003", "", iParam2, 140, 0);
break;
case 4:
func_460(sParam0, iParam1, iParam3, "TAT_TRV_05", "singleplayer_overlays", "tp_004", "", iParam2, 250, 0);
break;
case 5:
if (func_240() || func_239())
{
iVar1 = 380;
if (func_242() && (func_459() || func_458()))
{
iVar1 = 0;
}
func_460(sParam0, iParam1, iParam3, "TAT_TRV_06", "singleplayer_overlays", "tp_005", "", iParam2, iVar1, 3);
}
break;
case 6:
func_460(sParam0, iParam1, iParam3, "TAT_TRV_07", "singleplayer_overlays", "tp_006", "", iParam2, 120, 0);
break;
case 7:
func_460(sParam0, iParam1, iParam3, "TAT_TRV_08", "singleplayer_overlays", "tp_007", "", iParam2, 250, 0);
break;
case 8:
func_460(sParam0, iParam1, iParam3, "TAT_TRV_09", "singleplayer_overlays", "tp_008", "", iParam2, 50, 3);
break;
case 9:
func_460(sParam0, iParam1, iParam3, "TAT_TRV_10", "singleplayer_overlays", "tp_009", "", iParam2, 135, 2);
break;
case 10:
func_460(sParam0, iParam1, iParam3, "TAT_TRV_11", "singleplayer_overlays", "tp_010", "", iParam2, 245, 0);
break;
case 11:
func_460(sParam0, iParam1, iParam3, "TAT_TRV_12", "singleplayer_overlays", "tp_011", "", iParam2, 280, 0);
break;
case 12:
func_460(sParam0, iParam1, iParam3, "TAT_TRV_13", "singleplayer_overlays", "tp_012", "", iParam2, 65, 0);
break;
case 13:
func_460(sParam0, iParam1, iParam3, "TAT_TRV_14", "singleplayer_overlays", "tp_013", "", iParam2, 150, 6);
break;
case 14:
func_460(sParam0, iParam1, iParam3, "TAT_TRV_15", "singleplayer_overlays", "tp_014", "", iParam2, 200, 0);
break;
case 15:
func_460(sParam0, iParam1, iParam3, "TAT_TRV_16", "singleplayer_overlays", "tp_015", "", iParam2, 145, 0);
break;
case 16:
func_460(sParam0, iParam1, iParam3, "TAT_TRV_17", "singleplayer_overlays", "tp_016", "", iParam2, 290, 0);
break;
case 17:
func_460(sParam0, iParam1, iParam3, "TAT_TRV_18", "singleplayer_overlays", "tp_017", "", iParam2, 350, 3);
break;
case 18:
func_460(sParam0, iParam1, iParam3, "TAT_TRV_19", "singleplayer_overlays", "tp_018", "", iParam2, 70, 0);
break;
case 19:
func_460(sParam0, iParam1, iParam3, "TAT_TRV_20", "singleplayer_overlays", "tp_019", "", iParam2, 180, 6);
break;
case 20:
func_460(sParam0, iParam1, iParam3, "TAT_TRV_21", "singleplayer_overlays", "tp_020", "", iParam2, 230, 0);
break;
case 21:
func_460(sParam0, iParam1, iParam3, "TAT_TRV_22", "singleplayer_overlays", "tp_021", "", iParam2, 200, 0);
break;
case 22:
func_460(sParam0, iParam1, iParam3, "TAT_TRV_24", "singleplayer_overlays", "tp_023", "", iParam2, 240, 0);
break;
case 23:
func_460(sParam0, iParam1, iParam3, "TAT_TRV_25", "singleplayer_overlays", "tp_024", "", iParam2, 195, 0);
break;
case 24:
func_460(sParam0, iParam1, iParam3, "TAT_TRV_26", "singleplayer_overlays", "tp_025", "", iParam2, 225, 2);
break;
case 25:
func_460(sParam0, iParam1, iParam3, "TAT_TRV_28", "singleplayer_overlays", "tp_027", "", iParam2, 175, 0);
break;
case 26:
func_460(sParam0, iParam1, iParam3, "TAT_TRV_29", "singleplayer_overlays", "tp_028", "", iParam2, 65, 0);
break;
case 27:
func_460(sParam0, iParam1, iParam3, "TAT_TRV_30", "singleplayer_overlays", "tp_029", "", iParam2, 50, 0);
break;
case 28:
func_460(sParam0, iParam1, iParam3, "TAT_TRV_31", "singleplayer_overlays", "tp_030", "", iParam2, 70, 0);
break;
case 29:
func_460(sParam0, iParam1, iParam3, "TAT_TRV_34", "singleplayer_overlays", "tp_033", "", iParam2, 70, 0);
break;
case 30:
func_460(sParam0, iParam1, iParam3, "TAT_TRV_23", "singleplayer_overlays", "tp_022", "", iParam2, 500, 1);
break;
case 31:
func_460(sParam0, iParam1, iParam3, "TAT_TRV_27", "singleplayer_overlays", "tp_026", "", iParam2, 300, 1);
break;
case 32:
func_460(sParam0, iParam1, iParam3, "TAT_TRV_32", "singleplayer_overlays", "tp_031", "", iParam2, 190, 1);
break;
case 33:
func_460(sParam0, iParam1, iParam3, "TAT_TRV_33", "singleplayer_overlays", "tp_032", "", iParam2, 129, 1);
break;
default:
func_457(sParam0, iParam2, iParam1, 34);
break;
}
break;
case 3:
case 4:
switch (iParam1)
{
case 0:
func_460(sParam0, iParam1, iParam3, "TAT_FM_008", "multiplayer_overlays", "000", "", iParam2, round((to_float(20000) * Global_262145.f_2906)), 0);
break;
case 1:
func_460(sParam0, iParam1, iParam3, "TAT_FM_009", "multiplayer_overlays", "001", "", iParam2, round((to_float(1400) * Global_262145.f_2907)), 2);
break;
case 2:
func_460(sParam0, iParam1, iParam3, "TAT_FM_010", "multiplayer_overlays", "002", "", iParam2, round((to_float(9750) * Global_262145.f_2908)), 3);
break;
case 3:
func_460(sParam0, iParam1, iParam3, "TAT_FM_011", "multiplayer_overlays", "003", "", iParam2, round((to_float(2150) * Global_262145.f_2909)), 0);
break;
case 4:
func_460(sParam0, iParam1, iParam3, "TAT_FM_012", "multiplayer_overlays", "004", "", iParam2, round((to_float(10000) * Global_262145.f_2910)), 0);
break;
case 54:
func_460(sParam0, iParam1, iParam3, "TAT_FM_013", "multiplayer_overlays", "005", "", iParam2, round((to_float(12400) * Global_262145.f_2911)), 1);
break;
case 5:
func_460(sParam0, iParam1, iParam3, "TAT_FM_014", "multiplayer_overlays", "006", "", iParam2, round((to_float(3500) * Global_262145.f_2912)), 0);
break;
case 6:
func_460(sParam0, iParam1, iParam3, "TAT_FM_015", "multiplayer_overlays", "007", "", iParam2, round((to_float(4950) * Global_262145.f_2913)), 2);
break;
case 55:
func_460(sParam0, iParam1, iParam3, "TAT_FM_016", "multiplayer_overlays", "008", "", iParam2, round((to_float(1350) * Global_262145.f_2914)), 1);
break;
case 7:
func_460(sParam0, iParam1, iParam3, "TAT_FM_017", "multiplayer_overlays", "009", "", iParam2, round((to_float(1450) * Global_262145.f_2915)), 0);
break;
case 8:
func_460(sParam0, iParam1, iParam3, "TAT_FM_018", "multiplayer_overlays", "010", "", iParam2, round((to_float(2700) * Global_262145.f_2916)), 7);
break;
case 9:
func_460(sParam0, iParam1, iParam3, "TAT_FM_019", "multiplayer_overlays", "011", "rank", iParam2, round((to_float(1200) * Global_262145.f_2917)), 0);
break;
case 10:
func_460(sParam0, iParam1, iParam3, "TAT_FM_020", "multiplayer_overlays", "012", "rank", iParam2, round((to_float(1500) * Global_262145.f_2918)), 0);
break;
case 11:
func_460(sParam0, iParam1, iParam3, "TAT_FM_021", "multiplayer_overlays", "013", "rank", iParam2, round((to_float(2650) * Global_262145.f_2919)), 0);
break;
case 56:
func_460(sParam0, iParam1, iParam3, "TAT_FM_022", "multiplayer_overlays", "014", "", iParam2, round((to_float(1900) * Global_262145.f_2920)), 1);
break;
case 12:
func_460(sParam0, iParam1, iParam3, "TAT_FM_023", "multiplayer_overlays", "015", "", iParam2, round((to_float(4950) * Global_262145.f_2921)), 2);
break;
case 57:
func_460(sParam0, iParam1, iParam3, "TAT_FM_024", "multiplayer_overlays", "016", "", iParam2, round((to_float(2400) * Global_262145.f_2922)), 1);
break;
case 58:
func_460(sParam0, iParam1, iParam3, "TAT_FM_025", "multiplayer_overlays", "017", "", iParam2, round((to_float(5100) * Global_262145.f_2923)), 1);
break;
case 59:
func_460(sParam0, iParam1, iParam3, "TAT_FM_026", "multiplayer_overlays", "018", "", iParam2, round((to_float(7400) * Global_262145.f_2924)), 1);
break;
case 60:
func_460(sParam0, iParam1, iParam3, "TAT_FM_027", "multiplayer_overlays", "019", "", iParam2, round((to_float(10000) * Global_262145.f_2925)), 1);
break;
case 17:
func_460(sParam0, iParam1, iParam3, "TAT_FM_201", "multiplayer_overlays", "005", "", iParam2, round((to_float(2400) * Global_262145.f_2930)), 2);
break;
case 18:
func_460(sParam0, iParam1, iParam3, "TAT_FM_202", "multiplayer_overlays", "006", "", iParam2, round((to_float(5100) * Global_262145.f_2931)), 2);
break;
case 19:
func_460(sParam0, iParam1, iParam3, "TAT_FM_203", "multiplayer_overlays", "015", "", iParam2, round((to_float(3600) * Global_262145.f_2932)), 2);
break;
case 20:
func_460(sParam0, iParam1, iParam3, "TAT_FM_204", "multiplayer_overlays", "000", "", iParam2, round((to_float(10000) * Global_262145.f_2933)), 3);
break;
case 21:
func_460(sParam0, iParam1, iParam3, "TAT_FM_205", "multiplayer_overlays", "001", "", iParam2, round((to_float(12500) * Global_262145.f_2934)), 3);
break;
case 22:
func_460(sParam0, iParam1, iParam3, "TAT_FM_206", "multiplayer_overlays", "003", "", iParam2, round((to_float(10000) * Global_262145.f_2935)), 3);
break;
case 23:
func_460(sParam0, iParam1, iParam3, "TAT_FM_207", "multiplayer_overlays", "014", "", iParam2, round((to_float(5000) * Global_262145.f_2936)), 3);
break;
case 24:
func_460(sParam0, iParam1, iParam3, "TAT_FM_208", "multiplayer_overlays", "018", "", iParam2, round((to_float(7500) * Global_262145.f_2937)), 3);
break;
case 25:
func_460(sParam0, iParam1, iParam3, "TAT_FM_209", "multiplayer_overlays", "002", "", iParam2, round((to_float(3750) * Global_262145.f_2938)), 2);
break;
case 26:
func_460(sParam0, iParam1, iParam3, "TAT_FM_210", "multiplayer_overlays", "007", "", iParam2, round((to_float(3750) * Global_262145.f_2939)), 3);
break;
case 27:
func_460(sParam0, iParam1, iParam3, "TAT_FM_211", "multiplayer_overlays", "008", "", iParam2, round((to_float(4800) * Global_262145.f_2940)), 3);
break;
case 28:
func_460(sParam0, iParam1, iParam3, "TAT_FM_212", "multiplayer_overlays", "017", "", iParam2, round((to_float(3500) * Global_262145.f_2941)), 3);
break;
case 61:
func_460(sParam0, iParam1, iParam3, "TAT_FM_213", "multiplayer_overlays", "009", "", iParam2, round((to_float(12350) * Global_262145.f_2942)), 1);
break;
case 62:
func_460(sParam0, iParam1, iParam3, "TAT_FM_214", "multiplayer_overlays", "011", "", iParam2, round((to_float(1900) * Global_262145.f_2943)), 1);
break;
case 63:
func_460(sParam0, iParam1, iParam3, "TAT_FM_215", "multiplayer_overlays", "013", "", iParam2, round((to_float(4500) * Global_262145.f_2944)), 1);
break;
case 64:
func_460(sParam0, iParam1, iParam3, "TAT_FM_216", "multiplayer_overlays", "016", "", iParam2, round((to_float(12250) * Global_262145.f_2945)), 1);
break;
case 65:
func_460(sParam0, iParam1, iParam3, "TAT_FM_217", "multiplayer_overlays", "019", "", iParam2, round((to_float(12300) * Global_262145.f_2946)), 1);
break;
case 29:
func_460(sParam0, iParam1, iParam3, "TAT_FM_218", "multiplayer_overlays", "010", "", iParam2, round((to_float(2500) * Global_262145.f_2947)), 0);
break;
case 30:
func_460(sParam0, iParam1, iParam3, "TAT_FM_219", "multiplayer_overlays", "004", "", iParam2, round((to_float(10000) * Global_262145.f_2948)), 0);
break;
case 31:
func_460(sParam0, iParam1, iParam3, "TAT_FM_220", "multiplayer_overlays", "012", "", iParam2, round((to_float(10000) * Global_262145.f_2949)), 0);
break;
case 66:
func_460(sParam0, iParam1, iParam3, "TAT_FM_221", "multiplayer_overlays", "020", "", iParam2, round((to_float(7500) * Global_262145.f_2950)), 1);
break;
case 32:
func_460(sParam0, iParam1, iParam3, "TAT_FM_222", "multiplayer_overlays", "021", "", iParam2, round((to_float(5000) * Global_262145.f_2951)), 2);
break;
case 33:
func_460(sParam0, iParam1, iParam3, "TAT_FM_223", "multiplayer_overlays", "022", "", iParam2, round((to_float(7300) * Global_262145.f_2952)), 3);
break;
case 34:
func_460(sParam0, iParam1, iParam3, "TAT_FM_224", "multiplayer_overlays", "023", "", iParam2, round((to_float(7250) * Global_262145.f_2953)), 2);
break;
case 35:
func_460(sParam0, iParam1, iParam3, "TAT_FM_225", "multiplayer_overlays", "024", "", iParam2, round((to_float(11900) * Global_262145.f_2954)), 0);
break;
case 36:
func_460(sParam0, iParam1, iParam3, "TAT_FM_226", "multiplayer_overlays", "025", "", iParam2, round((to_float(2750) * Global_262145.f_2955)), 0);
break;
case 37:
func_460(sParam0, iParam1, iParam3, "TAT_FM_227", "multiplayer_overlays", "026", "", iParam2, round((to_float(1750) * Global_262145.f_2956)), 0);
break;
case 38:
func_460(sParam0, iParam1, iParam3, "TAT_FM_228", "multiplayer_overlays", "027", "", iParam2, round((to_float(7300) * Global_262145.f_2957)), 3);
break;
case 39:
func_460(sParam0, iParam1, iParam3, "TAT_FM_229", "multiplayer_overlays", "028", "", iParam2, round((to_float(3250) * Global_262145.f_2958)), 2);
break;
case 40:
func_460(sParam0, iParam1, iParam3, "TAT_FM_230", "multiplayer_overlays", "029", "", iParam2, round((to_float(1000) * Global_262145.f_2959)), 0);
break;
case 67:
func_460(sParam0, iParam1, iParam3, "TAT_FM_231", "multiplayer_overlays", "030", "", iParam2, round((to_float(5000) * Global_262145.f_2960)), 1);
break;
case 41:
func_460(sParam0, iParam1, iParam3, "TAT_FM_232", "multiplayer_overlays", "031", "", iParam2, round((to_float(7500) * Global_262145.f_2961)), 2);
break;
case 68:
func_460(sParam0, iParam1, iParam3, "TAT_FM_233", "multiplayer_overlays", "032", "", iParam2, round((to_float(5100) * Global_262145.f_2962)), 1);
break;
case 42:
func_460(sParam0, iParam1, iParam3, "TAT_FM_234", "multiplayer_overlays", "033", "", iParam2, round((to_float(5050) * Global_262145.f_2963)), 0);
break;
case 43:
func_460(sParam0, iParam1, iParam3, "TAT_FM_235", "multiplayer_overlays", "034", "", iParam2, round((to_float(2450) * Global_262145.f_2964)), 2);
break;
case 44:
func_460(sParam0, iParam1, iParam3, "TAT_FM_236", "multiplayer_overlays", "035", "", iParam2, round((to_float(4950) * Global_262145.f_2965)), 0);
break;
case 45:
func_460(sParam0, iParam1, iParam3, "TAT_FM_237", "multiplayer_overlays", "036", "", iParam2, round((to_float(5100) * Global_262145.f_2966)), 0);
break;
case 46:
func_460(sParam0, iParam1, iParam3, "TAT_FM_238", "multiplayer_overlays", "037", "", iParam2, round((to_float(12250) * Global_262145.f_2967)), 0);
break;
case 47:
func_460(sParam0, iParam1, iParam3, "TAT_FM_239", "multiplayer_overlays", "038", "", iParam2, round((to_float(1150) * Global_262145.f_2968)), 3);
break;
case 48:
func_460(sParam0, iParam1, iParam3, "TAT_FM_240", "multiplayer_overlays", "039", "", iParam2, round((to_float(7500) * Global_262145.f_2969)), 3);
break;
case 49:
func_460(sParam0, iParam1, iParam3, "TAT_FM_241", "multiplayer_overlays", "040", "", iParam2, round((to_float(7600) * Global_262145.f_2970)), 3);
break;
case 50:
func_460(sParam0, iParam1, iParam3, "TAT_FM_242", "multiplayer_overlays", "041", "", iParam2, round((to_float(2600) * Global_262145.f_2971)), 2);
break;
case 51:
func_460(sParam0, iParam1, iParam3, "TAT_FM_243", "multiplayer_overlays", "042", "", iParam2, round((to_float(2500) * Global_262145.f_2972)), 3);
break;
case 52:
func_460(sParam0, iParam1, iParam3, "TAT_FM_244", "multiplayer_overlays", "043", "", iParam2, round((to_float(7450) * Global_262145.f_2973)), 3);
break;
case 53:
func_460(sParam0, iParam1, iParam3, "TAT_FM_245", "multiplayer_overlays", "044", "", iParam2, round((to_float(7500) * Global_262145.f_2974)), 0);
break;
case 69:
func_460(sParam0, iParam1, iParam3, "TAT_FM_246", "multiplayer_overlays", "045", "", iParam2, round((to_float(10000) * Global_262145.f_2975)), 1);
break;
case 70:
func_460(sParam0, iParam1, iParam3, "TAT_FM_247", "multiplayer_overlays", "047", "", iParam2, round((to_float(2500) * Global_262145.f_2976)), 2);
break;
}
if (iVar0 == joaat("mp_m_freemode_01"))
{
switch (iParam1)
{
case 73:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_001", "torsoDecal", iParam2, 100, 0);
break;
case 74:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_002", "torsoDecal", iParam2, 100, 0);
break;
case 75:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_003", "torsoDecal", iParam2, 100, 0);
break;
case 76:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_004", "torsoDecal", iParam2, 100, 0);
break;
case 77:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_005", "torsoDecal", iParam2, 100, 0);
break;
case 78:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_006", "torsoDecal", iParam2, 100, 0);
break;
case 79:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_009", "torsoDecal", iParam2, 100, 0);
break;
case 80:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_013", "torsoDecal", iParam2, 100, 0);
break;
case 81:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_014", "torsoDecal", iParam2, 100, 0);
break;
case 82:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_015", "torsoDecal", iParam2, 100, 0);
break;
case 83:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_016", "torsoDecal", iParam2, 100, 0);
break;
case 84:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_019", "torsoDecal", iParam2, 100, 0);
break;
case 85:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_020", "torsoDecal", iParam2, 100, 0);
break;
case 86:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_036", "torsoDecal", iParam2, 100, 0);
break;
case 90:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_017", "torsoDecal", iParam2, 100, 0);
break;
case 91:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_018", "torsoDecal", iParam2, 100, 0);
break;
case 124:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_046", "torsoDecal", iParam2, 100, 0);
break;
case 125:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_045", "torsoDecal", iParam2, 100, 0);
break;
case 87:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "FM_Tshirt_Award_000", "torsoDecal", iParam2, round((to_float(100) * Global_262145.f_2977)), 0);
break;
case 88:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "FM_Tshirt_Award_001", "torsoDecal", iParam2, round((to_float(100) * Global_262145.f_2978)), 0);
break;
case 89:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "FM_Tshirt_Award_002", "torsoDecal", iParam2, round((to_float(100) * Global_262145.f_2979)), 0);
break;
case 93:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_001", "hairOverlay", iParam2, 100, 0);
break;
case 94:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_002", "hairOverlay", iParam2, 100, 0);
break;
case 95:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_003", "hairOverlay", iParam2, 100, 0);
break;
case 96:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_004", "hairOverlay", iParam2, 100, 0);
break;
case 97:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_005", "hairOverlay", iParam2, 100, 0);
break;
case 98:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_006", "hairOverlay", iParam2, 100, 0);
break;
case 99:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_007", "hairOverlay", iParam2, 100, 0);
break;
case 100:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_008", "hairOverlay", iParam2, 100, 0);
break;
case 101:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_009", "hairOverlay", iParam2, 100, 0);
break;
case 102:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_010", "hairOverlay", iParam2, 100, 0);
break;
case 103:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_011", "hairOverlay", iParam2, 100, 0);
break;
case 104:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_012", "hairOverlay", iParam2, 100, 0);
break;
case 105:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_013", "hairOverlay", iParam2, 100, 0);
break;
case 106:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_014", "hairOverlay", iParam2, 100, 0);
break;
case 107:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_M_Hair_015", "hairOverlay", iParam2, 100, 0);
break;
case 108:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBea_M_Hair_000", "hairOverlay", iParam2, 100, 0);
break;
case 109:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBea_M_Hair_001", "hairOverlay", iParam2, 100, 0);
break;
case 110:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBus_M_Hair_000", "hairOverlay", iParam2, 100, 0);
break;
case 111:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBus_M_Hair_001", "hairOverlay", iParam2, 100, 0);
break;
case 112:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGHip_M_Hair_000", "hairOverlay", iParam2, 100, 0);
break;
case 113:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGHip_M_Hair_001", "hairOverlay", iParam2, 100, 0);
break;
case 114:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGInd_M_Hair_000", "hairOverlay", iParam2, 100, 0);
break;
case 115:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
break;
case 116:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
break;
case 117:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
break;
case 123:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "mpBeach_overlays", "FM_Hair_Fuzz", "hairOverlay", iParam2, 100, 0);
break;
case 13:
func_460(sParam0, iParam1, iParam3, "TAT_FM_100", "multiplayer_overlays", "000_A", "crewLogo", iParam2, round((to_float(5000) * Global_262145.f_2926)), 0);
break;
case 14:
func_460(sParam0, iParam1, iParam3, "TAT_FM_101", "multiplayer_overlays", "000_B", "crewLogo", iParam2, round((to_float(10000) * Global_262145.f_2927)), 0);
break;
case 15:
func_460(sParam0, iParam1, iParam3, "TAT_FMM_CLB", "multiplayer_overlays", "000_C", "crewLogo", iParam2, round((to_float(10000) * Global_262145.f_2928)), 2);
break;
case 16:
func_460(sParam0, iParam1, iParam3, "TAT_FM_100", "multiplayer_overlays", "000_D", "crewLogo", iParam2, round((to_float(5000) * Global_262145.f_2929)), 0);
break;
case 71:
func_460(sParam0, iParam1, iParam3, "TAT_FM_101", "multiplayer_overlays", "000_E", "crewLogo", iParam2, round((to_float(10000) * Global_262145.f_2929)), 0);
break;
case 72:
func_460(sParam0, iParam1, iParam3, "TAT_FMM_CLB", "multiplayer_overlays", "000_F", "crewLogo", iParam2, round((to_float(10000) * Global_262145.f_2929)), 0);
break;
}
}
else if (iVar0 == joaat("mp_f_freemode_01"))
{
switch (iParam1)
{
case 73:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_027_f", "torsoDecal", iParam2, 100, 0);
break;
case 74:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_028_f", "torsoDecal", iParam2, 100, 0);
break;
case 75:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_034_f", "torsoDecal", iParam2, 100, 0);
break;
case 76:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_036_f", "torsoDecal", iParam2, 100, 0);
break;
case 77:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_048", "torsoDecal", iParam2, 100, 0);
break;
case 78:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_052", "torsoDecal", iParam2, 100, 0);
break;
case 79:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_053", "torsoDecal", iParam2, 100, 0);
break;
case 80:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_054", "torsoDecal", iParam2, 100, 0);
break;
case 81:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_055", "torsoDecal", iParam2, 100, 0);
break;
case 82:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_056", "torsoDecal", iParam2, 100, 0);
break;
case 83:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_058", "torsoDecal", iParam2, 100, 0);
break;
case 84:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_067", "torsoDecal", iParam2, 100, 0);
break;
case 85:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_068", "torsoDecal", iParam2, 100, 0);
break;
case 92:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "mp_fm_branding_051", "torsoDecal", iParam2, 100, 0);
break;
case 87:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "FM_Tshirt_Award_F_000", "torsoDecal", iParam2, round((to_float(100) * Global_262145.f_2977)), 0);
break;
case 88:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "FM_Tshirt_Award_F_001", "torsoDecal", iParam2, round((to_float(100) * Global_262145.f_2978)), 0);
break;
case 89:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "FM_Tshirt_Award_F_002", "torsoDecal", iParam2, round((to_float(100) * Global_262145.f_2979)), 0);
break;
case 93:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_001", "hairOverlay", iParam2, 100, 0);
break;
case 94:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_002", "hairOverlay", iParam2, 100, 0);
break;
case 95:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_003", "hairOverlay", iParam2, 100, 0);
break;
case 96:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_004", "hairOverlay", iParam2, 100, 0);
break;
case 97:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_005", "hairOverlay", iParam2, 100, 0);
break;
case 98:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_006", "hairOverlay", iParam2, 100, 0);
break;
case 99:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_007", "hairOverlay", iParam2, 100, 0);
break;
case 100:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_008", "hairOverlay", iParam2, 100, 0);
break;
case 101:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_009", "hairOverlay", iParam2, 100, 0);
break;
case 102:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_010", "hairOverlay", iParam2, 100, 0);
break;
case 103:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_011", "hairOverlay", iParam2, 100, 0);
break;
case 104:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_012", "hairOverlay", iParam2, 100, 0);
break;
case 105:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_013", "hairOverlay", iParam2, 100, 0);
break;
case 106:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_014", "hairOverlay", iParam2, 100, 0);
break;
case 107:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NG_F_Hair_015", "hairOverlay", iParam2, 100, 0);
break;
case 108:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBea_F_Hair_000", "hairOverlay", iParam2, 100, 0);
break;
case 109:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBea_F_Hair_001", "hairOverlay", iParam2, 100, 0);
break;
case 110:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBus_F_Hair_000", "hairOverlay", iParam2, 100, 0);
break;
case 111:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGBus_F_Hair_001", "hairOverlay", iParam2, 100, 0);
break;
case 112:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGHip_F_Hair_000", "hairOverlay", iParam2, 100, 0);
break;
case 113:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGHip_F_Hair_001", "hairOverlay", iParam2, 100, 0);
break;
case 114:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "NGInd_F_Hair_000", "hairOverlay", iParam2, 100, 0);
break;
case 115:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
break;
case 116:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
break;
case 117:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
break;
case 118:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
break;
case 119:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
break;
case 120:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
break;
case 121:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
break;
case 122:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "multiplayer_overlays", "not_in_use", "hairOverlay", iParam2, 100, 0);
break;
case 123:
func_460(sParam0, iParam1, iParam3, "NO_LABEL", "mpBeach_overlays", "FM_Hair_Fuzz", "hairOverlay", iParam2, 100, 0);
break;
case 13:
func_460(sParam0, iParam1, iParam3, "TAT_FM_100", "multiplayer_overlays", "000_A", "crewLogo", iParam2, round((to_float(5000) * Global_262145.f_2926)), 0);
break;
case 14:
func_460(sParam0, iParam1, iParam3, "TAT_FM_100", "multiplayer_overlays", "000_B", "crewLogo", iParam2, round((to_float(5000) * Global_262145.f_2927)), 0);
break;
case 15:
func_460(sParam0, iParam1, iParam3, "TAT_FM_101", "multiplayer_overlays", "000_C", "crewLogo", iParam2, round((to_float(10000) * Global_262145.f_2928)), 2);
break;
case 16:
func_460(sParam0, iParam1, iParam3, "TAT_FM_101", "multiplayer_overlays", "000_D", "crewLogo", iParam2, round((to_float(10000) * Global_262145.f_2929)), 0);
break;
}
}
break;
}
if ((iParam2 == 3 || iParam2 == 4) && iParam1 >= 129)
{
func_457(sParam0, iParam2, iParam1, 129);
}
if (iParam4 == 22)
{
sParam0->f_7 *= 2;
}
return sParam0->f_11 != -1;
}
void func_457(char* sParam0, int iParam1, int iParam2, int iParam3)
{
int iVar0;
int iVar1;
struct<8> Var2;
iVar0 = (iParam2 - iParam3);
iVar1 = unk_0x174C99FADFCE889F(iParam1);
if (iVar1 > 0 && iVar0 < iVar1)
{
if (unk_0x0E7EFAB4BB04991A(iParam1, iVar0, &Var2))
{
if (!unk_0x3B61940560400F58(Var2))
{
sParam0->f_11 = iParam2;
MemCopy(sParam0, {Var2.f_7}, 4);
sParam0->f_5 = Var2.f_3;
sParam0->f_4 = Var2.f_2;
sParam0->f_8 = Var2.f_6;
sParam0->f_6 = iParam1;
sParam0->f_7 = Var2.f_4;
sParam0->f_9 = (iParam2 / 32);
sParam0->f_10 = (iParam2 % 32);
sParam0->f_12 = Var2.f_5;
}
}
}
}
int func_458()
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
int iVar4;
if (unk_0x05EFB6A616B6FADE(Global_25, 5))
{
if (unk_0x05EFB6A616B6FADE(Global_25, 1) || unk_0x05EFB6A616B6FADE(Global_25, 3))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x2AD48F3CEBA882E9(joaat("sp_unlock_exclus_content"), &iVar0, -1))
{
if (unk_0x05EFB6A616B6FADE(iVar0, 5))
{
if (unk_0x05EFB6A616B6FADE(iVar0, 1) || unk_0x05EFB6A616B6FADE(iVar0, 3))
{
return 1;
}
else
{
return 0;
}
}
}
if (unk_0xF93DEFC3A4C8A766(0))
{
if (Global_144766.f_3)
{
iVar2 = joaat("mpply_plat_up_lb_check");
if (unk_0x2AD48F3CEBA882E9(iVar2, &iVar1, -1))
{
if (unk_0x05EFB6A616B6FADE(iVar1, 5))
{
return 1;
}
}
}
}
if (unk_0x63141F5FDACF3D9B())
{
iVar3 = unk_0x3278E95F94254201(866);
if (unk_0x05EFB6A616B6FADE(iVar3, 1) || unk_0x05EFB6A616B6FADE(iVar3, 3))
{
return 1;
}
}
if (unk_0xC29B8FF8374918FD())
{
if (unk_0x0A68AE586CCE49F6())
{
if (unk_0x59E183DE06AD5BA4())
{
unk_0x2AD48F3CEBA882E9(joaat("sp_unlock_exclus_content"), &iVar4, -1);
unk_0x2BCFB39E86340DAA(&iVar4, 1);
unk_0x2BCFB39E86340DAA(&iVar4, 3);
unk_0x2BCFB39E86340DAA(&iVar4, 5);
unk_0x2BCFB39E86340DAA(&Global_25, 1);
unk_0x2BCFB39E86340DAA(&Global_25, 3);
unk_0x2BCFB39E86340DAA(&Global_25, 5);
unk_0x93180BE33E7149EF(joaat("sp_unlock_exclus_content"), iVar4, 1);
if (unk_0x63141F5FDACF3D9B())
{
iVar4 = unk_0x3278E95F94254201(866);
unk_0x2BCFB39E86340DAA(&iVar4, 1);
unk_0x2BCFB39E86340DAA(&iVar4, 3);
unk_0xF8B43D25409B2964(iVar4);
}
return 1;
}
}
}
return 0;
}
int func_459()
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
if (unk_0x05EFB6A616B6FADE(Global_25, 6))
{
if (unk_0x05EFB6A616B6FADE(Global_25, 2) || unk_0x05EFB6A616B6FADE(Global_25, 4))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x2AD48F3CEBA882E9(joaat("sp_unlock_exclus_content"), &iVar0, -1))
{
if (unk_0x05EFB6A616B6FADE(iVar0, 6))
{
if (unk_0x05EFB6A616B6FADE(iVar0, 2) || unk_0x05EFB6A616B6FADE(iVar0, 4))
{
return 1;
}
else
{
return 0;
}
}
}
if (unk_0xF93DEFC3A4C8A766(0))
{
if (Global_144766.f_3)
{
iVar2 = joaat("mpply_plat_up_lb_check");
if (unk_0x2AD48F3CEBA882E9(iVar2, &iVar1, -1))
{
if (unk_0x05EFB6A616B6FADE(iVar1, 8))
{
return 1;
}
}
}
}
if (unk_0x63141F5FDACF3D9B())
{
iVar3 = unk_0x3278E95F94254201(866);
if (unk_0x05EFB6A616B6FADE(iVar3, 2) || unk_0x05EFB6A616B6FADE(iVar3, 4))
{
return 1;
}
}
return 0;
}
void func_460(char* sParam0, int iParam1, int iParam2, char* sParam3, char* sParam4, char* sParam5, char* sParam6, int iParam7, int iParam8, int iParam9)
{
char cVar0[32];
sParam0->f_11 = iParam1;
StringCopy(sParam0, sParam3, 16);
sParam0->f_4 = unk_0xFEB6EEC0545AF7AA(sParam4);
sParam0->f_5 = unk_0xFEB6EEC0545AF7AA(sParam5);
sParam0->f_8 = unk_0xFEB6EEC0545AF7AA(sParam6);
sParam0->f_6 = iParam7;
sParam0->f_7 = iParam8;
sParam0->f_9 = (iParam1 / 32);
sParam0->f_10 = (iParam1 % 32);
sParam0->f_12 = iParam9;
if (unk_0xDC5D81351D6A4DDB(iParam2) && !unk_0x4915F4759304D5CF(iParam2))
{
if ((sParam0->f_6 == 0 || sParam0->f_6 == 1) || sParam0->f_6 == 2)
{
}
else if (sParam0->f_6 == 3 || sParam0->f_6 == 4)
{
StringCopy(&cVar0, "", 32);
if (((((sParam0->f_11 == 13 || sParam0->f_11 == 14) || sParam0->f_11 == 15) || sParam0->f_11 == 16) || sParam0->f_11 == 71) || sParam0->f_11 == 72)
{
StringConCat(&cVar0, "FM_", 32);
StringConCat(&cVar0, "CREW_", 32);
if (unk_0x8F474E419F56E48D(iParam2) == joaat("mp_m_freemode_01"))
{
StringConCat(&cVar0, "M_", 32);
}
else
{
StringConCat(&cVar0, "F_", 32);
}
StringConCat(&cVar0, sParam5, 32);
}
else if (unk_0x3CAC2741CC1A631F(sParam6, "torsoDecal") || unk_0x3CAC2741CC1A631F(sParam6, "hairOverlay"))
{
StringCopy(&cVar0, sParam5, 32);
}
else
{
if (((((((((((((((((((sParam0->f_11 == 0 || sParam0->f_11 == 1) || sParam0->f_11 == 2) || sParam0->f_11 == 4) || sParam0->f_11 == 3) || sParam0->f_11 == 54) || sParam0->f_11 == 5) || sParam0->f_11 == 6) || sParam0->f_11 == 55) || sParam0->f_11 == 7) || sParam0->f_11 == 8) || sParam0->f_11 == 9) || sParam0->f_11 == 10) || sParam0->f_11 == 11) || sParam0->f_11 == 56) || sParam0->f_11 == 12) || sParam0->f_11 == 57) || sParam0->f_11 == 58) || sParam0->f_11 == 59) || sParam0->f_11 == 60)
{
StringConCat(&cVar0, "FM_Tat_Award_", 32);
}
else
{
StringConCat(&cVar0, "FM_Tat_", 32);
}
if (unk_0x8F474E419F56E48D(iParam2) == joaat("mp_m_freemode_01") || sParam0->f_11 == 20)
{
StringConCat(&cVar0, "M_", 32);
}
else
{
StringConCat(&cVar0, "F_", 32);
}
StringConCat(&cVar0, sParam5, 32);
}
sParam0->f_5 = unk_0xFEB6EEC0545AF7AA(&cVar0);
if (unk_0xAD4796F6DC66CFFE(sParam0->f_4, sParam0->f_5) == 7)
{
sParam0->f_11 = -1;
}
}
}
}
bool func_461(int iParam0, int iParam1)
{
int iVar0;
int iVar1;
if (iParam0 == -1)
{
return 0;
}
iVar0 = func_462(iParam0, iParam1);
iVar1 = func_442(iParam0);
if (iVar1 < 0 || iVar1 >= 32)
{
return 0;
}
return unk_0x05EFB6A616B6FADE(iVar0, iVar1);
}
int func_462(int iParam0, int iParam1)
{
int iVar0;
int iVar1;
iVar0 = func_463(iParam0);
if (iVar0 == 9954)
{
return 0;
}
iVar1 = func_19(iVar0, iParam1, 0);
return iVar1;
}
int func_463(int iParam0)
{
int iVar0;
int iVar1;
iVar0 = iParam0;
iVar1 = func_446(iVar0);
if ((func_21() == 0 || func_445() == 0) || (func_21() == 999 && func_445() == 999))
{
switch (iVar1)
{
case 0:
return 1048;
break;
case 1:
return 1049;
break;
case 2:
return 1050;
break;
case 3:
return 1051;
break;
case 4:
return 1052;
break;
case 5:
return 1053;
break;
case 6:
return 1487;
break;
case 7:
return 1488;
break;
case 8:
return 1489;
break;
case 9:
return 1490;
break;
case 10:
return 1947;
break;
case 11:
return 1948;
break;
case 12:
return 1949;
break;
case 13:
return 2423;
break;
case 14:
return 2443;
break;
case 15:
return 2446;
break;
case 16:
return 2449;
break;
case 17:
return 2612;
break;
case 18:
return 2615;
break;
case 19:
return 2618;
break;
case 20:
return 3784;
break;
case 21:
return 3787;
break;
case 22:
return 3862;
break;
case 23:
return 3865;
break;
case 24:
return 3868;
break;
case 25:
return 3871;
break;
case 26:
return 5362;
case 27:
return 5365;
break;
case 28:
return 5467;
break;
case 29:
return 5470;
break;
case 30:
return 6429;
break;
case 31:
return 6432;
break;
case 32:
return 7253;
break;
case 33:
return 7256;
break;
case 34:
return 7259;
break;
case 35:
return 7968;
break;
case 36:
return 7971;
break;
case 37:
return 7974;
break;
case 38:
return 7977;
break;
}
return 9954;
}
return 9954;
}
int func_464(int iParam0)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
if (!unk_0x4915F4759304D5CF(iParam0))
{
if (unk_0x8F474E419F56E48D(iParam0) == joaat("mp_m_freemode_01"))
{
iVar0 = unk_0x774CB20D17C3FF03(iParam0, 11);
iVar2 = func_19(1757, -1, 0);
if (iVar0 > 15)
{
iVar3 = func_503(iParam0, 11, -1);
if (iVar3 >= 237)
{
iVar4 = func_128(joaat("mp_m_freemode_01"), iVar3, 11, 3);
if ((unk_0x4BE6499482BEE1D8(iVar4, 1113995558, 0) || unk_0x4BE6499482BEE1D8(iVar4, -1467682989, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 362493804, 0))
{
if (iVar2 == 671171671)
{
return 1;
}
if (iVar2 == 1495413374)
{
return 1;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar4, -1393156190, 0) && !unk_0x4BE6499482BEE1D8(iVar4, -1237899132, 0))
{
return 1;
}
return 0;
}
}
return 0;
}
else if (unk_0x8F474E419F56E48D(iParam0) == joaat("mp_f_freemode_01"))
{
iVar0 = unk_0x774CB20D17C3FF03(iParam0, 11);
iVar1 = unk_0x7710E77D1959B321(iParam0, 11);
iVar2 = func_19(1757, -1, 0);
if (iVar0 == 3)
{
if (iVar1 == 14)
{
return 1;
}
}
else if (iVar0 > 15)
{
iVar5 = func_503(iParam0, 11, -1);
if (iVar5 >= 256)
{
iVar6 = func_128(joaat("mp_f_freemode_01"), iVar5, 11, 4);
if ((unk_0x4BE6499482BEE1D8(iVar6, 1113995558, 0) || unk_0x4BE6499482BEE1D8(iVar6, -1467682989, 0)) || unk_0x4BE6499482BEE1D8(iVar6, 362493804, 0))
{
if (iVar2 == 1911627074)
{
return 1;
}
if (iVar2 == -1214222467)
{
return 1;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar6, -1393156190, 0) && !unk_0x4BE6499482BEE1D8(iVar6, -1237899132, 0))
{
return 1;
}
return 0;
}
}
return 0;
}
}
return 0;
}
int func_465(int iParam0)
{
int iVar0;
if (unk_0xD8B89B387D170E27())
{
iVar0 = Global_1589747[unk_0xD4E735F4B6A956AC() /*790*/].f_99.f_28;
if (iVar0 != -1 && iVar0 < 4)
{
if (func_466(iVar0) != -1 && func_466(iVar0) != 0)
{
return 1;
}
}
}
if (!unk_0x4915F4759304D5CF(iParam0))
{
if (unk_0x8F474E419F56E48D(iParam0) == joaat("mp_m_freemode_01"))
{
if (unk_0x774CB20D17C3FF03(iParam0, 11) == 15)
{
return 1;
}
}
}
return 0;
}
int func_466(int iParam0)
{
if (func_467(1))
{
return Global_1379103;
}
if (iParam0 <= -1 || iParam0 >= 4)
{
return -1;
}
return Global_2449169.f_6077[iParam0];
}
bool func_467(bool bParam0)
{
if (bParam0)
{
return (unk_0x05EFB6A616B6FADE(Global_4456448.f_146776, 12) && func_468());
}
return unk_0x05EFB6A616B6FADE(Global_4456448.f_146776, 12);
}
int func_468()
{
if (Global_4456448.f_131902 == 1 || Global_4456448.f_131902 == 2)
{
return 1;
}
return 0;
}
int func_469(int iParam0, bool bParam1)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
int iVar9;
int iVar10;
int iVar11;
int iVar12;
int iVar13;
if (!unk_0x4915F4759304D5CF(iParam0))
{
if (unk_0x8F474E419F56E48D(iParam0) == joaat("mp_m_freemode_01"))
{
iVar0 = unk_0x774CB20D17C3FF03(iParam0, 11);
iVar1 = unk_0x7710E77D1959B321(iParam0, 11);
switch (iVar0)
{
case 0:
switch (iVar1)
{
case 1:
case 3:
case 5:
case 7:
case 4:
case 8:
case 11:
return 1;
break;
}
break;
case 1:
switch (iVar1)
{
case 3:
case 5:
case 6:
case 8:
case 4:
case 14:
return 1;
break;
case 1:
case 7:
case 12:
iVar2 = func_474(joaat("mp_m_freemode_01"), 11, func_503(iParam0, 11, -1), 0);
if (((iVar1 == 1 && iVar2 == 88) || (iVar1 == 7 && iVar2 == 89)) || (iVar1 == 12 && iVar2 == 87))
{
return 1;
}
break;
}
break;
case 2:
switch (iVar1)
{
case 9:
return 1;
break;
}
break;
case 5:
if (!bParam1)
{
if (func_461(13, -1))
{
return 1;
}
else if (func_461(14, -1))
{
return 1;
}
else if (func_461(15, -1))
{
return 1;
}
else if (func_461(16, -1))
{
return 1;
}
else if (func_461(71, -1))
{
return 1;
}
else if (func_461(72, -1))
{
}
else if (func_471(unk_0xD4E735F4B6A956AC(), 1) && Global_1625435[unk_0xD4E735F4B6A956AC() /*560*/].f_11.f_70.f_21 != 0)
{
return 1;
}
}
break;
default:
if (iVar0 > 15)
{
iVar3 = func_503(iParam0, 11, -1);
if (iVar3 >= 237)
{
iVar4 = func_128(joaat("mp_m_freemode_01"), iVar3, 11, 3);
if (((unk_0x4BE6499482BEE1D8(iVar4, 1113995558, 0) || unk_0x4BE6499482BEE1D8(iVar4, -1467682989, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 362493804, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 1843965488, 0))
{
return 1;
}
}
}
break;
}
iVar0 = unk_0x774CB20D17C3FF03(iParam0, 8);
iVar1 = unk_0x7710E77D1959B321(iParam0, 8);
switch (iVar0)
{
case 0:
switch (iVar1)
{
case 1:
case 3:
case 5:
case 7:
case 4:
case 8:
case 11:
return 1;
break;
}
break;
case 1:
switch (iVar1)
{
case 3:
case 5:
case 6:
case 8:
case 4:
case 14:
case 1:
case 7:
case 12:
return 1;
break;
}
break;
case 2:
switch (iVar1)
{
case 1:
case 3:
case 5:
case 7:
case 4:
case 8:
case 11:
return 1;
break;
}
break;
case 14:
switch (iVar1)
{
case 3:
case 5:
case 6:
case 8:
case 4:
case 14:
case 1:
case 7:
case 12:
return 1;
break;
}
break;
default:
if (iVar0 > 15)
{
iVar5 = func_503(iParam0, 8, -1);
if (iVar5 >= 241)
{
iVar6 = func_128(joaat("mp_m_freemode_01"), iVar5, 8, 3);
if (((unk_0x4BE6499482BEE1D8(iVar6, 1113995558, 0) || unk_0x4BE6499482BEE1D8(iVar6, -1467682989, 0)) || unk_0x4BE6499482BEE1D8(iVar6, 362493804, 0)) || unk_0x4BE6499482BEE1D8(iVar6, 1843965488, 0))
{
return 1;
}
}
}
break;
}
}
else if (unk_0x8F474E419F56E48D(iParam0) == joaat("mp_f_freemode_01"))
{
iVar0 = unk_0x774CB20D17C3FF03(iParam0, 11);
iVar1 = unk_0x7710E77D1959B321(iParam0, 11);
switch (iVar0)
{
case 0:
switch (iVar1)
{
case 1:
case 2:
return 1;
break;
case 7:
case 4:
case 9:
iVar7 = func_474(joaat("mp_f_freemode_01"), 11, func_503(iParam0, 11, -1), 0);
if (((iVar1 == 7 && iVar7 == 88) || (iVar1 == 4 && iVar7 == 89)) || (iVar1 == 9 && iVar7 == 87))
{
return 1;
}
break;
}
break;
case 2:
switch (iVar1)
{
case 0:
case 1:
case 2:
case 3:
case 4:
return 1;
break;
}
break;
case 3:
switch (iVar1)
{
case 14:
return 1;
break;
}
break;
case 11:
switch (iVar1)
{
case 10:
case 11:
case 15:
return 1;
break;
}
break;
default:
if (iVar0 > 15)
{
iVar8 = func_503(iParam0, 11, -1);
if (iVar8 >= 256)
{
iVar9 = func_128(joaat("mp_f_freemode_01"), iVar8, 11, 4);
if (((unk_0x4BE6499482BEE1D8(iVar9, 1113995558, 0) || unk_0x4BE6499482BEE1D8(iVar9, -1467682989, 0)) || unk_0x4BE6499482BEE1D8(iVar9, 362493804, 0)) || unk_0x4BE6499482BEE1D8(iVar9, 1843965488, 0))
{
return 1;
}
}
}
break;
}
iVar0 = unk_0x774CB20D17C3FF03(iParam0, 8);
iVar1 = unk_0x7710E77D1959B321(iParam0, 8);
switch (iVar0)
{
case 0:
switch (iVar1)
{
case 1:
case 2:
return 1;
break;
case 7:
case 4:
case 9:
iVar10 = func_474(joaat("mp_f_freemode_01"), 11, func_503(iParam0, 11, -1), 0);
if (((iVar1 == 7 && iVar10 == 88) || (iVar1 == 4 && iVar10 == 89)) || (iVar1 == 9 && iVar10 == 87))
{
return 1;
}
break;
}
break;
case 1:
switch (iVar1)
{
case 1:
case 2:
return 1;
break;
case 7:
case 4:
case 9:
iVar11 = func_474(joaat("mp_f_freemode_01"), 11, func_503(iParam0, 11, -1), 0);
if (((iVar1 == 7 && iVar11 == 88) || (iVar1 == 4 && iVar11 == 89)) || (iVar1 == 9 && iVar11 == 87))
{
return 1;
}
break;
}
break;
case 2:
switch (iVar1)
{
case 1:
case 3:
case 5:
case 7:
case 4:
case 8:
case 11:
return 1;
break;
}
break;
case 11:
switch (iVar1)
{
case 10:
case 11:
case 15:
return 1;
break;
}
break;
case 14:
switch (iVar1)
{
case 3:
case 5:
case 6:
case 8:
case 4:
case 14:
case 1:
case 7:
case 12:
return 1;
break;
}
break;
default:
if (iVar0 > 15)
{
iVar12 = func_503(iParam0, 8, -1);
if (iVar12 >= 136)
{
iVar13 = func_128(joaat("mp_f_freemode_01"), iVar12, 8, 4);
if (((unk_0x4BE6499482BEE1D8(iVar13, 1113995558, 0) || unk_0x4BE6499482BEE1D8(iVar13, -1467682989, 0)) || unk_0x4BE6499482BEE1D8(iVar13, 362493804, 0)) || unk_0x4BE6499482BEE1D8(iVar13, 1843965488, 0))
{
return 1;
}
}
}
break;
}
}
if (func_470(iParam0))
{
return 1;
}
}
return 0;
}
int func_470(int iParam0)
{
struct<5> Var0;
bool bVar1;
int iVar2;
int iVar3;
bVar1 = unk_0x8F474E419F56E48D(iParam0) == joaat("mp_m_freemode_01");
iVar2 = unk_0x774CB20D17C3FF03(iParam0, 11);
iVar3 = unk_0x7710E77D1959B321(iParam0, 11);
if (bVar1)
{
unk_0xDD7BFAE08DAD69B6(103980309, &Var0);
}
else
{
unk_0xDD7BFAE08DAD69B6(-31075674, &Var0);
}
if (iVar2 == Var0.f_3 && iVar3 == Var0.f_4)
{
return 1;
}
return 0;
}
int func_471(int iParam0, bool bParam1)
{
return func_472(iParam0, bParam1, 1);
}
int func_472(int iParam0, bool bParam1, int iParam2)
{
int iVar0;
if (iParam0 == func_359())
{
return 0;
}
if (!bParam1)
{
if (func_473(iParam0, iParam2))
{
return 0;
}
}
iVar0 = Global_1625435[iParam0 /*560*/].f_11;
if (iVar0 != func_359() && Global_1625435[iVar0 /*560*/].f_11.f_409 == iParam2)
{
return 1;
}
return 0;
}
int func_473(int iParam0, int iParam1)
{
if (iParam0 != func_359())
{
if (Global_1625435[iParam0 /*560*/].f_11 != func_359())
{
if (Global_1625435[iParam0 /*560*/].f_11 == iParam0 && Global_1625435[iParam0 /*560*/].f_11.f_409 == iParam1)
{
return 1;
}
}
}
return 0;
}
int func_474(int iParam0, int iParam1, int iParam2, int iParam3)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
var uVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
int iVar9;
var uVar10;
int iVar11;
int iVar12;
int iVar13;
int iVar14;
int iVar15;
var uVar16;
int iVar17;
int iVar18;
int iVar19;
int iVar20;
int iVar21;
var uVar22;
int iVar23;
if (iParam0 == joaat("mp_m_freemode_01"))
{
if (iParam1 == 11)
{
if (iParam2 == 1)
{
return 73;
}
else if (iParam2 == 3)
{
return 74;
}
else if (iParam2 == 5)
{
return 75;
}
else if (iParam2 == 7)
{
return 76;
}
else if (iParam2 == 4)
{
return 77;
}
else if (iParam2 == 8)
{
return 78;
}
else if (iParam2 == 11)
{
return 79;
}
else if (iParam2 == 19)
{
return 80;
}
else if (iParam2 == 21)
{
return 81;
}
else if (iParam2 == 22)
{
return 82;
}
else if (iParam2 == 24)
{
return 83;
}
else if (iParam2 == 20)
{
return 84;
}
else if (iParam2 == 30)
{
return 85;
}
else if (iParam2 == 23)
{
if (func_441(89, -1))
{
return 89;
}
}
else if (iParam2 == 17)
{
return 88;
}
else if (iParam2 == 28)
{
if (func_441(87, -1))
{
return 87;
}
}
else if (iParam2 == 41)
{
return 86;
}
else if (iParam2 >= 237)
{
iVar0 = func_128(iParam0, iParam2, 11, 3);
if (iVar0 != -1)
{
if (unk_0x4BE6499482BEE1D8(iVar0, 1113995558, 0) || unk_0x4BE6499482BEE1D8(iVar0, 362493804, 0))
{
iVar1 = unk_0x2F0D0A9B05362CCC(iVar0);
iVar2 = 0;
while (iVar2 < iVar1)
{
unk_0xD24B9193F8601A82(iVar0, iVar2, &iVar3, &uVar4, &iVar5);
if (iVar5 == 10)
{
if (iVar3 != 0 && iVar3 != 1849449579)
{
return func_447(iVar3, 3);
}
else
{
return uVar4;
}
}
iVar2++;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar0, -1467682989, 0))
{
if (iParam3 == 0)
{
iParam3 = func_19(1757, -1, 0);
}
return func_447(iParam3, 3);
}
}
}
}
else if (iParam1 == 8)
{
if (iParam2 == 1)
{
return 73;
}
else if (iParam2 == 3)
{
return 74;
}
else if (iParam2 == 5)
{
return 75;
}
else if (iParam2 == 7)
{
return 76;
}
else if (iParam2 == 4)
{
return 77;
}
else if (iParam2 == 8)
{
return 78;
}
else if (iParam2 == 11)
{
return 79;
}
else if (iParam2 == 23)
{
if (func_441(89, -1))
{
return 89;
}
}
else if (iParam2 == 17)
{
return 88;
}
else if (iParam2 == 28)
{
if (func_441(87, -1))
{
return 87;
}
}
else if (iParam2 == 33)
{
return 73;
}
else if (iParam2 == 35)
{
return 74;
}
else if (iParam2 == 37)
{
return 75;
}
else if (iParam2 == 39)
{
return 76;
}
else if (iParam2 == 36)
{
return 77;
}
else if (iParam2 == 40)
{
return 78;
}
else if (iParam2 == 43)
{
return 79;
}
else if (iParam2 == 19)
{
return 80;
}
else if (iParam2 == 21)
{
return 81;
}
else if (iParam2 == 22)
{
return 82;
}
else if (iParam2 == 24)
{
return 83;
}
else if (iParam2 == 20)
{
return 84;
}
else if (iParam2 == 30)
{
return 85;
}
else if (iParam2 == 227)
{
return 80;
}
else if (iParam2 == 229)
{
return 81;
}
else if (iParam2 == 230)
{
return 82;
}
else if (iParam2 == 232)
{
return 83;
}
else if (iParam2 == 228)
{
return 84;
}
else if (iParam2 == 238)
{
return 85;
}
else if (iParam2 == 231)
{
if (func_441(89, -1))
{
return 89;
}
}
else if (iParam2 == 225)
{
return 88;
}
else if (iParam2 == 236)
{
if (func_441(87, -1))
{
return 87;
}
}
else if (iParam2 >= 241)
{
iVar6 = func_128(iParam0, iParam2, 8, 3);
if (iVar6 != -1)
{
if (unk_0x4BE6499482BEE1D8(iVar6, 1113995558, 0) || unk_0x4BE6499482BEE1D8(iVar6, 362493804, 0))
{
iVar7 = unk_0x2F0D0A9B05362CCC(iVar6);
iVar8 = 0;
while (iVar8 < iVar7)
{
unk_0xD24B9193F8601A82(iVar6, iVar8, &iVar9, &uVar10, &iVar11);
if (iVar11 == 10)
{
if (iVar9 != 0 && iVar9 != 1849449579)
{
return func_447(iVar9, 3);
}
else
{
return uVar10;
}
}
iVar8++;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar6, -1467682989, 0))
{
if (iParam3 == 0)
{
iParam3 = func_19(1757, -1, 0);
}
return func_447(iParam3, 3);
}
}
}
}
}
else if (iParam0 == joaat("mp_f_freemode_01"))
{
if (iParam1 == 11)
{
if (iParam2 == 1)
{
return 75;
}
else if (iParam2 == 2)
{
return 77;
}
else if (iParam2 == 4)
{
if (func_441(89, -1))
{
return 89;
}
}
else if (iParam2 == 7)
{
return 88;
}
else if (iParam2 == 9)
{
if (func_441(87, -1))
{
return 87;
}
}
else if (iParam2 == 32)
{
return 78;
}
else if (iParam2 == 33)
{
return 79;
}
else if (iParam2 == 34)
{
return 80;
}
else if (iParam2 == 35)
{
return 81;
}
else if (iParam2 == 36)
{
return 82;
}
else if (iParam2 == 62)
{
return 76;
}
else if (iParam2 == 63)
{
return 83;
}
else if (iParam2 == 186)
{
return 84;
}
else if (iParam2 == 187)
{
return 85;
}
else if (iParam2 == 191)
{
return 74;
}
else if (iParam2 >= 256)
{
iVar12 = func_128(iParam0, iParam2, 11, 4);
if (iVar12 != -1)
{
if (unk_0x4BE6499482BEE1D8(iVar12, 1113995558, 0) || unk_0x4BE6499482BEE1D8(iVar12, 362493804, 0))
{
iVar13 = unk_0x2F0D0A9B05362CCC(iVar12);
iVar14 = 0;
while (iVar14 < iVar13)
{
unk_0xD24B9193F8601A82(iVar12, iVar14, &iVar15, &uVar16, &iVar17);
if (iVar17 == 10)
{
if (iVar15 != 0 && iVar15 != 1849449579)
{
return func_447(iVar15, 4);
}
else
{
return uVar16;
}
}
iVar14++;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar12, -1467682989, 0))
{
if (iParam3 == 0)
{
iParam3 = func_19(1757, -1, 0);
}
return func_447(iParam3, 4);
}
}
}
}
else if (iParam1 == 8)
{
if (iParam2 == 1)
{
return 75;
}
else if (iParam2 == 2)
{
return 77;
}
else if (iParam2 == 4)
{
if (func_441(89, -1))
{
return 89;
}
}
else if (iParam2 == 7)
{
return 88;
}
else if (iParam2 == 9)
{
if (func_441(87, -1))
{
return 87;
}
}
else if (iParam2 == 17)
{
return 75;
}
else if (iParam2 == 18)
{
return 77;
}
else if (iParam2 == 20)
{
if (func_441(89, -1))
{
return 89;
}
}
else if (iParam2 == 23)
{
return 88;
}
else if (iParam2 == 25)
{
if (func_441(87, -1))
{
return 87;
}
}
else if (iParam2 == 81)
{
return 84;
}
else if (iParam2 == 82)
{
return 85;
}
else if (iParam2 == 86)
{
return 74;
}
else if (iParam2 >= 136)
{
iVar18 = func_128(iParam0, iParam2, 8, 4);
if (iVar18 != -1)
{
if (unk_0x4BE6499482BEE1D8(iVar18, 1113995558, 0) || unk_0x4BE6499482BEE1D8(iVar18, 362493804, 0))
{
iVar19 = unk_0x2F0D0A9B05362CCC(iVar18);
iVar20 = 0;
while (iVar20 < iVar19)
{
unk_0xD24B9193F8601A82(iVar18, iVar20, &iVar21, &uVar22, &iVar23);
if (iVar23 == 10)
{
if (iVar21 != 0 && iVar21 != 1849449579)
{
return func_447(iVar21, 4);
}
else
{
return uVar22;
}
}
iVar20++;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar18, -1467682989, 0))
{
if (iParam3 == 0)
{
iParam3 = func_19(1757, -1, 0);
}
return func_447(iParam3, 4);
}
}
}
}
}
return -1;
}
int func_475(int iParam0)
{
switch (unk_0x8F474E419F56E48D(iParam0))
{
case joaat("player_zero"):
return 0;
break;
case joaat("player_one"):
return 1;
break;
case joaat("player_two"):
return 2;
break;
case joaat("mp_m_freemode_01"):
return 3;
break;
case joaat("mp_f_freemode_01"):
return 4;
break;
}
return 0;
}
int func_476(int iParam0, int iParam1)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
var uVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
int iVar9;
var uVar10;
int iVar11;
if (iParam0 == joaat("mp_m_freemode_01"))
{
if (iParam1 == 0)
{
return 123;
return -1;
}
else if (iParam1 == 1)
{
return 93;
}
else if (iParam1 == 2)
{
return 93;
}
else if (iParam1 == 3)
{
return 93;
}
else if (iParam1 == 4)
{
return 93;
}
else if (iParam1 == 5)
{
return 93;
}
else if (iParam1 == 6)
{
return 93;
}
else if (iParam1 == 7)
{
return 94;
}
else if (iParam1 == 8)
{
return 94;
}
else if (iParam1 == 9)
{
return 94;
}
else if (iParam1 == 10)
{
return 94;
}
else if (iParam1 == 11)
{
return 94;
}
else if (iParam1 == 12)
{
return 94;
}
else if (iParam1 == 13)
{
return 95;
}
else if (iParam1 == 14)
{
return 95;
}
else if (iParam1 == 15)
{
return 95;
}
else if (iParam1 == 16)
{
return 95;
}
else if (iParam1 == 17)
{
return 95;
}
else if (iParam1 == 18)
{
return 95;
}
else if (iParam1 == 19)
{
return 96;
}
else if (iParam1 == 20)
{
return 96;
}
else if (iParam1 == 21)
{
return 96;
}
else if (iParam1 == 22)
{
return 96;
}
else if (iParam1 == 23)
{
return 96;
}
else if (iParam1 == 24)
{
return 96;
}
else if (iParam1 == 25)
{
return 96;
}
else if (iParam1 == 26)
{
return 97;
}
else if (iParam1 == 27)
{
return 97;
}
else if (iParam1 == 28)
{
return 97;
}
else if (iParam1 == 29)
{
return 97;
}
else if (iParam1 == 30)
{
return 97;
}
else if (iParam1 == 31)
{
return 97;
}
else if (iParam1 == 32)
{
return 98;
}
else if (iParam1 == 33)
{
return 98;
}
else if (iParam1 == 34)
{
return 98;
}
else if (iParam1 == 35)
{
return 98;
}
else if (iParam1 == 36)
{
return 98;
}
else if (iParam1 == 37)
{
return 98;
}
else if (iParam1 == 38)
{
return 99;
}
else if (iParam1 == 39)
{
return 99;
}
else if (iParam1 == 40)
{
return 99;
}
else if (iParam1 == 41)
{
return 99;
}
else if (iParam1 == 42)
{
return 99;
}
else if (iParam1 == 43)
{
return 99;
}
else if (iParam1 == 44)
{
return 99;
}
else if (iParam1 == 45)
{
return 100;
}
else if (iParam1 == 46)
{
return 100;
}
else if (iParam1 == 47)
{
return 100;
}
else if (iParam1 == 48)
{
return 100;
}
else if (iParam1 == 49)
{
return 100;
}
else if (iParam1 == 50)
{
return 101;
}
else if (iParam1 == 51)
{
return 101;
}
else if (iParam1 == 52)
{
return 101;
}
else if (iParam1 == 53)
{
return 101;
}
else if (iParam1 == 54)
{
return 101;
}
else if (iParam1 == 55)
{
return 101;
}
else if (iParam1 == 56)
{
return 101;
}
else if (iParam1 == 57)
{
return 102;
}
else if (iParam1 == 58)
{
return 102;
}
else if (iParam1 == 59)
{
return 102;
}
else if (iParam1 == 60)
{
return 102;
}
else if (iParam1 == 61)
{
return 102;
}
else if (iParam1 == 62)
{
return 102;
}
else if (iParam1 == 63)
{
return 103;
}
else if (iParam1 == 64)
{
return 103;
}
else if (iParam1 == 65)
{
return 103;
}
else if (iParam1 == 66)
{
return 103;
}
else if (iParam1 == 67)
{
return 103;
}
else if (iParam1 == 68)
{
return 103;
}
else if (iParam1 == 69)
{
return 104;
}
else if (iParam1 == 70)
{
return 104;
}
else if (iParam1 == 71)
{
return 104;
}
else if (iParam1 == 72)
{
return 104;
}
else if (iParam1 == 73)
{
return 104;
}
else if (iParam1 == 74)
{
return 105;
}
else if (iParam1 == 75)
{
return 105;
}
else if (iParam1 == 76)
{
return 105;
}
else if (iParam1 == 77)
{
return 105;
}
else if (iParam1 == 78)
{
return 105;
}
else if (iParam1 == 79)
{
return 105;
}
else if (iParam1 == 80)
{
return 106;
}
else if (iParam1 == 81)
{
return 106;
}
else if (iParam1 == 82)
{
return 106;
}
else if (iParam1 == 83)
{
return 106;
}
else if (iParam1 == 84)
{
return 106;
}
else if (iParam1 == 85)
{
return 107;
}
else if (iParam1 == 86)
{
return 107;
}
else if (iParam1 == 87)
{
return 107;
}
else if (iParam1 == 88)
{
return 107;
}
else if (iParam1 == 89)
{
return 107;
}
else if (iParam1 == 90)
{
return 107;
}
else if (iParam1 >= 91)
{
iVar0 = func_128(iParam0, iParam1, 2, 3);
if (iVar0 != -1)
{
switch (iVar0)
{
case -1983429828:
case 228608740:
case 600995656:
case 850728205:
case 1093513726:
case 1732051928:
return 108;
break;
case -457639650:
case -94952354:
case 144031963:
case 533262145:
case -1545668757:
case -905050483:
return 109;
break;
case -1625493211:
case -1112723899:
case -1432451032:
case -647502406:
case -925481833:
return 110;
break;
case -1168328595:
case -1421993424:
case -576454917:
case -438399124:
case 271967258:
return 111;
break;
case -1903246936:
case 1155542604:
case 2048071857:
case -1605475033:
case 100085859:
return 112;
break;
case 745771948:
case -1619297862:
case -1878926649:
case -485850917:
case 558628189:
return 113;
break;
case 1577121865:
case 884057515:
case 2055188806:
case 1362452146:
case -1761842625:
return 114;
break;
}
iVar1 = unk_0x2F0D0A9B05362CCC(iVar0);
iVar2 = 0;
while (iVar2 < iVar1)
{
unk_0xD24B9193F8601A82(iVar0, iVar2, &iVar3, &uVar4, &iVar5);
if (iVar5 == 10)
{
if (iVar3 != 0 && iVar3 != 1849449579)
{
return func_447(iVar3, 3);
}
else
{
return uVar4;
}
}
iVar2++;
}
}
}
}
else if (iParam0 == joaat("mp_f_freemode_01"))
{
if (iParam1 == 0)
{
return 123;
return -1;
}
else if (iParam1 == 1)
{
return 93;
}
else if (iParam1 == 2)
{
return 93;
}
else if (iParam1 == 3)
{
return 93;
}
else if (iParam1 == 4)
{
return 93;
}
else if (iParam1 == 5)
{
return 93;
}
else if (iParam1 == 6)
{
return 93;
}
else if (iParam1 == 7)
{
return 94;
}
else if (iParam1 == 8)
{
return 94;
}
else if (iParam1 == 9)
{
return 94;
}
else if (iParam1 == 10)
{
return 94;
}
else if (iParam1 == 11)
{
return 94;
}
else if (iParam1 == 12)
{
return 94;
}
else if (iParam1 == 13)
{
return 95;
}
else if (iParam1 == 14)
{
return 95;
}
else if (iParam1 == 15)
{
return 95;
}
else if (iParam1 == 16)
{
return 95;
}
else if (iParam1 == 17)
{
return 95;
}
else if (iParam1 == 18)
{
return 96;
}
else if (iParam1 == 19)
{
return 96;
}
else if (iParam1 == 20)
{
return 96;
}
else if (iParam1 == 21)
{
return 96;
}
else if (iParam1 == 22)
{
return 96;
}
else if (iParam1 == 23)
{
return 96;
}
else if (iParam1 == 24)
{
return 97;
}
else if (iParam1 == 25)
{
return 97;
}
else if (iParam1 == 26)
{
return 97;
}
else if (iParam1 == 27)
{
return 97;
}
else if (iParam1 == 28)
{
return 97;
}
else if (iParam1 == 29)
{
return 97;
}
else if (iParam1 == 30)
{
return 98;
}
else if (iParam1 == 31)
{
return 98;
}
else if (iParam1 == 32)
{
return 98;
}
else if (iParam1 == 33)
{
return 98;
}
else if (iParam1 == 34)
{
return 98;
}
else if (iParam1 == 35)
{
return 99;
}
else if (iParam1 == 36)
{
return 99;
}
else if (iParam1 == 37)
{
return 99;
}
else if (iParam1 == 38)
{
return 99;
}
else if (iParam1 == 39)
{
return 99;
}
else if (iParam1 == 40)
{
return 99;
}
else if (iParam1 == 41)
{
return 100;
}
else if (iParam1 == 42)
{
return 100;
}
else if (iParam1 == 43)
{
return 100;
}
else if (iParam1 == 44)
{
return 100;
}
else if (iParam1 == 45)
{
return 100;
}
else if (iParam1 == 46)
{
return 100;
}
else if (iParam1 == 47)
{
return 101;
}
else if (iParam1 == 48)
{
return 101;
}
else if (iParam1 == 49)
{
return 101;
}
else if (iParam1 == 50)
{
return 101;
}
else if (iParam1 == 51)
{
return 101;
}
else if (iParam1 == 52)
{
return 101;
}
else if (iParam1 == 53)
{
return 102;
}
else if (iParam1 == 54)
{
return 102;
}
else if (iParam1 == 55)
{
return 102;
}
else if (iParam1 == 56)
{
return 102;
}
else if (iParam1 == 57)
{
return 102;
}
else if (iParam1 == 58)
{
return 102;
}
else if (iParam1 == 59)
{
return 102;
}
else if (iParam1 == 60)
{
return 103;
}
else if (iParam1 == 61)
{
return 103;
}
else if (iParam1 == 62)
{
return 103;
}
else if (iParam1 == 63)
{
return 103;
}
else if (iParam1 == 64)
{
return 103;
}
else if (iParam1 == 65)
{
return 103;
}
else if (iParam1 == 66)
{
return 103;
}
else if (iParam1 == 67)
{
return 104;
}
else if (iParam1 == 68)
{
return 104;
}
else if (iParam1 == 69)
{
return 104;
}
else if (iParam1 == 70)
{
return 104;
}
else if (iParam1 == 71)
{
return 104;
}
else if (iParam1 == 72)
{
return 104;
}
else if (iParam1 == 73)
{
return 105;
}
else if (iParam1 == 74)
{
return 105;
}
else if (iParam1 == 75)
{
return 105;
}
else if (iParam1 == 76)
{
return 105;
}
else if (iParam1 == 77)
{
return 105;
}
else if (iParam1 == 78)
{
return 105;
}
else if (iParam1 == 79)
{
return func_447(-1261720761, 4);
}
else if (iParam1 == 80)
{
return func_447(-1261720761, 4);
}
else if (iParam1 == 81)
{
return func_447(-1261720761, 4);
}
else if (iParam1 == 82)
{
return func_447(-1261720761, 4);
}
else if (iParam1 == 83)
{
return func_447(-1261720761, 4);
}
else if (iParam1 == 84)
{
return func_447(-1261720761, 4);
}
else if (iParam1 == 85)
{
return 107;
}
else if (iParam1 == 86)
{
return 107;
}
else if (iParam1 == 87)
{
return 107;
}
else if (iParam1 == 88)
{
return 107;
}
else if (iParam1 == 89)
{
return 107;
}
else if (iParam1 == 90)
{
return 107;
}
else if (iParam1 == 91)
{
return 107;
}
else if (iParam1 >= 92)
{
iVar6 = func_128(iParam0, iParam1, 2, 4);
if (iVar6 != -1)
{
switch (iVar6)
{
case -1238992735:
case -1947261901:
case -771018642:
case -1486169302:
case 1159796376:
case 256274500:
return 108;
break;
case 1389867525:
case 1622396349:
case 1851615504:
case -2052614252:
case -1818610823:
case -1799420756:
return 109;
break;
case 1855226196:
case 271139943:
case -1099030254:
case -307724442:
case -637872117:
return 110;
break;
case -663797501:
case 2088667427:
case 1779786837:
case -1609936838:
case -1880477702:
return 111;
break;
case 1052499595:
case 142438919:
case 458495932:
case -701723290:
case -119221546:
return 112;
break;
case 1245050198:
case 1481937299:
case 1754870300:
case -2033029490:
case 62318681:
return 112;
break;
case 665775322:
case 618391324:
case 497473714:
case 123808807:
case -231538229:
return 114;
break;
}
iVar7 = unk_0x2F0D0A9B05362CCC(iVar6);
iVar8 = 0;
while (iVar8 < iVar7)
{
unk_0xD24B9193F8601A82(iVar6, iVar8, &iVar9, &uVar10, &iVar11);
if (iVar11 == 10)
{
if (iVar9 != 0 && iVar9 != 1849449579)
{
return func_447(iVar9, 4);
}
else
{
return uVar10;
}
}
iVar8++;
}
}
}
}
return -1;
}
void func_477(int iParam0, int iParam1)
{
struct<12> Var0;
int iVar1;
int iVar2;
int iVar3;
struct<7> Var4;
int iVar5;
int iVar6;
struct<7> Var7;
int iVar8;
int iVar9;
struct<7> Var10;
int iVar11;
int iVar12;
struct<7> Var13;
int iVar14;
if (!unk_0x4915F4759304D5CF(iParam1))
{
iVar1 = func_475(iParam1);
if (iParam0 != 0)
{
if (iVar1 == 3 || iVar1 == 4)
{
if (iParam0 == 1019352240)
{
func_499(13, 0, Global_71014);
func_499(14, 0, Global_71014);
func_499(15, 0, Global_71014);
func_499(16, 0, Global_71014);
func_499(71, 0, Global_71014);
func_499(72, 0, Global_71014);
return;
}
else if (iParam0 == 277073536)
{
if (iVar1 == 3)
{
func_499(73, 0, Global_71014);
func_499(74, 0, Global_71014);
func_499(75, 0, Global_71014);
func_499(76, 0, Global_71014);
func_499(77, 0, Global_71014);
func_499(78, 0, Global_71014);
func_499(79, 0, Global_71014);
func_499(80, 0, Global_71014);
func_499(81, 0, Global_71014);
func_499(82, 0, Global_71014);
func_499(83, 0, Global_71014);
func_499(84, 0, Global_71014);
func_499(85, 0, Global_71014);
func_499(86, 0, Global_71014);
func_499(90, 0, Global_71014);
func_499(91, 0, Global_71014);
func_499(124, 0, Global_71014);
func_499(125, 0, Global_71014);
func_499(87, 0, Global_71014);
func_499(88, 0, Global_71014);
func_499(89, 0, Global_71014);
iVar3 = unk_0x174C99FADFCE889F(3);
iVar2 = 0;
while (iVar2 < iVar3)
{
if (unk_0x0E7EFAB4BB04991A(3, iVar2, &Var4))
{
if (Var4.f_6 == 277073536)
{
func_499((129 + iVar2), 0, Global_71014);
}
}
iVar2++;
}
}
else
{
func_499(73, 0, Global_71014);
func_499(74, 0, Global_71014);
func_499(75, 0, Global_71014);
func_499(76, 0, Global_71014);
func_499(77, 0, Global_71014);
func_499(78, 0, Global_71014);
func_499(79, 0, Global_71014);
func_499(80, 0, Global_71014);
func_499(81, 0, Global_71014);
func_499(82, 0, Global_71014);
func_499(83, 0, Global_71014);
func_499(84, 0, Global_71014);
func_499(85, 0, Global_71014);
func_499(92, 0, Global_71014);
func_499(87, 0, Global_71014);
func_499(88, 0, Global_71014);
func_499(89, 0, Global_71014);
iVar6 = unk_0x174C99FADFCE889F(4);
iVar5 = 0;
while (iVar5 < iVar6)
{
if (unk_0x0E7EFAB4BB04991A(4, iVar5, &Var7))
{
if (Var7.f_6 == 277073536)
{
func_499((129 + iVar5), 0, Global_71014);
}
}
iVar5++;
}
}
}
else if (iParam0 == 2140335355)
{
if (iVar1 == 3)
{
func_499(93, 0, Global_71014);
func_499(94, 0, Global_71014);
func_499(95, 0, Global_71014);
func_499(96, 0, Global_71014);
func_499(97, 0, Global_71014);
func_499(98, 0, Global_71014);
func_499(99, 0, Global_71014);
func_499(100, 0, Global_71014);
func_499(101, 0, Global_71014);
func_499(102, 0, Global_71014);
func_499(103, 0, Global_71014);
func_499(104, 0, Global_71014);
func_499(105, 0, Global_71014);
func_499(106, 0, Global_71014);
func_499(107, 0, Global_71014);
func_499(108, 0, Global_71014);
func_499(109, 0, Global_71014);
func_499(110, 0, Global_71014);
func_499(111, 0, Global_71014);
func_499(112, 0, Global_71014);
func_499(113, 0, Global_71014);
func_499(114, 0, Global_71014);
func_499(115, 0, Global_71014);
func_499(116, 0, Global_71014);
func_499(117, 0, Global_71014);
func_499(123, 0, Global_71014);
iVar9 = unk_0x174C99FADFCE889F(3);
iVar8 = 0;
while (iVar8 < iVar9)
{
if (unk_0x0E7EFAB4BB04991A(3, iVar8, &Var10))
{
if (Var10.f_6 == 2140335355)
{
func_499((129 + iVar8), 0, Global_71014);
}
}
iVar8++;
}
}
else
{
func_499(93, 0, Global_71014);
func_499(94, 0, Global_71014);
func_499(95, 0, Global_71014);
func_499(96, 0, Global_71014);
func_499(97, 0, Global_71014);
func_499(98, 0, Global_71014);
func_499(99, 0, Global_71014);
func_499(100, 0, Global_71014);
func_499(101, 0, Global_71014);
func_499(102, 0, Global_71014);
func_499(103, 0, Global_71014);
func_499(104, 0, Global_71014);
func_499(105, 0, Global_71014);
func_499(106, 0, Global_71014);
func_499(107, 0, Global_71014);
func_499(108, 0, Global_71014);
func_499(109, 0, Global_71014);
func_499(110, 0, Global_71014);
func_499(111, 0, Global_71014);
func_499(112, 0, Global_71014);
func_499(113, 0, Global_71014);
func_499(114, 0, Global_71014);
func_499(115, 0, Global_71014);
func_499(116, 0, Global_71014);
func_499(117, 0, Global_71014);
func_499(118, 0, Global_71014);
func_499(119, 0, Global_71014);
func_499(120, 0, Global_71014);
func_499(121, 0, Global_71014);
func_499(122, 0, Global_71014);
func_499(123, 0, Global_71014);
iVar12 = unk_0x174C99FADFCE889F(4);
iVar11 = 0;
while (iVar11 < iVar12)
{
if (unk_0x0E7EFAB4BB04991A(4, iVar11, &Var13))
{
if (Var13.f_6 == 2140335355)
{
func_499((129 + iVar11), 0, Global_71014);
}
}
iVar11++;
}
}
return;
}
}
iVar14 = 0;
while (iVar14 < 127)
{
if (func_456(&Var0, iVar14, iVar1, iParam1, -1))
{
if (Var0.f_8 == iParam0)
{
func_499(Var0.f_11, 0, Global_71014);
}
}
iVar14++;
}
}
}
}
int func_478(int iParam0, int iParam1)
{
int iVar0;
iVar0 = func_502();
if (iVar0 != -1)
{
if (!func_479(iParam0, iParam1, iVar0))
{
func_499(iVar0, 0, Global_71014);
return 1;
}
}
return 0;
}
int func_479(int iParam0, int iParam1, int iParam2)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
if (!func_486(iParam0, iParam1, -1))
{
if (iParam0 == joaat("mp_m_freemode_01"))
{
iVar0 = -1;
iVar1 = -1;
if (iParam1 >= 237)
{
iVar1 = func_128(iParam0, iParam1, 11, 3);
iVar0 = func_482(iVar1);
}
if (iVar1 != -1 && func_409(iVar1, 0) != -1)
{
return 0;
}
if (iVar1 != -1 && func_480(iVar1, 0) != -1)
{
return 0;
}
if (iVar1 != -1 && unk_0x4BE6499482BEE1D8(iVar1, -497440475, 0))
{
return 0;
}
if ((iVar1 == -1198378836 || iVar1 == 968798999) || iVar1 == 1283250323)
{
return 0;
}
if ((((((iParam1 >= 0 && iParam1 <= 15) || (iParam1 >= 16 && iParam1 <= 31)) || (iParam1 >= 124 && iParam1 <= 139)) || iVar0 == 0) || iVar0 == 1) || iVar0 == 8)
{
if (iParam2 == 15)
{
return 1;
}
else if (iParam2 == 13 || iParam2 == 14)
{
if (func_474(iParam0, 11, iParam1, 0) == -1)
{
return 1;
}
}
}
else if ((iParam1 >= 80 && iParam1 <= 95) || iVar0 == 5)
{
if ((iParam2 == 16 || iParam2 == 71) || iParam2 == 72)
{
return 1;
}
}
else if ((iParam1 >= 140 && iParam1 <= 155) || iVar0 == 9)
{
if (iParam2 == 13 || iParam2 == 15)
{
return 1;
}
}
}
else if (iParam0 == joaat("mp_f_freemode_01"))
{
iVar2 = -1;
iVar3 = -1;
if (iParam1 >= 256)
{
iVar3 = func_128(iParam0, iParam1, 11, 4);
iVar2 = func_482(iVar3);
}
if (iVar3 != -1 && func_409(iVar3, 0) != -1)
{
return 0;
}
if (iVar3 != -1 && func_480(iVar3, 0) != -1)
{
return 0;
}
if (iVar3 != -1 && unk_0x4BE6499482BEE1D8(iVar3, -497440475, 0))
{
return 0;
}
if ((iParam1 >= 0 && iParam1 <= 15) || iVar2 == 0)
{
if (iParam2 == 13 || iParam2 == 15)
{
if (func_474(iParam0, 11, iParam1, 0) == -1)
{
return 1;
}
}
}
else if ((iParam1 >= 32 && iParam1 <= 47) || iVar2 == 2)
{
if (iParam2 == 13 || iParam2 == 16)
{
if (func_474(iParam0, 11, iParam1, 0) == -1)
{
return 1;
}
}
}
else if ((iParam1 >= 64 && iParam1 <= 79) || iVar2 == 4)
{
if (iParam2 == 13)
{
return 1;
}
if (iParam2 == 15)
{
if (iVar2 != 4 || !unk_0x4BE6499482BEE1D8(iVar3, 1113995558, 0))
{
return 1;
}
}
}
else if ((iParam1 >= 80 && iParam1 <= 95) || iVar2 == 5)
{
if (iParam2 == 13)
{
return 1;
}
}
else if ((iParam1 >= 144 && iParam1 <= 159) || iVar2 == 9)
{
if (iParam2 == 14)
{
return 1;
}
}
}
}
return 0;
}
int func_480(int iParam0, int iParam1)
{
int iVar0;
iVar0 = -1;
if (unk_0x4BE6499482BEE1D8(iParam0, 1769225721, iParam1))
{
iVar0 = 0;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, -1834446747, iParam1))
{
iVar0 = 1;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, -939525357, iParam1))
{
iVar0 = 2;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, 38465448, iParam1))
{
iVar0 = 3;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, -1469891622, iParam1))
{
iVar0 = 4;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, -502321359, iParam1))
{
iVar0 = 5;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, -792359778, iParam1))
{
iVar0 = 6;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, 997614074, iParam1))
{
iVar0 = 7;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, 748799057, iParam1))
{
iVar0 = 8;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, 653048039, iParam1))
{
iVar0 = 9;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, -1922736331, iParam1))
{
iVar0 = 10;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, -1685128312, iParam1))
{
iVar0 = 11;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, 1892460036, iParam1))
{
iVar0 = 12;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, -296738547, iParam1))
{
iVar0 = 13;
}
return iVar0;
}
int func_481(int iParam0, int iParam1, int iParam2)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
if (iParam0 == joaat("mp_m_freemode_01"))
{
iVar0 = -1;
iVar1 = -1;
if (iParam1 >= 256)
{
iVar0 = func_128(iParam0, iParam1, 4, 3);
iVar1 = func_482(iVar0);
}
iVar2 = -1;
iVar3 = -1;
if (iParam2 >= 237)
{
iVar2 = func_128(iParam0, iParam2, 11, 3);
iVar3 = func_482(iVar2);
}
if (iVar2 != -1)
{
if (unk_0x4BE6499482BEE1D8(iVar2, -826135203, 0))
{
if (iVar0 != -1 && unk_0x4BE6499482BEE1D8(iVar0, -826135203, 0))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar0, -826135203, 0))
{
if (iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, -826135203, 0))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar2, -1855618474, 0))
{
if (iVar0 != -1 && unk_0x4BE6499482BEE1D8(iVar0, -1855618474, 0))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar0, -1855618474, 0))
{
if (iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, -1855618474, 0))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar2, -1420825402, 0))
{
if (iVar0 != -1 && unk_0x4BE6499482BEE1D8(iVar0, -1420825402, 0))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar0, -1420825402, 0))
{
if (iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, -1420825402, 0))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar2, 320460654, 0))
{
if (iVar0 != -1 && unk_0x4BE6499482BEE1D8(iVar0, 320460654, 0))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar0, 320460654, 0))
{
if (iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, 320460654, 0))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar2, -2017999390, 0))
{
if (iVar0 != -1 && unk_0x4BE6499482BEE1D8(iVar0, -2017999390, 0))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar0, -2017999390, 0))
{
if (iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, -2017999390, 0))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar2, 1625463492, 0))
{
if (iVar0 != -1 && unk_0x4BE6499482BEE1D8(iVar0, 648481062, 0))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar0, 648481062, 0))
{
return 1;
}
}
else if (iVar0 != -1)
{
if (unk_0x4BE6499482BEE1D8(iVar0, 648481062, 0))
{
return 1;
}
if (unk_0x4BE6499482BEE1D8(iVar0, -826135203, 0))
{
if (iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, -826135203, 0))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar0, -1855618474, 0))
{
if (iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, -1855618474, 0))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar0, -1420825402, 0))
{
if (iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, -1420825402, 0))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar0, 320460654, 0))
{
if (iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, 320460654, 0))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar0, -2017999390, 0))
{
if (iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, -2017999390, 0))
{
return 1;
}
else
{
return 0;
}
}
}
if (iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, 2026620439, 0))
{
if (((((((((((((((iParam1 >= 0 && iParam1 <= 15) || (iParam1 >= 48 && iParam1 <= 63)) || (iParam1 >= 64 && iParam1 <= 79)) || (iParam1 >= 112 && iParam1 <= 127)) || (iParam1 >= 128 && iParam1 <= 143)) || (iParam1 >= 176 && iParam1 <= 191)) || (iParam1 >= 224 && iParam1 <= 239)) || iVar1 == 0) || iVar1 == 3) || iVar1 == 4) || iVar1 == 7) || iVar1 == 8) || iVar1 == 11) || iVar1 == 14) || unk_0x4BE6499482BEE1D8(iVar0, 1627756587, 0))
{
return 1;
}
else
{
return 0;
}
}
switch (iVar0)
{
case -439764935:
case 312004063:
case 6695290:
case 1724446270:
case -448105673:
case -611098679:
case -1111088081:
case -1406369540:
case -1912159043:
case 2076516410:
case 1919618438:
case 45227112:
case -2129094253:
case -421370587:
case -675363106:
if (((((((((((((((iParam2 >= 204 && iParam2 <= 219) || iVar3 == 13) || iVar2 == 1844077094) || iVar2 == 1672760762) || iVar2 == 339848918) || iVar2 == -625689667) || iVar2 == -924903406) || iVar2 == -149326714) || iVar2 == -443756179) || iVar2 == -1817498197) || iVar2 == -2110289212) || iVar2 == -1333926064) || iVar2 == -1903638278) || iVar2 == 1018832222) || unk_0x4BE6499482BEE1D8(iVar2, -2088146832, 0))
{
return 0;
}
break;
}
if (unk_0x4BE6499482BEE1D8(iVar2, 1021189127, 0))
{
if (unk_0x4BE6499482BEE1D8(iVar0, 2044466679, 0) || unk_0x4BE6499482BEE1D8(iVar0, -1325813684, 0))
{
return 0;
}
}
}
else if (iParam0 == joaat("mp_f_freemode_01"))
{
iVar4 = -1;
iVar5 = -1;
if (iParam1 >= 256)
{
iVar4 = func_128(iParam0, iParam1, 4, 4);
iVar5 = func_482(iVar4);
}
iVar6 = -1;
if (iParam2 >= 256)
{
iVar6 = func_128(iParam0, iParam2, 11, 4);
}
if (iVar6 != -1)
{
if (unk_0x4BE6499482BEE1D8(iVar6, -826135203, 0))
{
if (iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, -826135203, 0))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar4, -826135203, 0))
{
if (iVar6 != -1 && unk_0x4BE6499482BEE1D8(iVar6, -826135203, 0))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar6, -1855618474, 0))
{
if (iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, -1855618474, 0))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar4, -1855618474, 0))
{
if (iVar6 != -1 && unk_0x4BE6499482BEE1D8(iVar6, -1855618474, 0))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar6, -299089347, 0))
{
if (iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, -299089347, 0))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar4, -299089347, 0))
{
if (iVar6 != -1 && unk_0x4BE6499482BEE1D8(iVar6, -299089347, 0))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar6, -1420825402, 0))
{
if (iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, -1420825402, 0))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar4, -1420825402, 0))
{
if (iVar6 != -1 && unk_0x4BE6499482BEE1D8(iVar6, -1420825402, 0))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar6, 320460654, 0))
{
if (iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, 320460654, 0))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar4, 320460654, 0))
{
if (iVar6 != -1 && unk_0x4BE6499482BEE1D8(iVar6, 320460654, 0))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar6, -2017999390, 0))
{
if (iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, -2017999390, 0))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar4, -2017999390, 0))
{
if (iVar6 != -1 && unk_0x4BE6499482BEE1D8(iVar6, -2017999390, 0))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar6, -530089825, 0))
{
if ((iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, -530089825, 0)) || (iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, -1223513441, 0)))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar4, -530089825, 0))
{
if ((iVar6 != -1 && unk_0x4BE6499482BEE1D8(iVar6, -530089825, 0)) || (iVar6 != -1 && unk_0x4BE6499482BEE1D8(iVar6, -1223513441, 0)))
{
return 1;
}
else
{
return 0;
}
}
if (((((((((((unk_0x4BE6499482BEE1D8(iVar6, -1200513218, 0) || unk_0x4BE6499482BEE1D8(iVar6, 1965569012, 0)) || unk_0x4BE6499482BEE1D8(iVar6, -779835469, 0)) || unk_0x4BE6499482BEE1D8(iVar6, -1086258388, 0)) || unk_0x4BE6499482BEE1D8(iVar6, -1119232689, 0)) || unk_0x4BE6499482BEE1D8(iVar6, -1488441032, 0)) || unk_0x4BE6499482BEE1D8(iVar6, -868698159, 0)) || unk_0x4BE6499482BEE1D8(iVar6, 2044466679, 0)) || unk_0x4BE6499482BEE1D8(iVar6, -2020757158, 0)) || unk_0x4BE6499482BEE1D8(iVar6, -2088146832, 0)) || unk_0x4BE6499482BEE1D8(iVar6, -1446333198, 0)) || unk_0x4BE6499482BEE1D8(iVar6, -1351486939, 0))
{
if ((((((((((((((((((((((((((((((((iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, -1223513441, 0)) || (iParam1 >= 240 && iParam1 <= 255)) || iVar5 == 15) || iVar4 == 1667217362) || iVar4 == 1956239942) || iVar4 == -210905108) || iVar4 == 79690384) || iVar4 == 134611232) || iVar4 == 441755069) || iVar4 == -1685936105) || iVar4 == -1379382110) || iVar4 == -788622578) || iVar4 == -481740893) || iVar4 == -266743188) || iVar4 == 573421207) || iVar4 == -739668639) || iVar4 == -1126047902) || iVar4 == -954797108) || iVar4 == -1858238438) || iVar4 == -1551291215) || iVar4 == -989872783) || iVar4 == 2073733812) || iVar4 == -1596197578) || iVar4 == -942357733) || iVar4 == -40948081) || iVar4 == -1262871322) || iVar4 == -495388573) || iVar4 == 1091483025) || iVar4 == 785649948) || iVar4 == -313291240) || iVar4 == 495041640) || iVar4 == 749492925)
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar6, 821147517, 0) && !unk_0x4BE6499482BEE1D8(iVar6, -55550566, 0))
{
if ((((((((((((((((((((((((((((((((iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, -1223513441, 0)) || (iParam1 >= 240 && iParam1 <= 255)) || iVar5 == 15) || iVar4 == 1667217362) || iVar4 == 1956239942) || iVar4 == -210905108) || iVar4 == 79690384) || iVar4 == 134611232) || iVar4 == 441755069) || iVar4 == -1685936105) || iVar4 == -1379382110) || iVar4 == -788622578) || iVar4 == -481740893) || iVar4 == -266743188) || iVar4 == 573421207) || iVar4 == -739668639) || iVar4 == -1126047902) || iVar4 == -954797108) || iVar4 == -1858238438) || iVar4 == -1551291215) || iVar4 == -989872783) || iVar4 == 2073733812) || iVar4 == -1596197578) || iVar4 == -942357733) || iVar4 == -40948081) || iVar4 == -1262871322) || iVar4 == -495388573) || iVar4 == 1091483025) || iVar4 == 785649948) || iVar4 == -313291240) || iVar4 == 495041640) || iVar4 == 749492925)
{
return 0;
}
}
}
if (iVar4 != -1)
{
if (unk_0x4BE6499482BEE1D8(iVar4, -826135203, 0))
{
if (iVar6 != -1 && unk_0x4BE6499482BEE1D8(iVar6, -826135203, 0))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar4, -1855618474, 0))
{
if (iVar6 != -1 && unk_0x4BE6499482BEE1D8(iVar6, -1855618474, 0))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar4, -299089347, 0))
{
if (iVar6 != -1 && unk_0x4BE6499482BEE1D8(iVar6, -299089347, 0))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar4, -1420825402, 0))
{
if (iVar6 != -1 && unk_0x4BE6499482BEE1D8(iVar6, -1420825402, 0))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar4, 320460654, 0))
{
if (iVar6 != -1 && unk_0x4BE6499482BEE1D8(iVar6, 320460654, 0))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar4, -2017999390, 0))
{
if (iVar6 != -1 && unk_0x4BE6499482BEE1D8(iVar6, -2017999390, 0))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar4, -530089825, 0))
{
if ((iVar6 != -1 && unk_0x4BE6499482BEE1D8(iVar6, -530089825, 0)) || (iVar6 != -1 && unk_0x4BE6499482BEE1D8(iVar6, -1223513441, 0)))
{
return 1;
}
else
{
return 0;
}
}
}
if (unk_0x4BE6499482BEE1D8(iVar4, -33031567, 0))
{
if (unk_0x4BE6499482BEE1D8(iVar6, -2102859770, 0) || unk_0x4BE6499482BEE1D8(iVar6, -747583185, 0))
{
return 1;
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar6, -747583185, 0))
{
if (unk_0x4BE6499482BEE1D8(iVar4, -33031567, 0))
{
return 1;
}
else
{
return 0;
}
}
if (((iParam1 >= 32 && iParam1 <= 47) || iVar5 == 2) || unk_0x4BE6499482BEE1D8(iVar4, -1325813684, 0))
{
if (unk_0x4BE6499482BEE1D8(iVar6, 2026620439, 0))
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar6, -2119756144, 0))
{
if (((((((((((iParam1 >= 32 && iParam1 <= 47) || iVar5 == 2) || unk_0x4BE6499482BEE1D8(iVar4, 264959411, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 140732128, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 1863955539, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -849839091, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -2088146832, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 1055526375, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1882920022, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1080576805, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1387458490, 0))
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar6, 947651647, 0) || unk_0x4BE6499482BEE1D8(iVar6, -58412562, 0))
{
if ((((((((((((((((((((((((((((((((iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, -1223513441, 0)) || (iParam1 >= 240 && iParam1 <= 255)) || iVar5 == 15) || iVar4 == 1667217362) || iVar4 == 1956239942) || iVar4 == -210905108) || iVar4 == 79690384) || iVar4 == 134611232) || iVar4 == 441755069) || iVar4 == -1685936105) || iVar4 == -1379382110) || iVar4 == -788622578) || iVar4 == -481740893) || iVar4 == -266743188) || iVar4 == 573421207) || iVar4 == -739668639) || iVar4 == -1126047902) || iVar4 == -954797108) || iVar4 == -1858238438) || iVar4 == -1551291215) || iVar4 == -989872783) || iVar4 == 2073733812) || iVar4 == -1596197578) || iVar4 == -942357733) || iVar4 == -40948081) || iVar4 == -1262871322) || iVar4 == -495388573) || iVar4 == 1091483025) || iVar4 == 785649948) || iVar4 == -313291240) || iVar4 == 495041640) || iVar4 == 749492925)
{
return 0;
}
}
}
return 1;
}
int func_482(int iParam0)
{
int iVar0;
iVar0 = -1;
if (iParam0 == 0)
{
return iVar0;
}
if (unk_0x4BE6499482BEE1D8(iParam0, 821147517, 0))
{
iVar0 = 0;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, 2055293595, 0))
{
iVar0 = 1;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, -1992562672, 0))
{
iVar0 = 2;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, 1458930564, 0))
{
iVar0 = 3;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, -1046587084, 0))
{
iVar0 = 4;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, 1943944625, 0))
{
iVar0 = 5;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, -1999870067, 0))
{
iVar0 = 6;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, 2048281121, 0))
{
iVar0 = 7;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, -109983526, 0))
{
iVar0 = 8;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, -1394888785, 0))
{
iVar0 = 9;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, -144826511, 0))
{
iVar0 = 10;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, 19149565, 0))
{
iVar0 = 11;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, 310957510, 0))
{
iVar0 = 12;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, 742787396, 0))
{
iVar0 = 13;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, -1604914832, 0))
{
iVar0 = 14;
}
else if (unk_0x4BE6499482BEE1D8(iParam0, -1092211054, 0))
{
iVar0 = 15;
}
return iVar0;
}
int func_483(int iParam0, int iParam1, int iParam2)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
int iVar9;
int iVar10;
int iVar11;
int iVar12;
iVar0 = -99;
if (iParam0 == joaat("mp_m_freemode_01"))
{
if (iParam1 <= 15)
{
iVar0 = 0;
}
else if (iParam1 <= 31)
{
iVar0 = 16;
}
else if (iParam1 <= 47)
{
iVar0 = 0;
}
else if (iParam1 <= 63)
{
iVar0 = -99;
}
else if (iParam1 <= 79)
{
iVar0 = -99;
}
else if (iParam1 <= 95)
{
iVar0 = 80;
}
else if (iParam1 <= 111)
{
iVar0 = -99;
}
else if (iParam1 <= 127)
{
iVar0 = -99;
}
else if (iParam1 <= 143)
{
iVar0 = 124;
}
else if (iParam1 <= 159)
{
iVar0 = 140;
}
else if (iParam1 <= 175)
{
iVar0 = -99;
}
else if (iParam1 <= 191)
{
iVar0 = -99;
}
else if (iParam1 <= 207)
{
iVar0 = 188;
}
else if (iParam1 <= 223)
{
iVar0 = 204;
}
else if (iParam1 <= 239)
{
iVar0 = 16;
}
else if (iParam1 <= 240)
{
iVar0 = 236;
}
else if (iParam1 >= 241)
{
iVar1 = func_128(iParam0, iParam1, 8, 3);
if (iVar1 != -1)
{
iVar2 = unk_0xC32CC87227998BA0(iVar1);
iVar3 = 0;
while (iVar3 < iVar2)
{
unk_0xD87AFE0D33276102(iVar1, iVar3, &iVar4, &iVar5, &iVar6);
if (iVar6 == 11)
{
if (iVar4 != 0 && iVar4 != 1849449579)
{
iVar0 = func_133(iParam0, iVar4, 11, 3);
return iVar0;
}
else
{
iVar0 = iVar5;
return iVar0;
}
}
iVar3++;
}
}
}
}
else if (iParam0 == joaat("mp_f_freemode_01"))
{
if (iParam1 <= 15)
{
iVar0 = 0;
}
else if (iParam1 <= 31)
{
iVar0 = 0;
}
else if (iParam1 <= 32)
{
iVar0 = -99;
}
else if (iParam1 <= 33)
{
iVar0 = -99;
}
else if (iParam1 <= 49)
{
iVar0 = 64;
}
else if (iParam1 <= 65)
{
iVar0 = 80;
}
else if (iParam1 <= 66)
{
iVar0 = -99;
}
else if (iParam1 <= 67)
{
iVar0 = -99;
}
else if (iParam1 <= 68)
{
iVar0 = -99;
}
else if (iParam1 <= 69)
{
iVar0 = -99;
}
else if (iParam1 <= 70)
{
iVar0 = -99;
}
else if (iParam1 <= 86)
{
iVar0 = 176;
}
else if (iParam1 <= 102)
{
iVar0 = 192;
}
else if (iParam1 <= 118)
{
iVar0 = 208;
}
else if (iParam1 <= 119)
{
iVar0 = -99;
}
else if (iParam1 <= 135)
{
iVar0 = 240;
}
else if (iParam1 >= 136)
{
iVar7 = func_128(iParam0, iParam1, 8, 4);
if (iVar7 != -1)
{
iVar8 = unk_0xC32CC87227998BA0(iVar7);
iVar9 = 0;
while (iVar9 < iVar8)
{
unk_0xD87AFE0D33276102(iVar7, iVar9, &iVar10, &iVar11, &iVar12);
if (iVar12 == 11)
{
if (iVar10 != 0 && iVar10 != 1849449579)
{
iVar0 = func_133(iParam0, iVar10, 11, 4);
return iVar0;
}
else
{
iVar0 = iVar11;
return iVar0;
}
}
iVar9++;
}
}
}
}
if (iVar0 != -99)
{
iVar0 = (iVar0 + iParam2);
}
return iVar0;
}
int func_484(int iParam0, int iParam1, int iParam2)
{
int iVar0;
if (iParam1 == 14)
{
iVar0 = iParam2;
return func_134(iVar0);
}
switch (iParam0)
{
case joaat("player_zero"):
switch (iParam1)
{
case 0:
return 0;
break;
case 2:
return Global_106070.f_2355.f_539[0 /*65*/].f_59;
break;
case 3:
if (Global_106070.f_9057.f_99.f_58[120])
{
return 1;
}
else
{
return 0;
}
break;
case 4:
if (Global_106070.f_9057.f_99.f_58[120])
{
return 1;
}
else
{
return 0;
}
break;
case 6:
return 6;
break;
case 5:
return 0;
break;
case 8:
return 0;
break;
case 9:
return 0;
break;
case 10:
return 0;
break;
case 1:
return 0;
break;
case 7:
return 0;
break;
case 11:
return 0;
break;
case 12:
break;
case 13:
return 31;
break;
}
break;
case joaat("player_one"):
switch (iParam1)
{
case 0:
return 0;
break;
case 2:
return Global_106070.f_2355.f_539[1 /*65*/].f_59;
break;
case 3:
return 73;
break;
case 4:
return 24;
break;
case 6:
return 17;
break;
case 5:
return 0;
break;
case 8:
return 26;
break;
case 9:
return 0;
break;
case 10:
return 0;
break;
case 1:
return 0;
break;
case 7:
return 0;
break;
case 11:
return 0;
break;
case 12:
break;
case 13:
return 31;
break;
}
break;
case joaat("player_two"):
switch (iParam1)
{
case 0:
return 0;
break;
case 2:
return Global_106070.f_2355.f_539[2 /*65*/].f_59;
break;
case 3:
return 0;
break;
case 4:
return 91;
break;
case 6:
return 8;
break;
case 5:
return 0;
break;
case 8:
return 15;
break;
case 9:
return 0;
break;
case 10:
return 0;
break;
case 1:
return 0;
break;
case 7:
return 0;
break;
case 11:
return 0;
break;
case 12:
break;
case 13:
return 31;
break;
}
break;
case joaat("mp_m_freemode_01"):
switch (iParam1)
{
case 0:
break;
case 2:
break;
case 3:
return 0;
break;
case 4:
return 80;
break;
case 6:
return 10;
break;
case 5:
break;
case 8:
return 0;
break;
case 9:
return 0;
break;
case 10:
return 0;
break;
case 1:
return 0;
break;
case 7:
return 0;
break;
case 11:
return 2;
break;
}
break;
case joaat("mp_f_freemode_01"):
switch (iParam1)
{
case 0:
break;
case 2:
break;
case 3:
return 0;
break;
case 4:
return 233;
break;
case 6:
return 16;
break;
case 5:
break;
case 8:
return 0;
break;
case 9:
return 0;
break;
case 10:
return 0;
break;
case 1:
return 0;
break;
case 7:
return 0;
break;
case 11:
return 78;
break;
}
break;
default:
break;
}
return -99;
}
int func_485(int iParam0, int iParam1)
{
int iVar0;
int iVar1;
int iVar2;
if (Global_95952 != -99)
{
if (Global_95953 == 11)
{
Global_71017[1 /*14*/] = { func_506(unk_0x8F474E419F56E48D(iParam0), 11, Global_95952, -1) };
iVar0 = func_487(unk_0x8F474E419F56E48D(iParam0), Global_95952, iParam1, Global_71017[1 /*14*/].f_4);
if (iVar0 != -99)
{
return iVar0;
}
}
else if (Global_95953 == 8)
{
iVar1 = func_483(unk_0x8F474E419F56E48D(iParam0), Global_95952, Global_95954);
if (iVar1 != -99)
{
Global_71017[1 /*14*/] = { func_506(unk_0x8F474E419F56E48D(iParam0), 11, iVar1, -1) };
iVar2 = func_487(unk_0x8F474E419F56E48D(iParam0), iVar1, iParam1, Global_71017[1 /*14*/].f_4);
if (iVar2 != -99)
{
return iVar2;
}
}
else
{
return Global_95952;
}
}
}
return -99;
}
int func_486(int iParam0, int iParam1, int iParam2)
{
switch (iParam0)
{
case joaat("mp_m_freemode_01"):
if (((((iParam1 >= 48 && iParam1 < 64) || (iParam1 >= 64 && iParam1 < 80)) || (iParam1 >= 96 && iParam1 < 108)) || (iParam1 >= 108 && iParam1 < 124)) || (iParam1 >= 156 && iParam1 < 172))
{
return 1;
}
if (iParam2 == -1 && iParam1 >= 237)
{
iParam2 = func_128(iParam0, iParam1, 11, 3);
}
if (unk_0x4BE6499482BEE1D8(iParam2, -1393156190, 0))
{
return 1;
}
break;
case joaat("mp_f_freemode_01"):
if (((((iParam1 >= 16 && iParam1 < 32) || (iParam1 >= 96 && iParam1 < 112)) || (iParam1 >= 112 && iParam1 < 128)) || (iParam1 >= 128 && iParam1 < 144)) || (iParam1 >= 160 && iParam1 < 176))
{
return 1;
}
if (iParam2 == -1 && iParam1 >= 256)
{
iParam2 = func_128(iParam0, iParam1, 11, 4);
}
if (unk_0x4BE6499482BEE1D8(iParam2, -1393156190, 0))
{
return 1;
}
break;
}
return 0;
}
int func_487(int iParam0, int iParam1, int iParam2, int iParam3)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
bool bVar7;
int iVar8;
int iVar9;
int iVar10;
int iVar11;
int iVar12;
struct<10> Var13;
int iVar14;
int iVar15;
int iVar16;
int iVar17;
int iVar18;
int iVar19;
int iVar20;
int iVar21;
int iVar22;
int iVar23;
int iVar24;
int iVar25;
int iVar26;
int iVar27;
int iVar28;
int iVar29;
int iVar30;
int iVar31;
struct<10> Var32;
int iVar33;
int iVar34;
int iVar35;
bool bVar36;
int iVar37;
int iVar38;
int iVar39;
int iVar40;
int iVar41;
int iVar42;
int iVar43;
int iVar44;
int iVar45;
int iVar46;
int iVar47;
bool bVar48;
int iVar49;
int iVar50;
int iVar51;
int iVar52;
int iVar53;
int iVar54;
bool bVar55;
int iVar56;
int iVar57;
int iVar58;
int iVar59;
int iVar60;
iVar0 = -99;
iVar1 = 1;
if (iParam0 == joaat("mp_m_freemode_01"))
{
iVar2 = -1;
iVar3 = -1;
if (iParam2 >= 237)
{
iVar2 = func_128(iParam0, iParam2, 11, 3);
iVar3 = func_482(iVar2);
}
iVar4 = -1;
iVar5 = -1;
if (iParam1 >= 237)
{
iVar4 = func_128(iParam0, iParam1, 11, 3);
iVar5 = func_482(iVar4);
}
if (iVar2 != -1)
{
if (unk_0x4BE6499482BEE1D8(iVar2, -491588875, 0))
{
return -99;
}
}
if (iVar2 != -1)
{
if (((((((((((unk_0x4BE6499482BEE1D8(iVar2, -1347486026, 0) || unk_0x4BE6499482BEE1D8(iVar2, -1274099003, 0)) || unk_0x4BE6499482BEE1D8(iVar2, 1723403459, 0)) || unk_0x4BE6499482BEE1D8(iVar2, 1538937264, 0)) || unk_0x4BE6499482BEE1D8(iVar2, -549843760, 0)) || unk_0x4BE6499482BEE1D8(iVar2, 1830529185, 0)) || unk_0x4BE6499482BEE1D8(iVar2, -1813210391, 0)) || unk_0x4BE6499482BEE1D8(iVar2, -89003918, 0)) || unk_0x4BE6499482BEE1D8(iVar2, -747858475, 0)) || unk_0x4BE6499482BEE1D8(iVar2, 1208450825, 0)) || unk_0x4BE6499482BEE1D8(iVar2, -1407614029, 0)) || unk_0x4BE6499482BEE1D8(iVar2, 481861038, 0))
{
if ((((((iParam1 >= 124 && iParam1 <= 139) || (iParam1 >= 188 && iParam1 <= 235)) || iVar5 == 8) || iVar5 == 12) || iVar5 == 13) || iVar5 == 14)
{
return -99;
}
if (((((((!unk_0x4BE6499482BEE1D8(iVar2, -549843760, 0) && !unk_0x4BE6499482BEE1D8(iVar2, 1830529185, 0)) && !unk_0x4BE6499482BEE1D8(iVar2, -1813210391, 0)) && !unk_0x4BE6499482BEE1D8(iVar2, -89003918, 0)) && !unk_0x4BE6499482BEE1D8(iVar2, -747858475, 0)) && !unk_0x4BE6499482BEE1D8(iVar2, 1208450825, 0)) && !unk_0x4BE6499482BEE1D8(iVar2, -1407614029, 0)) && !unk_0x4BE6499482BEE1D8(iVar2, 481861038, 0))
{
if (unk_0x4BE6499482BEE1D8(iVar4, -828478571, 0))
{
return -99;
}
}
}
if ((unk_0x4BE6499482BEE1D8(iVar2, -1655154167, 0) || unk_0x4BE6499482BEE1D8(iVar2, -1719167561, 0)) || unk_0x4BE6499482BEE1D8(iVar2, 1431529976, 0))
{
return -99;
}
if (unk_0x4BE6499482BEE1D8(iVar2, 1690933245, 0) || unk_0x4BE6499482BEE1D8(iVar2, -1325813684, 0))
{
return -99;
}
if (unk_0x4BE6499482BEE1D8(iVar2, 1769225721, 0))
{
if ((((((((((iParam1 >= 80 && iParam1 <= 95) || (iParam1 >= 124 && iParam1 <= 139)) || (iParam1 >= 140 && iParam1 <= 155)) || (iParam1 >= 188 && iParam1 <= 235)) || iVar5 == 5) || iVar5 == 8) || iVar5 == 9) || iVar5 == 12) || iVar5 == 13) || iVar5 == 14)
{
return -99;
}
}
if (unk_0x4BE6499482BEE1D8(iVar2, 264959411, 0))
{
if ((((((((iParam1 >= 0 && iParam1 <= 15) || (iParam1 >= 16 && iParam1 <= 31)) || (iParam1 >= 80 && iParam1 <= 95)) || (iParam1 >= 236 && iParam1 <= 236)) || iVar5 == 0) || iVar5 == 1) || iVar5 == 5) || iVar5 == 15)
{
}
else
{
return -99;
}
}
if (unk_0x4BE6499482BEE1D8(iVar2, 1625463492, 0) && !unk_0x4BE6499482BEE1D8(iVar4, -641612092, 0))
{
return -99;
}
if (unk_0x4BE6499482BEE1D8(iVar2, -1719338724, 0))
{
if ((((((((((iParam1 >= 0 && iParam1 <= 15) || (iParam1 >= 16 && iParam1 <= 31)) || (iParam1 >= 80 && iParam1 <= 95)) || (iParam1 >= 124 && iParam1 <= 139)) || (iParam1 >= 236 && iParam1 <= 236)) || iVar5 == 0) || iVar5 == 1) || iVar5 == 5) || iVar5 == 8) || iVar5 == 15)
{
}
else
{
return -99;
}
}
}
iVar6 = 0;
bVar7 = false;
if (unk_0x4BE6499482BEE1D8(iVar2, -1237899132, 0) && !unk_0x4BE6499482BEE1D8(iVar2, -491588875, 0))
{
if (iParam1 >= 0 && iParam1 <= 15)
{
if ((unk_0x4BE6499482BEE1D8(iVar2, -269266203, 0) || unk_0x4BE6499482BEE1D8(iVar2, -685039259, 0)) || unk_0x4BE6499482BEE1D8(iVar2, 297865853, 0))
{
switch (iParam1)
{
case 0:
iVar0 = func_133(iParam0, -1071423629, 8, 3);
break;
case 1:
iVar0 = func_133(iParam0, -833094692, 8, 3);
break;
case 2:
iVar0 = func_133(iParam0, -1836153782, 8, 3);
break;
case 3:
iVar0 = func_133(iParam0, -1598414687, 8, 3);
break;
case 4:
iVar0 = func_133(iParam0, 123661793, 8, 3);
break;
case 5:
iVar0 = func_133(iParam0, 330958487, 8, 3);
break;
case 7:
iVar0 = func_133(iParam0, -646180324, 8, 3);
break;
case 8:
iVar0 = func_133(iParam0, -142717408, 8, 3);
break;
case 11:
iVar0 = func_133(iParam0, 1290696959, 8, 3);
break;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar2, 201427653, 0))
{
switch (iParam1)
{
case 0:
iVar0 = func_133(iParam0, -1382822784, 8, 3);
break;
case 1:
iVar0 = func_133(iParam0, -1731353868, 8, 3);
break;
case 2:
iVar0 = func_133(iParam0, -1960638561, 8, 3);
break;
case 3:
iVar0 = func_133(iParam0, 147161830, 8, 3);
break;
case 4:
iVar0 = func_133(iParam0, -92608943, 8, 3);
break;
case 5:
iVar0 = func_133(iParam0, -162931217, 8, 3);
break;
case 7:
iVar0 = func_133(iParam0, -537087659, 8, 3);
break;
case 8:
iVar0 = func_133(iParam0, 1665087452, 8, 3);
break;
case 11:
iVar0 = func_133(iParam0, 1012984348, 8, 3);
break;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar2, 967829025, 0))
{
switch (iParam1)
{
case 0:
iVar0 = func_133(iParam0, 385813134, 8, 3);
break;
case 1:
iVar0 = func_133(iParam0, 675392787, 8, 3);
break;
case 2:
iVar0 = func_133(iParam0, -238272479, 8, 3);
break;
case 3:
iVar0 = func_133(iParam0, 67757212, 8, 3);
break;
case 4:
iVar0 = func_133(iParam0, -536372072, 8, 3);
break;
case 5:
iVar0 = func_133(iParam0, -247578875, 8, 3);
break;
case 7:
iVar0 = func_133(iParam0, -1160588753, 8, 3);
break;
case 8:
iVar0 = func_133(iParam0, -854821214, 8, 3);
break;
case 11:
iVar0 = func_133(iParam0, -1458295118, 8, 3);
break;
}
}
return iVar0;
}
else if (iParam1 >= 236 && iParam1 <= 236)
{
iVar0 = 240;
return iVar0;
}
else if (iParam1 >= 237)
{
bVar7 = true;
if ((unk_0x4BE6499482BEE1D8(iVar2, -269266203, 0) || unk_0x4BE6499482BEE1D8(iVar2, -685039259, 0)) || unk_0x4BE6499482BEE1D8(iVar2, 297865853, 0))
{
iVar6 = 4;
}
else if (unk_0x4BE6499482BEE1D8(iVar2, 201427653, 0))
{
iVar6 = 5;
}
else if (unk_0x4BE6499482BEE1D8(iVar2, 967829025, 0))
{
iVar6 = 6;
}
else
{
iVar6 = -1;
}
}
else
{
return iVar0;
}
}
if (unk_0x4BE6499482BEE1D8(iVar4, -641612092, 0))
{
bVar7 = true;
if (((((((((unk_0x4BE6499482BEE1D8(iVar2, 470686834, 0) && unk_0x4BE6499482BEE1D8(iVar2, 1625463492, 0)) || unk_0x4BE6499482BEE1D8(iVar2, -416620954, 0)) || unk_0x4BE6499482BEE1D8(iVar2, -1507532917, 0)) || unk_0x4BE6499482BEE1D8(iVar2, -1813210391, 0)) || unk_0x4BE6499482BEE1D8(iVar2, -89003918, 0)) || unk_0x4BE6499482BEE1D8(iVar2, -747858475, 0)) || unk_0x4BE6499482BEE1D8(iVar2, 1208450825, 0)) || unk_0x4BE6499482BEE1D8(iVar2, -1407614029, 0)) || unk_0x4BE6499482BEE1D8(iVar2, 481861038, 0))
{
iVar6 = 1;
}
else if ((unk_0x4BE6499482BEE1D8(iVar2, 1625463492, 0) || unk_0x4BE6499482BEE1D8(iVar2, -1410897066, 0)) || unk_0x4BE6499482BEE1D8(iVar2, -1351486939, 0))
{
iVar6 = 0;
}
else
{
iVar6 = -1;
}
}
if (bVar7)
{
if (iVar6 != -1)
{
iVar8 = unk_0xC32CC87227998BA0(iVar4);
iVar9 = 0;
while (iVar9 < iVar8)
{
unk_0xD87AFE0D33276102(iVar4, iVar9, &iVar10, &iVar11, &iVar12);
if (iVar12 == 8)
{
if (((((((iVar6 == 6 && unk_0x4BE6499482BEE1D8(iVar10, -168336417, 0)) || (iVar6 == 5 && unk_0x4BE6499482BEE1D8(iVar10, -1415000253, 0))) || (iVar6 == 4 && unk_0x4BE6499482BEE1D8(iVar10, -1703203608, 0))) || (iVar6 == 3 && unk_0x4BE6499482BEE1D8(iVar10, 1318819110, 0))) || (iVar6 == 2 && unk_0x4BE6499482BEE1D8(iVar10, -1138757583, 0))) || (iVar6 == 1 && unk_0x4BE6499482BEE1D8(iVar10, 647976134, 0))) || ((((((iVar6 == 0 && !unk_0x4BE6499482BEE1D8(iVar10, 647976134, 0)) && !unk_0x4BE6499482BEE1D8(iVar10, -1138757583, 0)) && !unk_0x4BE6499482BEE1D8(iVar10, 1318819110, 0)) && !unk_0x4BE6499482BEE1D8(iVar10, -1703203608, 0)) && !unk_0x4BE6499482BEE1D8(iVar10, -1415000253, 0)) && !unk_0x4BE6499482BEE1D8(iVar10, -168336417, 0)))
{
if (iVar10 != 0 && iVar10 != 1849449579)
{
iVar0 = func_133(iParam0, iVar10, 8, 3);
}
else
{
iVar0 = iVar11;
}
iVar9 = iVar8 + 1;
iVar1 = 0;
return iVar0;
}
}
iVar9++;
}
}
return -99;
}
if (unk_0x4BE6499482BEE1D8(iVar2, 490219883, 0))
{
if ((iParam1 >= 80 && iParam1 <= 95) || iVar5 == 5)
{
return -99;
}
}
if (unk_0x4BE6499482BEE1D8(iVar2, 350281921, 0) || unk_0x4BE6499482BEE1D8(iVar2, 490219883, 0))
{
if ((((iParam1 >= 80 && iParam1 <= 95) || (iParam1 >= 140 && iParam1 <= 155)) || iVar5 == 5) || iVar5 == 9)
{
return -99;
}
}
if ((iParam2 >= 96 && iParam2 <= 107) || iVar3 == 6)
{
if (iParam1 <= 15)
{
iVar0 = 32;
}
else if (iParam1 <= 31)
{
iVar0 = 224;
}
else if (iParam1 == 236)
{
iVar0 = 240;
}
else if (((iParam1 >= 220 && iParam1 <= 235) && func_488()) && !unk_0x4BE6499482BEE1D8(iVar2, -1266557933, 0))
{
iVar0 = 34;
iVar1 = 0;
unk_0x4EC128057F5B6F27(&Var13);
if (Global_4265679[1] != 0)
{
unk_0x6182A22F4D99005E(3, 6, -1, 0, -1, 8);
unk_0xF947B64BF5B65A2E(Global_4265676[1], &Var13);
if (Var13.f_1 != Global_4265679[1])
{
Global_4265679[1] = 0;
Global_4265676[1] = 0;
}
}
if (Global_4265679[1] == 0)
{
iVar15 = 0;
iVar16 = unk_0x6182A22F4D99005E(3, 6, -1, 0, -1, 8);
iVar14 = 0;
while (iVar14 < iVar16)
{
unk_0xF947B64BF5B65A2E(iVar14, &Var13);
if (!unk_0x3B61940560400F58(Var13))
{
if (unk_0xFEB6EEC0545AF7AA(&(Var13.f_9)) == -1665616807 && unk_0x4BE6499482BEE1D8(Var13.f_1, 647976134, 0))
{
Global_4265679[1] = Var13.f_1;
Global_4265676[1] = iVar15;
iVar14 = iVar16 + 1;
}
iVar15++;
}
iVar14++;
}
}
if (Global_4265679[1] != 0)
{
iVar0 = (func_129(iParam0, func_147(8)) + Global_4265676[1]);
iVar1 = 1;
}
}
else
{
iVar0 = 34;
iVar1 = 0;
if (iParam1 >= 237)
{
iVar17 = func_128(iParam0, iParam1, 11, 3);
if ((iVar17 != -1 && !unk_0x4BE6499482BEE1D8(iVar17, 310957510, 0)) && !unk_0x4BE6499482BEE1D8(iVar17, -109983526, 0))
{
iVar18 = unk_0xC32CC87227998BA0(iVar17);
iVar19 = 0;
while (iVar19 < iVar18)
{
unk_0xD87AFE0D33276102(iVar17, iVar19, &iVar20, &iVar21, &iVar22);
if (iVar22 == 8)
{
if (iVar20 != 0 && iVar20 != 1849449579)
{
if ((!unk_0x4BE6499482BEE1D8(iVar20, -1703203608, 0) && !unk_0x4BE6499482BEE1D8(iVar20, -1415000253, 0)) && !unk_0x4BE6499482BEE1D8(iVar20, -168336417, 0))
{
iVar0 = func_133(iParam0, iVar20, 8, 3);
}
}
else
{
iVar0 = iVar21;
}
}
iVar19++;
}
}
}
}
}
else if (iParam1 <= 15)
{
iVar0 = 0;
}
else if (iParam1 <= 31)
{
iVar0 = 16;
}
else if (iParam1 <= 47)
{
iVar0 = 2;
iVar1 = 0;
}
else if (iParam1 <= 63)
{
iVar0 = -99;
}
else if (iParam1 <= 79)
{
iVar0 = -99;
}
else if (iParam1 <= 95)
{
iVar0 = 80;
}
else if (iParam1 <= 107)
{
iVar0 = -99;
}
else if (iParam1 <= 123)
{
iVar0 = -99;
}
else if (iParam1 <= 139)
{
iVar0 = 128;
}
else if (iParam1 <= 155)
{
iVar0 = 144;
}
else if (iParam1 <= 171)
{
iVar0 = -99;
}
else if (iParam1 <= 187)
{
iVar0 = 2;
iVar1 = 0;
}
else if (iParam1 <= 203 || iVar5 == 12)
{
if (((((iParam2 >= 48 && iParam2 <= 63) || (iParam2 >= 108 && iParam2 <= 123)) || iVar3 == 3) || iVar3 == 7) || unk_0x4BE6499482BEE1D8(iVar2, 1769225721, 0))
{
iVar0 = 2;
iVar1 = 0;
}
else
{
iVar23 = 0;
if (iParam2 >= 236 && unk_0x4BE6499482BEE1D8(iVar2, 2026620439, 0))
{
iVar23 = 1;
}
iVar24 = func_128(iParam0, iParam1, 11, 3);
if (iVar24 != -1)
{
iVar25 = unk_0xC32CC87227998BA0(iVar24);
iVar26 = 0;
while (iVar26 < iVar25)
{
unk_0xD87AFE0D33276102(iVar24, iVar26, &iVar27, &iVar28, &iVar29);
if (iVar29 == 8 && iVar23 == unk_0x4BE6499482BEE1D8(iVar27, 1680519719, 0))
{
if (iVar27 != 0 && iVar27 != 1849449579)
{
iVar0 = func_133(iParam0, iVar27, 8, 3);
}
else
{
iVar0 = iVar28;
}
iVar26 = iVar25 + 1;
iVar1 = 0;
}
iVar26++;
}
}
else
{
iVar0 = func_133(iParam0, -1739646902, 8, 3);
iVar1 = 1;
}
}
}
else if (iParam1 <= 219)
{
iVar0 = 208;
}
else if (iParam1 <= 235)
{
iVar0 = 2;
iVar1 = 0;
if (func_488())
{
iVar30 = 0;
iVar31 = 0;
if ((iParam2 >= 96 && iParam2 <= 107) || (iParam2 >= 236 && unk_0x4BE6499482BEE1D8(iVar2, 2026620439, 0)))
{
iVar30 = 1;
iVar31 = 1;
}
unk_0x4EC128057F5B6F27(&Var32);
if (Global_4265679[iVar31] != 0)
{
unk_0x6182A22F4D99005E(3, 6, -1, 0, -1, 8);
unk_0xF947B64BF5B65A2E(Global_4265676[iVar31], &Var32);
if (Var32.f_1 != Global_4265679[iVar31])
{
Global_4265679[iVar31] = 0;
Global_4265676[iVar31] = 0;
}
}
if (Global_4265679[iVar31] == 0)
{
iVar34 = 0;
iVar35 = unk_0x6182A22F4D99005E(3, 6, -1, 0, -1, 8);
iVar33 = 0;
while (iVar33 < iVar35)
{
unk_0xF947B64BF5B65A2E(iVar33, &Var32);
if (!unk_0x3B61940560400F58(Var32))
{
if (unk_0xFEB6EEC0545AF7AA(&(Var32.f_9)) == -1665616807 && iVar30 == unk_0x4BE6499482BEE1D8(Var32.f_1, 647976134, 0))
{
Global_4265679[iVar31] = Var32.f_1;
Global_4265676[iVar31] = iVar34;
iVar33 = iVar35 + 1;
}
iVar34++;
}
iVar33++;
}
}
if (Global_4265679[iVar31] != 0)
{
iVar0 = (func_129(iParam0, func_147(8)) + Global_4265676[iVar31]);
iVar1 = 1;
}
}
if ((((iParam2 >= 237 && unk_0x4BE6499482BEE1D8(iVar2, 2026620439, 0)) || (iParam2 >= 108 && iParam2 <= 123)) || iVar3 == 7) || unk_0x4BE6499482BEE1D8(iVar2, 1769225721, 0))
{
iVar0 = -99;
}
}
else if (iParam1 <= 236)
{
iVar0 = 240;
iVar1 = 0;
}
else if (iParam1 >= 237)
{
iVar0 = 2;
iVar1 = 0;
bVar36 = false;
iVar37 = func_128(iParam0, iParam1, 11, 3);
if (unk_0x4BE6499482BEE1D8(iVar2, -1351486939, 0))
{
bVar36 = true;
}
if (iVar37 != -1)
{
iVar38 = unk_0xC32CC87227998BA0(iVar37);
iVar39 = 0;
while (iVar39 < iVar38)
{
unk_0xD87AFE0D33276102(iVar37, iVar39, &iVar40, &iVar41, &iVar42);
if (iVar42 == 8)
{
if (iVar40 != 0 && iVar40 != 1849449579)
{
iVar0 = func_133(iParam0, iVar40, 8, 3);
iVar1 = 0;
if (!bVar36 || unk_0x4BE6499482BEE1D8(iVar40, 647976134, 0))
{
iVar39 = iVar38 + 1;
}
}
else
{
iVar0 = iVar41;
iVar39 = iVar38 + 1;
iVar1 = 0;
}
}
iVar39++;
}
}
}
}
else if (iParam0 == joaat("mp_f_freemode_01"))
{
iVar43 = -1;
iVar44 = -1;
if (iParam2 >= 256)
{
iVar43 = func_128(iParam0, iParam2, 11, 4);
iVar44 = func_482(iVar43);
}
iVar45 = -1;
iVar46 = -1;
if (iParam1 >= 256)
{
iVar45 = func_128(iParam0, iParam1, 11, 4);
iVar46 = func_482(iVar45);
}
if (iVar43 != -1)
{
if (unk_0x4BE6499482BEE1D8(iVar43, -491588875, 0))
{
return -99;
}
}
if ((((unk_0x4BE6499482BEE1D8(iVar43, -1813210391, 0) || unk_0x4BE6499482BEE1D8(iVar43, -89003918, 0)) || unk_0x4BE6499482BEE1D8(iVar43, 1208450825, 0)) || unk_0x4BE6499482BEE1D8(iVar43, -1407614029, 0)) || unk_0x4BE6499482BEE1D8(iVar43, 481861038, 0))
{
if (unk_0x4BE6499482BEE1D8(iVar45, -828478571, 0))
{
return -99;
}
}
if (unk_0x4BE6499482BEE1D8(iVar43, -1719338724, 0))
{
if (((((((((((((((((((((((((iParam1 >= 0 && iParam1 <= 15) || (iParam1 >= 32 && iParam1 <= 47)) || (iParam1 >= 64 && iParam1 <= 79)) || (iParam1 >= 80 && iParam1 <= 95)) || (iParam1 >= 176 && iParam1 <= 191)) || (iParam1 >= 192 && iParam1 <= 207)) || (iParam1 >= 208 && iParam1 <= 223)) || (iParam1 >= 240 && iParam1 <= 255)) || iVar46 == 0) || iVar46 == 2) || iVar46 == 4) || iVar46 == 5) || iVar46 == 11) || iVar46 == 12) || iVar46 == 13) || iVar46 == 15) || iVar45 == -221826679) || iVar45 == 1172264892) || iVar45 == 1474853838) || iVar45 == 278369420) || iVar45 == -310817200) || iVar45 == -138976564) || iVar45 == -905541781) || iVar45 == 998321559) || iVar45 == 64401473)
{
}
else
{
return -99;
}
}
if (unk_0x4BE6499482BEE1D8(iVar45, -849839091, 0) || unk_0x4BE6499482BEE1D8(iVar45, -2088146832, 0))
{
return -99;
}
iVar47 = 0;
bVar48 = false;
if ((((((unk_0x4BE6499482BEE1D8(iVar45, -761463976, 0) || unk_0x4BE6499482BEE1D8(iVar45, -1347486026, 0)) || unk_0x4BE6499482BEE1D8(iVar45, -1119232689, 0)) || unk_0x4BE6499482BEE1D8(iVar45, 1784133476, 0)) || unk_0x4BE6499482BEE1D8(iVar45, 2044466679, 0)) || unk_0x4BE6499482BEE1D8(iVar45, -2020757158, 0)) || unk_0x4BE6499482BEE1D8(iVar45, 2030343924, 0))
{
bVar48 = true;
if ((((iParam2 >= 16 && iParam2 <= 31) || (iParam2 >= 128 && iParam2 <= 143)) || iVar44 == 1) || iVar44 == 8)
{
iVar47 = 2;
}
else if ((((unk_0x4BE6499482BEE1D8(iVar43, 1769225721, 0) || unk_0x4BE6499482BEE1D8(iVar43, -1834446747, 0)) || unk_0x4BE6499482BEE1D8(iVar43, -868698159, 0)) || unk_0x4BE6499482BEE1D8(iVar43, -1266557933, 0)) || unk_0x4BE6499482BEE1D8(iVar43, 1248753945, 0))
{
iVar47 = 0;
}
else if (((((((((((((iParam2 >= 160 && iParam2 <= 175) || iVar44 == 10) || unk_0x4BE6499482BEE1D8(iVar43, 684992453, 0)) || unk_0x4BE6499482BEE1D8(iVar43, 916636514, 0)) || unk_0x4BE6499482BEE1D8(iVar43, -1939378450, 0)) || unk_0x4BE6499482BEE1D8(iVar43, -820724897, 0)) || unk_0x4BE6499482BEE1D8(iVar43, 153792394, 0)) || unk_0x4BE6499482BEE1D8(iVar43, -872449705, 0)) || unk_0x4BE6499482BEE1D8(iVar43, 700658917, 0)) || unk_0x4BE6499482BEE1D8(iVar43, 1714969731, 0)) || unk_0x4BE6499482BEE1D8(iVar43, 745826556, 0)) || unk_0x4BE6499482BEE1D8(iVar43, 1055526375, 0)) || unk_0x4BE6499482BEE1D8(iVar43, 144417099, 0))
{
if (unk_0x4BE6499482BEE1D8(iVar45, 1784133476, 0))
{
iVar47 = 1;
}
else if (unk_0x4BE6499482BEE1D8(iVar45, -1119232689, 0) || unk_0x4BE6499482BEE1D8(iVar45, 2044466679, 0))
{
iVar47 = 1;
}
else
{
iVar47 = -1;
}
}
else
{
iVar47 = 1;
}
}
if (unk_0x4BE6499482BEE1D8(iVar45, -1351486939, 0))
{
bVar48 = true;
if ((((((((((iParam2 >= 112 && iParam2 <= 127) || iVar44 == 7) || unk_0x4BE6499482BEE1D8(iVar43, 684992453, 0)) || unk_0x4BE6499482BEE1D8(iVar43, 916636514, 0)) || unk_0x4BE6499482BEE1D8(iVar43, -820724897, 0)) || unk_0x4BE6499482BEE1D8(iVar43, -872449705, 0)) || unk_0x4BE6499482BEE1D8(iVar43, -416620954, 0)) || unk_0x4BE6499482BEE1D8(iVar43, 947651647, 0)) || unk_0x4BE6499482BEE1D8(iVar43, -549843760, 0)) || unk_0x4BE6499482BEE1D8(iVar43, 1830529185, 0))
{
if (((unk_0x4BE6499482BEE1D8(iVar43, 1769225721, 0) || unk_0x4BE6499482BEE1D8(iVar43, -1834446747, 0)) || unk_0x4BE6499482BEE1D8(iVar43, -1266557933, 0)) || unk_0x4BE6499482BEE1D8(iVar43, 1248753945, 0))
{
iVar47 = 0;
}
else
{
iVar47 = 1;
}
}
else if ((((((unk_0x4BE6499482BEE1D8(iVar43, 153792394, 0) || unk_0x4BE6499482BEE1D8(iVar43, 1322269404, 0)) || unk_0x4BE6499482BEE1D8(iVar43, 548036233, 0)) || unk_0x4BE6499482BEE1D8(iVar43, 700658917, 0)) || unk_0x4BE6499482BEE1D8(iVar43, -1014753511, 0)) || unk_0x4BE6499482BEE1D8(iVar43, -1410897066, 0)) || unk_0x4BE6499482BEE1D8(iVar43, -2119756144, 0))
{
iVar47 = 0;
}
else
{
iVar47 = -1;
}
}
switch (iVar45)
{
case -221826679:
case 1172264892:
case 1474853838:
case 278369420:
case -310817200:
case -138976564:
case -905541781:
case 998321559:
case 64401473:
case 15269846:
case -674026069:
case -904392139:
case -1135708510:
case -1360241698:
case -2130051046:
case 1935434943:
case 1704282417:
case 1472114052:
case 1169688951:
case -1193832172:
case -886884949:
case -1669539745:
case -1370260468:
case -413962745:
case -238779663:
bVar48 = true;
if (((unk_0x4BE6499482BEE1D8(iVar43, 1769225721, 0) || unk_0x4BE6499482BEE1D8(iVar43, -868698159, 0)) || unk_0x4BE6499482BEE1D8(iVar43, -1266557933, 0)) || unk_0x4BE6499482BEE1D8(iVar43, 1248753945, 0))
{
iVar47 = 1;
}
else if (unk_0x4BE6499482BEE1D8(iVar43, -1834446747, 0))
{
iVar47 = 2;
}
else if ((((((((((((unk_0x4BE6499482BEE1D8(iVar43, -870074461, 0) || unk_0x4BE6499482BEE1D8(iVar43, -1719338724, 0)) || unk_0x4BE6499482BEE1D8(iVar43, -416620954, 0)) || unk_0x4BE6499482BEE1D8(iVar43, 947651647, 0)) || unk_0x4BE6499482BEE1D8(iVar43, -549843760, 0)) || unk_0x4BE6499482BEE1D8(iVar43, 1830529185, 0)) || unk_0x4BE6499482BEE1D8(iVar43, -1813210391, 0)) || unk_0x4BE6499482BEE1D8(iVar43, -89003918, 0)) || unk_0x4BE6499482BEE1D8(iVar43, -747858475, 0)) || unk_0x4BE6499482BEE1D8(iVar43, 1208450825, 0)) || unk_0x4BE6499482BEE1D8(iVar43, -58412562, 0)) || unk_0x4BE6499482BEE1D8(iVar43, -1407614029, 0)) || unk_0x4BE6499482BEE1D8(iVar43, 481861038, 0))
{
iVar47 = 3;
}
else if ((((((iParam2 >= 16 && iParam2 <= 31) || (iParam2 >= 128 && iParam2 <= 143)) || (iParam2 >= 112 && iParam2 <= 127)) || iVar44 == 1) || iVar44 == 7) || iVar44 == 8)
{
iVar47 = 0;
}
else
{
iVar47 = -1;
}
break;
case 619380843:
bVar48 = true;
if ((((iParam2 >= 16 && iParam2 <= 31) || (iParam2 >= 128 && iParam2 <= 143)) || iVar44 == 1) || iVar44 == 8)
{
iVar47 = 0;
}
else
{
iVar47 = -1;
}
break;
}
if (unk_0x4BE6499482BEE1D8(iVar43, -1266557933, 0) || unk_0x4BE6499482BEE1D8(iVar43, -979468724, 0))
{
if ((iParam1 >= 240 && iParam1 <= 255) || iVar46 == 15)
{
iVar0 = 120;
}
else if (unk_0x4BE6499482BEE1D8(iVar45, 2044466679, 0) || unk_0x4BE6499482BEE1D8(iVar45, -2020757158, 0))
{
bVar48 = true;
iVar47 = 0;
}
else
{
return iVar0;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar43, -1237899132, 0) && !unk_0x4BE6499482BEE1D8(iVar43, -491588875, 0))
{
if (unk_0x4BE6499482BEE1D8(iVar43, -2124629577, 0))
{
if ((iParam1 >= 192 && iParam1 <= 207) || iVar46 == 12)
{
return -99;
}
}
if ((((((((((((iParam1 >= 64 && iParam1 <= 79) || (iParam1 >= 80 && iParam1 <= 95)) || (iParam1 >= 176 && iParam1 <= 191)) || (iParam1 >= 192 && iParam1 <= 207)) || (iParam1 >= 208 && iParam1 <= 223)) || (iParam1 >= 240 && iParam1 <= 255)) || iVar46 == 4) || iVar46 == 5) || iVar46 == 11) || iVar46 == 12) || iVar46 == 13) || iVar46 == 15)
{
bVar48 = false;
}
else if (iParam1 >= 256)
{
bVar48 = true;
if ((unk_0x4BE6499482BEE1D8(iVar43, -269266203, 0) || unk_0x4BE6499482BEE1D8(iVar43, -685039259, 0)) || unk_0x4BE6499482BEE1D8(iVar43, 297865853, 0))
{
iVar47 = 4;
}
else if (unk_0x4BE6499482BEE1D8(iVar43, 201427653, 0))
{
iVar47 = 5;
}
else if (unk_0x4BE6499482BEE1D8(iVar43, 967829025, 0) || unk_0x4BE6499482BEE1D8(iVar43, -2124629577, 0))
{
iVar47 = 6;
}
else
{
iVar47 = -1;
}
}
else
{
return iVar0;
}
}
if (bVar48)
{
if (iVar47 != -1)
{
iVar49 = unk_0xC32CC87227998BA0(iVar45);
iVar50 = 0;
while (iVar50 < iVar49)
{
unk_0xD87AFE0D33276102(iVar45, iVar50, &iVar51, &iVar52, &iVar53);
if (iVar53 == 8)
{
if (((((((iVar47 == 6 && unk_0x4BE6499482BEE1D8(iVar51, -168336417, 0)) || (iVar47 == 5 && unk_0x4BE6499482BEE1D8(iVar51, -1415000253, 0))) || (iVar47 == 4 && unk_0x4BE6499482BEE1D8(iVar51, -1703203608, 0))) || (iVar47 == 3 && unk_0x4BE6499482BEE1D8(iVar51, 1318819110, 0))) || (iVar47 == 2 && unk_0x4BE6499482BEE1D8(iVar51, -1138757583, 0))) || (iVar47 == 1 && unk_0x4BE6499482BEE1D8(iVar51, 647976134, 0))) || ((((((iVar47 == 0 && !unk_0x4BE6499482BEE1D8(iVar51, 647976134, 0)) && !unk_0x4BE6499482BEE1D8(iVar51, -1138757583, 0)) && !unk_0x4BE6499482BEE1D8(iVar51, 1318819110, 0)) && !unk_0x4BE6499482BEE1D8(iVar51, -1703203608, 0)) && !unk_0x4BE6499482BEE1D8(iVar51, -1415000253, 0)) && !unk_0x4BE6499482BEE1D8(iVar51, -168336417, 0)))
{
if (iVar51 != 0 && iVar51 != 1849449579)
{
iVar0 = func_133(iParam0, iVar51, 8, 4);
}
else
{
iVar0 = iVar52;
}
iVar50 = iVar49 + 1;
iVar1 = 0;
return iVar0;
}
}
iVar50++;
}
}
return -99;
}
if ((((((((iParam1 >= 192 && iParam1 <= 207) || iVar46 == 12) && ((((iParam2 >= 96 && iParam2 <= 111) || (iParam2 >= 112 && iParam2 <= 127)) || iVar44 == 6) || iVar44 == 7)) && func_488()) && !unk_0x4BE6499482BEE1D8(iVar43, -416620954, 0)) && !unk_0x4BE6499482BEE1D8(iVar43, 947651647, 0)) && !unk_0x4BE6499482BEE1D8(iVar43, -549843760, 0)) && !unk_0x4BE6499482BEE1D8(iVar43, 1830529185, 0))
{
if ((((((unk_0x4BE6499482BEE1D8(iVar43, -1813210391, 0) || unk_0x4BE6499482BEE1D8(iVar43, -89003918, 0)) || unk_0x4BE6499482BEE1D8(iVar43, -747858475, 0)) || unk_0x4BE6499482BEE1D8(iVar43, 1208450825, 0)) || unk_0x4BE6499482BEE1D8(iVar43, -58412562, 0)) || unk_0x4BE6499482BEE1D8(iVar43, -1407614029, 0)) || unk_0x4BE6499482BEE1D8(iVar43, 481861038, 0))
{
return -99;
}
iVar54 = iVar45;
if (iParam1 == 199)
{
iVar0 = func_133(iParam0, 331193219, 8, 4);
}
else if (iParam1 == 200)
{
iVar0 = func_133(iParam0, 1115060468, 8, 4);
}
else if (iParam1 == 201)
{
iVar0 = func_133(iParam0, 779636984, 8, 4);
}
else if (iVar54 == 948380380)
{
iVar0 = func_133(iParam0, -570249206, 8, 4);
}
else if (iVar54 == 708412993)
{
iVar0 = func_133(iParam0, -876115052, 8, 4);
}
else if (iVar54 == 1974869305)
{
iVar0 = func_133(iParam0, -108599534, 8, 4);
}
else if (iVar54 == 1197916315)
{
iVar0 = func_133(iParam0, 200575961, 8, 4);
}
else if (iVar54 == 587593690)
{
iVar0 = func_133(iParam0, 961930907, 8, 4);
}
else if (iVar54 == 323213398)
{
iVar0 = func_133(iParam0, -257698508, 8, 4);
}
else if (iVar54 == 1050193651)
{
iVar0 = func_133(iParam0, 516534659, 8, 4);
}
else if (iVar54 == 811438717)
{
iVar0 = func_133(iParam0, -1174312584, 8, 4);
}
else if (iVar54 == -877868759)
{
iVar0 = func_133(iParam0, -1192794304, 8, 4);
}
else if (iVar54 == -1108464212)
{
iVar0 = func_133(iParam0, -2027256889, 8, 4);
}
else if (iVar54 == -467866094)
{
iVar0 = func_133(iParam0, -1670074789, 8, 4);
}
else if (iVar54 == -673000034)
{
iVar0 = func_133(iParam0, -326349175, 8, 4);
}
else if (iVar54 == -1984939718)
{
iVar0 = func_133(iParam0, -796060021, 8, 4);
}
iVar1 = 0;
}
else if (iParam1 <= 15)
{
if (((((iParam2 >= 160 && iParam2 <= 175) || unk_0x4BE6499482BEE1D8(iVar43, 1769225721, 0)) || unk_0x4BE6499482BEE1D8(iVar43, -868698159, 0)) || unk_0x4BE6499482BEE1D8(iVar43, -1266557933, 0)) || unk_0x4BE6499482BEE1D8(iVar43, 1248753945, 0))
{
iVar0 = 16;
}
else
{
iVar0 = 0;
}
}
else if (iParam1 <= 31)
{
iVar0 = -99;
}
else if (iParam1 <= 47)
{
iVar0 = 48;
iVar1 = 0;
}
else if (iParam1 <= 63)
{
iVar0 = 48;
iVar1 = 0;
}
else if (iParam1 <= 79)
{
iVar0 = 34;
}
else if (iParam1 <= 95)
{
iVar0 = 50;
}
else if (iParam1 <= 111)
{
iVar0 = -99;
}
else if (iParam1 <= 127)
{
iVar0 = -99;
}
else if (iParam1 <= 143)
{
iVar0 = -99;
}
else if (iParam1 <= 159)
{
iVar0 = 48;
iVar1 = 0;
}
else if (iParam1 <= 175)
{
iVar0 = -99;
}
else if (iParam1 <= 191)
{
iVar0 = 71;
}
else if (iParam1 <= 207)
{
iVar1 = 0;
switch (iParam1)
{
case 199:
iVar0 = 94;
break;
case 200:
iVar0 = 95;
break;
case 201:
iVar0 = 96;
break;
}
if ((iParam2 >= 160 && iParam2 <= 175) || iVar44 == 10)
{
return -99;
}
}
else if (iParam1 <= 223)
{
iVar0 = 103;
}
else if (iParam1 <= 239)
{
iVar0 = 48;
iVar1 = 0;
}
else if (iParam1 <= 255)
{
iVar0 = 120;
}
else if (iParam1 >= 256)
{
iVar0 = 48;
iVar1 = 0;
if (iVar45 != -1)
{
bVar55 = true;
if (unk_0x4BE6499482BEE1D8(iVar45, 1965569012, 0))
{
bVar55 = false;
if (iParam2 >= 256 && unk_0x4BE6499482BEE1D8(iVar43, -1200513218, 0))
{
bVar55 = true;
}
}
if (bVar55)
{
iVar47 = 0;
if (iParam2 >= 160 && iParam2 <= 175)
{
if (iVar46 == 12)
{
iVar47 = 1;
}
}
iVar56 = unk_0xC32CC87227998BA0(iVar45);
iVar57 = 0;
while (iVar57 < iVar56)
{
unk_0xD87AFE0D33276102(iVar45, iVar57, &iVar58, &iVar59, &iVar60);
if (iVar60 == 8 && ((((((((iVar58 == 0 || iVar58 == 1849449579) || (iVar47 == 6 && unk_0x4BE6499482BEE1D8(iVar58, -168336417, 0))) || (iVar47 == 5 && unk_0x4BE6499482BEE1D8(iVar58, -1415000253, 0))) || (iVar47 == 4 && unk_0x4BE6499482BEE1D8(iVar58, -1703203608, 0))) || (iVar47 == 3 && unk_0x4BE6499482BEE1D8(iVar58, 1318819110, 0))) || (iVar47 == 2 && unk_0x4BE6499482BEE1D8(iVar58, -1138757583, 0))) || (iVar47 == 1 && unk_0x4BE6499482BEE1D8(iVar58, 647976134, 0))) || ((((((iVar47 == 0 && !unk_0x4BE6499482BEE1D8(iVar58, 647976134, 0)) && !unk_0x4BE6499482BEE1D8(iVar58, -1138757583, 0)) && !unk_0x4BE6499482BEE1D8(iVar58, 1318819110, 0)) && !unk_0x4BE6499482BEE1D8(iVar58, -1703203608, 0)) && !unk_0x4BE6499482BEE1D8(iVar58, -1415000253, 0)) && !unk_0x4BE6499482BEE1D8(iVar58, -168336417, 0))))
{
if (iVar58 != 0 && iVar58 != 1849449579)
{
iVar0 = func_133(iParam0, iVar58, 8, 4);
}
else
{
iVar0 = iVar59;
}
iVar57 = iVar56 + 1;
iVar1 = 0;
}
iVar57++;
}
}
}
}
}
if (iVar1 && iVar0 != -99)
{
iVar0 = (iVar0 + iParam3);
}
return iVar0;
}
bool func_488()
{
return unk_0x05BEBC245254F6F2(42019760);
}
int func_489(int iParam0, int iParam1, int iParam2)
{
switch (iParam0)
{
case joaat("mp_f_freemode_01"):
switch (iParam1)
{
case 0:
switch (iParam2)
{
case 0:
break;
case 1:
break;
case 2:
return 2131039487;
break;
case 3:
return 717379468;
break;
case 4:
return -331193181;
break;
case 5:
return 73557144;
break;
case 6:
return -887980266;
break;
case 7:
return -306315670;
break;
case 8:
return -1154048938;
break;
case 9:
break;
case 10:
break;
case 11:
break;
case 12:
break;
case 13:
break;
case 14:
break;
case 15:
return 1604817400;
break;
case 16:
return 1070350465;
break;
}
break;
case 1:
switch (iParam2)
{
case 0:
break;
case 1:
break;
case 2:
return -1301636615;
break;
case 3:
return 1153996761;
break;
case 4:
return -1315084792;
break;
case 5:
return 1655884038;
break;
case 6:
return 1489229833;
break;
case 7:
return -1929503325;
break;
case 8:
return -1189128367;
break;
case 9:
break;
case 10:
break;
case 11:
break;
case 12:
break;
case 13:
break;
case 14:
break;
case 15:
return -1787244429;
break;
case 16:
return -164625564;
break;
}
break;
case 2:
switch (iParam2)
{
case 0:
break;
case 1:
break;
case 2:
return 538171135;
break;
case 3:
return -244985062;
break;
case 4:
return 442977103;
break;
case 5:
return -1385727891;
break;
case 6:
return 1309989623;
break;
case 7:
return 1191418696;
break;
case 8:
return 189293242;
break;
case 9:
break;
case 10:
break;
case 11:
break;
case 12:
break;
case 13:
break;
case 14:
break;
case 15:
return -2053677691;
break;
case 16:
return -815345802;
break;
}
break;
case 3:
switch (iParam2)
{
case 0:
return -1438684756;
break;
case 1:
return 194146035;
break;
case 2:
return -420901598;
break;
case 3:
return 2107411814;
break;
case 4:
return 1242686602;
break;
case 5:
return -596540583;
break;
case 6:
return -653786071;
break;
case 7:
return 1460048630;
break;
case 8:
return -2079589815;
break;
case 9:
break;
case 10:
break;
case 11:
break;
case 12:
break;
case 13:
break;
case 14:
break;
case 15:
return 195042046;
break;
case 16:
return 1585638009;
break;
}
break;
case 4:
switch (iParam2)
{
case 0:
break;
case 1:
break;
case 2:
return -1947098483;
break;
case 3:
return 569295621;
break;
case 4:
return -208098559;
break;
case 5:
return 1256246195;
break;
case 6:
return 1605755939;
break;
case 7:
return 874748698;
break;
case 8:
return -137095372;
break;
case 9:
break;
case 10:
break;
case 11:
break;
case 12:
break;
case 13:
break;
case 14:
break;
case 15:
return -116524123;
break;
case 16:
return -2029602031;
break;
}
break;
case 5:
switch (iParam2)
{
case 0:
break;
case 1:
break;
case 2:
return 1950801119;
break;
case 3:
return -1158564771;
break;
case 4:
return -69929428;
break;
case 5:
return 1957730707;
break;
case 6:
return 374587029;
break;
case 7:
return -210146735;
break;
case 8:
return 336100633;
break;
case 9:
break;
case 10:
break;
case 11:
break;
case 12:
break;
case 13:
break;
case 14:
break;
case 15:
return -372444226;
break;
case 16:
return -1181708276;
break;
}
break;
case 6:
switch (iParam2)
{
case 0:
break;
case 1:
break;
case 2:
return -1148238879;
break;
case 3:
return -958872024;
break;
case 4:
return 1353141306;
break;
case 5:
return 394070886;
break;
case 6:
return 255958050;
break;
case 7:
return -521728710;
break;
case 8:
return 1843470374;
break;
case 9:
break;
case 10:
break;
case 11:
break;
case 12:
break;
case 13:
break;
case 14:
break;
case 15:
return 482576981;
break;
case 16:
return -552192905;
break;
}
break;
case 7:
switch (iParam2)
{
case 0:
break;
case 1:
break;
case 2:
return 670760190;
break;
case 3:
return 799655540;
break;
case 4:
return -99079306;
break;
case 5:
return 1989760633;
break;
case 6:
return 1157052274;
break;
case 7:
return -1196262225;
break;
case 8:
return -664356399;
break;
case 9:
break;
case 10:
break;
case 11:
break;
case 12:
break;
case 13:
break;
case 14:
break;
case 15:
return -254517089;
break;
case 16:
return 249940927;
break;
}
break;
case 8:
break;
case 9:
switch (iParam2)
{
case 0:
break;
case 1:
break;
case 2:
return 1875496913;
break;
case 3:
return -1978886808;
break;
case 4:
return -1279403197;
break;
case 5:
return -1459998821;
break;
case 6:
return 1786467932;
break;
case 7:
return -795005246;
break;
case 8:
return -1147008986;
break;
case 9:
break;
case 10:
break;
case 11:
break;
case 12:
break;
case 13:
break;
case 14:
break;
case 15:
return 2135611597;
break;
case 16:
return -1894776690;
break;
}
break;
case 10:
break;
case 11:
case 16:
switch (iParam2)
{
case 0:
break;
case 1:
break;
case 2:
return -1925009287;
break;
case 3:
return -268733734;
break;
case 4:
return -2124412821;
break;
case 5:
return -360036697;
break;
case 6:
return -926433555;
break;
case 7:
return 985839403;
break;
case 8:
return -234436397;
break;
case 9:
return 1165919867;
break;
case 10:
return 1606204151;
break;
case 11:
return 1774276352;
break;
case 12:
return 1934254610;
break;
case 13:
return 980775017;
break;
case 14:
return 399321881;
break;
case 15:
return 1330460533;
break;
case 16:
return 1085725282;
break;
}
break;
case 12:
switch (iParam2)
{
case 0:
break;
case 1:
break;
case 2:
return 493536654;
break;
case 3:
return -1759053005;
break;
case 4:
return 630158551;
break;
case 5:
return -707909514;
break;
case 6:
return 1254885089;
break;
case 7:
return 596977742;
break;
case 8:
return 1861540342;
break;
case 9:
break;
case 10:
break;
case 11:
break;
case 12:
break;
case 13:
break;
case 14:
break;
case 15:
return -37756040;
break;
case 16:
return -1984260867;
break;
}
break;
case 13:
break;
case 14:
switch (iParam2)
{
case 0:
break;
case 1:
break;
case 2:
return -840276017;
break;
case 3:
return 756400133;
break;
case 4:
return 1148630611;
break;
case 5:
return -893909282;
break;
case 6:
return 1485630477;
break;
case 7:
return -934174767;
break;
case 8:
return -1866981918;
break;
case 9:
break;
case 10:
break;
case 11:
break;
case 12:
break;
case 13:
break;
case 14:
break;
case 15:
return -5325525;
break;
case 16:
return 532560667;
break;
}
break;
case 15:
switch (iParam2)
{
case 0:
break;
case 1:
break;
case 2:
return -591418577;
break;
case 3:
return -2029591494;
break;
case 4:
return 1293565798;
break;
case 5:
return 1230599348;
break;
case 6:
return 80125466;
break;
case 7:
return 768104686;
break;
case 8:
return -1559755280;
break;
case 9:
break;
case 10:
break;
case 11:
break;
case 12:
break;
case 13:
break;
case 14:
break;
case 15:
return 347604073;
break;
case 16:
return 824480839;
break;
}
break;
case 352:
switch (iParam2)
{
case 0:
break;
case 1:
break;
case 2:
return 1435783799;
break;
case 3:
return -935552076;
break;
case 4:
return 766407714;
break;
case 5:
return 1509946582;
break;
case 6:
return -2105033798;
break;
case 7:
return 1608018857;
break;
case 8:
return -1746944984;
break;
case 9:
break;
case 10:
break;
case 11:
break;
case 12:
break;
case 13:
break;
case 14:
break;
case 15:
return 717365732;
break;
case 16:
return -1815322218;
break;
}
break;
case 353:
switch (iParam2)
{
case 0:
break;
case 1:
break;
case 2:
return 640553446;
break;
case 3:
return 376036624;
break;
case 4:
return -51036152;
break;
case 5:
return 1864144311;
break;
case 6:
return 875934121;
break;
case 7:
return -671105758;
break;
case 8:
return -1439393512;
break;
case 9:
break;
case 10:
break;
case 11:
break;
case 12:
break;
case 13:
break;
case 14:
break;
case 15:
return 2063066579;
break;
case 16:
return 1248148722;
break;
}
break;
case 354:
switch (iParam2)
{
case 0:
break;
case 1:
break;
case 2:
return -1795808405;
break;
case 3:
return -583173670;
break;
case 4:
return 1309411930;
break;
case 5:
return -1097003929;
break;
case 6:
return 947491077;
break;
case 7:
return -1021187095;
break;
case 8:
return -1662421384;
break;
case 9:
break;
case 10:
break;
case 11:
break;
case 12:
break;
case 13:
break;
case 14:
break;
case 15:
return -1456322823;
break;
case 16:
return -752003681;
break;
}
break;
case 391:
switch (iParam2)
{
case 0:
break;
case 1:
break;
case 2:
return -1866149930;
break;
case 3:
return 169817082;
break;
case 4:
return 876172205;
break;
case 5:
return 2053608242;
break;
case 6:
return 720468224;
break;
case 7:
return -1755663855;
break;
case 8:
return -277654310;
break;
case 9:
break;
case 10:
break;
case 11:
break;
case 12:
break;
case 13:
break;
case 14:
break;
case 15:
return -491777818;
break;
case 16:
return 1956130191;
break;
}
break;
case 404:
switch (iParam2)
{
case 0:
break;
case 1:
break;
case 2:
return -1685192020;
break;
case 3:
return 447714365;
break;
case 4:
return -187478284;
break;
case 5:
return 2101575193;
break;
case 6:
return 1655151264;
break;
case 7:
return -212448586;
break;
case 8:
return -575494038;
break;
case 9:
break;
case 10:
break;
case 11:
break;
case 12:
break;
case 13:
break;
case 14:
break;
case 15:
return 180304173;
break;
case 16:
return 1266107782;
break;
}
break;
}
break;
case joaat("mp_m_freemode_01"):
switch (iParam1)
{
case 0:
switch (iParam2)
{
case 0:
break;
case 1:
break;
case 2:
return -414534788;
break;
case 3:
return 185531215;
break;
case 4:
return -775417853;
break;
case 5:
return 1619085169;
break;
case 6:
return 888176083;
break;
case 7:
return -868636293;
break;
case 8:
return -481241218;
break;
case 9:
return -1659896370;
break;
case 10:
return 1919724703;
break;
}
break;
case 1:
switch (iParam2)
{
case 0:
break;
case 1:
break;
case 2:
return 982904848;
break;
case 3:
return 1053086051;
break;
case 4:
return 1565990968;
break;
case 5:
return 869354244;
break;
case 6:
return -1137668925;
break;
case 7:
return -245327436;
break;
case 8:
return -2092735770;
break;
case 9:
return 445078583;
break;
case 10:
return -181565105;
break;
}
break;
case 2:
switch (iParam2)
{
case 0:
break;
case 1:
break;
case 2:
return 1286693086;
break;
case 3:
return 443095479;
break;
case 4:
return -2039335276;
break;
case 5:
return 2083407994;
break;
case 6:
return 533001127;
break;
case 7:
return 1728875992;
break;
case 8:
return -1665814217;
break;
case 9:
return 372072052;
break;
case 10:
return 143449031;
break;
}
break;
case 3:
break;
case 4:
switch (iParam2)
{
case 0:
return 1402439971;
break;
case 1:
return -77210386;
break;
case 2:
return 206640931;
break;
case 3:
return 1434974169;
break;
case 4:
return -2076303403;
break;
case 5:
return 2073263245;
break;
case 6:
return 229693395;
break;
case 7:
return -981246739;
break;
case 8:
return 2107613618;
break;
case 9:
return 1636528688;
break;
case 10:
return 1619141120;
break;
}
break;
case 5:
switch (iParam2)
{
case 0:
break;
case 1:
break;
case 2:
return 1954830049;
break;
case 3:
return 1793062342;
break;
case 4:
return -2118725149;
break;
case 5:
return -849747283;
break;
case 6:
return 1582789248;
break;
case 7:
return -1675687168;
break;
case 8:
return -381889304;
break;
case 9:
return 316684696;
break;
case 10:
return 1798619938;
break;
}
break;
case 6:
switch (iParam2)
{
case 0:
break;
case 1:
break;
case 2:
return 1942207698;
break;
case 3:
return -743369876;
break;
case 4:
return 582693633;
break;
case 5:
return -1280288284;
break;
case 6:
return -1000105499;
break;
case 7:
return -2147200029;
break;
case 8:
return -1838714866;
break;
case 9:
return -1501536929;
break;
case 10:
return -1868660317;
break;
}
break;
case 7:
break;
case 8:
switch (iParam2)
{
case 0:
break;
case 1:
break;
case 2:
return 1187050736;
break;
case 3:
return -1420954963;
break;
case 4:
return 232453794;
break;
case 5:
return 406178867;
break;
case 6:
return 739288468;
break;
case 7:
return -252997160;
break;
case 8:
return -2044888090;
break;
case 9:
return 171952701;
break;
case 10:
return -142319190;
break;
}
break;
case 9:
break;
case 10:
break;
case 11:
switch (iParam2)
{
case 0:
break;
case 1:
break;
case 2:
return 1703311969;
break;
case 3:
return 1875667738;
break;
case 4:
return 1291347593;
break;
case 5:
return -713453992;
break;
case 6:
return 1417339152;
break;
case 7:
return 587281350;
break;
case 8:
return -86904022;
break;
case 9:
return 1665085600;
break;
case 10:
return -802903636;
break;
}
break;
case 12:
switch (iParam2)
{
case 0:
break;
case 1:
break;
case 2:
return -1858518769;
break;
case 3:
return 44044890;
break;
case 4:
return -1131137757;
break;
case 5:
return 213313570;
break;
case 6:
return -233124949;
break;
case 7:
return 171345846;
break;
case 8:
return 1452902248;
break;
case 9:
return 457174457;
break;
case 10:
return -1710613996;
break;
}
break;
case 13:
break;
case 14:
switch (iParam2)
{
case 0:
break;
case 1:
break;
case 2:
return 747852506;
break;
case 3:
return 216238268;
break;
case 4:
return 404894315;
break;
case 5:
return 950341895;
break;
case 6:
return 1159773017;
break;
case 7:
return -957185436;
break;
case 8:
return -240960885;
break;
case 9:
return 1933094739;
break;
case 10:
return 2146821602;
break;
}
break;
case 15:
switch (iParam2)
{
case 0:
break;
case 1:
break;
case 2:
return -259688953;
break;
case 3:
return -736534114;
break;
case 4:
return -1673886961;
break;
case 5:
return 976562040;
break;
case 6:
return -1794803798;
break;
case 7:
return -81887956;
break;
case 8:
return 1689176064;
break;
case 9:
return -1265405818;
break;
case 10:
return 1455856271;
break;
}
break;
case 302:
switch (iParam2)
{
case 0:
break;
case 1:
break;
case 2:
return -1835438866;
break;
case 3:
return -504887899;
break;
case 4:
return -2062205969;
break;
case 5:
return 1171204323;
break;
case 6:
return 655612525;
break;
case 7:
return -739019619;
break;
case 8:
return 1371789707;
break;
case 9:
return 417256409;
break;
case 10:
return -768009060;
break;
}
break;
case 303:
switch (iParam2)
{
case 0:
break;
case 1:
break;
case 2:
return 124374814;
break;
case 3:
return 2119944607;
break;
case 4:
return -1129482474;
break;
case 5:
return 801728466;
break;
case 6:
return 1764150402;
break;
case 7:
return -43777;
break;
case 8:
return -543743869;
break;
case 9:
return -971593942;
break;
case 10:
return 1482293004;
break;
}
break;
case 304:
switch (iParam2)
{
case 0:
break;
case 1:
break;
case 2:
return 1732443055;
break;
case 3:
return 1991589117;
break;
case 4:
return -1926802042;
break;
case 5:
return -1879434956;
break;
case 6:
return -582200001;
break;
case 7:
return 498117603;
break;
case 8:
return 1121585510;
break;
case 9:
return 96864554;
break;
case 10:
return -878058152;
break;
}
break;
}
break;
}
return -1;
}
int func_490(int iParam0, int iParam1, int iParam2, int iParam3)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
int iVar9;
int iVar10;
int iVar11;
int iVar12;
int iVar13;
int iVar14;
iVar0 = -99;
iVar1 = -1;
iVar2 = -1;
iVar3 = -1;
iVar4 = -1;
switch (iParam0)
{
case joaat("mp_m_freemode_01"):
if (iParam2 >= 237)
{
iVar2 = func_128(iParam0, iParam2, 11, 3);
iVar1 = func_482(iVar2);
}
if (iParam1 >= 241)
{
iVar4 = func_128(iParam0, iParam1, 8, 3);
iVar3 = func_482(iVar4);
}
if (unk_0x4BE6499482BEE1D8(iVar2, 320460654, 0))
{
iVar0 = 14;
}
else if (unk_0x4BE6499482BEE1D8(iVar2, -2017999390, 0))
{
iVar0 = 6;
}
else if (iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, -1786447517, 0))
{
iVar0 = 1;
}
else if (iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, -1010805287, 0))
{
iVar0 = 4;
}
else if (unk_0x4BE6499482BEE1D8(iVar2, -1237899132, 0) && !unk_0x4BE6499482BEE1D8(iVar2, -491588875, 0))
{
if (iParam1 == 240)
{
if ((unk_0x4BE6499482BEE1D8(iVar2, -269266203, 0) || unk_0x4BE6499482BEE1D8(iVar2, -685039259, 0)) || unk_0x4BE6499482BEE1D8(iVar2, 297865853, 0))
{
iVar0 = func_133(iParam0, -189347783, 3, 3);
}
else if (unk_0x4BE6499482BEE1D8(iVar2, 201427653, 0))
{
iVar0 = func_133(iParam0, -2124259813, 3, 3);
}
else if (unk_0x4BE6499482BEE1D8(iVar2, 967829025, 0))
{
iVar0 = func_133(iParam0, 1522547645, 3, 3);
}
else if (unk_0x4BE6499482BEE1D8(iVar2, -979468724, 0))
{
iVar0 = 5;
}
}
else
{
iVar0 = func_490(iParam0, -99, func_483(iParam0, iParam1, 0), iParam3);
if (iVar0 == -99)
{
iVar0 = 0;
}
}
}
else if (unk_0x4BE6499482BEE1D8(iVar4, -316495692, 0))
{
iVar0 = 12;
}
else if (((iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, -416620954, 0)) || (iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, -1507532917, 0))) || unk_0x4BE6499482BEE1D8(iVar2, -1813210391, 0))
{
if (iParam1 == 240)
{
iVar0 = 14;
}
else if ((iParam1 >= 80 && iParam1 <= 95) || iVar3 == 5)
{
iVar0 = 6;
}
else if ((iParam1 >= 16 && iParam1 <= 31) || iVar3 == 1)
{
iVar0 = 1;
}
else
{
iVar0 = 4;
}
}
else if (iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, -1719338724, 0))
{
if (iParam1 == 240)
{
iVar0 = 14;
}
else if ((iParam1 >= 80 && iParam1 <= 95) || iVar3 == 5)
{
iVar0 = 6;
}
else
{
iVar0 = 1;
}
}
else if (iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, -1939378450, 0))
{
if ((iParam1 >= 192 && iParam1 <= 207) || iVar3 == 12)
{
iVar0 = 0;
}
else
{
iVar0 = 11;
}
}
else if (iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, 264959411, 0))
{
if ((iParam1 >= 80 && iParam1 <= 95) || iVar3 == 5)
{
iVar0 = 6;
}
else if (iParam1 == 240)
{
iVar0 = 14;
}
else if ((iParam1 >= 16 && iParam1 <= 31) || iVar3 == 1)
{
iVar0 = 1;
}
}
else if (iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, 1625463492, 0))
{
iVar0 = 12;
}
else if (iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, -973213642, 0))
{
iVar0 = 2;
}
else if (((iParam2 >= 0 && iParam2 <= 31) || iVar1 == 0) || iVar1 == 1)
{
iVar0 = 0;
}
else if ((((((((((iParam2 >= 48 && iParam2 <= 63) || (iParam2 >= 64 && iParam2 <= 79)) || (iParam2 >= 96 && iParam2 <= 107)) || (iParam2 >= 108 && iParam2 <= 123)) || (iParam2 >= 156 && iParam2 <= 171)) || iVar1 == 3) || iVar1 == 4) || iVar1 == 6) || iVar1 == 7) || iVar1 == 10)
{
if ((iParam1 >= 80 && iParam1 <= 95) || iVar3 == 5)
{
iVar0 = 6;
}
else if (iParam1 == 240 || iVar3 == 15)
{
iVar0 = 14;
}
else if ((iParam1 >= 160 && iParam1 <= 175) || iVar3 == 10)
{
iVar0 = 4;
}
else if ((iParam1 >= 176 && iParam1 <= 191) || iVar3 == 11)
{
iVar0 = 12;
}
else if ((((iParam1 >= 16 && iParam1 <= 31) || (iParam1 >= 224 && iParam1 <= 239)) || iVar3 == 1) || iVar3 == 14)
{
iVar0 = 1;
}
else if ((iParam1 >= 80 && iParam1 <= 95) || iVar3 == 5)
{
iVar0 = 6;
}
else if ((iParam1 >= 32 && iParam1 <= 47) || iVar3 == 2)
{
iVar0 = 4;
}
else if (iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, 1847239679, 0))
{
if (iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, -1914383230, 0))
{
iVar0 = 4;
}
else
{
iVar0 = 1;
}
}
else if ((iParam1 >= 144 && iParam1 <= 159) || iVar3 == 9)
{
iVar0 = 1;
}
else if (unk_0x4BE6499482BEE1D8(iVar4, -849839091, 0) || unk_0x4BE6499482BEE1D8(iVar4, -2088146832, 0))
{
iVar0 = 4;
}
else if (iParam1 >= 241)
{
if (iVar4 != -1)
{
iVar5 = unk_0x2F0D0A9B05362CCC(iVar4);
iVar6 = 0;
while (iVar6 < iVar5)
{
unk_0xD24B9193F8601A82(iVar4, iVar6, &iVar7, &iVar8, &iVar9);
if (iVar9 == 3)
{
if (iVar7 != 0 && iVar7 != 1849449579)
{
iVar0 = func_133(iParam0, iVar7, 3, 3);
}
else
{
iVar0 = iVar8;
}
iVar6 = iVar5 + 1;
}
iVar6++;
}
}
}
}
else if ((iParam2 >= 172 && iParam2 <= 187) || iVar1 == 11)
{
if (iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, -7109286, 0))
{
iVar0 = 6;
}
else if ((((iParam1 >= 48 && iParam1 <= 63) || (iParam1 >= 112 && iParam1 <= 127)) || iVar3 == 3) || iVar3 == 7)
{
iVar0 = 11;
}
else if ((iParam1 >= 96 && iParam1 <= 111) || iVar3 == 6)
{
iVar0 = 11;
}
else if (iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, 1147939952, 0))
{
iVar0 = 12;
}
else if (iParam1 == 240)
{
iVar0 = 15;
}
}
else if ((iParam2 >= 140 && iParam2 <= 155) || iVar1 == 9)
{
iVar0 = 0;
}
else if (iParam2 == 236)
{
if (iParam1 == 240)
{
iVar0 = 15;
}
}
break;
case joaat("mp_f_freemode_01"):
if (iParam2 >= 256)
{
iVar2 = func_128(iParam0, iParam2, 11, 4);
iVar1 = func_482(iVar2);
}
if (iParam1 >= 136)
{
iVar4 = func_128(iParam0, iParam1, 8, 4);
iVar3 = func_482(iVar4);
switch (iVar4)
{
case 327496660:
case -63928837:
case 695885966:
case 525421628:
case 1426634666:
case 1160648693:
case 1928065904:
case 1748557322:
case -1777223233:
case -1991794649:
case 917309067:
case -1629661498:
iVar3 = 15;
break;
case 587358117:
case 742748715:
case 490263574:
case 682683142:
case -1172927021:
case -174365543:
case -1450128251:
case -1811439245:
case 1578218888:
case -1193481443:
case 1549742623:
case 1309119856:
case 2143418596:
case 1905745039:
case 428026984:
case 1547729071:
case -1848319017:
iVar3 = 13;
break;
}
}
if (unk_0x4BE6499482BEE1D8(iVar2, 320460654, 0))
{
iVar0 = 0;
}
else if (unk_0x4BE6499482BEE1D8(iVar2, -1237899132, 0) && !unk_0x4BE6499482BEE1D8(iVar2, -491588875, 0))
{
if ((((((((((((((((((((((((((((iParam1 >= 34 && iParam1 <= 49) || (iParam1 >= 50 && iParam1 <= 65)) || (iParam1 >= 71 && iParam1 <= 86)) || (iParam1 >= 87 && iParam1 <= 102)) || (iParam1 >= 103 && iParam1 <= 118)) || (iParam1 >= 120 && iParam1 <= 135)) || iVar3 == 4) || iVar3 == 5) || iVar3 == 11) || iVar3 == 12) || iVar3 == 13) || iVar3 == 15) || iVar4 == 1389091979) || iVar4 == 442100644) || iVar4 == -1406103725) || iVar4 == -167304449) || iVar4 == 129353308) || iVar4 == 1943510702) || iVar4 == 1963041026) || unk_0x4BE6499482BEE1D8(iVar4, 2044466679, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -2020757158, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1064262817, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1419806467, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1053842259, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1358888880, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 1208450825, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 297865853, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 602650322, 0))
{
if ((unk_0x4BE6499482BEE1D8(iVar2, -269266203, 0) || unk_0x4BE6499482BEE1D8(iVar2, -685039259, 0)) || unk_0x4BE6499482BEE1D8(iVar2, 297865853, 0))
{
iVar0 = func_133(iParam0, -405734992, 3, 4);
}
else if (unk_0x4BE6499482BEE1D8(iVar2, 201427653, 0))
{
iVar0 = func_133(iParam0, 1297919831, 3, 4);
}
else if ((unk_0x4BE6499482BEE1D8(iVar2, 967829025, 0) || unk_0x4BE6499482BEE1D8(iVar2, -979468724, 0)) || unk_0x4BE6499482BEE1D8(iVar2, -2124629577, 0))
{
iVar0 = func_133(iParam0, 440926231, 3, 4);
}
}
else if ((unk_0x4BE6499482BEE1D8(iVar4, -89003918, 0) || unk_0x4BE6499482BEE1D8(iVar4, -747858475, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 490219883, 0))
{
iVar0 = 11;
}
else
{
iVar0 = func_490(iParam0, -99, func_483(iParam0, iParam1, 0), iParam3);
if (iVar0 == -99)
{
iVar0 = 14;
}
}
}
else if (unk_0x4BE6499482BEE1D8(iVar4, -316495692, 0))
{
iVar0 = 3;
}
else if (((iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, 1965569012, 0)) && !func_486(iParam0, iParam2, -1)) && !unk_0x4BE6499482BEE1D8(iVar2, 320460654, 0))
{
if (iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, 1147939952, 0))
{
iVar0 = 3;
}
else
{
iVar0 = 0;
}
}
else if (iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, 1353777856, 0))
{
iVar0 = 7;
}
else if ((iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, -849839091, 0)) || (iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, -2088146832, 0)))
{
iVar0 = 3;
}
else if (iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, -2102859770, 0))
{
if (unk_0x4BE6499482BEE1D8(func_128(iParam0, iParam3, 4, 4), -33031567, 0))
{
iVar0 = 11;
}
else
{
iVar0 = 15;
}
}
else if ((((((((((((((iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, -1119232689, 0)) || (iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, 1976716889, 0))) || (iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, -1488441032, 0))) || (iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, 2044466679, 0))) || (iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, -1419806467, 0))) || (iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, -1813210391, 0))) || (iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, 263623295, 0))) || (iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, -309899747, 0))) || (iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, -89003918, 0))) || (iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, -747858475, 0))) || (iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, 490219883, 0))) || (iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, 1208450825, 0))) || (iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, 297865853, 0))) || (iVar4 != -1 && unk_0x4BE6499482BEE1D8(iVar4, 602650322, 0)))
{
if ((((((iParam2 >= 16 && iParam2 <= 31) || (iParam2 >= 96 && iParam2 <= 111)) || (iParam2 >= 128 && iParam2 <= 143)) || iVar1 == 1) || iVar1 == 6) || iVar1 == 8)
{
iVar0 = 1;
}
else if (((((((((((((((((((((((((((iParam2 >= 112 && iParam2 <= 127) || (iParam2 >= 160 && iParam2 <= 175)) || iVar1 == 7) || iVar1 == 10) || unk_0x4BE6499482BEE1D8(iVar2, 2026620439, 0)) || unk_0x4BE6499482BEE1D8(iVar2, 916636514, 0)) || unk_0x4BE6499482BEE1D8(iVar2, 1322269404, 0)) || unk_0x4BE6499482BEE1D8(iVar2, 548036233, 0)) || unk_0x4BE6499482BEE1D8(iVar2, -870074461, 0)) || unk_0x4BE6499482BEE1D8(iVar2, -1174924468, 0)) || unk_0x4BE6499482BEE1D8(iVar2, -868698159, 0)) || unk_0x4BE6499482BEE1D8(iVar2, 1769225721, 0)) || unk_0x4BE6499482BEE1D8(iVar2, -1834446747, 0)) || unk_0x4BE6499482BEE1D8(iVar2, -1719338724, 0)) || unk_0x4BE6499482BEE1D8(iVar2, -416620954, 0)) || unk_0x4BE6499482BEE1D8(iVar2, 947651647, 0)) || unk_0x4BE6499482BEE1D8(iVar2, -549843760, 0)) || unk_0x4BE6499482BEE1D8(iVar2, 1830529185, 0)) || unk_0x4BE6499482BEE1D8(iVar2, -1266557933, 0)) || unk_0x4BE6499482BEE1D8(iVar2, -1813210391, 0)) || unk_0x4BE6499482BEE1D8(iVar2, -89003918, 0)) || unk_0x4BE6499482BEE1D8(iVar2, -747858475, 0)) || unk_0x4BE6499482BEE1D8(iVar2, 1208450825, 0)) || unk_0x4BE6499482BEE1D8(iVar2, -58412562, 0)) || unk_0x4BE6499482BEE1D8(iVar2, -1407614029, 0)) || unk_0x4BE6499482BEE1D8(iVar2, 1248753945, 0)) || unk_0x4BE6499482BEE1D8(iVar2, 481861038, 0))
{
iVar0 = 3;
}
else if (unk_0x4BE6499482BEE1D8(iVar2, -1939378450, 0))
{
iVar0 = 9;
}
}
else if ((((((((iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, -870074461, 0)) || (iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, -1813210391, 0))) || (iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, -89003918, 0))) || (iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, -747858475, 0))) || (iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, 1208450825, 0))) || (iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, -58412562, 0))) || (iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, -1407614029, 0))) || (iVar2 != -1 && unk_0x4BE6499482BEE1D8(iVar2, 481861038, 0)))
{
if ((((unk_0x4BE6499482BEE1D8(iVar4, 684992453, 0) || unk_0x4BE6499482BEE1D8(iVar4, 916636514, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1939378450, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 441715397, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 264959411, 0))
{
iVar0 = 1;
}
else
{
iVar0 = 6;
}
}
else if ((iParam2 >= 16 && iParam2 <= 31) || iVar1 == 1)
{
if ((((iParam1 >= 50 && iParam1 <= 65) || (iParam1 >= 120 && iParam1 <= 135)) || iVar3 == 5) || iVar3 == 15)
{
iVar0 = 5;
}
else if (iParam1 >= 136)
{
if (iVar4 != -1)
{
iVar10 = unk_0x2F0D0A9B05362CCC(iVar4);
iVar11 = 0;
while (iVar11 < iVar10)
{
unk_0xD24B9193F8601A82(iVar4, iVar11, &iVar12, &iVar13, &iVar14);
if (iVar14 == 3)
{
if (iVar12 != 0 && iVar12 != 1849449579)
{
iVar0 = func_133(iParam0, iVar12, 3, 4);
}
else
{
iVar0 = iVar13;
}
iVar11 = iVar10 + 1;
}
iVar11++;
}
}
}
}
else if (((iParam2 >= 112 && iParam2 <= 127) || iVar1 == 7) || unk_0x4BE6499482BEE1D8(iVar2, -1719338724, 0))
{
if ((((unk_0x4BE6499482BEE1D8(iVar4, 684992453, 0) || unk_0x4BE6499482BEE1D8(iVar4, 916636514, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1939378450, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 441715397, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 264959411, 0))
{
iVar0 = 3;
}
else
{
iVar0 = 6;
}
}
break;
}
return iVar0;
}
void func_491(int iParam0)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
int iVar9;
int iVar10;
int iVar11;
int iVar12;
int iVar13;
bool bVar14;
struct<5> Var15;
int iVar16;
int iVar17;
iVar0 = unk_0x8F474E419F56E48D(iParam0);
iVar1 = unk_0x774CB20D17C3FF03(iParam0, 11);
iVar2 = unk_0x7710E77D1959B321(iParam0, 11);
iVar3 = unk_0x774CB20D17C3FF03(iParam0, 1);
iVar4 = unk_0x7710E77D1959B321(iParam0, 1);
iVar5 = unk_0x774CB20D17C3FF03(iParam0, 8);
iVar6 = unk_0x7710E77D1959B321(iParam0, 8);
iVar7 = unk_0x774CB20D17C3FF03(iParam0, 10);
iVar8 = unk_0x7710E77D1959B321(iParam0, 10);
iVar9 = unk_0xBDB0A560F4FBB443(iParam0, 11, iVar1, iVar2);
iVar10 = unk_0xBDB0A560F4FBB443(iParam0, 1, iVar3, iVar4);
iVar11 = unk_0xBDB0A560F4FBB443(iParam0, 8, iVar5, iVar6);
iVar12 = unk_0xEF84BAF28F219386(iParam0, 0, unk_0xD1241BB51B6FE6DA(iParam0, 0), unk_0x2FB5EBD67ABDBF18(iParam0, 0));
iVar13 = unk_0xBDB0A560F4FBB443(iParam0, 10, iVar7, iVar8);
bVar14 = false;
if (unk_0x4BE6499482BEE1D8(iVar9, -317649054, 0) && unk_0x4BE6499482BEE1D8(iVar9, -1889900289, 0))
{
if (!func_494(iParam0, &bVar14, iVar9, iVar10, iVar12) || unk_0x5D7DFE2058701942(iParam0, 0))
{
if (func_493(iVar9, 0, 0, &iVar16))
{
unk_0xDD7BFAE08DAD69B6(iVar16, &Var15);
unk_0x72A0FF8C49CFFC0D(iParam0, 11, Var15.f_3, Var15.f_4, unk_0xA4B664E8E0A26C23(iParam0, 11));
if (unk_0x8F474E419F56E48D(iParam0) == joaat("mp_m_freemode_01"))
{
if (unk_0x4BE6499482BEE1D8(iVar13, -1487683087, 0))
{
if (unk_0x4BE6499482BEE1D8(iVar16, -816428229, 0) && iVar13 != -1104282163)
{
unk_0xDD7BFAE08DAD69B6(-1104282163, &Var15);
unk_0x72A0FF8C49CFFC0D(iParam0, 10, Var15.f_3, Var15.f_4, 0);
}
else if (unk_0x4BE6499482BEE1D8(iVar16, -521539998, 0) && iVar13 != 326501576)
{
unk_0xDD7BFAE08DAD69B6(326501576, &Var15);
unk_0x72A0FF8C49CFFC0D(iParam0, 10, Var15.f_3, Var15.f_4, 0);
}
else if (unk_0x4BE6499482BEE1D8(iVar16, -420560153, 0) || unk_0x4BE6499482BEE1D8(iVar16, 604028170, 0))
{
unk_0xDD7BFAE08DAD69B6(-1769373731, &Var15);
unk_0x72A0FF8C49CFFC0D(iParam0, 10, Var15.f_3, Var15.f_4, 0);
}
}
}
else if (unk_0x4BE6499482BEE1D8(iVar13, -1487683087, 0))
{
if (unk_0x4BE6499482BEE1D8(iVar16, -816428229, 0))
{
if (iVar13 != 1349944895)
{
unk_0xDD7BFAE08DAD69B6(1349944895, &Var15);
unk_0x72A0FF8C49CFFC0D(iParam0, 10, Var15.f_3, Var15.f_4, 0);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar16, -521539998, 0))
{
if (iVar13 != -521200785)
{
unk_0xDD7BFAE08DAD69B6(-521200785, &Var15);
unk_0x72A0FF8C49CFFC0D(iParam0, 10, Var15.f_3, Var15.f_4, 0);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar16, -420560153, 0) || unk_0x4BE6499482BEE1D8(iVar16, 604028170, 0))
{
unk_0xDD7BFAE08DAD69B6(-66968432, &Var15);
unk_0x72A0FF8C49CFFC0D(iParam0, 10, Var15.f_3, Var15.f_4, 0);
}
}
unk_0x72A0FF8C49CFFC0D(iParam0, 1, iVar3, iVar4, 0);
}
}
}
else if (unk_0x4BE6499482BEE1D8(iVar9, -317649054, 0) && unk_0x4BE6499482BEE1D8(iVar9, 1569775397, 0))
{
if (unk_0x4BE6499482BEE1D8(iVar12, -219395886, 1))
{
if (func_493(iVar9, 1, 0, &iVar17))
{
unk_0xDD7BFAE08DAD69B6(iVar17, &Var15);
unk_0x72A0FF8C49CFFC0D(iParam0, 11, Var15.f_3, Var15.f_4, unk_0xA4B664E8E0A26C23(iParam0, 11));
if (unk_0x8F474E419F56E48D(iParam0) == joaat("mp_m_freemode_01"))
{
if (unk_0x4BE6499482BEE1D8(iVar13, -1487683087, 0))
{
if (unk_0x4BE6499482BEE1D8(iVar17, -816428229, 0) && iVar13 != -1104282163)
{
unk_0xDD7BFAE08DAD69B6(-1104282163, &Var15);
unk_0x72A0FF8C49CFFC0D(iParam0, 10, Var15.f_3, Var15.f_4, 0);
}
else if (unk_0x4BE6499482BEE1D8(iVar17, -521539998, 0) && iVar13 != 326501576)
{
unk_0xDD7BFAE08DAD69B6(326501576, &Var15);
unk_0x72A0FF8C49CFFC0D(iParam0, 10, Var15.f_3, Var15.f_4, 0);
}
else if (unk_0x4BE6499482BEE1D8(iVar17, -420560153, 0) || unk_0x4BE6499482BEE1D8(iVar17, 604028170, 0))
{
unk_0xDD7BFAE08DAD69B6(-1769373731, &Var15);
unk_0x72A0FF8C49CFFC0D(iParam0, 10, Var15.f_3, Var15.f_4, 0);
}
}
}
else if (unk_0x4BE6499482BEE1D8(iVar13, -1487683087, 0))
{
if (unk_0x4BE6499482BEE1D8(iVar17, -816428229, 0))
{
if (iVar13 != 1349944895)
{
unk_0xDD7BFAE08DAD69B6(1349944895, &Var15);
unk_0x72A0FF8C49CFFC0D(iParam0, 10, Var15.f_3, Var15.f_4, 0);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar17, -521539998, 0))
{
if (iVar13 != -521200785)
{
unk_0xDD7BFAE08DAD69B6(-521200785, &Var15);
unk_0x72A0FF8C49CFFC0D(iParam0, 10, Var15.f_3, Var15.f_4, 0);
}
}
else if (unk_0x4BE6499482BEE1D8(iVar17, -420560153, 0) || unk_0x4BE6499482BEE1D8(iVar17, 604028170, 0))
{
unk_0xDD7BFAE08DAD69B6(-66968432, &Var15);
unk_0x72A0FF8C49CFFC0D(iParam0, 10, Var15.f_3, Var15.f_4, 0);
}
}
unk_0x72A0FF8C49CFFC0D(iParam0, 1, iVar3, iVar4, 0);
}
}
}
else if (unk_0x4BE6499482BEE1D8(iVar11, 391733089, 0) || func_492(iParam0, iVar9))
{
iVar6 = iVar2;
if (!func_494(iParam0, &bVar14, iVar9, iVar10, iVar12))
{
if (bVar14)
{
if (iVar0 == joaat("mp_m_freemode_01"))
{
iVar5 = 15;
iVar6 = 0;
}
else
{
iVar5 = 14;
iVar6 = 0;
}
}
else if (unk_0x8F474E419F56E48D(iParam0) == joaat("mp_m_freemode_01"))
{
unk_0xDD7BFAE08DAD69B6(1241116144, &Var15);
iVar5 = Var15.f_3;
}
else
{
unk_0xDD7BFAE08DAD69B6(-972757995, &Var15);
iVar5 = Var15.f_3;
}
}
else if (unk_0x8F474E419F56E48D(iParam0) == joaat("mp_m_freemode_01"))
{
unk_0xDD7BFAE08DAD69B6(-367850957, &Var15);
iVar5 = Var15.f_3;
}
else
{
unk_0xDD7BFAE08DAD69B6(555191698, &Var15);
iVar5 = Var15.f_3;
}
if (iVar5 != unk_0x774CB20D17C3FF03(iParam0, 8) || iVar6 != unk_0x7710E77D1959B321(iParam0, 8))
{
unk_0x72A0FF8C49CFFC0D(iParam0, 8, iVar5, iVar6, unk_0xA4B664E8E0A26C23(iParam0, 8));
}
}
}
int func_492(int iParam0, int iParam1)
{
if (iParam1 == -1)
{
iParam1 = unk_0xBDB0A560F4FBB443(iParam0, 11, unk_0x774CB20D17C3FF03(iParam0, 11), unk_0x7710E77D1959B321(iParam0, 11));
}
if (unk_0x8F474E419F56E48D(iParam0) == joaat("mp_m_freemode_01"))
{
if (unk_0x4BE6499482BEE1D8(iParam1, 572416369, 0))
{
return 1;
}
}
else if (unk_0x8F474E419F56E48D(iParam0) == joaat("mp_f_freemode_01"))
{
if (unk_0x4BE6499482BEE1D8(iParam1, -196114988, 0))
{
return 1;
}
}
return 0;
}
int func_493(int iParam0, int iParam1, int iParam2, int iParam3)
{
int iVar0;
int iVar1;
var uVar2;
int iVar3;
*iParam3 = -1;
iVar0 = unk_0xC32CC87227998BA0(iParam0);
iVar1 = 0;
while (iVar1 < iVar0)
{
unk_0xD87AFE0D33276102(iParam0, iVar1, iParam3, &uVar2, &iVar3);
if ((((iVar3 == 11 && *iParam3 != 0) && *iParam3 != 1849449579) && iParam1 == unk_0x4BE6499482BEE1D8(*iParam3, -1889900289, 0)) && iParam2 == unk_0x4BE6499482BEE1D8(*iParam3, -1325143745, 0))
{
return 1;
}
iVar1++;
}
return 0;
}
int func_494(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)
{
int iVar0;
*iParam1 = 0;
if (iParam2 == -1)
{
iParam2 = unk_0xBDB0A560F4FBB443(iParam0, 11, unk_0x774CB20D17C3FF03(iParam0, 11), unk_0x7710E77D1959B321(iParam0, 11));
}
if (iParam3 == -1)
{
iParam3 = unk_0xBDB0A560F4FBB443(iParam0, 1, unk_0x774CB20D17C3FF03(iParam0, 1), unk_0x7710E77D1959B321(iParam0, 1));
}
if (iParam4 == -1)
{
iParam4 = unk_0xEF84BAF28F219386(iParam0, 0, unk_0xD1241BB51B6FE6DA(iParam0, 0), unk_0x2FB5EBD67ABDBF18(iParam0, 0));
}
iVar0 = unk_0x8F474E419F56E48D(iParam0);
if (unk_0x4BE6499482BEE1D8(iParam2, -317649054, 0))
{
if (unk_0x4BE6499482BEE1D8(iParam2, 32905942, 0))
{
if (!unk_0x4BE6499482BEE1D8(iParam4, 605826125, 1) && unk_0xD1241BB51B6FE6DA(iParam0, 0) != -1)
{
return 0;
}
if ((!unk_0x4BE6499482BEE1D8(iParam3, 72391838, 0) && !unk_0x4BE6499482BEE1D8(iParam3, -1409448021, 0)) && unk_0x774CB20D17C3FF03(iParam0, 1) != 0)
{
if (unk_0x4BE6499482BEE1D8(iParam4, 605826125, 1))
{
if (unk_0x4BE6499482BEE1D8(iParam3, 629327198, 0) || unk_0x4BE6499482BEE1D8(iParam3, -692832227, 0))
{
}
else
{
return 0;
}
}
else
{
return 0;
}
}
if (unk_0x4BE6499482BEE1D8(iParam3, -1188154325, 0))
{
return 0;
}
}
else
{
if (unk_0xD1241BB51B6FE6DA(iParam0, 0) != -1)
{
return 0;
}
if ((!unk_0x4BE6499482BEE1D8(iParam3, 72391838, 0) && !unk_0x4BE6499482BEE1D8(iParam3, -1409448021, 0)) && unk_0x774CB20D17C3FF03(iParam0, 1) != 0)
{
return 0;
}
}
return 1;
}
if (iVar0 == joaat("mp_m_freemode_01"))
{
if (!unk_0x4BE6499482BEE1D8(iParam2, 572416369, 0))
{
*iParam1 = 1;
return 0;
}
switch (iParam3)
{
case -486726551:
case 219052171:
case -1032068249:
case -728660078:
case -850691818:
case -544072285:
case -1811183977:
case -1111303675:
case 116190296:
case -1282673470:
case -936108522:
case -671236695:
case 1520550639:
case 1816684092:
case 2102823000:
case -1866059977:
case 1250403007:
case 476038764:
case 1863871456:
case 351755390:
case 1058844872:
case 1549134650:
case 1317097361:
case -829567064:
case -130604290:
case -380009149:
case 596212130:
case 2140942786:
case 1901696317:
case -1797925843:
case 790890703:
case 1633873228:
case 1272234544:
case -672409000:
case -1976713507:
case -1902280196:
case -115943475:
case 1684425644:
case 1983115079:
*iParam1 = 1;
return 0;
break;
}
}
else
{
if (!unk_0x4BE6499482BEE1D8(iParam2, -196114988, 0))
{
*iParam1 = 1;
return 0;
}
if (unk_0x4BE6499482BEE1D8(iParam3, -1218048590, 0))
{
*iParam1 = 1;
return 0;
}
switch (iParam3)
{
case -1741098918:
case -1360388756:
case -1130579759:
case -929181485:
case -564396977:
case -314533352:
case 48874858:
case 335112073:
case 643009597:
case 931540642:
case 1886036076:
case -1417439587:
case -1780323493:
case 955888011:
case 691999254:
case 1549695060:
case 1319689449:
case -258334499:
case -498367424:
case 346089706:
case 1038236244:
case 1731071211:
case 1365303633:
case 209639294:
case -422671330:
case 805478037:
case -1615510302:
case 1527692182:
case -2083484391:
case -1372200477:
case 761684042:
case 534496565:
case 303671729:
case 39193130:
case -162598372:
case -393062749:
case 2063387500:
case 1633785910:
case -874910415:
case -1240415841:
case 4970004:
case -1695478944:
case -450420789:
case 257455149:
case 1098963073:
case -204554982:
case 1027252245:
case 1482249810:
case 1657236270:
case 633729300:
case 461560974:
case 39856713:
case -130673163:
case 1595499458:
case 1424510816:
case -1686217589:
case 415037286:
case 1095714954:
case -1384675744:
case -603364477:
case 423419373:
case -945505606:
case -188672778:
case 578089053:
case 1418122368:
case 39432231:
case 998548092:
case -539458143:
case 1285512993:
case 1384673675:
case 207316274:
case 924498608:
case 1626705513:
case -1951407139:
case 1109577920:
case 1943254053:
case -706250677:
case -933962458:
case 2065187502:
case 2143125494:
case -728857530:
case 113895612:
case -106672527:
case -1674341487:
case -1426640612:
case -1616110970:
case -825558845:
case -1062773636:
case 1680712586:
case 731446975:
case -1441694810:
case 1076144086:
case 1291534723:
case 1653763249:
case -402884741:
case 1982600156:
case -1955185040:
case -1722820061:
case 519431533:
case 1338441322:
case -97470603:
case -1293080337:
case -1531999116:
case 762322431:
case 1318477899:
case 199940853:
case 1034403438:
case 1715572641:
case -2013146335:
case 1085654154:
case 962496867:
case 1611716295:
case 637461160:
case -1137111266:
case 316882033:
case 590699797:
case -385914710:
case -1897876374:
case -861786128:
case -633615581:
case -1298728310:
case 2019526172:
case -156630377:
case 99852586:
case 1543589216:
case 1783097837:
case -1876706754:
case -1647782520:
case -1394117691:
case 977702533:
case -670092377:
case -908093624:
case 1219695857:
case 1919117393:
case -534990310:
case 445654672:
case 329262298:
case 22970455:
case -476401343:
case -706275878:
case -1114385357:
case -840010097:
case -2048003518:
case 286623891:
case 1792195596:
case 1992938490:
case -1364343871:
case 721974080:
case -45508669:
case 1998385862:
case 1222776401:
*iParam1 = 1;
return 0;
break;
}
}
if (unk_0x4BE6499482BEE1D8(iParam3, -1409448021, 0) && !func_127(iVar0, 14, func_503(iParam0, 14, 0), -1))
{
return 1;
}
else
{
return 0;
}
return 1;
}
int func_495(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
int iVar9;
int iVar10;
int iVar11;
int iVar12;
int iVar13;
int iVar14;
int iVar15;
int iVar16;
bool bVar17;
int iVar18;
int iVar19;
int iVar20;
int iVar21;
int iVar22;
int iVar23;
int iVar24;
int iVar25;
bool bVar26;
int iVar27;
bool bVar28;
int iVar29;
int iVar30;
int iVar31;
int iVar32;
int iVar33;
bool bVar34;
iVar0 = -99;
if (iParam4 == 2)
{
func_496(iParam0, iParam1, iParam2, iParam3, &iVar0);
}
else if (iParam1 == joaat("mp_m_freemode_01"))
{
if (iParam4 == 3)
{
if (iParam2 == 11)
{
if (iParam3 <= 15)
{
iVar0 = 0;
}
else if (iParam3 <= 31)
{
iVar0 = 0;
}
else if (iParam3 <= 47)
{
iVar0 = 2;
}
else if (iParam3 <= 63)
{
iVar0 = 1;
}
else if (iParam3 <= 79)
{
iVar0 = 1;
}
else if (iParam3 <= 95)
{
iVar0 = 5;
}
else if (iParam3 <= 107)
{
iVar0 = 12;
}
else if (iParam3 <= 123)
{
iVar0 = 1;
}
else if (iParam3 <= 139)
{
iVar0 = 8;
}
else if (iParam3 <= 155)
{
iVar0 = 0;
}
else if (iParam3 <= 171)
{
iVar0 = 1;
}
else if (iParam3 <= 187)
{
iVar2 = func_139(iParam0, 8);
iVar15 = func_128(iParam1, iVar2, 8, 3);
iVar16 = func_482(iVar15);
if (((((iVar2 >= 96 && iVar2 <= 111) || (iVar2 >= 112 && iVar2 <= 127)) || (iVar2 >= 241 && iVar16 == 6)) || (iVar2 >= 241 && iVar16 == 7)) || (iVar2 >= 241 && unk_0x4BE6499482BEE1D8(iVar15, 1965569012, 0)))
{
iVar0 = -99;
}
else
{
iVar0 = 11;
}
}
else if (iParam3 <= 203)
{
iVar0 = 12;
}
else if (iParam3 <= 219)
{
iVar0 = 11;
}
else if (iParam3 <= 235)
{
iVar0 = 4;
}
else if (iParam3 == 236)
{
iVar0 = 15;
}
else if (iParam3 >= 237)
{
iVar14 = func_128(iParam1, iParam3, 11, 3);
if (iVar14 != -1)
{
bVar17 = true;
if (unk_0x4BE6499482BEE1D8(iVar14, 19149565, 0))
{
iVar2 = func_139(iParam0, 8);
iVar18 = func_128(iParam1, iVar2, 8, 3);
iVar19 = func_482(iVar18);
if (((((iVar2 >= 96 && iVar2 <= 111) || (iVar2 >= 112 && iVar2 <= 127)) || (iVar2 >= 241 && iVar19 == 6)) || (iVar2 >= 241 && iVar19 == 7)) || (iVar2 >= 241 && unk_0x4BE6499482BEE1D8(iVar18, 1965569012, 0)))
{
bVar17 = false;
}
}
if (bVar17)
{
iVar3 = unk_0x2F0D0A9B05362CCC(iVar14);
iVar4 = 0;
while (iVar4 < iVar3)
{
unk_0xD24B9193F8601A82(iVar14, iVar4, &iVar5, &iVar6, &iVar7);
if (iVar7 == 3)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 3, 3);
}
else
{
iVar0 = iVar6;
}
iVar4 = iVar3 + 1;
}
iVar4++;
}
}
}
}
}
else if (iParam2 == 8)
{
if (iParam3 <= 15)
{
iVar0 = 1;
}
else if (iParam3 <= 31)
{
iVar0 = 1;
}
else if (iParam3 <= 47)
{
iVar0 = -99;
}
else if (iParam3 <= 63)
{
iVar0 = 12;
}
else if (iParam3 <= 79)
{
iVar0 = 12;
}
else if (iParam3 <= 95)
{
iVar0 = 6;
}
else if (iParam3 <= 111)
{
iVar0 = 11;
}
else if (iParam3 <= 127)
{
iVar0 = 11;
}
else if (iParam3 <= 143)
{
iVar0 = 1;
}
else if (iParam3 <= 159)
{
iVar0 = 1;
}
else if (iParam3 <= 175)
{
iVar0 = 4;
}
else if (iParam3 <= 191)
{
iVar0 = 12;
}
else if (iParam3 <= 207)
{
iVar0 = 1;
}
else if (iParam3 <= 223)
{
iVar0 = 1;
}
else if (iParam3 <= 239)
{
iVar0 = -99;
}
else if (iParam3 == 240)
{
iVar0 = 14;
}
else if (iParam3 >= 241)
{
iVar14 = func_128(iParam1, iParam3, 8, 3);
if (iVar14 != -1)
{
iVar3 = unk_0x2F0D0A9B05362CCC(iVar14);
iVar4 = 0;
while (iVar4 < iVar3)
{
unk_0xD24B9193F8601A82(iVar14, iVar4, &iVar5, &iVar6, &iVar7);
if (iVar7 == 3)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 3, 3);
}
else
{
iVar0 = iVar6;
iVar4 = iVar3 + 1;
}
}
iVar4++;
}
}
}
}
else if (iParam2 == 10)
{
if (iParam3 >= 7)
{
iVar14 = func_128(iParam1, iParam3, 10, 3);
if (iVar14 != -1)
{
iVar3 = unk_0x2F0D0A9B05362CCC(iVar14);
iVar4 = 0;
while (iVar4 < iVar3)
{
unk_0xD24B9193F8601A82(iVar14, iVar4, &iVar5, &iVar6, &iVar7);
if (iVar7 == 3)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 3, 3);
}
else
{
iVar0 = iVar6;
iVar4 = iVar3 + 1;
}
}
iVar4++;
}
}
}
}
}
else if (iParam4 == 8)
{
if (iParam2 == 11)
{
iVar20 = -1;
if (iParam3 >= 237)
{
iVar20 = func_482(func_128(iParam1, iParam3, 11, 3));
}
if (iParam3 <= 15)
{
iVar0 = 240;
}
else if (iParam3 <= 31)
{
iVar0 = 240;
}
else if (iParam3 <= 47)
{
iVar0 = 240;
}
else if (iParam3 <= 63)
{
iVar0 = -99;
}
else if (iParam3 <= 79)
{
iVar0 = -99;
}
else if (iParam3 <= 95)
{
iVar0 = 240;
}
else if (iParam3 <= 107)
{
iVar0 = -99;
}
else if (iParam3 <= 123)
{
iVar0 = -99;
}
else if (iParam3 <= 139)
{
iVar0 = 240;
}
else if (iParam3 <= 155)
{
iVar0 = 240;
}
else if (iParam3 <= 171)
{
iVar0 = -99;
}
else if (iParam3 <= 187 || iVar20 == 11)
{
iVar2 = func_139(iParam0, 8);
iVar21 = func_128(iParam1, iVar2, 8, 3);
iVar22 = func_482(iVar21);
if (((((iVar2 >= 96 && iVar2 <= 111) || (iVar2 >= 112 && iVar2 <= 127)) || (iVar2 >= 241 && iVar22 == 6)) || (iVar2 >= 241 && iVar22 == 7)) || (iVar2 >= 241 && unk_0x4BE6499482BEE1D8(iVar21, 1965569012, 0)))
{
}
else
{
iVar0 = 112;
}
}
else if (iParam3 <= 203)
{
iVar0 = 240;
}
else if (iParam3 <= 219)
{
iVar0 = 240;
}
else if (iParam3 <= 235)
{
iVar0 = 240;
}
else if (iParam3 <= 236)
{
iVar0 = 240;
}
else if (iParam3 >= 237)
{
iVar14 = func_128(iParam1, iParam3, 11, 3);
if (iVar14 != -1)
{
iVar3 = unk_0x2F0D0A9B05362CCC(iVar14);
iVar4 = 0;
while (iVar4 < iVar3)
{
unk_0xD24B9193F8601A82(iVar14, iVar4, &iVar5, &iVar6, &iVar7);
if (iVar7 == 8)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 8, 3);
}
else
{
iVar0 = iVar6;
iVar4 = iVar3 + 1;
}
}
iVar4++;
}
}
}
else if (iParam2 == 6)
{
if (iParam3 >= 256)
{
iVar14 = func_128(iParam1, iParam3, 6, 3);
if (iVar14 != -1)
{
iVar3 = unk_0x2F0D0A9B05362CCC(iVar14);
iVar4 = 0;
while (iVar4 < iVar3)
{
unk_0xD24B9193F8601A82(iVar14, iVar4, &iVar5, &iVar6, &iVar7);
if (iVar7 == 8)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 8, 3);
}
else
{
iVar0 = iVar6;
iVar4 = iVar3 + 1;
}
}
iVar4++;
}
}
}
}
}
else if (iParam2 == 7)
{
iVar23 = -1;
iVar24 = -1;
if (iParam3 >= 92)
{
iVar24 = func_128(iParam1, iParam3, 7, 3);
iVar23 = func_482(iVar24);
}
if (((((((((iParam3 >= 41 && iParam3 <= 56) || (iParam3 >= 57 && iParam3 <= 72)) || (iParam3 >= 73 && iParam3 <= 88)) || iVar23 == 10) || iVar23 == 11) || iVar23 == 12) || (iParam3 >= 92 && unk_0x4BE6499482BEE1D8(iVar24, -1950939707, 0))) || (iParam3 >= 92 && unk_0x4BE6499482BEE1D8(iVar24, -1371423804, 0))) || (iParam3 >= 92 && unk_0x4BE6499482BEE1D8(iVar24, -920534092, 0)))
{
iVar2 = func_139(iParam0, 8);
if (iVar2 >= 48 && iVar2 <= 63)
{
iVar1 = (iVar2 - 48);
iVar0 = (64 + iVar1);
}
else if (iVar2 >= 112 && iVar2 <= 127)
{
iVar1 = (iVar2 - 112);
iVar0 = (96 + iVar1);
}
else if (iVar2 >= 176 && iVar2 <= 191)
{
iVar1 = (iVar2 - 176);
iVar0 = (160 + iVar1);
}
else if (iVar2 >= 241)
{
iVar14 = func_128(iParam1, iVar2, 8, 3);
iVar25 = func_482(iVar14);
bVar26 = unk_0x4BE6499482BEE1D8(iVar14, 651155766, 0);
if (((iVar25 == 3 || iVar25 == 7) || iVar25 == 11) || unk_0x4BE6499482BEE1D8(iVar14, 1553766533, 0))
{
if (iVar14 != -1)
{
iVar12 = unk_0xC32CC87227998BA0(iVar14);
iVar13 = 0;
while (iVar13 < iVar12)
{
unk_0xD87AFE0D33276102(iVar14, iVar13, &iVar5, &iVar6, &iVar7);
if ((iVar7 == 8 && !bVar26) || (iVar7 == 10 && bVar26))
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 8, 3);
}
else
{
iVar0 = iVar6;
}
iVar13 = iVar12 + 1;
}
iVar13++;
}
}
}
}
}
else if (((iParam3 >= 92 && unk_0x4BE6499482BEE1D8(iVar24, -378906828, 0)) || (iParam3 >= 92 && unk_0x4BE6499482BEE1D8(iVar24, -695703461, 0))) || (iParam3 >= 92 && unk_0x4BE6499482BEE1D8(iVar24, -108328099, 0)))
{
iVar14 = func_128(iParam1, iVar2, 8, 3);
iVar27 = func_482(iVar14);
bVar28 = unk_0x4BE6499482BEE1D8(iVar14, 651155766, 0);
if (((iVar27 == 3 || iVar27 == 7) || iVar27 == 11) || unk_0x4BE6499482BEE1D8(iVar14, 1553766533, 0))
{
if (iVar14 != -1)
{
iVar12 = unk_0xC32CC87227998BA0(iVar14);
iVar13 = 0;
while (iVar13 < iVar12)
{
unk_0xD87AFE0D33276102(iVar14, iVar13, &iVar5, &iVar6, &iVar7);
if ((iVar7 == 8 && !bVar28) || (iVar7 == 10 && bVar28))
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 8, 3);
}
else
{
iVar0 = iVar6;
}
iVar13 = iVar12 + 1;
}
iVar13++;
}
}
}
}
else if (iParam3 >= 92)
{
iVar14 = func_128(iParam1, iParam3, 7, 3);
if (iVar14 != -1)
{
iVar3 = unk_0x2F0D0A9B05362CCC(iVar14);
iVar4 = 0;
while (iVar4 < iVar3)
{
unk_0xD24B9193F8601A82(iVar14, iVar4, &iVar5, &iVar6, &iVar7);
if (iVar7 == 8)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 8, 3);
}
else
{
iVar0 = iVar6;
iVar4 = iVar3 + 1;
}
}
iVar4++;
}
}
}
}
else if (iParam2 == 10)
{
if (iParam3 >= 7)
{
iVar14 = func_128(iParam1, iParam3, 10, 3);
if (iVar14 != -1)
{
iVar3 = unk_0x2F0D0A9B05362CCC(iVar14);
iVar4 = 0;
while (iVar4 < iVar3)
{
unk_0xD24B9193F8601A82(iVar14, iVar4, &iVar5, &iVar6, &iVar7);
if (iVar7 == 8)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 8, 3);
}
else
{
iVar0 = iVar6;
iVar4 = iVar3 + 1;
}
}
iVar4++;
}
}
}
}
else if (iParam2 == 6)
{
if (iParam3 >= 256)
{
iVar14 = func_128(iParam1, iParam3, 6, 3);
if (iVar14 != -1)
{
iVar3 = unk_0x2F0D0A9B05362CCC(iVar14);
iVar4 = 0;
while (iVar4 < iVar3)
{
unk_0xD24B9193F8601A82(iVar14, iVar4, &iVar5, &iVar6, &iVar7);
if (iVar7 == 8)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 8, 3);
}
else
{
iVar0 = iVar6;
iVar4 = iVar3 + 1;
}
}
iVar4++;
}
}
}
}
}
else if (iParam4 == 11)
{
if (iParam2 == 7)
{
iVar29 = -1;
iVar30 = -1;
if (iParam3 >= 92)
{
iVar30 = func_128(iParam1, iParam3, 7, 3);
iVar29 = func_482(iVar30);
}
if (((((((iParam3 >= 41 && iParam3 <= 56) || (iParam3 >= 57 && iParam3 <= 72)) || (iParam3 >= 73 && iParam3 <= 88)) || iVar29 == 10) || iVar29 == 11) || iVar29 == 12) || unk_0x4BE6499482BEE1D8(iVar30, -920534092, 0))
{
iVar31 = func_139(iParam0, 11);
if (iVar31 >= 237)
{
iVar14 = func_128(iParam1, iVar31, 11, 3);
if (unk_0x4BE6499482BEE1D8(iVar14, 1847239679, 0) && unk_0x4BE6499482BEE1D8(iVar14, 1553766533, 0))
{
if (iVar14 != -1)
{
iVar12 = unk_0xC32CC87227998BA0(iVar14);
iVar13 = 0;
while (iVar13 < iVar12)
{
unk_0xD87AFE0D33276102(iVar14, iVar13, &iVar5, &iVar6, &iVar7);
if (iVar7 == 11)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 11, 3);
}
else
{
iVar0 = iVar6;
}
iVar13 = iVar12 + 1;
}
iVar13++;
}
}
}
}
}
}
else if (iParam2 == 10)
{
if (iParam3 >= 7)
{
iVar14 = func_128(iParam1, iParam3, 10, 3);
if (iVar14 != -1)
{
iVar3 = unk_0x2F0D0A9B05362CCC(iVar14);
iVar4 = 0;
while (iVar4 < iVar3)
{
unk_0xD24B9193F8601A82(iVar14, iVar4, &iVar5, &iVar6, &iVar7);
if (iVar7 == 11)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 11, 3);
}
else
{
iVar0 = iVar6;
iVar4 = iVar3 + 1;
}
}
iVar4++;
}
}
}
}
}
else if (iParam4 == 7)
{
if (iParam2 == 11)
{
iVar32 = func_139(iParam0, 11);
if (iVar32 >= 237)
{
iVar14 = func_128(iParam1, iVar32, 11, 3);
if (unk_0x4BE6499482BEE1D8(iVar14, 1847239679, 0) && unk_0x4BE6499482BEE1D8(iVar14, 1553766533, 0))
{
iVar14 = func_128(iParam1, iParam3, 11, 3);
if (iVar14 != -1)
{
iVar3 = unk_0x2F0D0A9B05362CCC(iVar14);
iVar4 = 0;
while (iVar4 < iVar3)
{
unk_0xD24B9193F8601A82(iVar14, iVar4, &iVar5, &iVar6, &iVar7);
if (iVar7 == 7)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 7, 3);
}
else
{
iVar0 = iVar6;
iVar4 = iVar3 + 1;
}
}
iVar4++;
}
}
}
}
}
else if (iParam2 == 14)
{
if (iParam3 >= 327)
{
iVar14 = func_128(iParam1, iParam3, 14, 3);
if (iVar14 != -1)
{
iVar3 = unk_0x2F0D0A9B05362CCC(iVar14);
iVar4 = 0;
while (iVar4 < iVar3)
{
unk_0xD24B9193F8601A82(iVar14, iVar4, &iVar5, &iVar6, &iVar7);
if (iVar7 == 7)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 7, 3);
}
else
{
iVar0 = iVar6;
iVar4 = iVar3 + 1;
}
}
iVar4++;
}
}
}
}
}
else if (iParam4 == 4)
{
if (iParam2 == 11)
{
if (iParam3 >= 237)
{
iVar14 = func_128(iParam1, iParam3, 11, 3);
if (iVar14 != -1)
{
iVar3 = unk_0x2F0D0A9B05362CCC(iVar14);
iVar4 = 0;
while (iVar4 < iVar3)
{
unk_0xD24B9193F8601A82(iVar14, iVar4, &iVar5, &iVar6, &iVar7);
if (iVar7 == 4)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 4, 3);
}
else
{
iVar0 = iVar6;
iVar4 = iVar3 + 1;
}
}
iVar4++;
}
}
}
}
}
else if (iParam4 == 10)
{
if (iParam2 == 11)
{
if (iParam3 >= 237)
{
iVar14 = func_128(iParam1, iParam3, 11, 3);
if (iVar14 != -1)
{
iVar3 = unk_0x2F0D0A9B05362CCC(iVar14);
iVar4 = 0;
while (iVar4 < iVar3)
{
unk_0xD24B9193F8601A82(iVar14, iVar4, &iVar5, &iVar6, &iVar7);
if (iVar7 == 10)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 10, 3);
}
}
iVar4++;
}
}
}
}
}
else if (iParam4 == 6)
{
if (iParam2 == 4)
{
if (iParam3 >= 256)
{
iVar14 = func_128(iParam1, iParam3, 4, 3);
if (iVar14 != -1)
{
iVar3 = unk_0x2F0D0A9B05362CCC(iVar14);
iVar4 = 0;
while (iVar4 < iVar3)
{
unk_0xD24B9193F8601A82(iVar14, iVar4, &iVar5, &iVar6, &iVar7);
if (iVar7 == 6)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 6, 3);
}
else
{
iVar0 = iVar6;
iVar4 = iVar3 + 1;
}
}
iVar4++;
}
}
}
}
else if (iParam2 == 11)
{
if (iParam3 >= 237)
{
iVar14 = func_128(iParam1, iParam3, 11, 3);
if (iVar14 != -1)
{
iVar3 = unk_0x2F0D0A9B05362CCC(iVar14);
iVar4 = 0;
while (iVar4 < iVar3)
{
unk_0xD24B9193F8601A82(iVar14, iVar4, &iVar5, &iVar6, &iVar7);
if (iVar7 == 6)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 6, 3);
}
else
{
iVar0 = iVar6;
iVar4 = iVar3 + 1;
}
}
iVar4++;
}
}
}
}
}
else if (iParam4 == 1)
{
if (iParam2 == 14)
{
if (iParam3 >= 327)
{
iVar14 = func_128(iParam1, iParam3, 14, 3);
if (iVar14 != -1)
{
iVar3 = unk_0x2F0D0A9B05362CCC(iVar14);
iVar4 = 0;
while (iVar4 < iVar3)
{
unk_0xD24B9193F8601A82(iVar14, iVar4, &iVar5, &iVar6, &iVar7);
if (iVar7 == 1)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 1, 3);
}
else
{
iVar0 = iVar6;
iVar4 = iVar3 + 1;
}
}
iVar4++;
}
}
}
}
else if (iParam2 == 6)
{
if (iParam3 >= 256)
{
iVar14 = func_128(iParam1, iParam3, 6, 3);
if (iVar14 != -1)
{
iVar3 = unk_0x2F0D0A9B05362CCC(iVar14);
iVar4 = 0;
while (iVar4 < iVar3)
{
unk_0xD24B9193F8601A82(iVar14, iVar4, &iVar5, &iVar6, &iVar7);
if (iVar7 == 1)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 1, 3);
}
else
{
iVar0 = iVar6;
iVar4 = iVar3 + 1;
}
}
iVar4++;
}
}
}
}
}
else if (iParam4 == 14)
{
if (iParam2 == 1)
{
if (iParam3 >= 26)
{
iVar14 = func_128(iParam1, iParam3, 1, 3);
if (iVar14 != -1)
{
iVar8 = unk_0xE69CDEA684BC1AB1(iVar14);
iVar9 = 0;
while (iVar9 < iVar8)
{
unk_0xC63D60505981C1D0(iVar14, iVar9, &iVar5, &iVar10, &iVar11);
if (iVar11 == iParam5)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 14, 3);
iVar9 = iVar8 + 1;
}
else
{
iVar0 = iVar10;
iVar9 = iVar8 + 1;
}
}
iVar9++;
}
}
}
}
else if (iParam2 == 11)
{
if (iParam3 >= 237)
{
iVar14 = func_128(iParam1, iParam3, 11, 3);
if (iVar14 != -1)
{
iVar8 = unk_0xE69CDEA684BC1AB1(iVar14);
iVar9 = 0;
while (iVar9 < iVar8)
{
unk_0xC63D60505981C1D0(iVar14, iVar9, &iVar5, &iVar10, &iVar11);
if (iVar11 == iParam5)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 14, 3);
iVar9 = iVar8 + 1;
}
else
{
iVar0 = iVar10;
iVar9 = iVar8 + 1;
}
}
iVar9++;
}
}
}
}
else if (iParam2 == 6)
{
if (iParam3 >= 256)
{
iVar14 = func_128(iParam1, iParam3, 6, 3);
if (iVar14 != -1)
{
iVar8 = unk_0xE69CDEA684BC1AB1(iVar14);
iVar9 = 0;
while (iVar9 < iVar8)
{
unk_0xC63D60505981C1D0(iVar14, iVar9, &iVar5, &iVar10, &iVar11);
if (iVar11 == iParam5)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 14, 3);
iVar9 = iVar8 + 1;
}
else
{
iVar0 = iVar10;
iVar9 = iVar8 + 1;
}
}
iVar9++;
}
}
}
}
}
}
else if (iParam1 == joaat("mp_f_freemode_01"))
{
if (iParam4 == 3)
{
if (iParam2 == 11)
{
if (iParam3 <= 15)
{
iVar0 = 0;
}
else if (iParam3 <= 31)
{
iVar0 = 5;
}
else if (iParam3 <= 47)
{
iVar0 = 2;
}
else if (iParam3 <= 63)
{
iVar0 = 3;
}
else if (iParam3 <= 79)
{
iVar0 = 4;
}
else if (iParam3 <= 95)
{
iVar0 = 4;
}
else if (iParam3 <= 111)
{
iVar0 = 5;
}
else if (iParam3 <= 127)
{
iVar0 = 6;
}
else if (iParam3 <= 143)
{
iVar0 = 5;
}
else if (iParam3 <= 159)
{
iVar0 = 9;
}
else if (iParam3 <= 175)
{
iVar0 = 7;
}
else if (iParam3 <= 191)
{
iVar0 = 11;
}
else if (iParam3 <= 207)
{
iVar0 = 12;
}
else if (iParam3 <= 223)
{
iVar0 = 4;
}
else if (iParam3 <= 239)
{
iVar0 = 14;
}
else if (iParam3 <= 255)
{
iVar0 = 15;
}
else if (iParam3 >= 256)
{
iVar14 = func_128(iParam1, iParam3, 11, 4);
if (iVar14 != -1)
{
iVar3 = unk_0x2F0D0A9B05362CCC(iVar14);
iVar4 = 0;
while (iVar4 < iVar3)
{
unk_0xD24B9193F8601A82(iVar14, iVar4, &iVar5, &iVar6, &iVar7);
if (iVar7 == 3)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 3, 4);
}
else
{
iVar0 = iVar6;
iVar4 = iVar3 + 1;
}
}
iVar4++;
}
}
}
}
else if (iParam2 == 10)
{
if (iParam3 >= 6)
{
iVar14 = func_128(iParam1, iParam3, 10, 4);
if (iVar14 != -1)
{
iVar3 = unk_0x2F0D0A9B05362CCC(iVar14);
iVar4 = 0;
while (iVar4 < iVar3)
{
unk_0xD24B9193F8601A82(iVar14, iVar4, &iVar5, &iVar6, &iVar7);
if (iVar7 == 3)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 3, 4);
}
else
{
iVar0 = iVar6;
iVar4 = iVar3 + 1;
}
}
iVar4++;
}
}
}
}
}
else if (iParam4 == 8)
{
if (iParam2 == 11)
{
if (iParam3 <= 15)
{
iVar0 = 33;
}
else if (iParam3 <= 31)
{
iVar0 = -99;
}
else if (iParam3 <= 47)
{
iVar0 = 33;
}
else if (iParam3 <= 63)
{
iVar0 = 33;
}
else if (iParam3 <= 79)
{
iVar0 = 33;
}
else if (iParam3 <= 95)
{
iVar0 = 33;
}
else if (iParam3 <= 111)
{
iVar0 = -99;
}
else if (iParam3 <= 127)
{
iVar0 = -99;
}
else if (iParam3 <= 143)
{
iVar0 = -99;
}
else if (iParam3 <= 159)
{
iVar0 = 33;
}
else if (iParam3 <= 175)
{
iVar0 = -99;
}
else if (iParam3 <= 191)
{
iVar0 = 33;
}
else if (iParam3 <= 207)
{
iVar0 = 33;
}
else if (iParam3 <= 223)
{
iVar1 = (iParam3 - 208);
iVar0 = (103 + iVar1);
}
else if (iParam3 <= 239)
{
iVar0 = 33;
}
else if (iParam3 <= 255)
{
iVar0 = 33;
}
else if (iParam3 >= 256)
{
iVar14 = func_128(iParam1, iParam3, 11, 4);
if (iVar14 != -1)
{
iVar3 = unk_0x2F0D0A9B05362CCC(iVar14);
iVar4 = 0;
while (iVar4 < iVar3)
{
unk_0xD24B9193F8601A82(iVar14, iVar4, &iVar5, &iVar6, &iVar7);
if (iVar7 == 8)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 8, 4);
}
else
{
iVar0 = iVar6;
iVar4 = iVar3 + 1;
}
}
iVar4++;
}
}
}
}
else if (iParam2 == 7)
{
iVar33 = -1;
if (iParam3 >= 55)
{
iVar33 = func_128(iParam1, iParam3, 7, 4);
}
if ((iVar33 != -1 && unk_0x4BE6499482BEE1D8(iVar33, -920534092, 0)) || (iVar33 != -1 && unk_0x4BE6499482BEE1D8(iVar33, 1537081084, 0)))
{
iVar14 = unk_0xBDB0A560F4FBB443(iParam0, 8, unk_0x774CB20D17C3FF03(iParam0, 8), unk_0x7710E77D1959B321(iParam0, 8));
bVar34 = false;
if (unk_0x4BE6499482BEE1D8(iVar33, -378906828, 0) || unk_0x4BE6499482BEE1D8(iVar33, -108328099, 0))
{
if (unk_0x4BE6499482BEE1D8(iVar14, -1914383230, 0))
{
bVar34 = true;
}
}
else if (unk_0x4BE6499482BEE1D8(iVar14, 1553766533, 0))
{
bVar34 = true;
}
if (bVar34)
{
iVar12 = unk_0xC32CC87227998BA0(iVar14);
iVar13 = 0;
while (iVar13 < iVar12)
{
unk_0xD87AFE0D33276102(iVar14, iVar13, &iVar5, &iVar6, &iVar7);
if (iVar7 == 8)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 8, 4);
}
else
{
iVar0 = iVar6;
}
iVar13 = iVar12 + 1;
}
iVar13++;
}
}
}
}
else if (iParam2 == 10)
{
if (iParam3 >= 6)
{
iVar14 = func_128(iParam1, iParam3, 10, 4);
if (iVar14 != -1)
{
iVar3 = unk_0x2F0D0A9B05362CCC(iVar14);
iVar4 = 0;
while (iVar4 < iVar3)
{
unk_0xD24B9193F8601A82(iVar14, iVar4, &iVar5, &iVar6, &iVar7);
if (iVar7 == 8)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 8, 4);
}
else
{
iVar0 = iVar6;
iVar4 = iVar3 + 1;
}
}
iVar4++;
}
}
}
}
else if (iParam2 == 6)
{
if (iParam3 >= 256)
{
iVar14 = func_128(iParam1, iParam3, 6, 4);
if (iVar14 != -1)
{
iVar3 = unk_0x2F0D0A9B05362CCC(iVar14);
iVar4 = 0;
while (iVar4 < iVar3)
{
unk_0xD24B9193F8601A82(iVar14, iVar4, &iVar5, &iVar6, &iVar7);
if (iVar7 == 8)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 8, 4);
}
else
{
iVar0 = iVar6;
iVar4 = iVar3 + 1;
}
}
iVar4++;
}
}
}
}
}
else if (iParam4 == 6)
{
if (iParam2 == 4)
{
if (iParam3 >= 256)
{
iVar14 = func_128(iParam1, iParam3, 4, 4);
if (iVar14 != -1)
{
iVar3 = unk_0x2F0D0A9B05362CCC(iVar14);
iVar4 = 0;
while (iVar4 < iVar3)
{
unk_0xD24B9193F8601A82(iVar14, iVar4, &iVar5, &iVar6, &iVar7);
if (iVar7 == 6)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 6, 4);
}
else
{
iVar0 = iVar6;
iVar4 = iVar3 + 1;
}
}
iVar4++;
}
}
}
}
else if (iParam2 == 11)
{
if (iParam3 >= 256)
{
iVar14 = func_128(iParam1, iParam3, 11, 4);
if (iVar14 != -1)
{
iVar3 = unk_0x2F0D0A9B05362CCC(iVar14);
iVar4 = 0;
while (iVar4 < iVar3)
{
unk_0xD24B9193F8601A82(iVar14, iVar4, &iVar5, &iVar6, &iVar7);
if (iVar7 == 6)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 6, 4);
}
else
{
iVar0 = iVar6;
iVar4 = iVar3 + 1;
}
}
iVar4++;
}
}
}
}
}
else if (iParam4 == 4)
{
if (iParam2 == 11)
{
if (iParam3 >= 256)
{
iVar14 = func_128(iParam1, iParam3, 11, 4);
if (iVar14 != -1)
{
iVar3 = unk_0x2F0D0A9B05362CCC(iVar14);
iVar4 = 0;
while (iVar4 < iVar3)
{
unk_0xD24B9193F8601A82(iVar14, iVar4, &iVar5, &iVar6, &iVar7);
if (iVar7 == 4)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 4, 4);
}
else
{
iVar0 = iVar6;
iVar4 = iVar3 + 1;
}
}
iVar4++;
}
}
}
}
}
else if (iParam4 == 10)
{
if (iParam2 == 11)
{
if (iParam3 >= 256)
{
iVar14 = func_128(iParam1, iParam3, 11, 4);
if (iVar14 != -1)
{
iVar3 = unk_0x2F0D0A9B05362CCC(iVar14);
iVar4 = 0;
while (iVar4 < iVar3)
{
unk_0xD24B9193F8601A82(iVar14, iVar4, &iVar5, &iVar6, &iVar7);
if (iVar7 == 10)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 10, 4);
}
}
iVar4++;
}
}
}
}
}
else if (iParam4 == 11)
{
if (iParam2 == 10)
{
if (iParam3 >= 6)
{
iVar14 = func_128(iParam1, iParam3, 10, 4);
if (iVar14 != -1)
{
iVar3 = unk_0x2F0D0A9B05362CCC(iVar14);
iVar4 = 0;
while (iVar4 < iVar3)
{
unk_0xD24B9193F8601A82(iVar14, iVar4, &iVar5, &iVar6, &iVar7);
if (iVar7 == 11)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 11, 4);
}
else
{
iVar0 = iVar6;
iVar4 = iVar3 + 1;
}
}
iVar4++;
}
}
}
}
}
else if (iParam4 == 7)
{
if (iParam2 == 14)
{
if (iParam3 >= 327)
{
iVar14 = func_128(iParam1, iParam3, 14, 4);
if (iVar14 != -1)
{
iVar3 = unk_0x2F0D0A9B05362CCC(iVar14);
iVar4 = 0;
while (iVar4 < iVar3)
{
unk_0xD24B9193F8601A82(iVar14, iVar4, &iVar5, &iVar6, &iVar7);
if (iVar7 == 7)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 7, 4);
}
else
{
iVar0 = iVar6;
iVar4 = iVar3 + 1;
}
}
iVar4++;
}
}
}
}
}
else if (iParam4 == 1)
{
if (iParam2 == 14)
{
if (iParam3 >= 327)
{
iVar14 = func_128(iParam1, iParam3, 14, 4);
if (iVar14 != -1)
{
iVar3 = unk_0x2F0D0A9B05362CCC(iVar14);
iVar4 = 0;
while (iVar4 < iVar3)
{
unk_0xD24B9193F8601A82(iVar14, iVar4, &iVar5, &iVar6, &iVar7);
if (iVar7 == 1)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 1, 4);
}
else
{
iVar0 = iVar6;
iVar4 = iVar3 + 1;
}
}
iVar4++;
}
}
}
}
else if (iParam2 == 6)
{
if (iParam3 >= 256)
{
iVar14 = func_128(iParam1, iParam3, 6, 4);
if (iVar14 != -1)
{
iVar3 = unk_0x2F0D0A9B05362CCC(iVar14);
iVar4 = 0;
while (iVar4 < iVar3)
{
unk_0xD24B9193F8601A82(iVar14, iVar4, &iVar5, &iVar6, &iVar7);
if (iVar7 == 1)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 1, 4);
}
else
{
iVar0 = iVar6;
iVar4 = iVar3 + 1;
}
}
iVar4++;
}
}
}
}
}
else if (iParam4 == 14)
{
if (iParam2 == 1)
{
if (iParam3 >= 26)
{
iVar14 = func_128(iParam1, iParam3, 1, 4);
if (iVar14 != -1)
{
iVar8 = unk_0xE69CDEA684BC1AB1(iVar14);
iVar9 = 0;
while (iVar9 < iVar8)
{
unk_0xC63D60505981C1D0(iVar14, iVar9, &iVar5, &iVar10, &iVar11);
if (iVar11 == iParam5)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 14, 4);
iVar9 = iVar8 + 1;
}
else
{
iVar0 = iVar10;
iVar9 = iVar8 + 1;
}
}
iVar9++;
}
}
}
}
else if (iParam2 == 11)
{
if (iParam3 >= 256)
{
iVar14 = func_128(iParam1, iParam3, 11, 4);
if (iVar14 != -1)
{
iVar8 = unk_0xE69CDEA684BC1AB1(iVar14);
iVar9 = 0;
while (iVar9 < iVar8)
{
unk_0xC63D60505981C1D0(iVar14, iVar9, &iVar5, &iVar10, &iVar11);
if (iVar11 == iParam5)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 14, 4);
iVar9 = iVar8 + 1;
}
else
{
iVar0 = iVar10;
iVar9 = iVar8 + 1;
}
}
iVar9++;
}
}
}
}
else if (iParam2 == 6)
{
if (iParam3 >= 256)
{
iVar14 = func_128(iParam1, iParam3, 6, 4);
if (iVar14 != -1)
{
iVar8 = unk_0xE69CDEA684BC1AB1(iVar14);
iVar9 = 0;
while (iVar9 < iVar8)
{
unk_0xC63D60505981C1D0(iVar14, iVar9, &iVar5, &iVar10, &iVar11);
if (iVar11 == iParam5)
{
if (iVar5 != 0 && iVar5 != 1849449579)
{
iVar0 = func_133(iParam1, iVar5, 14, 4);
iVar9 = iVar8 + 1;
}
else
{
iVar0 = iVar10;
iVar9 = iVar8 + 1;
}
}
iVar9++;
}
}
}
}
}
}
return iVar0;
}
int func_496(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
int iVar4;
var uVar5;
int iVar6;
int iVar7;
int iVar8;
int iVar9;
int iVar10;
int iVar11;
var uVar12;
int iVar13;
*iParam4 = -99;
switch (iParam1)
{
case joaat("mp_m_freemode_01"):
switch (iParam2)
{
case 1:
if (((((iParam3 >= 1 && iParam3 <= 4) || (iParam3 >= 5 && iParam3 <= 8)) || iParam3 == 9) || (iParam3 >= 14 && iParam3 <= 17)) || (iParam3 >= 22 && iParam3 <= 25))
{
*iParam4 = 0;
}
if (iParam3 >= func_129(iParam1, 1))
{
func_506(iParam1, 1, iParam3, -1);
if (Global_2621445 == -1751726434)
{
*iParam4 = 0;
}
}
iVar0 = func_139(iParam0, 1);
if (iVar0 >= 26)
{
iVar1 = func_128(iParam1, iVar0, 1, 3);
if (unk_0x4BE6499482BEE1D8(iVar1, -1188154325, 0))
{
iVar1 = func_128(iParam1, iParam3, 1, 3);
if (iVar1 != -1)
{
iVar2 = unk_0x2F0D0A9B05362CCC(iVar1);
iVar3 = 0;
while (iVar3 < iVar2)
{
unk_0xD24B9193F8601A82(iVar1, iVar3, &iVar4, &uVar5, &iVar6);
if (iVar6 == 2)
{
if (iVar4 != 0 && iVar4 != 1849449579)
{
*iParam4 = func_133(iParam1, iVar4, 2, 3);
}
else
{
*iParam4 = uVar5;
iVar3 = iVar2 + 1;
}
}
iVar3++;
}
}
}
}
break;
}
break;
case joaat("mp_f_freemode_01"):
switch (iParam2)
{
case 1:
if (((((iParam3 >= 1 && iParam3 <= 4) || (iParam3 >= 5 && iParam3 <= 8)) || iParam3 == 9) || (iParam3 >= 14 && iParam3 <= 17)) || (iParam3 >= 22 && iParam3 <= 25))
{
*iParam4 = 0;
}
if (iParam3 >= func_129(iParam1, 1))
{
func_506(iParam1, 1, iParam3, -1);
if (Global_2621445 == -1751726434)
{
*iParam4 = 0;
}
}
iVar7 = func_139(iParam0, 1);
if (iVar7 >= 26)
{
iVar8 = func_128(iParam1, iVar7, 1, 4);
if (unk_0x4BE6499482BEE1D8(iVar8, -1188154325, 0))
{
iVar8 = func_128(iParam1, iParam3, 1, 4);
if (iVar8 != -1)
{
iVar9 = unk_0x2F0D0A9B05362CCC(iVar8);
iVar10 = 0;
while (iVar10 < iVar9)
{
unk_0xD24B9193F8601A82(iVar8, iVar10, &iVar11, &uVar12, &iVar13);
if (iVar13 == 2)
{
if (iVar11 != 0 && iVar11 != 1849449579)
{
*iParam4 = func_133(iParam1, iVar11, 2, 4);
}
else
{
*iParam4 = uVar12;
iVar10 = iVar9 + 1;
}
}
iVar10++;
}
}
}
}
break;
}
break;
}
if (*iParam4 != -99)
{
func_16(753, iParam3, Global_71014, 1, 0);
func_16(754, iParam2, Global_71014, 1, 0);
return 1;
}
return 0;
}
void func_497(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4)
{
int iVar0;
int iVar1;
int iVar2;
if (!unk_0x4915F4759304D5CF(iParam0))
{
if (func_543(iParam0))
{
return;
}
if (iParam1 == 11 || iParam1 == 8)
{
iVar0 = unk_0x8F474E419F56E48D(iParam0);
if (iParam1 == 11)
{
if (func_486(iVar0, iParam2, -1))
{
iParam1 = 8;
iParam2 = func_139(iParam0, iParam1);
}
}
else if (iParam1 == 8)
{
iVar1 = func_139(iParam0, 11);
if (!func_486(iVar0, iVar1, -1))
{
return;
}
}
func_477(unk_0xFEB6EEC0545AF7AA("torsoDecal"), iParam0);
if (iParam1 == 11)
{
if (((((!func_479(iVar0, iParam2, 13) && !func_479(iVar0, iParam2, 14)) && !func_479(iVar0, iParam2, 15)) && !func_479(iVar0, iParam2, 16)) && !func_479(iVar0, iParam2, 71)) && !func_479(iVar0, iParam2, 72))
{
func_477(unk_0xFEB6EEC0545AF7AA("crewLogo"), iParam0);
}
}
iVar2 = func_474(iVar0, iParam1, iParam2, iParam4);
if (iVar2 != -1)
{
if (iParam3 == 1)
{
func_498(iParam0, iVar2, 0);
}
else
{
func_499(iVar2, 1, Global_71014);
}
}
}
}
}
void func_498(int iParam0, int iParam1, int iParam2)
{
int iVar0;
struct<6> Var1;
if (!unk_0x4915F4759304D5CF(iParam0))
{
if (iParam1 != -1)
{
iVar0 = func_475(iParam0);
if (!func_461(iParam1, -1) || iParam2)
{
if (func_456(&Var1, iParam1, iVar0, iParam0, -1))
{
unk_0x8DF379B4FA65C8FF(iParam0, Var1.f_4, Var1.f_5);
func_438(iParam0, Var1.f_4, Var1.f_5);
}
}
}
}
}
void func_499(int iParam0, bool bParam1, int iParam2)
{
if (bParam1)
{
if (!func_461(iParam0, iParam2))
{
func_500(iParam0, 1, iParam2);
}
}
else if (func_461(iParam0, iParam2))
{
func_500(iParam0, 0, iParam2);
}
}
void func_500(int iParam0, bool bParam1, int iParam2)
{
int iVar0;
int iVar1;
iVar0 = func_462(iParam0, iParam2);
iVar1 = iParam0;
if (iVar1 > -1)
{
if (bParam1)
{
unk_0x2BCFB39E86340DAA(&iVar0, func_442(iVar1));
}
else
{
unk_0xFA57C719261AA55D(&iVar0, func_442(iVar1));
}
if (!func_501())
{
func_16(func_463(iParam0), iVar0, iParam2, 1, 0);
}
}
}
bool func_501()
{
return Global_1312834;
}
int func_502()
{
int iVar0;
iVar0 = Global_71014;
if (func_461(13, iVar0))
{
return 13;
}
if (func_461(14, iVar0))
{
return 14;
}
if (func_461(15, iVar0))
{
return 15;
}
if (func_461(16, iVar0))
{
return 16;
}
if (func_461(71, iVar0))
{
return 71;
}
if (func_461(72, iVar0))
{
return 72;
}
return -1;
}
int func_503(int iParam0, int iParam1, int iParam2)
{
int iVar0;
int iVar1;
if (!unk_0x4915F4759304D5CF(iParam0))
{
if (iParam1 == 12)
{
iVar0 = 0;
while (iVar0 <= 53)
{
if (func_412(iParam0, iParam1, iVar0))
{
return iVar0;
}
iVar0++;
}
}
else if (iParam1 == 13)
{
iVar1 = 0;
while (iVar1 <= 19)
{
if (func_412(iParam0, iParam1, iVar1))
{
return iVar1;
}
iVar1++;
}
return 31;
}
else if (iParam1 == 14)
{
if (iParam2 == -1)
{
}
else
{
return func_138(iParam0, iParam2);
}
}
else
{
return func_139(iParam0, iParam1);
}
}
return -99;
}
void func_504(int iParam0, int iParam1, int iParam2, bool bParam3)
{
int iVar0;
int iVar1;
int iVar2;
var uVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
int iVar9;
int iVar10[2];
struct<2> Var11;
int iVar12;
int iVar13;
int iVar14;
int iVar15;
struct<2> Var16;
int iVar17;
int iVar18;
int iVar19;
if (unk_0x4C9BACA8D249CB13())
{
if (Global_71014 != func_18() || iParam2 == -99)
{
return;
}
Global_71017[2 /*14*/] = { func_506(iParam0, iParam1, iParam2, -1) };
if (unk_0x05EFB6A616B6FADE(Global_71017[2 /*14*/].f_6, 1) && unk_0x05EFB6A616B6FADE(Global_71017[2 /*14*/].f_6, 6))
{
if (iParam1 == 12)
{
func_142(Global_2621444, 2, 1, 1, -1);
}
else if (iParam1 == 13)
{
}
else if (iParam1 == 14)
{
func_142(Global_2621444, 2, 1, 1, -1);
}
else
{
func_142(Global_2621444, 2, 1, 1, -1);
}
if (bParam3)
{
iVar0 = unk_0xC32CC87227998BA0(Global_2621444);
iVar5 = 0;
iVar1 = 0;
while (iVar1 < iVar0)
{
if (iVar5 < Global_4265709)
{
Global_4265709[iVar5] = -1;
Global_4265720[iVar5] = -1;
}
unk_0xD87AFE0D33276102(Global_2621444, iVar1, &iVar2, &uVar3, &iVar4);
if (iVar4 != 10 && iVar4 != 9)
{
if (iParam1 == 4 && unk_0x4BE6499482BEE1D8(Global_2621444, -1223513441, 0))
{
}
else if (iVar2 != 0 && iVar2 != 1849449579)
{
func_142(iVar2, 2, 1, 1, -1);
if (iVar5 < Global_4265709)
{
Global_4265709[iVar5] = iVar2;
Global_4265720[iVar5] = iVar4;
iVar5++;
}
}
else
{
func_504(iParam0, func_153(iVar4), uVar3, 0);
}
}
iVar1++;
}
Global_4265708++;
if (Global_4265708 < 2)
{
iVar1 = 0;
while (iVar1 < iVar5)
{
if (iVar1 < Global_4265709)
{
if (Global_4265709[iVar1] != -1)
{
if (iParam0 == joaat("mp_m_freemode_01"))
{
func_504(iParam0, func_153(Global_4265720[iVar1]), func_133(iParam0, Global_4265709[iVar1], func_153(Global_4265720[iVar1]), 3), 1);
}
else
{
func_504(iParam0, func_153(Global_4265720[iVar1]), func_133(iParam0, Global_4265709[iVar1], func_153(Global_4265720[iVar1]), 4), 1);
}
}
}
iVar1++;
}
}
Global_4265708 = (Global_4265708 - 1);
}
return;
}
if (unk_0x05EFB6A616B6FADE(Global_71017[2 /*14*/].f_6, 1) && !unk_0x05EFB6A616B6FADE(Global_71017[2 /*14*/].f_6, 6))
{
if (func_159(iParam1, Global_71017[1 /*14*/].f_2, &iVar6))
{
iVar7 = func_19(iVar6, Global_71014, 0);
unk_0x2BCFB39E86340DAA(&iVar7, Global_71017[2 /*14*/].f_1);
func_16(iVar6, iVar7, Global_71014, 1, 0);
}
if (bParam3 == 1)
{
if (iParam0 == joaat("mp_m_freemode_01"))
{
if (iParam1 == 14)
{
if (iParam2 >= 83 && iParam2 <= 90)
{
iVar8 = (75 + Global_71017[2 /*14*/].f_4);
func_504(iParam0, 14, iVar8, 0);
}
else if (iParam2 >= 75 && iParam2 <= 82)
{
iVar8 = (83 + Global_71017[2 /*14*/].f_4);
func_504(iParam0, 14, iVar8, 0);
}
}
else if (iParam1 == 8)
{
if (iParam2 >= 48 && iParam2 <= 63)
{
iVar8 = (64 + Global_71017[2 /*14*/].f_4);
func_504(iParam0, 8, iVar8, 0);
}
else if (iParam2 >= 64 && iParam2 <= 79)
{
iVar8 = (48 + Global_71017[2 /*14*/].f_4);
func_504(iParam0, 8, iVar8, 0);
}
else if (iParam2 >= 96 && iParam2 <= 111)
{
iVar8 = (112 + Global_71017[2 /*14*/].f_4);
func_504(iParam0, 8, iVar8, 0);
}
else if (iParam2 >= 112 && iParam2 <= 127)
{
iVar8 = (96 + Global_71017[2 /*14*/].f_4);
func_504(iParam0, 8, iVar8, 0);
}
else if (iParam2 >= 176 && iParam2 <= 191)
{
iVar8 = (160 + Global_71017[2 /*14*/].f_4);
func_504(iParam0, 8, iVar8, 0);
}
else if (iParam2 >= 160 && iParam2 <= 175)
{
iVar8 = (176 + Global_71017[2 /*14*/].f_4);
func_504(iParam0, 8, iVar8, 0);
}
else if (iParam2 >= 32 && iParam2 <= 47)
{
iVar8 = (0 + Global_71017[2 /*14*/].f_4);
func_504(iParam0, 11, iVar8, 0);
}
else if (iParam2 >= 224 && iParam2 <= 239)
{
iVar8 = (16 + Global_71017[2 /*14*/].f_4);
func_504(iParam0, 11, iVar8, 0);
}
}
else if (iParam1 == 11)
{
if (iParam2 >= 0 && iParam2 <= 15)
{
iVar8 = (32 + Global_71017[2 /*14*/].f_4);
func_504(iParam0, 8, iVar8, 0);
}
else if (iParam2 >= 16 && iParam2 <= 31)
{
iVar8 = (224 + Global_71017[2 /*14*/].f_4);
func_504(iParam0, 8, iVar8, 0);
}
else if (iParam2 >= 220 && iParam2 <= 235)
{
switch (iParam2)
{
case 220:
iVar10[0] = 691352495;
iVar10[1] = 691352495;
break;
case 221:
iVar10[0] = 451909412;
iVar10[1] = 451909412;
break;
case 222:
iVar10[0] = -206550874;
iVar10[1] = -206550874;
break;
case 223:
iVar10[0] = -445797343;
iVar10[1] = -445797343;
break;
case 224:
iVar10[0] = -173716332;
iVar10[1] = -173716332;
break;
case 225:
iVar10[0] = -538304226;
iVar10[1] = -538304226;
break;
case 226:
iVar10[0] = -592242000;
iVar10[1] = -592242000;
break;
case 227:
iVar10[0] = -831095241;
iVar10[1] = -831095241;
break;
case 228:
iVar10[0] = -1092100326;
iVar10[1] = -1092100326;
break;
case 229:
iVar10[0] = -1465994616;
iVar10[1] = -1465994616;
break;
case 230:
iVar10[0] = 507503642;
iVar10[1] = 507503642;
break;
case 231:
iVar10[0] = -1392082519;
iVar10[1] = -1392082519;
break;
case 232:
iVar10[0] = -88859389;
iVar10[1] = -88859389;
break;
case 233:
iVar10[0] = 157858412;
iVar10[1] = 157858412;
break;
case 234:
iVar10[0] = -513152401;
iVar10[1] = -513152401;
break;
case 235:
iVar10[0] = 2004948615;
iVar10[1] = 2004948615;
break;
}
unk_0x4EC128057F5B6F27(&Var11);
iVar14 = unk_0x6182A22F4D99005E(3, 6, -1, 0, -1, 8);
iVar12 = 0;
while (iVar12 < iVar14)
{
unk_0xF947B64BF5B65A2E(iVar12, &Var11);
if (!unk_0x3B61940560400F58(Var11))
{
if (Var11.f_1 == iVar10[0] || Var11.f_1 == iVar10[1])
{
func_504(iParam0, 8, (241 + iVar13), 0);
iVar12 = iVar14 + 1;
}
iVar13++;
}
iVar12++;
}
}
}
else if (iParam1 == 7)
{
if (iParam2 >= 41 && iParam2 <= 56)
{
switch (Global_71017[2 /*14*/].f_4)
{
case 0:
func_504(iParam0, 7, func_133(iParam0, -1893758670, 7, 3), 0);
func_504(iParam0, 7, func_133(iParam0, 221276858, 7, 3), 0);
break;
case 1:
func_504(iParam0, 7, func_133(iParam0, -1596052305, 7, 3), 0);
func_504(iParam0, 7, func_133(iParam0, 576886046, 7, 3), 0);
break;
case 2:
func_504(iParam0, 7, func_133(iParam0, 1233059274, 7, 3), 0);
func_504(iParam0, 7, func_133(iParam0, -392978047, 7, 3), 0);
break;
case 3:
func_504(iParam0, 7, func_133(iParam0, 232228476, 7, 3), 0);
func_504(iParam0, 7, func_133(iParam0, -33764269, 7, 3), 0);
break;
case 4:
func_504(iParam0, 7, func_133(iParam0, -454445919, 7, 3), 0);
func_504(iParam0, 7, func_133(iParam0, 1510704243, 7, 3), 0);
break;
case 5:
func_504(iParam0, 7, func_133(iParam0, 925653285, 7, 3), 0);
func_504(iParam0, 7, func_133(iParam0, 1800939276, 7, 3), 0);
break;
case 6:
func_504(iParam0, 7, func_133(iParam0, -2104856604, 7, 3), 0);
func_504(iParam0, 7, func_133(iParam0, 833565623, 7, 3), 0);
break;
case 7:
func_504(iParam0, 7, func_133(iParam0, 1657483366, 7, 3), 0);
func_504(iParam0, 7, func_133(iParam0, 1201823645, 7, 3), 0);
break;
case 8:
func_504(iParam0, 7, func_133(iParam0, 501294735, 7, 3), 0);
func_504(iParam0, 7, func_133(iParam0, 2132496022, 7, 3), 0);
break;
case 9:
func_504(iParam0, 7, func_133(iParam0, 1882573627, 7, 3), 0);
func_504(iParam0, 7, func_133(iParam0, -1939019463, 7, 3), 0);
break;
case 10:
func_504(iParam0, 7, func_133(iParam0, 206035418, 7, 3), 0);
func_504(iParam0, 7, func_133(iParam0, 1713491273, 7, 3), 0);
break;
case 11:
func_504(iParam0, 7, func_133(iParam0, -642943834, 7, 3), 0);
func_504(iParam0, 7, func_133(iParam0, -156668318, 7, 3), 0);
break;
case 12:
func_504(iParam0, 7, func_133(iParam0, -388295935, 7, 3), 0);
func_504(iParam0, 7, func_133(iParam0, 106696135, 7, 3), 0);
break;
case 13:
func_504(iParam0, 7, func_133(iParam0, 927641567, 7, 3), 0);
func_504(iParam0, 7, func_133(iParam0, -802905767, 7, 3), 0);
break;
case 14:
func_504(iParam0, 7, func_133(iParam0, 1147226636, 7, 3), 0);
func_504(iParam0, 7, func_133(iParam0, -505527092, 7, 3), 0);
break;
case 15:
func_504(iParam0, 7, func_133(iParam0, 312665744, 7, 3), 0);
func_504(iParam0, 7, func_133(iParam0, -1144129332, 7, 3), 0);
break;
}
}
else if (iParam2 >= 73 && iParam2 <= 88)
{
switch (Global_71017[2 /*14*/].f_4)
{
case 0:
func_504(iParam0, 7, func_133(iParam0, -335266079, 7, 3), 0);
func_504(iParam0, 7, func_133(iParam0, -925989020, 7, 3), 0);
break;
case 1:
func_504(iParam0, 7, func_133(iParam0, -1379548555, 7, 3), 0);
func_504(iParam0, 7, func_133(iParam0, 244486895, 7, 3), 0);
break;
case 2:
func_504(iParam0, 7, func_133(iParam0, -1402159165, 7, 3), 0);
func_504(iParam0, 7, func_133(iParam0, 1095104597, 7, 3), 0);
break;
case 3:
func_504(iParam0, 7, func_133(iParam0, 1357351098, 7, 3), 0);
func_504(iParam0, 7, func_133(iParam0, 1787874026, 7, 3), 0);
break;
case 4:
func_504(iParam0, 7, func_133(iParam0, -1097178082, 7, 3), 0);
func_504(iParam0, 7, func_133(iParam0, 476163725, 7, 3), 0);
break;
case 5:
func_504(iParam0, 7, func_133(iParam0, -179482237, 7, 3), 0);
func_504(iParam0, 7, func_133(iParam0, 1223952305, 7, 3), 0);
break;
case 6:
func_504(iParam0, 7, func_133(iParam0, -750514831, 7, 3), 0);
func_504(iParam0, 7, func_133(iParam0, 2049796643, 7, 3), 0);
break;
case 7:
func_504(iParam0, 7, func_133(iParam0, -1724573356, 7, 3), 0);
func_504(iParam0, 7, func_133(iParam0, -1013547784, 7, 3), 0);
break;
case 8:
func_504(iParam0, 7, func_133(iParam0, 94106144, 7, 3), 0);
func_504(iParam0, 7, func_133(iParam0, 1456972664, 7, 3), 0);
break;
case 9:
func_504(iParam0, 7, func_133(iParam0, 1070524041, 7, 3), 0);
func_504(iParam0, 7, func_133(iParam0, -1670762848, 7, 3), 0);
break;
case 10:
func_504(iParam0, 7, func_133(iParam0, -1644577318, 7, 3), 0);
func_504(iParam0, 7, func_133(iParam0, 1428867383, 7, 3), 0);
break;
case 11:
func_504(iParam0, 7, func_133(iParam0, 1865900118, 7, 3), 0);
func_504(iParam0, 7, func_133(iParam0, -1664165762, 7, 3), 0);
break;
case 12:
func_504(iParam0, 7, func_133(iParam0, 1611776523, 7, 3), 0);
func_504(iParam0, 7, func_133(iParam0, -1962101510, 7, 3), 0);
break;
case 13:
func_504(iParam0, 7, func_133(iParam0, 1381115532, 7, 3), 0);
func_504(iParam0, 7, func_133(iParam0, -1270511757, 7, 3), 0);
break;
case 14:
func_504(iParam0, 7, func_133(iParam0, 1636484345, 7, 3), 0);
func_504(iParam0, 7, func_133(iParam0, -1571626106, 7, 3), 0);
break;
case 15:
func_504(iParam0, 7, func_133(iParam0, 1422633851, 7, 3), 0);
func_504(iParam0, 7, func_133(iParam0, -698332248, 7, 3), 0);
break;
}
}
}
}
else if (iParam0 == joaat("mp_f_freemode_01"))
{
if (iParam1 == 11)
{
if (iParam2 >= 0 && iParam2 <= 15)
{
iVar8 = (16 + Global_71017[2 /*14*/].f_4);
func_504(iParam0, 8, iVar8, 0);
}
}
}
Global_71017[2 /*14*/] = { func_506(iParam0, iParam1, iParam2, -1) };
if (iParam1 == 11)
{
iVar9 = func_505(iParam0, iParam2, Global_71017[2 /*14*/].f_4);
if (iVar9 != -99)
{
func_504(iParam0, 8, iVar9, 0);
}
if (iParam2 >= 192 && iParam2 <= 203)
{
switch (iParam2)
{
case 199:
iVar15 = 331193219;
break;
case 200:
iVar15 = 1115060468;
break;
case 201:
iVar15 = 779636984;
break;
}
unk_0x4EC128057F5B6F27(&Var16);
iVar19 = unk_0x6182A22F4D99005E(4, 6, -1, 0, -1, 8);
iVar17 = 0;
while (iVar17 < iVar19)
{
unk_0xF947B64BF5B65A2E(iVar17, &Var16);
if (!unk_0x3B61940560400F58(Var16))
{
if (Var16.f_1 == iVar15)
{
func_504(iParam0, 8, (136 + iVar18), 0);
iVar17 = iVar19 + 1;
}
iVar18++;
}
iVar17++;
}
}
}
else if (iParam1 == 8)
{
iVar9 = func_483(iParam0, iParam2, Global_71017[2 /*14*/].f_4);
if (iVar9 != -99)
{
func_504(iParam0, 11, iVar9, 0);
}
}
}
}
}
}
int func_505(int iParam0, int iParam1, int iParam2)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
int iVar9;
int iVar10;
int iVar11;
int iVar12;
iVar0 = -99;
if (iParam0 == joaat("mp_m_freemode_01"))
{
if (iParam1 <= 15)
{
iVar0 = 0;
}
else if (iParam1 <= 31)
{
iVar0 = 16;
}
else if (iParam1 <= 47)
{
iVar0 = -99;
}
else if (iParam1 <= 63)
{
iVar0 = -99;
}
else if (iParam1 <= 79)
{
iVar0 = -99;
}
else if (iParam1 <= 95)
{
iVar0 = 80;
}
else if (iParam1 <= 107)
{
iVar0 = -99;
}
else if (iParam1 <= 123)
{
iVar0 = -99;
}
else if (iParam1 <= 139)
{
iVar0 = 128;
}
else if (iParam1 <= 155)
{
iVar0 = 144;
}
else if (iParam1 <= 171)
{
iVar0 = -99;
}
else if (iParam1 <= 187)
{
iVar0 = -99;
}
else if (iParam1 <= 203)
{
iVar0 = 192;
}
else if (iParam1 <= 219)
{
iVar0 = 208;
}
else if (iParam1 <= 235)
{
iVar0 = -99;
}
else if (iParam1 <= 236)
{
iVar0 = 240;
}
else if (iParam1 >= 237)
{
iVar1 = func_128(iParam0, iParam1, 11, 3);
if (iVar1 != -1)
{
iVar2 = unk_0xC32CC87227998BA0(iVar1);
iVar3 = 0;
while (iVar3 < iVar2)
{
unk_0xD87AFE0D33276102(iVar1, iVar3, &iVar4, &iVar5, &iVar6);
if (iVar6 == 8)
{
if (iVar4 != 0 && iVar4 != 1849449579)
{
iVar0 = func_133(iParam0, iVar4, 8, 3);
}
else
{
iVar0 = iVar5;
}
iVar3 = iVar2 + 1;
}
iVar3++;
}
}
}
}
else if (iParam0 == joaat("mp_f_freemode_01"))
{
if (iParam1 <= 15)
{
iVar0 = 0;
}
else if (iParam1 <= 31)
{
iVar0 = -99;
}
else if (iParam1 <= 47)
{
iVar0 = -99;
}
else if (iParam1 <= 63)
{
iVar0 = -99;
}
else if (iParam1 <= 79)
{
iVar0 = 34;
}
else if (iParam1 <= 95)
{
iVar0 = 50;
}
else if (iParam1 <= 111)
{
iVar0 = -99;
}
else if (iParam1 <= 127)
{
iVar0 = -99;
}
else if (iParam1 <= 143)
{
iVar0 = -99;
}
else if (iParam1 <= 159)
{
iVar0 = -99;
}
else if (iParam1 <= 175)
{
iVar0 = -99;
}
else if (iParam1 <= 191)
{
iVar0 = 71;
}
else if (iParam1 <= 207)
{
iVar0 = 87;
}
else if (iParam1 <= 223)
{
iVar0 = 103;
}
else if (iParam1 <= 239)
{
iVar0 = -99;
}
else if (iParam1 <= 255)
{
iVar0 = 120;
}
else if (iParam1 >= 256)
{
iVar7 = func_128(iParam0, iParam1, 11, 4);
if (iVar7 != -1)
{
iVar8 = unk_0xC32CC87227998BA0(iVar7);
iVar9 = 0;
while (iVar9 < iVar8)
{
unk_0xD87AFE0D33276102(iVar7, iVar9, &iVar10, &iVar11, &iVar12);
if (iVar12 == 8)
{
if (iVar10 != 0 && iVar10 != 1849449579)
{
iVar0 = func_133(iParam0, iVar10, 8, 4);
}
else
{
iVar0 = iVar11;
}
iVar9 = iVar8 + 1;
}
iVar9++;
}
}
}
}
if (iVar0 != -99)
{
iVar0 = (iVar0 + iParam2);
}
return iVar0;
}
struct<14> func_506(int iParam0, int iParam1, int iParam2, int iParam3)
{
func_218();
if (iParam0 == joaat("mp_m_freemode_01"))
{
func_523(iParam1, iParam2, iParam3);
}
else if (iParam0 == joaat("mp_f_freemode_01"))
{
func_507(iParam1, iParam2, iParam3);
}
return Global_71017[0 /*14*/];
}
void func_507(int iParam0, int iParam1, int iParam2)
{
switch (iParam0)
{
case 2:
func_522(iParam1, iParam2);
break;
case 11:
func_521(iParam1, iParam2);
break;
case 8:
func_520(iParam1, iParam2);
break;
case 9:
func_519(iParam1, iParam2);
break;
case 3:
func_518(iParam1, iParam2);
break;
case 4:
func_517(iParam1, iParam2);
break;
case 6:
func_516(iParam1, iParam2);
break;
case 1:
func_515(iParam1, iParam2);
break;
case 7:
func_514(iParam1, iParam2);
break;
case 10:
func_513(iParam1, iParam2);
break;
case 14:
func_512(iParam1, iParam2);
break;
case 12:
func_511(iParam1, iParam2);
break;
case 5:
func_510(iParam1, iParam2);
break;
case 0:
func_509(iParam1, iParam2);
break;
case 13:
func_508(iParam1);
break;
}
}
void func_508(int iParam0)
{
bool bVar0;
int iVar1;
char* sVar2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 13;
switch (iParam0)
{
case 31:
iVar3 = 0;
iVar4 = 0;
break;
case 0:
iVar3 = 0;
iVar4 = 0;
break;
case 1:
iVar3 = 0;
iVar4 = 0;
break;
case 2:
iVar3 = 0;
iVar4 = 0;
break;
case 3:
iVar3 = 0;
iVar4 = 0;
break;
case 4:
iVar3 = 0;
iVar4 = 0;
break;
case 5:
iVar3 = 0;
iVar4 = 0;
break;
case 6:
iVar3 = 0;
iVar4 = 0;
break;
case 7:
iVar3 = 0;
iVar4 = 0;
break;
case 8:
iVar3 = 0;
iVar4 = 0;
break;
case 9:
iVar3 = 0;
iVar4 = 0;
break;
case 10:
iVar3 = 0;
iVar4 = 0;
break;
case 11:
iVar3 = 0;
iVar4 = 0;
break;
case 12:
iVar3 = 0;
iVar4 = 0;
break;
case 13:
iVar3 = 0;
iVar4 = 0;
break;
case 14:
iVar3 = 0;
iVar4 = 0;
break;
case 15:
iVar3 = 0;
iVar4 = 0;
break;
case 16:
iVar3 = 0;
iVar4 = 0;
break;
case 17:
iVar3 = 0;
iVar4 = 0;
break;
case 18:
iVar3 = 0;
iVar4 = 0;
break;
case 19:
iVar3 = 0;
iVar4 = 0;
break;
case 20:
iVar3 = 0;
iVar4 = 0;
break;
case 21:
iVar3 = 0;
iVar4 = 0;
break;
case 22:
iVar3 = 0;
iVar4 = 0;
break;
case 23:
iVar3 = 0;
iVar4 = 0;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &sVar2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_509(int iParam0, int iParam1)
{
int iVar0;
iVar0 = 0;
Global_71017[0 /*14*/].f_5 = 4;
func_164(iVar0, iParam0, 0, iParam1);
}
void func_510(int iParam0, int iParam1)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 5;
switch (iParam0)
{
case 0:
iVar3 = 0;
iVar4 = 0;
break;
case 1:
iVar3 = 1;
iVar4 = 0;
break;
case 2:
iVar3 = 2;
iVar4 = 0;
break;
case 3:
iVar3 = 3;
iVar4 = 0;
break;
case 4:
iVar3 = 4;
iVar4 = 0;
break;
case 5:
iVar3 = 5;
iVar4 = 0;
break;
case 6:
iVar3 = 6;
iVar4 = 0;
break;
case 7:
iVar3 = 7;
iVar4 = 0;
break;
case 8:
iVar3 = 8;
iVar4 = 0;
break;
default:
Global_71017[0 /*14*/].f_5 = 4;
func_164(iVar7, iParam0, 9, iParam1);
return;
break;
}
StringCopy(&Var2, "HA_FMF_", 16);
StringIntConCat(&Var2, iVar3, 16);
StringConCat(&Var2, "_", 16);
StringIntConCat(&Var2, iVar4, 16);
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_511(int iParam0, int iParam1)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 12;
switch (iParam0)
{
case 0:
iVar3 = 0;
iVar4 = 0;
bVar0 = true;
break;
case 1:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMF_S1", 16);
break;
case 2:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMF_S2", 16);
break;
case 3:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMF_S3", 16);
break;
case 4:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMF_S4", 16);
break;
case 5:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMF_S5", 16);
break;
case 6:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMF_S6", 16);
break;
case 7:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMF_S7", 16);
break;
case 8:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMF_S8", 16);
break;
case 9:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMF_P1", 16);
break;
case 10:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMF_P2", 16);
break;
case 11:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMF_P3", 16);
break;
case 12:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMF_P4", 16);
break;
case 13:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMF_P5", 16);
break;
case 14:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMF_P6", 16);
break;
case 15:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMF_P7", 16);
break;
case 16:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMF_P8", 16);
break;
case 17:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMF_P9", 16);
break;
case 18:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMF_P10", 16);
break;
case 19:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMF_B1", 16);
break;
case 20:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMF_B2", 16);
break;
case 21:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMF_B3", 16);
break;
case 22:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMF_B4", 16);
break;
case 23:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMF_B5", 16);
break;
case 24:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMF_B6", 16);
break;
case 25:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMF_B7", 16);
break;
case 26:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMF_B8", 16);
break;
case 27:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMF_B9", 16);
break;
default:
Global_71017[0 /*14*/].f_5 = 4;
func_164(iVar7, iParam0, 28, iParam1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_512(int iParam0, int iParam1)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
int iVar9;
int iVar10;
int iVar11;
int iVar12;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 14;
iVar8 = 0;
switch (iParam0)
{
case 0:
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 0;
break;
case 1:
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 1;
break;
case 2:
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 2;
break;
case 3:
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 3;
break;
case 4:
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 4;
break;
case 5:
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 5;
break;
case 6:
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 6;
break;
case 7:
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 7;
break;
case 8:
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 8;
break;
case 10:
StringCopy(&Var2, "HT_FMF_0_0", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 65;
iVar5 = 0;
iVar8 = 1;
break;
case 11:
StringCopy(&Var2, "HT_FMF_0_1", 16);
iVar3 = 0;
iVar4 = 1;
iVar1 = 65;
iVar5 = 0;
iVar8 = 1;
break;
case 12:
StringCopy(&Var2, "HT_FMF_0_2", 16);
iVar3 = 0;
iVar4 = 2;
iVar1 = 85;
iVar5 = 0;
iVar8 = 1;
break;
case 13:
StringCopy(&Var2, "HT_FMF_0_3", 16);
iVar3 = 0;
iVar4 = 3;
iVar1 = 75;
iVar5 = 0;
iVar8 = 1;
break;
case 14:
StringCopy(&Var2, "HT_FMF_0_4", 16);
iVar3 = 0;
iVar4 = 4;
iVar1 = 235;
iVar5 = 0;
iVar8 = 1;
break;
case 15:
StringCopy(&Var2, "HT_FMF_0_5", 16);
iVar3 = 0;
iVar4 = 5;
iVar1 = 80;
iVar5 = 0;
iVar8 = 1;
break;
case 16:
StringCopy(&Var2, "HT_FMF_0_6", 16);
iVar3 = 0;
iVar4 = 6;
iVar1 = 85;
iVar5 = 0;
iVar8 = 1;
break;
case 17:
StringCopy(&Var2, "HT_FMF_0_7", 16);
iVar3 = 0;
iVar4 = 7;
iVar1 = 90;
iVar5 = 0;
iVar8 = 1;
break;
}
switch (iParam0)
{
case 18:
StringCopy(&Var2, "HT_FMF_1_0", 16);
iVar3 = 1;
iVar4 = 0;
iVar5 = 0;
break;
case 19:
StringCopy(&Var2, "HT_FMF_2_0", 16);
iVar3 = 2;
iVar4 = 0;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 20:
StringCopy(&Var2, "HT_FMF_2_1", 16);
iVar3 = 2;
iVar4 = 1;
iVar1 = 5000;
iVar5 = 0;
iVar8 = 1;
break;
case 21:
StringCopy(&Var2, "HT_FMF_2_2", 16);
iVar3 = 2;
iVar4 = 2;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 22:
StringCopy(&Var2, "HT_FMF_2_3", 16);
iVar3 = 2;
iVar4 = 3;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 23:
StringCopy(&Var2, "HT_FMF_2_4", 16);
iVar3 = 2;
iVar4 = 4;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 24:
StringCopy(&Var2, "HT_FMF_2_5", 16);
iVar3 = 2;
iVar4 = 5;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 25:
StringCopy(&Var2, "HT_FMF_2_6", 16);
iVar3 = 2;
iVar4 = 6;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 26:
StringCopy(&Var2, "HT_FMF_2_7", 16);
iVar3 = 2;
iVar4 = 7;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 27:
StringCopy(&Var2, "HT_FMF_3_0", 16);
iVar3 = 3;
iVar4 = 0;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 28:
StringCopy(&Var2, "HT_FMF_3_1", 16);
iVar3 = 3;
iVar4 = 1;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 29:
StringCopy(&Var2, "HT_FMF_3_2", 16);
iVar3 = 3;
iVar4 = 2;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 30:
StringCopy(&Var2, "HT_FMF_3_3", 16);
iVar3 = 3;
iVar4 = 3;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 31:
StringCopy(&Var2, "HT_FMF_3_4", 16);
iVar3 = 3;
iVar4 = 4;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 32:
StringCopy(&Var2, "HT_FMF_3_5", 16);
iVar3 = 3;
iVar4 = 5;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 33:
StringCopy(&Var2, "HT_FMF_3_6", 16);
iVar3 = 3;
iVar4 = 6;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 34:
StringCopy(&Var2, "HT_FMF_3_7", 16);
iVar3 = 3;
iVar4 = 7;
iVar1 = 120;
iVar5 = 0;
iVar8 = 1;
break;
case 35:
StringCopy(&Var2, "HT_FMF_4_0", 16);
iVar3 = 4;
iVar4 = 0;
iVar1 = 400;
iVar5 = 0;
iVar8 = 1;
break;
case 36:
StringCopy(&Var2, "HT_FMF_4_1", 16);
iVar3 = 4;
iVar4 = 1;
iVar1 = 65;
iVar5 = 0;
iVar8 = 1;
break;
case 37:
StringCopy(&Var2, "HT_FMF_4_2", 16);
iVar3 = 4;
iVar4 = 2;
iVar1 = 375;
iVar5 = 0;
iVar8 = 1;
break;
case 38:
StringCopy(&Var2, "HT_FMF_4_3", 16);
iVar3 = 4;
iVar4 = 3;
iVar1 = 75;
iVar5 = 0;
iVar8 = 1;
break;
case 39:
StringCopy(&Var2, "HT_FMF_4_4", 16);
iVar3 = 4;
iVar4 = 4;
iVar1 = 65;
iVar5 = 0;
iVar8 = 1;
break;
case 40:
StringCopy(&Var2, "HT_FMF_4_5", 16);
iVar3 = 4;
iVar4 = 5;
iVar1 = 65;
iVar5 = 0;
iVar8 = 1;
break;
case 41:
StringCopy(&Var2, "HT_FMF_4_6", 16);
iVar3 = 4;
iVar4 = 6;
iVar1 = 85;
iVar5 = 0;
iVar8 = 1;
break;
case 42:
StringCopy(&Var2, "HT_FMF_4_7", 16);
iVar3 = 4;
iVar4 = 7;
iVar1 = 325;
iVar5 = 0;
iVar8 = 1;
break;
case 43:
StringCopy(&Var2, "HT_FMF_5_0", 16);
iVar3 = 5;
iVar4 = 0;
iVar1 = 35;
iVar5 = 0;
iVar8 = 1;
break;
case 44:
StringCopy(&Var2, "HT_FMF_5_1", 16);
iVar3 = 5;
iVar4 = 1;
iVar1 = 30;
iVar5 = 0;
iVar8 = 1;
break;
case 45:
StringCopy(&Var2, "HT_FMF_5_2", 16);
iVar3 = 5;
iVar4 = 2;
iVar1 = 35;
iVar5 = 0;
iVar8 = 1;
break;
case 46:
StringCopy(&Var2, "HT_FMF_5_3", 16);
iVar3 = 5;
iVar4 = 3;
iVar1 = 40;
iVar5 = 0;
iVar8 = 1;
break;
case 47:
StringCopy(&Var2, "HT_FMF_5_4", 16);
iVar3 = 5;
iVar4 = 4;
iVar1 = 35;
iVar5 = 0;
iVar8 = 1;
break;
case 48:
StringCopy(&Var2, "HT_FMF_5_5", 16);
iVar3 = 5;
iVar4 = 5;
iVar1 = 30;
iVar5 = 0;
iVar8 = 1;
break;
case 49:
StringCopy(&Var2, "HT_FMF_5_6", 16);
iVar3 = 5;
iVar4 = 6;
iVar1 = 35;
iVar5 = 0;
iVar8 = 1;
break;
case 50:
StringCopy(&Var2, "HT_FMF_5_7", 16);
iVar3 = 5;
iVar4 = 7;
iVar1 = 255;
iVar5 = 0;
iVar8 = 1;
break;
case 51:
StringCopy(&Var2, "HT_FMF_6_0", 16);
iVar3 = 6;
iVar4 = 0;
iVar1 = 360;
iVar5 = 0;
iVar8 = 1;
break;
case 52:
StringCopy(&Var2, "HT_FMF_6_1", 16);
iVar3 = 6;
iVar4 = 1;
iVar1 = 195;
iVar5 = 0;
iVar8 = 1;
break;
case 53:
StringCopy(&Var2, "HT_FMF_6_2", 16);
iVar3 = 6;
iVar4 = 2;
iVar1 = 3970;
iVar5 = 0;
iVar8 = 1;
break;
case 54:
StringCopy(&Var2, "HT_FMF_6_3", 16);
iVar3 = 6;
iVar4 = 3;
iVar1 = 135;
iVar5 = 0;
iVar8 = 1;
break;
case 55:
StringCopy(&Var2, "HT_FMF_6_4", 16);
iVar3 = 6;
iVar4 = 4;
iVar1 = 1355;
iVar5 = 0;
iVar8 = 1;
break;
case 56:
StringCopy(&Var2, "HT_FMF_6_5", 16);
iVar3 = 6;
iVar4 = 5;
iVar1 = 110;
iVar5 = 0;
iVar8 = 1;
break;
case 57:
StringCopy(&Var2, "HT_FMF_6_6", 16);
iVar3 = 6;
iVar4 = 6;
iVar1 = 140;
iVar5 = 0;
iVar8 = 1;
break;
case 58:
StringCopy(&Var2, "HT_FMF_6_7", 16);
iVar3 = 6;
iVar4 = 7;
iVar1 = 130;
iVar5 = 0;
iVar8 = 1;
break;
case 59:
StringCopy(&Var2, "HT_FMF_7_0", 16);
iVar3 = 7;
iVar4 = 0;
iVar1 = 230;
iVar5 = 0;
iVar8 = 1;
break;
case 60:
StringCopy(&Var2, "HT_FMF_7_1", 16);
iVar3 = 7;
iVar4 = 1;
iVar1 = 195;
iVar5 = 0;
iVar8 = 1;
break;
case 61:
StringCopy(&Var2, "HT_FMF_7_2", 16);
iVar3 = 7;
iVar4 = 2;
iVar1 = 515;
iVar5 = 0;
iVar8 = 1;
break;
case 62:
StringCopy(&Var2, "HT_FMF_7_3", 16);
iVar3 = 7;
iVar4 = 3;
iVar1 = 545;
iVar5 = 0;
iVar8 = 1;
break;
case 63:
StringCopy(&Var2, "HT_FMF_7_4", 16);
iVar3 = 7;
iVar4 = 4;
iVar1 = 195;
iVar5 = 0;
iVar8 = 1;
break;
case 64:
StringCopy(&Var2, "HT_FMF_7_5", 16);
iVar3 = 7;
iVar4 = 5;
iVar1 = 155;
iVar5 = 0;
iVar8 = 1;
break;
case 65:
StringCopy(&Var2, "HT_FMF_7_6", 16);
iVar3 = 7;
iVar4 = 6;
iVar1 = 155;
iVar5 = 0;
iVar8 = 1;
break;
case 66:
StringCopy(&Var2, "HT_FMF_7_7", 16);
iVar3 = 7;
iVar4 = 7;
iVar1 = 1440;
iVar5 = 0;
iVar8 = 1;
break;
}
switch (iParam0)
{
case 67:
StringCopy(&Var2, "HT_FMF_8_0", 16);
iVar3 = 8;
iVar4 = 0;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 68:
StringCopy(&Var2, "HT_FMF_8_1", 16);
iVar3 = 8;
iVar4 = 1;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 69:
StringCopy(&Var2, "HT_FMF_8_2", 16);
iVar3 = 8;
iVar4 = 2;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 70:
StringCopy(&Var2, "HT_FMF_8_3", 16);
iVar3 = 8;
iVar4 = 3;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 71:
StringCopy(&Var2, "HT_FMF_8_4", 16);
iVar3 = 8;
iVar4 = 4;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 72:
StringCopy(&Var2, "HT_FMF_8_5", 16);
iVar3 = 8;
iVar4 = 5;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 73:
StringCopy(&Var2, "HT_FMF_8_6", 16);
iVar3 = 8;
iVar4 = 6;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 74:
StringCopy(&Var2, "HT_FMF_8_7", 16);
iVar3 = 8;
iVar4 = 7;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 75:
StringCopy(&Var2, "HT_FMF_9_0", 16);
iVar3 = 9;
iVar4 = 0;
iVar1 = 35;
iVar5 = 0;
iVar8 = 1;
break;
case 76:
StringCopy(&Var2, "HT_FMF_9_1", 16);
iVar3 = 9;
iVar4 = 1;
iVar1 = 25;
iVar5 = 0;
iVar8 = 1;
break;
case 77:
StringCopy(&Var2, "HT_FMF_9_2", 16);
iVar3 = 9;
iVar4 = 2;
iVar1 = 30;
iVar5 = 0;
iVar8 = 1;
break;
case 78:
StringCopy(&Var2, "HT_FMF_9_3", 16);
iVar3 = 9;
iVar4 = 3;
iVar1 = 25;
iVar5 = 0;
iVar8 = 1;
break;
case 79:
StringCopy(&Var2, "HT_FMF_9_4", 16);
iVar3 = 9;
iVar4 = 4;
iVar1 = 50;
iVar5 = 0;
iVar8 = 1;
break;
case 80:
StringCopy(&Var2, "HT_FMF_9_5", 16);
iVar3 = 9;
iVar4 = 5;
iVar1 = 40;
iVar5 = 0;
iVar8 = 1;
break;
case 81:
StringCopy(&Var2, "HT_FMF_9_6", 16);
iVar3 = 9;
iVar4 = 6;
iVar1 = 575;
iVar5 = 0;
iVar8 = 1;
break;
case 82:
StringCopy(&Var2, "HT_FMF_9_7", 16);
iVar3 = 9;
iVar4 = 7;
iVar1 = 605;
iVar5 = 0;
iVar8 = 1;
break;
case 83:
StringCopy(&Var2, "HT_FMF_10_0", 16);
iVar3 = 10;
iVar4 = 0;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 84:
StringCopy(&Var2, "HT_FMF_10_1", 16);
iVar3 = 10;
iVar4 = 1;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 85:
StringCopy(&Var2, "HT_FMF_10_2", 16);
iVar3 = 10;
iVar4 = 2;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 86:
StringCopy(&Var2, "HT_FMF_10_3", 16);
iVar3 = 10;
iVar4 = 3;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 87:
StringCopy(&Var2, "HT_FMF_10_4", 16);
iVar3 = 10;
iVar4 = 4;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 88:
StringCopy(&Var2, "HT_FMF_10_5", 16);
iVar3 = 10;
iVar4 = 5;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 89:
StringCopy(&Var2, "HT_FMF_10_6", 16);
iVar3 = 10;
iVar4 = 6;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 90:
StringCopy(&Var2, "HT_FMF_10_7", 16);
iVar3 = 10;
iVar4 = 7;
iVar1 = 285;
iVar5 = 0;
iVar8 = 1;
break;
case 91:
StringCopy(&Var2, "HT_FMF_11_0", 16);
iVar3 = 11;
iVar4 = 0;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 92:
StringCopy(&Var2, "HT_FMF_11_1", 16);
iVar3 = 11;
iVar4 = 1;
iVar1 = 2125;
iVar5 = 0;
iVar8 = 1;
break;
case 93:
StringCopy(&Var2, "HT_FMF_11_2", 16);
iVar3 = 11;
iVar4 = 2;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 94:
StringCopy(&Var2, "HT_FMF_11_3", 16);
iVar3 = 11;
iVar4 = 3;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 95:
StringCopy(&Var2, "HT_FMF_11_4", 16);
iVar3 = 11;
iVar4 = 4;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 96:
StringCopy(&Var2, "HT_FMF_11_5", 16);
iVar3 = 11;
iVar4 = 5;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 97:
StringCopy(&Var2, "HT_FMF_11_6", 16);
iVar3 = 11;
iVar4 = 6;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 98:
StringCopy(&Var2, "HT_FMF_11_7", 16);
iVar3 = 11;
iVar4 = 7;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 99:
StringCopy(&Var2, "HT_FMF_12_0", 16);
iVar3 = 12;
iVar4 = 0;
iVar1 = 75;
iVar5 = 0;
iVar8 = 1;
break;
case 100:
StringCopy(&Var2, "HT_FMF_12_1", 16);
iVar3 = 12;
iVar4 = 1;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 101:
StringCopy(&Var2, "HT_FMF_12_2", 16);
iVar3 = 12;
iVar4 = 2;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 102:
StringCopy(&Var2, "HT_FMF_12_3", 16);
iVar3 = 12;
iVar4 = 3;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 103:
StringCopy(&Var2, "HT_FMF_12_4", 16);
iVar3 = 12;
iVar4 = 4;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 104:
StringCopy(&Var2, "HT_FMF_12_5", 16);
iVar3 = 12;
iVar4 = 5;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 105:
StringCopy(&Var2, "HT_FMF_12_6", 16);
iVar3 = 12;
iVar4 = 6;
iVar1 = 75;
iVar5 = 0;
iVar8 = 1;
break;
case 106:
StringCopy(&Var2, "HT_FMF_12_7", 16);
iVar3 = 12;
iVar4 = 7;
iVar1 = 295;
iVar5 = 0;
iVar8 = 1;
break;
case 107:
StringCopy(&Var2, "HT_FMF_13_0", 16);
iVar3 = 13;
iVar4 = 0;
iVar1 = 195;
iVar5 = 0;
iVar8 = 1;
break;
case 108:
StringCopy(&Var2, "HT_FMF_13_1", 16);
iVar3 = 13;
iVar4 = 1;
iVar1 = 200;
iVar5 = 0;
iVar8 = 1;
break;
case 109:
StringCopy(&Var2, "HT_FMF_13_2", 16);
iVar3 = 13;
iVar4 = 2;
iVar1 = 160;
iVar5 = 0;
iVar8 = 1;
break;
case 110:
StringCopy(&Var2, "HT_FMF_13_3", 16);
iVar3 = 13;
iVar4 = 3;
iVar1 = 855;
iVar5 = 0;
iVar8 = 1;
break;
case 111:
StringCopy(&Var2, "HT_FMF_13_4", 16);
iVar3 = 13;
iVar4 = 4;
iVar1 = 1615;
iVar5 = 0;
iVar8 = 1;
break;
case 112:
StringCopy(&Var2, "HT_FMF_13_5", 16);
iVar3 = 13;
iVar4 = 5;
iVar1 = 1130;
iVar5 = 0;
iVar8 = 1;
break;
case 113:
StringCopy(&Var2, "HT_FMF_13_6", 16);
iVar3 = 13;
iVar4 = 6;
iVar1 = 165;
iVar5 = 0;
iVar8 = 1;
break;
case 114:
StringCopy(&Var2, "HT_FMF_13_7", 16);
iVar3 = 13;
iVar4 = 7;
iVar1 = 215;
iVar5 = 0;
iVar8 = 1;
break;
case 115:
StringCopy(&Var2, "HT_FMF_14_0", 16);
iVar3 = 14;
iVar4 = 0;
iVar1 = 145;
iVar5 = 0;
iVar8 = 1;
break;
case 116:
StringCopy(&Var2, "HT_FMF_14_1", 16);
iVar3 = 14;
iVar4 = 1;
iVar1 = 250;
iVar5 = 0;
iVar8 = 1;
break;
case 117:
StringCopy(&Var2, "HT_FMF_14_2", 16);
iVar3 = 14;
iVar4 = 2;
iVar1 = 110;
iVar5 = 0;
iVar8 = 1;
break;
case 118:
StringCopy(&Var2, "HT_FMF_14_3", 16);
iVar3 = 14;
iVar4 = 3;
iVar1 = 145;
iVar5 = 0;
iVar8 = 1;
break;
case 119:
StringCopy(&Var2, "HT_FMF_14_4", 16);
iVar3 = 14;
iVar4 = 4;
iVar1 = 105;
iVar5 = 0;
iVar8 = 1;
break;
case 120:
StringCopy(&Var2, "HT_FMF_14_5", 16);
iVar3 = 14;
iVar4 = 5;
iVar1 = 105;
iVar5 = 0;
iVar8 = 1;
break;
case 121:
StringCopy(&Var2, "HT_FMF_14_6", 16);
iVar3 = 14;
iVar4 = 6;
iVar1 = 115;
iVar5 = 0;
iVar8 = 1;
break;
case 122:
StringCopy(&Var2, "HT_FMF_14_7", 16);
iVar3 = 14;
iVar4 = 7;
iVar1 = 115;
iVar5 = 0;
iVar8 = 1;
break;
case 123:
StringCopy(&Var2, "HT_FMF_15_0", 16);
iVar3 = 15;
iVar4 = 0;
iVar1 = 390;
iVar5 = 0;
iVar8 = 1;
break;
case 124:
StringCopy(&Var2, "HT_FMF_15_1", 16);
iVar3 = 15;
iVar4 = 1;
iVar1 = 395;
iVar5 = 0;
iVar8 = 1;
break;
case 125:
StringCopy(&Var2, "HT_FMF_15_2", 16);
iVar3 = 15;
iVar4 = 2;
iVar1 = 595;
iVar5 = 0;
iVar8 = 1;
break;
case 126:
StringCopy(&Var2, "HT_FMF_15_3", 16);
iVar3 = 15;
iVar4 = 3;
iVar1 = 425;
iVar5 = 0;
iVar8 = 1;
break;
case 127:
StringCopy(&Var2, "HT_FMF_15_4", 16);
iVar3 = 15;
iVar4 = 4;
iVar1 = 600;
iVar5 = 0;
iVar8 = 1;
break;
case 128:
StringCopy(&Var2, "HT_FMF_15_5", 16);
iVar3 = 15;
iVar4 = 5;
iVar1 = 590;
iVar5 = 0;
iVar8 = 1;
break;
case 129:
StringCopy(&Var2, "HT_FMF_15_6", 16);
iVar3 = 15;
iVar4 = 6;
iVar1 = 595;
iVar5 = 0;
iVar8 = 1;
break;
case 130:
StringCopy(&Var2, "HT_FMF_15_7", 16);
iVar3 = 15;
iVar4 = 7;
iVar1 = 555;
iVar5 = 0;
iVar8 = 1;
break;
}
switch (iParam0)
{
case 131:
StringCopy(&Var2, "HE_FMF_16_0", 16);
iVar3 = 16;
iVar4 = 0;
iVar1 = 1060;
iVar5 = 0;
iVar8 = 2;
break;
case 132:
StringCopy(&Var2, "HE_FMF_16_1", 16);
iVar3 = 16;
iVar4 = 1;
iVar1 = 1400;
iVar5 = 0;
iVar8 = 2;
break;
case 133:
StringCopy(&Var2, "HE_FMF_16_2", 16);
iVar3 = 16;
iVar4 = 2;
iVar1 = 1315;
iVar5 = 0;
iVar8 = 2;
break;
case 134:
StringCopy(&Var2, "HE_FMF_16_3", 16);
iVar3 = 16;
iVar4 = 3;
iVar1 = 1230;
iVar5 = 0;
iVar8 = 2;
break;
case 135:
StringCopy(&Var2, "HE_FMF_16_4", 16);
iVar3 = 16;
iVar4 = 4;
iVar1 = 1145;
iVar5 = 0;
iVar8 = 2;
break;
case 136:
StringCopy(&Var2, "HE_FMF_16_5", 16);
iVar3 = 16;
iVar4 = 5;
iVar1 = 8450;
iVar5 = 0;
iVar8 = 2;
break;
case 137:
StringCopy(&Var2, "HE_FMF_16_6", 16);
iVar3 = 16;
iVar4 = 6;
iVar1 = 675;
iVar5 = 0;
iVar8 = 2;
break;
case 138:
StringCopy(&Var2, "HE_FMF_16_7", 16);
iVar3 = 16;
iVar4 = 7;
iVar1 = 8750;
iVar5 = 0;
iVar8 = 2;
break;
case 139:
StringCopy(&Var2, "HE_FMF_17_0", 16);
iVar3 = 17;
iVar4 = 0;
iVar1 = 975;
iVar5 = 0;
iVar8 = 2;
break;
case 140:
StringCopy(&Var2, "HE_FMF_17_1", 16);
iVar3 = 17;
iVar4 = 1;
iVar1 = 750;
iVar5 = 0;
iVar8 = 2;
break;
case 141:
StringCopy(&Var2, "HE_FMF_17_2", 16);
iVar3 = 17;
iVar4 = 2;
iVar1 = 865;
iVar5 = 0;
iVar8 = 2;
break;
case 142:
StringCopy(&Var2, "HE_FMF_17_3", 16);
iVar3 = 17;
iVar4 = 3;
iVar1 = 890;
iVar5 = 0;
iVar8 = 2;
break;
case 143:
StringCopy(&Var2, "HE_FMF_17_4", 16);
iVar3 = 17;
iVar4 = 4;
iVar1 = 730;
iVar5 = 0;
iVar8 = 2;
break;
case 144:
StringCopy(&Var2, "HE_FMF_17_5", 16);
iVar3 = 17;
iVar4 = 5;
iVar1 = 650;
iVar5 = 0;
iVar8 = 2;
break;
case 145:
StringCopy(&Var2, "HE_FMF_17_6", 16);
iVar3 = 17;
iVar4 = 6;
iVar1 = 645;
iVar5 = 0;
iVar8 = 2;
break;
case 146:
StringCopy(&Var2, "HE_FMF_17_7", 16);
iVar3 = 17;
iVar4 = 7;
iVar1 = 755;
iVar5 = 0;
iVar8 = 2;
break;
case 147:
StringCopy(&Var2, "HE_FMF_18_0", 16);
iVar3 = 18;
iVar4 = 0;
iVar1 = 13850;
iVar5 = 0;
iVar8 = 2;
break;
case 148:
StringCopy(&Var2, "HE_FMF_18_1", 16);
iVar3 = 18;
iVar4 = 1;
iVar1 = 2900;
iVar5 = 0;
iVar8 = 2;
break;
case 149:
StringCopy(&Var2, "HE_FMF_18_2", 16);
iVar3 = 18;
iVar4 = 2;
iVar1 = 2895;
iVar5 = 0;
iVar8 = 2;
break;
case 150:
StringCopy(&Var2, "HE_FMF_18_3", 16);
iVar3 = 18;
iVar4 = 3;
iVar1 = 12500;
iVar5 = 0;
iVar8 = 2;
break;
case 151:
StringCopy(&Var2, "HE_FMF_18_4", 16);
iVar3 = 18;
iVar4 = 4;
iVar1 = 15000;
iVar5 = 0;
iVar8 = 2;
break;
case 152:
StringCopy(&Var2, "HE_FMF_18_5", 16);
iVar3 = 18;
iVar4 = 5;
iVar1 = 14750;
iVar5 = 0;
iVar8 = 2;
break;
case 153:
StringCopy(&Var2, "HE_FMF_18_6", 16);
iVar3 = 18;
iVar4 = 6;
iVar1 = 13150;
iVar5 = 0;
iVar8 = 2;
break;
case 154:
StringCopy(&Var2, "HE_FMF_18_7", 16);
iVar3 = 18;
iVar4 = 7;
iVar1 = 2925;
iVar5 = 0;
iVar8 = 2;
break;
}
switch (iParam0)
{
case 155:
StringCopy(&Var2, "G_FMF_0_0", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 65;
iVar5 = 1;
iVar8 = 3;
break;
case 156:
StringCopy(&Var2, "G_FMF_0_1", 16);
iVar3 = 0;
iVar4 = 1;
iVar1 = 65;
iVar5 = 1;
iVar8 = 3;
break;
case 157:
StringCopy(&Var2, "G_FMF_0_2", 16);
iVar3 = 0;
iVar4 = 2;
iVar1 = 85;
iVar5 = 1;
iVar8 = 3;
break;
case 158:
StringCopy(&Var2, "G_FMF_0_3", 16);
iVar3 = 0;
iVar4 = 3;
iVar1 = 75;
iVar5 = 1;
iVar8 = 3;
break;
case 159:
StringCopy(&Var2, "G_FMF_0_4", 16);
iVar3 = 0;
iVar4 = 4;
iVar1 = 85;
iVar5 = 1;
iVar8 = 3;
break;
case 160:
StringCopy(&Var2, "G_FMF_0_5", 16);
iVar3 = 0;
iVar4 = 5;
iVar1 = 80;
iVar5 = 1;
iVar8 = 3;
break;
case 161:
StringCopy(&Var2, "G_FMF_0_6", 16);
iVar3 = 0;
iVar4 = 6;
iVar1 = 85;
iVar5 = 1;
iVar8 = 3;
break;
case 162:
StringCopy(&Var2, "G_FMF_0_7", 16);
iVar3 = 0;
iVar4 = 7;
iVar1 = 90;
iVar5 = 1;
iVar8 = 3;
break;
case 163:
StringCopy(&Var2, "CLO_EXF_G_0_8", 16);
iVar3 = 0;
iVar4 = 8;
iVar1 = 820;
iVar5 = 1;
iVar8 = 3;
break;
case 164:
StringCopy(&Var2, "CLO_EXF_G_0_9", 16);
iVar3 = 0;
iVar4 = 9;
iVar1 = 435;
iVar5 = 1;
iVar8 = 3;
break;
case 165:
StringCopy(&Var2, "CLO_EXF_G_0_10", 16);
iVar3 = 0;
iVar4 = 10;
iVar1 = 500;
iVar5 = 1;
iVar8 = 3;
break;
case 166:
StringCopy(&Var2, "G_FMF_1_0", 16);
iVar3 = 1;
iVar4 = 0;
iVar1 = 160;
iVar5 = 1;
iVar8 = 3;
break;
case 167:
StringCopy(&Var2, "G_FMF_1_1", 16);
iVar3 = 1;
iVar4 = 1;
iVar1 = 165;
iVar5 = 1;
iVar8 = 3;
break;
case 168:
StringCopy(&Var2, "G_FMF_1_2", 16);
iVar3 = 1;
iVar4 = 2;
iVar1 = 170;
iVar5 = 1;
iVar8 = 3;
break;
case 169:
StringCopy(&Var2, "G_FMF_1_3", 16);
iVar3 = 1;
iVar4 = 3;
iVar1 = 135;
iVar5 = 1;
iVar8 = 3;
break;
case 170:
StringCopy(&Var2, "G_FMF_1_4", 16);
iVar3 = 1;
iVar4 = 4;
iVar1 = 120;
iVar5 = 1;
iVar8 = 3;
break;
case 171:
StringCopy(&Var2, "G_FMF_1_5", 16);
iVar3 = 1;
iVar4 = 5;
iVar1 = 110;
iVar5 = 1;
iVar8 = 3;
break;
case 172:
StringCopy(&Var2, "G_FMF_1_6", 16);
iVar3 = 1;
iVar4 = 6;
iVar1 = 140;
iVar5 = 1;
iVar8 = 3;
break;
case 173:
StringCopy(&Var2, "G_FMF_1_7", 16);
iVar3 = 1;
iVar4 = 7;
iVar1 = 130;
iVar5 = 1;
iVar8 = 3;
break;
case 174:
StringCopy(&Var2, "CLO_EXF_G_1_8", 16);
iVar3 = 1;
iVar4 = 8;
iVar1 = 970;
iVar5 = 1;
iVar8 = 3;
break;
case 175:
StringCopy(&Var2, "CLO_EXF_G_1_9", 16);
iVar3 = 1;
iVar4 = 9;
iVar1 = 585;
iVar5 = 1;
iVar8 = 3;
break;
case 176:
StringCopy(&Var2, "CLO_EXF_G_1_10", 16);
iVar3 = 1;
iVar4 = 10;
iVar1 = 650;
iVar5 = 1;
iVar8 = 3;
break;
case 177:
StringCopy(&Var2, "G_FMF_2_0", 16);
iVar3 = 2;
iVar4 = 0;
iVar1 = 180;
iVar5 = 1;
iVar8 = 3;
break;
case 178:
StringCopy(&Var2, "G_FMF_2_1", 16);
iVar3 = 2;
iVar4 = 1;
iVar1 = 110;
iVar5 = 1;
iVar8 = 3;
break;
case 179:
StringCopy(&Var2, "G_FMF_2_2", 16);
iVar3 = 2;
iVar4 = 2;
iVar1 = 115;
iVar5 = 1;
iVar8 = 3;
break;
case 180:
StringCopy(&Var2, "G_FMF_2_3", 16);
iVar3 = 2;
iVar4 = 3;
iVar1 = 120;
iVar5 = 1;
iVar8 = 3;
break;
case 181:
StringCopy(&Var2, "G_FMF_2_4", 16);
iVar3 = 2;
iVar4 = 4;
iVar1 = 595;
iVar5 = 1;
iVar8 = 3;
break;
case 182:
StringCopy(&Var2, "G_FMF_2_5", 16);
iVar3 = 2;
iVar4 = 5;
iVar1 = 160;
iVar5 = 1;
iVar8 = 3;
break;
case 183:
StringCopy(&Var2, "G_FMF_2_6", 16);
iVar3 = 2;
iVar4 = 6;
iVar1 = 545;
iVar5 = 1;
iVar8 = 3;
break;
case 184:
StringCopy(&Var2, "G_FMF_2_7", 16);
iVar3 = 2;
iVar4 = 7;
iVar1 = 590;
iVar5 = 1;
iVar8 = 3;
break;
case 185:
StringCopy(&Var2, "CLO_EXF_G_2_8", 16);
iVar3 = 2;
iVar4 = 8;
iVar1 = 1125;
iVar5 = 1;
iVar8 = 3;
break;
case 186:
StringCopy(&Var2, "CLO_EXF_G_2_9", 16);
iVar3 = 2;
iVar4 = 9;
iVar1 = 740;
iVar5 = 1;
iVar8 = 3;
break;
case 187:
StringCopy(&Var2, "CLO_EXF_G_2_10", 16);
iVar3 = 2;
iVar4 = 10;
iVar1 = 805;
iVar5 = 1;
iVar8 = 3;
break;
case 188:
StringCopy(&Var2, "G_FMF_3_0", 16);
iVar3 = 3;
iVar4 = 0;
iVar1 = 6250;
iVar5 = 1;
iVar8 = 3;
break;
case 189:
StringCopy(&Var2, "G_FMF_3_1", 16);
iVar3 = 3;
iVar4 = 1;
iVar1 = 4065;
iVar5 = 1;
iVar8 = 3;
break;
case 190:
StringCopy(&Var2, "G_FMF_3_2", 16);
iVar3 = 3;
iVar4 = 2;
iVar1 = 3585;
iVar5 = 1;
iVar8 = 3;
break;
case 191:
StringCopy(&Var2, "G_FMF_3_3", 16);
iVar3 = 3;
iVar4 = 3;
iVar1 = 4075;
iVar5 = 1;
iVar8 = 3;
break;
case 192:
StringCopy(&Var2, "G_FMF_3_4", 16);
iVar3 = 3;
iVar4 = 4;
iVar1 = 4935;
iVar5 = 1;
iVar8 = 3;
break;
case 193:
StringCopy(&Var2, "G_FMF_3_5", 16);
iVar3 = 3;
iVar4 = 5;
iVar1 = 130;
iVar5 = 1;
iVar8 = 3;
break;
case 194:
StringCopy(&Var2, "G_FMF_3_6", 16);
iVar3 = 3;
iVar4 = 6;
iVar1 = 5600;
iVar5 = 1;
iVar8 = 3;
break;
case 195:
StringCopy(&Var2, "G_FMF_3_7", 16);
iVar3 = 3;
iVar4 = 7;
iVar1 = 4790;
iVar5 = 1;
iVar8 = 3;
break;
case 196:
StringCopy(&Var2, "CLO_EXF_G_3_8", 16);
iVar3 = 3;
iVar4 = 8;
iVar1 = 2315;
iVar5 = 1;
iVar8 = 3;
break;
case 197:
StringCopy(&Var2, "CLO_EXF_G_3_9", 16);
iVar3 = 3;
iVar4 = 9;
iVar1 = 1930;
iVar5 = 1;
iVar8 = 3;
break;
case 198:
StringCopy(&Var2, "CLO_EXF_G_3_10", 16);
iVar3 = 3;
iVar4 = 10;
iVar1 = 1995;
iVar5 = 1;
iVar8 = 3;
break;
case 199:
StringCopy(&Var2, "G_FMF_4_0", 16);
iVar3 = 4;
iVar4 = 0;
iVar1 = 2245;
iVar5 = 1;
iVar8 = 3;
break;
case 200:
StringCopy(&Var2, "G_FMF_4_1", 16);
iVar3 = 4;
iVar4 = 1;
iVar1 = 250;
iVar5 = 1;
iVar8 = 3;
break;
case 201:
StringCopy(&Var2, "G_FMF_4_2", 16);
iVar3 = 4;
iVar4 = 2;
iVar1 = 210;
iVar5 = 1;
iVar8 = 3;
break;
case 202:
StringCopy(&Var2, "G_FMF_4_3", 16);
iVar3 = 4;
iVar4 = 3;
iVar1 = 245;
iVar5 = 1;
iVar8 = 3;
break;
case 203:
StringCopy(&Var2, "G_FMF_4_4", 16);
iVar3 = 4;
iVar4 = 4;
iVar1 = 1205;
iVar5 = 1;
iVar8 = 3;
break;
case 204:
StringCopy(&Var2, "G_FMF_4_5", 16);
iVar3 = 4;
iVar4 = 5;
iVar1 = 205;
iVar5 = 1;
iVar8 = 3;
break;
case 205:
StringCopy(&Var2, "G_FMF_4_6", 16);
iVar3 = 4;
iVar4 = 6;
iVar1 = 2215;
iVar5 = 1;
iVar8 = 3;
break;
case 206:
StringCopy(&Var2, "G_FMF_4_7", 16);
iVar3 = 4;
iVar4 = 7;
iVar1 = 215;
iVar5 = 1;
iVar8 = 3;
break;
case 207:
StringCopy(&Var2, "CLO_EXF_G_4_8", 16);
iVar3 = 4;
iVar4 = 8;
iVar1 = 2835;
iVar5 = 1;
iVar8 = 3;
break;
case 208:
StringCopy(&Var2, "CLO_EXF_G_4_9", 16);
iVar3 = 4;
iVar4 = 9;
iVar1 = 2450;
iVar5 = 1;
iVar8 = 3;
break;
case 209:
StringCopy(&Var2, "CLO_EXF_G_4_10", 16);
iVar3 = 4;
iVar4 = 10;
iVar1 = 2515;
iVar5 = 1;
iVar8 = 3;
break;
case 210:
StringCopy(&Var2, "G_FMF_5_0", 16);
iVar3 = 5;
iVar4 = 0;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 211:
StringCopy(&Var2, "G_FMF_5_1", 16);
iVar3 = 5;
iVar4 = 1;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 212:
StringCopy(&Var2, "G_FMF_5_2", 16);
iVar3 = 5;
iVar4 = 2;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 213:
StringCopy(&Var2, "G_FMF_5_3", 16);
iVar3 = 5;
iVar4 = 3;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 214:
StringCopy(&Var2, "G_FMF_5_4", 16);
iVar3 = 5;
iVar4 = 4;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 215:
StringCopy(&Var2, "G_FMF_5_5", 16);
iVar3 = 5;
iVar4 = 5;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 216:
StringCopy(&Var2, "G_FMF_5_6", 16);
iVar3 = 5;
iVar4 = 6;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 217:
StringCopy(&Var2, "G_FMF_5_7", 16);
iVar3 = 5;
iVar4 = 7;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 218:
StringCopy(&Var2, "G_FMF_5_8", 16);
iVar3 = 5;
iVar4 = 8;
iVar1 = 50;
iVar5 = 1;
iVar8 = 3;
break;
case 219:
StringCopy(&Var2, "G_FMF_5_9", 16);
iVar3 = 5;
iVar4 = 9;
iVar1 = 50;
iVar5 = 1;
iVar8 = 3;
break;
case 220:
StringCopy(&Var2, "G_FMF_5_10", 16);
iVar3 = 5;
iVar4 = 10;
iVar1 = 50;
iVar5 = 1;
iVar8 = 3;
break;
case 221:
StringCopy(&Var2, "G_FMF_6_0", 16);
iVar3 = 6;
iVar4 = 0;
iVar1 = 5000;
iVar5 = 1;
iVar8 = 3;
break;
case 222:
StringCopy(&Var2, "G_FMF_6_1", 16);
iVar3 = 6;
iVar4 = 1;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 223:
StringCopy(&Var2, "G_FMF_6_2", 16);
iVar3 = 6;
iVar4 = 2;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 224:
StringCopy(&Var2, "G_FMF_6_3", 16);
iVar3 = 6;
iVar4 = 3;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 225:
StringCopy(&Var2, "G_FMF_6_4", 16);
iVar3 = 6;
iVar4 = 4;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 226:
StringCopy(&Var2, "G_FMF_6_5", 16);
iVar3 = 6;
iVar4 = 5;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 227:
StringCopy(&Var2, "G_FMF_6_6", 16);
iVar3 = 6;
iVar4 = 6;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 228:
StringCopy(&Var2, "G_FMF_6_7", 16);
iVar3 = 6;
iVar4 = 7;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 229:
StringCopy(&Var2, "CLO_EXF_G_6_8", 16);
iVar3 = 6;
iVar4 = 8;
iVar1 = 2820;
iVar5 = 1;
iVar8 = 3;
break;
case 230:
StringCopy(&Var2, "CLO_EXF_G_6_9", 16);
iVar3 = 6;
iVar4 = 9;
iVar1 = 2435;
iVar5 = 1;
iVar8 = 3;
break;
case 231:
StringCopy(&Var2, "CLO_EXF_G_6_10", 16);
iVar3 = 6;
iVar4 = 10;
iVar1 = 2500;
iVar5 = 1;
iVar8 = 3;
break;
case 232:
StringCopy(&Var2, "G_FMF_7_0", 16);
iVar3 = 7;
iVar4 = 0;
iVar1 = 4815;
iVar5 = 1;
iVar8 = 3;
break;
case 233:
StringCopy(&Var2, "G_FMF_7_1", 16);
iVar3 = 7;
iVar4 = 1;
iVar1 = 4795;
iVar5 = 1;
iVar8 = 3;
break;
case 234:
StringCopy(&Var2, "G_FMF_7_2", 16);
iVar3 = 7;
iVar4 = 2;
iVar1 = 4305;
iVar5 = 1;
iVar8 = 3;
break;
case 235:
StringCopy(&Var2, "G_FMF_7_3", 16);
iVar3 = 7;
iVar4 = 3;
iVar1 = 4305;
iVar5 = 1;
iVar8 = 3;
break;
case 236:
StringCopy(&Var2, "G_FMF_7_4", 16);
iVar3 = 7;
iVar4 = 4;
iVar1 = 4965;
iVar5 = 1;
iVar8 = 3;
break;
case 237:
StringCopy(&Var2, "G_FMF_7_5", 16);
iVar3 = 7;
iVar4 = 5;
iVar1 = 480;
iVar5 = 1;
iVar8 = 3;
break;
case 238:
StringCopy(&Var2, "G_FMF_7_6", 16);
iVar3 = 7;
iVar4 = 6;
iVar1 = 465;
iVar5 = 1;
iVar8 = 3;
break;
case 239:
StringCopy(&Var2, "G_FMF_7_7", 16);
iVar3 = 7;
iVar4 = 7;
iVar1 = 4320;
iVar5 = 1;
iVar8 = 3;
break;
case 240:
StringCopy(&Var2, "CLO_EXF_G_7_8", 16);
iVar3 = 7;
iVar4 = 8;
iVar1 = 2390;
iVar5 = 1;
iVar8 = 3;
break;
case 241:
StringCopy(&Var2, "CLO_EXF_G_7_9", 16);
iVar3 = 7;
iVar4 = 9;
iVar1 = 2005;
iVar5 = 1;
iVar8 = 3;
break;
case 242:
StringCopy(&Var2, "CLO_EXF_G_7_10", 16);
iVar3 = 7;
iVar4 = 10;
iVar1 = 2070;
iVar5 = 1;
iVar8 = 3;
break;
}
switch (iParam0)
{
case 243:
StringCopy(&Var2, "G_FMF_8_0", 16);
iVar3 = 8;
iVar4 = 0;
iVar1 = 500;
iVar5 = 1;
iVar8 = 3;
break;
case 244:
StringCopy(&Var2, "G_FMF_8_1", 16);
iVar3 = 8;
iVar4 = 1;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 245:
StringCopy(&Var2, "G_FMF_8_2", 16);
iVar3 = 8;
iVar4 = 2;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 246:
StringCopy(&Var2, "G_FMF_8_3", 16);
iVar3 = 8;
iVar4 = 3;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 247:
StringCopy(&Var2, "G_FMF_8_4", 16);
iVar3 = 8;
iVar4 = 4;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 248:
StringCopy(&Var2, "G_FMF_8_5", 16);
iVar3 = 8;
iVar4 = 5;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 249:
StringCopy(&Var2, "G_FMF_8_6", 16);
iVar3 = 8;
iVar4 = 6;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 250:
StringCopy(&Var2, "G_FMF_8_7", 16);
iVar3 = 8;
iVar4 = 7;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 251:
StringCopy(&Var2, "CLO_EXF_G_8_8", 16);
iVar3 = 8;
iVar4 = 8;
iVar1 = 645;
iVar5 = 1;
iVar8 = 3;
break;
case 252:
StringCopy(&Var2, "CLO_EXF_G_8_9", 16);
iVar3 = 8;
iVar4 = 9;
iVar1 = 260;
iVar5 = 1;
iVar8 = 3;
break;
case 253:
StringCopy(&Var2, "CLO_EXF_G_8_10", 16);
iVar3 = 8;
iVar4 = 10;
iVar1 = 325;
iVar5 = 1;
iVar8 = 3;
break;
case 254:
StringCopy(&Var2, "G_FMF_9_0", 16);
iVar3 = 9;
iVar4 = 0;
iVar1 = 70;
iVar5 = 1;
iVar8 = 3;
break;
case 255:
StringCopy(&Var2, "G_FMF_9_1", 16);
iVar3 = 9;
iVar4 = 1;
iVar1 = 60;
iVar5 = 1;
iVar8 = 3;
break;
case 256:
StringCopy(&Var2, "G_FMF_9_2", 16);
iVar3 = 9;
iVar4 = 2;
iVar1 = 65;
iVar5 = 1;
iVar8 = 3;
break;
case 257:
StringCopy(&Var2, "G_FMF_9_3", 16);
iVar3 = 9;
iVar4 = 3;
iVar1 = 570;
iVar5 = 1;
iVar8 = 3;
break;
case 258:
StringCopy(&Var2, "G_FMF_9_4", 16);
iVar3 = 9;
iVar4 = 4;
iVar1 = 525;
iVar5 = 1;
iVar8 = 3;
break;
case 259:
StringCopy(&Var2, "G_FMF_9_5", 16);
iVar3 = 9;
iVar4 = 5;
iVar1 = 75;
iVar5 = 1;
iVar8 = 3;
break;
case 260:
StringCopy(&Var2, "G_FMF_9_6", 16);
iVar3 = 9;
iVar4 = 6;
iVar1 = 75;
iVar5 = 1;
iVar8 = 3;
break;
case 261:
StringCopy(&Var2, "G_FMF_9_7", 16);
iVar3 = 9;
iVar4 = 7;
iVar1 = 90;
iVar5 = 1;
iVar8 = 3;
break;
case 262:
StringCopy(&Var2, "CLO_EXF_G_9_8", 16);
iVar3 = 9;
iVar4 = 8;
iVar1 = 645;
iVar5 = 1;
iVar8 = 3;
break;
case 263:
StringCopy(&Var2, "CLO_EXF_G_9_9", 16);
iVar3 = 9;
iVar4 = 9;
iVar1 = 260;
iVar5 = 1;
iVar8 = 3;
break;
case 264:
StringCopy(&Var2, "CLO_EXF_G_9_10", 16);
iVar3 = 9;
iVar4 = 10;
iVar1 = 325;
iVar5 = 1;
iVar8 = 3;
break;
case 265:
StringCopy(&Var2, "G_FMF_10_0", 16);
iVar3 = 10;
iVar4 = 0;
iVar1 = 4065;
iVar5 = 1;
iVar8 = 3;
break;
case 266:
StringCopy(&Var2, "G_FMF_10_1", 16);
iVar3 = 10;
iVar4 = 1;
iVar1 = 65;
iVar5 = 1;
iVar8 = 3;
break;
case 267:
StringCopy(&Var2, "G_FMF_10_2", 16);
iVar3 = 10;
iVar4 = 2;
iVar1 = 85;
iVar5 = 1;
iVar8 = 3;
break;
case 268:
StringCopy(&Var2, "G_FMF_10_3", 16);
iVar3 = 10;
iVar4 = 3;
iVar1 = 4275;
iVar5 = 1;
iVar8 = 3;
break;
case 269:
StringCopy(&Var2, "G_FMF_10_4", 16);
iVar3 = 10;
iVar4 = 4;
iVar1 = 85;
iVar5 = 1;
iVar8 = 3;
break;
case 270:
StringCopy(&Var2, "G_FMF_10_5", 16);
iVar3 = 10;
iVar4 = 5;
iVar1 = 80;
iVar5 = 1;
iVar8 = 3;
break;
case 271:
StringCopy(&Var2, "G_FMF_10_6", 16);
iVar3 = 10;
iVar4 = 6;
iVar1 = 85;
iVar5 = 1;
iVar8 = 3;
break;
case 272:
StringCopy(&Var2, "G_FMF_10_7", 16);
iVar3 = 10;
iVar4 = 7;
iVar1 = 90;
iVar5 = 1;
iVar8 = 3;
break;
case 273:
StringCopy(&Var2, "CLO_EXF_G_10_8", 16);
iVar3 = 10;
iVar4 = 8;
iVar1 = 2315;
iVar5 = 1;
iVar8 = 3;
break;
case 274:
StringCopy(&Var2, "CLO_EXF_G_10_9", 16);
iVar3 = 10;
iVar4 = 9;
iVar1 = 1930;
iVar5 = 1;
iVar8 = 3;
break;
case 275:
StringCopy(&Var2, "CLO_EXF_G_10_10", 16);
iVar3 = 10;
iVar4 = 10;
iVar1 = 1995;
iVar5 = 1;
iVar8 = 3;
break;
case 276:
StringCopy(&Var2, "G_FMF_11_0", 16);
iVar3 = 11;
iVar4 = 0;
iVar1 = 3660;
iVar5 = 1;
iVar8 = 3;
break;
case 277:
StringCopy(&Var2, "G_FMF_11_1", 16);
iVar3 = 11;
iVar4 = 1;
iVar1 = 4165;
iVar5 = 1;
iVar8 = 3;
break;
case 278:
StringCopy(&Var2, "G_FMF_11_2", 16);
iVar3 = 11;
iVar4 = 2;
iVar1 = 3670;
iVar5 = 1;
iVar8 = 3;
break;
case 279:
StringCopy(&Var2, "G_FMF_11_3", 16);
iVar3 = 11;
iVar4 = 3;
iVar1 = 135;
iVar5 = 1;
iVar8 = 3;
break;
case 280:
StringCopy(&Var2, "G_FMF_11_4", 16);
iVar3 = 11;
iVar4 = 4;
iVar1 = 3620;
iVar5 = 1;
iVar8 = 3;
break;
case 281:
StringCopy(&Var2, "G_FMF_11_5", 16);
iVar3 = 11;
iVar4 = 5;
iVar1 = 3610;
iVar5 = 1;
iVar8 = 3;
break;
case 282:
StringCopy(&Var2, "G_FMF_11_6", 16);
iVar3 = 11;
iVar4 = 6;
iVar1 = 4140;
iVar5 = 1;
iVar8 = 3;
break;
case 283:
StringCopy(&Var2, "G_FMF_11_7", 16);
iVar3 = 11;
iVar4 = 7;
iVar1 = 130;
iVar5 = 1;
iVar8 = 3;
break;
case 284:
StringCopy(&Var2, "G_FMF_12_0", 16);
iVar3 = 12;
iVar4 = 0;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 285:
StringCopy(&Var2, "G_FMF_12_1", 16);
iVar3 = 12;
iVar4 = 1;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 286:
StringCopy(&Var2, "G_FMF_12_2", 16);
iVar3 = 12;
iVar4 = 2;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 287:
StringCopy(&Var2, "G_FMF_12_3", 16);
iVar3 = 12;
iVar4 = 3;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 288:
StringCopy(&Var2, "G_FMF_12_4", 16);
iVar3 = 12;
iVar4 = 4;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 289:
StringCopy(&Var2, "G_FMF_12_5", 16);
iVar3 = 12;
iVar4 = 5;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 290:
StringCopy(&Var2, "G_FMF_12_6", 16);
iVar3 = 12;
iVar4 = 6;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 291:
StringCopy(&Var2, "G_FMF_12_7", 16);
iVar3 = 12;
iVar4 = 7;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 292:
StringCopy(&Var2, "G_FMF_13_0", 16);
iVar3 = 13;
iVar4 = 0;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 293:
StringCopy(&Var2, "G_FMF_13_1", 16);
iVar3 = 13;
iVar4 = 1;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 294:
StringCopy(&Var2, "G_FMF_13_2", 16);
iVar3 = 13;
iVar4 = 2;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 295:
StringCopy(&Var2, "G_FMF_13_3", 16);
iVar3 = 13;
iVar4 = 3;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 296:
StringCopy(&Var2, "G_FMF_13_4", 16);
iVar3 = 13;
iVar4 = 4;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 297:
StringCopy(&Var2, "G_FMF_13_5", 16);
iVar3 = 13;
iVar4 = 5;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 298:
StringCopy(&Var2, "G_FMF_13_6", 16);
iVar3 = 13;
iVar4 = 6;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 299:
StringCopy(&Var2, "G_FMF_13_7", 16);
iVar3 = 13;
iVar4 = 7;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 300:
StringCopy(&Var2, "G_FMF_14_0", 16);
iVar3 = 14;
iVar4 = 0;
iVar1 = 325;
iVar5 = 1;
iVar8 = 3;
break;
case 301:
StringCopy(&Var2, "G_FMF_14_1", 16);
iVar3 = 14;
iVar4 = 1;
iVar1 = 110;
iVar5 = 1;
iVar8 = 3;
break;
case 302:
StringCopy(&Var2, "G_FMF_14_2", 16);
iVar3 = 14;
iVar4 = 2;
iVar1 = 115;
iVar5 = 1;
iVar8 = 3;
break;
case 303:
StringCopy(&Var2, "G_FMF_14_3", 16);
iVar3 = 14;
iVar4 = 3;
iVar1 = 120;
iVar5 = 1;
iVar8 = 3;
break;
case 304:
StringCopy(&Var2, "G_FMF_14_4", 16);
iVar3 = 14;
iVar4 = 4;
iVar1 = 135;
iVar5 = 1;
iVar8 = 3;
break;
case 305:
StringCopy(&Var2, "G_FMF_14_5", 16);
iVar3 = 14;
iVar4 = 5;
iVar1 = 110;
iVar5 = 1;
iVar8 = 3;
break;
case 306:
StringCopy(&Var2, "G_FMF_14_6", 16);
iVar3 = 14;
iVar4 = 6;
iVar1 = 115;
iVar5 = 1;
iVar8 = 3;
break;
case 307:
StringCopy(&Var2, "G_FMF_14_7", 16);
iVar3 = 14;
iVar4 = 7;
iVar1 = 120;
iVar5 = 1;
iVar8 = 3;
break;
case 308:
StringCopy(&Var2, "CLO_EXF_G_14_8", 16);
iVar3 = 14;
iVar4 = 8;
iVar1 = 1490;
iVar5 = 1;
iVar8 = 3;
break;
case 309:
StringCopy(&Var2, "CLO_EXF_G_14_9", 16);
iVar3 = 14;
iVar4 = 9;
iVar1 = 1105;
iVar5 = 1;
iVar8 = 3;
break;
case 310:
StringCopy(&Var2, "CLO_EXF_G_14_10", 16);
iVar3 = 14;
iVar4 = 10;
iVar1 = 1170;
iVar5 = 1;
iVar8 = 3;
break;
case 311:
StringCopy(&Var2, "G_FMF_15_0", 16);
iVar3 = 15;
iVar4 = 0;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 312:
StringCopy(&Var2, "G_FMF_15_1", 16);
iVar3 = 15;
iVar4 = 1;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 313:
StringCopy(&Var2, "G_FMF_15_2", 16);
iVar3 = 15;
iVar4 = 2;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 314:
StringCopy(&Var2, "G_FMF_15_3", 16);
iVar3 = 15;
iVar4 = 3;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 315:
StringCopy(&Var2, "G_FMF_15_4", 16);
iVar3 = 15;
iVar4 = 4;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 316:
StringCopy(&Var2, "G_FMF_15_5", 16);
iVar3 = 15;
iVar4 = 5;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 317:
StringCopy(&Var2, "G_FMF_15_6", 16);
iVar3 = 15;
iVar4 = 6;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 318:
StringCopy(&Var2, "G_FMF_15_7", 16);
iVar3 = 15;
iVar4 = 7;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
}
switch (iParam0)
{
case 319:
StringCopy(&Var2, "W_FMF_0_0", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 0;
iVar5 = 6;
iVar8 = 4;
bVar0 = true;
break;
case 320:
StringCopy(&Var2, "W_FMF_0_1", 16);
iVar3 = 0;
iVar4 = 1;
iVar1 = 0;
iVar5 = 6;
iVar8 = 4;
bVar0 = true;
break;
case 321:
StringCopy(&Var2, "W_FMF_0_2", 16);
iVar3 = 0;
iVar4 = 2;
iVar1 = 0;
iVar5 = 6;
iVar8 = 4;
bVar0 = true;
break;
case 322:
StringCopy(&Var2, "W_FMF_0_3", 16);
iVar3 = 0;
iVar4 = 3;
iVar1 = 0;
iVar5 = 6;
iVar8 = 4;
bVar0 = true;
break;
case 323:
StringCopy(&Var2, "W_FMF_0_4", 16);
iVar3 = 0;
iVar4 = 4;
iVar1 = 825;
iVar5 = 6;
iVar8 = 4;
break;
case 324:
StringCopy(&Var2, "W_FMF_1_0", 16);
iVar3 = 1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 6;
iVar8 = 4;
bVar0 = true;
break;
case 325:
StringCopy(&Var2, "W_FMF_1_1", 16);
iVar3 = 1;
iVar4 = 1;
iVar1 = 0;
iVar5 = 6;
iVar8 = 4;
bVar0 = true;
break;
case 326:
StringCopy(&Var2, "W_FMF_1_2", 16);
iVar3 = 1;
iVar4 = 2;
iVar1 = 0;
iVar5 = 6;
iVar8 = 4;
bVar0 = true;
break;
}
if (iVar8 == 1)
{
iVar9 = (iParam0 - 10);
if (iVar9 >= 0 && iVar9 < 121)
{
if (iVar9 > 8)
{
iVar9 = (iVar9 - 1);
}
iVar1 = round(((to_float(iVar1) * Global_262145.f_2043[iVar9]) * Global_287780.f_26));
}
}
else if (iVar8 == 2)
{
iVar10 = (iParam0 - 131);
if (iVar10 >= 0 && iVar10 < 24)
{
iVar1 = round(((to_float(iVar1) * Global_262145.f_2164[iVar10]) * Global_287780.f_27));
}
}
else if (iVar8 == 3)
{
iVar11 = (iParam0 - 155);
if (iVar11 >= 0 && iVar11 < 128)
{
iVar1 = round(((to_float(iVar1) * Global_262145.f_2189[iVar11]) * Global_287780.f_56));
}
}
else if (iVar8 == 4)
{
iVar12 = (iParam0 - 319);
if (iVar12 >= 0 && iVar12 < 10)
{
iVar1 = round(((to_float(iVar1) * Global_262145.f_2318[iVar12]) * Global_287780.f_28));
}
}
if (iParam0 >= 327)
{
Global_71017[0 /*14*/].f_5 = 4;
func_164(iVar7, iParam0, 327, iParam1);
if (Global_71017[0 /*14*/].f_7 > 0)
{
if (unk_0x4BE6499482BEE1D8(Global_2621444, -1757550583, 1))
{
Global_71017[0 /*14*/].f_7 = round((to_float(Global_71017[0 /*14*/].f_7) * Global_287780.f_26));
}
else if (unk_0x4BE6499482BEE1D8(Global_2621444, 97230661, 1))
{
Global_71017[0 /*14*/].f_7 = round((to_float(Global_71017[0 /*14*/].f_7) * Global_287780.f_56));
}
else if (unk_0x4BE6499482BEE1D8(Global_2621444, 1147826474, 1))
{
Global_71017[0 /*14*/].f_7 = round((to_float(Global_71017[0 /*14*/].f_7) * Global_287780.f_28));
}
}
}
else
{
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
}
void func_513(int iParam0, int iParam1)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 10;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "D_FMM_0_0", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 0;
break;
case 1:
StringCopy(&Var2, "D_FMM_2_0", 16);
iVar3 = 1;
iVar4 = 0;
iVar1 = 10000;
break;
case 2:
StringCopy(&Var2, "D_FMM_1_0", 16);
iVar3 = 2;
iVar4 = 0;
iVar1 = 5000;
break;
case 3:
StringCopy(&Var2, "D_FMM_2_0", 16);
iVar3 = 3;
iVar4 = 0;
iVar1 = 10000;
break;
case 4:
StringCopy(&Var2, "D_FMM_1_0", 16);
iVar3 = 4;
iVar4 = 0;
iVar1 = 5000;
break;
case 5:
StringCopy(&Var2, "D_FMM_2_0", 16);
iVar3 = 5;
iVar4 = 0;
iVar1 = 10000;
break;
default:
Global_71017[0 /*14*/].f_5 = 4;
func_164(iVar7, iParam0, 6, iParam1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_514(int iParam0, int iParam1)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 7;
switch (iParam0)
{
case 0:
iVar3 = 0;
iVar4 = 0;
iVar1 = 0;
break;
case 1:
iVar3 = 1;
iVar4 = 0;
if (Global_262145.f_4140 != -1)
{
iVar1 = Global_262145.f_4140;
}
else
{
iVar1 = 310;
}
break;
case 2:
iVar3 = 1;
iVar4 = 1;
if (Global_262145.f_4141 != -1)
{
iVar1 = Global_262145.f_4141;
}
else
{
iVar1 = 125;
}
break;
case 3:
iVar3 = 1;
iVar4 = 2;
if (Global_262145.f_4142 != -1)
{
iVar1 = Global_262145.f_4142;
}
else
{
iVar1 = 145;
}
break;
case 4:
iVar3 = 1;
iVar4 = 3;
if (Global_262145.f_4143 != -1)
{
iVar1 = Global_262145.f_4143;
}
else
{
iVar1 = 130;
}
break;
case 5:
iVar3 = 1;
iVar4 = 4;
if (Global_262145.f_4144 != -1)
{
iVar1 = Global_262145.f_4144;
}
else
{
iVar1 = 265;
}
break;
case 6:
iVar3 = 1;
iVar4 = 5;
if (Global_262145.f_4145 != -1)
{
iVar1 = Global_262145.f_4145;
}
else
{
iVar1 = 280;
}
break;
case 7:
iVar3 = 2;
iVar4 = 0;
if (Global_262145.f_4146 != -1)
{
iVar1 = Global_262145.f_4146;
}
else
{
iVar1 = 295;
}
break;
case 8:
iVar3 = 2;
iVar4 = 1;
if (Global_262145.f_4147 != -1)
{
iVar1 = Global_262145.f_4147;
}
else
{
iVar1 = 95;
}
break;
case 9:
iVar3 = 2;
iVar4 = 2;
if (Global_262145.f_4148 != -1)
{
iVar1 = Global_262145.f_4148;
}
else
{
iVar1 = 85;
}
break;
case 10:
iVar3 = 2;
iVar4 = 3;
if (Global_262145.f_4149 != -1)
{
iVar1 = Global_262145.f_4149;
}
else
{
iVar1 = 95;
}
break;
case 11:
iVar3 = 2;
iVar4 = 4;
if (Global_262145.f_4150 != -1)
{
iVar1 = Global_262145.f_4150;
}
else
{
iVar1 = 105;
}
break;
case 12:
iVar3 = 2;
iVar4 = 5;
if (Global_262145.f_4151 != -1)
{
iVar1 = Global_262145.f_4151;
}
else
{
iVar1 = 95;
}
break;
case 13:
iVar3 = 3;
iVar4 = 0;
if (Global_262145.f_4152 != -1)
{
iVar1 = Global_262145.f_4152;
}
else
{
iVar1 = 35;
}
break;
case 14:
iVar3 = 3;
iVar4 = 1;
if (Global_262145.f_4153 != -1)
{
iVar1 = Global_262145.f_4153;
}
else
{
iVar1 = 35;
}
break;
case 15:
iVar3 = 3;
iVar4 = 2;
if (Global_262145.f_4154 != -1)
{
iVar1 = Global_262145.f_4154;
}
else
{
iVar1 = 30;
}
break;
case 16:
iVar3 = 3;
iVar4 = 3;
if (Global_262145.f_4155 != -1)
{
iVar1 = Global_262145.f_4155;
}
else
{
iVar1 = 40;
}
break;
case 17:
iVar3 = 3;
iVar4 = 4;
if (Global_262145.f_4156 != -1)
{
iVar1 = Global_262145.f_4156;
}
else
{
iVar1 = 35;
}
break;
case 18:
iVar3 = 3;
iVar4 = 5;
if (Global_262145.f_4157 != -1)
{
iVar1 = Global_262145.f_4157;
}
else
{
iVar1 = 35;
}
break;
case 19:
iVar3 = 4;
iVar4 = 0;
iVar1 = 0;
bVar0 = true;
break;
case 20:
iVar3 = 4;
iVar4 = 1;
iVar1 = 0;
bVar0 = true;
break;
case 21:
iVar3 = 4;
iVar4 = 2;
if (Global_262145.f_4158 != -1)
{
iVar1 = Global_262145.f_4158;
}
else
{
iVar1 = 355;
}
break;
case 22:
iVar3 = 4;
iVar4 = 3;
if (Global_262145.f_4159 != -1)
{
iVar1 = Global_262145.f_4159;
}
else
{
iVar1 = 370;
}
break;
case 23:
iVar3 = 4;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 24:
iVar3 = 4;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 25:
iVar3 = 5;
iVar4 = 0;
iVar1 = 0;
bVar0 = true;
break;
case 26:
iVar3 = 5;
iVar4 = 1;
iVar1 = 0;
bVar0 = true;
break;
case 27:
iVar3 = 5;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 28:
iVar3 = 5;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 29:
iVar3 = 5;
iVar4 = 4;
if (Global_262145.f_4160 != -1)
{
iVar1 = Global_262145.f_4160;
}
else
{
iVar1 = 110;
}
break;
case 30:
iVar3 = 5;
iVar4 = 5;
if (Global_262145.f_4161 != -1)
{
iVar1 = Global_262145.f_4161;
}
else
{
iVar1 = 160;
}
break;
case 31:
iVar3 = 6;
iVar4 = 0;
if (Global_262145.f_4162 != -1)
{
iVar1 = Global_262145.f_4162;
}
else
{
iVar1 = 385;
}
break;
case 32:
iVar3 = 6;
iVar4 = 1;
if (Global_262145.f_4163 != -1)
{
iVar1 = Global_262145.f_4163;
}
else
{
iVar1 = 190;
}
break;
case 33:
iVar3 = 6;
iVar4 = 2;
if (Global_262145.f_4164 != -1)
{
iVar1 = Global_262145.f_4164;
}
else
{
iVar1 = 235;
}
break;
case 34:
iVar3 = 6;
iVar4 = 3;
if (Global_262145.f_4165 != -1)
{
iVar1 = Global_262145.f_4165;
}
else
{
iVar1 = 220;
}
break;
case 35:
iVar3 = 6;
iVar4 = 4;
if (Global_262145.f_4166 != -1)
{
iVar1 = Global_262145.f_4166;
}
else
{
iVar1 = 250;
}
break;
case 36:
iVar3 = 6;
iVar4 = 5;
if (Global_262145.f_4167 != -1)
{
iVar1 = Global_262145.f_4167;
}
else
{
iVar1 = 205;
}
break;
case 37:
iVar3 = 7;
iVar4 = 0;
if (Global_262145.f_4168 != -1)
{
iVar1 = Global_262145.f_4168;
}
else
{
iVar1 = 445;
}
break;
case 38:
iVar3 = 7;
iVar4 = 1;
if (Global_262145.f_4169 != -1)
{
iVar1 = Global_262145.f_4169;
}
else
{
iVar1 = 175;
}
break;
case 39:
iVar3 = 7;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 40:
iVar3 = 7;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 41:
iVar3 = 7;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 42:
iVar3 = 7;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 43:
iVar3 = 8;
iVar4 = 0;
iVar1 = 0;
bVar0 = true;
break;
case 44:
iVar3 = 8;
iVar4 = 1;
iVar1 = 0;
bVar0 = true;
break;
case 45:
iVar3 = 8;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 46:
iVar3 = 8;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 47:
iVar3 = 8;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 48:
iVar3 = 8;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 49:
iVar3 = 9;
iVar4 = 0;
if (Global_262145.f_4170 != -1)
{
iVar1 = Global_262145.f_4170;
}
else
{
iVar1 = 340;
}
break;
case 50:
iVar3 = 9;
iVar4 = 1;
iVar1 = 0;
bVar0 = true;
break;
case 51:
iVar3 = 9;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 52:
iVar3 = 9;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 53:
iVar3 = 9;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 54:
iVar3 = 9;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
default:
Global_71017[0 /*14*/].f_5 = 4;
func_164(iVar7, iParam0, 55, iParam1);
if (Global_71017[0 /*14*/].f_7 > 0)
{
Global_71017[0 /*14*/].f_7 = round((to_float(Global_71017[0 /*14*/].f_7) * Global_287780.f_58));
}
return;
break;
}
iVar1 = round((to_float(iVar1) * Global_287780.f_58));
StringCopy(&Var2, "T_FMF_", 16);
StringIntConCat(&Var2, iVar3, 16);
StringConCat(&Var2, "_", 16);
StringIntConCat(&Var2, iVar4, 16);
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_515(int iParam0, int iParam1)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 1;
switch (iParam0)
{
case 0:
iVar3 = 0;
iVar4 = 0;
iVar1 = 0;
break;
case 1:
iVar3 = 1;
iVar4 = 0;
iVar1 = 965;
break;
case 2:
iVar3 = 1;
iVar4 = 1;
iVar1 = 960;
break;
case 3:
iVar3 = 1;
iVar4 = 2;
iVar1 = 9500;
break;
case 4:
iVar3 = 1;
iVar4 = 3;
iVar1 = 975;
break;
case 5:
iVar3 = 2;
iVar4 = 0;
iVar1 = 1185;
break;
case 6:
iVar3 = 2;
iVar4 = 1;
iVar1 = 15000;
break;
case 7:
iVar3 = 2;
iVar4 = 2;
iVar1 = 1115;
break;
case 8:
iVar3 = 2;
iVar4 = 3;
iVar1 = 1105;
break;
case 9:
iVar3 = 3;
iVar4 = 0;
iVar1 = 25000;
break;
case 10:
iVar3 = 4;
iVar4 = 0;
iVar1 = 510;
break;
case 11:
iVar3 = 4;
iVar4 = 1;
iVar1 = 530;
break;
case 12:
iVar3 = 4;
iVar4 = 2;
iVar1 = 5500;
break;
case 13:
iVar3 = 4;
iVar4 = 3;
iVar1 = 535;
break;
case 14:
iVar3 = 5;
iVar4 = 0;
iVar1 = 1510;
break;
case 15:
iVar3 = 5;
iVar4 = 1;
iVar1 = 1530;
break;
case 16:
iVar3 = 5;
iVar4 = 2;
iVar1 = 14500;
break;
case 17:
iVar3 = 5;
iVar4 = 3;
iVar1 = 13000;
break;
case 18:
iVar3 = 6;
iVar4 = 0;
iVar1 = 8000;
break;
case 19:
iVar3 = 6;
iVar4 = 1;
iVar1 = 1265;
break;
case 20:
iVar3 = 6;
iVar4 = 2;
iVar1 = 8500;
break;
case 21:
iVar3 = 6;
iVar4 = 3;
iVar1 = 1210;
break;
case 22:
iVar3 = 7;
iVar4 = 0;
iVar1 = 2360;
break;
case 23:
iVar3 = 7;
iVar4 = 1;
iVar1 = 22500;
break;
case 24:
iVar3 = 7;
iVar4 = 2;
iVar1 = 2375;
break;
case 25:
iVar3 = 7;
iVar4 = 3;
iVar1 = 2485;
break;
default:
Global_71017[0 /*14*/].f_5 = 4;
func_164(iVar7, iParam0, 26, iParam1);
if (Global_71017[0 /*14*/].f_7 > 0)
{
Global_71017[0 /*14*/].f_7 = round((to_float(Global_71017[0 /*14*/].f_7) * Global_287780.f_29));
}
return;
break;
}
StringCopy(&Var2, "M_FMF_", 16);
StringIntConCat(&Var2, iVar3, 16);
StringConCat(&Var2, "_", 16);
StringIntConCat(&Var2, iVar4, 16);
iVar8 = (iParam0 - 1);
if (iVar8 >= 0 && iVar8 < 26)
{
iVar1 = round(((to_float(iVar1) * Global_262145.f_2016[iVar8]) * Global_287780.f_29));
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_516(int iParam0, int iParam1)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 6;
switch (iParam0)
{
case 0:
iVar3 = 0;
iVar4 = 0;
iVar1 = 1765;
break;
case 1:
iVar3 = 0;
iVar4 = 1;
iVar1 = 760;
break;
case 2:
iVar3 = 0;
iVar4 = 2;
iVar1 = 760;
break;
case 3:
iVar3 = 0;
iVar4 = 3;
iVar1 = 765;
break;
case 4:
iVar3 = 0;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 5:
iVar3 = 0;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 6:
iVar3 = 0;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 7:
iVar3 = 0;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 8:
iVar3 = 0;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 9:
iVar3 = 0;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 10:
iVar3 = 0;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 11:
iVar3 = 0;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 12:
iVar3 = 0;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 13:
iVar3 = 0;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 14:
iVar3 = 0;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 15:
iVar3 = 0;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
case 16:
iVar3 = 1;
iVar4 = 0;
iVar1 = 85;
break;
case 17:
iVar3 = 1;
iVar4 = 1;
iVar1 = 80;
break;
case 18:
iVar3 = 1;
iVar4 = 2;
iVar1 = 90;
break;
case 19:
iVar3 = 1;
iVar4 = 3;
iVar1 = 90;
break;
case 20:
iVar3 = 1;
iVar4 = 4;
iVar1 = 95;
break;
case 21:
iVar3 = 1;
iVar4 = 5;
iVar1 = 100;
break;
case 22:
iVar3 = 1;
iVar4 = 6;
iVar1 = 60;
break;
case 23:
iVar3 = 1;
iVar4 = 7;
iVar1 = 55;
break;
case 24:
iVar3 = 1;
iVar4 = 8;
iVar1 = 100;
break;
case 25:
iVar3 = 1;
iVar4 = 9;
iVar1 = 1255;
break;
case 26:
iVar3 = 1;
iVar4 = 10;
iVar1 = 65;
break;
case 27:
iVar3 = 1;
iVar4 = 11;
iVar1 = 1050;
break;
case 28:
iVar3 = 1;
iVar4 = 12;
iVar1 = 1895;
break;
case 29:
iVar3 = 1;
iVar4 = 13;
iVar1 = 185;
break;
case 30:
iVar3 = 1;
iVar4 = 14;
iVar1 = 190;
break;
case 31:
iVar3 = 1;
iVar4 = 15;
iVar1 = 115;
break;
}
switch (iParam0)
{
case 32:
iVar3 = 2;
iVar4 = 0;
iVar1 = 415;
break;
case 33:
iVar3 = 2;
iVar4 = 1;
iVar1 = 115;
break;
case 34:
iVar3 = 2;
iVar4 = 2;
iVar1 = 135;
break;
case 35:
iVar3 = 2;
iVar4 = 3;
iVar1 = 125;
break;
case 36:
iVar3 = 2;
iVar4 = 4;
iVar1 = 105;
break;
case 37:
iVar3 = 2;
iVar4 = 5;
iVar1 = 130;
break;
case 38:
iVar3 = 2;
iVar4 = 6;
iVar1 = 3530;
break;
case 39:
iVar3 = 2;
iVar4 = 7;
iVar1 = 2610;
break;
case 40:
iVar3 = 2;
iVar4 = 8;
iVar1 = 1295;
break;
case 41:
iVar3 = 2;
iVar4 = 9;
iVar1 = 120;
break;
case 42:
iVar3 = 2;
iVar4 = 10;
iVar1 = 160;
break;
case 43:
iVar3 = 2;
iVar4 = 11;
iVar1 = 160;
break;
case 44:
iVar3 = 2;
iVar4 = 12;
iVar1 = 145;
break;
case 45:
iVar3 = 2;
iVar4 = 13;
iVar1 = 105;
break;
case 46:
iVar3 = 2;
iVar4 = 14;
iVar1 = 115;
break;
case 47:
iVar3 = 2;
iVar4 = 15;
iVar1 = 150;
break;
case 48:
iVar3 = 3;
iVar4 = 0;
iVar1 = 540;
break;
case 49:
iVar3 = 3;
iVar4 = 1;
iVar1 = 115;
break;
case 50:
iVar3 = 3;
iVar4 = 2;
iVar1 = 110;
break;
case 51:
iVar3 = 3;
iVar4 = 3;
iVar1 = 120;
break;
case 52:
iVar3 = 3;
iVar4 = 4;
iVar1 = 460;
break;
case 53:
iVar3 = 3;
iVar4 = 5;
iVar1 = 120;
break;
case 54:
iVar3 = 3;
iVar4 = 6;
iVar1 = 120;
break;
case 55:
iVar3 = 3;
iVar4 = 7;
iVar1 = 415;
break;
case 56:
iVar3 = 3;
iVar4 = 8;
iVar1 = 135;
break;
case 57:
iVar3 = 3;
iVar4 = 9;
iVar1 = 140;
break;
case 58:
iVar3 = 3;
iVar4 = 10;
iVar1 = 160;
break;
case 59:
iVar3 = 3;
iVar4 = 11;
iVar1 = 120;
break;
case 60:
iVar3 = 3;
iVar4 = 12;
iVar1 = 1025;
break;
case 61:
iVar3 = 3;
iVar4 = 13;
iVar1 = 1560;
break;
case 62:
iVar3 = 3;
iVar4 = 14;
iVar1 = 145;
break;
case 63:
iVar3 = 3;
iVar4 = 15;
iVar1 = 120;
break;
}
switch (iParam0)
{
case 64:
iVar3 = 4;
iVar4 = 0;
iVar1 = 365;
break;
case 65:
iVar3 = 4;
iVar4 = 1;
iVar1 = 100;
break;
case 66:
iVar3 = 4;
iVar4 = 2;
iVar1 = 65;
break;
case 67:
iVar3 = 4;
iVar4 = 3;
iVar1 = 85;
break;
case 68:
iVar3 = 4;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 69:
iVar3 = 4;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 70:
iVar3 = 4;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 71:
iVar3 = 4;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 72:
iVar3 = 4;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 73:
iVar3 = 4;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 74:
iVar3 = 4;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 75:
iVar3 = 4;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 76:
iVar3 = 4;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 77:
iVar3 = 4;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 78:
iVar3 = 4;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 79:
iVar3 = 4;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
case 80:
iVar3 = 5;
iVar4 = 0;
iVar1 = 50;
break;
case 81:
iVar3 = 5;
iVar4 = 1;
iVar1 = 35;
break;
case 82:
iVar3 = 5;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 83:
iVar3 = 5;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 84:
iVar3 = 5;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 85:
iVar3 = 5;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 86:
iVar3 = 5;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 87:
iVar3 = 5;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 88:
iVar3 = 5;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 89:
iVar3 = 5;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 90:
iVar3 = 5;
iVar4 = 10;
iVar1 = 50;
break;
case 91:
iVar3 = 5;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 92:
iVar3 = 5;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 93:
iVar3 = 5;
iVar4 = 13;
iVar1 = 50;
break;
case 94:
iVar3 = 5;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 95:
iVar3 = 5;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
}
switch (iParam0)
{
case 96:
iVar3 = 6;
iVar4 = 0;
iVar1 = 2395;
break;
case 97:
iVar3 = 6;
iVar4 = 1;
iVar1 = 3675;
break;
case 98:
iVar3 = 6;
iVar4 = 2;
iVar1 = 320;
break;
case 99:
iVar3 = 6;
iVar4 = 3;
iVar1 = 3875;
break;
case 100:
iVar3 = 6;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 101:
iVar3 = 6;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 102:
iVar3 = 6;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 103:
iVar3 = 6;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 104:
iVar3 = 6;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 105:
iVar3 = 6;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 106:
iVar3 = 6;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 107:
iVar3 = 6;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 108:
iVar3 = 6;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 109:
iVar3 = 6;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 110:
iVar3 = 6;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 111:
iVar3 = 6;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
case 112:
iVar3 = 7;
iVar4 = 0;
iVar1 = 2050;
break;
case 113:
iVar3 = 7;
iVar4 = 1;
iVar1 = 375;
break;
case 114:
iVar3 = 7;
iVar4 = 2;
iVar1 = 2105;
break;
case 115:
iVar3 = 7;
iVar4 = 3;
iVar1 = 345;
break;
case 116:
iVar3 = 7;
iVar4 = 4;
iVar1 = 380;
break;
case 117:
iVar3 = 7;
iVar4 = 5;
iVar1 = 340;
break;
case 118:
iVar3 = 7;
iVar4 = 6;
iVar1 = 385;
break;
case 119:
iVar3 = 7;
iVar4 = 7;
iVar1 = 4135;
break;
case 120:
iVar3 = 7;
iVar4 = 8;
iVar1 = 370;
break;
case 121:
iVar3 = 7;
iVar4 = 9;
iVar1 = 375;
break;
case 122:
iVar3 = 7;
iVar4 = 10;
iVar1 = 385;
break;
case 123:
iVar3 = 7;
iVar4 = 11;
iVar1 = 365;
break;
case 124:
iVar3 = 7;
iVar4 = 12;
iVar1 = 325;
break;
case 125:
iVar3 = 7;
iVar4 = 13;
iVar1 = 325;
break;
case 126:
iVar3 = 7;
iVar4 = 14;
iVar1 = 370;
break;
case 127:
iVar3 = 7;
iVar4 = 15;
iVar1 = 330;
break;
}
switch (iParam0)
{
case 128:
iVar3 = 8;
iVar4 = 0;
iVar1 = 1025;
break;
case 129:
iVar3 = 8;
iVar4 = 1;
iVar1 = 390;
break;
case 130:
iVar3 = 8;
iVar4 = 2;
iVar1 = 400;
break;
case 131:
iVar3 = 8;
iVar4 = 3;
iVar1 = 390;
break;
case 132:
iVar3 = 8;
iVar4 = 4;
iVar1 = 365;
break;
case 133:
iVar3 = 8;
iVar4 = 5;
iVar1 = 410;
break;
case 134:
iVar3 = 8;
iVar4 = 6;
iVar1 = 4125;
break;
case 135:
iVar3 = 8;
iVar4 = 7;
iVar1 = 4365;
break;
case 136:
iVar3 = 8;
iVar4 = 8;
iVar1 = 5365;
break;
case 137:
iVar3 = 8;
iVar4 = 9;
iVar1 = 6225;
break;
case 138:
iVar3 = 8;
iVar4 = 10;
iVar1 = 3755;
break;
case 139:
iVar3 = 8;
iVar4 = 11;
iVar1 = 405;
break;
case 140:
iVar3 = 8;
iVar4 = 12;
iVar1 = 4115;
break;
case 141:
iVar3 = 8;
iVar4 = 13;
iVar1 = 2240;
break;
case 142:
iVar3 = 8;
iVar4 = 14;
iVar1 = 3850;
break;
case 143:
iVar3 = 8;
iVar4 = 15;
iVar1 = 3110;
break;
case 144:
iVar3 = 9;
iVar4 = 0;
iVar1 = 1950;
break;
case 145:
iVar3 = 9;
iVar4 = 1;
iVar1 = 455;
break;
case 146:
iVar3 = 9;
iVar4 = 2;
iVar1 = 405;
break;
case 147:
iVar3 = 9;
iVar4 = 3;
iVar1 = 410;
break;
case 148:
iVar3 = 9;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 149:
iVar3 = 9;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 150:
iVar3 = 9;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 151:
iVar3 = 9;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 152:
iVar3 = 9;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 153:
iVar3 = 9;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 154:
iVar3 = 9;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 155:
iVar3 = 9;
iVar4 = 11;
iVar1 = 415;
break;
case 156:
iVar3 = 9;
iVar4 = 12;
iVar1 = 4425;
break;
case 157:
iVar3 = 9;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 158:
iVar3 = 9;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 159:
iVar3 = 9;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
}
switch (iParam0)
{
case 160:
iVar3 = 10;
iVar4 = 0;
iVar1 = 115;
break;
case 161:
iVar3 = 10;
iVar4 = 1;
iVar1 = 65;
break;
case 162:
iVar3 = 10;
iVar4 = 2;
iVar1 = 85;
break;
case 163:
iVar3 = 10;
iVar4 = 3;
iVar1 = 75;
break;
case 164:
iVar3 = 10;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 165:
iVar3 = 10;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 166:
iVar3 = 10;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 167:
iVar3 = 10;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 168:
iVar3 = 10;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 169:
iVar3 = 10;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 170:
iVar3 = 10;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 171:
iVar3 = 10;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 172:
iVar3 = 10;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 173:
iVar3 = 10;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 174:
iVar3 = 10;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 175:
iVar3 = 10;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
case 176:
iVar3 = 11;
iVar4 = 0;
iVar1 = 115;
break;
case 177:
iVar3 = 11;
iVar4 = 1;
iVar1 = 360;
break;
case 178:
iVar3 = 11;
iVar4 = 2;
iVar1 = 135;
break;
case 179:
iVar3 = 11;
iVar4 = 3;
iVar1 = 175;
break;
case 180:
iVar3 = 11;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 181:
iVar3 = 11;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 182:
iVar3 = 11;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 183:
iVar3 = 11;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 184:
iVar3 = 11;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 185:
iVar3 = 11;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 186:
iVar3 = 11;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 187:
iVar3 = 11;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 188:
iVar3 = 11;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 189:
iVar3 = 11;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 190:
iVar3 = 11;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 191:
iVar3 = 11;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
case 192:
iVar3 = 12;
iVar4 = 0;
iVar1 = 0;
bVar0 = true;
break;
case 193:
iVar3 = 12;
iVar4 = 1;
iVar1 = 0;
bVar0 = true;
break;
case 194:
iVar3 = 12;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 195:
iVar3 = 12;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 196:
iVar3 = 12;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 197:
iVar3 = 12;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 198:
iVar3 = 12;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 199:
iVar3 = 12;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 200:
iVar3 = 12;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 201:
iVar3 = 12;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 202:
iVar3 = 12;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 203:
iVar3 = 12;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 204:
iVar3 = 12;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 205:
iVar3 = 12;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 206:
iVar3 = 12;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 207:
iVar3 = 12;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
}
switch (iParam0)
{
case 208:
iVar3 = 13;
iVar4 = 0;
iVar1 = 675;
break;
case 209:
iVar3 = 13;
iVar4 = 1;
iVar1 = 100;
break;
case 210:
iVar3 = 13;
iVar4 = 2;
iVar1 = 400;
break;
case 211:
iVar3 = 13;
iVar4 = 3;
iVar1 = 340;
break;
case 212:
iVar3 = 13;
iVar4 = 4;
iVar1 = 195;
break;
case 213:
iVar3 = 13;
iVar4 = 5;
iVar1 = 215;
break;
case 214:
iVar3 = 13;
iVar4 = 6;
iVar1 = 120;
break;
case 215:
iVar3 = 13;
iVar4 = 7;
iVar1 = 165;
break;
case 216:
iVar3 = 13;
iVar4 = 8;
iVar1 = 100;
break;
case 217:
iVar3 = 13;
iVar4 = 9;
iVar1 = 1040;
break;
case 218:
iVar3 = 13;
iVar4 = 10;
iVar1 = 100;
break;
case 219:
iVar3 = 13;
iVar4 = 11;
iVar1 = 120;
break;
case 220:
iVar3 = 13;
iVar4 = 12;
iVar1 = 210;
break;
case 221:
iVar3 = 13;
iVar4 = 13;
iVar1 = 205;
break;
case 222:
iVar3 = 13;
iVar4 = 14;
iVar1 = 200;
break;
case 223:
iVar3 = 13;
iVar4 = 15;
iVar1 = 100;
break;
case 224:
iVar3 = 14;
iVar4 = 0;
iVar1 = 1420;
break;
case 225:
iVar3 = 14;
iVar4 = 1;
iVar1 = 445;
break;
case 226:
iVar3 = 14;
iVar4 = 2;
iVar1 = 435;
break;
case 227:
iVar3 = 14;
iVar4 = 3;
iVar1 = 420;
break;
case 228:
iVar3 = 14;
iVar4 = 4;
iVar1 = 425;
break;
case 229:
iVar3 = 14;
iVar4 = 5;
iVar1 = 435;
break;
case 230:
iVar3 = 14;
iVar4 = 6;
iVar1 = 425;
break;
case 231:
iVar3 = 14;
iVar4 = 7;
iVar1 = 430;
break;
case 232:
iVar3 = 14;
iVar4 = 8;
iVar1 = 3215;
break;
case 233:
iVar3 = 14;
iVar4 = 9;
iVar1 = 3320;
break;
case 234:
iVar3 = 14;
iVar4 = 10;
iVar1 = 440;
break;
case 235:
iVar3 = 14;
iVar4 = 11;
iVar1 = 440;
break;
case 236:
iVar3 = 14;
iVar4 = 12;
iVar1 = 445;
break;
case 237:
iVar3 = 14;
iVar4 = 13;
iVar1 = 450;
break;
case 238:
iVar3 = 14;
iVar4 = 14;
iVar1 = 450;
break;
case 239:
iVar3 = 14;
iVar4 = 15;
iVar1 = 1255;
break;
case 240:
iVar3 = 15;
iVar4 = 0;
iVar1 = 750;
break;
case 241:
iVar3 = 15;
iVar4 = 1;
iVar1 = 165;
break;
case 242:
iVar3 = 15;
iVar4 = 2;
iVar1 = 460;
break;
case 243:
iVar3 = 15;
iVar4 = 3;
iVar1 = 190;
break;
case 244:
iVar3 = 15;
iVar4 = 4;
iVar1 = 195;
break;
case 245:
iVar3 = 15;
iVar4 = 5;
iVar1 = 200;
break;
case 246:
iVar3 = 15;
iVar4 = 6;
iVar1 = 205;
break;
case 247:
iVar3 = 15;
iVar4 = 7;
iVar1 = 210;
break;
case 248:
iVar3 = 15;
iVar4 = 8;
iVar1 = 215;
break;
case 249:
iVar3 = 15;
iVar4 = 9;
iVar1 = 220;
break;
case 250:
iVar3 = 15;
iVar4 = 10;
iVar1 = 455;
break;
case 251:
iVar3 = 15;
iVar4 = 11;
iVar1 = 175;
break;
case 252:
iVar3 = 15;
iVar4 = 12;
iVar1 = 800;
break;
case 253:
iVar3 = 15;
iVar4 = 13;
iVar1 = 790;
break;
case 254:
iVar3 = 15;
iVar4 = 14;
iVar1 = 175;
break;
case 255:
iVar3 = 15;
iVar4 = 15;
iVar1 = 190;
break;
}
StringCopy(&Var2, "F_FMF_", 16);
StringIntConCat(&Var2, iVar3, 16);
StringConCat(&Var2, "_", 16);
StringIntConCat(&Var2, iVar4, 16);
iVar8 = iParam0;
if (iVar8 >= 0 && iVar8 < 256)
{
iVar1 = round(((to_float(iVar1) * Global_262145.f_1759[iVar8]) * Global_287780.f_25));
}
if (iParam0 >= 256)
{
Global_71017[0 /*14*/].f_5 = 4;
func_164(iVar7, iParam0, 256, iParam1);
if (Global_71017[0 /*14*/].f_7 > 0)
{
Global_71017[0 /*14*/].f_7 = round((to_float(Global_71017[0 /*14*/].f_7) * Global_287780.f_25));
}
}
else
{
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
}
void func_517(int iParam0, int iParam1)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 4;
switch (iParam0)
{
case 0:
iVar3 = 0;
iVar4 = 0;
iVar1 = 270;
break;
case 1:
iVar3 = 0;
iVar4 = 1;
iVar1 = 750;
break;
case 2:
iVar3 = 0;
iVar4 = 2;
iVar1 = 450;
break;
case 3:
iVar3 = 0;
iVar4 = 3;
iVar1 = 4875;
break;
case 4:
iVar3 = 0;
iVar4 = 4;
iVar1 = 1760;
break;
case 5:
iVar3 = 0;
iVar4 = 5;
iVar1 = 1090;
break;
case 6:
iVar3 = 0;
iVar4 = 6;
iVar1 = 2465;
break;
case 7:
iVar3 = 0;
iVar4 = 7;
iVar1 = 305;
break;
case 8:
iVar3 = 0;
iVar4 = 8;
iVar1 = 290;
break;
case 9:
iVar3 = 0;
iVar4 = 9;
iVar1 = 410;
break;
case 10:
iVar3 = 0;
iVar4 = 10;
iVar1 = 255;
break;
case 11:
iVar3 = 0;
iVar4 = 11;
iVar1 = 255;
break;
case 12:
iVar3 = 0;
iVar4 = 12;
iVar1 = 405;
break;
case 13:
iVar3 = 0;
iVar4 = 13;
iVar1 = 5000;
break;
case 14:
iVar3 = 0;
iVar4 = 14;
iVar1 = 4480;
break;
case 15:
iVar3 = 0;
iVar4 = 15;
iVar1 = 4335;
break;
}
switch (iParam0)
{
case 16:
iVar3 = 1;
iVar4 = 0;
iVar1 = 375;
break;
case 17:
iVar3 = 1;
iVar4 = 1;
iVar1 = 265;
break;
case 18:
iVar3 = 1;
iVar4 = 2;
iVar1 = 275;
break;
case 19:
iVar3 = 1;
iVar4 = 3;
iVar1 = 280;
break;
case 20:
iVar3 = 1;
iVar4 = 4;
iVar1 = 300;
break;
case 21:
iVar3 = 1;
iVar4 = 5;
iVar1 = 265;
break;
case 22:
iVar3 = 1;
iVar4 = 6;
iVar1 = 255;
break;
case 23:
iVar3 = 1;
iVar4 = 7;
iVar1 = 250;
break;
case 24:
iVar3 = 1;
iVar4 = 8;
iVar1 = 260;
break;
case 25:
iVar3 = 1;
iVar4 = 9;
iVar1 = 250;
break;
case 26:
iVar3 = 1;
iVar4 = 10;
iVar1 = 225;
break;
case 27:
iVar3 = 1;
iVar4 = 11;
iVar1 = 230;
break;
case 28:
iVar3 = 1;
iVar4 = 12;
iVar1 = 215;
break;
case 29:
iVar3 = 1;
iVar4 = 13;
iVar1 = 650;
break;
case 30:
iVar3 = 1;
iVar4 = 14;
iVar1 = 425;
break;
case 31:
iVar3 = 1;
iVar4 = 15;
iVar1 = 345;
break;
}
switch (iParam0)
{
case 32:
iVar3 = 2;
iVar4 = 0;
iVar1 = 115;
break;
case 33:
iVar3 = 2;
iVar4 = 1;
iVar1 = 110;
break;
case 34:
iVar3 = 2;
iVar4 = 2;
iVar1 = 250;
break;
case 35:
iVar3 = 2;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 36:
iVar3 = 2;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 37:
iVar3 = 2;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 38:
iVar3 = 2;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 39:
iVar3 = 2;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 40:
iVar3 = 2;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 41:
iVar3 = 2;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 42:
iVar3 = 2;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 43:
iVar3 = 2;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 44:
iVar3 = 2;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 45:
iVar3 = 2;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 46:
iVar3 = 2;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 47:
iVar3 = 2;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
}
switch (iParam0)
{
case 48:
iVar3 = 3;
iVar4 = 0;
iVar1 = 290;
break;
case 49:
iVar3 = 3;
iVar4 = 1;
iVar1 = 115;
break;
case 50:
iVar3 = 3;
iVar4 = 2;
iVar1 = 135;
break;
case 51:
iVar3 = 3;
iVar4 = 3;
iVar1 = 125;
break;
case 52:
iVar3 = 3;
iVar4 = 4;
iVar1 = 120;
break;
case 53:
iVar3 = 3;
iVar4 = 5;
iVar1 = 130;
break;
case 54:
iVar3 = 3;
iVar4 = 6;
iVar1 = 110;
break;
case 55:
iVar3 = 3;
iVar4 = 7;
iVar1 = 525;
break;
case 56:
iVar3 = 3;
iVar4 = 8;
iVar1 = 115;
break;
case 57:
iVar3 = 3;
iVar4 = 9;
iVar1 = 535;
break;
case 58:
iVar3 = 3;
iVar4 = 10;
iVar1 = 135;
break;
case 59:
iVar3 = 3;
iVar4 = 11;
iVar1 = 120;
break;
case 60:
iVar3 = 3;
iVar4 = 12;
iVar1 = 130;
break;
case 61:
iVar3 = 3;
iVar4 = 13;
iVar1 = 140;
break;
case 62:
iVar3 = 3;
iVar4 = 14;
iVar1 = 130;
break;
case 63:
iVar3 = 3;
iVar4 = 15;
iVar1 = 520;
break;
}
switch (iParam0)
{
case 64:
iVar3 = 4;
iVar4 = 0;
iVar1 = 215;
break;
case 65:
iVar3 = 4;
iVar4 = 1;
iVar1 = 220;
break;
case 66:
iVar3 = 4;
iVar4 = 2;
iVar1 = 225;
break;
case 67:
iVar3 = 4;
iVar4 = 3;
iVar1 = 245;
break;
case 68:
iVar3 = 4;
iVar4 = 4;
iVar1 = 215;
break;
case 69:
iVar3 = 4;
iVar4 = 5;
iVar1 = 630;
break;
case 70:
iVar3 = 4;
iVar4 = 6;
iVar1 = 250;
break;
case 71:
iVar3 = 4;
iVar4 = 7;
iVar1 = 260;
break;
case 72:
iVar3 = 4;
iVar4 = 8;
iVar1 = 200;
break;
case 73:
iVar3 = 4;
iVar4 = 9;
iVar1 = 225;
break;
case 74:
iVar3 = 4;
iVar4 = 10;
iVar1 = 230;
break;
case 75:
iVar3 = 4;
iVar4 = 11;
iVar1 = 725;
break;
case 76:
iVar3 = 4;
iVar4 = 12;
iVar1 = 650;
break;
case 77:
iVar3 = 4;
iVar4 = 13;
iVar1 = 230;
break;
case 78:
iVar3 = 4;
iVar4 = 14;
iVar1 = 230;
break;
case 79:
iVar3 = 4;
iVar4 = 15;
iVar1 = 280;
break;
}
switch (iParam0)
{
case 80:
iVar3 = 5;
iVar4 = 0;
iVar1 = 0;
bVar0 = true;
break;
case 81:
iVar3 = 5;
iVar4 = 1;
iVar1 = 0;
bVar0 = true;
break;
case 82:
iVar3 = 5;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 83:
iVar3 = 5;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 84:
iVar3 = 5;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 85:
iVar3 = 5;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 86:
iVar3 = 5;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 87:
iVar3 = 5;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 88:
iVar3 = 5;
iVar4 = 8;
iVar1 = 330;
break;
case 89:
iVar3 = 5;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 90:
iVar3 = 5;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 91:
iVar3 = 5;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 92:
iVar3 = 5;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 93:
iVar3 = 5;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 94:
iVar3 = 5;
iVar4 = 14;
iVar1 = 320;
break;
case 95:
iVar3 = 5;
iVar4 = 15;
iVar1 = 315;
break;
}
switch (iParam0)
{
case 96:
iVar3 = 6;
iVar4 = 0;
iVar1 = 850;
break;
case 97:
iVar3 = 6;
iVar4 = 1;
iVar1 = 535;
break;
case 98:
iVar3 = 6;
iVar4 = 2;
iVar1 = 530;
break;
case 99:
iVar3 = 6;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 100:
iVar3 = 6;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 101:
iVar3 = 6;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 102:
iVar3 = 6;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 103:
iVar3 = 6;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 104:
iVar3 = 6;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 105:
iVar3 = 6;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 106:
iVar3 = 6;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 107:
iVar3 = 6;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 108:
iVar3 = 6;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 109:
iVar3 = 6;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 110:
iVar3 = 6;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 111:
iVar3 = 6;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
}
switch (iParam0)
{
case 112:
iVar3 = 7;
iVar4 = 0;
iVar1 = 890;
break;
case 113:
iVar3 = 7;
iVar4 = 1;
iVar1 = 440;
break;
case 114:
iVar3 = 7;
iVar4 = 2;
iVar1 = 455;
break;
case 115:
iVar3 = 7;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 116:
iVar3 = 7;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 117:
iVar3 = 7;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 118:
iVar3 = 7;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 119:
iVar3 = 7;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 120:
iVar3 = 7;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 121:
iVar3 = 7;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 122:
iVar3 = 7;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 123:
iVar3 = 7;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 124:
iVar3 = 7;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 125:
iVar3 = 7;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 126:
iVar3 = 7;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 127:
iVar3 = 7;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
}
switch (iParam0)
{
case 128:
iVar3 = 8;
iVar4 = 0;
iVar1 = 295;
break;
case 129:
iVar3 = 8;
iVar4 = 1;
iVar1 = 180;
break;
case 130:
iVar3 = 8;
iVar4 = 2;
iVar1 = 150;
break;
case 131:
iVar3 = 8;
iVar4 = 3;
iVar1 = 150;
break;
case 132:
iVar3 = 8;
iVar4 = 4;
iVar1 = 155;
break;
case 133:
iVar3 = 8;
iVar4 = 5;
iVar1 = 840;
break;
case 134:
iVar3 = 8;
iVar4 = 6;
iVar1 = 205;
break;
case 135:
iVar3 = 8;
iVar4 = 7;
iVar1 = 150;
break;
case 136:
iVar3 = 8;
iVar4 = 8;
iVar1 = 950;
break;
case 137:
iVar3 = 8;
iVar4 = 9;
iVar1 = 580;
break;
case 138:
iVar3 = 8;
iVar4 = 10;
iVar1 = 200;
break;
case 139:
iVar3 = 8;
iVar4 = 11;
iVar1 = 665;
break;
case 140:
iVar3 = 8;
iVar4 = 12;
iVar1 = 780;
break;
case 141:
iVar3 = 8;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 142:
iVar3 = 8;
iVar4 = 14;
iVar1 = 615;
break;
case 143:
iVar3 = 8;
iVar4 = 15;
iVar1 = 250;
break;
}
switch (iParam0)
{
case 144:
iVar3 = 9;
iVar4 = 0;
iVar1 = 495;
break;
case 145:
iVar3 = 9;
iVar4 = 1;
iVar1 = 435;
break;
case 146:
iVar3 = 9;
iVar4 = 2;
iVar1 = 420;
break;
case 147:
iVar3 = 9;
iVar4 = 3;
iVar1 = 390;
break;
case 148:
iVar3 = 9;
iVar4 = 4;
iVar1 = 485;
break;
case 149:
iVar3 = 9;
iVar4 = 5;
iVar1 = 380;
break;
case 150:
iVar3 = 9;
iVar4 = 6;
iVar1 = 1295;
break;
case 151:
iVar3 = 9;
iVar4 = 7;
iVar1 = 1135;
break;
case 152:
iVar3 = 9;
iVar4 = 8;
iVar1 = 1425;
break;
case 153:
iVar3 = 9;
iVar4 = 9;
iVar1 = 1645;
break;
case 154:
iVar3 = 9;
iVar4 = 10;
iVar1 = 1925;
break;
case 155:
iVar3 = 9;
iVar4 = 11;
iVar1 = 2250;
break;
case 156:
iVar3 = 9;
iVar4 = 12;
iVar1 = 365;
break;
case 157:
iVar3 = 9;
iVar4 = 13;
iVar1 = 360;
break;
case 158:
iVar3 = 9;
iVar4 = 14;
iVar1 = 2245;
break;
case 159:
iVar3 = 9;
iVar4 = 15;
iVar1 = 2170;
break;
case 160:
iVar3 = 10;
iVar4 = 0;
iVar1 = 50;
break;
case 161:
iVar3 = 10;
iVar4 = 1;
iVar1 = 100;
break;
case 162:
iVar3 = 10;
iVar4 = 2;
iVar1 = 65;
break;
case 163:
iVar3 = 10;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 164:
iVar3 = 10;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 165:
iVar3 = 10;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 166:
iVar3 = 10;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 167:
iVar3 = 10;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 168:
iVar3 = 10;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 169:
iVar3 = 10;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 170:
iVar3 = 10;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 171:
iVar3 = 10;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 172:
iVar3 = 10;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 173:
iVar3 = 10;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 174:
iVar3 = 10;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 175:
iVar3 = 10;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
}
switch (iParam0)
{
case 176:
iVar3 = 11;
iVar4 = 0;
iVar1 = 275;
break;
case 177:
iVar3 = 11;
iVar4 = 1;
iVar1 = 300;
break;
case 178:
iVar3 = 11;
iVar4 = 2;
iVar1 = 145;
break;
case 179:
iVar3 = 11;
iVar4 = 3;
iVar1 = 150;
break;
case 180:
iVar3 = 11;
iVar4 = 4;
iVar1 = 110;
break;
case 181:
iVar3 = 11;
iVar4 = 5;
iVar1 = 95;
break;
case 182:
iVar3 = 11;
iVar4 = 6;
iVar1 = 155;
break;
case 183:
iVar3 = 11;
iVar4 = 7;
iVar1 = 155;
break;
case 184:
iVar3 = 11;
iVar4 = 8;
iVar1 = 510;
break;
case 185:
iVar3 = 11;
iVar4 = 9;
iVar1 = 165;
break;
case 186:
iVar3 = 11;
iVar4 = 10;
iVar1 = 465;
break;
case 187:
iVar3 = 11;
iVar4 = 11;
iVar1 = 250;
break;
case 188:
iVar3 = 11;
iVar4 = 12;
iVar1 = 110;
break;
case 189:
iVar3 = 11;
iVar4 = 13;
iVar1 = 470;
break;
case 190:
iVar3 = 11;
iVar4 = 14;
iVar1 = 480;
break;
case 191:
iVar3 = 11;
iVar4 = 15;
iVar1 = 155;
break;
case 192:
iVar3 = 12;
iVar4 = 0;
iVar1 = 275;
break;
case 193:
iVar3 = 12;
iVar4 = 1;
iVar1 = 395;
break;
case 194:
iVar3 = 12;
iVar4 = 2;
iVar1 = 285;
break;
case 195:
iVar3 = 12;
iVar4 = 3;
iVar1 = 560;
break;
case 196:
iVar3 = 12;
iVar4 = 4;
iVar1 = 595;
break;
case 197:
iVar3 = 12;
iVar4 = 5;
iVar1 = 295;
break;
case 198:
iVar3 = 12;
iVar4 = 6;
iVar1 = 230;
break;
case 199:
iVar3 = 12;
iVar4 = 7;
iVar1 = 215;
break;
case 200:
iVar3 = 12;
iVar4 = 8;
iVar1 = 270;
break;
case 201:
iVar3 = 12;
iVar4 = 9;
iVar1 = 295;
break;
case 202:
iVar3 = 12;
iVar4 = 10;
iVar1 = 285;
break;
case 203:
iVar3 = 12;
iVar4 = 11;
iVar1 = 215;
break;
case 204:
iVar3 = 12;
iVar4 = 12;
iVar1 = 210;
break;
case 205:
iVar3 = 12;
iVar4 = 13;
iVar1 = 290;
break;
case 206:
iVar3 = 12;
iVar4 = 14;
iVar1 = 230;
break;
case 207:
iVar3 = 12;
iVar4 = 15;
iVar1 = 215;
break;
}
switch (iParam0)
{
case 208:
iVar3 = 13;
iVar4 = 0;
iVar1 = 0;
bVar0 = true;
break;
case 209:
iVar3 = 13;
iVar4 = 1;
iVar1 = 0;
bVar0 = true;
break;
case 210:
iVar3 = 13;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 211:
iVar3 = 13;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 212:
iVar3 = 13;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 213:
iVar3 = 13;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 214:
iVar3 = 13;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 215:
iVar3 = 13;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 216:
iVar3 = 13;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 217:
iVar3 = 13;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 218:
iVar3 = 13;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 219:
iVar3 = 13;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 220:
iVar3 = 13;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 221:
iVar3 = 13;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 222:
iVar3 = 13;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 223:
iVar3 = 13;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
case 224:
iVar3 = 14;
iVar4 = 0;
iVar1 = 90;
break;
case 225:
iVar3 = 14;
iVar4 = 1;
iVar1 = 105;
break;
case 226:
iVar3 = 14;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 227:
iVar3 = 14;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 228:
iVar3 = 14;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 229:
iVar3 = 14;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 230:
iVar3 = 14;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 231:
iVar3 = 14;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 232:
iVar3 = 14;
iVar4 = 8;
iVar1 = 100;
break;
case 233:
iVar3 = 14;
iVar4 = 9;
iVar1 = 105;
break;
case 234:
iVar3 = 14;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 235:
iVar3 = 14;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 236:
iVar3 = 14;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 237:
iVar3 = 14;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 238:
iVar3 = 14;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 239:
iVar3 = 14;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
}
switch (iParam0)
{
case 240:
iVar3 = 15;
iVar4 = 0;
iVar1 = 230;
break;
case 241:
iVar3 = 15;
iVar4 = 1;
iVar1 = 0;
bVar0 = true;
break;
case 242:
iVar3 = 15;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 243:
iVar3 = 15;
iVar4 = 3;
iVar1 = 130;
break;
case 244:
iVar3 = 15;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 245:
iVar3 = 15;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 246:
iVar3 = 15;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 247:
iVar3 = 15;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 248:
iVar3 = 15;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 249:
iVar3 = 15;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 250:
iVar3 = 15;
iVar4 = 10;
iVar1 = 350;
break;
case 251:
iVar3 = 15;
iVar4 = 11;
iVar1 = 335;
break;
case 252:
iVar3 = 15;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 253:
iVar3 = 15;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 254:
iVar3 = 15;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 255:
iVar3 = 15;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
}
StringCopy(&Var2, "L_FMF_", 16);
StringIntConCat(&Var2, iVar3, 16);
StringConCat(&Var2, "_", 16);
StringIntConCat(&Var2, iVar4, 16);
iVar8 = iParam0;
if (iVar8 >= 0 && iVar8 < 256)
{
iVar1 = round(((to_float(iVar1) * Global_262145.f_1245[iVar8]) * Global_287780.f_23));
}
if (iParam0 >= 256)
{
Global_71017[0 /*14*/].f_5 = 4;
func_164(iVar7, iParam0, 256, iParam1);
if (Global_71017[0 /*14*/].f_7 > 0)
{
Global_71017[0 /*14*/].f_7 = round((to_float(Global_71017[0 /*14*/].f_7) * Global_287780.f_23));
}
}
else
{
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
}
void func_518(int iParam0, int iParam1)
{
bool bVar0;
int iVar1;
char* sVar2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 3;
switch (iParam0)
{
case 0:
iVar3 = 0;
iVar4 = 0;
break;
case 1:
iVar3 = 1;
iVar4 = 0;
break;
case 2:
iVar3 = 2;
iVar4 = 0;
break;
case 3:
iVar3 = 3;
iVar4 = 0;
break;
case 4:
iVar3 = 4;
iVar4 = 0;
break;
case 5:
iVar3 = 5;
iVar4 = 0;
break;
case 6:
iVar3 = 6;
iVar4 = 0;
break;
case 7:
iVar3 = 7;
iVar4 = 0;
break;
case 8:
iVar3 = 8;
iVar4 = 0;
break;
case 9:
iVar3 = 9;
iVar4 = 0;
break;
case 10:
iVar3 = 10;
iVar4 = 0;
break;
case 11:
iVar3 = 11;
iVar4 = 0;
break;
case 12:
iVar3 = 12;
iVar4 = 0;
break;
case 13:
iVar3 = 13;
iVar4 = 0;
break;
case 14:
iVar3 = 14;
iVar4 = 0;
break;
case 15:
iVar3 = 15;
iVar4 = 0;
break;
}
if (iParam0 >= 16)
{
Global_71017[0 /*14*/].f_5 = 4;
func_164(iVar7, iParam0, 16, iParam1);
return;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &sVar2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_519(int iParam0, int iParam1)
{
bool bVar0;
int iVar1;
char* sVar2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 9;
switch (iParam0)
{
case 0:
iVar3 = 0;
iVar4 = 0;
break;
case 1:
iVar3 = 1;
iVar4 = 0;
break;
case 2:
iVar3 = 1;
iVar4 = 1;
break;
case 3:
iVar3 = 1;
iVar4 = 2;
break;
case 4:
iVar3 = 1;
iVar4 = 3;
break;
case 5:
iVar3 = 1;
iVar4 = 4;
break;
case 6:
iVar3 = 2;
iVar4 = 0;
break;
case 7:
iVar3 = 2;
iVar4 = 1;
break;
case 8:
iVar3 = 2;
iVar4 = 2;
break;
case 9:
iVar3 = 2;
iVar4 = 3;
break;
case 10:
iVar3 = 2;
iVar4 = 4;
break;
case 11:
iVar3 = 3;
iVar4 = 0;
break;
case 12:
iVar3 = 3;
iVar4 = 1;
break;
case 13:
iVar3 = 3;
iVar4 = 2;
break;
case 14:
iVar3 = 3;
iVar4 = 3;
break;
case 15:
iVar3 = 3;
iVar4 = 4;
break;
case 16:
iVar3 = 4;
iVar4 = 0;
break;
case 17:
iVar3 = 4;
iVar4 = 1;
break;
case 18:
iVar3 = 4;
iVar4 = 2;
break;
case 19:
iVar3 = 4;
iVar4 = 3;
break;
case 20:
iVar3 = 4;
iVar4 = 4;
break;
case 21:
iVar3 = 5;
iVar4 = 0;
break;
case 22:
iVar3 = 5;
iVar4 = 1;
break;
case 23:
iVar3 = 5;
iVar4 = 2;
break;
case 24:
iVar3 = 5;
iVar4 = 3;
break;
case 25:
iVar3 = 5;
iVar4 = 4;
break;
case 26:
iVar3 = 6;
iVar4 = 0;
break;
case 27:
iVar3 = 6;
iVar4 = 1;
break;
case 28:
iVar3 = 6;
iVar4 = 2;
break;
case 29:
iVar3 = 6;
iVar4 = 3;
break;
case 30:
iVar3 = 6;
iVar4 = 4;
break;
case 31:
iVar3 = 7;
iVar4 = 0;
break;
case 32:
iVar3 = 7;
iVar4 = 1;
break;
case 33:
iVar3 = 7;
iVar4 = 2;
break;
case 34:
iVar3 = 7;
iVar4 = 3;
break;
case 35:
iVar3 = 7;
iVar4 = 4;
break;
}
if (iParam0 >= 36)
{
Global_71017[0 /*14*/].f_5 = 4;
func_164(iVar7, iParam0, 36, iParam1);
return;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &sVar2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_520(int iParam0, int iParam1)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
int iVar9;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 8;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "U_FMF_0_0", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 250;
break;
case 1:
StringCopy(&Var2, "U_FMF_0_1", 16);
iVar3 = 0;
iVar4 = 1;
iVar1 = 225;
break;
case 2:
StringCopy(&Var2, "U_FMF_0_2", 16);
iVar3 = 0;
iVar4 = 2;
iVar1 = 50;
break;
case 3:
StringCopy(&Var2, "U_FMF_0_3", 16);
iVar3 = 0;
iVar4 = 3;
iVar1 = 40;
break;
case 4:
StringCopy(&Var2, "U_FMF_0_4", 16);
iVar3 = 0;
iVar4 = 4;
iVar1 = 40;
break;
case 5:
StringCopy(&Var2, "U_FMF_0_5", 16);
iVar3 = 0;
iVar4 = 5;
iVar1 = 40;
break;
case 6:
StringCopy(&Var2, "U_FMF_0_6", 16);
iVar3 = 0;
iVar4 = 6;
iVar1 = 40;
break;
case 7:
StringCopy(&Var2, "U_FMF_0_7", 16);
iVar3 = 0;
iVar4 = 7;
iVar1 = 45;
break;
case 8:
StringCopy(&Var2, "U_FMF_0_8", 16);
iVar3 = 0;
iVar4 = 8;
iVar1 = 40;
break;
case 9:
StringCopy(&Var2, "U_FMF_0_9", 16);
iVar3 = 0;
iVar4 = 9;
iVar1 = 40;
break;
case 10:
StringCopy(&Var2, "U_FMF_0_10", 16);
iVar3 = 0;
iVar4 = 10;
iVar1 = 135;
break;
case 11:
StringCopy(&Var2, "U_FMF_0_11", 16);
iVar3 = 0;
iVar4 = 11;
iVar1 = 60;
break;
case 12:
StringCopy(&Var2, "U_FMF_0_12", 16);
iVar3 = 0;
iVar4 = 12;
iVar1 = 220;
break;
case 13:
StringCopy(&Var2, "U_FMF_0_13", 16);
iVar3 = 0;
iVar4 = 13;
iVar1 = 45;
break;
case 14:
StringCopy(&Var2, "U_FMF_0_14", 16);
iVar3 = 0;
iVar4 = 14;
iVar1 = 45;
break;
case 15:
StringCopy(&Var2, "U_FMF_0_15", 16);
iVar3 = 0;
iVar4 = 15;
iVar1 = 125;
break;
case 16:
StringCopy(&Var2, "U_FMF_0_0", 16);
iVar3 = 1;
iVar4 = 0;
iVar1 = 250;
break;
case 17:
StringCopy(&Var2, "U_FMF_0_1", 16);
iVar3 = 1;
iVar4 = 1;
iVar1 = 60;
break;
case 18:
StringCopy(&Var2, "U_FMF_0_2", 16);
iVar3 = 1;
iVar4 = 2;
iVar1 = 50;
break;
case 19:
StringCopy(&Var2, "U_FMF_0_3", 16);
iVar3 = 1;
iVar4 = 3;
iVar1 = 40;
break;
case 20:
StringCopy(&Var2, "U_FMF_0_4", 16);
iVar3 = 1;
iVar4 = 4;
iVar1 = 40;
break;
case 21:
StringCopy(&Var2, "U_FMF_0_5", 16);
iVar3 = 1;
iVar4 = 5;
iVar1 = 40;
break;
case 22:
StringCopy(&Var2, "U_FMF_0_6", 16);
iVar3 = 1;
iVar4 = 6;
iVar1 = 40;
break;
case 23:
StringCopy(&Var2, "U_FMF_0_7", 16);
iVar3 = 1;
iVar4 = 7;
iVar1 = 45;
break;
case 24:
StringCopy(&Var2, "U_FMF_0_8", 16);
iVar3 = 1;
iVar4 = 8;
iVar1 = 40;
break;
case 25:
StringCopy(&Var2, "U_FMF_0_9", 16);
iVar3 = 1;
iVar4 = 9;
iVar1 = 40;
break;
case 26:
StringCopy(&Var2, "U_FMF_0_10", 16);
iVar3 = 1;
iVar4 = 10;
iVar1 = 135;
break;
case 27:
StringCopy(&Var2, "U_FMF_0_11", 16);
iVar3 = 1;
iVar4 = 11;
iVar1 = 60;
break;
case 28:
StringCopy(&Var2, "U_FMF_0_12", 16);
iVar3 = 1;
iVar4 = 12;
iVar1 = 220;
break;
case 29:
StringCopy(&Var2, "U_FMF_0_13", 16);
iVar3 = 1;
iVar4 = 13;
iVar1 = 45;
break;
case 30:
StringCopy(&Var2, "U_FMF_0_14", 16);
iVar3 = 1;
iVar4 = 14;
iVar1 = 45;
break;
case 31:
StringCopy(&Var2, "U_FMF_0_15", 16);
iVar3 = 1;
iVar4 = 15;
iVar1 = 125;
break;
case 32:
iVar3 = 2;
iVar4 = 0;
break;
case 33:
iVar3 = 3;
iVar4 = 0;
break;
case 34:
StringCopy(&Var2, "U_FMF_4_0", 16);
iVar3 = 4;
iVar4 = 0;
bVar0 = true;
break;
case 35:
StringCopy(&Var2, "U_FMF_4_1", 16);
iVar3 = 4;
iVar4 = 1;
bVar0 = true;
break;
case 36:
StringCopy(&Var2, "U_FMF_4_2", 16);
iVar3 = 4;
iVar4 = 2;
bVar0 = true;
break;
case 37:
StringCopy(&Var2, "U_FMF_4_3", 16);
iVar3 = 4;
iVar4 = 3;
bVar0 = true;
break;
case 38:
StringCopy(&Var2, "U_FMF_4_4", 16);
iVar3 = 4;
iVar4 = 4;
bVar0 = true;
break;
case 39:
StringCopy(&Var2, "U_FMF_4_5", 16);
iVar3 = 4;
iVar4 = 5;
bVar0 = true;
break;
case 40:
StringCopy(&Var2, "U_FMF_4_6", 16);
iVar3 = 4;
iVar4 = 6;
bVar0 = true;
break;
case 41:
StringCopy(&Var2, "U_FMF_4_7", 16);
iVar3 = 4;
iVar4 = 7;
bVar0 = true;
break;
case 42:
StringCopy(&Var2, "U_FMF_4_8", 16);
iVar3 = 4;
iVar4 = 8;
bVar0 = true;
break;
case 43:
StringCopy(&Var2, "U_FMF_4_9", 16);
iVar3 = 4;
iVar4 = 9;
bVar0 = true;
break;
case 44:
StringCopy(&Var2, "U_FMF_4_10", 16);
iVar3 = 4;
iVar4 = 10;
bVar0 = true;
break;
case 45:
StringCopy(&Var2, "U_FMF_4_11", 16);
iVar3 = 4;
iVar4 = 11;
bVar0 = true;
break;
case 46:
StringCopy(&Var2, "U_FMF_4_12", 16);
iVar3 = 4;
iVar4 = 12;
bVar0 = true;
break;
case 47:
StringCopy(&Var2, "U_FMF_4_13", 16);
iVar3 = 4;
iVar4 = 13;
iVar1 = 40;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[77]));
break;
case 48:
StringCopy(&Var2, "U_FMF_4_14", 16);
iVar3 = 4;
iVar4 = 14;
iVar1 = 40;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[78]));
break;
case 49:
StringCopy(&Var2, "U_FMF_4_15", 16);
iVar3 = 4;
iVar4 = 15;
bVar0 = true;
break;
case 50:
StringCopy(&Var2, "U_FMF_5_0", 16);
iVar3 = 5;
iVar4 = 0;
iVar1 = 45;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[80]));
break;
case 51:
StringCopy(&Var2, "U_FMF_5_1", 16);
iVar3 = 5;
iVar4 = 1;
iVar1 = 60;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[81]));
break;
case 52:
StringCopy(&Var2, "U_FMF_5_2", 16);
iVar3 = 5;
iVar4 = 2;
bVar0 = true;
break;
case 53:
StringCopy(&Var2, "U_FMF_5_3", 16);
iVar3 = 5;
iVar4 = 3;
bVar0 = true;
break;
case 54:
StringCopy(&Var2, "U_FMF_5_4", 16);
iVar3 = 5;
iVar4 = 4;
bVar0 = true;
break;
case 55:
StringCopy(&Var2, "U_FMF_5_5", 16);
iVar3 = 5;
iVar4 = 5;
bVar0 = true;
break;
case 56:
StringCopy(&Var2, "U_FMF_5_6", 16);
iVar3 = 5;
iVar4 = 6;
bVar0 = true;
break;
case 57:
StringCopy(&Var2, "U_FMF_5_7", 16);
iVar3 = 5;
iVar4 = 7;
iVar1 = 375;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[87]));
break;
case 58:
StringCopy(&Var2, "U_FMF_5_8", 16);
iVar3 = 5;
iVar4 = 8;
bVar0 = true;
break;
case 59:
StringCopy(&Var2, "U_FMF_5_9", 16);
iVar3 = 5;
iVar4 = 9;
iVar1 = 90;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[89]));
break;
case 60:
StringCopy(&Var2, "U_FMF_5_10", 16);
iVar3 = 5;
iVar4 = 10;
bVar0 = true;
break;
case 61:
StringCopy(&Var2, "U_FMF_5_11", 16);
iVar3 = 5;
iVar4 = 11;
bVar0 = true;
break;
case 62:
StringCopy(&Var2, "U_FMF_5_12", 16);
iVar3 = 5;
iVar4 = 12;
bVar0 = true;
break;
case 63:
StringCopy(&Var2, "U_FMF_5_13", 16);
iVar3 = 5;
iVar4 = 13;
bVar0 = true;
break;
case 64:
StringCopy(&Var2, "U_FMF_5_14", 16);
iVar3 = 5;
iVar4 = 14;
bVar0 = true;
break;
case 65:
StringCopy(&Var2, "U_FMF_5_15", 16);
iVar3 = 5;
iVar4 = 15;
bVar0 = true;
break;
case 66:
iVar3 = 6;
iVar4 = 0;
break;
case 67:
iVar3 = 7;
iVar4 = 0;
break;
case 68:
iVar3 = 8;
iVar4 = 0;
break;
case 69:
iVar3 = 9;
iVar4 = 0;
break;
case 70:
iVar3 = 10;
iVar4 = 0;
break;
case 71:
StringCopy(&Var2, "U_FMF_11_0", 16);
iVar3 = 11;
iVar4 = 0;
iVar1 = 90;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[176]));
break;
case 72:
StringCopy(&Var2, "U_FMF_11_1", 16);
iVar3 = 11;
iVar4 = 1;
iVar1 = 95;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[177]));
break;
case 73:
StringCopy(&Var2, "U_FMF_11_2", 16);
iVar3 = 11;
iVar4 = 2;
iVar1 = 95;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[178]));
break;
case 74:
StringCopy(&Var2, "U_FMF_11_3", 16);
iVar3 = 11;
iVar4 = 3;
bVar0 = true;
break;
case 75:
StringCopy(&Var2, "U_FMF_11_4", 16);
iVar3 = 11;
iVar4 = 4;
bVar0 = true;
break;
case 76:
StringCopy(&Var2, "U_FMF_11_5", 16);
iVar3 = 11;
iVar4 = 5;
bVar0 = true;
break;
case 77:
StringCopy(&Var2, "U_FMF_11_6", 16);
iVar3 = 11;
iVar4 = 6;
bVar0 = true;
break;
case 78:
StringCopy(&Var2, "U_FMF_11_7", 16);
iVar3 = 11;
iVar4 = 7;
bVar0 = true;
break;
case 79:
StringCopy(&Var2, "U_FMF_11_8", 16);
iVar3 = 11;
iVar4 = 8;
bVar0 = true;
break;
case 80:
StringCopy(&Var2, "U_FMF_11_9", 16);
iVar3 = 11;
iVar4 = 9;
bVar0 = true;
break;
case 81:
StringCopy(&Var2, "U_FMF_11_10", 16);
iVar3 = 11;
iVar4 = 10;
iVar1 = 150;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[186]));
break;
case 82:
StringCopy(&Var2, "U_FMF_11_11", 16);
iVar3 = 11;
iVar4 = 11;
iVar1 = 65;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[187]));
break;
case 83:
StringCopy(&Var2, "U_FMF_11_12", 16);
iVar3 = 11;
iVar4 = 12;
bVar0 = true;
break;
case 84:
StringCopy(&Var2, "U_FMF_11_13", 16);
iVar3 = 11;
iVar4 = 13;
bVar0 = true;
break;
case 85:
StringCopy(&Var2, "U_FMF_11_14", 16);
iVar3 = 11;
iVar4 = 14;
bVar0 = true;
break;
case 86:
StringCopy(&Var2, "U_FMF_11_15", 16);
iVar3 = 11;
iVar4 = 15;
iVar1 = 145;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[191]));
break;
case 87:
StringCopy(&Var2, "U_FMF_12_0", 16);
iVar3 = 12;
iVar4 = 0;
bVar0 = true;
break;
case 88:
StringCopy(&Var2, "U_FMF_12_1", 16);
iVar3 = 12;
iVar4 = 1;
bVar0 = true;
break;
case 89:
StringCopy(&Var2, "U_FMF_12_2", 16);
iVar3 = 12;
iVar4 = 2;
bVar0 = true;
break;
case 90:
StringCopy(&Var2, "U_FMF_12_3", 16);
iVar3 = 12;
iVar4 = 3;
bVar0 = true;
break;
case 91:
StringCopy(&Var2, "U_FMF_12_4", 16);
iVar3 = 12;
iVar4 = 4;
bVar0 = true;
break;
case 92:
StringCopy(&Var2, "U_FMF_12_5", 16);
iVar3 = 12;
iVar4 = 5;
bVar0 = true;
break;
case 93:
StringCopy(&Var2, "U_FMF_12_6", 16);
iVar3 = 12;
iVar4 = 6;
bVar0 = true;
break;
case 94:
StringCopy(&Var2, "U_FMF_12_7", 16);
iVar3 = 12;
iVar4 = 7;
iVar1 = 1560;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[199]));
break;
case 95:
StringCopy(&Var2, "U_FMF_12_8", 16);
iVar3 = 12;
iVar4 = 8;
iVar1 = 195;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[200]));
break;
case 96:
StringCopy(&Var2, "U_FMF_12_9", 16);
iVar3 = 12;
iVar4 = 9;
iVar1 = 200;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[201]));
break;
case 97:
StringCopy(&Var2, "U_FMF_12_10", 16);
iVar3 = 12;
iVar4 = 10;
bVar0 = true;
break;
case 98:
StringCopy(&Var2, "U_FMF_12_11", 16);
iVar3 = 12;
iVar4 = 11;
bVar0 = true;
break;
case 99:
StringCopy(&Var2, "U_FMF_12_12", 16);
iVar3 = 12;
iVar4 = 12;
bVar0 = true;
break;
case 100:
StringCopy(&Var2, "U_FMF_12_13", 16);
iVar3 = 12;
iVar4 = 13;
bVar0 = true;
break;
case 101:
StringCopy(&Var2, "U_FMF_12_14", 16);
iVar3 = 12;
iVar4 = 14;
bVar0 = true;
break;
case 102:
StringCopy(&Var2, "U_FMF_12_15", 16);
iVar3 = 12;
iVar4 = 15;
bVar0 = true;
break;
case 103:
StringCopy(&Var2, "U_FMF_13_0", 16);
iVar3 = 13;
iVar4 = 0;
iVar1 = 975;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[208]));
break;
case 104:
StringCopy(&Var2, "U_FMF_13_1", 16);
iVar3 = 13;
iVar4 = 1;
iVar1 = 2670;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[209]));
break;
case 105:
StringCopy(&Var2, "U_FMF_13_2", 16);
iVar3 = 13;
iVar4 = 2;
iVar1 = 480;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[210]));
break;
case 106:
StringCopy(&Var2, "U_FMF_13_3", 16);
iVar3 = 13;
iVar4 = 3;
iVar1 = 400;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[211]));
break;
case 107:
StringCopy(&Var2, "U_FMF_13_4", 16);
iVar3 = 13;
iVar4 = 4;
iVar1 = 2500;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[212]));
break;
case 108:
StringCopy(&Var2, "U_FMF_13_5", 16);
iVar3 = 13;
iVar4 = 5;
iVar1 = 2060;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[213]));
break;
case 109:
StringCopy(&Var2, "U_FMF_13_6", 16);
iVar3 = 13;
iVar4 = 6;
iVar1 = 2620;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[214]));
break;
case 110:
StringCopy(&Var2, "U_FMF_13_7", 16);
iVar3 = 13;
iVar4 = 7;
iVar1 = 475;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[215]));
break;
case 111:
StringCopy(&Var2, "U_FMF_13_8", 16);
iVar3 = 13;
iVar4 = 8;
iVar1 = 490;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[216]));
break;
case 112:
StringCopy(&Var2, "U_FMF_13_9", 16);
iVar3 = 13;
iVar4 = 9;
iVar1 = 2280;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[217]));
break;
case 113:
StringCopy(&Var2, "U_FMF_13_10", 16);
iVar3 = 13;
iVar4 = 10;
iVar1 = 485;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[218]));
break;
case 114:
StringCopy(&Var2, "U_FMF_13_11", 16);
iVar3 = 13;
iVar4 = 11;
iVar1 = 2390;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[219]));
break;
case 115:
StringCopy(&Var2, "U_FMF_13_12", 16);
iVar3 = 13;
iVar4 = 12;
iVar1 = 2610;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[220]));
break;
case 116:
StringCopy(&Var2, "U_FMF_13_13", 16);
iVar3 = 13;
iVar4 = 13;
iVar1 = 1450;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[221]));
break;
case 117:
StringCopy(&Var2, "U_FMF_13_14", 16);
iVar3 = 13;
iVar4 = 14;
iVar1 = 2720;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[222]));
break;
case 118:
StringCopy(&Var2, "U_FMF_13_15", 16);
iVar3 = 13;
iVar4 = 15;
iVar1 = 4995;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[223]));
break;
case 119:
iVar3 = 14;
iVar4 = 0;
break;
case 120:
StringCopy(&Var2, "U_FMF_15_0", 16);
iVar3 = 15;
iVar4 = 0;
iVar1 = 325;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[240]));
break;
case 121:
StringCopy(&Var2, "U_FMF_15_1", 16);
iVar3 = 15;
iVar4 = 1;
bVar0 = true;
break;
case 122:
StringCopy(&Var2, "U_FMF_15_2", 16);
iVar3 = 15;
iVar4 = 2;
bVar0 = true;
break;
case 123:
StringCopy(&Var2, "U_FMF_15_3", 16);
iVar3 = 15;
iVar4 = 3;
iVar1 = 130;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[243]));
break;
case 124:
StringCopy(&Var2, "U_FMF_15_4", 16);
iVar3 = 15;
iVar4 = 4;
bVar0 = true;
break;
case 125:
StringCopy(&Var2, "U_FMF_15_5", 16);
iVar3 = 15;
iVar4 = 5;
bVar0 = true;
break;
case 126:
StringCopy(&Var2, "U_FMF_15_6", 16);
iVar3 = 15;
iVar4 = 6;
bVar0 = true;
break;
case 127:
StringCopy(&Var2, "U_FMF_15_7", 16);
iVar3 = 15;
iVar4 = 7;
bVar0 = true;
break;
case 128:
StringCopy(&Var2, "U_FMF_15_8", 16);
iVar3 = 15;
iVar4 = 8;
bVar0 = true;
break;
case 129:
StringCopy(&Var2, "U_FMF_15_9", 16);
iVar3 = 15;
iVar4 = 9;
bVar0 = true;
break;
case 130:
StringCopy(&Var2, "U_FMF_15_10", 16);
iVar3 = 15;
iVar4 = 10;
iVar1 = 450;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[250]));
break;
case 131:
StringCopy(&Var2, "U_FMF_15_11", 16);
iVar3 = 15;
iVar4 = 11;
iVar1 = 465;
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[251]));
break;
case 132:
StringCopy(&Var2, "U_FMF_15_12", 16);
iVar3 = 15;
iVar4 = 12;
bVar0 = true;
break;
case 133:
StringCopy(&Var2, "U_FMF_15_13", 16);
iVar3 = 15;
iVar4 = 13;
bVar0 = true;
break;
case 134:
StringCopy(&Var2, "U_FMF_15_14", 16);
iVar3 = 15;
iVar4 = 14;
bVar0 = true;
break;
case 135:
StringCopy(&Var2, "U_FMF_15_15", 16);
iVar3 = 15;
iVar4 = 15;
bVar0 = true;
break;
default:
Global_71017[0 /*14*/].f_5 = 4;
func_164(iVar7, iParam0, 136, iParam1);
if (Global_71017[0 /*14*/].f_7 > 0)
{
Global_71017[0 /*14*/].f_7 = round((to_float(Global_71017[0 /*14*/].f_7) * Global_287780.f_24));
}
return;
break;
}
if (iParam0 == 4 || iParam0 == 20)
{
if (func_441(89, -1))
{
StringCopy(&Var2, "REW_RS", 16);
iVar1 = round((to_float(1250) * Global_262145.f_2979));
}
else
{
iVar1 = round((to_float(40) * Global_262145.f_1502[4]));
}
}
else if (iParam0 == 7 || iParam0 == 23)
{
StringCopy(&Var2, "REW_LSB", 16);
iVar1 = round((to_float(450) * Global_262145.f_2978));
}
else if (iParam0 == 9 || iParam0 == 25)
{
if (func_441(87, -1))
{
StringCopy(&Var2, "REW_REDSK", 16);
iVar1 = round((to_float(500) * Global_262145.f_2977));
}
else
{
iVar1 = round((to_float(40) * Global_262145.f_1502[9]));
}
}
else if (iParam0 >= 0 && iParam0 < 16)
{
iVar8 = iParam0;
if (iVar8 >= 0 && iVar8 < 256)
{
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[iVar8]));
}
}
else if (iParam0 >= 16 && iParam0 < 32)
{
iVar9 = (iParam0 - 16);
if (iVar9 >= 0 && iVar9 < 256)
{
iVar1 = round((to_float(iVar1) * Global_262145.f_1502[iVar9]));
}
}
iVar1 = round((to_float(iVar1) * Global_287780.f_24));
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_521(int iParam0, int iParam1)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 11;
switch (iParam0)
{
case 0:
iVar3 = 0;
iVar4 = 0;
iVar1 = 250;
break;
case 1:
iVar3 = 0;
iVar4 = 1;
iVar1 = 225;
break;
case 2:
iVar3 = 0;
iVar4 = 2;
iVar1 = 50;
break;
case 3:
iVar3 = 0;
iVar4 = 3;
iVar1 = 40;
break;
case 4:
iVar3 = 0;
iVar4 = 4;
iVar1 = 40;
break;
case 5:
iVar3 = 0;
iVar4 = 5;
iVar1 = 40;
break;
case 6:
iVar3 = 0;
iVar4 = 6;
iVar1 = 40;
break;
case 7:
iVar3 = 0;
iVar4 = 7;
iVar1 = 45;
break;
case 8:
iVar3 = 0;
iVar4 = 8;
iVar1 = 40;
break;
case 9:
iVar3 = 0;
iVar4 = 9;
iVar1 = 40;
break;
case 10:
iVar3 = 0;
iVar4 = 10;
iVar1 = 135;
break;
case 11:
iVar3 = 0;
iVar4 = 11;
iVar1 = 60;
break;
case 12:
iVar3 = 0;
iVar4 = 12;
iVar1 = 220;
break;
case 13:
iVar3 = 0;
iVar4 = 13;
iVar1 = 45;
break;
case 14:
iVar3 = 0;
iVar4 = 14;
iVar1 = 45;
break;
case 15:
iVar3 = 0;
iVar4 = 15;
iVar1 = 125;
break;
}
switch (iParam0)
{
case 16:
iVar3 = 1;
iVar4 = 0;
iVar1 = 390;
break;
case 17:
iVar3 = 1;
iVar4 = 1;
iVar1 = 230;
break;
case 18:
iVar3 = 1;
iVar4 = 2;
iVar1 = 355;
break;
case 19:
iVar3 = 1;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 20:
iVar3 = 1;
iVar4 = 4;
iVar1 = 5000;
break;
case 21:
iVar3 = 1;
iVar4 = 5;
iVar1 = 2725;
break;
case 22:
iVar3 = 1;
iVar4 = 6;
iVar1 = 3265;
break;
case 23:
iVar3 = 1;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 24:
iVar3 = 1;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 25:
iVar3 = 1;
iVar4 = 9;
iVar1 = 3625;
break;
case 26:
iVar3 = 1;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 27:
iVar3 = 1;
iVar4 = 11;
iVar1 = 4220;
break;
case 28:
iVar3 = 1;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 29:
iVar3 = 1;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 30:
iVar3 = 1;
iVar4 = 14;
iVar1 = 310;
break;
case 31:
iVar3 = 1;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
}
switch (iParam0)
{
case 32:
iVar3 = 2;
iVar4 = 0;
iVar1 = 45;
break;
case 33:
iVar3 = 2;
iVar4 = 1;
iVar1 = 210;
break;
case 34:
iVar3 = 2;
iVar4 = 2;
iVar1 = 75;
break;
case 35:
iVar3 = 2;
iVar4 = 3;
iVar1 = 50;
break;
case 36:
iVar3 = 2;
iVar4 = 4;
iVar1 = 60;
break;
case 37:
iVar3 = 2;
iVar4 = 5;
iVar1 = 50;
break;
case 38:
iVar3 = 2;
iVar4 = 6;
iVar1 = 295;
break;
case 39:
iVar3 = 2;
iVar4 = 7;
iVar1 = 80;
break;
case 40:
iVar3 = 2;
iVar4 = 8;
iVar1 = 75;
break;
case 41:
iVar3 = 2;
iVar4 = 9;
iVar1 = 2250;
break;
case 42:
iVar3 = 2;
iVar4 = 10;
iVar1 = 275;
break;
case 43:
iVar3 = 2;
iVar4 = 11;
iVar1 = 445;
break;
case 44:
iVar3 = 2;
iVar4 = 12;
iVar1 = 50;
break;
case 45:
iVar3 = 2;
iVar4 = 13;
iVar1 = 40;
break;
case 46:
iVar3 = 2;
iVar4 = 14;
iVar1 = 45;
break;
case 47:
iVar3 = 2;
iVar4 = 15;
iVar1 = 470;
break;
}
switch (iParam0)
{
case 48:
iVar3 = 3;
iVar4 = 0;
iVar1 = 95;
break;
case 49:
iVar3 = 3;
iVar4 = 1;
iVar1 = 95;
break;
case 50:
iVar3 = 3;
iVar4 = 2;
iVar1 = 360;
break;
case 51:
iVar3 = 3;
iVar4 = 3;
iVar1 = 100;
break;
case 52:
iVar3 = 3;
iVar4 = 4;
iVar1 = 60;
break;
case 53:
iVar3 = 3;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 54:
iVar3 = 3;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 55:
iVar3 = 3;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 56:
iVar3 = 3;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 57:
iVar3 = 3;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 58:
iVar3 = 3;
iVar4 = 10;
iVar1 = 295;
break;
case 59:
iVar3 = 3;
iVar4 = 11;
iVar1 = 460;
break;
case 60:
iVar3 = 3;
iVar4 = 12;
iVar1 = 1980;
break;
case 61:
iVar3 = 3;
iVar4 = 13;
iVar1 = 2110;
break;
case 62:
iVar3 = 3;
iVar4 = 14;
iVar1 = 95;
break;
case 63:
iVar3 = 3;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
}
switch (iParam0)
{
case 64:
iVar3 = 4;
iVar4 = 0;
iVar1 = 0;
bVar0 = true;
break;
case 65:
iVar3 = 4;
iVar4 = 1;
iVar1 = 0;
bVar0 = true;
break;
case 66:
iVar3 = 4;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 67:
iVar3 = 4;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 68:
iVar3 = 4;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 69:
iVar3 = 4;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 70:
iVar3 = 4;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 71:
iVar3 = 4;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 72:
iVar3 = 4;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 73:
iVar3 = 4;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 74:
iVar3 = 4;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 75:
iVar3 = 4;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 76:
iVar3 = 4;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 77:
iVar3 = 4;
iVar4 = 13;
iVar1 = 40;
break;
case 78:
iVar3 = 4;
iVar4 = 14;
iVar1 = 40;
break;
case 79:
iVar3 = 4;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
}
switch (iParam0)
{
case 80:
iVar3 = 5;
iVar4 = 0;
iVar1 = 45;
break;
case 81:
iVar3 = 5;
iVar4 = 1;
iVar1 = 60;
break;
case 82:
iVar3 = 5;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 83:
iVar3 = 5;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 84:
iVar3 = 5;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 85:
iVar3 = 5;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 86:
iVar3 = 5;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 87:
iVar3 = 5;
iVar4 = 7;
iVar1 = 375;
break;
case 88:
iVar3 = 5;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 89:
iVar3 = 5;
iVar4 = 9;
iVar1 = 90;
break;
case 90:
iVar3 = 5;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 91:
iVar3 = 5;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 92:
iVar3 = 5;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 93:
iVar3 = 5;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 94:
iVar3 = 5;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 95:
iVar3 = 5;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
}
switch (iParam0)
{
case 96:
iVar3 = 6;
iVar4 = 0;
iVar1 = 900;
break;
case 97:
iVar3 = 6;
iVar4 = 1;
iVar1 = 1000;
break;
case 98:
iVar3 = 6;
iVar4 = 2;
iVar1 = 1050;
break;
case 99:
iVar3 = 6;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 100:
iVar3 = 6;
iVar4 = 4;
iVar1 = 1000;
break;
case 101:
iVar3 = 6;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 102:
iVar3 = 6;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 103:
iVar3 = 6;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 104:
iVar3 = 6;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 105:
iVar3 = 6;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 106:
iVar3 = 6;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 107:
iVar3 = 6;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 108:
iVar3 = 6;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 109:
iVar3 = 6;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 110:
iVar3 = 6;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 111:
iVar3 = 6;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
}
switch (iParam0)
{
case 112:
iVar3 = 7;
iVar4 = 0;
iVar1 = 2975;
break;
case 113:
iVar3 = 7;
iVar4 = 1;
iVar1 = 1100;
break;
case 114:
iVar3 = 7;
iVar4 = 2;
iVar1 = 1825;
break;
case 115:
iVar3 = 7;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 116:
iVar3 = 7;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 117:
iVar3 = 7;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 118:
iVar3 = 7;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 119:
iVar3 = 7;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 120:
iVar3 = 7;
iVar4 = 8;
iVar1 = 1750;
break;
case 121:
iVar3 = 7;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 122:
iVar3 = 7;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 123:
iVar3 = 7;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 124:
iVar3 = 7;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 125:
iVar3 = 7;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 126:
iVar3 = 7;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 127:
iVar3 = 7;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
}
switch (iParam0)
{
case 128:
iVar3 = 8;
iVar4 = 0;
iVar1 = 1025;
break;
case 129:
iVar3 = 8;
iVar4 = 1;
iVar1 = 1075;
break;
case 130:
iVar3 = 8;
iVar4 = 2;
iVar1 = 2805;
break;
case 131:
iVar3 = 8;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 132:
iVar3 = 8;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 133:
iVar3 = 8;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 134:
iVar3 = 8;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 135:
iVar3 = 8;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 136:
iVar3 = 8;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 137:
iVar3 = 8;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 138:
iVar3 = 8;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 139:
iVar3 = 8;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 140:
iVar3 = 8;
iVar4 = 12;
iVar1 = 2250;
break;
case 141:
iVar3 = 8;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 142:
iVar3 = 8;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 143:
iVar3 = 8;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
}
switch (iParam0)
{
case 144:
iVar3 = 9;
iVar4 = 0;
iVar1 = 495;
break;
case 145:
iVar3 = 9;
iVar4 = 1;
iVar1 = 95;
break;
case 146:
iVar3 = 9;
iVar4 = 2;
iVar1 = 95;
break;
case 147:
iVar3 = 9;
iVar4 = 3;
iVar1 = 525;
break;
case 148:
iVar3 = 9;
iVar4 = 4;
iVar1 = 100;
break;
case 149:
iVar3 = 9;
iVar4 = 5;
iVar1 = 110;
break;
case 150:
iVar3 = 9;
iVar4 = 6;
iVar1 = 100;
break;
case 151:
iVar3 = 9;
iVar4 = 7;
iVar1 = 110;
break;
case 152:
iVar3 = 9;
iVar4 = 8;
iVar1 = 130;
break;
case 153:
iVar3 = 9;
iVar4 = 9;
iVar1 = 560;
break;
case 154:
iVar3 = 9;
iVar4 = 10;
iVar1 = 295;
break;
case 155:
iVar3 = 9;
iVar4 = 11;
iVar1 = 975;
break;
case 156:
iVar3 = 9;
iVar4 = 12;
iVar1 = 160;
break;
case 157:
iVar3 = 9;
iVar4 = 13;
iVar1 = 100;
break;
case 158:
iVar3 = 9;
iVar4 = 14;
iVar1 = 1700;
break;
case 159:
iVar3 = 9;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
}
switch (iParam0)
{
case 160:
iVar3 = 10;
iVar4 = 0;
iVar1 = 380;
break;
case 161:
iVar3 = 10;
iVar4 = 1;
iVar1 = 95;
break;
case 162:
iVar3 = 10;
iVar4 = 2;
iVar1 = 95;
break;
case 163:
iVar3 = 10;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 164:
iVar3 = 10;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 165:
iVar3 = 10;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 166:
iVar3 = 10;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 167:
iVar3 = 10;
iVar4 = 7;
iVar1 = 110;
break;
case 168:
iVar3 = 10;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 169:
iVar3 = 10;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 170:
iVar3 = 10;
iVar4 = 10;
iVar1 = 95;
break;
case 171:
iVar3 = 10;
iVar4 = 11;
iVar1 = 90;
break;
case 172:
iVar3 = 10;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 173:
iVar3 = 10;
iVar4 = 13;
iVar1 = 85;
break;
case 174:
iVar3 = 10;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 175:
iVar3 = 10;
iVar4 = 15;
iVar1 = 215;
break;
}
switch (iParam0)
{
case 176:
iVar3 = 11;
iVar4 = 0;
iVar1 = 90;
break;
case 177:
iVar3 = 11;
iVar4 = 1;
iVar1 = 95;
break;
case 178:
iVar3 = 11;
iVar4 = 2;
iVar1 = 95;
break;
case 179:
iVar3 = 11;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 180:
iVar3 = 11;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 181:
iVar3 = 11;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 182:
iVar3 = 11;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 183:
iVar3 = 11;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 184:
iVar3 = 11;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 185:
iVar3 = 11;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 186:
iVar3 = 11;
iVar4 = 10;
iVar1 = 150;
break;
case 187:
iVar3 = 11;
iVar4 = 11;
iVar1 = 65;
break;
case 188:
iVar3 = 11;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 189:
iVar3 = 11;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 190:
iVar3 = 11;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 191:
iVar3 = 11;
iVar4 = 15;
iVar1 = 145;
break;
}
switch (iParam0)
{
case 192:
iVar3 = 12;
iVar4 = 0;
iVar1 = 0;
bVar0 = true;
break;
case 193:
iVar3 = 12;
iVar4 = 1;
iVar1 = 0;
bVar0 = true;
break;
case 194:
iVar3 = 12;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 195:
iVar3 = 12;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 196:
iVar3 = 12;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 197:
iVar3 = 12;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 198:
iVar3 = 12;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 199:
iVar3 = 12;
iVar4 = 7;
iVar1 = 1560;
break;
case 200:
iVar3 = 12;
iVar4 = 8;
iVar1 = 195;
break;
case 201:
iVar3 = 12;
iVar4 = 9;
iVar1 = 200;
break;
case 202:
iVar3 = 12;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 203:
iVar3 = 12;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 204:
iVar3 = 12;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 205:
iVar3 = 12;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 206:
iVar3 = 12;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 207:
iVar3 = 12;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
}
switch (iParam0)
{
case 208:
iVar3 = 13;
iVar4 = 0;
iVar1 = 975;
break;
case 209:
iVar3 = 13;
iVar4 = 1;
iVar1 = 2670;
break;
case 210:
iVar3 = 13;
iVar4 = 2;
iVar1 = 480;
break;
case 211:
iVar3 = 13;
iVar4 = 3;
iVar1 = 400;
break;
case 212:
iVar3 = 13;
iVar4 = 4;
iVar1 = 2500;
break;
case 213:
iVar3 = 13;
iVar4 = 5;
iVar1 = 2060;
break;
case 214:
iVar3 = 13;
iVar4 = 6;
iVar1 = 2620;
break;
case 215:
iVar3 = 13;
iVar4 = 7;
iVar1 = 475;
break;
case 216:
iVar3 = 13;
iVar4 = 8;
iVar1 = 490;
break;
case 217:
iVar3 = 13;
iVar4 = 9;
iVar1 = 2280;
break;
case 218:
iVar3 = 13;
iVar4 = 10;
iVar1 = 485;
break;
case 219:
iVar3 = 13;
iVar4 = 11;
iVar1 = 2390;
break;
case 220:
iVar3 = 13;
iVar4 = 12;
iVar1 = 2610;
break;
case 221:
iVar3 = 13;
iVar4 = 13;
iVar1 = 1450;
break;
case 222:
iVar3 = 13;
iVar4 = 14;
iVar1 = 2720;
break;
case 223:
iVar3 = 13;
iVar4 = 15;
iVar1 = 4995;
break;
}
switch (iParam0)
{
case 224:
iVar3 = 14;
iVar4 = 0;
iVar1 = 265;
break;
case 225:
iVar3 = 14;
iVar4 = 1;
iVar1 = 385;
break;
case 226:
iVar3 = 14;
iVar4 = 2;
iVar1 = 345;
break;
case 227:
iVar3 = 14;
iVar4 = 3;
iVar1 = 330;
break;
case 228:
iVar3 = 14;
iVar4 = 4;
iVar1 = 430;
break;
case 229:
iVar3 = 14;
iVar4 = 5;
iVar1 = 375;
break;
case 230:
iVar3 = 14;
iVar4 = 6;
iVar1 = 375;
break;
case 231:
iVar3 = 14;
iVar4 = 7;
iVar1 = 295;
break;
case 232:
iVar3 = 14;
iVar4 = 8;
iVar1 = 360;
break;
case 233:
iVar3 = 14;
iVar4 = 9;
iVar1 = 325;
break;
case 234:
iVar3 = 14;
iVar4 = 10;
iVar1 = 340;
break;
case 235:
iVar3 = 14;
iVar4 = 11;
iVar1 = 435;
break;
case 236:
iVar3 = 14;
iVar4 = 12;
iVar1 = 300;
break;
case 237:
iVar3 = 14;
iVar4 = 13;
iVar1 = 315;
break;
case 238:
iVar3 = 14;
iVar4 = 14;
iVar1 = 415;
break;
case 239:
iVar3 = 14;
iVar4 = 15;
iVar1 = 420;
break;
}
switch (iParam0)
{
case 240:
iVar3 = 15;
iVar4 = 0;
iVar1 = 325;
break;
case 241:
iVar3 = 15;
iVar4 = 1;
iVar1 = 0;
bVar0 = true;
break;
case 242:
iVar3 = 15;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 243:
iVar3 = 15;
iVar4 = 3;
iVar1 = 130;
break;
case 244:
iVar3 = 15;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 245:
iVar3 = 15;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 246:
iVar3 = 15;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 247:
iVar3 = 15;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 248:
iVar3 = 15;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 249:
iVar3 = 15;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 250:
iVar3 = 15;
iVar4 = 10;
iVar1 = 450;
break;
case 251:
iVar3 = 15;
iVar4 = 11;
iVar1 = 465;
break;
case 252:
iVar3 = 15;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 253:
iVar3 = 15;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 254:
iVar3 = 15;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 255:
iVar3 = 15;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
}
StringCopy(&Var2, "U_FMF_", 16);
StringIntConCat(&Var2, iVar3, 16);
StringConCat(&Var2, "_", 16);
StringIntConCat(&Var2, iVar4, 16);
if (iParam0 == 4)
{
if (func_441(89, -1))
{
StringCopy(&Var2, "REW_RS", 16);
iVar1 = round(((to_float(1250) * Global_262145.f_2979) * Global_287780.f_24));
}
else
{
iVar1 = round(((to_float(40) * Global_262145.f_1502[4]) * Global_287780.f_24));
}
}
else if (iParam0 == 7)
{
StringCopy(&Var2, "REW_LSB", 16);
iVar1 = round(((to_float(450) * Global_262145.f_2978) * Global_287780.f_24));
}
else if (iParam0 == 9)
{
if (func_441(87, -1))
{
StringCopy(&Var2, "REW_REDSK", 16);
iVar1 = round(((to_float(500) * Global_262145.f_2977) * Global_287780.f_24));
}
else
{
iVar1 = round(((to_float(40) * Global_262145.f_1502[9]) * Global_287780.f_24));
}
}
else
{
iVar8 = iParam0;
if (iVar8 >= 0 && iVar8 < 256)
{
iVar1 = round(((to_float(iVar1) * Global_262145.f_1502[iVar8]) * Global_287780.f_24));
}
}
if (iParam0 >= 256)
{
Global_71017[0 /*14*/].f_5 = 4;
func_164(iVar7, iParam0, 256, iParam1);
if (Global_71017[0 /*14*/].f_7 > 0)
{
Global_71017[0 /*14*/].f_7 = round((to_float(Global_71017[0 /*14*/].f_7) * Global_287780.f_24));
}
}
else
{
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
}
void func_522(int iParam0, int iParam1)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 2;
switch (iParam0)
{
case 0:
iVar3 = 0;
iVar4 = 0;
iVar1 = 500;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[0]));
break;
case 1:
iVar3 = 1;
iVar4 = 0;
iVar1 = 500;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[1]));
break;
case 2:
iVar3 = 1;
iVar4 = 1;
iVar1 = 495;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[2]));
break;
case 3:
iVar3 = 1;
iVar4 = 2;
iVar1 = 490;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[3]));
break;
case 4:
iVar3 = 1;
iVar4 = 3;
iVar1 = 485;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[4]));
break;
case 5:
iVar3 = 1;
iVar4 = 4;
iVar1 = 480;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[5]));
break;
case 6:
iVar3 = 1;
iVar4 = 5;
iVar1 = 0;
break;
case 7:
iVar3 = 2;
iVar4 = 0;
iVar1 = 440;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[6]));
break;
case 8:
iVar3 = 2;
iVar4 = 1;
iVar1 = 435;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[7]));
break;
case 9:
iVar3 = 2;
iVar4 = 2;
iVar1 = 430;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[8]));
break;
case 10:
iVar3 = 2;
iVar4 = 3;
iVar1 = 425;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[9]));
break;
case 11:
iVar3 = 2;
iVar4 = 4;
iVar1 = 420;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[10]));
break;
case 12:
iVar3 = 2;
iVar4 = 5;
iVar1 = 0;
break;
case 13:
iVar3 = 3;
iVar4 = 0;
iVar1 = 190;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[11]));
break;
case 14:
iVar3 = 3;
iVar4 = 1;
iVar1 = 185;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[12]));
break;
case 15:
iVar3 = 3;
iVar4 = 2;
iVar1 = 180;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[13]));
break;
case 16:
iVar3 = 3;
iVar4 = 3;
iVar1 = 175;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[14]));
break;
case 17:
iVar3 = 3;
iVar4 = 4;
iVar1 = 170;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[15]));
break;
case 18:
iVar3 = 4;
iVar4 = 0;
iVar1 = 295;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[16]));
break;
case 19:
iVar3 = 4;
iVar4 = 1;
iVar1 = 290;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[17]));
break;
case 20:
iVar3 = 4;
iVar4 = 2;
iVar1 = 285;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[18]));
break;
case 21:
iVar3 = 4;
iVar4 = 3;
iVar1 = 280;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[19]));
break;
case 22:
iVar3 = 4;
iVar4 = 4;
iVar1 = 275;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[20]));
break;
case 23:
iVar3 = 4;
iVar4 = 5;
iVar1 = 0;
break;
case 24:
iVar3 = 5;
iVar4 = 0;
iVar1 = 2000;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[21]));
break;
case 25:
iVar3 = 5;
iVar4 = 1;
iVar1 = 1995;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[22]));
break;
case 26:
iVar3 = 5;
iVar4 = 2;
iVar1 = 1990;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[23]));
break;
case 27:
iVar3 = 5;
iVar4 = 3;
iVar1 = 1985;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[24]));
break;
case 28:
iVar3 = 5;
iVar4 = 4;
iVar1 = 1980;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[25]));
break;
case 29:
iVar3 = 5;
iVar4 = 5;
iVar1 = 0;
break;
case 30:
iVar3 = 6;
iVar4 = 0;
iVar1 = 1150;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[26]));
break;
case 31:
iVar3 = 6;
iVar4 = 1;
iVar1 = 1145;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[27]));
break;
case 32:
iVar3 = 6;
iVar4 = 2;
iVar1 = 1140;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[28]));
break;
case 33:
iVar3 = 6;
iVar4 = 3;
iVar1 = 1135;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[29]));
break;
case 34:
iVar3 = 6;
iVar4 = 4;
iVar1 = 1130;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[30]));
break;
case 35:
iVar3 = 7;
iVar4 = 0;
iVar1 = 550;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[31]));
break;
case 36:
iVar3 = 7;
iVar4 = 1;
iVar1 = 545;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[32]));
break;
case 37:
iVar3 = 7;
iVar4 = 2;
iVar1 = 540;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[33]));
break;
case 38:
iVar3 = 7;
iVar4 = 3;
iVar1 = 535;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[34]));
break;
case 39:
iVar3 = 7;
iVar4 = 4;
iVar1 = 530;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[35]));
break;
case 40:
iVar3 = 7;
iVar4 = 5;
iVar1 = 0;
break;
case 41:
iVar3 = 8;
iVar4 = 0;
iVar1 = 580;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[36]));
break;
case 42:
iVar3 = 8;
iVar4 = 1;
iVar1 = 575;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[37]));
break;
case 43:
iVar3 = 8;
iVar4 = 2;
iVar1 = 570;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[38]));
break;
case 44:
iVar3 = 8;
iVar4 = 3;
iVar1 = 565;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[39]));
break;
case 45:
iVar3 = 8;
iVar4 = 4;
iVar1 = 560;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[40]));
break;
case 46:
iVar3 = 8;
iVar4 = 5;
iVar1 = 0;
break;
case 47:
iVar3 = 9;
iVar4 = 0;
iVar1 = 1100;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[41]));
break;
case 48:
iVar3 = 9;
iVar4 = 1;
iVar1 = 1095;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[42]));
break;
case 49:
iVar3 = 9;
iVar4 = 2;
iVar1 = 1090;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[43]));
break;
case 50:
iVar3 = 9;
iVar4 = 3;
iVar1 = 1085;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[44]));
break;
case 51:
iVar3 = 9;
iVar4 = 4;
iVar1 = 1080;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[45]));
break;
case 52:
iVar3 = 9;
iVar4 = 5;
iVar1 = 0;
break;
case 53:
iVar3 = 10;
iVar4 = 0;
iVar1 = 520;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[46]));
break;
case 54:
iVar3 = 10;
iVar4 = 1;
iVar1 = 515;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[47]));
break;
case 55:
iVar3 = 10;
iVar4 = 2;
iVar1 = 510;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[48]));
break;
case 56:
iVar3 = 10;
iVar4 = 3;
iVar1 = 505;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[49]));
break;
case 57:
iVar3 = 10;
iVar4 = 4;
iVar1 = 500;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[50]));
break;
case 58:
iVar3 = 10;
iVar4 = 5;
iVar1 = 0;
break;
case 59:
iVar3 = 10;
iVar4 = 6;
iVar1 = 0;
break;
case 60:
iVar3 = 11;
iVar4 = 0;
iVar1 = 395;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[51]));
break;
case 61:
iVar3 = 11;
iVar4 = 1;
iVar1 = 390;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[52]));
break;
case 62:
iVar3 = 11;
iVar4 = 2;
iVar1 = 385;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[53]));
break;
case 63:
iVar3 = 11;
iVar4 = 3;
iVar1 = 380;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[54]));
break;
case 64:
iVar3 = 11;
iVar4 = 4;
iVar1 = 375;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[55]));
break;
case 65:
iVar3 = 11;
iVar4 = 5;
iVar1 = 0;
break;
case 66:
iVar3 = 11;
iVar4 = 6;
iVar1 = 0;
break;
case 67:
iVar3 = 12;
iVar4 = 0;
iVar1 = 1050;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[56]));
break;
case 68:
iVar3 = 12;
iVar4 = 1;
iVar1 = 1045;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[57]));
break;
case 69:
iVar3 = 12;
iVar4 = 2;
iVar1 = 1040;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[58]));
break;
case 70:
iVar3 = 12;
iVar4 = 3;
iVar1 = 1035;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[59]));
break;
case 71:
iVar3 = 12;
iVar4 = 4;
iVar1 = 1030;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[60]));
break;
case 72:
iVar3 = 12;
iVar4 = 5;
iVar1 = 0;
break;
case 73:
iVar3 = 13;
iVar4 = 0;
iVar1 = 1200;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[61]));
break;
case 74:
iVar3 = 13;
iVar4 = 1;
iVar1 = 1195;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[62]));
break;
case 75:
iVar3 = 13;
iVar4 = 2;
iVar1 = 1190;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[63]));
break;
case 76:
iVar3 = 13;
iVar4 = 3;
iVar1 = 1185;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[64]));
break;
case 77:
iVar3 = 13;
iVar4 = 4;
iVar1 = 1180;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[65]));
break;
case 78:
iVar3 = 13;
iVar4 = 5;
iVar1 = 0;
break;
case 79:
iVar3 = 14;
iVar4 = 0;
iVar1 = 475;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[66]));
break;
case 80:
iVar3 = 14;
iVar4 = 1;
iVar1 = 470;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[67]));
break;
case 81:
iVar3 = 14;
iVar4 = 2;
iVar1 = 465;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[68]));
break;
case 82:
iVar3 = 14;
iVar4 = 3;
iVar1 = 460;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[69]));
break;
case 83:
iVar3 = 14;
iVar4 = 4;
iVar1 = 455;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[70]));
break;
case 84:
iVar3 = 14;
iVar4 = 5;
iVar1 = 0;
break;
case 85:
iVar3 = 15;
iVar4 = 0;
iVar1 = 950;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[71]));
break;
case 86:
iVar3 = 15;
iVar4 = 1;
iVar1 = 945;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[72]));
break;
case 87:
iVar3 = 15;
iVar4 = 2;
iVar1 = 940;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[73]));
break;
case 88:
iVar3 = 15;
iVar4 = 3;
iVar1 = 935;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[74]));
break;
case 89:
iVar3 = 15;
iVar4 = 4;
iVar1 = 930;
iVar1 = round((to_float(iVar1) * Global_262145.f_2455[75]));
break;
case 90:
iVar3 = 15;
iVar4 = 5;
iVar1 = 0;
break;
case 91:
iVar3 = 15;
iVar4 = 6;
iVar1 = 0;
break;
default:
Global_71017[0 /*14*/].f_5 = 4;
func_164(iVar7, iParam0, 92, iParam1);
return;
break;
}
StringCopy(&Var2, "H_FMF_", 16);
StringIntConCat(&Var2, iVar3, 16);
StringConCat(&Var2, "_", 16);
StringIntConCat(&Var2, iVar4, 16);
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_523(int iParam0, int iParam1, int iParam2)
{
switch (iParam0)
{
case 2:
func_538(iParam1, iParam2);
break;
case 11:
func_537(iParam1, iParam2);
break;
case 8:
func_536(iParam1, iParam2);
break;
case 9:
func_535(iParam1, iParam2);
break;
case 3:
func_534(iParam1, iParam2);
break;
case 4:
func_533(iParam1, iParam2);
break;
case 6:
func_532(iParam1, iParam2);
break;
case 1:
func_531(iParam1, iParam2);
break;
case 7:
func_530(iParam1, iParam2);
break;
case 10:
func_529(iParam1, iParam2);
break;
case 14:
func_528(iParam1, iParam2);
break;
case 12:
func_527(iParam1, iParam2);
break;
case 5:
func_526(iParam1, iParam2);
break;
case 0:
func_525(iParam1, iParam2);
break;
case 13:
func_524(iParam1);
break;
}
}
void func_524(int iParam0)
{
bool bVar0;
int iVar1;
char* sVar2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 13;
switch (iParam0)
{
case 31:
iVar3 = 0;
iVar4 = 0;
break;
case 0:
iVar3 = 0;
iVar4 = 0;
break;
case 1:
iVar3 = 0;
iVar4 = 0;
break;
case 2:
iVar3 = 0;
iVar4 = 0;
break;
case 3:
iVar3 = 0;
iVar4 = 0;
break;
case 4:
iVar3 = 0;
iVar4 = 0;
break;
case 5:
iVar3 = 0;
iVar4 = 0;
break;
case 6:
iVar3 = 0;
iVar4 = 0;
break;
case 7:
iVar3 = 0;
iVar4 = 0;
break;
case 8:
iVar3 = 0;
iVar4 = 0;
break;
case 9:
iVar3 = 0;
iVar4 = 0;
break;
case 10:
iVar3 = 0;
iVar4 = 0;
break;
case 11:
iVar3 = 0;
iVar4 = 0;
break;
case 12:
iVar3 = 0;
iVar4 = 0;
break;
case 13:
iVar3 = 0;
iVar4 = 0;
break;
case 14:
iVar3 = 0;
iVar4 = 0;
break;
case 15:
iVar3 = 0;
iVar4 = 0;
break;
case 16:
iVar3 = 0;
iVar4 = 0;
break;
case 17:
iVar3 = 0;
iVar4 = 0;
break;
case 18:
iVar3 = 0;
iVar4 = 0;
break;
case 19:
iVar3 = 0;
iVar4 = 0;
break;
case 20:
iVar3 = 0;
iVar4 = 0;
break;
case 21:
iVar3 = 0;
iVar4 = 0;
break;
case 22:
iVar3 = 0;
iVar4 = 0;
break;
case 23:
iVar3 = 0;
iVar4 = 0;
break;
case 24:
iVar3 = 0;
iVar4 = 0;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &sVar2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_525(int iParam0, int iParam1)
{
int iVar0;
iVar0 = 0;
Global_71017[0 /*14*/].f_5 = 3;
func_164(iVar0, iParam0, 0, iParam1);
}
void func_526(int iParam0, int iParam1)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 5;
switch (iParam0)
{
case 0:
iVar3 = 0;
iVar4 = 0;
break;
case 1:
iVar3 = 1;
iVar4 = 0;
break;
case 2:
iVar3 = 2;
iVar4 = 0;
break;
case 3:
iVar3 = 3;
iVar4 = 0;
break;
case 4:
iVar3 = 4;
iVar4 = 0;
break;
case 5:
iVar3 = 5;
iVar4 = 0;
break;
case 6:
iVar3 = 6;
iVar4 = 0;
break;
case 7:
iVar3 = 7;
iVar4 = 0;
break;
case 8:
iVar3 = 8;
iVar4 = 0;
break;
default:
Global_71017[0 /*14*/].f_5 = 3;
func_164(iVar7, iParam0, 9, iParam1);
return;
break;
}
StringCopy(&Var2, "HA_FMM_", 16);
StringIntConCat(&Var2, iVar3, 16);
StringConCat(&Var2, "_", 16);
StringIntConCat(&Var2, iVar4, 16);
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_527(int iParam0, int iParam1)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 12;
switch (iParam0)
{
case 0:
iVar3 = 0;
iVar4 = 0;
bVar0 = true;
break;
case 1:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMM_S1", 16);
break;
case 2:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMM_S2", 16);
break;
case 3:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMM_S3", 16);
break;
case 4:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMM_S4", 16);
break;
case 5:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMM_S5", 16);
break;
case 6:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMM_S6", 16);
break;
case 7:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMM_S7", 16);
break;
case 8:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMM_S8", 16);
break;
case 9:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMM_S9", 16);
break;
case 10:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMM_P1", 16);
break;
case 11:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMM_P2", 16);
break;
case 12:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMM_P3", 16);
break;
case 13:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMM_P4", 16);
break;
case 14:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMM_P5", 16);
break;
case 15:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMM_P6", 16);
break;
case 16:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMM_P7", 16);
break;
case 17:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMM_P8", 16);
break;
case 18:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMM_B1", 16);
break;
case 19:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMM_B2", 16);
break;
case 20:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMM_B3", 16);
break;
case 21:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMM_B4", 16);
break;
case 22:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMM_B5", 16);
break;
case 23:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMM_B6", 16);
break;
case 24:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMM_B7", 16);
break;
case 25:
iVar3 = 0;
iVar4 = 0;
StringCopy(&Var2, "O_FMM_B8", 16);
break;
default:
Global_71017[0 /*14*/].f_5 = 3;
func_164(iVar7, iParam0, 26, iParam1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_528(int iParam0, int iParam1)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
int iVar9;
int iVar10;
int iVar11;
int iVar12;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 14;
iVar8 = 0;
switch (iParam0)
{
case 0:
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 0;
break;
case 1:
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 1;
break;
case 2:
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 2;
break;
case 3:
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 3;
break;
case 4:
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 4;
break;
case 5:
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 5;
break;
case 6:
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 6;
break;
case 7:
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 7;
break;
case 8:
iVar3 = -1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 8;
break;
case 10:
StringCopy(&Var2, "HT_FMM_0_0", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 65;
iVar5 = 0;
iVar8 = 1;
break;
case 11:
StringCopy(&Var2, "HT_FMM_0_1", 16);
iVar3 = 0;
iVar4 = 1;
iVar1 = 65;
iVar5 = 0;
iVar8 = 1;
break;
case 12:
StringCopy(&Var2, "HT_FMM_0_2", 16);
iVar3 = 0;
iVar4 = 2;
iVar1 = 85;
iVar5 = 0;
iVar8 = 1;
break;
case 13:
StringCopy(&Var2, "HT_FMM_0_3", 16);
iVar3 = 0;
iVar4 = 3;
iVar1 = 75;
iVar5 = 0;
iVar8 = 1;
break;
case 14:
StringCopy(&Var2, "HT_FMM_0_4", 16);
iVar3 = 0;
iVar4 = 4;
iVar1 = 235;
iVar5 = 0;
iVar8 = 1;
break;
case 15:
StringCopy(&Var2, "HT_FMM_0_5", 16);
iVar3 = 0;
iVar4 = 5;
iVar1 = 80;
iVar5 = 0;
iVar8 = 1;
break;
case 16:
StringCopy(&Var2, "HT_FMM_0_6", 16);
iVar3 = 0;
iVar4 = 6;
iVar1 = 85;
iVar5 = 0;
iVar8 = 1;
break;
case 17:
StringCopy(&Var2, "HT_FMM_0_7", 16);
iVar3 = 0;
iVar4 = 7;
iVar1 = 90;
iVar5 = 0;
iVar8 = 1;
break;
}
switch (iParam0)
{
case 18:
StringCopy(&Var2, "HT_FMM_1_0", 16);
iVar3 = 1;
iVar4 = 0;
iVar5 = 0;
break;
case 19:
StringCopy(&Var2, "HT_FMM_2_0", 16);
iVar3 = 2;
iVar4 = 0;
iVar1 = 35;
iVar5 = 0;
iVar8 = 1;
break;
case 20:
StringCopy(&Var2, "HT_FMM_2_1", 16);
iVar3 = 2;
iVar4 = 1;
iVar1 = 30;
iVar5 = 0;
iVar8 = 1;
break;
case 21:
StringCopy(&Var2, "HT_FMM_2_2", 16);
iVar3 = 2;
iVar4 = 2;
iVar1 = 35;
iVar5 = 0;
iVar8 = 1;
break;
case 22:
StringCopy(&Var2, "HT_FMM_2_3", 16);
iVar3 = 2;
iVar4 = 3;
iVar1 = 320;
iVar5 = 0;
iVar8 = 1;
break;
case 23:
StringCopy(&Var2, "HT_FMM_2_4", 16);
iVar3 = 2;
iVar4 = 4;
iVar1 = 185;
iVar5 = 0;
iVar8 = 1;
break;
case 24:
StringCopy(&Var2, "HT_FMM_2_5", 16);
iVar3 = 2;
iVar4 = 5;
iVar1 = 245;
iVar5 = 0;
iVar8 = 1;
break;
case 25:
StringCopy(&Var2, "HT_FMM_2_6", 16);
iVar3 = 2;
iVar4 = 6;
iVar1 = 35;
iVar5 = 0;
iVar8 = 1;
break;
case 26:
StringCopy(&Var2, "HT_FMM_2_7", 16);
iVar3 = 2;
iVar4 = 7;
iVar1 = 40;
iVar5 = 0;
iVar8 = 1;
break;
case 27:
StringCopy(&Var2, "HT_FMM_3_0", 16);
iVar3 = 3;
iVar4 = 0;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 28:
StringCopy(&Var2, "HT_FMM_3_1", 16);
iVar3 = 3;
iVar4 = 1;
iVar1 = 60;
iVar5 = 0;
iVar8 = 1;
break;
case 29:
StringCopy(&Var2, "HT_FMM_3_2", 16);
iVar3 = 3;
iVar4 = 2;
iVar1 = 65;
iVar5 = 0;
iVar8 = 1;
break;
case 30:
StringCopy(&Var2, "HT_FMM_3_3", 16);
iVar3 = 3;
iVar4 = 3;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 31:
StringCopy(&Var2, "HT_FMM_3_4", 16);
iVar3 = 3;
iVar4 = 4;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 32:
StringCopy(&Var2, "HT_FMM_3_5", 16);
iVar3 = 3;
iVar4 = 5;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 33:
StringCopy(&Var2, "HT_FMM_3_6", 16);
iVar3 = 3;
iVar4 = 6;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 34:
StringCopy(&Var2, "HT_FMM_3_7", 16);
iVar3 = 3;
iVar4 = 7;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 35:
StringCopy(&Var2, "HT_FMM_4_0", 16);
iVar3 = 4;
iVar4 = 0;
iVar1 = 415;
iVar5 = 0;
iVar8 = 1;
break;
case 36:
StringCopy(&Var2, "HT_FMM_4_1", 16);
iVar3 = 4;
iVar4 = 1;
iVar1 = 315;
iVar5 = 0;
iVar8 = 1;
break;
case 37:
StringCopy(&Var2, "HT_FMM_4_2", 16);
iVar3 = 4;
iVar4 = 2;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 38:
StringCopy(&Var2, "HT_FMM_4_3", 16);
iVar3 = 4;
iVar4 = 3;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 39:
StringCopy(&Var2, "HT_FMM_4_4", 16);
iVar3 = 4;
iVar4 = 4;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 40:
StringCopy(&Var2, "HT_FMM_4_5", 16);
iVar3 = 4;
iVar4 = 5;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 41:
StringCopy(&Var2, "HT_FMM_4_6", 16);
iVar3 = 4;
iVar4 = 6;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 42:
StringCopy(&Var2, "HT_FMM_4_7", 16);
iVar3 = 4;
iVar4 = 7;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 43:
StringCopy(&Var2, "HT_FMM_5_0", 16);
iVar3 = 5;
iVar4 = 0;
iVar1 = 75;
iVar5 = 0;
iVar8 = 1;
break;
case 44:
StringCopy(&Var2, "HT_FMM_5_1", 16);
iVar3 = 5;
iVar4 = 1;
iVar1 = 60;
iVar5 = 0;
iVar8 = 1;
break;
case 45:
StringCopy(&Var2, "HT_FMM_5_2", 16);
iVar3 = 5;
iVar4 = 2;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 46:
StringCopy(&Var2, "HT_FMM_5_3", 16);
iVar3 = 5;
iVar4 = 3;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 47:
StringCopy(&Var2, "HT_FMM_5_4", 16);
iVar3 = 5;
iVar4 = 4;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 48:
StringCopy(&Var2, "HT_FMM_5_5", 16);
iVar3 = 5;
iVar4 = 5;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 49:
StringCopy(&Var2, "HT_FMM_5_6", 16);
iVar3 = 5;
iVar4 = 6;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 50:
StringCopy(&Var2, "HT_FMM_5_7", 16);
iVar3 = 5;
iVar4 = 7;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 51:
StringCopy(&Var2, "HT_FMM_6_0", 16);
iVar3 = 6;
iVar4 = 0;
iVar1 = 160;
iVar5 = 0;
iVar8 = 1;
break;
case 52:
StringCopy(&Var2, "HT_FMM_6_1", 16);
iVar3 = 6;
iVar4 = 1;
iVar1 = 265;
iVar5 = 0;
iVar8 = 1;
break;
case 53:
StringCopy(&Var2, "HT_FMM_6_2", 16);
iVar3 = 6;
iVar4 = 2;
iVar1 = 170;
iVar5 = 0;
iVar8 = 1;
break;
case 54:
StringCopy(&Var2, "HT_FMM_6_3", 16);
iVar3 = 6;
iVar4 = 3;
iVar1 = 135;
iVar5 = 0;
iVar8 = 1;
break;
case 55:
StringCopy(&Var2, "HT_FMM_6_4", 16);
iVar3 = 6;
iVar4 = 4;
iVar1 = 570;
iVar5 = 0;
iVar8 = 1;
break;
case 56:
StringCopy(&Var2, "HT_FMM_6_5", 16);
iVar3 = 6;
iVar4 = 5;
iVar1 = 560;
iVar5 = 0;
iVar8 = 1;
break;
case 57:
StringCopy(&Var2, "HT_FMM_6_6", 16);
iVar3 = 6;
iVar4 = 6;
iVar1 = 140;
iVar5 = 0;
iVar8 = 1;
break;
case 58:
StringCopy(&Var2, "HT_FMM_6_7", 16);
iVar3 = 6;
iVar4 = 7;
iVar1 = 130;
iVar5 = 0;
iVar8 = 1;
break;
case 59:
StringCopy(&Var2, "HT_FMM_7_0", 16);
iVar3 = 7;
iVar4 = 0;
iVar1 = 260;
iVar5 = 0;
iVar8 = 1;
break;
case 60:
StringCopy(&Var2, "HT_FMM_7_1", 16);
iVar3 = 7;
iVar4 = 1;
iVar1 = 215;
iVar5 = 0;
iVar8 = 1;
break;
case 61:
StringCopy(&Var2, "HT_FMM_7_2", 16);
iVar3 = 7;
iVar4 = 2;
iVar1 = 430;
iVar5 = 0;
iVar8 = 1;
break;
case 62:
StringCopy(&Var2, "HT_FMM_7_3", 16);
iVar3 = 7;
iVar4 = 3;
iVar1 = 160;
iVar5 = 0;
iVar8 = 1;
break;
case 63:
StringCopy(&Var2, "HT_FMM_7_4", 16);
iVar3 = 7;
iVar4 = 4;
iVar1 = 200;
iVar5 = 0;
iVar8 = 1;
break;
case 64:
StringCopy(&Var2, "HT_FMM_7_5", 16);
iVar3 = 7;
iVar4 = 5;
iVar1 = 155;
iVar5 = 0;
iVar8 = 1;
break;
case 65:
StringCopy(&Var2, "HT_FMM_7_6", 16);
iVar3 = 7;
iVar4 = 6;
iVar1 = 155;
iVar5 = 0;
iVar8 = 1;
break;
case 66:
StringCopy(&Var2, "HT_FMM_7_7", 16);
iVar3 = 7;
iVar4 = 7;
iVar1 = 165;
iVar5 = 0;
iVar8 = 1;
break;
}
switch (iParam0)
{
case 67:
StringCopy(&Var2, "HT_FMM_8_0", 16);
iVar3 = 8;
iVar4 = 0;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 68:
StringCopy(&Var2, "HT_FMM_8_1", 16);
iVar3 = 8;
iVar4 = 1;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 69:
StringCopy(&Var2, "HT_FMM_8_2", 16);
iVar3 = 8;
iVar4 = 2;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 70:
StringCopy(&Var2, "HT_FMM_8_3", 16);
iVar3 = 8;
iVar4 = 3;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 71:
StringCopy(&Var2, "HT_FMM_8_4", 16);
iVar3 = 8;
iVar4 = 4;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 72:
StringCopy(&Var2, "HT_FMM_8_5", 16);
iVar3 = 8;
iVar4 = 5;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 73:
StringCopy(&Var2, "HT_FMM_8_6", 16);
iVar3 = 8;
iVar4 = 6;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 74:
StringCopy(&Var2, "HT_FMM_8_7", 16);
iVar3 = 8;
iVar4 = 7;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 75:
StringCopy(&Var2, "HT_FMM_9_0", 16);
iVar3 = 9;
iVar4 = 0;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 76:
StringCopy(&Var2, "HT_FMM_9_1", 16);
iVar3 = 9;
iVar4 = 1;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 77:
StringCopy(&Var2, "HT_FMM_9_2", 16);
iVar3 = 9;
iVar4 = 2;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 78:
StringCopy(&Var2, "HT_FMM_9_3", 16);
iVar3 = 9;
iVar4 = 3;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 79:
StringCopy(&Var2, "HT_FMM_9_4", 16);
iVar3 = 9;
iVar4 = 4;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 80:
StringCopy(&Var2, "HT_FMM_9_5", 16);
iVar3 = 9;
iVar4 = 5;
iVar1 = 100;
iVar5 = 0;
iVar8 = 1;
break;
case 81:
StringCopy(&Var2, "HT_FMM_9_6", 16);
iVar3 = 9;
iVar4 = 6;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 82:
StringCopy(&Var2, "HT_FMM_9_7", 16);
iVar3 = 9;
iVar4 = 7;
iVar1 = 65;
iVar5 = 0;
iVar8 = 1;
break;
case 83:
StringCopy(&Var2, "HT_FMM_10_0", 16);
iVar3 = 10;
iVar4 = 0;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 84:
StringCopy(&Var2, "HT_FMM_10_1", 16);
iVar3 = 10;
iVar4 = 1;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 85:
StringCopy(&Var2, "HT_FMM_10_2", 16);
iVar3 = 10;
iVar4 = 2;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 86:
StringCopy(&Var2, "HT_FMM_10_3", 16);
iVar3 = 10;
iVar4 = 3;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 87:
StringCopy(&Var2, "HT_FMM_10_4", 16);
iVar3 = 10;
iVar4 = 4;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 88:
StringCopy(&Var2, "HT_FMM_10_5", 16);
iVar3 = 10;
iVar4 = 5;
iVar1 = 65;
iVar5 = 0;
iVar8 = 1;
break;
case 89:
StringCopy(&Var2, "HT_FMM_10_6", 16);
iVar3 = 10;
iVar4 = 6;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 90:
StringCopy(&Var2, "HT_FMM_10_7", 16);
iVar3 = 10;
iVar4 = 7;
iVar1 = 65;
iVar5 = 0;
iVar8 = 1;
break;
case 91:
StringCopy(&Var2, "HT_FMM_11_0", 16);
iVar3 = 11;
iVar4 = 0;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 92:
StringCopy(&Var2, "HT_FMM_11_1", 16);
iVar3 = 11;
iVar4 = 1;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 93:
StringCopy(&Var2, "HT_FMM_11_2", 16);
iVar3 = 11;
iVar4 = 2;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 94:
StringCopy(&Var2, "HT_FMM_11_3", 16);
iVar3 = 11;
iVar4 = 3;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 95:
StringCopy(&Var2, "HT_FMM_11_4", 16);
iVar3 = 11;
iVar4 = 4;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 96:
StringCopy(&Var2, "HT_FMM_11_5", 16);
iVar3 = 11;
iVar4 = 5;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 97:
StringCopy(&Var2, "HT_FMM_11_6", 16);
iVar3 = 11;
iVar4 = 6;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 98:
StringCopy(&Var2, "HT_FMM_11_7", 16);
iVar3 = 11;
iVar4 = 7;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 99:
StringCopy(&Var2, "HT_FMM_12_0", 16);
iVar3 = 12;
iVar4 = 0;
iVar1 = 1715;
iVar5 = 0;
iVar8 = 1;
break;
case 100:
StringCopy(&Var2, "HT_FMM_12_1", 16);
iVar3 = 12;
iVar4 = 1;
iVar1 = 3900;
iVar5 = 0;
iVar8 = 1;
break;
case 101:
StringCopy(&Var2, "HT_FMM_12_2", 16);
iVar3 = 12;
iVar4 = 2;
iVar1 = 1550;
iVar5 = 0;
iVar8 = 1;
break;
case 102:
StringCopy(&Var2, "HT_FMM_12_3", 16);
iVar3 = 12;
iVar4 = 3;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 103:
StringCopy(&Var2, "HT_FMM_12_4", 16);
iVar3 = 12;
iVar4 = 4;
iVar1 = 4250;
iVar5 = 0;
iVar8 = 1;
break;
case 104:
StringCopy(&Var2, "HT_FMM_12_5", 16);
iVar3 = 12;
iVar4 = 5;
iVar1 = 0;
iVar5 = 0;
iVar8 = 1;
bVar0 = true;
break;
case 105:
StringCopy(&Var2, "HT_FMM_12_6", 16);
iVar3 = 12;
iVar4 = 6;
iVar1 = 4460;
iVar5 = 0;
iVar8 = 1;
break;
case 106:
StringCopy(&Var2, "HT_FMM_12_7", 16);
iVar3 = 12;
iVar4 = 7;
iVar1 = 4970;
iVar5 = 0;
iVar8 = 1;
break;
case 107:
StringCopy(&Var2, "HT_FMM_13_0", 16);
iVar3 = 13;
iVar4 = 0;
iVar1 = 290;
iVar5 = 0;
iVar8 = 1;
break;
case 108:
StringCopy(&Var2, "HT_FMM_13_1", 16);
iVar3 = 13;
iVar4 = 1;
iVar1 = 305;
iVar5 = 0;
iVar8 = 1;
break;
case 109:
StringCopy(&Var2, "HT_FMM_13_2", 16);
iVar3 = 13;
iVar4 = 2;
iVar1 = 4170;
iVar5 = 0;
iVar8 = 1;
break;
case 110:
StringCopy(&Var2, "HT_FMM_13_3", 16);
iVar3 = 13;
iVar4 = 3;
iVar1 = 335;
iVar5 = 0;
iVar8 = 1;
break;
case 111:
StringCopy(&Var2, "HT_FMM_13_4", 16);
iVar3 = 13;
iVar4 = 4;
iVar1 = 4940;
iVar5 = 0;
iVar8 = 1;
break;
case 112:
StringCopy(&Var2, "HT_FMM_13_5", 16);
iVar3 = 13;
iVar4 = 5;
iVar1 = 275;
iVar5 = 0;
iVar8 = 1;
break;
case 113:
StringCopy(&Var2, "HT_FMM_13_6", 16);
iVar3 = 13;
iVar4 = 6;
iVar1 = 5000;
iVar5 = 0;
iVar8 = 1;
break;
case 114:
StringCopy(&Var2, "HT_FMM_13_7", 16);
iVar3 = 13;
iVar4 = 7;
iVar1 = 3620;
iVar5 = 0;
iVar8 = 1;
break;
case 115:
StringCopy(&Var2, "HT_FMM_14_0", 16);
iVar3 = 14;
iVar4 = 0;
iVar1 = 30;
iVar5 = 0;
iVar8 = 1;
break;
case 116:
StringCopy(&Var2, "HT_FMM_14_1", 16);
iVar3 = 14;
iVar4 = 1;
iVar1 = 25;
iVar5 = 0;
iVar8 = 1;
break;
case 117:
StringCopy(&Var2, "HT_FMM_14_2", 16);
iVar3 = 14;
iVar4 = 2;
iVar1 = 30;
iVar5 = 0;
iVar8 = 1;
break;
case 118:
StringCopy(&Var2, "HT_FMM_14_3", 16);
iVar3 = 14;
iVar4 = 3;
iVar1 = 30;
iVar5 = 0;
iVar8 = 1;
break;
case 119:
StringCopy(&Var2, "HT_FMM_14_4", 16);
iVar3 = 14;
iVar4 = 4;
iVar1 = 35;
iVar5 = 0;
iVar8 = 1;
break;
case 120:
StringCopy(&Var2, "HT_FMM_14_5", 16);
iVar3 = 14;
iVar4 = 5;
iVar1 = 30;
iVar5 = 0;
iVar8 = 1;
break;
case 121:
StringCopy(&Var2, "HT_FMM_14_6", 16);
iVar3 = 14;
iVar4 = 6;
iVar1 = 350;
iVar5 = 0;
iVar8 = 1;
break;
case 122:
StringCopy(&Var2, "HT_FMM_14_7", 16);
iVar3 = 14;
iVar4 = 7;
iVar1 = 35;
iVar5 = 0;
iVar8 = 1;
break;
case 123:
StringCopy(&Var2, "HT_FMM_15_0", 16);
iVar3 = 15;
iVar4 = 0;
iVar1 = 365;
iVar5 = 0;
iVar8 = 1;
break;
case 124:
StringCopy(&Var2, "HT_FMM_15_1", 16);
iVar3 = 15;
iVar4 = 1;
iVar1 = 380;
iVar5 = 0;
iVar8 = 1;
break;
case 125:
StringCopy(&Var2, "HT_FMM_15_2", 16);
iVar3 = 15;
iVar4 = 2;
iVar1 = 595;
iVar5 = 0;
iVar8 = 1;
break;
case 126:
StringCopy(&Var2, "HT_FMM_15_3", 16);
iVar3 = 15;
iVar4 = 3;
iVar1 = 595;
iVar5 = 0;
iVar8 = 1;
break;
case 127:
StringCopy(&Var2, "HT_FMM_15_4", 16);
iVar3 = 15;
iVar4 = 4;
iVar1 = 600;
iVar5 = 0;
iVar8 = 1;
break;
case 128:
StringCopy(&Var2, "HT_FMM_15_5", 16);
iVar3 = 15;
iVar4 = 5;
iVar1 = 590;
iVar5 = 0;
iVar8 = 1;
break;
case 129:
StringCopy(&Var2, "HT_FMM_15_6", 16);
iVar3 = 15;
iVar4 = 6;
iVar1 = 395;
iVar5 = 0;
iVar8 = 1;
break;
case 130:
StringCopy(&Var2, "HT_FMM_15_7", 16);
iVar3 = 15;
iVar4 = 7;
iVar1 = 555;
iVar5 = 0;
iVar8 = 1;
break;
}
switch (iParam0)
{
case 131:
StringCopy(&Var2, "HE_FMM_16_0", 16);
iVar3 = 16;
iVar4 = 0;
iVar1 = 1060;
iVar5 = 0;
iVar8 = 2;
break;
case 132:
StringCopy(&Var2, "HE_FMM_16_1", 16);
iVar3 = 16;
iVar4 = 1;
iVar1 = 1400;
iVar5 = 0;
iVar8 = 2;
break;
case 133:
StringCopy(&Var2, "HE_FMM_16_2", 16);
iVar3 = 16;
iVar4 = 2;
iVar1 = 1315;
iVar5 = 0;
iVar8 = 2;
break;
case 134:
StringCopy(&Var2, "HE_FMM_16_3", 16);
iVar3 = 16;
iVar4 = 3;
iVar1 = 1230;
iVar5 = 0;
iVar8 = 2;
break;
case 135:
StringCopy(&Var2, "HE_FMM_16_4", 16);
iVar3 = 16;
iVar4 = 4;
iVar1 = 1145;
iVar5 = 0;
iVar8 = 2;
break;
case 136:
StringCopy(&Var2, "HE_FMM_16_5", 16);
iVar3 = 16;
iVar4 = 5;
iVar1 = 8450;
iVar5 = 0;
iVar8 = 2;
break;
case 137:
StringCopy(&Var2, "HE_FMM_16_6", 16);
iVar3 = 16;
iVar4 = 6;
iVar1 = 675;
iVar5 = 0;
iVar8 = 2;
break;
case 138:
StringCopy(&Var2, "HE_FMM_16_7", 16);
iVar3 = 16;
iVar4 = 7;
iVar1 = 8750;
iVar5 = 0;
iVar8 = 2;
break;
case 139:
StringCopy(&Var2, "HE_FMM_17_0", 16);
iVar3 = 17;
iVar4 = 0;
iVar1 = 975;
iVar5 = 0;
iVar8 = 2;
break;
case 140:
StringCopy(&Var2, "HE_FMM_17_1", 16);
iVar3 = 17;
iVar4 = 1;
iVar1 = 750;
iVar5 = 0;
iVar8 = 2;
break;
case 141:
StringCopy(&Var2, "HE_FMM_17_2", 16);
iVar3 = 17;
iVar4 = 2;
iVar1 = 865;
iVar5 = 0;
iVar8 = 2;
break;
case 142:
StringCopy(&Var2, "HE_FMM_17_3", 16);
iVar3 = 17;
iVar4 = 3;
iVar1 = 890;
iVar5 = 0;
iVar8 = 2;
break;
case 143:
StringCopy(&Var2, "HE_FMM_17_4", 16);
iVar3 = 17;
iVar4 = 4;
iVar1 = 730;
iVar5 = 0;
iVar8 = 2;
break;
case 144:
StringCopy(&Var2, "HE_FMM_17_5", 16);
iVar3 = 17;
iVar4 = 5;
iVar1 = 650;
iVar5 = 0;
iVar8 = 2;
break;
case 145:
StringCopy(&Var2, "HE_FMM_17_6", 16);
iVar3 = 17;
iVar4 = 6;
iVar1 = 645;
iVar5 = 0;
iVar8 = 2;
break;
case 146:
StringCopy(&Var2, "HE_FMM_17_7", 16);
iVar3 = 17;
iVar4 = 7;
iVar1 = 755;
iVar5 = 0;
iVar8 = 2;
break;
case 147:
StringCopy(&Var2, "HE_FMM_18_0", 16);
iVar3 = 18;
iVar4 = 0;
iVar1 = 13850;
iVar5 = 0;
iVar8 = 2;
break;
case 148:
StringCopy(&Var2, "HE_FMM_18_1", 16);
iVar3 = 18;
iVar4 = 1;
iVar1 = 2900;
iVar5 = 0;
iVar8 = 2;
break;
case 149:
StringCopy(&Var2, "HE_FMM_18_2", 16);
iVar3 = 18;
iVar4 = 2;
iVar1 = 2895;
iVar5 = 0;
iVar8 = 2;
break;
case 150:
StringCopy(&Var2, "HE_FMM_18_3", 16);
iVar3 = 18;
iVar4 = 3;
iVar1 = 12500;
iVar5 = 0;
iVar8 = 2;
break;
case 151:
StringCopy(&Var2, "HE_FMM_18_4", 16);
iVar3 = 18;
iVar4 = 4;
iVar1 = 15000;
iVar5 = 0;
iVar8 = 2;
break;
case 152:
StringCopy(&Var2, "HE_FMM_18_5", 16);
iVar3 = 18;
iVar4 = 5;
iVar1 = 14750;
iVar5 = 0;
iVar8 = 2;
break;
case 153:
StringCopy(&Var2, "HE_FMM_18_6", 16);
iVar3 = 18;
iVar4 = 6;
iVar1 = 13150;
iVar5 = 0;
iVar8 = 2;
break;
case 154:
StringCopy(&Var2, "HE_FMM_18_7", 16);
iVar3 = 18;
iVar4 = 7;
iVar1 = 2925;
iVar5 = 0;
iVar8 = 2;
break;
}
switch (iParam0)
{
case 155:
StringCopy(&Var2, "G_FMM_0_0", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 156:
StringCopy(&Var2, "G_FMM_0_1", 16);
iVar3 = 0;
iVar4 = 1;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 157:
StringCopy(&Var2, "G_FMM_0_2", 16);
iVar3 = 0;
iVar4 = 2;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 158:
StringCopy(&Var2, "G_FMM_0_3", 16);
iVar3 = 0;
iVar4 = 3;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 159:
StringCopy(&Var2, "G_FMM_0_4", 16);
iVar3 = 0;
iVar4 = 4;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 160:
StringCopy(&Var2, "G_FMM_0_5", 16);
iVar3 = 0;
iVar4 = 5;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 161:
StringCopy(&Var2, "G_FMM_0_6", 16);
iVar3 = 0;
iVar4 = 6;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 162:
StringCopy(&Var2, "G_FMM_0_7", 16);
iVar3 = 0;
iVar4 = 7;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 163:
StringCopy(&Var2, "G_FMM_0_8", 16);
iVar3 = 0;
iVar4 = 8;
iVar1 = 50;
iVar5 = 1;
iVar8 = 3;
break;
case 164:
StringCopy(&Var2, "G_FMM_0_9", 16);
iVar3 = 0;
iVar4 = 9;
iVar1 = 50;
iVar5 = 1;
iVar8 = 3;
break;
case 165:
StringCopy(&Var2, "G_FMM_0_10", 16);
iVar3 = 0;
iVar4 = 10;
iVar1 = 50;
iVar5 = 1;
iVar8 = 3;
break;
case 166:
StringCopy(&Var2, "G_FMM_1_0", 16);
iVar3 = 1;
iVar4 = 0;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 167:
StringCopy(&Var2, "G_FMM_1_1", 16);
iVar3 = 1;
iVar4 = 1;
iVar1 = 180;
iVar5 = 1;
iVar8 = 3;
break;
case 168:
StringCopy(&Var2, "G_FMM_1_2", 16);
iVar3 = 1;
iVar4 = 2;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 169:
StringCopy(&Var2, "G_FMM_1_3", 16);
iVar3 = 1;
iVar4 = 3;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 170:
StringCopy(&Var2, "G_FMM_1_4", 16);
iVar3 = 1;
iVar4 = 4;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 171:
StringCopy(&Var2, "G_FMM_1_5", 16);
iVar3 = 1;
iVar4 = 5;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 172:
StringCopy(&Var2, "G_FMM_1_6", 16);
iVar3 = 1;
iVar4 = 6;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 173:
StringCopy(&Var2, "G_FMM_1_7", 16);
iVar3 = 1;
iVar4 = 7;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 174:
StringCopy(&Var2, "G_FMM_2_0", 16);
iVar3 = 2;
iVar4 = 0;
iVar1 = 110;
iVar5 = 1;
iVar8 = 3;
break;
case 175:
StringCopy(&Var2, "G_FMM_2_1", 16);
iVar3 = 2;
iVar4 = 1;
iVar1 = 140;
iVar5 = 1;
iVar8 = 3;
break;
case 176:
StringCopy(&Var2, "G_FMM_2_2", 16);
iVar3 = 2;
iVar4 = 2;
iVar1 = 380;
iVar5 = 1;
iVar8 = 3;
break;
case 177:
StringCopy(&Var2, "G_FMM_2_3", 16);
iVar3 = 2;
iVar4 = 3;
iVar1 = 135;
iVar5 = 1;
iVar8 = 3;
break;
case 178:
StringCopy(&Var2, "G_FMM_2_4", 16);
iVar3 = 2;
iVar4 = 4;
iVar1 = 130;
iVar5 = 1;
iVar8 = 3;
break;
case 179:
StringCopy(&Var2, "G_FMM_2_5", 16);
iVar3 = 2;
iVar4 = 5;
iVar1 = 110;
iVar5 = 1;
iVar8 = 3;
break;
case 180:
StringCopy(&Var2, "G_FMM_2_6", 16);
iVar3 = 2;
iVar4 = 6;
iVar1 = 140;
iVar5 = 1;
iVar8 = 3;
break;
case 181:
StringCopy(&Var2, "G_FMM_2_7", 16);
iVar3 = 2;
iVar4 = 7;
iVar1 = 390;
iVar5 = 1;
iVar8 = 3;
break;
case 182:
StringCopy(&Var2, "CLO_EXM_G_2_8", 16);
iVar3 = 2;
iVar4 = 8;
iVar1 = 950;
iVar5 = 1;
iVar8 = 3;
break;
case 183:
StringCopy(&Var2, "CLO_EXM_G_2_9", 16);
iVar3 = 2;
iVar4 = 9;
iVar1 = 565;
iVar5 = 1;
iVar8 = 3;
break;
case 184:
StringCopy(&Var2, "CLO_EXM_G_2_10", 16);
iVar3 = 2;
iVar4 = 10;
iVar1 = 630;
iVar5 = 1;
iVar8 = 3;
break;
case 185:
StringCopy(&Var2, "G_FMM_3_0", 16);
iVar3 = 3;
iVar4 = 0;
iVar1 = 70;
iVar5 = 1;
iVar8 = 3;
break;
case 186:
StringCopy(&Var2, "G_FMM_3_1", 16);
iVar3 = 3;
iVar4 = 1;
iVar1 = 60;
iVar5 = 1;
iVar8 = 3;
break;
case 187:
StringCopy(&Var2, "G_FMM_3_2", 16);
iVar3 = 3;
iVar4 = 2;
iVar1 = 65;
iVar5 = 1;
iVar8 = 3;
break;
case 188:
StringCopy(&Var2, "G_FMM_3_3", 16);
iVar3 = 3;
iVar4 = 3;
iVar1 = 95;
iVar5 = 1;
iVar8 = 3;
break;
case 189:
StringCopy(&Var2, "G_FMM_3_4", 16);
iVar3 = 3;
iVar4 = 4;
iVar1 = 85;
iVar5 = 1;
iVar8 = 3;
break;
case 190:
StringCopy(&Var2, "G_FMM_3_5", 16);
iVar3 = 3;
iVar4 = 5;
iVar1 = 75;
iVar5 = 1;
iVar8 = 3;
break;
case 191:
StringCopy(&Var2, "G_FMM_3_6", 16);
iVar3 = 3;
iVar4 = 6;
iVar1 = 75;
iVar5 = 1;
iVar8 = 3;
break;
case 192:
StringCopy(&Var2, "G_FMM_3_7", 16);
iVar3 = 3;
iVar4 = 7;
iVar1 = 90;
iVar5 = 1;
iVar8 = 3;
break;
case 193:
StringCopy(&Var2, "CLO_EXM_G_3_8", 16);
iVar3 = 3;
iVar4 = 8;
iVar1 = 650;
iVar5 = 1;
iVar8 = 3;
break;
case 194:
StringCopy(&Var2, "CLO_EXM_G_3_9", 16);
iVar3 = 3;
iVar4 = 9;
iVar1 = 265;
iVar5 = 1;
iVar8 = 3;
break;
case 195:
StringCopy(&Var2, "CLO_EXM_G_3_10", 16);
iVar3 = 3;
iVar4 = 10;
iVar1 = 330;
iVar5 = 1;
iVar8 = 3;
break;
case 196:
StringCopy(&Var2, "G_FMM_4_0", 16);
iVar3 = 4;
iVar4 = 0;
iVar1 = 245;
iVar5 = 1;
iVar8 = 3;
break;
case 197:
StringCopy(&Var2, "G_FMM_4_1", 16);
iVar3 = 4;
iVar4 = 1;
iVar1 = 250;
iVar5 = 1;
iVar8 = 3;
break;
case 198:
StringCopy(&Var2, "G_FMM_4_2", 16);
iVar3 = 4;
iVar4 = 2;
iVar1 = 210;
iVar5 = 1;
iVar8 = 3;
break;
case 199:
StringCopy(&Var2, "G_FMM_4_3", 16);
iVar3 = 4;
iVar4 = 3;
iVar1 = 245;
iVar5 = 1;
iVar8 = 3;
break;
case 200:
StringCopy(&Var2, "G_FMM_4_4", 16);
iVar3 = 4;
iVar4 = 4;
iVar1 = 205;
iVar5 = 1;
iVar8 = 3;
break;
case 201:
StringCopy(&Var2, "G_FMM_4_5", 16);
iVar3 = 4;
iVar4 = 5;
iVar1 = 205;
iVar5 = 1;
iVar8 = 3;
break;
case 202:
StringCopy(&Var2, "G_FMM_4_6", 16);
iVar3 = 4;
iVar4 = 6;
iVar1 = 215;
iVar5 = 1;
iVar8 = 3;
break;
case 203:
StringCopy(&Var2, "G_FMM_4_7", 16);
iVar3 = 4;
iVar4 = 7;
iVar1 = 215;
iVar5 = 1;
iVar8 = 3;
break;
case 204:
StringCopy(&Var2, "CLO_EXM_G_4_8", 16);
iVar3 = 4;
iVar4 = 8;
iVar1 = 995;
iVar5 = 1;
iVar8 = 3;
break;
case 205:
StringCopy(&Var2, "CLO_EXM_G_4_9", 16);
iVar3 = 4;
iVar4 = 9;
iVar1 = 610;
iVar5 = 1;
iVar8 = 3;
break;
case 206:
StringCopy(&Var2, "CLO_EXM_G_4_10", 16);
iVar3 = 4;
iVar4 = 10;
iVar1 = 675;
iVar5 = 1;
iVar8 = 3;
break;
case 207:
StringCopy(&Var2, "G_FMM_5_0", 16);
iVar3 = 5;
iVar4 = 0;
iVar1 = 4050;
iVar5 = 1;
iVar8 = 3;
break;
case 208:
StringCopy(&Var2, "G_FMM_5_1", 16);
iVar3 = 5;
iVar4 = 1;
iVar1 = 4060;
iVar5 = 1;
iVar8 = 3;
break;
case 209:
StringCopy(&Var2, "G_FMM_5_2", 16);
iVar3 = 5;
iVar4 = 2;
iVar1 = 170;
iVar5 = 1;
iVar8 = 3;
break;
case 210:
StringCopy(&Var2, "G_FMM_5_3", 16);
iVar3 = 5;
iVar4 = 3;
iVar1 = 135;
iVar5 = 1;
iVar8 = 3;
break;
case 211:
StringCopy(&Var2, "G_FMM_5_4", 16);
iVar3 = 5;
iVar4 = 4;
iVar1 = 120;
iVar5 = 1;
iVar8 = 3;
break;
case 212:
StringCopy(&Var2, "G_FMM_5_5", 16);
iVar3 = 5;
iVar4 = 5;
iVar1 = 110;
iVar5 = 1;
iVar8 = 3;
break;
case 213:
StringCopy(&Var2, "G_FMM_5_6", 16);
iVar3 = 5;
iVar4 = 6;
iVar1 = 140;
iVar5 = 1;
iVar8 = 3;
break;
case 214:
StringCopy(&Var2, "G_FMM_5_7", 16);
iVar3 = 5;
iVar4 = 7;
iVar1 = 130;
iVar5 = 1;
iVar8 = 3;
break;
case 215:
StringCopy(&Var2, "CLO_EXM_G_5_8", 16);
iVar3 = 5;
iVar4 = 8;
iVar1 = 1760;
iVar5 = 1;
iVar8 = 3;
break;
case 216:
StringCopy(&Var2, "CLO_EXM_G_5_9", 16);
iVar3 = 5;
iVar4 = 9;
iVar1 = 1375;
iVar5 = 1;
iVar8 = 3;
break;
case 217:
StringCopy(&Var2, "CLO_EXM_G_5_10", 16);
iVar3 = 5;
iVar4 = 10;
iVar1 = 1440;
iVar5 = 1;
iVar8 = 3;
break;
case 218:
StringCopy(&Var2, "G_FMM_6_0", 16);
iVar3 = 6;
iVar4 = 0;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 219:
StringCopy(&Var2, "G_FMM_6_1", 16);
iVar3 = 6;
iVar4 = 1;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 220:
StringCopy(&Var2, "G_FMM_6_2", 16);
iVar3 = 6;
iVar4 = 2;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 221:
StringCopy(&Var2, "G_FMM_6_3", 16);
iVar3 = 6;
iVar4 = 3;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 222:
StringCopy(&Var2, "G_FMM_6_4", 16);
iVar3 = 6;
iVar4 = 4;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 223:
StringCopy(&Var2, "G_FMM_6_5", 16);
iVar3 = 6;
iVar4 = 5;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 224:
StringCopy(&Var2, "G_FMM_6_6", 16);
iVar3 = 6;
iVar4 = 6;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 225:
StringCopy(&Var2, "G_FMM_6_7", 16);
iVar3 = 6;
iVar4 = 7;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 226:
StringCopy(&Var2, "G_FMM_7_0", 16);
iVar3 = 7;
iVar4 = 0;
iVar1 = 180;
iVar5 = 1;
iVar8 = 3;
break;
case 227:
StringCopy(&Var2, "G_FMM_7_1", 16);
iVar3 = 7;
iVar4 = 1;
iVar1 = 500;
iVar5 = 1;
iVar8 = 3;
break;
case 228:
StringCopy(&Var2, "G_FMM_7_2", 16);
iVar3 = 7;
iVar4 = 2;
iVar1 = 115;
iVar5 = 1;
iVar8 = 3;
break;
case 229:
StringCopy(&Var2, "G_FMM_7_3", 16);
iVar3 = 7;
iVar4 = 3;
iVar1 = 220;
iVar5 = 1;
iVar8 = 3;
break;
case 230:
StringCopy(&Var2, "G_FMM_7_4", 16);
iVar3 = 7;
iVar4 = 4;
iVar1 = 185;
iVar5 = 1;
iVar8 = 3;
break;
case 231:
StringCopy(&Var2, "G_FMM_7_5", 16);
iVar3 = 7;
iVar4 = 5;
iVar1 = 1445;
iVar5 = 1;
iVar8 = 3;
break;
case 232:
StringCopy(&Var2, "G_FMM_7_6", 16);
iVar3 = 7;
iVar4 = 6;
iVar1 = 530;
iVar5 = 1;
iVar8 = 3;
break;
case 233:
StringCopy(&Var2, "G_FMM_7_7", 16);
iVar3 = 7;
iVar4 = 7;
iVar1 = 650;
iVar5 = 1;
iVar8 = 3;
break;
case 234:
StringCopy(&Var2, "CLO_EXM_G_7_8", 16);
iVar3 = 7;
iVar4 = 8;
iVar1 = 1170;
iVar5 = 1;
iVar8 = 3;
break;
case 235:
StringCopy(&Var2, "CLO_EXM_G_7_9", 16);
iVar3 = 7;
iVar4 = 9;
iVar1 = 785;
iVar5 = 1;
iVar8 = 3;
break;
case 236:
StringCopy(&Var2, "CLO_EXM_G_7_10", 16);
iVar3 = 7;
iVar4 = 10;
iVar1 = 850;
iVar5 = 1;
iVar8 = 3;
break;
}
switch (iParam0)
{
case 237:
StringCopy(&Var2, "G_FMM_8_0", 16);
iVar3 = 8;
iVar4 = 0;
iVar1 = 4260;
iVar5 = 1;
iVar8 = 3;
break;
case 238:
StringCopy(&Var2, "G_FMM_8_1", 16);
iVar3 = 8;
iVar4 = 1;
iVar1 = 4310;
iVar5 = 1;
iVar8 = 3;
break;
case 239:
StringCopy(&Var2, "G_FMM_8_2", 16);
iVar3 = 8;
iVar4 = 2;
iVar1 = 4130;
iVar5 = 1;
iVar8 = 3;
break;
case 240:
StringCopy(&Var2, "G_FMM_8_3", 16);
iVar3 = 8;
iVar4 = 3;
iVar1 = 135;
iVar5 = 1;
iVar8 = 3;
break;
case 241:
StringCopy(&Var2, "G_FMM_8_4", 16);
iVar3 = 8;
iVar4 = 4;
iVar1 = 120;
iVar5 = 1;
iVar8 = 3;
break;
case 242:
StringCopy(&Var2, "G_FMM_8_5", 16);
iVar3 = 8;
iVar4 = 5;
iVar1 = 110;
iVar5 = 1;
iVar8 = 3;
break;
case 243:
StringCopy(&Var2, "G_FMM_8_6", 16);
iVar3 = 8;
iVar4 = 6;
iVar1 = 140;
iVar5 = 1;
iVar8 = 3;
break;
case 244:
StringCopy(&Var2, "G_FMM_8_7", 16);
iVar3 = 8;
iVar4 = 7;
iVar1 = 130;
iVar5 = 1;
iVar8 = 3;
break;
case 245:
StringCopy(&Var2, "CLO_EXM_G_8_8", 16);
iVar3 = 8;
iVar4 = 8;
iVar1 = 1885;
iVar5 = 1;
iVar8 = 3;
break;
case 246:
StringCopy(&Var2, "CLO_EXM_G_8_9", 16);
iVar3 = 8;
iVar4 = 9;
iVar1 = 1500;
iVar5 = 1;
iVar8 = 3;
break;
case 247:
StringCopy(&Var2, "CLO_EXM_G_8_10", 16);
iVar3 = 8;
iVar4 = 10;
iVar1 = 1565;
iVar5 = 1;
iVar8 = 3;
break;
case 248:
StringCopy(&Var2, "G_FMM_9_0", 16);
iVar3 = 9;
iVar4 = 0;
iVar1 = 65;
iVar5 = 1;
iVar8 = 3;
break;
case 249:
StringCopy(&Var2, "G_FMM_9_1", 16);
iVar3 = 9;
iVar4 = 1;
iVar1 = 65;
iVar5 = 1;
iVar8 = 3;
break;
case 250:
StringCopy(&Var2, "G_FMM_9_2", 16);
iVar3 = 9;
iVar4 = 2;
iVar1 = 85;
iVar5 = 1;
iVar8 = 3;
break;
case 251:
StringCopy(&Var2, "G_FMM_9_3", 16);
iVar3 = 9;
iVar4 = 3;
iVar1 = 75;
iVar5 = 1;
iVar8 = 3;
break;
case 252:
StringCopy(&Var2, "G_FMM_9_4", 16);
iVar3 = 9;
iVar4 = 4;
iVar1 = 85;
iVar5 = 1;
iVar8 = 3;
break;
case 253:
StringCopy(&Var2, "G_FMM_9_5", 16);
iVar3 = 9;
iVar4 = 5;
iVar1 = 4290;
iVar5 = 1;
iVar8 = 3;
break;
case 254:
StringCopy(&Var2, "G_FMM_9_6", 16);
iVar3 = 9;
iVar4 = 6;
iVar1 = 4150;
iVar5 = 1;
iVar8 = 3;
break;
case 255:
StringCopy(&Var2, "G_FMM_9_7", 16);
iVar3 = 9;
iVar4 = 7;
iVar1 = 4295;
iVar5 = 1;
iVar8 = 3;
break;
case 256:
StringCopy(&Var2, "CLO_EXM_G_9_8", 16);
iVar3 = 9;
iVar4 = 8;
iVar1 = 2315;
iVar5 = 1;
iVar8 = 3;
break;
case 257:
StringCopy(&Var2, "CLO_EXM_G_9_9", 16);
iVar3 = 9;
iVar4 = 9;
iVar1 = 1930;
iVar5 = 1;
iVar8 = 3;
break;
case 258:
StringCopy(&Var2, "CLO_EXM_G_9_10", 16);
iVar3 = 9;
iVar4 = 10;
iVar1 = 1995;
iVar5 = 1;
iVar8 = 3;
break;
case 259:
StringCopy(&Var2, "G_FMM_10_0", 16);
iVar3 = 10;
iVar4 = 0;
iVar1 = 6240;
iVar5 = 1;
iVar8 = 3;
break;
case 260:
StringCopy(&Var2, "G_FMM_10_1", 16);
iVar3 = 10;
iVar4 = 1;
iVar1 = 4955;
iVar5 = 1;
iVar8 = 3;
break;
case 261:
StringCopy(&Var2, "G_FMM_10_2", 16);
iVar3 = 10;
iVar4 = 2;
iVar1 = 5590;
iVar5 = 1;
iVar8 = 3;
break;
case 262:
StringCopy(&Var2, "G_FMM_10_3", 16);
iVar3 = 10;
iVar4 = 3;
iVar1 = 4920;
iVar5 = 1;
iVar8 = 3;
break;
case 263:
StringCopy(&Var2, "G_FMM_10_4", 16);
iVar3 = 10;
iVar4 = 4;
iVar1 = 4990;
iVar5 = 1;
iVar8 = 3;
break;
case 264:
StringCopy(&Var2, "G_FMM_10_5", 16);
iVar3 = 10;
iVar4 = 5;
iVar1 = 4780;
iVar5 = 1;
iVar8 = 3;
break;
case 265:
StringCopy(&Var2, "G_FMM_10_6", 16);
iVar3 = 10;
iVar4 = 6;
iVar1 = 4775;
iVar5 = 1;
iVar8 = 3;
break;
case 266:
StringCopy(&Var2, "G_FMM_10_7", 16);
iVar3 = 10;
iVar4 = 7;
iVar1 = 4800;
iVar5 = 1;
iVar8 = 3;
break;
case 267:
StringCopy(&Var2, "CLO_EXM_G_10_8", 16);
iVar3 = 10;
iVar4 = 8;
iVar1 = 2835;
iVar5 = 1;
iVar8 = 3;
break;
case 268:
StringCopy(&Var2, "CLO_EXM_G_10_9", 16);
iVar3 = 10;
iVar4 = 9;
iVar1 = 2450;
iVar5 = 1;
iVar8 = 3;
break;
case 269:
StringCopy(&Var2, "CLO_EXM_G_10_10", 16);
iVar3 = 10;
iVar4 = 10;
iVar1 = 2515;
iVar5 = 1;
iVar8 = 3;
break;
case 270:
StringCopy(&Var2, "G_FMM_11_0", 16);
iVar3 = 11;
iVar4 = 0;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 271:
StringCopy(&Var2, "G_FMM_11_1", 16);
iVar3 = 11;
iVar4 = 1;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 272:
StringCopy(&Var2, "G_FMM_11_2", 16);
iVar3 = 11;
iVar4 = 2;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 273:
StringCopy(&Var2, "G_FMM_11_3", 16);
iVar3 = 11;
iVar4 = 3;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 274:
StringCopy(&Var2, "G_FMM_11_4", 16);
iVar3 = 11;
iVar4 = 4;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 275:
StringCopy(&Var2, "G_FMM_11_5", 16);
iVar3 = 11;
iVar4 = 5;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 277:
StringCopy(&Var2, "G_FMM_11_7", 16);
iVar3 = 11;
iVar4 = 7;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 278:
StringCopy(&Var2, "G_FMM_12_0", 16);
iVar3 = 12;
iVar4 = 0;
iVar1 = 385;
iVar5 = 1;
iVar8 = 3;
break;
case 279:
StringCopy(&Var2, "G_FMM_12_1", 16);
iVar3 = 12;
iVar4 = 1;
iVar1 = 310;
iVar5 = 1;
iVar8 = 3;
break;
case 280:
StringCopy(&Var2, "G_FMM_12_2", 16);
iVar3 = 12;
iVar4 = 2;
iVar1 = 3655;
iVar5 = 1;
iVar8 = 3;
break;
case 281:
StringCopy(&Var2, "G_FMM_12_3", 16);
iVar3 = 12;
iVar4 = 3;
iVar1 = 4055;
iVar5 = 1;
iVar8 = 3;
break;
case 282:
StringCopy(&Var2, "G_FMM_12_4", 16);
iVar3 = 12;
iVar4 = 4;
iVar1 = 3595;
iVar5 = 1;
iVar8 = 3;
break;
case 283:
StringCopy(&Var2, "G_FMM_12_5", 16);
iVar3 = 12;
iVar4 = 5;
iVar1 = 3605;
iVar5 = 1;
iVar8 = 3;
break;
case 284:
StringCopy(&Var2, "G_FMM_12_6", 16);
iVar3 = 12;
iVar4 = 6;
iVar1 = 3645;
iVar5 = 1;
iVar8 = 3;
break;
case 285:
StringCopy(&Var2, "G_FMM_12_7", 16);
iVar3 = 12;
iVar4 = 7;
iVar1 = 320;
iVar5 = 1;
iVar8 = 3;
break;
case 286:
StringCopy(&Var2, "CLO_EXM_G_12_8", 16);
iVar3 = 12;
iVar4 = 8;
iVar1 = 2820;
iVar5 = 1;
iVar8 = 3;
break;
case 287:
StringCopy(&Var2, "CLO_EXM_G_12_9", 16);
iVar3 = 12;
iVar4 = 9;
iVar1 = 2435;
iVar5 = 1;
iVar8 = 3;
break;
case 288:
StringCopy(&Var2, "CLO_EXM_G_12_10", 16);
iVar3 = 12;
iVar4 = 10;
iVar1 = 2500;
iVar5 = 1;
iVar8 = 3;
break;
case 289:
StringCopy(&Var2, "G_FMM_13_0", 16);
iVar3 = 13;
iVar4 = 0;
iVar1 = 230;
iVar5 = 1;
iVar8 = 3;
break;
case 290:
StringCopy(&Var2, "G_FMM_13_1", 16);
iVar3 = 13;
iVar4 = 1;
iVar1 = 1605;
iVar5 = 1;
iVar8 = 3;
break;
case 291:
StringCopy(&Var2, "G_FMM_13_2", 16);
iVar3 = 13;
iVar4 = 2;
iVar1 = 2230;
iVar5 = 1;
iVar8 = 3;
break;
case 292:
StringCopy(&Var2, "G_FMM_13_3", 16);
iVar3 = 13;
iVar4 = 3;
iVar1 = 220;
iVar5 = 1;
iVar8 = 3;
break;
case 293:
StringCopy(&Var2, "G_FMM_13_4", 16);
iVar3 = 13;
iVar4 = 4;
iVar1 = 185;
iVar5 = 1;
iVar8 = 3;
break;
case 294:
StringCopy(&Var2, "G_FMM_13_5", 16);
iVar3 = 13;
iVar4 = 5;
iVar1 = 2070;
iVar5 = 1;
iVar8 = 3;
break;
case 295:
StringCopy(&Var2, "G_FMM_13_6", 16);
iVar3 = 13;
iVar4 = 6;
iVar1 = 2205;
iVar5 = 1;
iVar8 = 3;
break;
case 296:
StringCopy(&Var2, "G_FMM_13_7", 16);
iVar3 = 13;
iVar4 = 7;
iVar1 = 1690;
iVar5 = 1;
iVar8 = 3;
break;
case 297:
StringCopy(&Var2, "CLO_EXM_G_13_8", 16);
iVar3 = 13;
iVar4 = 8;
iVar1 = 2715;
iVar5 = 1;
iVar8 = 3;
break;
case 298:
StringCopy(&Var2, "CLO_EXM_G_13_9", 16);
iVar3 = 13;
iVar4 = 9;
iVar1 = 2330;
iVar5 = 1;
iVar8 = 3;
break;
case 299:
StringCopy(&Var2, "CLO_EXM_G_13_10", 16);
iVar3 = 13;
iVar4 = 10;
iVar1 = 2395;
iVar5 = 1;
iVar8 = 3;
break;
case 300:
StringCopy(&Var2, "G_FMM_14_0", 16);
iVar3 = 14;
iVar4 = 0;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 301:
StringCopy(&Var2, "G_FMM_14_1", 16);
iVar3 = 14;
iVar4 = 1;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 302:
StringCopy(&Var2, "G_FMM_14_2", 16);
iVar3 = 14;
iVar4 = 2;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 303:
StringCopy(&Var2, "G_FMM_14_3", 16);
iVar3 = 14;
iVar4 = 3;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 304:
StringCopy(&Var2, "G_FMM_14_4", 16);
iVar3 = 14;
iVar4 = 4;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 305:
StringCopy(&Var2, "G_FMM_14_5", 16);
iVar3 = 14;
iVar4 = 5;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 306:
StringCopy(&Var2, "G_FMM_14_6", 16);
iVar3 = 14;
iVar4 = 6;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 307:
StringCopy(&Var2, "G_FMM_14_7", 16);
iVar3 = 14;
iVar4 = 7;
iVar1 = 0;
iVar5 = 1;
iVar8 = 3;
bVar0 = true;
break;
case 308:
StringCopy(&Var2, "G_FMM_15_0", 16);
iVar3 = 15;
iVar4 = 0;
iVar1 = 515;
iVar5 = 1;
iVar8 = 3;
break;
case 309:
StringCopy(&Var2, "G_FMM_15_1", 16);
iVar3 = 15;
iVar4 = 1;
iVar1 = 60;
iVar5 = 1;
iVar8 = 3;
break;
case 310:
StringCopy(&Var2, "G_FMM_15_2", 16);
iVar3 = 15;
iVar4 = 2;
iVar1 = 65;
iVar5 = 1;
iVar8 = 3;
break;
case 311:
StringCopy(&Var2, "G_FMM_15_3", 16);
iVar3 = 15;
iVar4 = 3;
iVar1 = 95;
iVar5 = 1;
iVar8 = 3;
break;
case 312:
StringCopy(&Var2, "G_FMM_15_4", 16);
iVar3 = 15;
iVar4 = 4;
iVar1 = 85;
iVar5 = 1;
iVar8 = 3;
break;
case 313:
StringCopy(&Var2, "G_FMM_15_5", 16);
iVar3 = 15;
iVar4 = 5;
iVar1 = 75;
iVar5 = 1;
iVar8 = 3;
break;
case 314:
StringCopy(&Var2, "G_FMM_15_6", 16);
iVar3 = 15;
iVar4 = 6;
iVar1 = 485;
iVar5 = 1;
iVar8 = 3;
break;
case 315:
StringCopy(&Var2, "G_FMM_15_7", 16);
iVar3 = 15;
iVar4 = 7;
iVar1 = 545;
iVar5 = 1;
iVar8 = 3;
break;
case 316:
StringCopy(&Var2, "CLO_EXM_G_15_8", 16);
iVar3 = 15;
iVar4 = 8;
iVar1 = 645;
iVar5 = 1;
iVar8 = 3;
break;
case 317:
StringCopy(&Var2, "CLO_EXM_G_15_9", 16);
iVar3 = 15;
iVar4 = 9;
iVar1 = 260;
iVar5 = 1;
iVar8 = 3;
break;
case 318:
StringCopy(&Var2, "CLO_EXM_G_15_10", 16);
iVar3 = 15;
iVar4 = 10;
iVar1 = 325;
iVar5 = 1;
iVar8 = 3;
break;
}
switch (iParam0)
{
case 319:
StringCopy(&Var2, "W_FMM_0_0", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 5000;
iVar5 = 6;
iVar8 = 4;
break;
case 320:
StringCopy(&Var2, "W_FMM_0_1", 16);
iVar3 = 0;
iVar4 = 1;
iVar1 = 0;
iVar5 = 6;
iVar8 = 4;
bVar0 = true;
break;
case 321:
StringCopy(&Var2, "W_FMM_0_2", 16);
iVar3 = 0;
iVar4 = 2;
iVar1 = 0;
iVar5 = 6;
iVar8 = 4;
bVar0 = true;
break;
case 322:
StringCopy(&Var2, "W_FMM_0_3", 16);
iVar3 = 0;
iVar4 = 3;
iVar1 = 0;
iVar5 = 6;
iVar8 = 4;
bVar0 = true;
break;
case 323:
StringCopy(&Var2, "W_FMM_0_4", 16);
iVar3 = 0;
iVar4 = 4;
iVar1 = 0;
iVar5 = 6;
iVar8 = 4;
bVar0 = true;
break;
case 324:
StringCopy(&Var2, "W_FMM_1_0", 16);
iVar3 = 1;
iVar4 = 0;
iVar1 = 695;
iVar5 = 6;
iVar8 = 4;
break;
case 325:
StringCopy(&Var2, "W_FMM_1_1", 16);
iVar3 = 1;
iVar4 = 1;
iVar1 = 0;
iVar5 = 6;
iVar8 = 4;
bVar0 = true;
break;
case 326:
StringCopy(&Var2, "W_FMM_1_2", 16);
iVar3 = 1;
iVar4 = 2;
iVar1 = 0;
iVar5 = 6;
iVar8 = 4;
bVar0 = true;
break;
}
if (iVar8 == 1)
{
iVar9 = (iParam0 - 10);
if (iVar9 >= 0 && iVar9 < 121)
{
if (iVar9 > 8)
{
iVar9 = (iVar9 - 1);
}
iVar1 = round(((to_float(iVar1) * Global_262145.f_954[iVar9]) * Global_287780.f_18));
}
}
else if (iVar8 == 2)
{
iVar10 = (iParam0 - 131);
if (iVar10 >= 0 && iVar10 < 24)
{
iVar1 = round(((to_float(iVar1) * Global_262145.f_1075[iVar10]) * Global_287780.f_19));
}
}
else if (iVar8 == 3)
{
iVar11 = (iParam0 - 155);
if (iVar11 >= 0 && iVar11 < 128)
{
iVar1 = round(((to_float(iVar1) * Global_262145.f_1100[iVar11]) * Global_287780.f_20));
}
}
else if (iVar8 == 4)
{
iVar12 = (iParam0 - 319);
if (iVar12 >= 0 && iVar12 < 15)
{
iVar1 = round(((to_float(iVar1) * Global_262145.f_1229[iVar12]) * Global_287780.f_21));
}
}
if (iParam0 >= 327)
{
Global_71017[0 /*14*/].f_5 = 3;
func_164(iVar7, iParam0, 327, iParam1);
if (Global_71017[0 /*14*/].f_7 > 0)
{
if (unk_0x4BE6499482BEE1D8(Global_2621444, -1757550583, 1))
{
Global_71017[0 /*14*/].f_7 = round((to_float(Global_71017[0 /*14*/].f_7) * Global_287780.f_18));
}
else if (unk_0x4BE6499482BEE1D8(Global_2621444, 97230661, 1))
{
Global_71017[0 /*14*/].f_7 = round((to_float(Global_71017[0 /*14*/].f_7) * Global_287780.f_20));
}
else if (unk_0x4BE6499482BEE1D8(Global_2621444, 1147826474, 1))
{
Global_71017[0 /*14*/].f_7 = round((to_float(Global_71017[0 /*14*/].f_7) * Global_287780.f_21));
}
}
}
else
{
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
}
void func_529(int iParam0, int iParam1)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 10;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "D_FMM_0_0", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 0;
break;
case 1:
StringCopy(&Var2, "D_FMM_1_0", 16);
iVar3 = 1;
iVar4 = 0;
iVar1 = 5000;
break;
case 2:
StringCopy(&Var2, "D_FMM_2_0", 16);
iVar3 = 2;
iVar4 = 0;
iVar1 = 10000;
break;
case 3:
StringCopy(&Var2, "D_FMM_1_0", 16);
iVar3 = 3;
iVar4 = 0;
iVar1 = 5000;
break;
case 4:
StringCopy(&Var2, "D_FMM_2_0", 16);
iVar3 = 4;
iVar4 = 0;
iVar1 = 10000;
break;
case 5:
StringCopy(&Var2, "D_FMM_1_0", 16);
iVar3 = 5;
iVar4 = 0;
iVar1 = 5000;
break;
case 6:
StringCopy(&Var2, "D_FMM_2_0", 16);
iVar3 = 6;
iVar4 = 0;
iVar1 = 10000;
break;
default:
Global_71017[0 /*14*/].f_5 = 3;
func_164(iVar7, iParam0, 7, iParam1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_530(int iParam0, int iParam1)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 7;
switch (iParam0)
{
case 0:
iVar3 = 0;
iVar4 = 0;
iVar1 = 0;
break;
case 1:
iVar3 = 1;
iVar4 = 0;
iVar1 = 0;
bVar0 = true;
break;
case 2:
iVar3 = 1;
iVar4 = 1;
iVar1 = 0;
bVar0 = true;
break;
case 3:
iVar3 = 1;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 4:
iVar3 = 2;
iVar4 = 0;
iVar1 = 0;
bVar0 = true;
break;
case 5:
iVar3 = 2;
iVar4 = 1;
iVar1 = 0;
bVar0 = true;
break;
case 6:
iVar3 = 2;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 7:
iVar3 = 3;
iVar4 = 0;
iVar1 = 0;
bVar0 = true;
break;
case 8:
iVar3 = 3;
iVar4 = 1;
iVar1 = 0;
bVar0 = true;
break;
case 9:
iVar3 = 3;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 10:
iVar3 = 4;
iVar4 = 0;
iVar1 = 0;
bVar0 = true;
break;
case 11:
iVar3 = 4;
iVar4 = 1;
iVar1 = 0;
bVar0 = true;
break;
case 12:
iVar3 = 4;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 13:
iVar3 = 4;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 14:
iVar3 = 4;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 15:
iVar3 = 4;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 16:
iVar3 = 4;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 17:
iVar3 = 4;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 18:
iVar3 = 4;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 19:
iVar3 = 4;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 20:
iVar3 = 4;
iVar4 = 10;
bVar0 = true;
break;
case 21:
iVar3 = 4;
iVar4 = 11;
bVar0 = true;
break;
case 22:
iVar3 = 4;
iVar4 = 12;
bVar0 = true;
break;
case 23:
iVar3 = 4;
iVar4 = 13;
bVar0 = true;
break;
case 24:
iVar3 = 4;
iVar4 = 14;
bVar0 = true;
break;
case 25:
iVar3 = 4;
iVar4 = 15;
bVar0 = true;
break;
case 26:
iVar3 = 5;
iVar4 = 0;
iVar1 = 0;
bVar0 = true;
break;
case 27:
iVar3 = 5;
iVar4 = 1;
iVar1 = 0;
bVar0 = true;
break;
case 28:
iVar3 = 5;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 29:
iVar3 = 5;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 30:
iVar3 = 5;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 31:
iVar3 = 5;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 32:
iVar3 = 6;
iVar4 = 0;
iVar1 = 0;
bVar0 = true;
break;
case 33:
iVar3 = 6;
iVar4 = 1;
iVar1 = 0;
bVar0 = true;
break;
case 34:
iVar3 = 6;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 35:
iVar3 = 6;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 36:
iVar3 = 6;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 37:
iVar3 = 6;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 38:
iVar3 = 7;
iVar4 = 0;
break;
case 39:
iVar3 = 8;
iVar4 = 0;
break;
case 40:
iVar3 = 9;
iVar4 = 0;
break;
case 41:
iVar3 = 10;
iVar4 = 0;
if (Global_262145.f_4171 != -1)
{
iVar1 = Global_262145.f_4171;
}
else
{
iVar1 = 115;
}
break;
case 42:
iVar3 = 10;
iVar4 = 1;
if (Global_262145.f_4172 != -1)
{
iVar1 = Global_262145.f_4172;
}
else
{
iVar1 = 125;
}
break;
case 43:
iVar3 = 10;
iVar4 = 2;
if (Global_262145.f_4173 != -1)
{
iVar1 = Global_262145.f_4173;
}
else
{
iVar1 = 130;
}
break;
case 44:
iVar3 = 10;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 45:
iVar3 = 10;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 46:
iVar3 = 10;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 47:
iVar3 = 10;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 48:
iVar3 = 10;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 49:
iVar3 = 10;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 50:
iVar3 = 10;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 51:
iVar3 = 10;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 52:
iVar3 = 10;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 53:
iVar3 = 10;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 54:
iVar3 = 10;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 55:
iVar3 = 10;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 56:
iVar3 = 10;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
case 57:
iVar3 = 11;
iVar4 = 0;
iVar1 = 0;
bVar0 = true;
break;
case 58:
iVar3 = 11;
iVar4 = 1;
iVar1 = 0;
bVar0 = true;
break;
case 59:
iVar3 = 11;
iVar4 = 2;
if (Global_262145.f_4177 != -1)
{
iVar1 = Global_262145.f_4177;
}
else
{
iVar1 = 725;
}
break;
case 60:
iVar3 = 11;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 61:
iVar3 = 11;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 62:
iVar3 = 11;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 63:
iVar3 = 11;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 64:
iVar3 = 11;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 65:
iVar3 = 11;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 66:
iVar3 = 11;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 67:
iVar3 = 11;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 68:
iVar3 = 11;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 69:
iVar3 = 11;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 70:
iVar3 = 11;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 71:
iVar3 = 11;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 72:
iVar3 = 11;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
case 73:
iVar3 = 12;
iVar4 = 0;
if (Global_262145.f_4174 != -1)
{
iVar1 = Global_262145.f_4174;
}
else
{
iVar1 = 65;
}
break;
case 74:
iVar3 = 12;
iVar4 = 1;
if (Global_262145.f_4175 != -1)
{
iVar1 = Global_262145.f_4175;
}
else
{
iVar1 = 65;
}
break;
case 75:
iVar3 = 12;
iVar4 = 2;
if (Global_262145.f_4176 != -1)
{
iVar1 = Global_262145.f_4176;
}
else
{
iVar1 = 95;
}
break;
case 76:
iVar3 = 12;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 77:
iVar3 = 12;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 78:
iVar3 = 12;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 79:
iVar3 = 12;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 80:
iVar3 = 12;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 81:
iVar3 = 12;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 82:
iVar3 = 12;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 83:
iVar3 = 12;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 84:
iVar3 = 12;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 85:
iVar3 = 12;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 86:
iVar3 = 12;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 87:
iVar3 = 12;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 88:
iVar3 = 12;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
case 89:
iVar3 = 13;
iVar4 = 0;
break;
case 90:
iVar3 = 14;
iVar4 = 0;
break;
case 91:
iVar3 = 15;
iVar4 = 0;
break;
default:
Global_71017[0 /*14*/].f_5 = 3;
func_164(iVar7, iParam0, 92, iParam1);
if (Global_71017[0 /*14*/].f_7 > 0)
{
Global_71017[0 /*14*/].f_7 = round((to_float(Global_71017[0 /*14*/].f_7) * Global_287780.f_57));
}
return;
break;
}
iVar1 = round((to_float(iVar1) * Global_287780.f_57));
StringCopy(&Var2, "T_FMM_", 16);
StringIntConCat(&Var2, iVar3, 16);
StringConCat(&Var2, "_", 16);
StringIntConCat(&Var2, iVar4, 16);
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_531(int iParam0, int iParam1)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 1;
switch (iParam0)
{
case 0:
iVar3 = 0;
iVar4 = 0;
iVar1 = 0;
break;
case 1:
iVar3 = 1;
iVar4 = 0;
iVar1 = 965;
break;
case 2:
iVar3 = 1;
iVar4 = 1;
iVar1 = 960;
break;
case 3:
iVar3 = 1;
iVar4 = 2;
iVar1 = 9500;
break;
case 4:
iVar3 = 1;
iVar4 = 3;
iVar1 = 975;
break;
case 5:
iVar3 = 2;
iVar4 = 0;
iVar1 = 1185;
break;
case 6:
iVar3 = 2;
iVar4 = 1;
iVar1 = 15000;
break;
case 7:
iVar3 = 2;
iVar4 = 2;
iVar1 = 1115;
break;
case 8:
iVar3 = 2;
iVar4 = 3;
iVar1 = 1105;
break;
case 9:
iVar3 = 3;
iVar4 = 0;
iVar1 = 25000;
break;
case 10:
iVar3 = 4;
iVar4 = 0;
iVar1 = 510;
break;
case 11:
iVar3 = 4;
iVar4 = 1;
iVar1 = 530;
break;
case 12:
iVar3 = 4;
iVar4 = 2;
iVar1 = 5500;
break;
case 13:
iVar3 = 4;
iVar4 = 3;
iVar1 = 535;
break;
case 14:
iVar3 = 5;
iVar4 = 0;
iVar1 = 1510;
break;
case 15:
iVar3 = 5;
iVar4 = 1;
iVar1 = 1530;
break;
case 16:
iVar3 = 5;
iVar4 = 2;
iVar1 = 14500;
break;
case 17:
iVar3 = 5;
iVar4 = 3;
iVar1 = 13000;
break;
case 18:
iVar3 = 6;
iVar4 = 0;
iVar1 = 8000;
break;
case 19:
iVar3 = 6;
iVar4 = 1;
iVar1 = 1265;
break;
case 20:
iVar3 = 6;
iVar4 = 2;
iVar1 = 8500;
break;
case 21:
iVar3 = 6;
iVar4 = 3;
iVar1 = 1210;
break;
case 22:
iVar3 = 7;
iVar4 = 0;
iVar1 = 2360;
break;
case 23:
iVar3 = 7;
iVar4 = 1;
iVar1 = 22500;
break;
case 24:
iVar3 = 7;
iVar4 = 2;
iVar1 = 2375;
break;
case 25:
iVar3 = 7;
iVar4 = 3;
iVar1 = 2485;
break;
default:
Global_71017[0 /*14*/].f_5 = 3;
func_164(iVar7, iParam0, 26, iParam1);
return;
break;
}
StringCopy(&Var2, "M_FMM_", 16);
StringIntConCat(&Var2, iVar3, 16);
StringConCat(&Var2, "_", 16);
StringIntConCat(&Var2, iVar4, 16);
iVar8 = (iParam0 - 1);
if (iVar8 >= 0 && iVar8 < 26)
{
iVar1 = round(((to_float(iVar1) * Global_262145.f_927[iVar8]) * Global_287780.f_22));
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_532(int iParam0, int iParam1)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 6;
switch (iParam0)
{
case 0:
iVar3 = 0;
iVar4 = 0;
iVar1 = 0;
bVar0 = true;
break;
case 1:
iVar3 = 0;
iVar4 = 1;
iVar1 = 0;
bVar0 = true;
break;
case 2:
iVar3 = 0;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 3:
iVar3 = 0;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 4:
iVar3 = 0;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 5:
iVar3 = 0;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 6:
iVar3 = 0;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 7:
iVar3 = 0;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 8:
iVar3 = 0;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 9:
iVar3 = 0;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 10:
iVar3 = 0;
iVar4 = 10;
iVar1 = 300;
break;
case 11:
iVar3 = 0;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 12:
iVar3 = 0;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 13:
iVar3 = 0;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 14:
iVar3 = 0;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 15:
iVar3 = 0;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
case 16:
iVar3 = 1;
iVar4 = 0;
iVar1 = 285;
break;
case 17:
iVar3 = 1;
iVar4 = 1;
iVar1 = 180;
break;
case 18:
iVar3 = 1;
iVar4 = 2;
iVar1 = 190;
break;
case 19:
iVar3 = 1;
iVar4 = 3;
iVar1 = 190;
break;
case 20:
iVar3 = 1;
iVar4 = 4;
iVar1 = 165;
break;
case 21:
iVar3 = 1;
iVar4 = 5;
iVar1 = 200;
break;
case 22:
iVar3 = 1;
iVar4 = 6;
iVar1 = 480;
break;
case 23:
iVar3 = 1;
iVar4 = 7;
iVar1 = 155;
break;
case 24:
iVar3 = 1;
iVar4 = 8;
iVar1 = 350;
break;
case 25:
iVar3 = 1;
iVar4 = 9;
iVar1 = 290;
break;
case 26:
iVar3 = 1;
iVar4 = 10;
iVar1 = 165;
break;
case 27:
iVar3 = 1;
iVar4 = 11;
iVar1 = 165;
break;
case 28:
iVar3 = 1;
iVar4 = 12;
iVar1 = 170;
break;
case 29:
iVar3 = 1;
iVar4 = 13;
iVar1 = 155;
break;
case 30:
iVar3 = 1;
iVar4 = 14;
iVar1 = 165;
break;
case 31:
iVar3 = 1;
iVar4 = 15;
iVar1 = 165;
break;
}
switch (iParam0)
{
case 32:
iVar3 = 2;
iVar4 = 0;
iVar1 = 0;
bVar0 = true;
break;
case 33:
iVar3 = 2;
iVar4 = 1;
iVar1 = 0;
bVar0 = true;
break;
case 34:
iVar3 = 2;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 35:
iVar3 = 2;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 36:
iVar3 = 2;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 37:
iVar3 = 2;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 38:
iVar3 = 2;
iVar4 = 6;
iVar1 = 160;
break;
case 39:
iVar3 = 2;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 40:
iVar3 = 2;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 41:
iVar3 = 2;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 42:
iVar3 = 2;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 43:
iVar3 = 2;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 44:
iVar3 = 2;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 45:
iVar3 = 2;
iVar4 = 13;
iVar1 = 205;
break;
case 46:
iVar3 = 2;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 47:
iVar3 = 2;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
case 48:
iVar3 = 3;
iVar4 = 0;
iVar1 = 560;
break;
case 49:
iVar3 = 3;
iVar4 = 1;
iVar1 = 275;
break;
case 50:
iVar3 = 3;
iVar4 = 2;
iVar1 = 290;
break;
case 51:
iVar3 = 3;
iVar4 = 3;
iVar1 = 300;
break;
case 52:
iVar3 = 3;
iVar4 = 4;
iVar1 = 360;
break;
case 53:
iVar3 = 3;
iVar4 = 5;
iVar1 = 270;
break;
case 54:
iVar3 = 3;
iVar4 = 6;
iVar1 = 265;
break;
case 55:
iVar3 = 3;
iVar4 = 7;
iVar1 = 295;
break;
case 56:
iVar3 = 3;
iVar4 = 8;
iVar1 = 355;
break;
case 57:
iVar3 = 3;
iVar4 = 9;
iVar1 = 340;
break;
case 58:
iVar3 = 3;
iVar4 = 10;
iVar1 = 285;
break;
case 59:
iVar3 = 3;
iVar4 = 11;
iVar1 = 310;
break;
case 60:
iVar3 = 3;
iVar4 = 12;
iVar1 = 350;
break;
case 61:
iVar3 = 3;
iVar4 = 13;
iVar1 = 305;
break;
case 62:
iVar3 = 3;
iVar4 = 14;
iVar1 = 280;
break;
case 63:
iVar3 = 3;
iVar4 = 15;
iVar1 = 320;
break;
}
switch (iParam0)
{
case 64:
iVar3 = 4;
iVar4 = 0;
iVar1 = 115;
break;
case 65:
iVar3 = 4;
iVar4 = 1;
iVar1 = 115;
break;
case 66:
iVar3 = 4;
iVar4 = 2;
iVar1 = 110;
break;
case 67:
iVar3 = 4;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 68:
iVar3 = 4;
iVar4 = 4;
iVar1 = 125;
break;
case 69:
iVar3 = 4;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 70:
iVar3 = 4;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 71:
iVar3 = 4;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 72:
iVar3 = 4;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 73:
iVar3 = 4;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 74:
iVar3 = 4;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 75:
iVar3 = 4;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 76:
iVar3 = 4;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 77:
iVar3 = 4;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 78:
iVar3 = 4;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 79:
iVar3 = 4;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
case 80:
iVar3 = 5;
iVar4 = 0;
iVar1 = 50;
break;
case 81:
iVar3 = 5;
iVar4 = 1;
iVar1 = 35;
break;
case 82:
iVar3 = 5;
iVar4 = 2;
iVar1 = 50;
break;
case 83:
iVar3 = 5;
iVar4 = 3;
iVar1 = 50;
break;
case 84:
iVar3 = 5;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 85:
iVar3 = 5;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 86:
iVar3 = 5;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 87:
iVar3 = 5;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 88:
iVar3 = 5;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 89:
iVar3 = 5;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 90:
iVar3 = 5;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 91:
iVar3 = 5;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 92:
iVar3 = 5;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 93:
iVar3 = 5;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 94:
iVar3 = 5;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 95:
iVar3 = 5;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
}
switch (iParam0)
{
case 96:
iVar3 = 6;
iVar4 = 0;
iVar1 = 65;
break;
case 97:
iVar3 = 6;
iVar4 = 1;
iVar1 = 65;
break;
case 98:
iVar3 = 6;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 99:
iVar3 = 6;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 100:
iVar3 = 6;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 101:
iVar3 = 6;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 102:
iVar3 = 6;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 103:
iVar3 = 6;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 104:
iVar3 = 6;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 105:
iVar3 = 6;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 106:
iVar3 = 6;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 107:
iVar3 = 6;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 108:
iVar3 = 6;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 109:
iVar3 = 6;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 110:
iVar3 = 6;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 111:
iVar3 = 6;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
case 112:
iVar3 = 7;
iVar4 = 0;
iVar1 = 165;
break;
case 113:
iVar3 = 7;
iVar4 = 1;
iVar1 = 165;
break;
case 114:
iVar3 = 7;
iVar4 = 2;
iVar1 = 185;
break;
case 115:
iVar3 = 7;
iVar4 = 3;
iVar1 = 175;
break;
case 116:
iVar3 = 7;
iVar4 = 4;
iVar1 = 185;
break;
case 117:
iVar3 = 7;
iVar4 = 5;
iVar1 = 460;
break;
case 118:
iVar3 = 7;
iVar4 = 6;
iVar1 = 185;
break;
case 119:
iVar3 = 7;
iVar4 = 7;
iVar1 = 190;
break;
case 120:
iVar3 = 7;
iVar4 = 8;
iVar1 = 165;
break;
case 121:
iVar3 = 7;
iVar4 = 9;
iVar1 = 165;
break;
case 122:
iVar3 = 7;
iVar4 = 10;
iVar1 = 185;
break;
case 123:
iVar3 = 7;
iVar4 = 11;
iVar1 = 175;
break;
case 124:
iVar3 = 7;
iVar4 = 12;
iVar1 = 235;
break;
case 125:
iVar3 = 7;
iVar4 = 13;
iVar1 = 445;
break;
case 126:
iVar3 = 7;
iVar4 = 14;
iVar1 = 185;
break;
case 127:
iVar3 = 7;
iVar4 = 15;
iVar1 = 190;
break;
}
switch (iParam0)
{
case 128:
iVar3 = 8;
iVar4 = 0;
iVar1 = 175;
break;
case 129:
iVar3 = 8;
iVar4 = 1;
iVar1 = 215;
break;
case 130:
iVar3 = 8;
iVar4 = 2;
iVar1 = 225;
break;
case 131:
iVar3 = 8;
iVar4 = 3;
iVar1 = 230;
break;
case 132:
iVar3 = 8;
iVar4 = 4;
iVar1 = 235;
break;
case 133:
iVar3 = 8;
iVar4 = 5;
iVar1 = 215;
break;
case 134:
iVar3 = 8;
iVar4 = 6;
iVar1 = 205;
break;
case 135:
iVar3 = 8;
iVar4 = 7;
iVar1 = 245;
break;
case 136:
iVar3 = 8;
iVar4 = 8;
iVar1 = 225;
break;
case 137:
iVar3 = 8;
iVar4 = 9;
iVar1 = 215;
break;
case 138:
iVar3 = 8;
iVar4 = 10;
iVar1 = 225;
break;
case 139:
iVar3 = 8;
iVar4 = 11;
iVar1 = 230;
break;
case 140:
iVar3 = 8;
iVar4 = 12;
iVar1 = 235;
break;
case 141:
iVar3 = 8;
iVar4 = 13;
iVar1 = 215;
break;
case 142:
iVar3 = 8;
iVar4 = 14;
iVar1 = 425;
break;
case 143:
iVar3 = 8;
iVar4 = 15;
iVar1 = 245;
break;
case 144:
iVar3 = 9;
iVar4 = 0;
iVar1 = 225;
break;
case 145:
iVar3 = 9;
iVar4 = 1;
iVar1 = 135;
break;
case 146:
iVar3 = 9;
iVar4 = 2;
iVar1 = 130;
break;
case 147:
iVar3 = 9;
iVar4 = 3;
iVar1 = 110;
break;
case 148:
iVar3 = 9;
iVar4 = 4;
iVar1 = 140;
break;
case 149:
iVar3 = 9;
iVar4 = 5;
iVar1 = 95;
break;
case 150:
iVar3 = 9;
iVar4 = 6;
iVar1 = 100;
break;
case 151:
iVar3 = 9;
iVar4 = 7;
iVar1 = 110;
break;
case 152:
iVar3 = 9;
iVar4 = 8;
iVar1 = 95;
break;
case 153:
iVar3 = 9;
iVar4 = 9;
iVar1 = 105;
break;
case 154:
iVar3 = 9;
iVar4 = 10;
iVar1 = 105;
break;
case 155:
iVar3 = 9;
iVar4 = 11;
iVar1 = 115;
break;
case 156:
iVar3 = 9;
iVar4 = 12;
iVar1 = 115;
break;
case 157:
iVar3 = 9;
iVar4 = 13;
iVar1 = 115;
break;
case 158:
iVar3 = 9;
iVar4 = 14;
iVar1 = 500;
break;
case 159:
iVar3 = 9;
iVar4 = 15;
iVar1 = 440;
break;
}
switch (iParam0)
{
case 160:
iVar3 = 10;
iVar4 = 0;
iVar1 = 1090;
break;
case 161:
iVar3 = 10;
iVar4 = 1;
iVar1 = 0;
bVar0 = true;
break;
case 162:
iVar3 = 10;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 163:
iVar3 = 10;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 164:
iVar3 = 10;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 165:
iVar3 = 10;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 166:
iVar3 = 10;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 167:
iVar3 = 10;
iVar4 = 7;
iVar1 = 600;
break;
case 168:
iVar3 = 10;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 169:
iVar3 = 10;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 170:
iVar3 = 10;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 171:
iVar3 = 10;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 172:
iVar3 = 10;
iVar4 = 12;
iVar1 = 1865;
break;
case 173:
iVar3 = 10;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 174:
iVar3 = 10;
iVar4 = 14;
iVar1 = 490;
break;
case 175:
iVar3 = 10;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
case 176:
iVar3 = 11;
iVar4 = 0;
iVar1 = 0;
bVar0 = true;
break;
case 177:
iVar3 = 11;
iVar4 = 1;
iVar1 = 0;
bVar0 = true;
break;
case 178:
iVar3 = 11;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 179:
iVar3 = 11;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 180:
iVar3 = 11;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 181:
iVar3 = 11;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 182:
iVar3 = 11;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 183:
iVar3 = 11;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 184:
iVar3 = 11;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 185:
iVar3 = 11;
iVar4 = 9;
iVar1 = 470;
break;
case 186:
iVar3 = 11;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 187:
iVar3 = 11;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 188:
iVar3 = 11;
iVar4 = 12;
iVar1 = 1795;
break;
case 189:
iVar3 = 11;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 190:
iVar3 = 11;
iVar4 = 14;
iVar1 = 1830;
break;
case 191:
iVar3 = 11;
iVar4 = 15;
iVar1 = 455;
break;
}
switch (iParam0)
{
case 192:
iVar3 = 12;
iVar4 = 0;
iVar1 = 455;
break;
case 193:
iVar3 = 12;
iVar4 = 1;
iVar1 = 2110;
break;
case 194:
iVar3 = 12;
iVar4 = 2;
iVar1 = 380;
break;
case 195:
iVar3 = 12;
iVar4 = 3;
iVar1 = 1655;
break;
case 196:
iVar3 = 12;
iVar4 = 4;
iVar1 = 2500;
break;
case 197:
iVar3 = 12;
iVar4 = 5;
iVar1 = 415;
break;
case 198:
iVar3 = 12;
iVar4 = 6;
iVar1 = 730;
break;
case 199:
iVar3 = 12;
iVar4 = 7;
iVar1 = 445;
break;
case 200:
iVar3 = 12;
iVar4 = 8;
iVar1 = 425;
break;
case 201:
iVar3 = 12;
iVar4 = 9;
iVar1 = 410;
break;
case 202:
iVar3 = 12;
iVar4 = 10;
iVar1 = 480;
break;
case 203:
iVar3 = 12;
iVar4 = 11;
iVar1 = 485;
break;
case 204:
iVar3 = 12;
iVar4 = 12;
iVar1 = 480;
break;
case 205:
iVar3 = 12;
iVar4 = 13;
iVar1 = 395;
break;
case 206:
iVar3 = 12;
iVar4 = 14;
iVar1 = 495;
break;
case 207:
iVar3 = 12;
iVar4 = 15;
iVar1 = 2090;
break;
case 208:
iVar3 = 13;
iVar4 = 0;
iVar1 = 0;
bVar0 = true;
break;
case 209:
iVar3 = 13;
iVar4 = 1;
iVar1 = 0;
bVar0 = true;
break;
case 210:
iVar3 = 13;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 211:
iVar3 = 13;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 212:
iVar3 = 13;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 213:
iVar3 = 13;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 214:
iVar3 = 13;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 215:
iVar3 = 13;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 216:
iVar3 = 13;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 217:
iVar3 = 13;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 218:
iVar3 = 13;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 219:
iVar3 = 13;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 220:
iVar3 = 13;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 221:
iVar3 = 13;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 222:
iVar3 = 13;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 223:
iVar3 = 13;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
}
switch (iParam0)
{
case 224:
iVar3 = 14;
iVar4 = 0;
iVar1 = 450;
break;
case 225:
iVar3 = 14;
iVar4 = 1;
iVar1 = 685;
break;
case 226:
iVar3 = 14;
iVar4 = 2;
iVar1 = 420;
break;
case 227:
iVar3 = 14;
iVar4 = 3;
iVar1 = 365;
break;
case 228:
iVar3 = 14;
iVar4 = 4;
iVar1 = 465;
break;
case 229:
iVar3 = 14;
iVar4 = 5;
iVar1 = 405;
break;
case 230:
iVar3 = 14;
iVar4 = 6;
iVar1 = 400;
break;
case 231:
iVar3 = 14;
iVar4 = 7;
iVar1 = 440;
break;
case 232:
iVar3 = 14;
iVar4 = 8;
iVar1 = 385;
break;
case 233:
iVar3 = 14;
iVar4 = 9;
iVar1 = 435;
break;
case 234:
iVar3 = 14;
iVar4 = 10;
iVar1 = 375;
break;
case 235:
iVar3 = 14;
iVar4 = 11;
iVar1 = 390;
break;
case 236:
iVar3 = 14;
iVar4 = 12;
iVar1 = 475;
break;
case 237:
iVar3 = 14;
iVar4 = 13;
iVar1 = 430;
break;
case 238:
iVar3 = 14;
iVar4 = 14;
iVar1 = 490;
break;
case 239:
iVar3 = 14;
iVar4 = 15;
iVar1 = 490;
break;
case 240:
iVar3 = 15;
iVar4 = 0;
iVar1 = 615;
break;
case 241:
iVar3 = 15;
iVar4 = 1;
iVar1 = 315;
break;
case 242:
iVar3 = 15;
iVar4 = 2;
iVar1 = 415;
break;
case 243:
iVar3 = 15;
iVar4 = 3;
iVar1 = 425;
break;
case 244:
iVar3 = 15;
iVar4 = 4;
iVar1 = 435;
break;
case 245:
iVar3 = 15;
iVar4 = 5;
iVar1 = 445;
break;
case 246:
iVar3 = 15;
iVar4 = 6;
iVar1 = 640;
break;
case 247:
iVar3 = 15;
iVar4 = 7;
iVar1 = 460;
break;
case 248:
iVar3 = 15;
iVar4 = 8;
iVar1 = 465;
break;
case 249:
iVar3 = 15;
iVar4 = 9;
iVar1 = 745;
break;
case 250:
iVar3 = 15;
iVar4 = 10;
iVar1 = 845;
break;
case 251:
iVar3 = 15;
iVar4 = 11;
iVar1 = 1420;
break;
case 252:
iVar3 = 15;
iVar4 = 12;
iVar1 = 475;
break;
case 253:
iVar3 = 15;
iVar4 = 13;
iVar1 = 470;
break;
case 254:
iVar3 = 15;
iVar4 = 14;
iVar1 = 1000;
break;
case 255:
iVar3 = 15;
iVar4 = 15;
iVar1 = 690;
break;
}
iVar8 = iParam0;
if (iVar8 >= 0 && iVar8 < 256)
{
iVar1 = round(((to_float(iVar1) * Global_262145.f_670[iVar8]) * Global_287780.f_17));
}
StringCopy(&Var2, "F_FMM_", 16);
StringIntConCat(&Var2, iVar3, 16);
StringConCat(&Var2, "_", 16);
StringIntConCat(&Var2, iVar4, 16);
if (iParam0 >= 256)
{
Global_71017[0 /*14*/].f_5 = 3;
func_164(iVar7, iParam0, 256, iParam1);
if (Global_71017[0 /*14*/].f_7 > 0)
{
Global_71017[0 /*14*/].f_7 = round((to_float(Global_71017[0 /*14*/].f_7) * Global_287780.f_17));
}
}
else
{
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
}
void func_533(int iParam0, int iParam1)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 4;
switch (iParam0)
{
case 0:
iVar3 = 0;
iVar4 = 0;
iVar1 = 335;
break;
case 1:
iVar3 = 0;
iVar4 = 1;
iVar1 = 460;
break;
case 2:
iVar3 = 0;
iVar4 = 2;
iVar1 = 455;
break;
case 3:
iVar3 = 0;
iVar4 = 3;
iVar1 = 470;
break;
case 4:
iVar3 = 0;
iVar4 = 4;
iVar1 = 650;
break;
case 5:
iVar3 = 0;
iVar4 = 5;
iVar1 = 385;
break;
case 6:
iVar3 = 0;
iVar4 = 6;
iVar1 = 455;
break;
case 7:
iVar3 = 0;
iVar4 = 7;
iVar1 = 2150;
break;
case 8:
iVar3 = 0;
iVar4 = 8;
iVar1 = 375;
break;
case 9:
iVar3 = 0;
iVar4 = 9;
iVar1 = 2190;
break;
case 10:
iVar3 = 0;
iVar4 = 10;
iVar1 = 285;
break;
case 11:
iVar3 = 0;
iVar4 = 11;
iVar1 = 295;
break;
case 12:
iVar3 = 0;
iVar4 = 12;
iVar1 = 445;
break;
case 13:
iVar3 = 0;
iVar4 = 13;
iVar1 = 2240;
break;
case 14:
iVar3 = 0;
iVar4 = 14;
iVar1 = 465;
break;
case 15:
iVar3 = 0;
iVar4 = 15;
iVar1 = 1740;
break;
case 16:
iVar3 = 1;
iVar4 = 0;
iVar1 = 1415;
break;
case 17:
iVar3 = 1;
iVar4 = 1;
iVar1 = 325;
break;
case 18:
iVar3 = 1;
iVar4 = 2;
iVar1 = 345;
break;
case 19:
iVar3 = 1;
iVar4 = 3;
iVar1 = 355;
break;
case 20:
iVar3 = 1;
iVar4 = 4;
iVar1 = 395;
break;
case 21:
iVar3 = 1;
iVar4 = 5;
iVar1 = 315;
break;
case 22:
iVar3 = 1;
iVar4 = 6;
iVar1 = 275;
break;
case 23:
iVar3 = 1;
iVar4 = 7;
iVar1 = 265;
break;
case 24:
iVar3 = 1;
iVar4 = 8;
iVar1 = 305;
break;
case 25:
iVar3 = 1;
iVar4 = 9;
iVar1 = 255;
break;
case 26:
iVar3 = 1;
iVar4 = 10;
iVar1 = 235;
break;
case 27:
iVar3 = 1;
iVar4 = 11;
iVar1 = 245;
break;
case 28:
iVar3 = 1;
iVar4 = 12;
iVar1 = 215;
break;
case 29:
iVar3 = 1;
iVar4 = 13;
iVar1 = 1865;
break;
case 30:
iVar3 = 1;
iVar4 = 14;
iVar1 = 450;
break;
case 31:
iVar3 = 1;
iVar4 = 15;
iVar1 = 415;
break;
case 32:
iVar3 = 2;
iVar4 = 0;
iVar1 = 0;
bVar0 = true;
break;
case 33:
iVar3 = 2;
iVar4 = 1;
iVar1 = 0;
bVar0 = true;
break;
case 34:
iVar3 = 2;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 35:
iVar3 = 2;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 36:
iVar3 = 2;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 37:
iVar3 = 2;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 38:
iVar3 = 2;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 39:
iVar3 = 2;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 40:
iVar3 = 2;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 41:
iVar3 = 2;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 42:
iVar3 = 2;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 43:
iVar3 = 2;
iVar4 = 11;
iVar1 = 100;
break;
case 44:
iVar3 = 2;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 45:
iVar3 = 2;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 46:
iVar3 = 2;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 47:
iVar3 = 2;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
}
switch (iParam0)
{
case 48:
iVar3 = 3;
iVar4 = 0;
iVar1 = 55;
break;
case 49:
iVar3 = 3;
iVar4 = 1;
iVar1 = 60;
break;
case 50:
iVar3 = 3;
iVar4 = 2;
iVar1 = 100;
break;
case 51:
iVar3 = 3;
iVar4 = 3;
iVar1 = 65;
break;
case 52:
iVar3 = 3;
iVar4 = 4;
iVar1 = 65;
break;
case 53:
iVar3 = 3;
iVar4 = 5;
iVar1 = 100;
break;
case 54:
iVar3 = 3;
iVar4 = 6;
iVar1 = 100;
break;
case 55:
iVar3 = 3;
iVar4 = 7;
iVar1 = 65;
break;
case 56:
iVar3 = 3;
iVar4 = 8;
iVar1 = 90;
break;
case 57:
iVar3 = 3;
iVar4 = 9;
iVar1 = 75;
break;
case 58:
iVar3 = 3;
iVar4 = 10;
iVar1 = 65;
break;
case 59:
iVar3 = 3;
iVar4 = 11;
iVar1 = 100;
break;
case 60:
iVar3 = 3;
iVar4 = 12;
iVar1 = 100;
break;
case 61:
iVar3 = 3;
iVar4 = 13;
iVar1 = 225;
break;
case 62:
iVar3 = 3;
iVar4 = 14;
iVar1 = 205;
break;
case 63:
iVar3 = 3;
iVar4 = 15;
iVar1 = 215;
break;
case 64:
iVar3 = 4;
iVar4 = 0;
iVar1 = 490;
break;
case 65:
iVar3 = 4;
iVar4 = 1;
iVar1 = 485;
break;
case 66:
iVar3 = 4;
iVar4 = 2;
iVar1 = 2500;
break;
case 67:
iVar3 = 4;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 68:
iVar3 = 4;
iVar4 = 4;
iVar1 = 485;
break;
case 69:
iVar3 = 4;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 70:
iVar3 = 4;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 71:
iVar3 = 4;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 72:
iVar3 = 4;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 73:
iVar3 = 4;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 74:
iVar3 = 4;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 75:
iVar3 = 4;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 76:
iVar3 = 4;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 77:
iVar3 = 4;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 78:
iVar3 = 4;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 79:
iVar3 = 4;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
}
switch (iParam0)
{
case 80:
iVar3 = 5;
iVar4 = 0;
iVar1 = 100;
break;
case 81:
iVar3 = 5;
iVar4 = 1;
iVar1 = 105;
break;
case 82:
iVar3 = 5;
iVar4 = 2;
iVar1 = 80;
break;
case 83:
iVar3 = 5;
iVar4 = 3;
iVar1 = 90;
break;
case 84:
iVar3 = 5;
iVar4 = 4;
iVar1 = 100;
break;
case 85:
iVar3 = 5;
iVar4 = 5;
iVar1 = 95;
break;
case 86:
iVar3 = 5;
iVar4 = 6;
iVar1 = 100;
break;
case 87:
iVar3 = 5;
iVar4 = 7;
iVar1 = 90;
break;
case 88:
iVar3 = 5;
iVar4 = 8;
iVar1 = 85;
break;
case 89:
iVar3 = 5;
iVar4 = 9;
iVar1 = 80;
break;
case 90:
iVar3 = 5;
iVar4 = 10;
iVar1 = 80;
break;
case 91:
iVar3 = 5;
iVar4 = 11;
iVar1 = 100;
break;
case 92:
iVar3 = 5;
iVar4 = 12;
iVar1 = 95;
break;
case 93:
iVar3 = 5;
iVar4 = 13;
iVar1 = 440;
break;
case 94:
iVar3 = 5;
iVar4 = 14;
iVar1 = 380;
break;
case 95:
iVar3 = 5;
iVar4 = 15;
iVar1 = 80;
break;
case 96:
iVar3 = 6;
iVar4 = 0;
iVar1 = 115;
break;
case 97:
iVar3 = 6;
iVar4 = 1;
iVar1 = 140;
break;
case 98:
iVar3 = 6;
iVar4 = 2;
iVar1 = 135;
break;
case 99:
iVar3 = 6;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 100:
iVar3 = 6;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 101:
iVar3 = 6;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 102:
iVar3 = 6;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 103:
iVar3 = 6;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 104:
iVar3 = 6;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 105:
iVar3 = 6;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 106:
iVar3 = 6;
iVar4 = 10;
iVar1 = 255;
break;
case 107:
iVar3 = 6;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 108:
iVar3 = 6;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 109:
iVar3 = 6;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 110:
iVar3 = 6;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 111:
iVar3 = 6;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
}
switch (iParam0)
{
case 112:
iVar3 = 7;
iVar4 = 0;
iVar1 = 325;
break;
case 113:
iVar3 = 7;
iVar4 = 1;
iVar1 = 115;
break;
case 114:
iVar3 = 7;
iVar4 = 2;
iVar1 = 135;
break;
case 115:
iVar3 = 7;
iVar4 = 3;
iVar1 = 125;
break;
case 116:
iVar3 = 7;
iVar4 = 4;
iVar1 = 120;
break;
case 117:
iVar3 = 7;
iVar4 = 5;
iVar1 = 130;
break;
case 118:
iVar3 = 7;
iVar4 = 6;
iVar1 = 110;
break;
case 119:
iVar3 = 7;
iVar4 = 7;
iVar1 = 345;
break;
case 120:
iVar3 = 7;
iVar4 = 8;
iVar1 = 745;
break;
case 121:
iVar3 = 7;
iVar4 = 9;
iVar1 = 120;
break;
case 122:
iVar3 = 7;
iVar4 = 10;
iVar1 = 135;
break;
case 123:
iVar3 = 7;
iVar4 = 11;
iVar1 = 345;
break;
case 124:
iVar3 = 7;
iVar4 = 12;
iVar1 = 130;
break;
case 125:
iVar3 = 7;
iVar4 = 13;
iVar1 = 140;
break;
case 126:
iVar3 = 7;
iVar4 = 14;
iVar1 = 130;
break;
case 127:
iVar3 = 7;
iVar4 = 15;
iVar1 = 660;
break;
case 128:
iVar3 = 8;
iVar4 = 0;
iVar1 = 150;
break;
case 129:
iVar3 = 8;
iVar4 = 1;
iVar1 = 0;
bVar0 = true;
break;
case 130:
iVar3 = 8;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 131:
iVar3 = 8;
iVar4 = 3;
iVar1 = 150;
break;
case 132:
iVar3 = 8;
iVar4 = 4;
iVar1 = 150;
break;
case 133:
iVar3 = 8;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 134:
iVar3 = 8;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 135:
iVar3 = 8;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 136:
iVar3 = 8;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 137:
iVar3 = 8;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 138:
iVar3 = 8;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 139:
iVar3 = 8;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 140:
iVar3 = 8;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 141:
iVar3 = 8;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 142:
iVar3 = 8;
iVar4 = 14;
iVar1 = 150;
break;
case 143:
iVar3 = 8;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
}
switch (iParam0)
{
case 144:
iVar3 = 9;
iVar4 = 0;
iVar1 = 75;
break;
case 145:
iVar3 = 9;
iVar4 = 1;
iVar1 = 90;
break;
case 146:
iVar3 = 9;
iVar4 = 2;
iVar1 = 145;
break;
case 147:
iVar3 = 9;
iVar4 = 3;
iVar1 = 150;
break;
case 148:
iVar3 = 9;
iVar4 = 4;
iVar1 = 110;
break;
case 149:
iVar3 = 9;
iVar4 = 5;
iVar1 = 95;
break;
case 150:
iVar3 = 9;
iVar4 = 6;
iVar1 = 155;
break;
case 151:
iVar3 = 9;
iVar4 = 7;
iVar1 = 255;
break;
case 152:
iVar3 = 9;
iVar4 = 8;
iVar1 = 165;
break;
case 153:
iVar3 = 9;
iVar4 = 9;
iVar1 = 1150;
break;
case 154:
iVar3 = 9;
iVar4 = 10;
iVar1 = 1150;
break;
case 155:
iVar3 = 9;
iVar4 = 11;
iVar1 = 1210;
break;
case 156:
iVar3 = 9;
iVar4 = 12;
iVar1 = 1125;
break;
case 157:
iVar3 = 9;
iVar4 = 13;
iVar1 = 1135;
break;
case 158:
iVar3 = 9;
iVar4 = 14;
iVar1 = 1145;
break;
case 159:
iVar3 = 9;
iVar4 = 15;
iVar1 = 1145;
break;
case 160:
iVar3 = 10;
iVar4 = 0;
iVar1 = 845;
break;
case 161:
iVar3 = 10;
iVar4 = 1;
iVar1 = 480;
break;
case 162:
iVar3 = 10;
iVar4 = 2;
iVar1 = 475;
break;
case 163:
iVar3 = 10;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 164:
iVar3 = 10;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 165:
iVar3 = 10;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 166:
iVar3 = 10;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 167:
iVar3 = 10;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 168:
iVar3 = 10;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 169:
iVar3 = 10;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 170:
iVar3 = 10;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 171:
iVar3 = 10;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 172:
iVar3 = 10;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 173:
iVar3 = 10;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 174:
iVar3 = 10;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 175:
iVar3 = 10;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
}
switch (iParam0)
{
case 176:
iVar3 = 11;
iVar4 = 0;
iVar1 = 0;
bVar0 = true;
break;
case 177:
iVar3 = 11;
iVar4 = 1;
iVar1 = 0;
bVar0 = true;
break;
case 178:
iVar3 = 11;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 179:
iVar3 = 11;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 180:
iVar3 = 11;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 181:
iVar3 = 11;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 182:
iVar3 = 11;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 183:
iVar3 = 11;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 184:
iVar3 = 11;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 185:
iVar3 = 11;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 186:
iVar3 = 11;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 187:
iVar3 = 11;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 188:
iVar3 = 11;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 189:
iVar3 = 11;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 190:
iVar3 = 11;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 191:
iVar3 = 11;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
case 192:
iVar3 = 12;
iVar4 = 0;
iVar1 = 220;
break;
case 193:
iVar3 = 12;
iVar4 = 1;
iVar1 = 0;
bVar0 = true;
break;
case 194:
iVar3 = 12;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 195:
iVar3 = 12;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 196:
iVar3 = 12;
iVar4 = 4;
iVar1 = 100;
break;
case 197:
iVar3 = 12;
iVar4 = 5;
iVar1 = 65;
break;
case 198:
iVar3 = 12;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 199:
iVar3 = 12;
iVar4 = 7;
iVar1 = 50;
break;
case 200:
iVar3 = 12;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 201:
iVar3 = 12;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 202:
iVar3 = 12;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 203:
iVar3 = 12;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 204:
iVar3 = 12;
iVar4 = 12;
iVar1 = 100;
break;
case 205:
iVar3 = 12;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 206:
iVar3 = 12;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 207:
iVar3 = 12;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
}
switch (iParam0)
{
case 208:
iVar3 = 13;
iVar4 = 0;
iVar1 = 460;
break;
case 209:
iVar3 = 13;
iVar4 = 1;
iVar1 = 475;
break;
case 210:
iVar3 = 13;
iVar4 = 2;
iVar1 = 470;
break;
case 211:
iVar3 = 13;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 212:
iVar3 = 13;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 213:
iVar3 = 13;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 214:
iVar3 = 13;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 215:
iVar3 = 13;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 216:
iVar3 = 13;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 217:
iVar3 = 13;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 218:
iVar3 = 13;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 219:
iVar3 = 13;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 220:
iVar3 = 13;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 221:
iVar3 = 13;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 222:
iVar3 = 13;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 223:
iVar3 = 13;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
case 224:
iVar3 = 14;
iVar4 = 0;
iVar1 = 50;
break;
case 225:
iVar3 = 14;
iVar4 = 1;
iVar1 = 100;
break;
case 226:
iVar3 = 14;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 227:
iVar3 = 14;
iVar4 = 3;
iVar1 = 100;
break;
case 228:
iVar3 = 14;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 229:
iVar3 = 14;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 230:
iVar3 = 14;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 231:
iVar3 = 14;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 232:
iVar3 = 14;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 233:
iVar3 = 14;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 234:
iVar3 = 14;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 235:
iVar3 = 14;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 236:
iVar3 = 14;
iVar4 = 12;
iVar1 = 100;
break;
case 237:
iVar3 = 14;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 238:
iVar3 = 14;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 239:
iVar3 = 14;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
}
switch (iParam0)
{
case 240:
iVar3 = 15;
iVar4 = 0;
iVar1 = 90;
break;
case 241:
iVar3 = 15;
iVar4 = 1;
iVar1 = 105;
break;
case 242:
iVar3 = 15;
iVar4 = 2;
iVar1 = 100;
break;
case 243:
iVar3 = 15;
iVar4 = 3;
iVar1 = 240;
break;
case 244:
iVar3 = 15;
iVar4 = 4;
iVar1 = 95;
break;
case 245:
iVar3 = 15;
iVar4 = 5;
iVar1 = 95;
break;
case 246:
iVar3 = 15;
iVar4 = 6;
iVar1 = 100;
break;
case 247:
iVar3 = 15;
iVar4 = 7;
iVar1 = 105;
break;
case 248:
iVar3 = 15;
iVar4 = 8;
iVar1 = 100;
break;
case 249:
iVar3 = 15;
iVar4 = 9;
iVar1 = 295;
break;
case 250:
iVar3 = 15;
iVar4 = 10;
iVar1 = 250;
break;
case 251:
iVar3 = 15;
iVar4 = 11;
iVar1 = 285;
break;
case 252:
iVar3 = 15;
iVar4 = 12;
iVar1 = 275;
break;
case 253:
iVar3 = 15;
iVar4 = 13;
iVar1 = 105;
break;
case 254:
iVar3 = 15;
iVar4 = 14;
iVar1 = 100;
break;
case 255:
iVar3 = 15;
iVar4 = 15;
iVar1 = 95;
break;
}
StringCopy(&Var2, "L_FMM_", 16);
StringIntConCat(&Var2, iVar3, 16);
StringConCat(&Var2, "_", 16);
StringIntConCat(&Var2, iVar4, 16);
iVar8 = iParam0;
if (iVar8 >= 0 && iVar8 < 256)
{
iVar1 = round(((to_float(iVar1) * Global_262145.f_175[iVar8]) * Global_287780.f_15));
}
if (iParam0 >= 256)
{
Global_71017[0 /*14*/].f_5 = 3;
func_164(iVar7, iParam0, 256, iParam1);
if (Global_71017[0 /*14*/].f_7 > 0)
{
Global_71017[0 /*14*/].f_7 = round((to_float(Global_71017[0 /*14*/].f_7) * Global_287780.f_15));
}
}
else
{
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
}
void func_534(int iParam0, int iParam1)
{
bool bVar0;
int iVar1;
char* sVar2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 3;
switch (iParam0)
{
case 0:
iVar3 = 0;
iVar4 = 0;
break;
case 1:
iVar3 = 1;
iVar4 = 0;
break;
case 2:
iVar3 = 2;
iVar4 = 0;
break;
case 3:
iVar3 = 3;
iVar4 = 0;
break;
case 4:
iVar3 = 4;
iVar4 = 0;
break;
case 5:
iVar3 = 5;
iVar4 = 0;
break;
case 6:
iVar3 = 6;
iVar4 = 0;
break;
case 7:
iVar3 = 7;
iVar4 = 0;
break;
case 8:
iVar3 = 8;
iVar4 = 0;
break;
case 9:
iVar3 = 9;
iVar4 = 0;
break;
case 10:
iVar3 = 10;
iVar4 = 0;
break;
case 11:
iVar3 = 11;
iVar4 = 0;
break;
case 12:
iVar3 = 12;
iVar4 = 0;
break;
case 13:
iVar3 = 13;
iVar4 = 0;
break;
case 14:
iVar3 = 14;
iVar4 = 0;
break;
case 15:
iVar3 = 15;
iVar4 = 0;
break;
default:
Global_71017[0 /*14*/].f_5 = 3;
func_164(iVar7, iParam0, 16, iParam1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &sVar2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_535(int iParam0, int iParam1)
{
bool bVar0;
int iVar1;
char* sVar2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 9;
switch (iParam0)
{
case 0:
iVar3 = 0;
iVar4 = 0;
break;
case 1:
iVar3 = 1;
iVar4 = 0;
break;
case 2:
iVar3 = 1;
iVar4 = 1;
break;
case 3:
iVar3 = 1;
iVar4 = 2;
break;
case 4:
iVar3 = 1;
iVar4 = 3;
break;
case 5:
iVar3 = 1;
iVar4 = 4;
break;
case 6:
iVar3 = 2;
iVar4 = 0;
break;
case 7:
iVar3 = 2;
iVar4 = 1;
break;
case 8:
iVar3 = 2;
iVar4 = 2;
break;
case 9:
iVar3 = 2;
iVar4 = 3;
break;
case 10:
iVar3 = 2;
iVar4 = 4;
break;
case 11:
iVar3 = 3;
iVar4 = 0;
break;
case 12:
iVar3 = 3;
iVar4 = 1;
break;
case 13:
iVar3 = 3;
iVar4 = 2;
break;
case 14:
iVar3 = 3;
iVar4 = 3;
break;
case 15:
iVar3 = 3;
iVar4 = 4;
break;
case 16:
iVar3 = 4;
iVar4 = 0;
break;
case 17:
iVar3 = 4;
iVar4 = 1;
break;
case 18:
iVar3 = 4;
iVar4 = 2;
break;
case 19:
iVar3 = 4;
iVar4 = 3;
break;
case 20:
iVar3 = 4;
iVar4 = 4;
break;
case 21:
iVar3 = 5;
iVar4 = 0;
break;
case 22:
iVar3 = 5;
iVar4 = 1;
break;
case 23:
iVar3 = 5;
iVar4 = 2;
break;
case 24:
iVar3 = 5;
iVar4 = 3;
break;
case 25:
iVar3 = 5;
iVar4 = 4;
break;
case 26:
iVar3 = 6;
iVar4 = 0;
break;
case 27:
iVar3 = 6;
iVar4 = 1;
break;
case 28:
iVar3 = 6;
iVar4 = 2;
break;
case 29:
iVar3 = 6;
iVar4 = 3;
break;
case 30:
iVar3 = 6;
iVar4 = 4;
break;
case 31:
iVar3 = 7;
iVar4 = 0;
break;
case 32:
iVar3 = 7;
iVar4 = 1;
break;
case 33:
iVar3 = 7;
iVar4 = 2;
break;
case 34:
iVar3 = 7;
iVar4 = 3;
break;
case 35:
iVar3 = 7;
iVar4 = 4;
break;
case 36:
iVar3 = 8;
iVar4 = 0;
break;
case 37:
iVar3 = 8;
iVar4 = 1;
break;
case 38:
iVar3 = 8;
iVar4 = 2;
break;
case 39:
iVar3 = 8;
iVar4 = 3;
break;
case 40:
iVar3 = 8;
iVar4 = 4;
break;
case 41:
iVar3 = 9;
iVar4 = 0;
break;
case 42:
iVar3 = 9;
iVar4 = 1;
break;
case 43:
iVar3 = 9;
iVar4 = 2;
break;
case 44:
iVar3 = 9;
iVar4 = 3;
break;
case 45:
iVar3 = 9;
iVar4 = 4;
break;
default:
Global_71017[0 /*14*/].f_5 = 3;
func_164(iVar7, iParam0, 46, iParam1);
return;
break;
}
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &sVar2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
void func_536(int iParam0, int iParam1)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
int iVar9;
int iVar10;
int iVar11;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 8;
switch (iParam0)
{
case 0:
StringCopy(&Var2, "U_FMM_0_0", 16);
iVar3 = 0;
iVar4 = 0;
iVar1 = 250;
break;
case 1:
StringCopy(&Var2, "U_FMM_0_1", 16);
iVar3 = 0;
iVar4 = 1;
iVar1 = 210;
break;
case 2:
StringCopy(&Var2, "U_FMM_0_2", 16);
iVar3 = 0;
iVar4 = 2;
iVar1 = 50;
break;
case 3:
StringCopy(&Var2, "U_FMM_0_3", 16);
iVar3 = 0;
iVar4 = 3;
iVar1 = 90;
break;
case 4:
StringCopy(&Var2, "U_FMM_0_4", 16);
iVar3 = 0;
iVar4 = 4;
iVar1 = 210;
break;
case 5:
StringCopy(&Var2, "U_FMM_0_5", 16);
iVar3 = 0;
iVar4 = 5;
iVar1 = 200;
break;
case 6:
StringCopy(&Var2, "U_FMM_0_6", 16);
iVar3 = 0;
iVar4 = 6;
bVar0 = true;
break;
case 7:
StringCopy(&Var2, "U_FMM_0_7", 16);
iVar3 = 0;
iVar4 = 7;
iVar1 = 130;
break;
case 8:
StringCopy(&Var2, "U_FMM_0_8", 16);
iVar3 = 0;
iVar4 = 8;
iVar1 = 220;
break;
case 9:
StringCopy(&Var2, "U_FMM_0_9", 16);
iVar3 = 0;
iVar4 = 9;
bVar0 = true;
break;
case 10:
StringCopy(&Var2, "U_FMM_0_10", 16);
iVar3 = 0;
iVar4 = 10;
bVar0 = true;
break;
case 11:
StringCopy(&Var2, "U_FMM_0_11", 16);
iVar3 = 0;
iVar4 = 11;
iVar1 = 220;
break;
case 12:
StringCopy(&Var2, "U_FMM_0_12", 16);
iVar3 = 0;
iVar4 = 12;
bVar0 = true;
break;
case 13:
StringCopy(&Var2, "U_FMM_0_13", 16);
iVar3 = 0;
iVar4 = 13;
bVar0 = true;
break;
case 14:
StringCopy(&Var2, "U_FMM_0_14", 16);
iVar3 = 0;
iVar4 = 14;
bVar0 = true;
break;
case 15:
StringCopy(&Var2, "U_FMM_0_15", 16);
iVar3 = 0;
iVar4 = 15;
bVar0 = true;
break;
case 16:
StringCopy(&Var2, "U_FMM_1_0", 16);
iVar3 = 1;
iVar4 = 0;
iVar1 = 45;
break;
case 17:
StringCopy(&Var2, "U_FMM_1_1", 16);
iVar3 = 1;
iVar4 = 1;
iVar1 = 60;
break;
case 18:
StringCopy(&Var2, "U_FMM_1_2", 16);
iVar3 = 1;
iVar4 = 2;
bVar0 = true;
break;
case 19:
StringCopy(&Var2, "U_FMM_1_3", 16);
iVar3 = 1;
iVar4 = 3;
iVar1 = 40;
break;
case 20:
StringCopy(&Var2, "U_FMM_1_4", 16);
iVar3 = 1;
iVar4 = 4;
iVar1 = 315;
break;
case 21:
StringCopy(&Var2, "U_FMM_1_5", 16);
iVar3 = 1;
iVar4 = 5;
iVar1 = 215;
break;
case 22:
StringCopy(&Var2, "U_FMM_1_6", 16);
iVar3 = 1;
iVar4 = 6;
iVar1 = 265;
break;
case 23:
StringCopy(&Var2, "U_FMM_1_7", 16);
iVar3 = 1;
iVar4 = 7;
iVar1 = 45;
break;
case 24:
StringCopy(&Var2, "U_FMM_1_8", 16);
iVar3 = 1;
iVar4 = 8;
iVar1 = 205;
break;
case 25:
StringCopy(&Var2, "U_FMM_1_9", 16);
iVar3 = 1;
iVar4 = 9;
bVar0 = true;
break;
case 26:
StringCopy(&Var2, "U_FMM_1_10", 16);
iVar3 = 1;
iVar4 = 10;
bVar0 = true;
break;
case 27:
StringCopy(&Var2, "U_FMM_1_11", 16);
iVar3 = 1;
iVar4 = 11;
iVar1 = 60;
break;
case 28:
StringCopy(&Var2, "U_FMM_1_12", 16);
iVar3 = 1;
iVar4 = 12;
iVar1 = 55;
break;
case 29:
StringCopy(&Var2, "U_FMM_1_13", 16);
iVar3 = 1;
iVar4 = 13;
bVar0 = true;
break;
case 30:
StringCopy(&Var2, "U_FMM_1_14", 16);
iVar3 = 1;
iVar4 = 14;
iVar1 = 170;
break;
case 31:
StringCopy(&Var2, "U_FMM_1_15", 16);
iVar3 = 1;
iVar4 = 15;
bVar0 = true;
break;
}
switch (iParam0)
{
case 32:
StringCopy(&Var2, "U_FMM_0_0", 16);
iVar3 = 2;
iVar4 = 0;
iVar1 = 250;
break;
case 33:
StringCopy(&Var2, "U_FMM_0_1", 16);
iVar3 = 2;
iVar4 = 1;
iVar1 = 210;
break;
case 34:
StringCopy(&Var2, "U_FMM_0_2", 16);
iVar3 = 2;
iVar4 = 2;
iVar1 = 50;
break;
case 35:
StringCopy(&Var2, "U_FMM_0_3", 16);
iVar3 = 2;
iVar4 = 3;
iVar1 = 90;
break;
case 36:
StringCopy(&Var2, "U_FMM_0_4", 16);
iVar3 = 2;
iVar4 = 4;
iVar1 = 210;
break;
case 37:
StringCopy(&Var2, "U_FMM_0_5", 16);
iVar3 = 2;
iVar4 = 5;
iVar1 = 200;
break;
case 38:
StringCopy(&Var2, "U_FMM_0_6", 16);
iVar3 = 2;
iVar4 = 6;
bVar0 = true;
break;
case 39:
StringCopy(&Var2, "U_FMM_0_7", 16);
iVar3 = 2;
iVar4 = 7;
iVar1 = 130;
break;
case 40:
StringCopy(&Var2, "U_FMM_0_8", 16);
iVar3 = 2;
iVar4 = 8;
iVar1 = 220;
break;
case 41:
StringCopy(&Var2, "U_FMM_0_9", 16);
iVar3 = 2;
iVar4 = 9;
bVar0 = true;
break;
case 42:
StringCopy(&Var2, "U_FMM_0_10", 16);
iVar3 = 2;
iVar4 = 10;
bVar0 = true;
break;
case 43:
StringCopy(&Var2, "U_FMM_0_11", 16);
iVar3 = 2;
iVar4 = 11;
iVar1 = 220;
break;
case 44:
StringCopy(&Var2, "U_FMM_0_12", 16);
iVar3 = 2;
iVar4 = 12;
bVar0 = true;
break;
case 45:
StringCopy(&Var2, "U_FMM_0_13", 16);
iVar3 = 2;
iVar4 = 13;
bVar0 = true;
break;
case 46:
StringCopy(&Var2, "U_FMM_0_14", 16);
iVar3 = 2;
iVar4 = 14;
bVar0 = true;
break;
case 47:
StringCopy(&Var2, "U_FMM_0_15", 16);
iVar3 = 2;
iVar4 = 15;
bVar0 = true;
break;
case 48:
StringCopy(&Var2, "SP_FMM_3_0", 16);
iVar3 = 3;
iVar4 = 0;
if (Global_262145.f_4180 != -1)
{
iVar1 = Global_262145.f_4180;
}
else
{
iVar1 = 165;
}
break;
case 49:
StringCopy(&Var2, "SP_FMM_3_1", 16);
iVar3 = 3;
iVar4 = 1;
if (Global_262145.f_4188 != -1)
{
iVar1 = Global_262145.f_4188;
}
else
{
iVar1 = 120;
}
break;
case 50:
StringCopy(&Var2, "SP_FMM_3_2", 16);
iVar3 = 3;
iVar4 = 2;
if (Global_262145.f_4183 != -1)
{
iVar1 = Global_262145.f_4183;
}
else
{
iVar1 = 115;
}
break;
case 51:
StringCopy(&Var2, "SP_FMM_3_3", 16);
iVar3 = 3;
iVar4 = 3;
bVar0 = true;
break;
case 52:
StringCopy(&Var2, "SP_FMM_3_4", 16);
iVar3 = 3;
iVar4 = 4;
bVar0 = true;
break;
case 53:
StringCopy(&Var2, "SP_FMM_3_5", 16);
iVar3 = 3;
iVar4 = 5;
bVar0 = true;
break;
case 54:
StringCopy(&Var2, "SP_FMM_3_6", 16);
iVar3 = 3;
iVar4 = 6;
bVar0 = true;
break;
case 55:
StringCopy(&Var2, "SP_FMM_3_7", 16);
iVar3 = 3;
iVar4 = 7;
bVar0 = true;
break;
case 56:
StringCopy(&Var2, "SP_FMM_3_8", 16);
iVar3 = 3;
iVar4 = 8;
bVar0 = true;
break;
case 57:
StringCopy(&Var2, "SP_FMM_3_9", 16);
iVar3 = 3;
iVar4 = 9;
bVar0 = true;
break;
case 58:
StringCopy(&Var2, "SP_FMM_3_10", 16);
iVar3 = 3;
iVar4 = 10;
bVar0 = true;
break;
case 59:
StringCopy(&Var2, "SP_FMM_3_11", 16);
iVar3 = 3;
iVar4 = 11;
bVar0 = true;
break;
case 60:
StringCopy(&Var2, "SP_FMM_3_12", 16);
iVar3 = 3;
iVar4 = 12;
bVar0 = true;
break;
case 61:
StringCopy(&Var2, "SP_FMM_3_13", 16);
iVar3 = 3;
iVar4 = 13;
bVar0 = true;
break;
case 62:
StringCopy(&Var2, "SP_FMM_3_14", 16);
iVar3 = 3;
iVar4 = 14;
bVar0 = true;
break;
case 63:
StringCopy(&Var2, "SP_FMM_3_15", 16);
iVar3 = 3;
iVar4 = 15;
bVar0 = true;
break;
}
switch (iParam0)
{
case 64:
StringCopy(&Var2, "SP_FMM_3_0", 16);
iVar3 = 4;
iVar4 = 0;
if (Global_262145.f_4180 != -1)
{
iVar1 = Global_262145.f_4180;
}
else
{
iVar1 = 165;
}
break;
case 65:
StringCopy(&Var2, "SP_FMM_3_1", 16);
iVar3 = 4;
iVar4 = 1;
if (Global_262145.f_4188 != -1)
{
iVar1 = Global_262145.f_4188;
}
else
{
iVar1 = 120;
}
break;
case 66:
StringCopy(&Var2, "SP_FMM_3_2", 16);
iVar3 = 4;
iVar4 = 2;
if (Global_262145.f_4183 != -1)
{
iVar1 = Global_262145.f_4183;
}
else
{
iVar1 = 115;
}
break;
case 67:
StringCopy(&Var2, "SP_FMM_3_3", 16);
iVar3 = 4;
iVar4 = 3;
bVar0 = true;
break;
case 68:
StringCopy(&Var2, "SP_FMM_3_4", 16);
iVar3 = 4;
iVar4 = 4;
bVar0 = true;
break;
case 69:
StringCopy(&Var2, "SP_FMM_3_5", 16);
iVar3 = 4;
iVar4 = 5;
bVar0 = true;
break;
case 70:
StringCopy(&Var2, "SP_FMM_3_6", 16);
iVar3 = 4;
iVar4 = 6;
bVar0 = true;
break;
case 71:
StringCopy(&Var2, "SP_FMM_3_7", 16);
iVar3 = 4;
iVar4 = 7;
bVar0 = true;
break;
case 72:
StringCopy(&Var2, "SP_FMM_3_8", 16);
iVar3 = 4;
iVar4 = 8;
bVar0 = true;
break;
case 73:
StringCopy(&Var2, "SP_FMM_3_9", 16);
iVar3 = 4;
iVar4 = 9;
bVar0 = true;
break;
case 74:
StringCopy(&Var2, "SP_FMM_3_10", 16);
iVar3 = 4;
iVar4 = 10;
bVar0 = true;
break;
case 75:
StringCopy(&Var2, "SP_FMM_3_11", 16);
iVar3 = 4;
iVar4 = 11;
bVar0 = true;
break;
case 76:
StringCopy(&Var2, "SP_FMM_3_12", 16);
iVar3 = 4;
iVar4 = 12;
bVar0 = true;
break;
case 77:
StringCopy(&Var2, "SP_FMM_3_13", 16);
iVar3 = 4;
iVar4 = 13;
bVar0 = true;
break;
case 78:
StringCopy(&Var2, "SP_FMM_3_14", 16);
iVar3 = 4;
iVar4 = 14;
bVar0 = true;
break;
case 79:
StringCopy(&Var2, "SP_FMM_3_15", 16);
iVar3 = 4;
iVar4 = 15;
bVar0 = true;
break;
case 80:
StringCopy(&Var2, "U_FMM_5_0", 16);
iVar3 = 5;
iVar4 = 0;
iVar1 = 80;
iVar1 = round((to_float(iVar1) * Global_262145.f_432[80]));
break;
case 81:
StringCopy(&Var2, "U_FMM_5_1", 16);
iVar3 = 5;
iVar4 = 1;
iVar1 = 45;
iVar1 = round((to_float(iVar1) * Global_262145.f_432[81]));
break;
case 82:
StringCopy(&Var2, "U_FMM_5_2", 16);
iVar3 = 5;
iVar4 = 2;
iVar1 = 50;
iVar1 = round((to_float(iVar1) * Global_262145.f_432[82]));
break;
case 83:
StringCopy(&Var2, "U_FMM_5_3", 16);
iVar3 = 5;
iVar4 = 3;
bVar0 = true;
break;
case 84:
StringCopy(&Var2, "U_FMM_5_4", 16);
iVar3 = 5;
iVar4 = 4;
bVar0 = true;
break;
case 85:
StringCopy(&Var2, "U_FMM_5_5", 16);
iVar3 = 5;
iVar4 = 5;
bVar0 = true;
break;
case 86:
StringCopy(&Var2, "U_FMM_5_6", 16);
iVar3 = 5;
iVar4 = 6;
bVar0 = true;
break;
case 87:
StringCopy(&Var2, "U_FMM_5_7", 16);
iVar3 = 5;
iVar4 = 7;
iVar1 = 50;
iVar1 = round((to_float(iVar1) * Global_262145.f_432[87]));
break;
case 88:
StringCopy(&Var2, "U_FMM_5_8", 16);
iVar3 = 5;
iVar4 = 8;
bVar0 = true;
break;
case 89:
StringCopy(&Var2, "U_FMM_5_9", 16);
iVar3 = 5;
iVar4 = 9;
bVar0 = true;
break;
case 90:
StringCopy(&Var2, "U_FMM_5_10", 16);
iVar3 = 5;
iVar4 = 10;
bVar0 = true;
break;
case 91:
StringCopy(&Var2, "U_FMM_5_11", 16);
iVar3 = 5;
iVar4 = 11;
bVar0 = true;
break;
case 92:
StringCopy(&Var2, "U_FMM_5_12", 16);
iVar3 = 5;
iVar4 = 12;
bVar0 = true;
break;
case 93:
StringCopy(&Var2, "U_FMM_5_13", 16);
iVar3 = 5;
iVar4 = 13;
bVar0 = true;
break;
case 94:
StringCopy(&Var2, "U_FMM_5_14", 16);
iVar3 = 5;
iVar4 = 14;
bVar0 = true;
break;
case 95:
StringCopy(&Var2, "U_FMM_5_15", 16);
iVar3 = 5;
iVar4 = 15;
bVar0 = true;
break;
}
switch (iParam0)
{
case 96:
StringCopy(&Var2, "SP_FMM_6_0", 16);
iVar3 = 6;
iVar4 = 0;
if (Global_262145.f_4201 != -1)
{
iVar1 = Global_262145.f_4201;
}
else
{
iVar1 = 420;
}
break;
case 97:
StringCopy(&Var2, "SP_FMM_6_1", 16);
iVar3 = 6;
iVar4 = 1;
if (Global_262145.f_4199 != -1)
{
iVar1 = Global_262145.f_4199;
}
else
{
iVar1 = 415;
}
break;
case 98:
StringCopy(&Var2, "SP_FMM_6_2", 16);
iVar3 = 6;
iVar4 = 2;
if (Global_262145.f_4179 != -1)
{
iVar1 = Global_262145.f_4179;
}
else
{
iVar1 = 440;
}
break;
case 99:
StringCopy(&Var2, "SP_FMM_6_3", 16);
iVar3 = 6;
iVar4 = 3;
if (Global_262145.f_4193 != -1)
{
iVar1 = Global_262145.f_4193;
}
else
{
iVar1 = 400;
}
break;
case 100:
StringCopy(&Var2, "SP_FMM_6_4", 16);
iVar3 = 6;
iVar4 = 4;
if (Global_262145.f_4178 != -1)
{
iVar1 = Global_262145.f_4178;
}
else
{
iVar1 = 400;
}
break;
case 101:
StringCopy(&Var2, "SP_FMM_6_5", 16);
iVar3 = 6;
iVar4 = 5;
if (Global_262145.f_4195 != -1)
{
iVar1 = Global_262145.f_4195;
}
else
{
iVar1 = 410;
}
break;
case 102:
StringCopy(&Var2, "SP_FMM_6_6", 16);
iVar3 = 6;
iVar4 = 6;
if (Global_262145.f_4198 != -1)
{
iVar1 = Global_262145.f_4198;
}
else
{
iVar1 = 435;
}
break;
case 103:
StringCopy(&Var2, "SP_FMM_6_7", 16);
iVar3 = 6;
iVar4 = 7;
if (Global_262145.f_4194 != -1)
{
iVar1 = Global_262145.f_4194;
}
else
{
iVar1 = 425;
}
break;
case 104:
StringCopy(&Var2, "SP_FMM_6_8", 16);
iVar3 = 6;
iVar4 = 8;
if (Global_262145.f_4187 != -1)
{
iVar1 = Global_262145.f_4187;
}
else
{
iVar1 = 435;
}
break;
case 105:
StringCopy(&Var2, "SP_FMM_6_9", 16);
iVar3 = 6;
iVar4 = 9;
if (Global_262145.f_4192 != -1)
{
iVar1 = Global_262145.f_4192;
}
else
{
iVar1 = 420;
}
break;
case 106:
StringCopy(&Var2, "SP_FMM_6_10", 16);
iVar3 = 6;
iVar4 = 10;
if (Global_262145.f_4190 != -1)
{
iVar1 = Global_262145.f_4190;
}
else
{
iVar1 = 425;
}
break;
case 107:
StringCopy(&Var2, "SP_FMM_6_11", 16);
iVar3 = 6;
iVar4 = 11;
if (Global_262145.f_4200 != -1)
{
iVar1 = Global_262145.f_4200;
}
else
{
iVar1 = 425;
}
break;
case 108:
StringCopy(&Var2, "SP_FMM_6_12", 16);
iVar3 = 6;
iVar4 = 12;
if (Global_262145.f_4186 != -1)
{
iVar1 = Global_262145.f_4186;
}
else
{
iVar1 = 435;
}
break;
case 109:
StringCopy(&Var2, "SP_FMM_6_13", 16);
iVar3 = 6;
iVar4 = 13;
if (Global_262145.f_4181 != -1)
{
iVar1 = Global_262145.f_4181;
}
else
{
iVar1 = 750;
}
break;
case 110:
StringCopy(&Var2, "SP_FMM_6_14", 16);
iVar3 = 6;
iVar4 = 14;
if (Global_262145.f_4196 != -1)
{
iVar1 = Global_262145.f_4196;
}
else
{
iVar1 = 400;
}
break;
case 111:
StringCopy(&Var2, "SP_FMM_6_15", 16);
iVar3 = 6;
iVar4 = 15;
if (Global_262145.f_4189 != -1)
{
iVar1 = Global_262145.f_4189;
}
else
{
iVar1 = 435;
}
break;
case 112:
StringCopy(&Var2, "SP_FMM_6_0", 16);
iVar3 = 7;
iVar4 = 0;
if (Global_262145.f_4201 != -1)
{
iVar1 = Global_262145.f_4201;
}
else
{
iVar1 = 420;
}
break;
case 113:
StringCopy(&Var2, "SP_FMM_6_1", 16);
iVar3 = 7;
iVar4 = 1;
if (Global_262145.f_4199 != -1)
{
iVar1 = Global_262145.f_4199;
}
else
{
iVar1 = 415;
}
break;
case 114:
StringCopy(&Var2, "SP_FMM_6_2", 16);
iVar3 = 7;
iVar4 = 2;
if (Global_262145.f_4179 != -1)
{
iVar1 = Global_262145.f_4179;
}
else
{
iVar1 = 440;
}
break;
case 115:
StringCopy(&Var2, "SP_FMM_6_3", 16);
iVar3 = 7;
iVar4 = 3;
if (Global_262145.f_4193 != -1)
{
iVar1 = Global_262145.f_4193;
}
else
{
iVar1 = 400;
}
break;
case 116:
StringCopy(&Var2, "SP_FMM_6_4", 16);
iVar3 = 7;
iVar4 = 4;
if (Global_262145.f_4178 != -1)
{
iVar1 = Global_262145.f_4178;
}
else
{
iVar1 = 400;
}
break;
case 117:
StringCopy(&Var2, "SP_FMM_6_5", 16);
iVar3 = 7;
iVar4 = 5;
if (Global_262145.f_4195 != -1)
{
iVar1 = Global_262145.f_4195;
}
else
{
iVar1 = 410;
}
break;
case 118:
StringCopy(&Var2, "SP_FMM_6_6", 16);
iVar3 = 7;
iVar4 = 6;
if (Global_262145.f_4198 != -1)
{
iVar1 = Global_262145.f_4198;
}
else
{
iVar1 = 435;
}
break;
case 119:
StringCopy(&Var2, "SP_FMM_6_7", 16);
iVar3 = 7;
iVar4 = 7;
if (Global_262145.f_4194 != -1)
{
iVar1 = Global_262145.f_4194;
}
else
{
iVar1 = 425;
}
break;
case 120:
StringCopy(&Var2, "SP_FMM_6_8", 16);
iVar3 = 7;
iVar4 = 8;
if (Global_262145.f_4187 != -1)
{
iVar1 = Global_262145.f_4187;
}
else
{
iVar1 = 435;
}
break;
case 121:
StringCopy(&Var2, "SP_FMM_6_9", 16);
iVar3 = 7;
iVar4 = 9;
if (Global_262145.f_4192 != -1)
{
iVar1 = Global_262145.f_4192;
}
else
{
iVar1 = 420;
}
break;
case 122:
StringCopy(&Var2, "SP_FMM_6_10", 16);
iVar3 = 7;
iVar4 = 10;
if (Global_262145.f_4190 != -1)
{
iVar1 = Global_262145.f_4190;
}
else
{
iVar1 = 425;
}
break;
case 123:
StringCopy(&Var2, "SP_FMM_6_11", 16);
iVar3 = 7;
iVar4 = 11;
if (Global_262145.f_4200 != -1)
{
iVar1 = Global_262145.f_4200;
}
else
{
iVar1 = 425;
}
break;
case 124:
StringCopy(&Var2, "SP_FMM_6_12", 16);
iVar3 = 7;
iVar4 = 12;
if (Global_262145.f_4186 != -1)
{
iVar1 = Global_262145.f_4186;
}
else
{
iVar1 = 435;
}
break;
case 125:
StringCopy(&Var2, "SP_FMM_6_13", 16);
iVar3 = 7;
iVar4 = 13;
if (Global_262145.f_4181 != -1)
{
iVar1 = Global_262145.f_4181;
}
else
{
iVar1 = 750;
}
break;
case 126:
StringCopy(&Var2, "SP_FMM_6_14", 16);
iVar3 = 7;
iVar4 = 14;
if (Global_262145.f_4196 != -1)
{
iVar1 = Global_262145.f_4196;
}
else
{
iVar1 = 400;
}
break;
case 127:
StringCopy(&Var2, "SP_FMM_6_15", 16);
iVar3 = 7;
iVar4 = 15;
if (Global_262145.f_4189 != -1)
{
iVar1 = Global_262145.f_4189;
}
else
{
iVar1 = 435;
}
break;
}
switch (iParam0)
{
case 128:
StringCopy(&Var2, "U_FMM_8_0", 16);
iVar3 = 8;
iVar4 = 0;
iVar1 = 45;
break;
case 129:
StringCopy(&Var2, "U_FMM_8_1", 16);
iVar3 = 8;
iVar4 = 1;
bVar0 = true;
break;
case 130:
StringCopy(&Var2, "U_FMM_8_2", 16);
iVar3 = 8;
iVar4 = 2;
bVar0 = true;
break;
case 131:
StringCopy(&Var2, "U_FMM_8_3", 16);
iVar3 = 8;
iVar4 = 3;
bVar0 = true;
break;
case 132:
StringCopy(&Var2, "U_FMM_8_4", 16);
iVar3 = 8;
iVar4 = 4;
bVar0 = true;
break;
case 133:
StringCopy(&Var2, "U_FMM_8_5", 16);
iVar3 = 8;
iVar4 = 5;
bVar0 = true;
break;
case 134:
StringCopy(&Var2, "U_FMM_8_6", 16);
iVar3 = 8;
iVar4 = 6;
bVar0 = true;
break;
case 135:
StringCopy(&Var2, "U_FMM_8_7", 16);
iVar3 = 8;
iVar4 = 7;
bVar0 = true;
break;
case 136:
StringCopy(&Var2, "U_FMM_8_8", 16);
iVar3 = 8;
iVar4 = 8;
bVar0 = true;
break;
case 137:
StringCopy(&Var2, "U_FMM_8_9", 16);
iVar3 = 8;
iVar4 = 9;
bVar0 = true;
break;
case 138:
StringCopy(&Var2, "U_FMM_8_10", 16);
iVar3 = 8;
iVar4 = 10;
iVar1 = 65;
break;
case 139:
StringCopy(&Var2, "U_FMM_8_11", 16);
iVar3 = 8;
iVar4 = 11;
bVar0 = true;
break;
case 140:
StringCopy(&Var2, "U_FMM_8_12", 16);
iVar3 = 8;
iVar4 = 12;
bVar0 = true;
break;
case 141:
StringCopy(&Var2, "U_FMM_8_13", 16);
iVar3 = 8;
iVar4 = 13;
iVar1 = 40;
break;
case 142:
StringCopy(&Var2, "U_FMM_8_14", 16);
iVar3 = 8;
iVar4 = 14;
iVar1 = 45;
break;
case 143:
StringCopy(&Var2, "U_FMM_8_15", 16);
iVar3 = 8;
iVar4 = 15;
bVar0 = true;
break;
case 144:
StringCopy(&Var2, "U_FMM_9_0", 16);
iVar3 = 9;
iVar4 = 0;
iVar1 = 265;
break;
case 145:
StringCopy(&Var2, "U_FMM_9_1", 16);
iVar3 = 9;
iVar4 = 1;
iVar1 = 340;
break;
case 146:
StringCopy(&Var2, "U_FMM_9_2", 16);
iVar3 = 9;
iVar4 = 2;
iVar1 = 335;
break;
case 147:
StringCopy(&Var2, "U_FMM_9_3", 16);
iVar3 = 9;
iVar4 = 3;
iVar1 = 330;
break;
case 148:
StringCopy(&Var2, "U_FMM_9_4", 16);
iVar3 = 9;
iVar4 = 4;
iVar1 = 345;
break;
case 149:
StringCopy(&Var2, "U_FMM_9_5", 16);
iVar3 = 9;
iVar4 = 5;
iVar1 = 550;
break;
case 150:
StringCopy(&Var2, "U_FMM_9_6", 16);
iVar3 = 9;
iVar4 = 6;
iVar1 = 340;
break;
case 151:
StringCopy(&Var2, "U_FMM_9_7", 16);
iVar3 = 9;
iVar4 = 7;
iVar1 = 295;
break;
case 152:
StringCopy(&Var2, "U_FMM_9_8", 16);
iVar3 = 9;
iVar4 = 8;
bVar0 = true;
break;
case 153:
StringCopy(&Var2, "U_FMM_9_9", 16);
iVar3 = 9;
iVar4 = 9;
bVar0 = true;
break;
case 154:
StringCopy(&Var2, "U_FMM_9_10", 16);
iVar3 = 9;
iVar4 = 10;
iVar1 = 545;
break;
case 155:
StringCopy(&Var2, "U_FMM_9_11", 16);
iVar3 = 9;
iVar4 = 11;
iVar1 = 345;
break;
case 156:
StringCopy(&Var2, "U_FMM_9_12", 16);
iVar3 = 9;
iVar4 = 12;
iVar1 = 315;
break;
case 157:
StringCopy(&Var2, "U_FMM_9_13", 16);
iVar3 = 9;
iVar4 = 13;
iVar1 = 520;
break;
case 158:
StringCopy(&Var2, "U_FMM_9_14", 16);
iVar3 = 9;
iVar4 = 14;
iVar1 = 325;
break;
case 159:
StringCopy(&Var2, "U_FMM_9_15", 16);
iVar3 = 9;
iVar4 = 15;
iVar1 = 330;
break;
}
switch (iParam0)
{
case 160:
StringCopy(&Var2, "SP_FMM_10_0", 16);
iVar3 = 10;
iVar4 = 0;
if (Global_262145.f_4201 != -1)
{
iVar1 = Global_262145.f_4201;
}
else
{
iVar1 = 405;
}
break;
case 161:
StringCopy(&Var2, "SP_FMM_10_1", 16);
iVar3 = 10;
iVar4 = 1;
if (Global_262145.f_4199 != -1)
{
iVar1 = Global_262145.f_4199;
}
else
{
iVar1 = 400;
}
break;
case 162:
StringCopy(&Var2, "SP_FMM_10_2", 16);
iVar3 = 10;
iVar4 = 2;
if (Global_262145.f_4185 != -1)
{
iVar1 = Global_262145.f_4185;
}
else
{
iVar1 = 425;
}
break;
case 163:
StringCopy(&Var2, "SP_FMM_10_3", 16);
iVar3 = 10;
iVar4 = 3;
if (Global_262145.f_4193 != -1)
{
iVar1 = Global_262145.f_4193;
}
else
{
iVar1 = 385;
}
break;
case 164:
StringCopy(&Var2, "SP_FMM_10_4", 16);
iVar3 = 10;
iVar4 = 4;
if (Global_262145.f_4178 != -1)
{
iVar1 = Global_262145.f_4178;
}
else
{
iVar1 = 385;
}
break;
case 165:
StringCopy(&Var2, "SP_FMM_10_5", 16);
iVar3 = 10;
iVar4 = 5;
if (Global_262145.f_4195 != -1)
{
iVar1 = Global_262145.f_4195;
}
else
{
iVar1 = 395;
}
break;
case 166:
StringCopy(&Var2, "SP_FMM_10_6", 16);
iVar3 = 10;
iVar4 = 6;
if (Global_262145.f_4184 != -1)
{
iVar1 = Global_262145.f_4184;
}
else
{
iVar1 = 500;
}
break;
case 167:
StringCopy(&Var2, "SP_FMM_10_7", 16);
iVar3 = 10;
iVar4 = 7;
if (Global_262145.f_4198 != -1)
{
iVar1 = Global_262145.f_4198;
}
else
{
iVar1 = 420;
}
break;
case 168:
StringCopy(&Var2, "SP_FMM_10_8", 16);
iVar3 = 10;
iVar4 = 8;
if (Global_262145.f_4194 != -1)
{
iVar1 = Global_262145.f_4194;
}
else
{
iVar1 = 410;
}
break;
case 169:
StringCopy(&Var2, "SP_FMM_10_9", 16);
iVar3 = 10;
iVar4 = 9;
if (Global_262145.f_4187 != -1)
{
iVar1 = Global_262145.f_4187;
}
else
{
iVar1 = 420;
}
break;
case 170:
StringCopy(&Var2, "SP_FMM_10_10", 16);
iVar3 = 10;
iVar4 = 10;
if (Global_262145.f_4192 != -1)
{
iVar1 = Global_262145.f_4192;
}
else
{
iVar1 = 405;
}
break;
case 171:
StringCopy(&Var2, "SP_FMM_10_11", 16);
iVar3 = 10;
iVar4 = 11;
if (Global_262145.f_4190 != -1)
{
iVar1 = Global_262145.f_4190;
}
else
{
iVar1 = 410;
}
break;
case 172:
StringCopy(&Var2, "SP_FMM_10_12", 16);
iVar3 = 10;
iVar4 = 12;
if (Global_262145.f_4182 != -1)
{
iVar1 = Global_262145.f_4182;
}
else
{
iVar1 = 420;
}
break;
case 173:
StringCopy(&Var2, "SP_FMM_10_13", 16);
iVar3 = 10;
iVar4 = 13;
if (Global_262145.f_4197 != -1)
{
iVar1 = Global_262145.f_4197;
}
else
{
iVar1 = 420;
}
break;
case 174:
StringCopy(&Var2, "SP_FMM_10_14", 16);
iVar3 = 10;
iVar4 = 14;
if (Global_262145.f_4200 != -1)
{
iVar1 = Global_262145.f_4200;
}
else
{
iVar1 = 410;
}
break;
case 175:
StringCopy(&Var2, "SP_FMM_10_15", 16);
iVar3 = 10;
iVar4 = 15;
if (Global_262145.f_4191 != -1)
{
iVar1 = Global_262145.f_4191;
}
else
{
iVar1 = 460;
}
break;
case 176:
StringCopy(&Var2, "SP_FMM_10_0", 16);
iVar3 = 11;
iVar4 = 0;
if (Global_262145.f_4201 != -1)
{
iVar1 = Global_262145.f_4201;
}
else
{
iVar1 = 405;
}
break;
case 177:
StringCopy(&Var2, "SP_FMM_10_1", 16);
iVar3 = 11;
iVar4 = 1;
if (Global_262145.f_4199 != -1)
{
iVar1 = Global_262145.f_4199;
}
else
{
iVar1 = 400;
}
break;
case 178:
StringCopy(&Var2, "SP_FMM_10_2", 16);
iVar3 = 11;
iVar4 = 2;
if (Global_262145.f_4185 != -1)
{
iVar1 = Global_262145.f_4185;
}
else
{
iVar1 = 425;
}
break;
case 179:
StringCopy(&Var2, "SP_FMM_10_3", 16);
iVar3 = 11;
iVar4 = 3;
if (Global_262145.f_4193 != -1)
{
iVar1 = Global_262145.f_4193;
}
else
{
iVar1 = 385;
}
break;
case 180:
StringCopy(&Var2, "SP_FMM_10_4", 16);
iVar3 = 11;
iVar4 = 4;
if (Global_262145.f_4178 != -1)
{
iVar1 = Global_262145.f_4178;
}
else
{
iVar1 = 385;
}
break;
case 181:
StringCopy(&Var2, "SP_FMM_10_5", 16);
iVar3 = 11;
iVar4 = 5;
if (Global_262145.f_4195 != -1)
{
iVar1 = Global_262145.f_4195;
}
else
{
iVar1 = 395;
}
break;
case 182:
StringCopy(&Var2, "SP_FMM_10_6", 16);
iVar3 = 11;
iVar4 = 6;
if (Global_262145.f_4184 != -1)
{
iVar1 = Global_262145.f_4184;
}
else
{
iVar1 = 500;
}
break;
case 183:
StringCopy(&Var2, "SP_FMM_10_7", 16);
iVar3 = 11;
iVar4 = 7;
if (Global_262145.f_4198 != -1)
{
iVar1 = Global_262145.f_4198;
}
else
{
iVar1 = 420;
}
break;
case 184:
StringCopy(&Var2, "SP_FMM_10_8", 16);
iVar3 = 11;
iVar4 = 8;
if (Global_262145.f_4194 != -1)
{
iVar1 = Global_262145.f_4194;
}
else
{
iVar1 = 410;
}
break;
case 185:
StringCopy(&Var2, "SP_FMM_10_9", 16);
iVar3 = 11;
iVar4 = 9;
if (Global_262145.f_4187 != -1)
{
iVar1 = Global_262145.f_4187;
}
else
{
iVar1 = 420;
}
break;
case 186:
StringCopy(&Var2, "SP_FMM_10_10", 16);
iVar3 = 11;
iVar4 = 10;
if (Global_262145.f_4192 != -1)
{
iVar1 = Global_262145.f_4192;
}
else
{
iVar1 = 405;
}
break;
case 187:
StringCopy(&Var2, "SP_FMM_10_11", 16);
iVar3 = 11;
iVar4 = 11;
if (Global_262145.f_4190 != -1)
{
iVar1 = Global_262145.f_4190;
}
else
{
iVar1 = 410;
}
break;
case 188:
StringCopy(&Var2, "SP_FMM_10_12", 16);
iVar3 = 11;
iVar4 = 12;
if (Global_262145.f_4182 != -1)
{
iVar1 = Global_262145.f_4182;
}
else
{
iVar1 = 420;
}
break;
case 189:
StringCopy(&Var2, "SP_FMM_10_13", 16);
iVar3 = 11;
iVar4 = 13;
if (Global_262145.f_4197 != -1)
{
iVar1 = Global_262145.f_4197;
}
else
{
iVar1 = 420;
}
break;
case 190:
StringCopy(&Var2, "SP_FMM_10_14", 16);
iVar3 = 11;
iVar4 = 14;
if (Global_262145.f_4200 != -1)
{
iVar1 = Global_262145.f_4200;
}
else
{
iVar1 = 410;
}
break;
case 191:
StringCopy(&Var2, "SP_FMM_10_15", 16);
iVar3 = 11;
iVar4 = 15;
if (Global_262145.f_4191 != -1)
{
iVar1 = Global_262145.f_4191;
}
else
{
iVar1 = 460;
}
break;
}
switch (iParam0)
{
case 192:
StringCopy(&Var2, "U_FMM_12_0", 16);
iVar3 = 12;
iVar4 = 0;
iVar1 = 420;
break;
case 193:
StringCopy(&Var2, "U_FMM_12_1", 16);
iVar3 = 12;
iVar4 = 1;
iVar1 = 415;
break;
case 194:
StringCopy(&Var2, "U_FMM_12_2", 16);
iVar3 = 12;
iVar4 = 2;
iVar1 = 695;
break;
case 195:
StringCopy(&Var2, "U_FMM_12_3", 16);
iVar3 = 12;
iVar4 = 3;
iVar1 = 385;
break;
case 196:
StringCopy(&Var2, "U_FMM_12_4", 16);
iVar3 = 12;
iVar4 = 4;
iVar1 = 330;
break;
case 197:
StringCopy(&Var2, "U_FMM_12_5", 16);
iVar3 = 12;
iVar4 = 5;
iVar1 = 345;
break;
case 198:
StringCopy(&Var2, "U_FMM_12_6", 16);
iVar3 = 12;
iVar4 = 6;
iVar1 = 340;
break;
case 199:
StringCopy(&Var2, "U_FMM_12_7", 16);
iVar3 = 12;
iVar4 = 7;
iVar1 = 450;
break;
case 200:
StringCopy(&Var2, "U_FMM_12_8", 16);
iVar3 = 12;
iVar4 = 8;
iVar1 = 295;
break;
case 201:
StringCopy(&Var2, "U_FMM_12_9", 16);
iVar3 = 12;
iVar4 = 9;
iVar1 = 340;
break;
case 202:
StringCopy(&Var2, "U_FMM_12_10", 16);
iVar3 = 12;
iVar4 = 10;
iVar1 = 1060;
break;
case 203:
StringCopy(&Var2, "U_FMM_12_11", 16);
iVar3 = 12;
iVar4 = 11;
iVar1 = 1040;
break;
case 204:
StringCopy(&Var2, "U_FMM_12_12", 16);
iVar3 = 12;
iVar4 = 12;
bVar0 = true;
break;
case 205:
StringCopy(&Var2, "U_FMM_12_13", 16);
iVar3 = 12;
iVar4 = 13;
bVar0 = true;
break;
case 206:
StringCopy(&Var2, "U_FMM_12_14", 16);
iVar3 = 12;
iVar4 = 14;
bVar0 = true;
break;
case 207:
StringCopy(&Var2, "U_FMM_12_15", 16);
iVar3 = 12;
iVar4 = 15;
bVar0 = true;
break;
case 208:
StringCopy(&Var2, "U_FMM_13_0", 16);
iVar3 = 13;
iVar4 = 0;
iVar1 = 420;
break;
case 209:
StringCopy(&Var2, "U_FMM_13_1", 16);
iVar3 = 13;
iVar4 = 1;
iVar1 = 415;
break;
case 210:
StringCopy(&Var2, "U_FMM_13_2", 16);
iVar3 = 13;
iVar4 = 2;
iVar1 = 680;
break;
case 211:
StringCopy(&Var2, "U_FMM_13_3", 16);
iVar3 = 13;
iVar4 = 3;
iVar1 = 385;
break;
case 212:
StringCopy(&Var2, "U_FMM_13_4", 16);
iVar3 = 13;
iVar4 = 4;
bVar0 = true;
break;
case 213:
StringCopy(&Var2, "U_FMM_13_5", 16);
iVar3 = 13;
iVar4 = 5;
iVar1 = 345;
break;
case 214:
StringCopy(&Var2, "U_FMM_13_6", 16);
iVar3 = 13;
iVar4 = 6;
bVar0 = true;
break;
case 215:
StringCopy(&Var2, "U_FMM_13_7", 16);
iVar3 = 13;
iVar4 = 7;
bVar0 = true;
break;
case 216:
StringCopy(&Var2, "U_FMM_13_8", 16);
iVar3 = 13;
iVar4 = 8;
bVar0 = true;
break;
case 217:
StringCopy(&Var2, "U_FMM_13_9", 16);
iVar3 = 13;
iVar4 = 9;
bVar0 = true;
break;
case 218:
StringCopy(&Var2, "U_FMM_13_10", 16);
iVar3 = 13;
iVar4 = 10;
bVar0 = true;
break;
case 219:
StringCopy(&Var2, "U_FMM_13_11", 16);
iVar3 = 13;
iVar4 = 11;
bVar0 = true;
break;
case 220:
StringCopy(&Var2, "U_FMM_13_12", 16);
iVar3 = 13;
iVar4 = 12;
bVar0 = true;
break;
case 221:
StringCopy(&Var2, "U_FMM_13_13", 16);
iVar3 = 13;
iVar4 = 13;
iVar1 = 1065;
break;
case 222:
StringCopy(&Var2, "U_FMM_13_14", 16);
iVar3 = 13;
iVar4 = 14;
bVar0 = true;
break;
case 223:
StringCopy(&Var2, "U_FMM_13_15", 16);
iVar3 = 13;
iVar4 = 15;
bVar0 = true;
break;
}
switch (iParam0)
{
case 224:
StringCopy(&Var2, "U_FMM_1_0", 16);
iVar3 = 14;
iVar4 = 0;
iVar1 = 45;
iVar1 = round((to_float(iVar1) * Global_262145.f_432[16]));
break;
case 225:
StringCopy(&Var2, "U_FMM_1_1", 16);
iVar3 = 14;
iVar4 = 1;
iVar1 = 60;
iVar1 = round((to_float(iVar1) * Global_262145.f_432[17]));
break;
case 226:
StringCopy(&Var2, "U_FMM_1_2", 16);
iVar3 = 14;
iVar4 = 2;
bVar0 = true;
break;
case 227:
StringCopy(&Var2, "U_FMM_1_3", 16);
iVar3 = 14;
iVar4 = 3;
iVar1 = 40;
iVar1 = round((to_float(iVar1) * Global_262145.f_432[19]));
break;
case 228:
StringCopy(&Var2, "U_FMM_1_4", 16);
iVar3 = 14;
iVar4 = 4;
iVar1 = 315;
iVar1 = round((to_float(iVar1) * Global_262145.f_432[20]));
break;
case 229:
StringCopy(&Var2, "U_FMM_1_5", 16);
iVar3 = 14;
iVar4 = 5;
iVar1 = 215;
iVar1 = round((to_float(iVar1) * Global_262145.f_432[21]));
break;
case 230:
StringCopy(&Var2, "U_FMM_1_6", 16);
iVar3 = 14;
iVar4 = 6;
iVar1 = 265;
iVar1 = round((to_float(iVar1) * Global_262145.f_432[22]));
break;
case 231:
StringCopy(&Var2, "U_FMM_1_7", 16);
iVar3 = 14;
iVar4 = 7;
iVar1 = 45;
iVar1 = round((to_float(iVar1) * Global_262145.f_432[23]));
break;
case 232:
StringCopy(&Var2, "U_FMM_1_8", 16);
iVar3 = 14;
iVar4 = 8;
iVar1 = 205;
iVar1 = round((to_float(iVar1) * Global_262145.f_432[24]));
break;
case 233:
StringCopy(&Var2, "U_FMM_1_9", 16);
iVar3 = 14;
iVar4 = 9;
bVar0 = true;
break;
case 234:
StringCopy(&Var2, "U_FMM_1_10", 16);
iVar3 = 14;
iVar4 = 10;
bVar0 = true;
break;
case 235:
StringCopy(&Var2, "U_FMM_1_11", 16);
iVar3 = 14;
iVar4 = 11;
iVar1 = 60;
iVar1 = round((to_float(iVar1) * Global_262145.f_432[27]));
break;
case 236:
StringCopy(&Var2, "U_FMM_1_12", 16);
iVar3 = 14;
iVar4 = 12;
iVar1 = 55;
iVar1 = round((to_float(iVar1) * Global_262145.f_432[28]));
break;
case 237:
StringCopy(&Var2, "U_FMM_1_13", 16);
iVar3 = 14;
iVar4 = 13;
bVar0 = true;
break;
case 238:
StringCopy(&Var2, "U_FMM_1_14", 16);
iVar3 = 14;
iVar4 = 14;
iVar1 = 170;
iVar1 = round((to_float(iVar1) * Global_262145.f_432[30]));
break;
case 239:
StringCopy(&Var2, "U_FMM_1_15", 16);
iVar3 = 14;
iVar4 = 15;
bVar0 = true;
break;
case 240:
StringCopy(&Var2, "U_FMM_15_0", 16);
iVar3 = 15;
iVar4 = 0;
iVar1 = 0;
iVar1 = round((to_float(iVar1) * Global_262145.f_432[32]));
break;
}
if (iParam0 == 23 || iParam0 == 231)
{
if (func_441(89, -1))
{
StringCopy(&Var2, "REW_RS", 16);
iVar1 = round((to_float(1250) * Global_262145.f_2979));
}
else
{
iVar1 = round((to_float(45) * Global_262145.f_432[23]));
}
}
else if (iParam0 == 17 || iParam0 == 225)
{
StringCopy(&Var2, "REW_LSB", 16);
iVar1 = round((to_float(450) * Global_262145.f_2978));
}
else if (iParam0 == 28 || iParam0 == 236)
{
if (func_441(87, -1))
{
StringCopy(&Var2, "REW_REDSK", 16);
iVar1 = round((to_float(500) * Global_262145.f_2977));
}
else
{
iVar1 = round((to_float(55) * Global_262145.f_432[28]));
}
}
else if (iParam0 >= 0 && iParam0 < 32)
{
iVar8 = iParam0;
if (iVar8 >= 0 && iVar8 < 237)
{
iVar1 = round((to_float(iVar1) * Global_262145.f_432[iVar8]));
}
}
else if (iParam0 >= 32 && iParam0 < 48)
{
iVar9 = (iParam0 - 32);
if (iVar9 >= 0 && iVar9 < 237)
{
iVar1 = round((to_float(iVar1) * Global_262145.f_432[iVar9]));
}
}
else if (iParam0 >= 128 && iParam0 < 160)
{
iVar10 = (iParam0 - 160) + 124;
if (iVar10 >= 0 && iVar10 < 237)
{
iVar1 = round((to_float(iVar1) * Global_262145.f_432[iVar10]));
}
}
else if (iParam0 >= 192 && iParam0 < 224)
{
iVar11 = (iParam0 - 160) + 188;
if (iVar11 >= 0 && iVar11 < 237)
{
iVar1 = round((to_float(iVar1) * Global_262145.f_432[iVar11]));
}
}
iVar1 = round((to_float(iVar1) * Global_287780.f_16));
if (iParam0 >= 241)
{
Global_71017[0 /*14*/].f_5 = 3;
func_164(iVar7, iParam0, 241, iParam1);
if (Global_71017[0 /*14*/].f_7 > 0)
{
Global_71017[0 /*14*/].f_7 = round((to_float(Global_71017[0 /*14*/].f_7) * Global_287780.f_16));
}
}
else
{
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
}
void func_537(int iParam0, int iParam1)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 11;
switch (iParam0)
{
case 0:
iVar3 = 0;
iVar4 = 0;
iVar1 = 250;
break;
case 1:
iVar3 = 0;
iVar4 = 1;
iVar1 = 210;
break;
case 2:
iVar3 = 0;
iVar4 = 2;
iVar1 = 50;
break;
case 3:
iVar3 = 0;
iVar4 = 3;
iVar1 = 90;
break;
case 4:
iVar3 = 0;
iVar4 = 4;
iVar1 = 210;
break;
case 5:
iVar3 = 0;
iVar4 = 5;
iVar1 = 200;
break;
case 6:
iVar3 = 0;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 7:
iVar3 = 0;
iVar4 = 7;
iVar1 = 130;
break;
case 8:
iVar3 = 0;
iVar4 = 8;
iVar1 = 220;
break;
case 9:
iVar3 = 0;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 10:
iVar3 = 0;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 11:
iVar3 = 0;
iVar4 = 11;
iVar1 = 220;
break;
case 12:
iVar3 = 0;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 13:
iVar3 = 0;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 14:
iVar3 = 0;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 15:
iVar3 = 0;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
case 16:
iVar3 = 1;
iVar4 = 0;
iVar1 = 45;
break;
case 17:
iVar3 = 1;
iVar4 = 1;
iVar1 = 60;
break;
case 18:
iVar3 = 1;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 19:
iVar3 = 1;
iVar4 = 3;
iVar1 = 40;
break;
case 20:
iVar3 = 1;
iVar4 = 4;
iVar1 = 315;
break;
case 21:
iVar3 = 1;
iVar4 = 5;
iVar1 = 215;
break;
case 22:
iVar3 = 1;
iVar4 = 6;
iVar1 = 265;
break;
case 23:
iVar3 = 1;
iVar4 = 7;
iVar1 = 45;
break;
case 24:
iVar3 = 1;
iVar4 = 8;
iVar1 = 205;
break;
case 25:
iVar3 = 1;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 26:
iVar3 = 1;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 27:
iVar3 = 1;
iVar4 = 11;
iVar1 = 60;
break;
case 28:
iVar3 = 1;
iVar4 = 12;
iVar1 = 55;
break;
case 29:
iVar3 = 1;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 30:
iVar3 = 1;
iVar4 = 14;
iVar1 = 170;
break;
case 31:
iVar3 = 1;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
}
switch (iParam0)
{
case 32:
iVar3 = 2;
iVar4 = 0;
iVar1 = 0;
bVar0 = true;
break;
case 33:
iVar3 = 2;
iVar4 = 1;
iVar1 = 0;
bVar0 = true;
break;
case 34:
iVar3 = 2;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 35:
iVar3 = 2;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 36:
iVar3 = 2;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 37:
iVar3 = 2;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 38:
iVar3 = 2;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 39:
iVar3 = 2;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 40:
iVar3 = 2;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 41:
iVar3 = 2;
iVar4 = 9;
iVar1 = 160;
break;
case 42:
iVar3 = 2;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 43:
iVar3 = 2;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 44:
iVar3 = 2;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 45:
iVar3 = 2;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 46:
iVar3 = 2;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 47:
iVar3 = 2;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
case 48:
iVar3 = 3;
iVar4 = 0;
iVar1 = 205;
break;
case 49:
iVar3 = 3;
iVar4 = 1;
iVar1 = 110;
break;
case 50:
iVar3 = 3;
iVar4 = 2;
iVar1 = 150;
break;
case 51:
iVar3 = 3;
iVar4 = 3;
iVar1 = 115;
break;
case 52:
iVar3 = 3;
iVar4 = 4;
iVar1 = 115;
break;
case 53:
iVar3 = 3;
iVar4 = 5;
iVar1 = 150;
break;
case 54:
iVar3 = 3;
iVar4 = 6;
iVar1 = 150;
break;
case 55:
iVar3 = 3;
iVar4 = 7;
iVar1 = 115;
break;
case 56:
iVar3 = 3;
iVar4 = 8;
iVar1 = 140;
break;
case 57:
iVar3 = 3;
iVar4 = 9;
iVar1 = 125;
break;
case 58:
iVar3 = 3;
iVar4 = 10;
iVar1 = 115;
break;
case 59:
iVar3 = 3;
iVar4 = 11;
iVar1 = 150;
break;
case 60:
iVar3 = 3;
iVar4 = 12;
iVar1 = 150;
break;
case 61:
iVar3 = 3;
iVar4 = 13;
iVar1 = 275;
break;
case 62:
iVar3 = 3;
iVar4 = 14;
iVar1 = 460;
break;
case 63:
iVar3 = 3;
iVar4 = 15;
iVar1 = 260;
break;
}
switch (iParam0)
{
case 64:
iVar3 = 4;
iVar4 = 0;
iVar1 = 965;
break;
case 65:
iVar3 = 4;
iVar4 = 1;
iVar1 = 0;
bVar0 = true;
break;
case 66:
iVar3 = 4;
iVar4 = 2;
iVar1 = 2520;
break;
case 67:
iVar3 = 4;
iVar4 = 3;
iVar1 = 350;
break;
case 68:
iVar3 = 4;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 69:
iVar3 = 4;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 70:
iVar3 = 4;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 71:
iVar3 = 4;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 72:
iVar3 = 4;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 73:
iVar3 = 4;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 74:
iVar3 = 4;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 75:
iVar3 = 4;
iVar4 = 11;
iVar1 = 150;
break;
case 76:
iVar3 = 4;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 77:
iVar3 = 4;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 78:
iVar3 = 4;
iVar4 = 14;
iVar1 = 3125;
break;
case 79:
iVar3 = 4;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
case 80:
iVar3 = 5;
iVar4 = 0;
iVar1 = 80;
break;
case 81:
iVar3 = 5;
iVar4 = 1;
iVar1 = 45;
break;
case 82:
iVar3 = 5;
iVar4 = 2;
iVar1 = 50;
break;
case 83:
iVar3 = 5;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 84:
iVar3 = 5;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 85:
iVar3 = 5;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 86:
iVar3 = 5;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 87:
iVar3 = 5;
iVar4 = 7;
iVar1 = 50;
break;
case 88:
iVar3 = 5;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 89:
iVar3 = 5;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 90:
iVar3 = 5;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 91:
iVar3 = 5;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 92:
iVar3 = 5;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 93:
iVar3 = 5;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 94:
iVar3 = 5;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 95:
iVar3 = 5;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
}
switch (iParam0)
{
case 96:
iVar3 = 6;
iVar4 = 0;
iVar1 = 2485;
break;
case 97:
iVar3 = 6;
iVar4 = 1;
iVar1 = 535;
break;
case 98:
iVar3 = 6;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 99:
iVar3 = 6;
iVar4 = 3;
iVar1 = 2945;
break;
case 100:
iVar3 = 6;
iVar4 = 4;
iVar1 = 3080;
break;
case 101:
iVar3 = 6;
iVar4 = 5;
iVar1 = 2990;
break;
case 102:
iVar3 = 6;
iVar4 = 6;
iVar1 = 3750;
break;
case 103:
iVar3 = 6;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 104:
iVar3 = 6;
iVar4 = 8;
iVar1 = 515;
break;
case 105:
iVar3 = 6;
iVar4 = 9;
iVar1 = 530;
break;
case 106:
iVar3 = 6;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 107:
iVar3 = 6;
iVar4 = 11;
iVar1 = 2810;
break;
case 108:
iVar3 = 7;
iVar4 = 0;
iVar1 = 150;
break;
case 109:
iVar3 = 7;
iVar4 = 1;
iVar1 = 155;
break;
case 110:
iVar3 = 7;
iVar4 = 2;
iVar1 = 320;
break;
case 111:
iVar3 = 7;
iVar4 = 3;
iVar1 = 140;
break;
case 112:
iVar3 = 7;
iVar4 = 4;
iVar1 = 150;
break;
case 113:
iVar3 = 7;
iVar4 = 5;
iVar1 = 145;
break;
case 114:
iVar3 = 7;
iVar4 = 6;
iVar1 = 150;
break;
case 115:
iVar3 = 7;
iVar4 = 7;
iVar1 = 140;
break;
case 116:
iVar3 = 7;
iVar4 = 8;
iVar1 = 135;
break;
case 117:
iVar3 = 7;
iVar4 = 9;
iVar1 = 130;
break;
case 118:
iVar3 = 7;
iVar4 = 10;
iVar1 = 130;
break;
case 119:
iVar3 = 7;
iVar4 = 11;
iVar1 = 150;
break;
case 120:
iVar3 = 7;
iVar4 = 12;
iVar1 = 145;
break;
case 121:
iVar3 = 7;
iVar4 = 13;
iVar1 = 740;
break;
case 122:
iVar3 = 7;
iVar4 = 14;
iVar1 = 790;
break;
case 123:
iVar3 = 7;
iVar4 = 15;
iVar1 = 130;
break;
}
switch (iParam0)
{
case 124:
iVar3 = 8;
iVar4 = 0;
iVar1 = 45;
break;
case 125:
iVar3 = 8;
iVar4 = 1;
iVar1 = 0;
bVar0 = true;
break;
case 126:
iVar3 = 8;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 127:
iVar3 = 8;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 128:
iVar3 = 8;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 129:
iVar3 = 8;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 130:
iVar3 = 8;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 131:
iVar3 = 8;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 132:
iVar3 = 8;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 133:
iVar3 = 8;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 134:
iVar3 = 8;
iVar4 = 10;
iVar1 = 65;
break;
case 135:
iVar3 = 8;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 136:
iVar3 = 8;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 137:
iVar3 = 8;
iVar4 = 13;
iVar1 = 40;
break;
case 138:
iVar3 = 8;
iVar4 = 14;
iVar1 = 45;
break;
case 139:
iVar3 = 8;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
case 140:
iVar3 = 9;
iVar4 = 0;
iVar1 = 265;
break;
case 141:
iVar3 = 9;
iVar4 = 1;
iVar1 = 340;
break;
case 142:
iVar3 = 9;
iVar4 = 2;
iVar1 = 335;
break;
case 143:
iVar3 = 9;
iVar4 = 3;
iVar1 = 330;
break;
case 144:
iVar3 = 9;
iVar4 = 4;
iVar1 = 345;
break;
case 145:
iVar3 = 9;
iVar4 = 5;
iVar1 = 550;
break;
case 146:
iVar3 = 9;
iVar4 = 6;
iVar1 = 340;
break;
case 147:
iVar3 = 9;
iVar4 = 7;
iVar1 = 295;
break;
case 148:
iVar3 = 9;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 149:
iVar3 = 9;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 150:
iVar3 = 9;
iVar4 = 10;
iVar1 = 545;
break;
case 151:
iVar3 = 9;
iVar4 = 11;
iVar1 = 345;
break;
case 152:
iVar3 = 9;
iVar4 = 12;
iVar1 = 315;
break;
case 153:
iVar3 = 9;
iVar4 = 13;
iVar1 = 520;
break;
case 154:
iVar3 = 9;
iVar4 = 14;
iVar1 = 325;
break;
case 155:
iVar3 = 9;
iVar4 = 15;
iVar1 = 330;
break;
}
switch (iParam0)
{
case 156:
iVar3 = 10;
iVar4 = 0;
iVar1 = 505;
break;
case 157:
iVar3 = 10;
iVar4 = 1;
iVar1 = 470;
break;
case 158:
iVar3 = 10;
iVar4 = 2;
iVar1 = 475;
break;
case 159:
iVar3 = 10;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 160:
iVar3 = 10;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 161:
iVar3 = 10;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 162:
iVar3 = 10;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 163:
iVar3 = 10;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 164:
iVar3 = 10;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 165:
iVar3 = 10;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 166:
iVar3 = 10;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 167:
iVar3 = 10;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 168:
iVar3 = 10;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 169:
iVar3 = 10;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 170:
iVar3 = 10;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 171:
iVar3 = 10;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
case 172:
iVar3 = 11;
iVar4 = 0;
iVar1 = 120;
break;
case 173:
iVar3 = 11;
iVar4 = 1;
iVar1 = 360;
break;
case 174:
iVar3 = 11;
iVar4 = 2;
iVar1 = 0;
bVar0 = true;
break;
case 175:
iVar3 = 11;
iVar4 = 3;
iVar1 = 0;
bVar0 = true;
break;
case 176:
iVar3 = 11;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 177:
iVar3 = 11;
iVar4 = 5;
iVar1 = 0;
bVar0 = true;
break;
case 178:
iVar3 = 11;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 179:
iVar3 = 11;
iVar4 = 7;
iVar1 = 90;
break;
case 180:
iVar3 = 11;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 181:
iVar3 = 11;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 182:
iVar3 = 11;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 183:
iVar3 = 11;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 184:
iVar3 = 11;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 185:
iVar3 = 11;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 186:
iVar3 = 11;
iVar4 = 14;
iVar1 = 2450;
break;
case 187:
iVar3 = 11;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
}
switch (iParam0)
{
case 188:
iVar3 = 12;
iVar4 = 0;
iVar1 = 420;
break;
case 189:
iVar3 = 12;
iVar4 = 1;
iVar1 = 415;
break;
case 190:
iVar3 = 12;
iVar4 = 2;
iVar1 = 695;
break;
case 191:
iVar3 = 12;
iVar4 = 3;
iVar1 = 385;
break;
case 192:
iVar3 = 12;
iVar4 = 4;
iVar1 = 330;
break;
case 193:
iVar3 = 12;
iVar4 = 5;
iVar1 = 345;
break;
case 194:
iVar3 = 12;
iVar4 = 6;
iVar1 = 340;
break;
case 195:
iVar3 = 12;
iVar4 = 7;
iVar1 = 450;
break;
case 196:
iVar3 = 12;
iVar4 = 8;
iVar1 = 295;
break;
case 197:
iVar3 = 12;
iVar4 = 9;
iVar1 = 340;
break;
case 198:
iVar3 = 12;
iVar4 = 10;
iVar1 = 1060;
break;
case 199:
iVar3 = 12;
iVar4 = 11;
iVar1 = 1040;
break;
case 200:
iVar3 = 12;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 201:
iVar3 = 12;
iVar4 = 13;
iVar1 = 0;
bVar0 = true;
break;
case 202:
iVar3 = 12;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 203:
iVar3 = 12;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
case 204:
iVar3 = 13;
iVar4 = 0;
iVar1 = 420;
break;
case 205:
iVar3 = 13;
iVar4 = 1;
iVar1 = 415;
break;
case 206:
iVar3 = 13;
iVar4 = 2;
iVar1 = 680;
break;
case 207:
iVar3 = 13;
iVar4 = 3;
iVar1 = 385;
break;
case 208:
iVar3 = 13;
iVar4 = 4;
iVar1 = 0;
bVar0 = true;
break;
case 209:
iVar3 = 13;
iVar4 = 5;
iVar1 = 345;
break;
case 210:
iVar3 = 13;
iVar4 = 6;
iVar1 = 0;
bVar0 = true;
break;
case 211:
iVar3 = 13;
iVar4 = 7;
iVar1 = 0;
bVar0 = true;
break;
case 212:
iVar3 = 13;
iVar4 = 8;
iVar1 = 0;
bVar0 = true;
break;
case 213:
iVar3 = 13;
iVar4 = 9;
iVar1 = 0;
bVar0 = true;
break;
case 214:
iVar3 = 13;
iVar4 = 10;
iVar1 = 0;
bVar0 = true;
break;
case 215:
iVar3 = 13;
iVar4 = 11;
iVar1 = 0;
bVar0 = true;
break;
case 216:
iVar3 = 13;
iVar4 = 12;
iVar1 = 0;
bVar0 = true;
break;
case 217:
iVar3 = 13;
iVar4 = 13;
iVar1 = 1065;
break;
case 218:
iVar3 = 13;
iVar4 = 14;
iVar1 = 0;
bVar0 = true;
break;
case 219:
iVar3 = 13;
iVar4 = 15;
iVar1 = 0;
bVar0 = true;
break;
}
switch (iParam0)
{
case 220:
iVar3 = 14;
iVar4 = 0;
iVar1 = 420;
break;
case 221:
iVar3 = 14;
iVar4 = 1;
iVar1 = 415;
break;
case 222:
iVar3 = 14;
iVar4 = 2;
iVar1 = 440;
break;
case 223:
iVar3 = 14;
iVar4 = 3;
iVar1 = 385;
break;
case 224:
iVar3 = 14;
iVar4 = 4;
iVar1 = 330;
break;
case 225:
iVar3 = 14;
iVar4 = 5;
iVar1 = 445;
break;
case 226:
iVar3 = 14;
iVar4 = 6;
iVar1 = 340;
break;
case 227:
iVar3 = 14;
iVar4 = 7;
iVar1 = 440;
break;
case 228:
iVar3 = 14;
iVar4 = 8;
iVar1 = 295;
break;
case 229:
iVar3 = 14;
iVar4 = 9;
iVar1 = 340;
break;
case 230:
iVar3 = 14;
iVar4 = 10;
iVar1 = 325;
break;
case 231:
iVar3 = 14;
iVar4 = 11;
iVar1 = 435;
break;
case 232:
iVar3 = 14;
iVar4 = 12;
iVar1 = 445;
break;
case 233:
iVar3 = 14;
iVar4 = 13;
iVar1 = 440;
break;
case 234:
iVar3 = 14;
iVar4 = 14;
iVar1 = 325;
break;
case 235:
iVar3 = 14;
iVar4 = 15;
iVar1 = 325;
break;
case 236:
iVar3 = 15;
iVar4 = 0;
break;
}
StringCopy(&Var2, "U_FMM_", 16);
StringIntConCat(&Var2, iVar3, 16);
StringConCat(&Var2, "_", 16);
StringIntConCat(&Var2, iVar4, 16);
if (iParam0 == 23)
{
if (func_441(89, -1))
{
StringCopy(&Var2, "REW_RS", 16);
iVar1 = round(((to_float(1250) * Global_262145.f_2979) * Global_287780.f_16));
}
else
{
iVar1 = round(((to_float(45) * Global_262145.f_432[23]) * Global_287780.f_16));
}
}
else if (iParam0 == 17)
{
StringCopy(&Var2, "REW_LSB", 16);
iVar1 = round(((to_float(450) * Global_262145.f_2978) * Global_287780.f_16));
}
else if (iParam0 == 28)
{
if (func_441(87, -1))
{
StringCopy(&Var2, "REW_REDSK", 16);
iVar1 = round(((to_float(500) * Global_262145.f_2977) * Global_287780.f_16));
}
else
{
iVar1 = round(((to_float(55) * Global_262145.f_432[28]) * Global_287780.f_16));
}
}
else
{
iVar8 = iParam0;
if (iVar8 >= 0 && iVar8 < 237)
{
iVar1 = round(((to_float(iVar1) * Global_262145.f_432[iVar8]) * Global_287780.f_16));
}
}
if (iParam0 >= 237)
{
Global_71017[0 /*14*/].f_5 = 3;
func_164(iVar7, iParam0, 237, iParam1);
if (Global_71017[0 /*14*/].f_7 > 0)
{
Global_71017[0 /*14*/].f_7 = round((to_float(Global_71017[0 /*14*/].f_7) * Global_287780.f_16));
}
}
else
{
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
}
void func_538(int iParam0, int iParam1)
{
bool bVar0;
int iVar1;
struct<2> Var2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
bVar0 = false;
iVar1 = 10;
iVar3 = 0;
iVar4 = 0;
iVar5 = -1;
iVar6 = 2;
iVar7 = 2;
switch (iParam0)
{
case 0:
iVar3 = 0;
iVar4 = 0;
iVar1 = 500;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[0]));
break;
case 1:
iVar3 = 1;
iVar4 = 0;
iVar1 = 190;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[1]));
break;
case 2:
iVar3 = 1;
iVar4 = 1;
iVar1 = 185;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[2]));
break;
case 3:
iVar3 = 1;
iVar4 = 2;
iVar1 = 180;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[3]));
break;
case 4:
iVar3 = 1;
iVar4 = 3;
iVar1 = 175;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[4]));
break;
case 5:
iVar3 = 1;
iVar4 = 4;
iVar1 = 170;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[5]));
break;
case 6:
iVar3 = 1;
iVar4 = 5;
iVar1 = 0;
break;
case 7:
iVar3 = 2;
iVar4 = 0;
iVar1 = 580;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[6]));
break;
case 8:
iVar3 = 2;
iVar4 = 1;
iVar1 = 575;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[7]));
break;
case 9:
iVar3 = 2;
iVar4 = 2;
iVar1 = 570;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[8]));
break;
case 10:
iVar3 = 2;
iVar4 = 3;
iVar1 = 565;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[9]));
break;
case 11:
iVar3 = 2;
iVar4 = 4;
iVar1 = 560;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[10]));
break;
case 12:
iVar3 = 2;
iVar4 = 5;
iVar1 = 0;
break;
case 13:
iVar3 = 3;
iVar4 = 0;
iVar1 = 1100;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[11]));
break;
case 14:
iVar3 = 3;
iVar4 = 1;
iVar1 = 1095;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[12]));
break;
case 15:
iVar3 = 3;
iVar4 = 2;
iVar1 = 1090;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[13]));
break;
case 16:
iVar3 = 3;
iVar4 = 3;
iVar1 = 1085;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[14]));
break;
case 17:
iVar3 = 3;
iVar4 = 4;
iVar1 = 1080;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[15]));
break;
case 18:
iVar3 = 3;
iVar4 = 5;
iVar1 = 0;
break;
case 19:
iVar3 = 4;
iVar4 = 0;
iVar1 = 520;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[16]));
break;
case 20:
iVar3 = 4;
iVar4 = 1;
iVar1 = 515;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[17]));
break;
case 21:
iVar3 = 4;
iVar4 = 2;
iVar1 = 510;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[18]));
break;
case 22:
iVar3 = 4;
iVar4 = 3;
iVar1 = 505;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[19]));
break;
case 23:
iVar3 = 4;
iVar4 = 4;
iVar1 = 500;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[20]));
break;
case 24:
iVar3 = 4;
iVar4 = 5;
iVar1 = 0;
break;
case 25:
iVar3 = 4;
iVar4 = 6;
iVar1 = 0;
break;
case 26:
iVar3 = 5;
iVar4 = 0;
iVar1 = 295;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[21]));
break;
case 27:
iVar3 = 5;
iVar4 = 1;
iVar1 = 290;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[22]));
break;
case 28:
iVar3 = 5;
iVar4 = 2;
iVar1 = 285;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[23]));
break;
case 29:
iVar3 = 5;
iVar4 = 3;
iVar1 = 280;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[24]));
break;
case 30:
iVar3 = 5;
iVar4 = 4;
iVar1 = 275;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[25]));
break;
case 31:
iVar3 = 5;
iVar4 = 5;
iVar1 = 0;
break;
case 32:
iVar3 = 6;
iVar4 = 0;
iVar1 = 950;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[26]));
break;
case 33:
iVar3 = 6;
iVar4 = 1;
iVar1 = 945;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[27]));
break;
case 34:
iVar3 = 6;
iVar4 = 2;
iVar1 = 940;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[28]));
break;
case 35:
iVar3 = 6;
iVar4 = 3;
iVar1 = 935;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[29]));
break;
case 36:
iVar3 = 6;
iVar4 = 4;
iVar1 = 930;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[30]));
break;
case 37:
iVar3 = 6;
iVar4 = 5;
iVar1 = 0;
break;
case 38:
iVar3 = 7;
iVar4 = 0;
iVar1 = 440;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[31]));
break;
case 39:
iVar3 = 7;
iVar4 = 1;
iVar1 = 435;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[32]));
break;
case 40:
iVar3 = 7;
iVar4 = 2;
iVar1 = 430;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[33]));
break;
case 41:
iVar3 = 7;
iVar4 = 3;
iVar1 = 425;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[34]));
break;
case 42:
iVar3 = 7;
iVar4 = 4;
iVar1 = 420;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[35]));
break;
case 43:
iVar3 = 7;
iVar4 = 5;
iVar1 = 0;
break;
case 44:
iVar3 = 7;
iVar4 = 6;
iVar1 = 0;
break;
case 45:
iVar3 = 8;
iVar4 = 0;
iVar1 = 1150;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[36]));
break;
case 46:
iVar3 = 8;
iVar4 = 1;
iVar1 = 1145;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[37]));
break;
case 47:
iVar3 = 8;
iVar4 = 2;
iVar1 = 1140;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[38]));
break;
case 48:
iVar3 = 8;
iVar4 = 3;
iVar1 = 1135;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[39]));
break;
case 49:
iVar3 = 8;
iVar4 = 4;
iVar1 = 1130;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[40]));
break;
case 50:
iVar3 = 9;
iVar4 = 0;
iVar1 = 395;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[41]));
break;
case 51:
iVar3 = 9;
iVar4 = 1;
iVar1 = 390;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[42]));
break;
case 52:
iVar3 = 9;
iVar4 = 2;
iVar1 = 385;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[43]));
break;
case 53:
iVar3 = 9;
iVar4 = 3;
iVar1 = 380;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[44]));
break;
case 54:
iVar3 = 9;
iVar4 = 4;
iVar1 = 375;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[45]));
break;
case 55:
iVar3 = 9;
iVar4 = 5;
iVar1 = 0;
break;
case 56:
iVar3 = 9;
iVar4 = 6;
iVar1 = 0;
break;
case 57:
iVar3 = 10;
iVar4 = 0;
iVar1 = 500;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[46]));
break;
case 58:
iVar3 = 10;
iVar4 = 1;
iVar1 = 495;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[47]));
break;
case 59:
iVar3 = 10;
iVar4 = 2;
iVar1 = 490;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[48]));
break;
case 60:
iVar3 = 10;
iVar4 = 3;
iVar1 = 485;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[49]));
break;
case 61:
iVar3 = 10;
iVar4 = 4;
iVar1 = 480;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[50]));
break;
case 62:
iVar3 = 10;
iVar4 = 5;
iVar1 = 0;
break;
case 63:
iVar3 = 11;
iVar4 = 0;
iVar1 = 1050;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[51]));
break;
case 64:
iVar3 = 11;
iVar4 = 1;
iVar1 = 1045;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[52]));
break;
case 65:
iVar3 = 11;
iVar4 = 2;
iVar1 = 1040;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[53]));
break;
case 66:
iVar3 = 11;
iVar4 = 3;
iVar1 = 1035;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[54]));
break;
case 67:
iVar3 = 11;
iVar4 = 4;
iVar1 = 1030;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[55]));
break;
case 68:
iVar3 = 11;
iVar4 = 5;
iVar1 = 0;
break;
case 69:
iVar3 = 12;
iVar4 = 0;
iVar1 = 550;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[56]));
break;
case 70:
iVar3 = 12;
iVar4 = 1;
iVar1 = 545;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[57]));
break;
case 71:
iVar3 = 12;
iVar4 = 2;
iVar1 = 540;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[58]));
break;
case 72:
iVar3 = 12;
iVar4 = 3;
iVar1 = 535;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[59]));
break;
case 73:
iVar3 = 12;
iVar4 = 4;
iVar1 = 530;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[60]));
break;
case 74:
iVar3 = 13;
iVar4 = 0;
iVar1 = 1200;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[61]));
break;
case 75:
iVar3 = 13;
iVar4 = 1;
iVar1 = 1195;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[62]));
break;
case 76:
iVar3 = 13;
iVar4 = 2;
iVar1 = 1190;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[63]));
break;
case 77:
iVar3 = 13;
iVar4 = 3;
iVar1 = 1185;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[64]));
break;
case 78:
iVar3 = 13;
iVar4 = 4;
iVar1 = 1180;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[65]));
break;
case 79:
iVar3 = 13;
iVar4 = 5;
iVar1 = 0;
break;
case 80:
iVar3 = 14;
iVar4 = 0;
iVar1 = 2000;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[66]));
break;
case 81:
iVar3 = 14;
iVar4 = 1;
iVar1 = 1995;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[67]));
break;
case 82:
iVar3 = 14;
iVar4 = 2;
iVar1 = 1990;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[68]));
break;
case 83:
iVar3 = 14;
iVar4 = 3;
iVar1 = 1985;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[69]));
break;
case 84:
iVar3 = 14;
iVar4 = 4;
iVar1 = 1980;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[70]));
break;
case 85:
iVar3 = 15;
iVar4 = 0;
iVar1 = 475;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[71]));
break;
case 86:
iVar3 = 15;
iVar4 = 1;
iVar1 = 470;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[72]));
break;
case 87:
iVar3 = 15;
iVar4 = 2;
iVar1 = 465;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[73]));
break;
case 88:
iVar3 = 15;
iVar4 = 3;
iVar1 = 460;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[74]));
break;
case 89:
iVar3 = 15;
iVar4 = 4;
iVar1 = 455;
iVar1 = round((to_float(iVar1) * Global_262145.f_2532[75]));
break;
case 90:
iVar3 = 15;
iVar4 = 5;
iVar1 = 0;
break;
default:
Global_71017[0 /*14*/].f_5 = 3;
func_164(iVar7, iParam0, 91, iParam1);
return;
break;
}
StringCopy(&Var2, "H_FMM_", 16);
StringIntConCat(&Var2, iVar3, 16);
StringConCat(&Var2, "_", 16);
StringIntConCat(&Var2, iVar4, 16);
func_158(&(Global_71017[0 /*14*/]), iVar7, iParam0, &Var2, iVar3, iVar4, iVar1, bVar0, iVar5, iVar6, 0);
}
int func_539(int iParam0)
{
if (Global_95684)
{
return func_540(iParam0);
}
switch (iParam0)
{
case 0:
return 0;
break;
case 1:
return 148;
break;
case 7:
return 149;
break;
case 13:
return 150;
break;
case 18:
return 151;
break;
case 24:
return 152;
break;
case 30:
return 153;
break;
case 35:
return 154;
break;
case 41:
return 155;
break;
case 47:
return 156;
break;
case 53:
return 157;
break;
case 60:
return 158;
break;
case 67:
return 159;
break;
case 73:
return 160;
break;
case 79:
return 161;
break;
case 85:
return 162;
break;
case 92:
return 163;
break;
case 97:
return 164;
break;
case 102:
return 165;
break;
case 108:
return 166;
break;
case 113:
return 167;
break;
case 118:
return 168;
break;
case 123:
return 169;
break;
case 128:
return 170;
break;
case 134:
return 171;
break;
case 135:
return 172;
break;
case 136:
return 173;
break;
case 137:
return 174;
break;
case 138:
return 175;
break;
case 139:
return 176;
break;
case 140:
return 177;
break;
case 141:
return 178;
break;
case 142:
return 179;
break;
case 143:
return 180;
break;
case 144:
return 181;
break;
case 145:
return 182;
break;
case 146:
return 183;
break;
case 147:
return 184;
break;
}
return iParam0;
}
int func_540(int iParam0)
{
if (iParam0 == 0)
{
return 0;
}
else if (iParam0 == 1)
{
return func_133(joaat("mp_f_freemode_01"), 1483333387, 2, 4);
}
else if (iParam0 == 7)
{
return func_133(joaat("mp_f_freemode_01"), 1797860035, 2, 4);
}
else if (iParam0 == 13)
{
return func_133(joaat("mp_f_freemode_01"), 2003121316, 2, 4);
}
else if (iParam0 == 18)
{
return func_133(joaat("mp_f_freemode_01"), -376063587, 2, 4);
}
else if (iParam0 == 24)
{
return func_133(joaat("mp_f_freemode_01"), 1460588214, 2, 4);
}
else if (iParam0 == 30)
{
return func_133(joaat("mp_f_freemode_01"), 1686262221, 2, 4);
}
else if (iParam0 == 35)
{
return func_133(joaat("mp_f_freemode_01"), -2020584438, 2, 4);
}
else if (iParam0 == 41)
{
return func_133(joaat("mp_f_freemode_01"), 47488331, 2, 4);
}
else if (iParam0 == 47)
{
return func_133(joaat("mp_f_freemode_01"), -806150438, 2, 4);
}
else if (iParam0 == 53)
{
return func_133(joaat("mp_f_freemode_01"), -1075423680, 2, 4);
}
else if (iParam0 == 60)
{
return func_133(joaat("mp_f_freemode_01"), -1196530583, 2, 4);
}
else if (iParam0 == 67)
{
return func_133(joaat("mp_f_freemode_01"), -11455216, 2, 4);
}
else if (iParam0 == 73)
{
return func_133(joaat("mp_f_freemode_01"), -1209867165, 2, 4);
}
else if (iParam0 == 79)
{
return func_133(joaat("mp_f_freemode_01"), 1420404654, 2, 4);
}
else if (iParam0 == 85)
{
return func_133(joaat("mp_f_freemode_01"), -280963593, 2, 4);
}
else if (iParam0 == func_133(joaat("mp_f_freemode_01"), -1238992735, 2, 4))
{
return func_133(joaat("mp_f_freemode_01"), -1799420756, 2, 4);
}
else if (iParam0 == func_133(joaat("mp_f_freemode_01"), 1389867525, 2, 4))
{
return func_133(joaat("mp_f_freemode_01"), 256274500, 2, 4);
}
else if (iParam0 == func_133(joaat("mp_f_freemode_01"), 1855226196, 2, 4))
{
return func_133(joaat("mp_f_freemode_01"), 1917322864, 2, 4);
}
else if (iParam0 == func_133(joaat("mp_f_freemode_01"), -663797501, 2, 4))
{
return func_133(joaat("mp_f_freemode_01"), 1210948031, 2, 4);
}
else if (iParam0 == func_133(joaat("mp_f_freemode_01"), -375526080, 2, 4))
{
return func_133(joaat("mp_f_freemode_01"), 533702594, 2, 4);
}
else if (iParam0 == func_133(joaat("mp_f_freemode_01"), 1052499595, 2, 4))
{
return func_133(joaat("mp_f_freemode_01"), -183005522, 2, 4);
}
else if (iParam0 == func_133(joaat("mp_f_freemode_01"), 1245050198, 2, 4))
{
return func_133(joaat("mp_f_freemode_01"), -43404913, 2, 4);
}
else if (iParam0 == func_133(joaat("mp_f_freemode_01"), 845182355, 2, 4))
{
return func_133(joaat("mp_f_freemode_01"), 32192007, 2, 4);
}
else if (iParam0 == func_133(joaat("mp_f_freemode_01"), -323814855, 2, 4))
{
return func_133(joaat("mp_f_freemode_01"), 295747077, 2, 4);
}
else if (iParam0 == func_133(joaat("mp_f_freemode_01"), -338245878, 2, 4))
{
return func_133(joaat("mp_f_freemode_01"), 1626639084, 2, 4);
}
else if (iParam0 == func_133(joaat("mp_f_freemode_01"), -1635534722, 2, 4))
{
return func_133(joaat("mp_f_freemode_01"), -1999787805, 2, 4);
}
else if (iParam0 == func_133(joaat("mp_f_freemode_01"), 661580756, 2, 4))
{
return func_133(joaat("mp_f_freemode_01"), 1354191768, 2, 4);
}
else if (iParam0 == func_133(joaat("mp_f_freemode_01"), -1254538285, 2, 4))
{
return func_133(joaat("mp_f_freemode_01"), 543190161, 2, 4);
}
else if (iParam0 == func_133(joaat("mp_f_freemode_01"), 1962635659, 2, 4))
{
return func_133(joaat("mp_f_freemode_01"), 615601747, 2, 4);
}
else if (iParam0 == func_133(joaat("mp_f_freemode_01"), -1365658503, 2, 4))
{
return func_133(joaat("mp_f_freemode_01"), 1811042168, 2, 4);
}
else if (iParam0 == func_133(joaat("mp_f_freemode_01"), -1054284371, 2, 4))
{
return func_133(joaat("mp_f_freemode_01"), 782790520, 2, 4);
}
else if (iParam0 == func_133(joaat("mp_f_freemode_01"), -1453823309, 2, 4))
{
return func_133(joaat("mp_f_freemode_01"), 57454374, 2, 4);
}
else if (iParam0 == func_133(joaat("mp_f_freemode_01"), 1000894112, 2, 4))
{
return func_133(joaat("mp_f_freemode_01"), 1070569288, 2, 4);
}
else if (iParam0 == func_133(joaat("mp_f_freemode_01"), -520312819, 2, 4))
{
return func_133(joaat("mp_f_freemode_01"), 606322920, 2, 4);
}
else if (iParam0 == func_133(joaat("mp_f_freemode_01"), 2114158736, 2, 4))
{
return func_133(joaat("mp_f_freemode_01"), -1731161531, 2, 4);
}
else if (iParam0 == func_133(joaat("mp_f_freemode_01"), 1149945242, 2, 4))
{
return func_133(joaat("mp_f_freemode_01"), 858313904, 2, 4);
}
else if (iParam0 == func_133(joaat("mp_f_freemode_01"), -341963269, 2, 4))
{
return func_133(joaat("mp_f_freemode_01"), -1746148370, 2, 4);
}
return iParam0;
}
int func_541(int iParam0)
{
if (Global_95684)
{
return func_542(iParam0);
}
switch (iParam0)
{
case 0:
return 0;
break;
case 1:
return 140;
break;
case 7:
return 141;
break;
case 13:
return 142;
break;
case 19:
return 143;
break;
case 26:
return 144;
break;
case 32:
return 145;
break;
case 38:
return 146;
break;
case 45:
return 147;
break;
case 50:
return 148;
break;
case 57:
return 149;
break;
case 63:
return 150;
break;
case 69:
return 151;
break;
case 74:
return 152;
break;
case 80:
return 153;
break;
case 85:
return 154;
break;
case 91:
return 155;
break;
case 96:
return 156;
break;
case 101:
return 157;
break;
case 106:
return 158;
break;
case 111:
return 159;
break;
case 116:
return 160;
break;
case 121:
return 161;
break;
case 126:
return 126;
break;
case 127:
return 162;
break;
case 128:
return 163;
break;
case 129:
return 164;
break;
case 130:
return 165;
break;
case 131:
return 166;
break;
case 132:
return 167;
break;
case 133:
return 168;
break;
case 134:
return 169;
break;
case 135:
return 170;
break;
case 136:
return 171;
break;
case 137:
return 172;
break;
case 138:
return 173;
break;
case 139:
return 174;
break;
}
return iParam0;
}
int func_542(int iParam0)
{
if (iParam0 == 0)
{
return 0;
}
else if (iParam0 == 1)
{
return func_133(joaat("mp_m_freemode_01"), -1281213073, 2, 3);
}
else if (iParam0 == 7)
{
return func_133(joaat("mp_m_freemode_01"), 121077921, 2, 3);
}
else if (iParam0 == 13)
{
return func_133(joaat("mp_m_freemode_01"), 1799320764, 2, 3);
}
else if (iParam0 == 19)
{
return func_133(joaat("mp_m_freemode_01"), -31208692, 2, 3);
}
else if (iParam0 == 26)
{
return func_133(joaat("mp_m_freemode_01"), 101330974, 2, 3);
}
else if (iParam0 == 32)
{
return func_133(joaat("mp_m_freemode_01"), -1513740851, 2, 3);
}
else if (iParam0 == 38)
{
return func_133(joaat("mp_m_freemode_01"), -199384089, 2, 3);
}
else if (iParam0 == 45)
{
return func_133(joaat("mp_m_freemode_01"), -618065583, 2, 3);
}
else if (iParam0 == 50)
{
return func_133(joaat("mp_m_freemode_01"), -1674154183, 2, 3);
}
else if (iParam0 == 57)
{
return func_133(joaat("mp_m_freemode_01"), -1864723524, 2, 3);
}
else if (iParam0 == 63)
{
return func_133(joaat("mp_m_freemode_01"), -1854764275, 2, 3);
}
else if (iParam0 == 69)
{
return func_133(joaat("mp_m_freemode_01"), 1389427312, 2, 3);
}
else if (iParam0 == 74)
{
return func_133(joaat("mp_m_freemode_01"), 1842034654, 2, 3);
}
else if (iParam0 == 80)
{
return func_133(joaat("mp_m_freemode_01"), -1904997581, 2, 3);
}
else if (iParam0 == 85)
{
return func_133(joaat("mp_m_freemode_01"), 1875462851, 2, 3);
}
else if (iParam0 == func_133(joaat("mp_m_freemode_01"), -1983429828, 2, 3))
{
return func_133(joaat("mp_m_freemode_01"), 1732051928, 2, 3);
}
else if (iParam0 == func_133(joaat("mp_m_freemode_01"), -457639650, 2, 3))
{
return func_133(joaat("mp_m_freemode_01"), -905050483, 2, 3);
}
else if (iParam0 == func_133(joaat("mp_m_freemode_01"), -1625493211, 2, 3))
{
return func_133(joaat("mp_m_freemode_01"), 438313231, 2, 3);
}
else if (iParam0 == func_133(joaat("mp_m_freemode_01"), -1168328595, 2, 3))
{
return func_133(joaat("mp_m_freemode_01"), 743294919, 2, 3);
}
else if (iParam0 == func_133(joaat("mp_m_freemode_01"), -1903246936, 2, 3))
{
return func_133(joaat("mp_m_freemode_01"), -1520333437, 2, 3);
}
else if (iParam0 == func_133(joaat("mp_m_freemode_01"), 745771948, 2, 3))
{
return func_133(joaat("mp_m_freemode_01"), 645080588, 2, 3);
}
else if (iParam0 == func_133(joaat("mp_m_freemode_01"), -1175339092, 2, 3))
{
return func_133(joaat("mp_m_freemode_01"), 1501542503, 2, 3);
}
else if (iParam0 == func_133(joaat("mp_m_freemode_01"), -763800270, 2, 3))
{
return func_133(joaat("mp_m_freemode_01"), 1849088284, 2, 3);
}
else if (iParam0 == func_133(joaat("mp_m_freemode_01"), 1662337451, 2, 3))
{
return func_133(joaat("mp_m_freemode_01"), -777013793, 2, 3);
}
else if (iParam0 == func_133(joaat("mp_m_freemode_01"), -1199098448, 2, 3))
{
return func_133(joaat("mp_m_freemode_01"), -1191834506, 2, 3);
}
else if (iParam0 == func_133(joaat("mp_m_freemode_01"), -1367601731, 2, 3))
{
return func_133(joaat("mp_m_freemode_01"), 1856835360, 2, 3);
}
else if (iParam0 == func_133(joaat("mp_m_freemode_01"), -870473493, 2, 3))
{
return func_133(joaat("mp_m_freemode_01"), 517044685, 2, 3);
}
else if (iParam0 == func_133(joaat("mp_m_freemode_01"), -41599036, 2, 3))
{
return func_133(joaat("mp_m_freemode_01"), -1913084063, 2, 3);
}
else if (iParam0 == func_133(joaat("mp_m_freemode_01"), -40571845, 2, 3))
{
return func_133(joaat("mp_m_freemode_01"), 954763497, 2, 3);
}
else if (iParam0 == func_133(joaat("mp_m_freemode_01"), -1819210774, 2, 3))
{
return func_133(joaat("mp_m_freemode_01"), 996901182, 2, 3);
}
else if (iParam0 == func_133(joaat("mp_m_freemode_01"), -2062317282, 2, 3))
{
return func_133(joaat("mp_m_freemode_01"), -168331163, 2, 3);
}
else if (iParam0 == func_133(joaat("mp_m_freemode_01"), -1288081108, 2, 3))
{
return func_133(joaat("mp_m_freemode_01"), -463220799, 2, 3);
}
else if (iParam0 == func_133(joaat("mp_m_freemode_01"), -1028559844, 2, 3))
{
return func_133(joaat("mp_m_freemode_01"), 2062117628, 2, 3);
}
else if (iParam0 == func_133(joaat("mp_m_freemode_01"), -2063578436, 2, 3))
{
return func_133(joaat("mp_m_freemode_01"), 263191072, 2, 3);
}
else if (iParam0 == func_133(joaat("mp_m_freemode_01"), 86179491, 2, 3))
{
return func_133(joaat("mp_m_freemode_01"), -832371349, 2, 3);
}
return iParam0;
}
int func_543(int iParam0)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
int iVar4;
if (!unk_0x4915F4759304D5CF(iParam0))
{
if (unk_0x8F474E419F56E48D(iParam0) == joaat("mp_m_freemode_01"))
{
if (unk_0x77065AD41B64E946(iParam0) != func_359() && func_544(unk_0x77065AD41B64E946(iParam0)))
{
return 1;
}
iVar0 = unk_0x774CB20D17C3FF03(iParam0, 11);
if (iVar0 > 15)
{
iVar1 = func_503(iParam0, 11, -1);
if (iVar1 >= 237)
{
iVar2 = func_128(joaat("mp_m_freemode_01"), iVar1, 11, 3);
if (unk_0x4BE6499482BEE1D8(iVar2, 490219883, 0))
{
return 1;
}
else if ((((((((((unk_0x4BE6499482BEE1D8(iVar2, 201427653, 0) || unk_0x4BE6499482BEE1D8(iVar2, 967829025, 0)) || unk_0x4BE6499482BEE1D8(iVar2, -1266557933, 0)) || unk_0x4BE6499482BEE1D8(iVar2, -979468724, 0)) || unk_0x4BE6499482BEE1D8(iVar2, 310055897, 0)) || unk_0x4BE6499482BEE1D8(iVar2, 606713654, 0)) || unk_0x4BE6499482BEE1D8(iVar2, 1831422288, 0)) || unk_0x4BE6499482BEE1D8(iVar2, -838136846, 0)) || unk_0x4BE6499482BEE1D8(iVar2, 655638019, 0)) || unk_0x4BE6499482BEE1D8(iVar2, 83294665, 0)) || unk_0x4BE6499482BEE1D8(iVar2, -697656159, 0))
{
return 1;
}
else if (unk_0x4BE6499482BEE1D8(iVar2, 1148412551, 0))
{
return 1;
}
else if (unk_0x4BE6499482BEE1D8(iVar2, -1786447517, 0))
{
return 1;
}
else if (unk_0x4BE6499482BEE1D8(iVar2, 1148412551, 0))
{
return 1;
}
else if (unk_0x4BE6499482BEE1D8(iVar2, -2124629577, 0))
{
return 1;
}
}
}
}
else if (unk_0x8F474E419F56E48D(iParam0) == joaat("mp_f_freemode_01"))
{
if (unk_0x77065AD41B64E946(iParam0) != func_359() && func_544(unk_0x77065AD41B64E946(iParam0)))
{
return 1;
}
iVar0 = unk_0x774CB20D17C3FF03(iParam0, 11);
if (iVar0 > 15)
{
iVar3 = func_503(iParam0, 11, -1);
if (iVar3 >= 237)
{
iVar4 = func_128(joaat("mp_f_freemode_01"), iVar3, 11, 4);
if (unk_0x4BE6499482BEE1D8(iVar4, 490219883, 0))
{
return 1;
}
else if ((((((((((unk_0x4BE6499482BEE1D8(iVar4, 201427653, 0) || unk_0x4BE6499482BEE1D8(iVar4, 967829025, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -1266557933, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -979468724, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 970679185, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 83294665, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 382246252, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -99064836, 0)) || unk_0x4BE6499482BEE1D8(iVar4, 198641529, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -398213037, 0)) || unk_0x4BE6499482BEE1D8(iVar4, -306768813, 0))
{
return 1;
}
else if (unk_0x4BE6499482BEE1D8(iVar4, 1148412551, 0))
{
return 1;
}
else if (unk_0x4BE6499482BEE1D8(iVar4, -1786447517, 0))
{
return 1;
}
else if (unk_0x4BE6499482BEE1D8(iVar4, 1148412551, 0))
{
return 1;
}
else if (unk_0x4BE6499482BEE1D8(iVar4, -2124629577, 0))
{
return 1;
}
}
}
}
}
return 0;
}
bool func_544(int iParam0)
{
return func_545(iParam0, 10);
}
bool func_545(int iParam0, int iParam1)
{
return unk_0x05EFB6A616B6FADE(Global_1625435[iParam0 /*560*/].f_11.f_4, iParam1);
}
void func_546(int iParam0)
{
int iVar0;
iVar0 = 0;
while (iVar0 < 12)
{
Global_106070.f_2355.f_539[iParam0 /*65*/].f_13[iVar0] = 0;
Global_106070.f_2355.f_539[iParam0 /*65*/][iVar0] = 0;
iVar0++;
}
iVar0 = 0;
while (iVar0 < 9)
{
Global_106070.f_2355.f_539[iParam0 /*65*/].f_39[iVar0] = -1;
Global_106070.f_2355.f_539[iParam0 /*65*/].f_49[iVar0] = -1;
iVar0++;
}
switch (iParam0)
{
case 0:
Global_106070.f_2355.f_539[iParam0 /*65*/].f_59 = 0;
break;
case 1:
Global_106070.f_2355.f_539[1 /*65*/].f_13[3] = 8;
Global_106070.f_2355.f_539[1 /*65*/].f_13[4] = 8;
Global_106070.f_2355.f_539[1 /*65*/].f_13[6] = 6;
Global_106070.f_2355.f_539[1 /*65*/].f_13[8] = 14;
Global_106070.f_2355.f_539[1 /*65*/].f_13[2] = 0;
Global_106070.f_2355.f_539[1 /*65*/][2] = 0;
Global_106070.f_2355.f_539[iParam0 /*65*/].f_59 = 0;
break;
case 2:
Global_106070.f_2355.f_539[2 /*65*/].f_13[3] = 0;
Global_106070.f_2355.f_539[2 /*65*/].f_13[4] = 23;
Global_106070.f_2355.f_539[2 /*65*/].f_13[6] = 10;
Global_106070.f_2355.f_539[iParam0 /*65*/].f_59 = 0;
break;
}
Global_106070.f_2355.f_539[iParam0 /*65*/].f_60 = -99;
Global_106070.f_2355.f_539[iParam0 /*65*/].f_61 = 2;
Global_106070.f_2355.f_539[iParam0 /*65*/].f_62 = 0;
Global_106070.f_2355.f_539[iParam0 /*65*/].f_63 = -99;
Global_106070.f_2355.f_539[iParam0 /*65*/].f_64 = 1;
Global_93022[0 /*65*/] = { Global_106070.f_2355.f_539[0 /*65*/] };
Global_93022[1 /*65*/] = { Global_106070.f_2355.f_539[1 /*65*/] };
Global_93022[2 /*65*/] = { Global_106070.f_2355.f_539[2 /*65*/] };
}
void func_547()
{
func_550();
func_548(1);
}
void func_548(bool bParam0)
{
unk_0xBDA379F3B77CF80F(0f);
unk_0xC4B76E16F851F655(0f);
unk_0x7FBDB532BD6CB0B7(0f);
unk_0xC06F936994838086(1);
unk_0xE2F975E1D0159C25(0f);
unk_0x1B5E87701C10854A(1);
unk_0x29F5EC2C1FC86D0C(0);
if (unk_0x2F8EAF18929E1E59("SAFEHOUSE_STONED_MICHAEL"))
{
unk_0x5AD7D03C214BDA88("SAFEHOUSE_STONED_MICHAEL");
}
if (!unk_0x429D45A6C6520026(&Global_37249))
{
if (unk_0x2F8EAF18929E1E59(&Global_37249))
{
unk_0x5AD7D03C214BDA88(&Global_37249);
}
}
if (unk_0x37B568B777BC65F9(Global_37238))
{
if (unk_0x3D3828E711B990EF(Global_37238))
{
unk_0x5B4C55F5FAE423BE(Global_37238, 0f);
unk_0x0F5AD734321B3CBC(Global_37238, 1);
}
}
if (unk_0x5B1F43E517A1588D())
{
unk_0xF3D41ED309762C0D(0);
}
if (bParam0)
{
if (unk_0xDB92474F03E22534() != -1 || unk_0xAB9D24665E5A0F61() != -1)
{
unk_0x11E3FD49051E434D();
}
else if (unk_0x47C3DC461C758C29())
{
unk_0x11E3FD49051E434D();
}
}
Global_37244 = 0f;
StringCopy(&Global_37245, "", 16);
StringCopy(&Global_37249, "", 64);
StringCopy(&Global_37265, "", 16);
func_549();
}
void func_549()
{
Global_37237 = 0;
Global_37238 = 0;
Global_37239 = 0;
Global_37240 = 30000;
Global_37241 = 0f;
Global_37243 = 0f;
Global_37242 = 0f;
Global_37244 = 0f;
StringCopy(&Global_37245, "", 16);
}
void func_550()
{
int iVar0;
int iVar1;
int iVar2;
iVar0 = 0;
iVar1 = 0;
iVar0 = 0;
while (iVar0 < 16)
{
iVar1 = Global_37058[iVar0 /*5*/];
if (!iVar1 == -1)
{
func_552(1, iVar1, 1);
}
iVar0++;
}
iVar2 = 0;
iVar2 = 0;
while (iVar2 < 5)
{
if (Global_37032[iVar2 /*5*/] == 0)
{
func_551(iVar2);
}
iVar2++;
}
}
void func_551(int iParam0)
{
if (iParam0 < 0 || iParam0 >= 5)
{
return;
}
if (!Global_37032[iParam0 /*5*/].f_1 == 0)
{
if (Global_37032[iParam0 /*5*/].f_1 == unk_0xA19140A5C42D8715())
{
Global_37269 = 0;
}
}
Global_37032[iParam0 /*5*/] = 13;
Global_37032[iParam0 /*5*/].f_1 = 0;
Global_37032[iParam0 /*5*/].f_2 = 0;
Global_37032[iParam0 /*5*/].f_3 = 0;
Global_37032[iParam0 /*5*/].f_4 = 0;
Global_37031 = (Global_37031 - 1);
if (Global_37031 < 0)
{
Global_37031 = 0;
}
}
void func_552(int iParam0, int iParam1, int iParam2)
{
func_553(iParam0, iParam1, iParam2, 0, 0, 1);
}
void func_553(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5)
{
int iVar0;
if (iParam0 == -1)
{
return;
}
if (iParam1 == -1)
{
return;
}
if (iParam2 == 6)
{
return;
}
if (func_555(iParam0, iParam1, iParam2))
{
return;
}
iVar0 = func_554();
if (iVar0 == -1)
{
return;
}
Global_37139[iVar0 /*6*/] = iParam0;
Global_37139[iVar0 /*6*/].f_1 = iParam1;
Global_37139[iVar0 /*6*/].f_2 = iParam2;
Global_37139[iVar0 /*6*/].f_3 = iParam3;
Global_37139[iVar0 /*6*/].f_4 = iParam4;
Global_37139[iVar0 /*6*/].f_5 = iParam5;
}
int func_554()
{
int iVar0;
iVar0 = 0;
iVar0 = 0;
while (iVar0 < 16)
{
if (Global_37139[iVar0 /*6*/].f_2 == 6)
{
return iVar0;
}
iVar0++;
}
return -1;
}
int func_555(int iParam0, int iParam1, int iParam2)
{
if (func_556(iParam0, iParam1, iParam2) == -1)
{
return 0;
}
return 1;
}
int func_556(int iParam0, int iParam1, int iParam2)
{
int iVar0;
iVar0 = 0;
iVar0 = 0;
while (iVar0 < 16)
{
if (iParam2 == Global_37139[iVar0 /*6*/].f_2)
{
if (iParam0 == Global_37139[iVar0 /*6*/])
{
if (iParam1 == Global_37139[iVar0 /*6*/].f_1)
{
return iVar0;
}
}
}
iVar0++;
}
return -1;
}
void func_557()
{
if (unk_0x8B1574454E8C2421(joaat("mission_stat_watcher")) > 0)
{
if (func_558())
{
if (Global_56176 && !Global_56175)
{
Global_56176 = 0;
unk_0xE38A3C362F1CFBF3("mission_stat_watcher");
}
}
else
{
unk_0xE38A3C362F1CFBF3("mission_stat_watcher");
}
}
}
int func_558()
{
if (unk_0x8B1574454E8C2421(joaat("mission_stat_watcher")) < 1)
{
return 0;
}
if (!Global_56174)
{
return 0;
}
return Global_56186;
}
int func_559(var uParam0, int iParam1, int iParam2, bool bParam3, int iParam4)
{
int iVar0;
if (iParam1 == 7)
{
return 0;
}
if (!bParam3)
{
if (Global_90805.f_44 == 1)
{
return 2;
}
}
if (iParam1 == 0)
{
if (func_41(0))
{
return 0;
}
Global_36081++;
*uParam0 = Global_36081;
unk_0xEF06BE39D11763FC(unk_0xA6580F898F4E801C(), 0);
Global_17228.f_5 = 0;
if (iParam2 != 5)
{
unk_0xA5DD4141C1E70561(8);
}
Global_36117 = iParam2;
Global_36079 = *uParam0;
Global_36080 = iParam4;
Global_36078 = 0;
return 1;
}
if (*uParam0 != -1)
{
if (Global_36078 > 0)
{
iVar0 = 0;
iVar0 = 0;
while (iVar0 < Global_36078)
{
if (Global_36084[iVar0 /*4*/] == *uParam0)
{
return 2;
}
iVar0++;
}
}
else if (Global_36079 == *uParam0)
{
return 1;
}
*uParam0 = -1;
}
if (*uParam0 == -1)
{
if (!func_42(iParam2))
{
return 0;
}
if (Global_36078 == 8)
{
return 0;
}
Global_36081++;
*uParam0 = Global_36081;
Global_36084[Global_36078 /*4*/] = Global_36081;
Global_36084[Global_36078 /*4*/].f_1 = iParam1;
Global_36084[Global_36078 /*4*/].f_2 = iParam2;
Global_36084[Global_36078 /*4*/].f_3 = 0;
Global_36078++;
if (iParam4 != 0)
{
func_560(uParam0, iParam4);
}
}
return 2;
}
void func_560(var uParam0, int iParam1)
{
int iVar0;
if (Global_36078 == 0)
{
return;
}
if (*uParam0 == -1)
{
return;
}
iVar0 = 0;
iVar0 = 0;
while (iVar0 < Global_36078)
{
if (Global_36084[iVar0 /*4*/] == *uParam0)
{
Global_36084[iVar0 /*4*/].f_3 = iParam1;
}
iVar0++;
}
*uParam0 = -1;
}
bool func_561(int iParam0)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
iVar0 = 0;
iVar1 = 0;
while (iVar1 < 9)
{
iVar2 = func_567(iVar1);
iVar3 = func_566(iVar1);
if ((iVar2 == 3 || iVar2 == 4) && ((iVar3 == 0 || iVar3 == 1) || iVar3 == 3))
{
if (func_562(iParam0, iVar1))
{
iVar0++;
}
}
iVar1++;
}
return iVar0 != 0;
}
int func_562(int iParam0, int iParam1)
{
int iVar0;
int iVar1;
int iVar2;
if (iParam0 == -1 || iParam0 == 94)
{
return 0;
}
iVar0 = Global_84115[iParam0 /*34*/].f_12;
func_564(iParam1, &iVar1, &iVar2);
if (func_563(iVar0, iVar1) && func_563(iVar0, iVar2))
{
return 1;
}
return 0;
}
bool func_563(int iParam0, int iParam1)
{
switch (iParam1)
{
case 19:
return func_25(iParam0, 8);
break;
case 14:
return func_25(iParam0, 16);
break;
case 17:
return func_25(iParam0, 32);
break;
}
return func_67(iParam0, iParam1);
}
int func_564(int iParam0, var uParam1, var uParam2)
{
if (iParam0 != 9 && iParam0 != 10)
{
*uParam1 = func_565(Global_106070.f_18075.f_175[iParam0 /*19*/]);
*uParam2 = func_565(Global_106070.f_18075.f_175[iParam0 /*19*/].f_1);
return 1;
}
return 0;
}
int func_565(int iParam0)
{
switch (iParam0)
{
case 0:
return 0;
break;
case 1:
return 1;
break;
case 2:
return 2;
break;
case 3:
return 19;
break;
case 4:
return 14;
break;
case 5:
return 17;
break;
}
return 145;
}
int func_566(int iParam0)
{
if (iParam0 < 9)
{
return Global_89183[iParam0 /*2*/].f_1;
}
return 0;
}
int func_567(int iParam0)
{
if (iParam0 < 9)
{
return Global_89183[iParam0 /*2*/];
}
return -1;
}
int func_568(int iParam0)
{
int iVar0;
int iVar1;
int iVar2;
bool bVar3;
if (iParam0 == -1)
{
return -1;
}
iVar0 = func_589(iParam0);
if (!iVar0 == -1)
{
return iVar0;
}
iVar1 = 0;
iVar2 = -1;
bVar3 = true;
while (bVar3)
{
if (Global_84079[iVar1 /*5*/] == -1)
{
iVar2 = iVar1;
bVar3 = false;
}
else
{
iVar1++;
if (iVar1 >= 7)
{
bVar3 = false;
}
}
}
if (iVar2 == -1)
{
return -1;
}
Global_84079[iVar2 /*5*/] = iParam0;
return iVar2;
}
void func_569(int iParam0, int iParam1, bool bParam2)
{
if (bParam2)
{
if (func_41(0))
{
func_588(Global_84079[iParam1 /*5*/].f_2);
}
else
{
func_584(Global_84079[iParam1 /*5*/].f_2);
}
}
else
{
func_6(&(Global_84079[iParam1 /*5*/].f_3));
}
func_572();
unk_0x932A1FC570019F52(Global_84115[Global_71474.f_109[iParam0 /*4*/] /*34*/].f_6);
unk_0x932A1FC570019F52(joaat("mission_stat_watcher"));
func_570(iParam0);
unk_0xDB1944D1E5D46A15();
}
void func_570(int iParam0)
{
int iVar0;
if (iParam0 == -1)
{
return;
}
iVar0 = func_589(iParam0);
if (iVar0 == -1)
{
return;
}
func_571(iVar0);
}
void func_571(int iParam0)
{
Global_84079[iParam0 /*5*/] = -1;
Global_84079[iParam0 /*5*/].f_1 = 0;
Global_84079[iParam0 /*5*/].f_2 = -1;
Global_84079[iParam0 /*5*/].f_3 = -1;
Global_84079[iParam0 /*5*/].f_4 = 0;
}
void func_572()
{
func_583();
func_577();
func_94();
func_576();
func_575();
func_574();
Global_93269 = 0;
Global_87502 = -1;
unk_0xFA57C719261AA55D(&(Global_93232.f_20), 17);
Global_93267 = 0;
unk_0xDD63978CC283FA2D(0);
unk_0xD7148FA4D977807B(0);
unk_0xC1D3387D1E48090E(1);
unk_0x4A3FFA36E84DD5F4(1);
unk_0x95DFD5DB6041DFE5(1);
func_573(0);
}
void func_573(int iParam0)
{
if (iParam0 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_93232.f_20), 13);
}
else
{
unk_0xFA57C719261AA55D(&(Global_93232.f_20), 13);
}
}
void func_574()
{
Global_71445 = { 0f, 0f, 0f };
Global_71448 = 0f;
Global_93232.f_21 = 145;
}
void func_575()
{
StringCopy(&Global_71437, "", 16);
StringCopy(&Global_71441, "", 16);
}
void func_576()
{
int iVar0;
iVar0 = 0;
while (iVar0 <= 6)
{
Global_93232.f_22[iVar0] = 0;
iVar0++;
}
}
void func_577()
{
func_578(&Global_99633);
}
void func_578(var uParam0)
{
int iVar0;
int iVar1;
*uParam0 = 145;
func_258(&(uParam0->f_1));
uParam0->f_6 = -1;
uParam0->f_7 = -1;
uParam0->f_8 = 0f;
uParam0->f_2 = 0;
uParam0->f_3 = 0;
uParam0->f_4 = 0;
uParam0->f_5 = 145;
iVar1 = 0;
while (iVar1 < 3)
{
uParam0->f_9[iVar1] = -1;
uParam0->f_13[iVar1] = 0;
uParam0->f_17[iVar1] = 0;
uParam0->f_21[iVar1] = 0;
func_582(&(uParam0->f_25[0 /*295*/][iVar1 /*98*/]));
func_582(&(uParam0->f_25[1 /*295*/][iVar1 /*98*/]));
iVar0 = 0;
while (iVar0 < 12)
{
uParam0->f_616[iVar1 /*65*/][iVar0] = -1;
uParam0->f_616[iVar1 /*65*/].f_13[iVar0] = -1;
uParam0->f_616[iVar1 /*65*/].f_26[iVar0] = -1;
iVar0++;
}
uParam0->f_616[iVar1 /*65*/].f_59 = 0;
uParam0->f_616[iVar1 /*65*/].f_60 = -99;
uParam0->f_616[iVar1 /*65*/].f_61 = 2;
uParam0->f_616[iVar1 /*65*/].f_62 = 0;
uParam0->f_616[iVar1 /*65*/].f_63 = -99;
uParam0->f_616[iVar1 /*65*/].f_64 = 1;
iVar0 = 0;
while (iVar0 < 9)
{
uParam0->f_616[iVar1 /*65*/].f_39[iVar0] = -1;
uParam0->f_616[iVar1 /*65*/].f_49[iVar0] = -1;
iVar0++;
}
iVar0 = 0;
while (iVar0 < 44)
{
uParam0->f_812[iVar1 /*472*/][iVar0 /*5*/].f_1 = 0;
uParam0->f_812[iVar1 /*472*/][iVar0 /*5*/].f_2 = 0;
uParam0->f_812[iVar1 /*472*/][iVar0 /*5*/].f_3 = 0;
uParam0->f_812[iVar1 /*472*/][iVar0 /*5*/].f_4 = 0;
uParam0->f_812[iVar1 /*472*/][iVar0 /*5*/] = 0;
iVar0++;
}
iVar0 = 0;
while (iVar0 < 50)
{
uParam0->f_812[iVar1 /*472*/].f_221[iVar0 /*5*/].f_1 = 0;
uParam0->f_812[iVar1 /*472*/].f_221[iVar0 /*5*/].f_2 = 0;
uParam0->f_812[iVar1 /*472*/].f_221[iVar0 /*5*/].f_3 = 0;
uParam0->f_812[iVar1 /*472*/].f_221[iVar0 /*5*/].f_4 = 0;
uParam0->f_812[iVar1 /*472*/].f_221[iVar0 /*5*/] = 0;
iVar0++;
}
iVar0 = 0;
while (iVar0 < 4)
{
uParam0->f_2229[iVar1 /*32*/][iVar0] = 0;
iVar0++;
}
iVar0 = 0;
while (iVar0 < 10)
{
uParam0->f_2229[iVar1 /*32*/].f_5[iVar0] = 0;
iVar0++;
}
iVar0 = 0;
while (iVar0 < 15)
{
uParam0->f_2229[iVar1 /*32*/].f_16[iVar0] = 0;
iVar0++;
}
uParam0->f_2326[iVar1] = 0;
iVar0 = 0;
while (iVar0 <= 3)
{
uParam0->f_2823[iVar1 /*15*/][iVar0] = 0;
uParam0->f_2823[iVar1 /*15*/].f_5[iVar0] = 0;
uParam0->f_2823[iVar1 /*15*/].f_10[iVar0] = 0;
iVar0++;
}
iVar0 = 0;
while (iVar0 <= 2)
{
uParam0->f_2330[iVar1 /*164*/][iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_4[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_8[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_12[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_16[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_20[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_24[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_28[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_32[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_36[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_40[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_44[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_48[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_52[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_56[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_60[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_64[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_68[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_72[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_76[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_80[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_84[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_88[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_92[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_96[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_100[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_104[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_108[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_112[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_116[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_120[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_124[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_128[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_132[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_136[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_140[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_144[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_148[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_152[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_156[iVar0] = 0;
uParam0->f_2330[iVar1 /*164*/].f_160[iVar0] = 0;
iVar0++;
}
iVar1++;
}
func_581(&(uParam0->f_2869));
func_580(&(uParam0->f_2875));
func_579(&(uParam0->f_2965));
}
void func_579(var uParam0)
{
*uParam0 = -1;
uParam0->f_1 = 0;
uParam0->f_2 = 0;
uParam0->f_3 = 0;
}
void func_580(var uParam0)
{
func_327(&(uParam0->f_12));
*uParam0 = { 0f, 0f, 0f };
uParam0->f_3 = { 0f, 0f, 0f };
uParam0->f_6 = 0f;
uParam0->f_8 = 0;
uParam0->f_9 = 0;
}
void func_581(var uParam0)
{
*uParam0 = { 0f, 0f, 0f };
uParam0->f_3 = 0f;
uParam0->f_4 = 0;
uParam0->f_5 = -1;
}
void func_582(var uParam0)
{
int iVar0;
*uParam0 = 0;
uParam0->f_1 = 0;
uParam0->f_2 = 0f;
uParam0->f_3 = 0;
uParam0->f_4 = 0;
uParam0->f_5 = 0;
uParam0->f_6 = 0;
uParam0->f_7 = 0;
uParam0->f_8 = 0;
uParam0->f_9 = 0;
uParam0->f_10 = 0;
iVar0 = 0;
while (iVar0 <= 11)
{
uParam0->f_11[iVar0] = 0;
iVar0++;
}
uParam0->f_24 = 0;
uParam0->f_25 = 0;
StringCopy(&(uParam0->f_27), "", 16);
iVar0 = 0;
while (iVar0 <= 48)
{
uParam0->f_31[iVar0] = 0;
iVar0++;
}
iVar0 = 0;
while (iVar0 <= 1)
{
uParam0->f_81[iVar0] = 0;
iVar0++;
}
uParam0->f_84 = 0;
uParam0->f_85 = 0;
uParam0->f_86 = 0;
uParam0->f_87 = 0;
uParam0->f_88 = 0;
uParam0->f_89 = 0;
uParam0->f_90 = 0;
uParam0->f_91 = 0;
uParam0->f_93 = 0;
uParam0->f_94 = 0;
uParam0->f_95 = 0;
uParam0->f_92 = 0;
}
void func_583()
{
StringCopy(&Global_96656, "", 32);
func_578(&Global_96664);
}
void func_584(int iParam0)
{
if ((Global_90257 || func_41(0)) && Global_90258 == iParam0)
{
return;
}
if (iParam0 < 0 || iParam0 > 7)
{
return;
}
if (!Global_90260[iParam0 /*17*/])
{
return;
}
if (Global_90260[iParam0 /*17*/].f_9 != 263)
{
func_587(Global_90260[iParam0 /*17*/].f_9, 0, 0);
}
func_585(iParam0);
}
void func_585(int iParam0)
{
if (unk_0x05EFB6A616B6FADE(Global_90260[iParam0 /*17*/].f_10.f_1, 6))
{
if (Global_89173 != 4 && Global_89173 != 5)
{
func_586(Global_90260[iParam0 /*17*/].f_5);
}
}
if (unk_0x05EFB6A616B6FADE(Global_90260[iParam0 /*17*/].f_10.f_1, 7))
{
if (Global_89173 != 4 && Global_89173 != 5)
{
func_586(Global_90260[iParam0 /*17*/].f_5);
}
}
Global_90260[iParam0 /*17*/].f_1 = 0;
Global_90260[iParam0 /*17*/].f_3 = -1;
Global_90260[iParam0 /*17*/].f_4 = 6;
Global_90260[iParam0 /*17*/].f_5 = -1;
Global_90260[iParam0 /*17*/].f_6 = -1;
Global_90260[iParam0 /*17*/].f_7 = -1;
if (Global_90260[iParam0 /*17*/])
{
if (Global_90260[iParam0 /*17*/].f_9 != 263)
{
if (Global_90260[iParam0 /*17*/].f_9 < 0 || Global_90260[iParam0 /*17*/].f_9 >= 263)
{
}
func_587(Global_90260[iParam0 /*17*/].f_9, 0, 0);
}
Global_90260[iParam0 /*17*/].f_9 = 263;
}
Global_90260[iParam0 /*17*/] = 0;
Global_90260[iParam0 /*17*/].f_8 = -1;
unk_0xFA57C719261AA55D(&(Global_90260[iParam0 /*17*/].f_10.f_1), 0);
unk_0xFA57C719261AA55D(&(Global_90260[iParam0 /*17*/].f_10.f_1), 1);
unk_0xFA57C719261AA55D(&(Global_90260[iParam0 /*17*/].f_10.f_1), 2);
unk_0xFA57C719261AA55D(&(Global_90260[iParam0 /*17*/].f_10.f_1), 3);
unk_0xFA57C719261AA55D(&(Global_90260[iParam0 /*17*/].f_10.f_1), 6);
unk_0xFA57C719261AA55D(&(Global_90260[iParam0 /*17*/].f_10.f_1), 7);
unk_0xFA57C719261AA55D(&(Global_90260[iParam0 /*17*/].f_10.f_1), 8);
unk_0xFA57C719261AA55D(&(Global_90260[iParam0 /*17*/].f_10.f_1), 9);
unk_0xFA57C719261AA55D(&(Global_90260[iParam0 /*17*/].f_10.f_1), 10);
unk_0xFA57C719261AA55D(&(Global_90260[iParam0 /*17*/].f_10.f_1), 11);
unk_0xFA57C719261AA55D(&(Global_90260[iParam0 /*17*/].f_10.f_1), 12);
}
void func_586(int iParam0)
{
if (iParam0 >= 94)
{
return;
}
if (Global_89174 != -1)
{
if (Global_89174 != iParam0)
{
return;
}
Global_89174 = -1;
Global_89173 = 0;
Global_89175 = 0;
}
}
void func_587(int iParam0, bool bParam1, bool bParam2)
{
int iVar0;
bool bVar1;
iVar0 = iParam0;
if ((iVar0 < 0 || iVar0 >= 263) || iParam0 == 263)
{
return;
}
if (!bParam2)
{
bVar1 = unk_0x05EFB6A616B6FADE(Global_25834[iVar0 /*23*/].f_11, 15);
if (bVar1 == bParam1)
{
return;
}
}
if (bParam1 != unk_0x05EFB6A616B6FADE(Global_25834[iVar0 /*23*/].f_11, 0))
{
unk_0x2BCFB39E86340DAA(&(Global_25834[iVar0 /*23*/].f_11), 18);
if (Global_25831 == 1)
{
Global_25832 = 1;
}
Global_25831 = 1;
}
if (bParam1)
{
unk_0x2BCFB39E86340DAA(&(Global_25834[iVar0 /*23*/].f_11), 0);
unk_0x2BCFB39E86340DAA(&(Global_25834[iVar0 /*23*/].f_11), 15);
unk_0x2BCFB39E86340DAA(&(Global_25834[iVar0 /*23*/].f_11), 3);
}
else
{
unk_0xFA57C719261AA55D(&(Global_25834[iVar0 /*23*/].f_11), 0);
unk_0xFA57C719261AA55D(&(Global_25834[iVar0 /*23*/].f_11), 15);
}
if (!unk_0x05EFB6A616B6FADE(Global_25834[iVar0 /*23*/].f_11, 0))
{
if (unk_0xCE3CB618AFE55EFB(Global_25834[iVar0 /*23*/].f_19))
{
unk_0xB0A6D0CDCFC41141(1);
unk_0xE1623437A3194332(&(Global_25834[iVar0 /*23*/].f_19));
unk_0xB0A6D0CDCFC41141(0);
}
}
}
void func_588(int iParam0)
{
if (!func_41(0))
{
return;
}
if (iParam0 < 0 || iParam0 > 7)
{
return;
}
Global_90257 = 0;
Global_36117 = 15;
Global_90260[iParam0 /*17*/].f_7 = -1;
if (Global_90260[iParam0 /*17*/].f_9 != 263)
{
func_587(Global_90260[iParam0 /*17*/].f_9, 0, 0);
}
func_585(iParam0);
}
int func_589(int iParam0)
{
int iVar0;
iVar0 = 0;
iVar0 = 0;
while (iVar0 < 7)
{
if (Global_84079[iVar0 /*5*/] == iParam0)
{
return iVar0;
}
iVar0++;
}
return -1;
}
void func_590()
{
int iVar0;
int iVar1;
struct<29> Var2;
vector3 vVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
unk_0xFA57C719261AA55D(&Global_71453, 1);
func_624(iLocal_105);
if (!unk_0x4915F4759304D5CF(unk_0xA19140A5C42D8715()))
{
switch (Global_71451.f_1)
{
case 1:
vVar3 = { func_622() };
if (!func_244(vVar3, 0f, 0f, 0f, 0))
{
func_612(vVar3, unk_0x552C823E1D2A019C(unk_0xA19140A5C42D8715()), 1);
}
iVar4 = Global_71451;
if ((Global_84115[iVar4 /*34*/].f_13 != -1 && Global_84115[iVar4 /*34*/].f_14 != -1) && !unk_0x05EFB6A616B6FADE(Global_84115[iVar4 /*34*/].f_15, 30))
{
iVar5 = func_311(func_246());
iVar6 = Global_84115[iVar4 /*34*/].f_13;
iVar7 = Global_84115[iVar4 /*34*/].f_14;
if (!func_310(iVar5, iVar6, iVar7))
{
unk_0xF7B6117C03C77578(iVar6, 0, 0);
}
}
break;
case 7:
func_71(Global_71451, &Var2);
iVar8 = func_611(&Local_100, 0);
if (func_244(Var2.f_6, 0f, 0f, 0f, 0))
{
if (iVar8 == 60 || iVar8 == 61)
{
Var2.f_6 = { -3.2349f, -1469.953f, 29.5503f };
}
}
if (iVar8 == 2 || iVar8 == 3)
{
Var2.f_6 = { 188.5123f, -954.8154f, 29.09192f };
}
else if (iVar8 == 5)
{
Var2.f_6 = { 1205.787f, -1289.228f, 34.2264f };
}
else if (iVar8 == 6)
{
Var2.f_6 = { -447.0243f, -1704.648f, 17.9004f };
}
func_612(Var2.f_6, unk_0x552C823E1D2A019C(unk_0xA19140A5C42D8715()), 1);
if (Var2.f_27 != 0 || Var2.f_28 != 2359)
{
iVar0 = (Var2.f_27 / 100);
iVar1 = (Var2.f_27 % 100);
unk_0xF7B6117C03C77578(iVar0, iVar1, 0);
}
func_592(iVar8, 0);
if (iVar8 == 60 || iVar8 == 61)
{
unk_0xD75A4240F0AD8613("ambient_Tonya");
while (!unk_0xB1FDFCECA75CE4A7("ambient_Tonya"))
{
unk_0xD75A4240F0AD8613("ambient_Tonya");
wait(0);
}
start_new_script("ambient_Tonya", 1424);
unk_0x4659F4154D948B01("ambient_Tonya");
}
else
{
unk_0xA4529AC14CA515CF();
}
Global_105157[iVar8 /*10*/].f_3 = 0;
Global_71450 = 1;
while (!Global_105157[iVar8 /*10*/].f_4)
{
Global_105157[iVar8 /*10*/].f_3 = 0;
wait(0);
}
Global_71450 = 0;
break;
default:
break;
}
}
else
{
func_5(1);
return;
}
func_591(0);
iLocal_98 = 3;
}
void func_591(int iParam0)
{
if (!unk_0x4915F4759304D5CF(unk_0xA19140A5C42D8715()))
{
if (iParam0 == 1)
{
unk_0x2BCFB39E86340DAA(&Global_71453, 3);
if (unk_0x58E3CCF930D23BD5(unk_0xD4E735F4B6A956AC()))
{
unk_0x962CF6A9EA6FDCAC(unk_0xD4E735F4B6A956AC(), false, 0);
}
unk_0x9568B1B58F78FF36(unk_0xA19140A5C42D8715());
if (unk_0x5D7DFE2058701942(unk_0xA19140A5C42D8715(), 0))
{
unk_0xB29E08C7AB729BAD(unk_0xCAEB6CE71A2C7212(unk_0xA19140A5C42D8715(), 0), true);
}
else
{
if (!unk_0x3D77D31E25961596(unk_0xA19140A5C42D8715()))
{
if (unk_0xF797E4DD45066C88(unk_0xA19140A5C42D8715()))
{
unk_0xF334C9B245CD323D(unk_0xA19140A5C42D8715(), 1, true);
}
}
if (!unk_0xF797E4DD45066C88(unk_0xA19140A5C42D8715()))
{
unk_0xB29E08C7AB729BAD(unk_0xA19140A5C42D8715(), true);
}
}
unk_0x33CF95E95A476FB9(unk_0xA19140A5C42D8715(), true);
unk_0xD6CDDEFB0FD5B191(unk_0xA19140A5C42D8715(), true, true, true, true, true, false, 0, false);
}
else if (unk_0x05EFB6A616B6FADE(Global_71453, 3))
{
if (unk_0x58E3CCF930D23BD5(unk_0xD4E735F4B6A956AC()))
{
unk_0x962CF6A9EA6FDCAC(unk_0xD4E735F4B6A956AC(), true, 0);
}
if (unk_0xF797E4DD45066C88(unk_0xA19140A5C42D8715()))
{
unk_0xB29E08C7AB729BAD(unk_0x081BDD4B3367CE5E(unk_0xA19140A5C42D8715()), false);
}
else
{
unk_0xB29E08C7AB729BAD(unk_0xA19140A5C42D8715(), false);
}
if (unk_0x5D7DFE2058701942(unk_0xA19140A5C42D8715(), 0))
{
unk_0xB29E08C7AB729BAD(unk_0xCAEB6CE71A2C7212(unk_0xA19140A5C42D8715(), 0), false);
}
unk_0x33CF95E95A476FB9(unk_0xA19140A5C42D8715(), false);
unk_0xD6CDDEFB0FD5B191(unk_0xA19140A5C42D8715(), false, false, false, false, false, false, 0, false);
unk_0xFA57C719261AA55D(&Global_71453, 3);
}
}
}
void func_592(int iParam0, int iParam1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_18546[iParam0 /*6*/]), 0);
unk_0x2BCFB39E86340DAA(&(Global_106070.f_18546[iParam0 /*6*/]), 1);
unk_0x2BCFB39E86340DAA(&(Global_106070.f_18546[iParam0 /*6*/]), 2);
if (iParam1 == 1)
{
func_593(iParam0, 1);
}
}
void func_593(int iParam0, bool bParam1)
{
struct<26> Var0;
int iVar1;
bool bVar2;
int iVar3;
struct<6> Var4;
int iVar5;
int iVar6;
struct<6> Var7;
int iVar8;
int iVar9;
func_71(iParam0, &Var0);
if (!unk_0x3CAC2741CC1A631F(&(Var0.f_16), ""))
{
while (!func_610(&(Var0.f_16)))
{
wait(0);
}
}
if (Var0.f_22 != 0)
{
func_609(Var0.f_22, 0);
}
func_608(iParam0, Global_71474);
if (!bParam1)
{
iVar1 = func_607(iParam0);
if (iVar1 != 0)
{
if (!unk_0xE69FB07E471C2FB0(iVar1))
{
unk_0x75517BC5AF6FF1DD(iVar1);
}
}
}
if (Var0.f_24 != -1)
{
bVar2 = true;
if (Var0.f_5 != 4)
{
iVar3 = 0;
while (iVar3 < 63)
{
iVar5 = iVar3;
if (iVar5 != iParam0)
{
func_71(iVar5, &Var4);
if (Var4.f_5 == Var0.f_5)
{
if (!unk_0x05EFB6A616B6FADE(Global_106070.f_18546[iVar5 /*6*/], 3))
{
bVar2 = false;
}
if (!unk_0x05EFB6A616B6FADE(Global_106070.f_18546[iVar5 /*6*/], 0))
{
func_596(iVar5);
}
}
}
iVar3++;
}
}
if (bVar2)
{
func_596(Var0.f_24);
}
}
else if (Var0.f_25 != 4)
{
iVar6 = 0;
while (iVar6 < 63)
{
iVar8 = iVar6;
if (iVar8 != iParam0)
{
func_71(iVar8, &Var7);
if (Var7.f_5 == Var0.f_25)
{
func_596(iVar8);
}
}
iVar6++;
}
}
if (!unk_0x05EFB6A616B6FADE(Global_106070.f_18546[iParam0 /*6*/], 3))
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_18546[iParam0 /*6*/]), 3);
Global_105157[iParam0 /*10*/].f_5 = 1;
func_595(iParam0);
iVar9 = func_594(iParam0);
if (iVar9 != 322)
{
func_264(iVar9, 0, 0);
}
}
}
int func_594(int iParam0)
{
switch (iParam0)
{
case 0:
return 109;
break;
case 1:
return 322;
break;
case 2:
return 69;
break;
case 3:
return 70;
break;
case 4:
return 322;
break;
case 5:
return 71;
break;
case 6:
return 71;
break;
case 7:
return 72;
break;
case 8:
return 68;
break;
case 9:
return 73;
break;
case 10:
return 74;
break;
case 11:
return 75;
break;
case 12:
return 76;
break;
case 13:
return 77;
break;
case 14:
return 78;
break;
case 15:
return 79;
break;
case 16:
return 80;
break;
case 17:
return 81;
break;
case 18:
return 82;
break;
case 19:
return 83;
break;
case 20:
return 84;
break;
case 21:
return 85;
break;
case 22:
return 86;
break;
case 23:
return 87;
break;
case 24:
return 106;
break;
case 25:
return 178;
break;
case 26:
return 179;
break;
case 27:
return 88;
break;
case 28:
return 89;
break;
case 29:
return 90;
break;
case 30:
return 91;
break;
case 31:
return 107;
break;
case 32:
return 92;
break;
case 33:
return 93;
break;
case 34:
return 94;
break;
case 35:
return 110;
break;
case 36:
return 111;
break;
case 37:
return 95;
break;
case 38:
return 96;
break;
case 39:
return 97;
break;
case 40:
return 98;
break;
case 41:
return 99;
break;
case 42:
return 100;
break;
case 43:
return 101;
break;
case 44:
return 66;
break;
case 45:
return 67;
break;
case 46:
return 102;
break;
case 47:
return 103;
break;
case 48:
return 322;
break;
case 49:
return 104;
break;
case 50:
return 104;
break;
case 51:
return 105;
break;
case 52:
return 194;
break;
case 53:
return 195;
break;
case 54:
return 196;
break;
case 55:
return 197;
break;
case 56:
return 198;
break;
case 57:
return 108;
break;
case 58:
return 208;
break;
case 59:
return 209;
break;
case 60:
return 210;
break;
case 61:
return 211;
break;
case 62:
return 212;
break;
}
return 322;
}
void func_595(int iParam0)
{
func_262(iParam0, 1);
Global_106070.f_18546[iParam0 /*6*/].f_3 = func_261();
Global_106070.f_18546.f_380++;
}
void func_596(int iParam0)
{
if (iParam0 == 63 || iParam0 == -1)
{
return;
}
func_597(iParam0);
unk_0x2BCFB39E86340DAA(&(Global_106070.f_18546[iParam0 /*6*/]), 0);
}
void func_597(int iParam0)
{
switch (iParam0)
{
case 30:
func_601(22, 1, 0, 1, 0);
break;
case 15:
func_598(37, 0);
break;
default:
break;
}
}
void func_598(int iParam0, bool bParam1)
{
if (iParam0 == -1)
{
return;
}
if (bParam1)
{
if (!func_600(iParam0, 0))
{
func_599(iParam0, 1, 0);
func_599(iParam0, 2, 0);
func_599(iParam0, 3, 0);
func_599(iParam0, 4, 0);
func_599(iParam0, 0, 1);
Global_70024[iParam0] = 1;
}
}
else
{
func_599(iParam0, 0, 0);
}
}
void func_599(int iParam0, int iParam1, bool bParam2)
{
if (iParam0 == -1)
{
return;
}
if (bParam2)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_32605[iParam0]), iParam1);
}
else
{
unk_0xFA57C719261AA55D(&(Global_106070.f_32605[iParam0]), iParam1);
}
}
bool func_600(int iParam0, int iParam1)
{
if (iParam0 == -1)
{
return 0;
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_32605[iParam0], iParam1);
}
void func_601(int iParam0, int iParam1, int iParam2, bool bParam3, int iParam4)
{
if (iParam0 != 198)
{
if (Global_71205)
{
Global_2437022.f_75.f_227[iParam0] = iParam1;
}
else
{
Global_106070.f_7233.f_227[iParam0] = iParam1;
}
Global_33084[iParam0] = iParam2;
Global_33283[iParam0] = 1;
func_604(iParam0, bParam3, iParam4, 0);
func_602(iParam0, iParam1);
}
}
void func_602(int iParam0, int iParam1)
{
switch (iParam0)
{
case 12:
if (iParam1 == 0)
{
unk_0x7B68A43B688620B5("AZ_PORT_OF_LS_UNDERWATER_CREAKS", 0, 0);
}
else
{
unk_0x7B68A43B688620B5("AZ_PORT_OF_LS_UNDERWATER_CREAKS", 1, 0);
}
break;
case 71:
if (iParam1 != 1)
{
unk_0x0F93570322F6A341("HEIST_SWEATSHOP_ZONES", 0, 0);
}
else
{
unk_0x0F93570322F6A341("HEIST_SWEATSHOP_ZONES", 1, 0);
}
break;
case 65:
if (iParam1 == 1)
{
func_603(0, 0);
}
else
{
func_603(0, 1);
}
break;
case 6:
if (iParam1 == 1)
{
unk_0x7B68A43B688620B5("AZ_UNDERWATER_EXILE_01_PLANE_WRECK", 1, 0);
}
else
{
unk_0x7B68A43B688620B5("AZ_UNDERWATER_EXILE_01_PLANE_WRECK", 0, 0);
}
break;
case 174:
if (iParam1 == 2)
{
unk_0xD9B9ACB0291AA577("V_CARSHOWROOM_PS_WINDOW_UNBROKEN");
}
break;
case 37:
if (iParam1 == 1)
{
unk_0x665C47CF8EF3A8D1("TREVOR1_TRAILER_PARK_MAIN_STAGE_RADIO", 0);
unk_0x665C47CF8EF3A8D1("TREVOR1_TRAILER_PARK_MAIN_TRAILER_RADIO_01", 0);
unk_0x665C47CF8EF3A8D1("TREVOR1_TRAILER_PARK_MAIN_TRAILER_RADIO_02", 0);
unk_0x665C47CF8EF3A8D1("TREVOR1_TRAILER_PARK_MAIN_TRAILER_RADIO_03", 0);
}
break;
}
}
void func_603(int iParam0, bool bParam1)
{
if (bParam1)
{
unk_0x2BCFB39E86340DAA(&Global_104708, iParam0);
}
else
{
unk_0xFA57C719261AA55D(&Global_104708, iParam0);
}
Global_104707 = 1;
}
bool func_604(int iParam0, bool bParam1, int iParam2, bool bParam3)
{
bool bVar0;
int iVar1;
int iVar2;
struct<5> Var3;
var uVar4;
bool bVar5;
int iVar6;
Global_1645162 = 1;
bVar0 = false;
Var3.f_4 = 3;
Var3.f_8 = 3;
Var3.f_64 = 3;
Var3.f_75 = 3;
Var3.f_91 = 3;
func_606(&Var3, iParam0);
if (func_605())
{
iVar1 = Global_106070.f_7233.f_227[iParam0];
}
else
{
iVar1 = Global_2437022.f_75.f_227[iParam0];
}
iVar2 = Global_33482[iParam0];
if (unk_0x4915F4759304D5CF(unk_0xA19140A5C42D8715()) && !bParam3)
{
Global_1645162 = 1;
}
else
{
bVar5 = true;
if (unk_0xFEB6EEC0545AF7AA(unk_0x61D2332983ACC05C()) != unk_0xFEB6EEC0545AF7AA("standard_global_reg"))
{
if (iParam2 == 0)
{
if (Global_33084[iParam0] && unk_0x499324B3EF19C288(unk_0xE2BBD32891C18569(unk_0xA19140A5C42D8715(), false), Var3, true) < 200f)
{
bVar5 = false;
Global_1645162 = 1;
}
if (!unk_0x58E3CCF930D23BD5(unk_0xD4E735F4B6A956AC()) || unk_0x16F3A5056959BF3A(unk_0xA19140A5C42D8715()))
{
if (!unk_0x71364F510A1CB69F())
{
bVar5 = false;
Global_1645162 = 1;
}
}
}
}
if (unk_0xE6F861B0A4D50CE0() && (!unk_0x47C3DC461C758C29() || unk_0x84C1DECF60EFBBD7() != 5))
{
bVar5 = false;
Global_1645162 = 1;
}
if (bVar5)
{
switch (Var3.f_3)
{
case 0:
if (iVar1 == 2)
{
}
else
{
if (Var3.f_4[iVar1] != 0)
{
unk_0x8FAC08959C2D32F8(Var3, 10f, Var3.f_4[iVar1], false);
}
if (Var3.f_4[iVar2] != 0)
{
unk_0x5F041E7AE5419FEC(Var3, 10f, Var3.f_4[iVar2], 1);
}
Global_34678[iParam0] = 1;
}
bVar0 = true;
break;
case 1:
if (iVar1 == 0)
{
if (unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[1 /*8*/])) != unk_0xFEB6EEC0545AF7AA("") && unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[1 /*8*/])) != unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[iVar1 /*8*/])))
{
if (unk_0x471855870C045BD0(&(Var3.f_8[1 /*8*/])))
{
unk_0x981516504EAE59E2(&(Var3.f_8[1 /*8*/]));
Global_1645162 = 1;
}
}
if ((unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[2 /*8*/])) != unk_0xFEB6EEC0545AF7AA("") && unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[2 /*8*/])) != unk_0xFEB6EEC0545AF7AA("REMOVE_ALL_STATES")) && unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[2 /*8*/])) != unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[iVar1 /*8*/])))
{
if (unk_0x471855870C045BD0(&(Var3.f_8[2 /*8*/])))
{
unk_0x981516504EAE59E2(&(Var3.f_8[2 /*8*/]));
Global_1645162 = 1;
}
}
if (unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[0 /*8*/])) != unk_0xFEB6EEC0545AF7AA(""))
{
if (!unk_0x471855870C045BD0(&(Var3.f_8[0 /*8*/])))
{
unk_0x1639295C71657BCF(&(Var3.f_8[0 /*8*/]));
Global_1645162 = 1;
}
}
if (unk_0xFEB6EEC0545AF7AA(&(Var3.f_34)) != unk_0xFEB6EEC0545AF7AA(""))
{
if (!unk_0x471855870C045BD0(&(Var3.f_34)))
{
unk_0x1639295C71657BCF(&(Var3.f_34));
Global_1645162 = 1;
}
}
}
else if (iVar1 == 1)
{
if (unk_0xFEB6EEC0545AF7AA(&(Var3.f_34)) != unk_0xFEB6EEC0545AF7AA(""))
{
if (unk_0x471855870C045BD0(&(Var3.f_34)))
{
unk_0x981516504EAE59E2(&(Var3.f_34));
}
}
if (unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[0 /*8*/])) != unk_0xFEB6EEC0545AF7AA("") && unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[0 /*8*/])) != unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[iVar1 /*8*/])))
{
if (unk_0x471855870C045BD0(&(Var3.f_8[0 /*8*/])))
{
unk_0x981516504EAE59E2(&(Var3.f_8[0 /*8*/]));
}
}
if ((unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[2 /*8*/])) != unk_0xFEB6EEC0545AF7AA("") && unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[2 /*8*/])) != unk_0xFEB6EEC0545AF7AA("REMOVE_ALL_STATES")) && unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[2 /*8*/])) != unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[iVar1 /*8*/])))
{
if (unk_0x471855870C045BD0(&(Var3.f_8[2 /*8*/])))
{
unk_0x981516504EAE59E2(&(Var3.f_8[2 /*8*/]));
}
}
if (unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[1 /*8*/])) != unk_0xFEB6EEC0545AF7AA(""))
{
if (!unk_0x471855870C045BD0(&(Var3.f_8[1 /*8*/])))
{
unk_0x1639295C71657BCF(&(Var3.f_8[1 /*8*/]));
}
}
}
else if (iVar1 == 2)
{
if (unk_0xFEB6EEC0545AF7AA(&(Var3.f_34)) != unk_0xFEB6EEC0545AF7AA(""))
{
if (unk_0x471855870C045BD0(&(Var3.f_34)))
{
unk_0x981516504EAE59E2(&(Var3.f_34));
}
}
if (unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[0 /*8*/])) != unk_0xFEB6EEC0545AF7AA("") && unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[0 /*8*/])) != unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[iVar1 /*8*/])))
{
if (unk_0x471855870C045BD0(&(Var3.f_8[0 /*8*/])))
{
unk_0x981516504EAE59E2(&(Var3.f_8[0 /*8*/]));
}
}
if (unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[1 /*8*/])) != unk_0xFEB6EEC0545AF7AA("") && unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[1 /*8*/])) != unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[iVar1 /*8*/])))
{
if (unk_0x471855870C045BD0(&(Var3.f_8[1 /*8*/])))
{
unk_0x981516504EAE59E2(&(Var3.f_8[1 /*8*/]));
}
}
if (unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[2 /*8*/])) != unk_0xFEB6EEC0545AF7AA("") && unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[2 /*8*/])) != unk_0xFEB6EEC0545AF7AA("REMOVE_ALL_STATES"))
{
if (!unk_0x471855870C045BD0(&(Var3.f_8[2 /*8*/])))
{
unk_0x1639295C71657BCF(&(Var3.f_8[2 /*8*/]));
}
}
}
Global_34479[iParam0] = 1;
Global_34678[iParam0] = 1;
bVar0 = true;
break;
case 2:
iVar6 = unk_0xB68EB57358F46F86(Var3, &(Var3.f_42));
if (iVar6 != 0)
{
if (unk_0xFEB6EEC0545AF7AA(&(Var3.f_50)) != unk_0xFEB6EEC0545AF7AA(""))
{
if (unk_0xE0A4C16EE6C60363(iVar6, &(Var3.f_50)))
{
unk_0xCD2417B9AC84180C(iVar6, &(Var3.f_50));
}
}
if (iVar1 == 0)
{
if (unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[1 /*8*/])) != unk_0xFEB6EEC0545AF7AA(""))
{
if (unk_0xE0A4C16EE6C60363(iVar6, &(Var3.f_8[1 /*8*/])))
{
unk_0xCD2417B9AC84180C(iVar6, &(Var3.f_8[1 /*8*/]));
}
}
if ((unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[2 /*8*/])) != unk_0xFEB6EEC0545AF7AA("") && unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[2 /*8*/])) != unk_0xFEB6EEC0545AF7AA("REMOVE_ALL_STATES")) && unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[2 /*8*/])) != unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[iVar1 /*8*/])))
{
if (unk_0xE0A4C16EE6C60363(iVar6, &(Var3.f_8[2 /*8*/])))
{
unk_0xCD2417B9AC84180C(iVar6, &(Var3.f_8[2 /*8*/]));
}
}
if (unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[0 /*8*/])) != unk_0xFEB6EEC0545AF7AA(""))
{
if (!unk_0xE0A4C16EE6C60363(iVar6, &(Var3.f_8[0 /*8*/])))
{
unk_0x6679FC2A24AEDF2D(iVar6, &(Var3.f_8[0 /*8*/]));
}
}
}
else if (iVar1 == 1)
{
if (unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[0 /*8*/])) != unk_0xFEB6EEC0545AF7AA(""))
{
if (unk_0xE0A4C16EE6C60363(iVar6, &(Var3.f_8[0 /*8*/])))
{
unk_0xCD2417B9AC84180C(iVar6, &(Var3.f_8[0 /*8*/]));
}
}
if ((unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[2 /*8*/])) != unk_0xFEB6EEC0545AF7AA("") && unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[2 /*8*/])) != unk_0xFEB6EEC0545AF7AA("REMOVE_ALL_STATES")) && unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[2 /*8*/])) != unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[iVar1 /*8*/])))
{
if (unk_0xE0A4C16EE6C60363(iVar6, &(Var3.f_8[2 /*8*/])))
{
unk_0xCD2417B9AC84180C(iVar6, &(Var3.f_8[2 /*8*/]));
}
}
if (unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[1 /*8*/])) != unk_0xFEB6EEC0545AF7AA(""))
{
if (!unk_0xE0A4C16EE6C60363(iVar6, &(Var3.f_8[1 /*8*/])))
{
unk_0x6679FC2A24AEDF2D(iVar6, &(Var3.f_8[1 /*8*/]));
}
}
}
else if (iVar1 == 2)
{
if (unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[0 /*8*/])) != unk_0xFEB6EEC0545AF7AA(""))
{
if (unk_0xE0A4C16EE6C60363(iVar6, &(Var3.f_8[0 /*8*/])))
{
unk_0xCD2417B9AC84180C(iVar6, &(Var3.f_8[0 /*8*/]));
}
}
if (unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[1 /*8*/])) != unk_0xFEB6EEC0545AF7AA(""))
{
if (unk_0xE0A4C16EE6C60363(iVar6, &(Var3.f_8[1 /*8*/])))
{
unk_0xCD2417B9AC84180C(iVar6, &(Var3.f_8[1 /*8*/]));
}
}
if (unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[2 /*8*/])) != unk_0xFEB6EEC0545AF7AA("") && unk_0xFEB6EEC0545AF7AA(&(Var3.f_8[2 /*8*/])) != unk_0xFEB6EEC0545AF7AA("REMOVE_ALL_STATES"))
{
if (!unk_0xE0A4C16EE6C60363(iVar6, &(Var3.f_8[2 /*8*/])))
{
unk_0x6679FC2A24AEDF2D(iVar6, &(Var3.f_8[2 /*8*/]));
}
}
}
if (bParam1)
{
unk_0xEF6CE4AF8D633F85(iVar6);
}
}
Global_34678[iParam0] = 1;
Global_34479[iParam0] = 1;
bVar0 = true;
break;
case 3:
if (unk_0x499324B3EF19C288(Var3, unk_0xE2BBD32891C18569(unk_0xA19140A5C42D8715(), false), true) < 250f)
{
uVar4 = unk_0x389F96269D4F1FD8(Var3, 25f, &(Var3.f_8[0 /*8*/]));
if (unk_0xCD7C9B7A8F43BA15(uVar4))
{
if (iVar1 == 0)
{
unk_0x317CA41ED2351630(uVar4, 3);
Global_34678[iParam0] = 1;
bVar0 = true;
}
else if (iVar1 == 1)
{
if ((unk_0xA3DC7C2803970902(uVar4) != 6 && unk_0xA3DC7C2803970902(uVar4) != 7) && unk_0xA3DC7C2803970902(uVar4) != 8)
{
unk_0x317CA41ED2351630(uVar4, 10);
Global_34678[iParam0] = 1;
bVar0 = true;
}
}
else if (iVar1 == 2)
{
bVar0 = true;
}
}
}
break;
case 4:
if (iVar1 == 0)
{
unk_0xA23198D7F155C365(Var3, 50f, Var3.f_4[1], Var3.f_4[0], 0);
unk_0xFA57C719261AA55D(&(Global_32830[(iParam0 / 32)]), (iParam0 % 32));
}
else if (iVar1 == 1)
{
unk_0x191C6AFA8C538AD7(Var3, 50f, Var3.f_4[0], Var3.f_4[1], 1);
unk_0x2BCFB39E86340DAA(&(Global_32830[(iParam0 / 32)]), (iParam0 % 32));
}
bVar0 = true;
break;
}
if (bVar0)
{
Global_33283[iParam0] = 0;
Global_33482[iParam0] = iVar1;
if (!func_605())
{
if (!Global_34079[iParam0])
{
Global_34079[iParam0] = 1;
Global_34278++;
}
}
}
}
}
return bVar0;
}
int func_605()
{
if ((func_21() == -1 || func_21() == 999) && !func_445() == 0)
{
return 1;
}
return 0;
}
int func_606(var uParam0, int iParam1)
{
int iVar0;
iVar0 = 0;
while (iVar0 < 3)
{
uParam0->f_4[iVar0] = 0;
StringCopy(&(uParam0->f_8[iVar0 /*8*/]), "", 32);
uParam0->f_64[iVar0] = 0;
uParam0->f_75[iVar0] = 0;
uParam0->f_91[iVar0] = 0;
iVar0++;
}
*uParam0 = { 0f, 0f, 0f };
uParam0->f_3 = 0;
uParam0->f_33 = 0;
StringCopy(&(uParam0->f_34), "", 32);
StringCopy(&(uParam0->f_42), "", 32);
StringCopy(&(uParam0->f_50), "", 32);
uParam0->f_58 = { 0f, 0f, 0f };
uParam0->f_61 = { 0f, 0f, 0f };
uParam0->f_68 = { 0f, 0f, 0f };
uParam0->f_71 = { 0f, 0f, 0f };
uParam0->f_74 = 0f;
uParam0->f_79 = { 0f, 0f, 0f };
uParam0->f_82 = { 0f, 0f, 0f };
uParam0->f_85 = { 0f, 0f, 0f };
uParam0->f_88 = { 0f, 0f, 0f };
switch (iParam1)
{
case 3:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "TRV1_Trail_start", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "TRV1_Trail_end", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "TRV1_Trail_Finish", 32);
uParam0->f_33 = 1;
*uParam0 = { -24.685f, 3032.92f, 40.331f };
break;
case 4:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "CS3_05_water_grp1", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "CS3_05_water_grp2", 32);
*uParam0 = { -24.685f, 3032.92f, 40.331f };
break;
case 0:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "gasstation_ipl_group1", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "gasstation_ipl_group2", 32);
*uParam0 = { -93.4f, 6410.9f, 36.8f };
break;
case 1:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "DES_Smash2_startimap", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "DES_Smash2_endimap", 32);
*uParam0 = { 890.3647f, -2367.289f, 28.10582f };
break;
case 2:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "DES_StiltHouse_imapstart", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "DES_StiltHouse_imapend", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "des_stilthouse_rebuild", 32);
uParam0->f_33 = 0;
*uParam0 = { -1020.5f, 663.41f, 154.75f };
uParam0->f_58 = { -1018.913f, 603.2904f, 105.6611f };
uParam0->f_61 = { -1038.913f, 639.2904f, 135.6611f };
uParam0->f_64[0] = 1;
uParam0->f_64[1] = 0;
break;
case 5:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "bnkheist_apt_norm", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "bnkheist_apt_dest", 32);
break;
case 196:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "bnkheist_apt_dest_vfx", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "REMOVE_ALL_STATES", 32);
uParam0->f_33 = 1;
break;
case 6:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "crashed_cargoplane", 32);
break;
case 7:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "prop_jb700_covered", 32);
*uParam0 = { 490.8999f, -1334.068f, 28.3298f };
break;
case 8:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "prop_entityXF_covered", 32);
*uParam0 = { 490.8999f, -1334.068f, 28.3298f };
break;
case 9:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "prop_cheetah_covered", 32);
*uParam0 = { 490.8999f, -1334.068f, 28.3298f };
break;
case 10:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "prop_ztype_covered", 32);
*uParam0 = { 490.8999f, -1334.068f, 28.3298f };
break;
case 11:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "BH1_48_Killed_Michael", 32);
break;
case 12:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "cargoship", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "sunkcargoship", 32);
uParam0->f_68 = { -162.8918f, -2365.769f, 0f };
uParam0->f_71 = { 190.75f, 31.25f, 21f };
uParam0->f_74 = 0f;
uParam0->f_75[0] = 0;
uParam0->f_75[1] = 1;
break;
case 13:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "ship_occ_grp1", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "ship_occ_grp2", 32);
break;
case 14:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "smboat", 32);
break;
case 15:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "gasparticle_grp2", 32);
*uParam0 = { -95.2f, 6411.3f, 31.5f };
break;
case 16:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "CS1_02_cf_offmission", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "CS1_02_cf_onmission1", 32);
*uParam0 = { -146.3837f, 6161.5f, 30.2062f };
break;
case 17:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "CS1_02_cf_onmission2", 32);
*uParam0 = { -146.3837f, 6161.5f, 30.2062f };
break;
case 18:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "CS1_02_cf_onmission3", 32);
*uParam0 = { -146.3837f, 6161.5f, 30.2062f };
break;
case 19:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "CS1_02_cf_onmission4", 32);
*uParam0 = { -146.3837f, 6161.5f, 30.2062f };
break;
case 20:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "jetstealtunnel", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
*uParam0 = { 801.7f, -1810.8f, 23.3f };
break;
case 21:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "Jetsteal_ipl_grp1", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "Jetsteal_ipl_grp2", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "REMOVE_ALL_STATES", 32);
uParam0->f_33 = 1;
*uParam0 = { 787.3967f, -1808.858f, 29.8532f };
uParam0->f_58 = { 814f, -1750f, 20f };
uParam0->f_61 = { 790f, -1899f, 35f };
uParam0->f_64[0] = 1;
uParam0->f_64[1] = 0;
uParam0->f_64[2] = 0;
break;
case 22:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "BH1_47_JoshHse_UnBurnt", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "BH1_47_JoshHse_Burnt", 32);
break;
case 23:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "bh1_47_joshhse_firevfx", 32);
break;
case 24:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "SC1_30_Keep_Closed", 32);
break;
case 25:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "triathlon2_VBprops", 32);
break;
case 26:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "DT1_05_REQUEST", 32);
*uParam0 = { 163.4f, -745.7f, 251f };
break;
case 27:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "FBI_colPLUG", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
*uParam0 = { 74.29f, -736.05f, 46.76f };
break;
case 28:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "FBI_repair", 32);
*uParam0 = { 74.29f, -736.05f, 46.76f };
break;
case 29:
uParam0->f_3 = 4;
uParam0->f_4[0] = joaat("dt1_05_build1_h");
uParam0->f_4[1] = joaat("dt1_05_build1_damage");
*uParam0 = { 136.004f, -749.287f, 153.302f };
break;
case 30:
uParam0->f_3 = 4;
uParam0->f_4[0] = -112041596;
uParam0->f_4[1] = joaat("dt1_05_build1_damage_lod");
*uParam0 = { 136.004f, -749.287f, 153.302f };
break;
case 31:
uParam0->f_3 = 4;
uParam0->f_4[0] = -186270611;
uParam0->f_4[1] = joaat("dt1_05_damage_slod");
*uParam0 = { 178.534f, -668.835f, 37.2113f };
break;
case 32:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "FIB_heist_lights", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
*uParam0 = { 136.004f, -749.287f, 153.302f };
break;
case 33:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "FIB_heist_dmg", 32);
*uParam0 = { 136.004f, -749.287f, 153.302f };
break;
case 34:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "DT1_05_rubble", 32);
*uParam0 = { 74.29f, -736.05f, 46.76f };
break;
case 35:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "FIBlobbyfake", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "FIBlobby", 32);
*uParam0 = { 105.4557f, -745.4835f, 44.7548f };
break;
case 36:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "DT1_05_HC_REMOVE", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "DT1_05_HC_REQ", 32);
*uParam0 = { 169f, -670.3f, 41.9f };
break;
case 37:
uParam0->f_3 = 1;
*uParam0 = { 50.2f, 3743.9f, 40.9f };
uParam0->f_79 = { 16.9757f, 3614.307f, 30.0677f };
uParam0->f_82 = { 145.2451f, 3748.912f, 49.6958f };
uParam0->f_85 = { 16.9757f, 3614.307f, 30.0677f };
uParam0->f_88 = { 145.2451f, 3748.912f, 49.6958f };
uParam0->f_91[0] = 0;
uParam0->f_91[1] = 1;
break;
case 38:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "trailerparkA_grp1", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "trailerparkA_grp2", 32);
*uParam0 = { 50.2f, 3743.9f, 40.9f };
break;
case 39:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "occl_trailerA_grp1", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
*uParam0 = { 50.2f, 3743.9f, 40.9f };
break;
case 40:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "trailerparkB_grp1", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "trailerparkB_grp2", 32);
*uParam0 = { 106.7f, 3732.1f, 40.8f };
break;
case 41:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "occl_trailerB_grp1", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
*uParam0 = { 106.7f, 3732.1f, 40.8f };
break;
case 42:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "trailerparkC_grp1", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "trailerparkC_grp2", 32);
*uParam0 = { 72.7f, 3695.4f, 42f };
break;
case 43:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "occl_trailerC_grp1", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
*uParam0 = { 72.7f, 3695.4f, 42f };
break;
case 44:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "trailerparkD_grp1", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "trailerparkD_grp2", 32);
*uParam0 = { 43.8f, 3699.7f, 41.3f };
break;
case 45:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "occl_trailerD_grp1", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
*uParam0 = { 43.8f, 3699.7f, 41.3f };
break;
case 46:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "trailerparkE_grp1", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "trailerparkE_grp2", 32);
*uParam0 = { 28.5f, 3668f, 40.4f };
break;
case 47:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "occl_trailerE_grp1", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
*uParam0 = { 28.5f, 3668f, 40.4f };
break;
case 48:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_34), "des_methtrailer", 32);
StringCopy(&(uParam0->f_8[0 /*8*/]), "methtrailer_grp1", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "methtrailer_grp2", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "methtrailer_grp3", 32);
uParam0->f_33 = 1;
*uParam0 = { 29.4838f, 3735.593f, 38.688f };
uParam0->f_68 = { 31.134f, 3738.783f, 39.062f };
uParam0->f_71 = { 13.6f, 20f, 8.9f };
uParam0->f_74 = 48f;
uParam0->f_75[0] = 0;
uParam0->f_75[1] = 1;
uParam0->f_75[2] = 1;
break;
case 49:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "occl_meth_grp1", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
*uParam0 = { 29.4838f, 3735.593f, 38.688f };
break;
case 50:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "des_farmhs_startimap", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "des_farmhs_endimap", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "REMOVE_ALL_STATES", 32);
uParam0->f_33 = 1;
*uParam0 = { 2450.595f, 4959.929f, 44.2575f };
uParam0->f_79 = { 2383.756f, 4929.988f, 39.52461f };
uParam0->f_82 = { 2505.756f, 5023.988f, 67.52461f };
break;
case 55:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "des_farmhs_start_occl", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "des_farmhs_end_occl", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
*uParam0 = { 2450.595f, 4959.929f, 44.2575f };
break;
case 51:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "farm", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "farm", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "farm_burnt", 32);
uParam0->f_33 = 1;
*uParam0 = { 2444.8f, 4976.4f, 50.5f };
break;
case 52:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "farm_props", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "farm_burnt_props", 32);
uParam0->f_33 = 1;
*uParam0 = { 2447.9f, 4973.4f, 47.7f };
break;
case 53:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "des_farmhouse", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "des_farmhouse", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "REMOVE_ALL_STATES", 32);
uParam0->f_33 = 1;
*uParam0 = { 2447.9f, 4973.4f, 47.7f };
break;
case 54:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "farmint_cap", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "farmint", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
*uParam0 = { 2447.9f, 4973.4f, 47.7f };
break;
case 56:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "tankerexp_grp0", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "tankerexp_grp3", 32);
*uParam0 = { 1676.415f, -1626.37f, 111.4848f };
break;
case 57:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "tankerexp_grp1", 32);
*uParam0 = { 1676.415f, -1626.37f, 111.4848f };
break;
case 58:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "tankerexp_grp2", 32);
*uParam0 = { 1676.415f, -1626.37f, 111.4848f };
break;
case 59:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "DES_tankerexp", 32);
*uParam0 = { 1676.415f, -1626.37f, 111.4848f };
break;
case 60:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "dockcrane1", 32);
*uParam0 = { 889.3f, -2910.9f, 40f };
break;
case 61:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "CanyonRvrShallow", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "CanyonRvrDeep", 32);
*uParam0 = { -1600.619f, 4443.457f, 0.725f };
break;
case 62:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "Garage_door_locked", 32);
*uParam0 = { 966.1f, -114.8f, 75.2f };
break;
case 63:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "ch1_02_closed", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "ch1_02_open", 32);
*uParam0 = { -3086.428f, 339.2523f, 6.3717f };
break;
case 64:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "ferris_finale_Anim", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
*uParam0 = { -1675.178f, -1143.605f, 12.0175f };
break;
case 65:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "railing_start", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "railing_end", 32);
*uParam0 = { -532.1309f, 4526.187f, 88.7955f };
break;
case 66:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "canyonriver01", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "canyonriver01_traincrash", 32);
*uParam0 = { -532.1309f, 4526.187f, 88.7955f };
break;
case 67:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "DT1_05_WOFFM", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "DT1_05_FIB2_Mission", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "DT1_05_WOFFM", 32);
*uParam0 = { 131.29f, -631.22f, 261.85f };
break;
case 68:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "coronertrash", 32);
*uParam0 = { 233.9f, -1355f, 30.3f };
break;
case 69:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "Coroner_Int_off", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "Coroner_Int_on", 32);
*uParam0 = { 234.4f, -1355.6f, 40.5f };
break;
case 70:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "id2_14_pre_no_int", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
*uParam0 = { 716.84f, -962.05f, 31.59f };
break;
case 71:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "id2_14_during1", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "id2_14_during2", 32);
*uParam0 = { 716.84f, -962.05f, 31.59f };
break;
case 72:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "id2_14_on_fire", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "id2_14_post_no_int", 32);
*uParam0 = { 716.84f, -962.05f, 31.59f };
break;
case 73:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "id2_14_during_door", 32);
*uParam0 = { 716.84f, -962.05f, 31.59f };
break;
case 74:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "burnt_switch_off", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
*uParam0 = { 716.84f, -962.05f, 31.59f };
break;
case 75:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "RC12B_Default", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "RC12B_Destroyed", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "RC12B_Fixed", 32);
uParam0->f_33 = 0;
*uParam0 = { 330.4596f, -584.8196f, 42.3174f };
break;
case 76:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "RC12B_HospitalInterior", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
uParam0->f_33 = 0;
*uParam0 = { 330.4596f, -584.8196f, 42.3174f };
break;
case 105:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "SM_15_BldGRAF1", 32);
*uParam0 = { 330.4596f, -584.8196f, 42.3174f };
break;
case 106:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "CH3_RD2_BishopsChickenGraffiti", 32);
*uParam0 = { 1861.28f, 2402.11f, 58.53f };
break;
case 107:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "FruitBB", 32);
*uParam0 = { -1327.46f, -274.82f, 54.25f };
break;
case 108:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "CS5_04_MazeBillboardGraffiti", 32);
*uParam0 = { 2697.32f, 3162.18f, 58.1f };
break;
case 109:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "CS5_Roads_RonOilGraffiti", 32);
*uParam0 = { 2119.12f, 3058.21f, 53.25f };
break;
case 110:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "ap1_03_bbrd_dcl", 32);
*uParam0 = { -804.25f, -2276.88f, 23.59f };
break;
case 111:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "HW1_02_OldBill", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "HW1_02_NewBill", 32);
*uParam0 = { 296.5f, 173.3f, 100.4f };
break;
case 112:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "HW1_Emissive_OldBill", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "HW1_Emissive_NewBill", 32);
*uParam0 = { 296.5f, 173.3f, 100.4f };
break;
case 77:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
uParam0->f_33 = 1;
*uParam0 = { 480.9554f, -1321.21f, 28.2037f };
uParam0->f_85 = { 508.3f, -1299.3f, 39.4f };
uParam0->f_88 = { 459.9f, -1363.2f, 21.4f };
uParam0->f_91[0] = 0;
uParam0->f_91[1] = 1;
uParam0->f_91[2] = 0;
break;
case 78:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "TrevorsTrailer", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "TrevorsTrailerTrash", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "TrevorsTrailerTidy", 32);
*uParam0 = { 1973f, 3815f, 34f };
uParam0->f_33 = 0;
break;
case 79:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "scafstartimap", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "scafendimap", 32);
*uParam0 = { -1088.6f, -1650.6f, 6.4f };
break;
case 80:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "chop_props", 32);
*uParam0 = { -13.83f, -1455.45f, 31.81f };
break;
case 113:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "AP1_04_TriAf01", 32);
*uParam0 = { -1277.629f, -2030.913f, 1.2823f };
break;
case 114:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "CS2_06_TriAf02", 32);
*uParam0 = { 2384.969f, 4277.583f, 30.379f };
break;
case 115:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "CS4_04_TriAf03", 32);
*uParam0 = { 1577.881f, 3836.107f, 30.7717f };
break;
case 87:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "DT1_21_prop_lift_on", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
*uParam0 = { -180.5771f, -1016.928f, 28.2893f };
break;
case 88:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "jewel2fake", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "post_hiest_unload", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "bh1_16_refurb", 32);
*uParam0 = { -630.4205f, -236.7843f, 37.057f };
uParam0->f_79 = { (-623.6868f - 11f), (-231.935f - 11f), (40.30703f - 3.25f) };
uParam0->f_82 = { (-623.6868f + 11f), (-231.935f + 11f), (40.30703f + 3.25f) };
break;
case 89:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "bh1_16_doors_shut", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "refit_unload", 32);
*uParam0 = { -583.1606f, -282.3967f, 35.394f };
break;
case 90:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "v_tunnel_hole_swap", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "v_tunnel_hole", 32);
*uParam0 = { -14.651f, -604.3639f, 25.1823f };
break;
case 91:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "cs5_4_trains", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
*uParam0 = { 2773.61f, 2835.327f, 35.1903f };
break;
case 94:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "airfield", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
*uParam0 = { 1743.682f, 3286.251f, 40.0875f };
break;
case 95:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "REMOVE_ALL_STATES", 32);
uParam0->f_33 = 1;
*uParam0 = { 1222.9f, 1877.9f, 79.9f };
uParam0->f_58 = { 1206.8f, 1803f, 43.9f };
uParam0->f_61 = { 1329f, 2060.4f, 143.9f };
uParam0->f_64[0] = 0;
uParam0->f_64[1] = 1;
uParam0->f_64[2] = 0;
break;
case 104:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "SC1_01_OldBill", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "SC1_01_NewBill", 32);
*uParam0 = { -351f, -1324f, 44.02f };
break;
case 103:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "DT1_17_OldBill", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "DT1_17_NewBill", 32);
*uParam0 = { 391.81f, -962.71f, 41.97f };
break;
case 102:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "SC1_14_OldBill", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "SC1_14_NewBill", 32);
*uParam0 = { 424.2f, -1944.31f, 33.09f };
break;
case 92:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "ld_rail_01_track", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
*uParam0 = { 2626.374f, 2949.869f, 39.1409f };
break;
case 93:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "ld_rail_02_track", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
*uParam0 = { 2626.374f, 2949.869f, 39.1409f };
break;
case 118:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "V_Michael_M_items", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_M_moved", 32);
StringCopy(&(uParam0->f_42), "V_Michael", 32);
*uParam0 = { -811.2679f, 179.3344f, 75.7408f };
break;
case 116:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "V_Michael_D_items", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_D_Moved", 32);
StringCopy(&(uParam0->f_42), "V_Michael", 32);
*uParam0 = { -802.0311f, 172.9131f, 75.7408f };
break;
case 117:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "V_Michael_S_items", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_S_items_swap", 32);
StringCopy(&(uParam0->f_42), "V_Michael", 32);
*uParam0 = { -808.033f, 172.1309f, 75.7406f };
break;
case 119:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "V_Michael_L_Items", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_L_Moved", 32);
StringCopy(&(uParam0->f_42), "V_Michael", 32);
*uParam0 = { -808.033f, 172.1309f, 75.7406f };
break;
case 120:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_M_items_swap", 32);
StringCopy(&(uParam0->f_42), "V_Michael", 32);
*uParam0 = { -808.033f, 172.1309f, 75.7406f };
break;
case 122:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_FameShame", 32);
StringCopy(&(uParam0->f_42), "V_Michael", 32);
*uParam0 = { -802.0311f, 172.9131f, 75.7408f };
break;
case 121:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_JewelHeist", 32);
StringCopy(&(uParam0->f_42), "V_Michael", 32);
*uParam0 = { -813.3f, 177.5f, 75.76f };
break;
case 123:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "Michael_premier", 32);
StringCopy(&(uParam0->f_42), "V_Michael", 32);
*uParam0 = { -813.3f, 177.5f, 75.76f };
break;
case 124:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_plane_ticket", 32);
StringCopy(&(uParam0->f_42), "V_Michael", 32);
*uParam0 = { -813.3f, 177.5f, 75.76f };
break;
case 170:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "burgershot_yoga", 32);
StringCopy(&(uParam0->f_42), "V_Michael", 32);
*uParam0 = { -813.3f, 177.5f, 75.76f };
break;
case 171:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_Scuba", 32);
StringCopy(&(uParam0->f_42), "V_Michael_Garage", 32);
*uParam0 = { -810.5301f, 187.7868f, 71.4786f };
break;
case 125:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "V_Michael_bed_tidy", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "V_Michael_bed_Messy", 32);
StringCopy(&(uParam0->f_42), "V_Michael", 32);
*uParam0 = { -811.2679f, 179.3344f, 75.7408f };
break;
case 164:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "Jewel_Gasmasks", 32);
StringCopy(&(uParam0->f_42), "V_Sweat", 32);
*uParam0 = { 707.2563f, -965.147f, 29.4179f };
break;
case 165:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "V_53_Agency _Overalls", 32);
StringCopy(&(uParam0->f_42), "V_Sweat", 32);
*uParam0 = { 707.2563f, -965.147f, 29.4179f };
break;
case 166:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "V_53_Agency_Blueprint", 32);
StringCopy(&(uParam0->f_42), "V_Sweat", 32);
*uParam0 = { 707.2563f, -965.147f, 29.4179f };
break;
case 167:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "V_35_KitBag", 32);
StringCopy(&(uParam0->f_42), "V_Sweat", 32);
*uParam0 = { 707.2563f, -965.147f, 29.4179f };
break;
case 168:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "V_35_Body_Armour", 32);
StringCopy(&(uParam0->f_42), "V_Sweat", 32);
*uParam0 = { 707.2563f, -965.147f, 29.4179f };
break;
case 169:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "V_35_Fireman", 32);
StringCopy(&(uParam0->f_42), "V_Sweat", 32);
*uParam0 = { 707.2563f, -965.147f, 29.4179f };
break;
case 126:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "V_26_Trevor_Helmet1", 32);
StringCopy(&(uParam0->f_42), "V_Trailer", 32);
*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
break;
case 127:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "V_26_Trevor_Helmet3", 32);
StringCopy(&(uParam0->f_42), "V_TrailerTRASH", 32);
*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
break;
case 128:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "V_26_Trevor_Helmet2", 32);
StringCopy(&(uParam0->f_42), "V_TrailerTidy", 32);
*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
break;
case 129:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "V_24_Trevor_Briefcase1", 32);
StringCopy(&(uParam0->f_42), "V_Trailer", 32);
*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
break;
case 130:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "V_24_Trevor_Briefcase3", 32);
StringCopy(&(uParam0->f_42), "V_TrailerTRASH", 32);
*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
break;
case 131:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "V_24_Trevor_Briefcase2", 32);
StringCopy(&(uParam0->f_42), "V_TrailerTidy", 32);
*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
break;
case 132:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "V_26_Michael_Stay1", 32);
StringCopy(&(uParam0->f_42), "V_Trailer", 32);
*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
break;
case 133:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "V_26_Michael_Stay3", 32);
StringCopy(&(uParam0->f_42), "V_TrailerTRASH", 32);
*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
break;
case 134:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "V_26_Michael_Stay2", 32);
StringCopy(&(uParam0->f_42), "V_TrailerTidy", 32);
*uParam0 = { 1973.805f, 3818.555f, 32.4363f };
break;
case 179:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "shutter_open", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "shutter_closed", 32);
StringCopy(&(uParam0->f_42), "v_carshowroom", 32);
*uParam0 = { -30.8793f, -1088.336f, 25.4221f };
uParam0->f_68 = { -29.3f, -1086.35f, 25.57f };
uParam0->f_71 = { 5.5f, 3f, 2f };
uParam0->f_74 = -10f;
uParam0->f_75[0] = 0;
uParam0->f_75[1] = 1;
break;
case 174:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "csr_beforeMission", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "csr_afterMissionA", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "csr_afterMissionB", 32);
StringCopy(&(uParam0->f_50), "csr_inMission", 32);
uParam0->f_33 = 0;
StringCopy(&(uParam0->f_42), "v_carshowroom", 32);
*uParam0 = { -59.7936f, -1098.784f, 27.2612f };
break;
case 175:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
StringCopy(&(uParam0->f_42), "v_carshowroom", 32);
*uParam0 = { -49.21f, -1090.28f, 25.42f };
uParam0->f_68 = { -49.21f, -1090.28f, 25.42f };
uParam0->f_71 = { 2.5f, 3f, 3f };
uParam0->f_74 = 0f;
uParam0->f_75[0] = 0;
uParam0->f_75[1] = 1;
uParam0->f_75[2] = 0;
break;
case 176:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
StringCopy(&(uParam0->f_42), "v_carshowroom", 32);
*uParam0 = { -49.28f, -1092.66f, 25.42f };
uParam0->f_68 = { -49.28f, -1092.66f, 25.42f };
uParam0->f_71 = { 3f, 1f, 3f };
uParam0->f_74 = 0f;
uParam0->f_75[0] = 0;
uParam0->f_75[1] = 1;
uParam0->f_75[2] = 0;
break;
case 177:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
StringCopy(&(uParam0->f_42), "v_carshowroom", 32);
*uParam0 = { -53.07f, -1096.73f, 25.5f };
uParam0->f_68 = { -53.07f, -1096.73f, 25.5f };
uParam0->f_71 = { 1f, 3f, 2f };
uParam0->f_74 = -45f;
uParam0->f_75[0] = 0;
uParam0->f_75[1] = 1;
uParam0->f_75[2] = 0;
break;
case 178:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "carshowroom_broken", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "carshowroom_boarded", 32);
uParam0->f_33 = 0;
*uParam0 = { -59.7936f, -1098.784f, 27.2612f };
break;
case 173:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "shr_int", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "fakeint", 32);
uParam0->f_33 = 0;
*uParam0 = { -59.7936f, -1098.784f, 27.2612f };
break;
case 180:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "DT1_03_Shutter", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
StringCopy(&(uParam0->f_42), "", 32);
*uParam0 = { 23.9346f, -669.7552f, 30.8853f };
break;
case 181:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "Hospitaldoorsanim", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "Hospitaldoorsfixed", 32);
StringCopy(&(uParam0->f_42), "v_hospital", 32);
uParam0->f_33 = 0;
*uParam0 = { 300.9423f, -586.1784f, 42.2919f };
break;
case 135:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "swap_clean_apt", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "layer_mess_A", 32);
StringCopy(&(uParam0->f_42), "v_trevors", 32);
*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
break;
case 136:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "layer_mess_B", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
StringCopy(&(uParam0->f_42), "v_trevors", 32);
*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
break;
case 137:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "layer_mess_C", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
StringCopy(&(uParam0->f_42), "v_trevors", 32);
*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
break;
case 138:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "layer_sextoys_a", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
StringCopy(&(uParam0->f_42), "v_trevors", 32);
*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
break;
case 139:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "layer_wade_shit", 32);
StringCopy(&(uParam0->f_42), "v_trevors", 32);
*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
break;
case 140:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "swap_wade_sofa_A", 32);
StringCopy(&(uParam0->f_42), "v_trevors", 32);
*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
break;
case 141:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "layer_debra_pic", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
StringCopy(&(uParam0->f_42), "v_trevors", 32);
*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
break;
case 142:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "layer_torture", 32);
StringCopy(&(uParam0->f_42), "v_trevors", 32);
*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
break;
case 143:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "swap_sofa_A", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "swap_sofa_B", 32);
StringCopy(&(uParam0->f_42), "v_trevors", 32);
*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
break;
case 144:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "layer_whiskey", 32);
StringCopy(&(uParam0->f_42), "v_trevors", 32);
*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
break;
case 145:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "swap_mrJam_A", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "swap_mrJam_B", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
StringCopy(&(uParam0->f_42), "v_trevors", 32);
*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
break;
case 146:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "swap_mrJam_C", 32);
StringCopy(&(uParam0->f_42), "v_trevors", 32);
*uParam0 = { -1157.129f, -1523.028f, 9.6327f };
break;
case 147:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "vb_30_emissive", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "vb_30_murder", 32);
uParam0->f_33 = 0;
*uParam0 = { -1150.039f, -1521.761f, 9.6331f };
break;
case 148:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "vb_30_crimetape", 32);
uParam0->f_33 = 0;
*uParam0 = { -1150.039f, -1521.761f, 9.6331f };
break;
case 149:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "sheriff_cap", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
uParam0->f_33 = 0;
*uParam0 = { 1856.029f, 3682.998f, 33.2675f };
break;
case 150:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "CS1_16_Sheriff_Cap", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
uParam0->f_33 = 0;
*uParam0 = { -440.5073f, 6018.766f, 30.49f };
break;
case 151:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "ufo", 32);
uParam0->f_33 = 0;
*uParam0 = { 487.31f, 5588.386f, 793.0532f };
break;
case 152:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "ufo_eye", 32);
uParam0->f_33 = 0;
*uParam0 = { 487.31f, 5588.386f, 793.0532f };
break;
case 153:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "V_57_FranklinStuff", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "V_57_Franklin_LEFT", 32);
StringCopy(&(uParam0->f_42), "v_franklins", 32);
*uParam0 = { -13.9623f, -1440.614f, 30.1015f };
break;
case 154:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "V_57_GangBandana", 32);
StringCopy(&(uParam0->f_42), "v_franklins", 32);
*uParam0 = { -13.9623f, -1440.614f, 30.1015f };
break;
case 155:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "V_57_Safari", 32);
StringCopy(&(uParam0->f_42), "v_franklins", 32);
*uParam0 = { -13.9623f, -1440.614f, 30.1015f };
break;
case 172:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "V_19_Trevor_Mess", 32);
StringCopy(&(uParam0->f_42), "v_strip3", 32);
*uParam0 = { 96.4811f, -1291.294f, 28.2688f };
break;
case 182:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
uParam0->f_33 = 0;
*uParam0 = { 139.5795f, -3092.962f, 8.64631f };
uParam0->f_79 = { Vector(8.64631f, -3092.962f, 139.5795f) - Vector(4.1875f, 24f, 33.3125f) };
uParam0->f_82 = { Vector(8.64631f, -3092.962f, 139.5795f) + Vector(4.1875f, 24f, 33.3125f) };
uParam0->f_85 = { Vector(8.64631f, -3092.962f, 139.5795f) - Vector(4.1875f, 24f, 33.3125f) };
uParam0->f_88 = { Vector(8.64631f, -3092.962f, 139.5795f) + Vector(4.1875f, 24f, 33.3125f) };
uParam0->f_91[0] = 0;
uParam0->f_91[1] = 1;
uParam0->f_91[2] = 1;
break;
case 183:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
uParam0->f_33 = 0;
*uParam0 = { 203.7784f, -3131.767f, 7.041344f };
uParam0->f_79 = { Vector(7.041344f, -3131.767f, 203.7784f) - Vector(2.5625f, 2.75f, 4.875f) };
uParam0->f_82 = { Vector(7.041344f, -3131.767f, 203.7784f) + Vector(2.5625f, 2.75f, 4.875f) };
break;
case 184:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
uParam0->f_33 = 0;
*uParam0 = { 144.7706f, -2982.659f, 7.952507f };
uParam0->f_79 = { Vector(7.952507f, -2982.659f, 144.7706f) - Vector(3.125f, 3.4375f, 5.3125f) };
uParam0->f_82 = { Vector(7.952507f, -2982.659f, 144.7706f) + Vector(3.125f, 3.4375f, 5.3125f) };
break;
case 185:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
uParam0->f_33 = 1;
*uParam0 = { -1154.965f, -1520.983f, 9.132731f };
uParam0->f_79 = { -1154.965f, -1520.983f, 9.132731f };
uParam0->f_82 = { -1158.965f, -1524.983f, 11.63273f };
break;
case 187:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
uParam0->f_33 = 1;
*uParam0 = { -1052.204f, 371.9537f, 67.914f };
uParam0->f_79 = { -1052.204f, 371.9537f, 67.914f };
uParam0->f_82 = { -1048.064f, 368.0221f, 70.9128f };
break;
case 186:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
uParam0->f_33 = 1;
*uParam0 = { 1954.984f, 3792.991f, 30.3086f };
uParam0->f_79 = { 1954.984f, 3792.991f, 30.3086f };
uParam0->f_82 = { 1983.45f, 3830.78f, 36.2726f };
break;
case 188:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
uParam0->f_33 = 1;
*uParam0 = { -1122.202f, 48.5724f, 51.4652f };
uParam0->f_79 = { -1122.202f, 48.5724f, 51.4652f };
uParam0->f_82 = { -1076.233f, 92.1041f, 60.0617f };
break;
case 81:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "KorizTempWalls", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
uParam0->f_33 = 0;
*uParam0 = { -2199.138f, 223.4648f, 181.1118f };
break;
case 82:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "mic3_chopper_debris", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
uParam0->f_33 = 0;
*uParam0 = { -2242.785f, 263.4779f, 173.6154f };
break;
case 83:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "chemgrill_grp1", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
*uParam0 = { 3832.9f, 3665.5f, -23.4f };
break;
case 84:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "Plane_crash_trench", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
uParam0->f_33 = 0;
*uParam0 = { 2814.7f, 4758.5f, 47.9f };
break;
case 85:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "golfflags", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
*uParam0 = { -1096.505f, 4.5754f, 49.8103f };
break;
case 86:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "yogagame", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
*uParam0 = { -781.6566f, 186.8937f, 71.8352f };
break;
case 189:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "Carwash_with_spinners", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "Carwash_without_spinners", 32);
uParam0->f_33 = 0;
*uParam0 = { 55.7f, -1391.3f, 30.5f };
break;
case 190:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "KT_CarWash", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "KT_CarWash_NoBrush", 32);
uParam0->f_33 = 0;
*uParam0 = { 700.091f, -933.641f, 20.308f };
break;
case 191:
uParam0->f_3 = 1;
*uParam0 = { -1096.381f, -836.17f, 36.6755f };
uParam0->f_85 = { *uParam0 - Vector(25f, 25f, 15f) };
uParam0->f_88 = { *uParam0 + Vector(25f, 25f, 15f) };
uParam0->f_91[0] = 1;
uParam0->f_91[1] = 0;
break;
case 192:
uParam0->f_3 = 1;
*uParam0 = { 449.6558f, -980.1375f, 42.6918f };
uParam0->f_85 = { *uParam0 - Vector(25f, 25f, 15f) };
uParam0->f_88 = { *uParam0 + Vector(25f, 25f, 15f) };
uParam0->f_91[0] = 1;
uParam0->f_91[1] = 0;
break;
case 193:
uParam0->f_3 = 1;
*uParam0 = { 363.0175f, -1598.079f, 35.9502f };
uParam0->f_85 = { *uParam0 - Vector(25f, 25f, 15f) };
uParam0->f_88 = { *uParam0 + Vector(25f, 25f, 15f) };
uParam0->f_91[0] = 1;
uParam0->f_91[1] = 0;
break;
case 194:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "CS3_07_MPGates", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "", 32);
*uParam0 = { -1601.424f, 2808.213f, 16.2598f };
break;
case 97:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "DT1_03_Gr_Closed", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "", 32);
*uParam0 = { 23.7318f, -647.2123f, 37.9549f };
break;
case 98:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "FINBANK", 32);
*uParam0 = { 12.9689f, -648.4698f, 9.7693f };
break;
case 99:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "PAPER1_RCM_ALT", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "PAPER1_RCM", 32);
*uParam0 = { -1459.127f, 486.1281f, 115.2016f };
break;
case 100:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "SP1_10_fake_interior", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "SP1_10_real_interior", 32);
*uParam0 = { -248.4916f, -2010.509f, 34.5743f };
break;
case 101:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "facelobbyfake", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "facelobby", 32);
*uParam0 = { -1081.347f, -263.1502f, 38.7152f };
break;
case 195:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "atriumglstatic", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "atriumglmission", 32);
StringCopy(&(uParam0->f_8[2 /*8*/]), "atriumglcut", 32);
*uParam0 = { 136.1795f, -750.701f, 262.0516f };
break;
case 197:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "racetrack01", 32);
*uParam0 = { 2096f, 3168.7f, 42.9f };
break;
}
switch (iParam1)
{
case 156:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "showhome_only", 32);
StringCopy(&(uParam0->f_42), "v_franklinshouse", 32);
*uParam0 = { 7.0256f, 537.3075f, 175.0281f };
break;
case 157:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "franklin_unpacking", 32);
StringCopy(&(uParam0->f_42), "v_franklinshouse", 32);
*uParam0 = { 7.0256f, 537.3075f, 175.0281f };
break;
case 158:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "franklin_settled", 32);
StringCopy(&(uParam0->f_42), "v_franklinshouse", 32);
*uParam0 = { 7.0256f, 537.3075f, 175.0281f };
break;
case 163:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "progress_tshirt", 32);
StringCopy(&(uParam0->f_42), "v_franklinshouse", 32);
*uParam0 = { 7.0256f, 537.3075f, 175.0281f };
break;
case 159:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "bong_and_wine", 32);
StringCopy(&(uParam0->f_42), "v_franklinshouse", 32);
*uParam0 = { 7.0256f, 537.3075f, 175.0281f };
break;
case 161:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "progress_flyer", 32);
StringCopy(&(uParam0->f_42), "v_franklinshouse", 32);
*uParam0 = { 7.0256f, 537.3075f, 175.0281f };
break;
case 162:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "progress_tux", 32);
StringCopy(&(uParam0->f_42), "v_franklinshouse", 32);
*uParam0 = { 7.0256f, 537.3075f, 175.0281f };
break;
case 160:
uParam0->f_3 = 2;
StringCopy(&(uParam0->f_8[0 /*8*/]), "locked", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "unlocked", 32);
StringCopy(&(uParam0->f_42), "v_franklinshouse", 32);
*uParam0 = { 7.0256f, 537.3075f, 175.0281f };
break;
case 96:
uParam0->f_3 = 1;
StringCopy(&(uParam0->f_8[0 /*8*/]), "", 32);
StringCopy(&(uParam0->f_8[1 /*8*/]), "chophillskennel", 32);
*uParam0 = { 19.0568f, 536.4818f, 169.6277f };
break;
}
return 1;
}
int func_607(int iParam0)
{
switch (iParam0)
{
case 46:
return 42;
break;
case 47:
return 43;
break;
case 49:
return 44;
break;
case 50:
return 45;
break;
case 8:
if (unk_0x05EFB6A616B6FADE(Global_106070.f_18546.f_382, 0))
{
return 46;
}
break;
case 16:
return 47;
break;
case 38:
return 48;
break;
case 39:
return 49;
break;
case 40:
return 50;
break;
case 41:
return 51;
break;
case 42:
return 52;
break;
case 43:
if (Global_106070.f_9057.f_99.f_58[101])
{
return 53;
}
else
{
return 54;
}
break;
case 20:
return 55;
break;
}
return 0;
}
void func_608(int iParam0, bool bParam1)
{
switch (iParam0)
{
case 46:
func_276(4, bParam1);
break;
case 16:
func_276(6, bParam1);
break;
case 37:
func_276(17, bParam1);
break;
case 31:
func_276(16, bParam1);
break;
}
}
void func_609(int iParam0, int iParam1)
{
if (iParam0 == 235 || iParam0 == 0)
{
return;
}
Global_106070.f_8585[iParam0] = 1;
Global_106070.f_8585.f_236[iParam0] = (unk_0xFD34717937104F1C() + iParam1);
}
int func_610(char* sParam0)
{
int iVar0;
iVar0 = 1424;
if (!unk_0xD4DD82067BC13449(sParam0))
{
return 1;
}
if (unk_0x3CAC2741CC1A631F(sParam0, "controller_Races"))
{
if (unk_0x8B1574454E8C2421(joaat("controller_races")) > 0)
{
return 1;
}
iVar0 = 128;
}
unk_0xD75A4240F0AD8613(sParam0);
if (unk_0xB1FDFCECA75CE4A7(sParam0))
{
start_new_script(sParam0, iVar0);
unk_0x4659F4154D948B01(sParam0);
return 1;
}
return 0;
}
int func_611(char* sParam0, int iParam1)
{
int iVar0;
char* sVar1;
int iVar2;
int iVar3;
iVar2 = unk_0xFEB6EEC0545AF7AA(sParam0);
iVar3 = 0;
iVar3 = 0;
while (iVar3 < 63)
{
iVar0 = iVar3;
func_71(iVar0, &sVar1);
if (unk_0xFEB6EEC0545AF7AA(sVar1) == iVar2)
{
return iVar0;
}
iVar3++;
}
if (iParam1 == 0)
{
}
return -1;
}
int func_612(vector3 vParam0, float fParam1, int iParam2)
{
if (unk_0x58E3CCF930D23BD5(unk_0xD4E735F4B6A956AC()))
{
unk_0x62BAB49318F4FE6E(0);
unk_0xFDD15D670AD33E10(vParam0, 5f, 1, 0, 0, false);
if (unk_0xDC5D81351D6A4DDB(unk_0xA19140A5C42D8715()))
{
if (!unk_0x4915F4759304D5CF(unk_0xA19140A5C42D8715()))
{
unk_0x4299736016AECE26(unk_0xA19140A5C42D8715(), vParam0, 1, false, 0, 1);
unk_0x92DDCF53AA47A63D(unk_0xA19140A5C42D8715(), fParam1);
unk_0xAA32DD4848CF93E0(0f, 1065353216);
unk_0xD87B76260C547F31(0f);
}
}
unk_0x543A213BF1AB6832(vParam0, 600f, 0);
wait(0);
if (unk_0x58E3CCF930D23BD5(unk_0xD4E735F4B6A956AC()))
{
unk_0xDEE4574BA71257AB(unk_0xD4E735F4B6A956AC());
}
unk_0xFDD15D670AD33E10(vParam0, 5000f, 1, 0, 0, false);
func_616(vParam0, 5000f, 0);
unk_0x39F8A3E01BC1A69B(vParam0, 5000f, 0);
unk_0xC8F6C7A08A4B067D(vParam0, 5000f);
unk_0x8566A4AC1CA77939(vParam0, 5000f);
func_615();
func_614();
settimera(0);
unk_0x62BAB49318F4FE6E(1);
if (!unk_0xE6F861B0A4D50CE0())
{
while (!unk_0x543A213BF1AB6832(vParam0, 4500f, 0))
{
wait(0);
if (timera() > 2000)
{
unk_0x62BAB49318F4FE6E(0);
return 0;
}
}
}
settimera(0);
while (!unk_0xD3512CB88BB3513F())
{
wait(0);
if (timera() > 20000)
{
unk_0x62BAB49318F4FE6E(0);
if (unk_0xE6F861B0A4D50CE0())
{
unk_0x99D88BBC8B927586();
}
return 0;
}
}
if (unk_0xDC5D81351D6A4DDB(unk_0xA19140A5C42D8715()))
{
if (!unk_0x4915F4759304D5CF(unk_0xA19140A5C42D8715()))
{
if (unk_0xE6F861B0A4D50CE0())
{
unk_0x99D88BBC8B927586();
}
unk_0x62BAB49318F4FE6E(0);
settimera(0);
unk_0xE678AB2AEE807BC7();
if (iParam2 == 1)
{
unk_0x59CC479D3D26F6B7();
}
else
{
settimera(990);
}
unk_0x7329D9D6A88DE5F3();
}
}
while (((!unk_0xF01711E193A8A023() || !func_613()) || timera() < 10) && timera() < 1000)
{
wait(0);
}
if (timera() > 1000)
{
if (iParam2 == 1)
{
}
}
unk_0xAA32DD4848CF93E0(0f, 1065353216);
unk_0xD87B76260C547F31(0f);
unk_0x62BAB49318F4FE6E(0);
return 1;
}
unk_0x62BAB49318F4FE6E(0);
return 0;
}
bool func_613()
{
return !Global_70024.f_553;
}
void func_614()
{
Global_70024.f_553 = 1;
Global_70024.f_554 = 0;
}
void func_615()
{
int iVar0;
iVar0 = 0;
while (iVar0 < 68)
{
Global_70024[iVar0] = 0;
iVar0++;
}
}
void func_616(vector3 vParam0, float fParam1, bool bParam2)
{
int iVar0;
iVar0 = 0;
while (iVar0 < 68)
{
if (func_621(&(Global_70024.f_555[0 /*21*/]), iVar0))
{
if (unk_0x499324B3EF19C288(vParam0, Global_70024.f_555[0 /*21*/], bParam2) <= fParam1)
{
func_617(iVar0);
}
}
iVar0++;
}
}
void func_617(int iParam0)
{
bool bVar0;
if (iParam0 == -1)
{
return;
}
if (func_621(&(Global_70024.f_555[0 /*21*/]), iParam0))
{
if (unk_0xDC5D81351D6A4DDB(Global_70024.f_139[iParam0]))
{
bVar0 = true;
if (!unk_0x4915F4759304D5CF(unk_0xA19140A5C42D8715()))
{
if (unk_0x1095F403F52B42E1(Global_70024.f_139[iParam0], 0))
{
if (unk_0xE0FD180CD24C0B67(unk_0xA19140A5C42D8715(), Global_70024.f_139[iParam0], 0))
{
bVar0 = false;
}
}
}
if (bVar0)
{
unk_0x1F7948851FB36E88(Global_70024.f_139[iParam0], true, 1);
unk_0x4C842FAB634AC89E(&(Global_70024.f_139[iParam0]));
}
}
Global_70024[iParam0] = 1;
if (unk_0x05EFB6A616B6FADE(Global_70024.f_555[0 /*21*/].f_9, 13))
{
if (((((iParam0 == 24 && func_600(iParam0, 0)) && Global_70933.f_66 == 0) && Global_106070.f_32605.f_1958[Global_70024.f_555[0 /*21*/].f_14] != 0) && Global_106070.f_32605.f_1958[Global_70024.f_555[0 /*21*/].f_14] > 3) && (!func_619(0, Global_70024.f_555[0 /*21*/].f_12) || !func_619(1, Global_70024.f_555[0 /*21*/].f_12)))
{
func_618(&(Global_106070.f_32605.f_69[Global_70024.f_555[0 /*21*/].f_14 /*78*/]), &Global_70933);
Global_71011 = Global_106070.f_32605.f_5591;
}
func_598(iParam0, 0);
}
}
}
void func_618(var uParam0, var uParam1)
{
uParam1->f_66 = uParam0->f_66;
*uParam1 = *uParam0;
uParam1->f_1 = { uParam0->f_1 };
uParam1->f_5 = uParam0->f_5;
uParam1->f_6 = uParam0->f_6;
uParam1->f_7 = uParam0->f_7;
uParam1->f_8 = uParam0->f_8;
uParam1->f_9 = { uParam0->f_9 };
uParam1->f_59 = { uParam0->f_59 };
uParam1->f_62 = uParam0->f_62;
uParam1->f_63 = uParam0->f_63;
uParam1->f_64 = uParam0->f_64;
uParam1->f_65 = uParam0->f_65;
uParam1->f_77 = uParam0->f_77;
uParam1->f_67 = uParam0->f_67;
uParam1->f_69 = uParam0->f_69;
uParam1->f_68 = uParam0->f_68;
uParam1->f_71 = uParam0->f_71;
uParam1->f_72 = uParam0->f_72;
uParam1->f_73 = uParam0->f_73;
uParam1->f_74 = uParam0->f_74;
uParam1->f_75 = uParam0->f_75;
uParam1->f_76 = uParam0->f_76;
}
int func_619(int iParam0, int iParam1)
{
int iVar0;
switch (iParam1)
{
case 0:
iVar0 = 0;
break;
case 1:
iVar0 = 1;
break;
case 2:
iVar0 = 2;
break;
}
if (iParam0 < 0 || iParam0 >= func_620(&(Global_106070.f_32605.f_5038[iVar0 /*157*/])))
{
return 0;
}
return func_234(Global_106070.f_32605.f_5038[iVar0 /*157*/][iParam0 /*78*/].f_66, 0);
}
int func_620(var uParam0)
{
return *uParam0;
}
int func_621(var uParam0, int iParam1)
{
int iVar0;
int iVar1;
*uParam0 = { 0f, 0f, 0f };
uParam0->f_3 = 0f;
uParam0->f_4 = 0;
StringCopy(&(uParam0->f_5), "", 16);
uParam0->f_9 = 0;
uParam0->f_10 = 0;
uParam0->f_11 = 0;
uParam0->f_12 = 145;
uParam0->f_13 = -1;
uParam0->f_14 = 0;
uParam0->f_15 = { 0f, 0f, 0f };
uParam0->f_18 = { 0f, 0f, 0f };
switch (iParam1)
{
case 0:
*uParam0 = { -831.8538f, 172.1154f, 69.9058f };
uParam0->f_3 = 157.5705f;
uParam0->f_4 = func_323(0, 1);
uParam0->f_12 = 0;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 20);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 7);
iVar0 = 1;
break;
case 1:
*uParam0 = { 1970.943f, 3801.684f, 31.1396f };
uParam0->f_3 = 301.3964f;
uParam0->f_4 = func_323(0, 1);
uParam0->f_12 = 0;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 20);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 7);
iVar0 = 1;
break;
case 2:
*uParam0 = { -22.6297f, -1439.137f, 29.6549f };
uParam0->f_3 = 180.0808f;
uParam0->f_4 = func_323(1, 1);
uParam0->f_12 = 1;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 20);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 7);
iVar0 = 1;
break;
case 3:
*uParam0 = { -22.5229f, -1434.699f, 29.6552f };
uParam0->f_3 = 141.6114f;
uParam0->f_4 = func_323(1, 2);
uParam0->f_12 = 1;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 19);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 7);
iVar0 = 1;
break;
case 4:
*uParam0 = { 10.9281f, 545.669f, 174.7951f };
uParam0->f_3 = 61.392f;
uParam0->f_4 = func_323(1, 1);
uParam0->f_12 = 1;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 20);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 7);
iVar0 = 1;
break;
case 5:
*uParam0 = { 6.1093f, 544.9742f, 174.2835f };
uParam0->f_3 = 92.1548f;
uParam0->f_4 = func_323(1, 2);
uParam0->f_12 = 1;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 19);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 7);
iVar0 = 1;
break;
case 6:
*uParam0 = { 1981.416f, 3808.131f, 31.1384f };
uParam0->f_3 = 117.2557f;
uParam0->f_4 = func_323(2, 1);
uParam0->f_12 = 2;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 20);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 7);
iVar0 = 1;
break;
case 7:
*uParam0 = { -1158.488f, -1529.367f, 3.8995f };
uParam0->f_3 = 35.7505f;
uParam0->f_4 = func_323(2, 1);
uParam0->f_12 = 2;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 20);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 7);
iVar0 = 1;
break;
case 8:
*uParam0 = { 148.2868f, -1270.569f, 28.2252f };
uParam0->f_3 = 208.4685f;
uParam0->f_4 = func_323(2, 1);
uParam0->f_12 = 2;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 20);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 7);
iVar0 = 1;
break;
case 9:
*uParam0 = { 1459.509f, -1380.45f, 78.3259f };
uParam0->f_3 = 99.6211f;
uParam0->f_4 = joaat("scorcher");
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 6);
iVar0 = 1;
break;
case 10:
*uParam0 = { -1518.947f, -1387.865f, -0.5134f };
uParam0->f_3 = 98.3867f;
uParam0->f_4 = joaat("seashark");
iVar0 = 1;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 6);
break;
case 11:
*uParam0 = { 353.0926f, 3577.593f, 32.351f };
uParam0->f_3 = 16.6205f;
uParam0->f_4 = joaat("duster");
iVar0 = 1;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 6);
break;
case 12:
uParam0->f_14 = 0;
*uParam0 = { -1652.004f, -3142.348f, 12.9921f };
uParam0->f_3 = 329.1082f;
uParam0->f_12 = 0;
uParam0->f_13 = 359;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 0);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 21);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 14);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 7);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 10);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 12);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 28);
iVar0 = 1;
break;
case 13:
uParam0->f_14 = 1;
*uParam0 = { -1271.649f, -3380.685f, 12.9451f };
uParam0->f_3 = 329.5137f;
uParam0->f_12 = 1;
uParam0->f_13 = 359;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 0);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 21);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 14);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 7);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 10);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 12);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 28);
iVar0 = 1;
break;
case 14:
uParam0->f_14 = 2;
*uParam0 = { 1735.586f, 3294.531f, 40.1651f };
uParam0->f_3 = 194.9525f;
uParam0->f_12 = 2;
uParam0->f_13 = 359;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 0);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 21);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 14);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 7);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 10);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 12);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 28);
iVar0 = 1;
break;
case 15:
uParam0->f_14 = 3;
*uParam0 = { -846.27f, -1363.19f, 0.22f };
uParam0->f_3 = 108.78f;
uParam0->f_12 = 0;
uParam0->f_13 = 356;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 0);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 21);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 14);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 7);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 10);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 12);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 22);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 28);
iVar0 = 1;
break;
case 16:
uParam0->f_14 = 4;
*uParam0 = { -849.47f, -1354.99f, 0.24f };
uParam0->f_3 = 109.84f;
uParam0->f_12 = 1;
uParam0->f_13 = 356;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 0);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 21);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 14);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 7);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 10);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 12);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 22);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 28);
iVar0 = 1;
break;
case 17:
uParam0->f_14 = 5;
*uParam0 = { -852.47f, -1346.2f, 0.21f };
uParam0->f_3 = 108.76f;
uParam0->f_12 = 2;
uParam0->f_13 = 356;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 0);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 21);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 14);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 7);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 10);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 12);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 22);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 28);
iVar0 = 1;
break;
case 18:
uParam0->f_14 = 6;
*uParam0 = { -745.857f, -1433.904f, 4.0005f };
uParam0->f_12 = 0;
uParam0->f_13 = 360;
uParam0->f_15 = { -756.2952f, -1441.609f, 2.9184f };
uParam0->f_18 = { -738.0606f, -1423.068f, 8.2835f };
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 0);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 21);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 14);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 7);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 10);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 12);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 28);
iVar0 = 1;
break;
case 19:
uParam0->f_14 = 7;
*uParam0 = { -761.8486f, -1453.829f, 4.0005f };
uParam0->f_12 = 1;
uParam0->f_13 = 360;
uParam0->f_15 = { -772.8158f, -1459.957f, 3.2894f };
uParam0->f_18 = { -754.3353f, -1440.836f, 8.3334f };
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 0);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 21);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 14);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 7);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 10);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 12);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 28);
iVar0 = 1;
break;
case 20:
uParam0->f_14 = 8;
*uParam0 = { 1769.3f, 3244f, 41.1f };
uParam0->f_12 = 2;
uParam0->f_13 = 360;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 0);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 21);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 14);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 7);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 10);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 12);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 23);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 28);
iVar0 = 1;
break;
case 21:
uParam0->f_14 = 9;
*uParam0 = { 192.7897f, -1020.539f, -99.98f };
uParam0->f_3 = 180f;
uParam0->f_4 = 0;
uParam0->f_12 = 0;
uParam0->f_13 = 357;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 0);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 21);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 14);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 7);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 10);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 12);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 24);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 28);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 29);
iVar0 = 1;
break;
case 22:
uParam0->f_14 = 10;
*uParam0 = { 192.7897f, -1020.539f, -99.98f };
uParam0->f_3 = 180f;
uParam0->f_4 = 0;
uParam0->f_12 = 1;
uParam0->f_13 = 357;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 0);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 21);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 14);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 7);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 10);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 12);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 24);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 28);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 29);
iVar0 = 1;
break;
case 23:
uParam0->f_14 = 11;
*uParam0 = { 192.7897f, -1020.539f, -99.98f };
uParam0->f_3 = 180f;
uParam0->f_4 = 0;
uParam0->f_12 = 2;
uParam0->f_13 = 357;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 0);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 21);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 14);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 7);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 10);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 12);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 24);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 28);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 29);
iVar0 = 1;
break;
case 26:
case 27:
case 28:
iVar1 = (iParam1 - 26);
uParam0->f_14 = (12 + iVar1);
*uParam0 = { 196.2794f, -1020.479f, -99.98f };
uParam0->f_3 = 180f;
uParam0->f_4 = 0;
uParam0->f_12 = (0 + iVar1);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 10);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 12);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 7);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 27);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 24);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 29);
iVar0 = 1;
break;
case 29:
case 30:
case 31:
iVar1 = (iParam1 - 29);
uParam0->f_14 = (15 + iVar1);
*uParam0 = { 199.8872f, -1020.048f, -99.98f };
uParam0->f_3 = 180f;
uParam0->f_4 = 0;
uParam0->f_12 = (0 + iVar1);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 10);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 12);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 7);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 27);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 24);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 29);
iVar0 = 1;
break;
case 32:
case 33:
case 34:
iVar1 = (iParam1 - 32);
uParam0->f_14 = (18 + iVar1);
*uParam0 = { 203.6006f, -1019.776f, -99.98f };
uParam0->f_3 = 180f;
uParam0->f_4 = 0;
uParam0->f_12 = (0 + iVar1);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 10);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 12);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 7);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 27);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 24);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 29);
iVar0 = 1;
break;
case 24:
uParam0->f_14 = 21;
*uParam0 = { 0f, 0f, 0f };
uParam0->f_3 = 0f;
uParam0->f_4 = 0;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 10);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 11);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 13);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 12);
iVar0 = 1;
break;
case 25:
uParam0->f_14 = 22;
*uParam0 = { 723.2515f, -632.0496f, 27.1484f };
uParam0->f_3 = 12.9316f;
uParam0->f_4 = joaat("tailgater");
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 10);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 11);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 13);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 12);
iVar0 = 1;
break;
case 35:
*uParam0 = { -51.23f, 3111.9f, 24.95f };
uParam0->f_3 = 46.78f;
uParam0->f_4 = joaat("proptrailer");
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 8);
iVar0 = 1;
break;
case 36:
*uParam0 = { -55.7984f, -1096.586f, 25.4223f };
uParam0->f_3 = 308.0596f;
uParam0->f_4 = joaat("bjxl");
uParam0->f_10 = 126;
uParam0->f_11 = 126;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 9);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 13);
iVar0 = 1;
break;
case 37:
*uParam0 = { -2892.93f, 3192.37f, 11.66f };
uParam0->f_3 = -132.35f;
uParam0->f_4 = joaat("velum");
uParam0->f_10 = 157;
uParam0->f_11 = 157;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 9);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 23);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 13);
iVar0 = 1;
break;
case 38:
*uParam0 = { 1744.308f, 3270.673f, 40.2076f };
uParam0->f_3 = 125f;
uParam0->f_4 = joaat("cargobob3");
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 23);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 8);
iVar0 = 1;
break;
case 39:
*uParam0 = { 1751.44f, 3322.643f, 42.1855f };
uParam0->f_3 = 268.134f;
uParam0->f_4 = joaat("submersible");
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 23);
iVar0 = 1;
break;
case 41:
*uParam0 = { 1377.104f, -2076.2f, 52f };
uParam0->f_3 = 37.5f;
uParam0->f_4 = joaat("towtruck");
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 8);
iVar0 = 1;
break;
case 40:
*uParam0 = { 1380.42f, -2072.77f, 51.7607f };
uParam0->f_3 = 37.5f;
uParam0->f_4 = joaat("trash");
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 8);
iVar0 = 1;
break;
case 42:
*uParam0 = { 1359.389f, 3618.441f, 33.8907f };
uParam0->f_3 = 108.2337f;
uParam0->f_4 = joaat("barracks");
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 8);
iVar0 = 1;
break;
case 43:
*uParam0 = { 693.1154f, -1018.155f, 21.6387f };
uParam0->f_3 = 177.6454f;
uParam0->f_4 = 1938952078;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 23);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 8);
iVar0 = 1;
break;
case 44:
*uParam0 = { -73.6963f, 495.124f, 143.5226f };
uParam0->f_3 = 155.5994f;
uParam0->f_4 = joaat("vacca");
iVar0 = 1;
break;
case 45:
*uParam0 = { -67.6314f, 891.8266f, 234.5348f };
uParam0->f_3 = 294.993f;
uParam0->f_4 = joaat("surano");
iVar0 = 1;
break;
case 46:
*uParam0 = { 533.9048f, -169.2469f, 53.7005f };
uParam0->f_3 = 1.2998f;
uParam0->f_4 = joaat("tornado2");
iVar0 = 1;
break;
case 47:
*uParam0 = { -726.8914f, -408.6952f, 34.0416f };
uParam0->f_3 = 267.7392f;
uParam0->f_4 = joaat("superd");
iVar0 = 1;
break;
case 48:
*uParam0 = { -1321.519f, 261.3993f, 61.5709f };
uParam0->f_3 = 350.7697f;
uParam0->f_4 = joaat("double");
iVar0 = 1;
break;
case 49:
*uParam0 = { -1267.999f, 451.6463f, 93.7071f };
uParam0->f_3 = 48.9311f;
uParam0->f_4 = joaat("double");
iVar0 = 1;
break;
case 50:
*uParam0 = { -1062.076f, -226.7637f, 37.157f };
uParam0->f_3 = 234.2767f;
uParam0->f_4 = joaat("double");
iVar0 = 1;
break;
case 51:
*uParam0 = { 68.16914f, -1558.958f, 29.46904f };
uParam0->f_3 = 49.90575f;
uParam0->f_4 = joaat("rumpo2");
uParam0->f_12 = 2;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 26);
iVar0 = 1;
break;
case 52:
*uParam0 = { 589.4399f, 2736.708f, 42.03316f };
uParam0->f_3 = -175.7105f;
uParam0->f_4 = joaat("rumpo2");
uParam0->f_12 = 2;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 26);
iVar0 = 1;
break;
case 53:
*uParam0 = { -488.774f, -344.5721f, 34.36356f };
uParam0->f_3 = 82.4042f;
uParam0->f_4 = joaat("rumpo2");
uParam0->f_12 = 2;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 26);
iVar0 = 1;
break;
case 54:
*uParam0 = { 288.8808f, -585.4728f, 43.15428f };
uParam0->f_3 = -20.80707f;
uParam0->f_4 = joaat("rumpo2");
uParam0->f_12 = 2;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 26);
iVar0 = 1;
break;
case 55:
*uParam0 = { 304.8294f, -1383.674f, 31.67744f };
uParam0->f_3 = -41.11603f;
uParam0->f_4 = joaat("rumpo2");
uParam0->f_12 = 2;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 26);
iVar0 = 1;
break;
case 56:
*uParam0 = { 1126.194f, -1481.486f, 34.7016f };
uParam0->f_3 = -91.43369f;
uParam0->f_4 = joaat("rumpo2");
uParam0->f_12 = 2;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 26);
iVar0 = 1;
break;
case 57:
*uParam0 = { -1598.36f, 5252.84f, 0f };
uParam0->f_3 = 28.14f;
uParam0->f_4 = joaat("submersible");
uParam0->f_13 = 308;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 2);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 30);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 6);
iVar0 = 1;
break;
case 58:
*uParam0 = { -1602.62f, 5260.37f, 0.86f };
uParam0->f_3 = 25.32f;
uParam0->f_4 = joaat("dinghy");
uParam0->f_13 = 404;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 2);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 22);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 6);
iVar0 = 1;
break;
case 59:
*uParam0 = { 2116.571f, 4763.279f, 40.1596f };
uParam0->f_3 = 198.723f;
uParam0->f_4 = joaat("bfinjection");
iVar0 = 1;
break;
case 60:
*uParam0 = { 1133.21f, 120.2f, 80.9f };
uParam0->f_3 = 134.4f;
if (func_242())
{
uParam0->f_4 = joaat("blimp2");
}
else
{
uParam0->f_4 = joaat("blimp");
}
uParam0->f_13 = 401;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 13);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 2);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 1);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 23);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 21);
iVar0 = 1;
break;
case 61:
*uParam0 = { -806.31f, -2679.65f, 13.9f };
uParam0->f_3 = 150.54f;
if (func_242())
{
uParam0->f_4 = joaat("blimp2");
}
else
{
uParam0->f_4 = joaat("blimp");
}
uParam0->f_13 = 401;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 13);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 2);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 1);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 23);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 21);
iVar0 = 1;
break;
case 62:
*uParam0 = { 1985.85f, 3828.96f, 31.98f };
uParam0->f_3 = -16.58f;
uParam0->f_4 = joaat("blazer3");
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 6);
iVar0 = 1;
break;
case 63:
*uParam0 = { 3870.75f, 4464.67f, 0f };
uParam0->f_3 = 0f;
uParam0->f_4 = joaat("submersible2");
uParam0->f_13 = 308;
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 0);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 21);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 23);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 6);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 30);
iVar0 = 1;
break;
case 64:
*uParam0 = { 1257.729f, -2564.474f, 41.717f };
uParam0->f_3 = 284.5561f;
uParam0->f_4 = joaat("dukes2");
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 6);
iVar0 = 1;
break;
case 65:
*uParam0 = { 643.2823f, 3014.152f, 42.2733f };
uParam0->f_3 = 128.0554f;
uParam0->f_4 = joaat("dukes2");
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 6);
iVar0 = 1;
break;
case 66:
*uParam0 = { 38.9368f, 850.8677f, 196.3f };
uParam0->f_3 = 311.6813f;
uParam0->f_4 = joaat("dodo");
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 30);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 23);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 6);
iVar0 = 1;
break;
case 67:
*uParam0 = { 1333.875f, 4262.226f, 30.78f };
uParam0->f_3 = 262.5293f;
uParam0->f_4 = joaat("dodo");
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 30);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 23);
unk_0x2BCFB39E86340DAA(&(uParam0->f_9), 6);
iVar0 = 1;
break;
}
if (unk_0x05EFB6A616B6FADE(uParam0->f_9, 10))
{
uParam0->f_4 = Global_106070.f_32605.f_69[uParam0->f_14 /*78*/].f_66;
if (iParam1 == 14)
{
if (((((uParam0->f_4 == joaat("miljet") || uParam0->f_4 == joaat("besra")) || uParam0->f_4 == joaat("luxor")) || uParam0->f_4 == joaat("shamal")) || uParam0->f_4 == joaat("titan")) || uParam0->f_4 == joaat("luxor2"))
{
*uParam0 = { 1678.8f, 3229.6f, 41.8f };
uParam0->f_3 = 106.0906f;
}
}
if (!func_244(Global_106070.f_32605.f_1864[uParam0->f_14 /*3*/], 0f, 0f, 0f, 0))
{
*uParam0 = { Global_106070.f_32605.f_1864[uParam0->f_14 /*3*/] };
}
if (Global_106070.f_32605.f_1934[uParam0->f_14] != -1f)
{
uParam0->f_3 = Global_106070.f_32605.f_1934[uParam0->f_14];
}
}
if (unk_0x05EFB6A616B6FADE(uParam0->f_9, 19))
{
if (!func_244(Global_106070.f_2355.f_539.f_3568[1 /*10*/][uParam0->f_12 /*3*/], 0f, 0f, 0f, 0))
{
*uParam0 = { Global_106070.f_2355.f_539.f_3568[1 /*10*/][uParam0->f_12 /*3*/] };
uParam0->f_3 = Global_106070.f_2355.f_539.f_3589[1 /*4*/][uParam0->f_12];
}
}
else if (unk_0x05EFB6A616B6FADE(uParam0->f_9, 20))
{
if (!func_244(Global_106070.f_2355.f_539.f_3568[0 /*10*/][uParam0->f_12 /*3*/], 0f, 0f, 0f, 0))
{
*uParam0 = { Global_106070.f_2355.f_539.f_3568[0 /*10*/][uParam0->f_12 /*3*/] };
uParam0->f_3 = Global_106070.f_2355.f_539.f_3589[0 /*4*/][uParam0->f_12];
}
}
return iVar0;
}
Vector3 func_622()
{
vector3 vVar0;
int iVar1;
vVar0 = { 0f, 0f, 0f };
iVar1 = Global_71451;
switch (iVar1)
{
case 68:
vVar0 = { 354.3055f, -1722.206f, 28.259f };
break;
case 33:
vVar0 = { 1062.283f, -357.3208f, 66.1474f };
break;
case 89:
Global_89823 = unk_0x22C775856F4633CA(1, 4);
switch (Global_89823)
{
case 1:
vVar0 = { -745.479f, -1118.11f, 9.6798f };
break;
case 2:
vVar0 = { 895.8368f, -788.0649f, 41.9022f };
break;
case 3:
vVar0 = { -964.6421f, -336.7097f, 36.8155f };
break;
}
break;
case 88:
Global_89823 = 1;
vVar0 = { 1261.442f, 589.6306f, 80.5991f };
break;
case 92:
vVar0 = { 45.73f, 3064.274f, 39.943f };
break;
case 72:
vVar0 = { 1219.186f, -2977.9f, 4.8653f };
break;
case 12:
vVar0 = { 1991.076f, 3054.247f, 46.2147f };
break;
default:
if (Global_84115[Global_71451 /*34*/].f_10 != 263)
{
vVar0 = { func_623(Global_84115[Global_71451 /*34*/].f_10, 0) };
}
break;
}
return vVar0;
}
Vector3 func_623(int iParam0, int iParam1)
{
int iVar0;
iVar0 = iParam0;
if ((iVar0 < 0 || iVar0 >= 263) || iParam0 == 263)
{
return 0f, 0f, 0f;
}
return Global_25834[iVar0 /*23*/][iParam1 /*3*/];
}
void func_624(int iParam0)
{
int iVar0;
int iVar1;
iVar0 = 0;
iVar1 = func_48(unk_0xA19140A5C42D8715());
if (func_67(iParam0, iVar1))
{
iVar0 = func_696(iVar1);
}
else if (func_67(iParam0, 0))
{
iVar0 = 0;
}
else if (func_67(iParam0, 1))
{
iVar0 = 1;
}
else if (func_67(iParam0, 2))
{
iVar0 = 2;
}
if (!unk_0x4915F4759304D5CF(unk_0xA19140A5C42D8715()))
{
while (!func_625(iVar0, 1))
{
wait(0);
}
}
}
int func_625(int iParam0, bool bParam1)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
vector3 vVar4;
Global_17228.f_13 = 0;
if (unk_0x4915F4759304D5CF(unk_0xA19140A5C42D8715()))
{
return 1;
}
iVar0 = func_695(iParam0);
iVar1 = func_49(iVar0);
if (iVar1 == 0)
{
return 1;
}
if (unk_0x934175823EA79DA0(unk_0xA19140A5C42D8715(), iVar1))
{
return 1;
}
unk_0xCACEBBBEAD8F262E(iVar1);
if (!unk_0x7FC99CCC73354033(iVar1))
{
return 0;
}
if (unk_0x5D7DFE2058701942(unk_0xA19140A5C42D8715(), 0))
{
iVar2 = unk_0xCAEB6CE71A2C7212(unk_0xA19140A5C42D8715(), 0);
if (unk_0xA19140A5C42D8715() == unk_0xB0D49A1F9F054602(iVar2, -1, 0))
{
iVar3 = -1;
}
else if (unk_0xA19140A5C42D8715() == unk_0xB0D49A1F9F054602(iVar2, 0, 0))
{
iVar3 = 0;
}
else if (unk_0xA19140A5C42D8715() == unk_0xB0D49A1F9F054602(iVar2, 1, 0))
{
iVar3 = 1;
}
else if (unk_0xA19140A5C42D8715() == unk_0xB0D49A1F9F054602(iVar2, 2, 0))
{
iVar3 = 2;
}
else
{
iVar3 = -1;
}
}
else
{
iVar2 = 0;
}
if (unk_0xDC5D81351D6A4DDB(iVar2) && unk_0x1095F403F52B42E1(iVar2, 0))
{
unk_0x836A6A722DEA63F1(unk_0xA19140A5C42D8715());
func_694(&(Global_17182[iParam0]), iVar0, iVar2, iVar3, bParam1, 0, 0);
}
else
{
vVar4 = { unk_0xE2BBD32891C18569(unk_0xA19140A5C42D8715(), true) };
unk_0x8F7BA8E028ADF980(vVar4, &(vVar4.f_2), 0, 0);
func_664(&(Global_17182[iParam0]), iVar0, vVar4, unk_0x552C823E1D2A019C(unk_0xA19140A5C42D8715()), bParam1, 0, 0);
}
Global_17182.f_7 = iParam0;
Global_17182.f_39 = 1;
func_628(&Global_17182, 0, 0, 0);
func_626(iParam0);
return 1;
}
void func_626(int iParam0)
{
return;
Global_17228.f_126 = 1;
Global_17228.f_127 = func_627(iParam0);
Global_17228.f_129 = unk_0xFD34717937104F1C();
}
int func_627(int iParam0)
{
if (iParam0 == 0)
{
return 3;
}
else if (iParam0 == 1)
{
return 0;
}
else if (iParam0 == 2)
{
return 1;
}
else if (iParam0 == 3)
{
return 2;
}
return 0;
}
int func_628(var uParam0, bool bParam1, bool bParam2, int iParam3)
{
int iVar0;
int iVar1;
int iVar2;
float fVar3;
int iVar4;
int iVar5;
char cVar6[64];
int iVar7;
var uVar8;
char* sVar9;
if (!uParam0->f_39)
{
if (uParam0->f_7 == 4)
{
return 1;
}
}
if ((!unk_0x4915F4759304D5CF((*uParam0)[uParam0->f_7]) && !unk_0x4915F4759304D5CF(unk_0xA19140A5C42D8715())) && (*uParam0)[uParam0->f_7] != unk_0xA19140A5C42D8715())
{
if (!bParam2)
{
if ((unk_0x685AE6AF34B35D3B(unk_0xA19140A5C42D8715()) && !unk_0x463E3A48A46C9195(unk_0xA19140A5C42D8715())) && !unk_0x3D77D31E25961596(unk_0xA19140A5C42D8715()))
{
unk_0x836A6A722DEA63F1(unk_0xA19140A5C42D8715());
}
else
{
unk_0x9568B1B58F78FF36(unk_0xA19140A5C42D8715());
}
if ((unk_0x685AE6AF34B35D3B((*uParam0)[uParam0->f_7]) && !unk_0x463E3A48A46C9195((*uParam0)[uParam0->f_7])) && !unk_0x3D77D31E25961596((*uParam0)[uParam0->f_7]))
{
unk_0x836A6A722DEA63F1((*uParam0)[uParam0->f_7]);
}
else
{
unk_0x9568B1B58F78FF36((*uParam0)[uParam0->f_7]);
}
}
iVar0 = unk_0xA19140A5C42D8715();
iVar1 = func_44();
if (!uParam0->f_23)
{
func_658(iVar0, 0);
}
func_656(iVar1, &iVar0);
unk_0x13E0A8160525AE55(iVar0, 32, true);
unk_0x13E0A8160525AE55(iVar0, 250, true);
iVar2 = func_695(uParam0->f_7);
func_658((*uParam0)[uParam0->f_7], 0);
fVar3 = (((to_float(unk_0x24A1A7BF4ED94B71((*uParam0)[uParam0->f_7])) - 100f) / (to_float(unk_0xF49CB145FAD56CFD((*uParam0)[uParam0->f_7])) - 100f)) * 100f);
switch (func_48(unk_0xA19140A5C42D8715()))
{
case 0:
if (unk_0x493E42DC8C29B51A("BulletTime"))
{
unk_0xEF9AD7817AAF81A5("BulletTime");
}
if (unk_0x493E42DC8C29B51A("BulletTimeOut"))
{
unk_0xEF9AD7817AAF81A5("BulletTimeOut");
}
break;
case 1:
if (unk_0x493E42DC8C29B51A("DrivingFocus"))
{
unk_0xEF9AD7817AAF81A5("DrivingFocus");
}
if (unk_0x493E42DC8C29B51A("DrivingFocusOut"))
{
unk_0xEF9AD7817AAF81A5("DrivingFocusOut");
}
break;
case 2:
if (unk_0x493E42DC8C29B51A("REDMIST"))
{
unk_0xEF9AD7817AAF81A5("REDMIST");
}
if (unk_0x493E42DC8C29B51A("REDMISTOut"))
{
unk_0xEF9AD7817AAF81A5("REDMISTOut");
}
break;
}
if (func_47(func_44()))
{
if (unk_0x53B0513B47405A70(unk_0xD4E735F4B6A956AC()))
{
unk_0xC97ACA9456A064F3(unk_0xD4E735F4B6A956AC());
}
}
unk_0xB9E3260775FE4A27(unk_0xD4E735F4B6A956AC(), (*uParam0)[uParam0->f_7], bParam2, 0);
unk_0xD8C147DA332E7F06(3);
unk_0xD8C147DA332E7F06(13);
if (iParam3 & 1 != 0)
{
unk_0x13E0A8160525AE55(unk_0xA19140A5C42D8715(), 210, false);
}
if (func_41(0) || func_41(3))
{
if (Global_17228.f_13)
{
iVar4 = 0;
while (iVar4 < 7)
{
if (unk_0x05EFB6A616B6FADE(Global_84079[iVar4 /*5*/].f_1, 2))
{
iVar5 = Global_84079[iVar4 /*5*/];
StringCopy(&cVar6, "MISS_SWITCH_", 64);
StringConCat(&cVar6, &(Global_84115[Global_71474.f_109[iVar5 /*4*/] /*34*/]), 64);
unk_0x3332420BA2CA8DC8(unk_0xFEB6EEC0545AF7AA(&cVar6), 1f);
}
iVar4++;
}
}
}
Global_17228.f_13 = 0;
uParam0->f_5 = func_696(iVar1);
if (uParam0->f_5 == 4)
{
uParam0->f_5 = 3;
}
(*uParam0)[uParam0->f_5] = iVar0;
(*uParam0)[uParam0->f_7] = 0;
uParam0->f_6 = func_696(iVar2);
uParam0->f_7 = 4;
iVar7 = unk_0xA19140A5C42D8715();
unk_0x7C73A424F1117528(unk_0xA19140A5C42D8715(), true, 0);
func_655(iVar7);
unk_0x7ABF6BEB0677A2AC(iVar7, 0, 0);
if (fVar3 < 25f && !unk_0xFF12F654A8561928(unk_0xA19140A5C42D8715()))
{
unk_0x6259CDB47862A4F3(unk_0xA19140A5C42D8715(), round((((25f / 100f) * (to_float(unk_0xF49CB145FAD56CFD(unk_0xA19140A5C42D8715())) - 100f)) + 100f)), 0);
}
if (bParam1)
{
if (unk_0xDC5D81351D6A4DDB(iVar0))
{
unk_0x7C73A424F1117528(iVar0, true, 0);
func_655(iVar0);
unk_0x7ABF6BEB0677A2AC(iVar0, 0, 0);
unk_0x1BE107CEA70974D0(iVar0, 0, 0);
}
}
else if (unk_0xDC5D81351D6A4DDB(iVar0))
{
sVar9 = unk_0xB2BB3714AD93D7C5(iVar0, &uVar8);
if (!unk_0x7032042E5696FFD7(sVar9))
{
if (!unk_0x3CAC2741CC1A631F(sVar9, unk_0x61D2332983ACC05C()))
{
unk_0x1F7948851FB36E88(iVar0, false, 1);
}
unk_0x680F17660351F21B(&iVar0);
}
}
Global_90609 = 1;
func_654(unk_0xA19140A5C42D8715());
func_653();
func_652(iVar2);
func_385();
func_649(iVar2);
func_636(func_647(unk_0xE2BBD32891C18569(unk_0xA19140A5C42D8715(), true), 145, 0));
unk_0xBECDE45953A39C23(unk_0xD4E735F4B6A956AC());
unk_0x83055D7E96024509(unk_0xA19140A5C42D8715(), false);
unk_0xC35C0EB12F3FFC86(unk_0xA19140A5C42D8715(), 1);
if (unk_0x58E3CCF930D23BD5(unk_0xD4E735F4B6A956AC()))
{
unk_0x420D881EB77D2CA5(unk_0xD4E735F4B6A956AC(), func_635(67));
}
if (unk_0x58E3CCF930D23BD5(unk_0xD4E735F4B6A956AC()))
{
unk_0xC7A675C2C539A260(unk_0xD4E735F4B6A956AC(), func_635(68));
}
func_632(iVar2, &iVar7);
if (((func_46(0) || func_46(3)) || func_46(2)) || func_46(4))
{
unk_0x13E0A8160525AE55(iVar7, 32, false);
unk_0x13E0A8160525AE55(iVar7, 250, false);
}
else
{
unk_0x13E0A8160525AE55(iVar7, 32, true);
unk_0x13E0A8160525AE55(iVar7, 250, true);
}
if (!func_631())
{
func_629();
}
Global_90246 = 0;
return 1;
}
else
{
if (unk_0x4915F4759304D5CF(unk_0xA19140A5C42D8715()))
{
}
if (unk_0x4915F4759304D5CF((*uParam0)[uParam0->f_7]))
{
}
if (unk_0xA19140A5C42D8715() == (*uParam0)[uParam0->f_7])
{
}
}
return 0;
}
void func_629()
{
if (Global_90639)
{
func_45();
unk_0x4DCF15C1DF96544D(func_630(Global_106070.f_2355.f_539.f_4301));
}
else
{
unk_0x4DCF15C1DF96544D("");
}
}
char* func_630(var uParam0)
{
uParam0 = uParam0;
return "";
}
bool func_631()
{
return Global_17226;
}
void func_632(int iParam0, int iParam1)
{
switch (iParam0)
{
case 0:
func_633(4, *iParam1);
func_633(7, *iParam1);
func_633(8, *iParam1);
func_633(11, *iParam1);
break;
case 1:
if (Global_106070.f_9057.f_330[2 /*6*/])
{
func_633(4, *iParam1);
}
func_633(7, *iParam1);
func_633(8, *iParam1);
func_633(11, *iParam1);
if (Global_106070.f_9057.f_99.f_58[126])
{
func_633(12, *iParam1);
}
break;
case 2:
if (Global_106070.f_9057.f_330[20 /*6*/])
{
func_633(4, *iParam1);
}
func_633(7, *iParam1);
func_633(8, *iParam1);
func_633(11, *iParam1);
break;
}
}
void func_633(int iParam0, int iParam1)
{
int iVar0;
int iVar1;
bool bVar2;
if (!unk_0xDC5D81351D6A4DDB(iParam1))
{
return;
}
if (func_634(iParam0, iParam1))
{
return;
}
if (Global_35240[iParam0 /*31*/].f_24 < 5)
{
Global_35240[iParam0 /*31*/].f_25[Global_35240[iParam0 /*31*/].f_24] = iParam1;
Global_35240[iParam0 /*31*/].f_24++;
}
else
{
bVar2 = false;
iVar0 = 0;
while (iVar0 < 5)
{
iVar1 = Global_35240[iParam0 /*31*/].f_25[iVar0];
if (!unk_0xDC5D81351D6A4DDB(iVar1) || unk_0x4915F4759304D5CF(iVar1))
{
Global_35240[iParam0 /*31*/].f_25[iVar0] = iParam1;
bVar2 = true;
iVar0 = 6;
}
iVar0++;
}
if (!bVar2)
{
}
}
}
int func_634(int iParam0, int iParam1)
{
int iVar0;
iVar0 = 0;
while (iVar0 < Global_35240[iParam0 /*31*/].f_24)
{
if (iParam1 == Global_35240[iParam0 /*31*/].f_25[iVar0])
{
return 1;
}
iVar0++;
}
return 0;
}
int func_635(int iParam0)
{
if (iParam0 == 146 || iParam0 == -1)
{
return 0;
}
return Global_106070.f_9057.f_99.f_58[iParam0];
}
void func_636(int iParam0)
{
if (iParam0 == 10)
{
return;
}
switch (iParam0)
{
case 0:
unk_0x2BCFB39E86340DAA(&(Global_31904[(38 / 32)]), (38 % 32));
func_637(38, 0);
unk_0x2BCFB39E86340DAA(&(Global_31904[(41 / 32)]), (41 % 32));
func_637(41, 0);
unk_0x2BCFB39E86340DAA(&(Global_31904[(43 / 32)]), (43 % 32));
func_637(43, 0);
unk_0x2BCFB39E86340DAA(&(Global_31904[(42 / 32)]), (42 % 32));
func_637(42, 0);
unk_0x2BCFB39E86340DAA(&(Global_31904[(44 / 32)]), (44 % 32));
func_637(44, 0);
break;
case 1:
unk_0x2BCFB39E86340DAA(&(Global_31904[(51 / 32)]), (51 % 32));
func_637(51, 0);
break;
case 2:
unk_0x2BCFB39E86340DAA(&(Global_31904[(51 / 32)]), (51 % 32));
func_637(51, 0);
break;
case 3:
unk_0x2BCFB39E86340DAA(&(Global_31904[(53 / 32)]), (53 % 32));
func_637(53, 0);
break;
case 4:
unk_0x2BCFB39E86340DAA(&(Global_31904[(81 / 32)]), (81 % 32));
func_637(81, 0);
unk_0x2BCFB39E86340DAA(&(Global_31904[(82 / 32)]), (82 % 32));
func_637(82, 0);
break;
case 5:
unk_0x2BCFB39E86340DAA(&(Global_31904[(47 / 32)]), (47 % 32));
func_637(47, 0);
unk_0x2BCFB39E86340DAA(&(Global_31904[(50 / 32)]), (50 % 32));
func_637(50, 0);
break;
case 6:
unk_0x2BCFB39E86340DAA(&(Global_31904[(50 / 32)]), (50 % 32));
func_637(50, 0);
break;
}
}
void func_637(int iParam0, int iParam1)
{
int iVar0;
if (iParam0 != 226)
{
if (Global_71205)
{
iVar0 = Global_2437022.f_75[iParam0];
}
else
{
iVar0 = Global_106070.f_7233[iParam0];
}
if (iVar0 != iParam1 || unk_0x05EFB6A616B6FADE(Global_31904[(iParam0 / 32)], (iParam0 % 32)))
{
if ((((iParam1 == 4 || iParam1 == 3) || iParam1 == 5) || iParam1 == 6) || iParam1 == 2)
{
unk_0x2BCFB39E86340DAA(&(Global_31913[(iParam0 / 32)]), (iParam0 % 32));
Global_32376[iParam0] = iParam1;
}
else if (Global_71205)
{
Global_2437022.f_75[iParam0] = iParam1;
}
else
{
Global_106070.f_7233[iParam0] = iParam1;
}
unk_0x2BCFB39E86340DAA(&(Global_31904[(iParam0 / 32)]), (iParam0 % 32));
func_639(iParam0);
if (unk_0x05EFB6A616B6FADE(Global_31904[(iParam0 / 32)], (iParam0 % 32)))
{
func_638(iParam0);
}
}
}
}
void func_638(int iParam0)
{
if (!unk_0x05EFB6A616B6FADE(Global_32847.f_228[(iParam0 / 32)], (iParam0 % 23)))
{
unk_0x2BCFB39E86340DAA(&(Global_32847.f_228[(iParam0 / 32)]), (iParam0 % 23));
Global_32847[Global_32847.f_227] = iParam0;
Global_32847.f_227++;
}
}
void func_639(int iParam0)
{
struct<7> Var0;
bool bVar1;
bool bVar2;
int iVar3;
float fVar4;
int iVar5;
int iVar6;
bool bVar7;
int iVar8;
int iVar9;
if (!func_605())
{
return;
}
if (unk_0x4915F4759304D5CF(unk_0xA19140A5C42D8715()))
{
return;
}
Var0 = { func_646(iParam0) };
if (unk_0x05EFB6A616B6FADE(Var0.f_4, 2))
{
func_644(iParam0, &Var0);
}
if (!unk_0x3C43F06C8C621742(Var0.f_5))
{
if (unk_0x5CA3186381FC012C())
{
return;
}
}
bVar1 = false;
bVar2 = false;
fVar4 = unk_0x499324B3EF19C288(Var0, unk_0xE2BBD32891C18569(unk_0xA19140A5C42D8715(), true), true);
if ((unk_0x05EFB6A616B6FADE(Global_31913[(iParam0 / 32)], (iParam0 % 32)) && Global_32376[iParam0] == 2) && fVar4 > 210f)
{
unk_0xFA57C719261AA55D(&(Global_31913[(iParam0 / 32)]), (iParam0 % 32));
Global_31922[iParam0] = 0;
}
if (unk_0x8B1574454E8C2421(joaat("startup_positioning")) == 0)
{
if (unk_0x05EFB6A616B6FADE(Global_32149[(iParam0 / 32)], (iParam0 % 32)))
{
if (fVar4 < 25f)
{
if (Global_93284.f_325 == 0)
{
if (!unk_0x7112137033807390(unk_0xA19140A5C42D8715(), 0))
{
Global_93284.f_325 = unk_0xDA3A4E46D189F555(unk_0xA19140A5C42D8715());
}
}
iVar5 = Global_93284.f_325;
iVar6 = unk_0x988A25F5907E93F0(Var0);
if (iVar5 == iVar6 && iVar5 != 0)
{
unk_0x2BCFB39E86340DAA(&(Global_31913[(iParam0 / 32)]), (iParam0 % 32));
Global_32376[iParam0] = 3;
unk_0x2BCFB39E86340DAA(&(Global_31904[(iParam0 / 32)]), (iParam0 % 32));
}
}
unk_0xFA57C719261AA55D(&(Global_32149[(iParam0 / 32)]), (iParam0 % 32));
}
}
if (unk_0x05EFB6A616B6FADE(Global_31913[(iParam0 / 32)], (iParam0 % 32)))
{
iVar3 = Global_32376[iParam0];
}
else if (unk_0x05EFB6A616B6FADE(Var0.f_4, 0))
{
if (Global_106070.f_9057)
{
iVar3 = func_641(iParam0);
}
else
{
iVar3 = 0;
}
if (func_46(14))
{
iVar3 = 0;
}
}
else if (unk_0x05EFB6A616B6FADE(Var0.f_4, 1) && unk_0x8B1574454E8C2421(joaat("ambient_solomon")) == 0)
{
if (func_640())
{
iVar3 = 0;
}
else
{
iVar3 = 1;
}
}
else
{
iVar3 = Global_106070.f_7233[iParam0];
}
if (Global_32603[iParam0] != iVar3)
{
bVar1 = true;
}
if (unk_0x05EFB6A616B6FADE(Global_31904[(iParam0 / 32)], (iParam0 % 32)))
{
if (!unk_0x05EFB6A616B6FADE(Global_31913[(iParam0 / 32)], (iParam0 % 32)) || (Global_31922[iParam0] == 0 && Global_32376[iParam0] != 2))
{
bVar1 = true;
}
}
if (bVar1)
{
if (!Global_31903)
{
}
else
{
if (!unk_0x3C43F06C8C621742(Var0.f_5))
{
unk_0xBF496E097D7AEFF7(Var0.f_5, Var0.f_3, Var0, 0, 0, 0);
}
switch (iVar3)
{
case 1:
if (unk_0x05EFB6A616B6FADE(Var0.f_4, 3))
{
bVar7 = true;
}
else if (fVar4 > 3f || unk_0x69C0BB7D03EE045D(unk_0xEC8382275A6EC397(Var0.f_5)) <= 0.015f)
{
iVar8 = unk_0xDA3A4E46D189F555(unk_0xA19140A5C42D8715());
iVar9 = unk_0x988A25F5907E93F0(Var0);
if (iVar8 != iVar9 || iVar8 == 0)
{
bVar7 = true;
}
}
if (bVar7)
{
if (Var0.f_6 != 0f)
{
unk_0x71D0E153DFC42253(Var0.f_5, Var0.f_6, 0, 0);
}
unk_0x6417FCFC98785F84(Var0.f_5, iVar3, 0, 1);
bVar2 = true;
}
break;
case 4:
if (Var0.f_6 != 0f)
{
unk_0x71D0E153DFC42253(Var0.f_5, Var0.f_6, 0, 0);
}
unk_0x6417FCFC98785F84(Var0.f_5, iVar3, 0, 1);
bVar2 = true;
break;
case 2:
if (Var0.f_6 != 0f)
{
unk_0x71D0E153DFC42253(Var0.f_5, Var0.f_6, 0, 0);
}
unk_0x6417FCFC98785F84(Var0.f_5, iVar3, 0, 1);
bVar2 = true;
break;
case 0:
if (Var0.f_6 != 0f)
{
unk_0x71D0E153DFC42253(Var0.f_5, Var0.f_6, 0, 1);
}
unk_0x6417FCFC98785F84(Var0.f_5, iVar3, 0, 1);
bVar2 = true;
break;
case 3:
if (Var0.f_6 != 0f)
{
unk_0x71D0E153DFC42253(Var0.f_5, Var0.f_6, 0, 0);
}
unk_0x6417FCFC98785F84(Var0.f_5, 0, 0, 1);
bVar2 = true;
break;
case 5:
if (Var0.f_6 != 0f)
{
unk_0x71D0E153DFC42253(Var0.f_5, Var0.f_6, 0, 0);
}
unk_0x6417FCFC98785F84(Var0.f_5, iVar3, 0, 1);
bVar2 = true;
break;
case 6:
if (Var0.f_6 != 0f)
{
unk_0x71D0E153DFC42253(Var0.f_5, Var0.f_6, 0, 0);
}
unk_0x6417FCFC98785F84(Var0.f_5, iVar3, 0, 1);
bVar2 = true;
break;
default:
if (Var0.f_6 != 0f)
{
unk_0x71D0E153DFC42253(Var0.f_5, Var0.f_6, 0, 0);
}
unk_0x6417FCFC98785F84(Var0.f_5, iVar3, 0, 1);
bVar2 = true;
break;
}
}
if (bVar2)
{
unk_0xFA57C719261AA55D(&(Global_31904[(iParam0 / 32)]), (iParam0 % 32));
Global_32603[iParam0] = iVar3;
}
}
if (unk_0x05EFB6A616B6FADE(Global_31913[(iParam0 / 32)], (iParam0 % 32)) && Global_32376[iParam0] != 2)
{
unk_0x2BCFB39E86340DAA(&(Global_31904[(iParam0 / 32)]), (iParam0 % 32));
func_638(iParam0);
if (Global_31922[iParam0] < 2)
{
Global_31922[iParam0]++;
}
}
}
int func_640()
{
if (unk_0x122A8778D4027A82(unk_0xD4E735F4B6A956AC(), 0))
{
return 0;
}
switch (func_44())
{
case 0:
if (Global_106070.f_9057.f_99.f_58[65])
{
return 1;
}
break;
case 1:
if (Global_106070.f_9057.f_99.f_58[66])
{
return 1;
}
break;
case 2:
if (Global_106070.f_9057.f_99.f_58[65])
{
return 1;
}
break;
}
return 0;
}
int func_641(int iParam0)
{
int iVar0;
iVar0 = func_44();
if (func_642(iParam0))
{
return 1;
}
if (iParam0 == 49)
{
if (iVar0 == 1)
{
if (unk_0x05EFB6A616B6FADE(Global_106070.f_7201[5], 0) || unk_0x05EFB6A616B6FADE(Global_106070.f_7201[6], 0))
{
return 0;
}
}
if (func_47(iVar0))
{
if (unk_0x05EFB6A616B6FADE(Global_88354[5], iVar0))
{
return 0;
}
}
}
switch (iParam0)
{
case 38:
case 39:
case 40:
case 41:
case 42:
case 43:
case 44:
case 45:
case 46:
if (iVar0 == 0)
{
if (unk_0x05EFB6A616B6FADE(Global_106070.f_7201[0], 0))
{
return 0;
}
}
if (func_47(iVar0))
{
if (unk_0x05EFB6A616B6FADE(Global_88354[0], iVar0))
{
if (iParam0 != 40)
{
return 0;
}
else
{
return 1;
}
}
}
break;
case 47:
case 48:
case 49:
if (iVar0 == 1)
{
if (unk_0x05EFB6A616B6FADE(Global_106070.f_7201[5], 0))
{
return 0;
}
}
if (func_47(iVar0))
{
if (unk_0x05EFB6A616B6FADE(Global_88354[5], iVar0))
{
return 0;
}
}
break;
case 50:
if (iVar0 == 1)
{
if (unk_0x05EFB6A616B6FADE(Global_106070.f_7201[6], 0))
{
return 0;
}
}
if (func_47(iVar0))
{
if (unk_0x05EFB6A616B6FADE(Global_88354[6], iVar0))
{
return 0;
}
}
break;
case 51:
case 52:
if (iVar0 == 2)
{
if (unk_0x05EFB6A616B6FADE(Global_106070.f_7201[2], 0))
{
return 0;
}
if (func_47(iVar0))
{
if (unk_0x05EFB6A616B6FADE(Global_88354[2], iVar0))
{
return 0;
}
}
}
else if (iVar0 == 0)
{
if (unk_0x05EFB6A616B6FADE(Global_106070.f_7201[1], 0))
{
return 0;
}
if (func_47(iVar0))
{
if (unk_0x05EFB6A616B6FADE(Global_88354[1], iVar0))
{
return 0;
}
}
}
break;
case 53:
if (iVar0 == 2)
{
if (unk_0x05EFB6A616B6FADE(Global_106070.f_7201[3], 0))
{
return 0;
}
}
if (func_47(iVar0))
{
if (unk_0x05EFB6A616B6FADE(Global_88354[3], iVar0))
{
return 0;
}
}
break;
default:
return 0;
break;
}
return 1;
}
int func_642(int iParam0)
{
int iVar0;
if ((iParam0 == 40 || iParam0 == 49) || iParam0 == 52)
{
if (!unk_0x4915F4759304D5CF(unk_0xA19140A5C42D8715()))
{
if (unk_0x5D7DFE2058701942(unk_0xA19140A5C42D8715(), 1))
{
iVar0 = unk_0x8F474E419F56E48D(func_643(unk_0xCAEB6CE71A2C7212(unk_0xA19140A5C42D8715(), 1)));
switch (iVar0)
{
case joaat("utillitruck"):
case joaat("monster"):
return 1;
break;
}
}
}
}
return 0;
}
int func_643(int iParam0)
{
return iParam0;
}
void func_644(int iParam0, var uParam1)
{
int iVar0;
int iVar1;
if (!unk_0x05EFB6A616B6FADE(uParam1->f_4, 2))
{
return;
}
iVar0 = func_246();
iVar1 = func_311(iVar0);
switch (iParam0)
{
case 133:
case 134:
case 201:
case 202:
if (func_645(iParam0))
{
if (iVar1 < 19)
{
if (iVar1 >= 7)
{
Global_106070.f_7233[iParam0] = 0;
unk_0x6417FCFC98785F84(uParam1->f_5, Global_106070.f_7233[iParam0], 1, 1);
}
}
else
{
return;
}
}
else if (iVar1 >= 19)
{
if (vdist(unk_0xE2BBD32891C18569(unk_0xA19140A5C42D8715(), false), *uParam1) >= 12f)
{
Global_106070.f_7233[iParam0] = 1;
unk_0x6417FCFC98785F84(uParam1->f_5, Global_106070.f_7233[iParam0], 1, 1);
}
}
else if (iVar1 < 7)
{
if (vdist(unk_0xE2BBD32891C18569(unk_0xA19140A5C42D8715(), false), *uParam1) >= 12f)
{
Global_106070.f_7233[iParam0] = 1;
unk_0x6417FCFC98785F84(uParam1->f_5, Global_106070.f_7233[iParam0], 1, 1);
}
}
break;
case 199:
case 200:
case 203:
case 204:
if (func_645(iParam0))
{
if (iVar1 < 18)
{
if (iVar1 >= 7)
{
Global_106070.f_7233[iParam0] = 0;
unk_0x6417FCFC98785F84(uParam1->f_5, Global_106070.f_7233[iParam0], 1, 1);
}
}
else
{
return;
}
}
else if (iVar1 >= 18)
{
if (vdist(unk_0xE2BBD32891C18569(unk_0xA19140A5C42D8715(), false), *uParam1) >= 12f)
{
Global_106070.f_7233[iParam0] = 1;
unk_0x6417FCFC98785F84(uParam1->f_5, Global_106070.f_7233[iParam0], 1, 1);
}
}
else if (iVar1 < 7)
{
if (vdist(unk_0xE2BBD32891C18569(unk_0xA19140A5C42D8715(), false), *uParam1) >= 12f)
{
Global_106070.f_7233[iParam0] = 1;
unk_0x6417FCFC98785F84(uParam1->f_5, Global_106070.f_7233[iParam0], 1, 1);
}
}
break;
case 141:
case 142:
if (func_645(iParam0))
{
if ((unk_0x8B1574454E8C2421(joaat("jewelry_heist")) == 0 && unk_0x8B1574454E8C2421(joaat("jewelry_setup1")) == 0) && !Global_106070.f_9057.f_99.f_58[4])
{
if (iVar1 < 21)
{
if (iVar1 >= 7)
{
Global_106070.f_7233[iParam0] = 0;
unk_0x6417FCFC98785F84(uParam1->f_5, Global_106070.f_7233[iParam0], 1, 1);
}
}
else
{
return;
}
}
else if (!Global_106070.f_9057.f_99.f_58[4])
{
Global_106070.f_7233[iParam0] = 0;
unk_0x6417FCFC98785F84(uParam1->f_5, Global_106070.f_7233[iParam0], 1, 1);
}
}
else if (Global_106070.f_9057.f_99.f_58[4])
{
Global_106070.f_7233[iParam0] = 1;
unk_0x6417FCFC98785F84(uParam1->f_5, Global_106070.f_7233[iParam0], 1, 1);
}
else if (unk_0x8B1574454E8C2421(joaat("jewelry_heist")) == 0 && unk_0x8B1574454E8C2421(joaat("jewelry_setup1")) == 0)
{
if (iVar1 >= 21)
{
if (vdist(unk_0xE2BBD32891C18569(unk_0xA19140A5C42D8715(), false), *uParam1) >= 18f)
{
Global_106070.f_7233[iParam0] = 1;
unk_0x6417FCFC98785F84(uParam1->f_5, Global_106070.f_7233[iParam0], 1, 1);
}
}
else if (iVar1 < 7)
{
if (vdist(unk_0xE2BBD32891C18569(unk_0xA19140A5C42D8715(), false), *uParam1) >= 18f)
{
Global_106070.f_7233[iParam0] = 1;
unk_0x6417FCFC98785F84(uParam1->f_5, Global_106070.f_7233[iParam0], 1, 1);
}
}
}
break;
case 145:
case 146:
case 143:
case 144:
if (func_645(iParam0))
{
if (iVar1 < 20)
{
if (iVar1 >= 9)
{
Global_106070.f_7233[iParam0] = 0;
unk_0x6417FCFC98785F84(uParam1->f_5, Global_106070.f_7233[iParam0], 1, 1);
}
}
else
{
return;
}
}
else if (iVar1 >= 20)
{
if (vdist(unk_0xE2BBD32891C18569(unk_0xA19140A5C42D8715(), false), *uParam1) >= 40f)
{
Global_106070.f_7233[iParam0] = 1;
unk_0x6417FCFC98785F84(uParam1->f_5, Global_106070.f_7233[iParam0], 1, 1);
}
}
else if (iVar1 < 9)
{
if (vdist(unk_0xE2BBD32891C18569(unk_0xA19140A5C42D8715(), false), *uParam1) >= 40f)
{
Global_106070.f_7233[iParam0] = 1;
unk_0x6417FCFC98785F84(uParam1->f_5, Global_106070.f_7233[iParam0], 1, 1);
}
}
break;
case 147:
case 148:
if (!func_645(iParam0))
{
Global_106070.f_7233[iParam0] = 1;
unk_0x6417FCFC98785F84(uParam1->f_5, Global_106070.f_7233[iParam0], 1, 1);
}
break;
case 152:
case 153:
case 154:
case 155:
case 156:
case 157:
if (!func_645(iParam0))
{
if (unk_0x8B1574454E8C2421(joaat("assassin_valet")) == 0)
{
Global_106070.f_7233[iParam0] = 1;
unk_0x6417FCFC98785F84(uParam1->f_5, Global_106070.f_7233[iParam0], 1, 1);
}
}
else if (unk_0x8B1574454E8C2421(joaat("assassin_valet")) > 0)
{
Global_106070.f_7233[iParam0] = 0;
unk_0x6417FCFC98785F84(uParam1->f_5, Global_106070.f_7233[iParam0], 1, 1);
}
break;
case 158:
case 159:
if (unk_0x8B1574454E8C2421(Global_84115[70 /*34*/].f_6) == 0)
{
if (!func_645(iParam0))
{
Global_106070.f_7233[iParam0] = 1;
unk_0x6417FCFC98785F84(uParam1->f_5, Global_106070.f_7233[iParam0], 1, 1);
}
}
break;
case 160:
case 161:
if (unk_0x8B1574454E8C2421(joaat("omega2")) == 0)
{
if (!func_645(iParam0))
{
Global_106070.f_7233[iParam0] = 1;
unk_0x6417FCFC98785F84(uParam1->f_5, Global_106070.f_7233[iParam0], 1, 1);
}
}
break;
case 70:
case 71:
case 72:
if (!func_645(iParam0) && unk_0x8B1574454E8C2421(Global_84115[26 /*34*/].f_6) == 0)
{
Global_106070.f_7233[iParam0] = 1;
unk_0x6417FCFC98785F84(uParam1->f_5, Global_106070.f_7233[iParam0], 1, 1);
}
else
{
return;
}
break;
case 101:
case 102:
case 103:
case 104:
if (!func_645(iParam0))
{
if (unk_0x8B1574454E8C2421(Global_84115[43 /*34*/].f_6) == 0)
{
Global_106070.f_7233[iParam0] = 1;
unk_0x6417FCFC98785F84(uParam1->f_5, Global_106070.f_7233[iParam0], 1, 1);
}
}
else
{
return;
}
break;
case 190:
case 191:
if (!func_645(iParam0))
{
Global_106070.f_7233[iParam0] = 1;
unk_0x6417FCFC98785F84(uParam1->f_5, Global_106070.f_7233[iParam0], 1, 1);
}
break;
case 193:
if (!func_645(iParam0))
{
if (unk_0x8B1574454E8C2421(Global_84115[93 /*34*/].f_6) > 0)
{
Global_106070.f_7233[iParam0] = 1;
unk_0x6417FCFC98785F84(uParam1->f_5, Global_106070.f_7233[iParam0], 1, 1);
}
}
else
{
return;
}
break;
case 198:
if (!func_645(iParam0))
{
Global_106070.f_7233[iParam0] = 1;
unk_0x6417FCFC98785F84(uParam1->f_5, Global_106070.f_7233[iParam0], 1, 1);
}
break;
case 80:
if (!func_645(iParam0))
{
if (unk_0x8B1574454E8C2421(Global_84115[8 /*34*/].f_6) == 0 && unk_0x8B1574454E8C2421(Global_84115[10 /*34*/].f_6) == 0)
{
Global_106070.f_7233[iParam0] = 1;
unk_0x6417FCFC98785F84(uParam1->f_5, Global_106070.f_7233[iParam0], 1, 1);
}
}
else
{
return;
}
break;
case 205:
case 206:
if (!func_645(iParam0))
{
if (unk_0x8B1574454E8C2421(Global_84115[47 /*34*/].f_6) == 0)
{
Global_106070.f_7233[iParam0] = 1;
unk_0x6417FCFC98785F84(uParam1->f_5, Global_106070.f_7233[iParam0], 1, 1);
}
}
else
{
return;
}
break;
case 207:
if (unk_0x8B1574454E8C2421(Global_84115[70 /*34*/].f_6) == 0)
{
if (!func_645(iParam0))
{
Global_106070.f_7233[iParam0] = 1;
unk_0x6417FCFC98785F84(uParam1->f_5, Global_106070.f_7233[iParam0], 1, 1);
}
}
break;
case 208:
case 209:
case 211:
case 210:
case 212:
case 213:
case 214:
case 215:
if (unk_0x8B1574454E8C2421(Global_84115[48 /*34*/].f_6) == 0)
{
if (!func_645(iParam0))
{
Global_106070.f_7233[iParam0] = 1;
unk_0x6417FCFC98785F84(uParam1->f_5, Global_106070.f_7233[iParam0], 1, 1);
}
}
break;
case 99:
case 100:
if (unk_0x8B1574454E8C2421(Global_84115[39 /*34*/].f_6) == 0)
{
if (!func_645(iParam0))
{
Global_106070.f_7233[iParam0] = 1;
unk_0x6417FCFC98785F84(uParam1->f_5, Global_106070.f_7233[iParam0], 1, 1);
}
}
break;
case 216:
if (!func_645(iParam0))
{
Global_106070.f_7233[iParam0] = 1;
unk_0x6417FCFC98785F84(uParam1->f_5, Global_106070.f_7233[iParam0], 1, 1);
}
break;
case 217:
case 218:
if (!func_645(iParam0))
{
Global_106070.f_7233[iParam0] = 1;
unk_0x6417FCFC98785F84(uParam1->f_5, Global_106070.f_7233[iParam0], 1, 1);
}
break;
case 219:
case 220:
case 221:
case 222:
if (func_645(iParam0))
{
Global_106070.f_7233[iParam0] = 0;
unk_0x6417FCFC98785F84(uParam1->f_5, Global_106070.f_7233[iParam0], 1, 1);
}
break;
}
}
bool func_645(int iParam0)
{
struct<7> Var0;
int iVar1;
Var0 = { func_646(iParam0) };
iVar1 = unk_0x5D2D51CF0527ECFB(Var0.f_5);
return ((iVar1 == 1 || iVar1 == 4) || iVar1 == 2);
}
struct<7> func_646(int iParam0)
{
struct<7> Var0;
switch (iParam0)
{
case 0:
Var0.f_3 = joaat("v_ilev_bs_door");
Var0 = { 133f, -1711f, 29f };
Var0.f_5 = 1804701345;
break;
case 1:
Var0.f_3 = joaat("v_ilev_bs_door");
Var0 = { -1287.857f, -1115.742f, 7.1401f };
Var0.f_5 = 1403601067;
break;
case 2:
Var0.f_3 = joaat("v_ilev_bs_door");
Var0 = { 1932.952f, 3725.154f, 32.9944f };
Var0.f_5 = -2031139496;
break;
case 3:
Var0.f_3 = joaat("v_ilev_bs_door");
Var0 = { 1207.873f, -470.063f, 66.358f };
Var0.f_5 = 1796834809;
break;
case 4:
Var0.f_3 = joaat("v_ilev_bs_door");
Var0 = { -29.8692f, -148.1571f, 57.2265f };
Var0.f_5 = 96153298;
break;
case 5:
Var0.f_3 = joaat("v_ilev_bs_door");
Var0 = { -280.7851f, 6232.782f, 31.8455f };
Var0.f_5 = -281080954;
break;
case 6:
Var0.f_3 = joaat("v_ilev_hd_door_l");
Var0 = { -824f, -187f, 38f };
Var0 = { -823.2001f, -187.0831f, 37.819f };
Var0.f_5 = 183249434;
break;
case 7:
Var0.f_3 = joaat("v_ilev_hd_door_r");
Var0 = { -823f, -188f, 38f };
Var0 = { -822.4442f, -188.3924f, 37.819f };
Var0.f_5 = 758345384;
break;
case 8:
Var0.f_3 = joaat("v_ilev_cs_door01");
Var0 = { 82.3186f, -1392.752f, 29.5261f };
Var0.f_5 = -1069262641;
break;
case 9:
Var0.f_3 = joaat("v_ilev_cs_door01_r");
Var0 = { 82.3186f, -1390.476f, 29.5261f };
Var0.f_5 = 1968521986;
break;
case 10:
Var0.f_3 = joaat("v_ilev_cs_door01");
Var0 = { 1686.983f, 4821.741f, 42.2131f };
Var0.f_5 = -2143706301;
break;
case 11:
Var0.f_3 = joaat("v_ilev_cs_door01_r");
Var0 = { 1687.282f, 4819.484f, 42.2131f };
Var0.f_5 = -1403421822;
break;
case 12:
Var0.f_3 = joaat("v_ilev_cs_door01");
Var0 = { 418.637f, -806.457f, 29.6396f };
Var0.f_5 = -1950137670;
break;
case 13:
Var0.f_3 = joaat("v_ilev_cs_door01_r");
Var0 = { 418.637f, -808.733f, 29.6396f };
Var0.f_5 = 1226259807;
break;
case 14:
Var0.f_3 = joaat("v_ilev_cs_door01");
Var0 = { -1096.661f, 2705.446f, 19.2578f };
Var0.f_5 = 1090833557;
break;
case 15:
Var0.f_3 = joaat("v_ilev_cs_door01_r");
Var0 = { -1094.965f, 2706.964f, 19.2578f };
Var0.f_5 = 897332612;
break;
case 16:
Var0.f_3 = joaat("v_ilev_cs_door01");
Var0 = { 1196.825f, 2703.221f, 38.3726f };
Var0.f_5 = 1095946640;
break;
case 17:
Var0.f_3 = joaat("v_ilev_cs_door01_r");
Var0 = { 1199.101f, 2703.221f, 38.3726f };
Var0.f_5 = 801975945;
break;
case 18:
Var0.f_3 = joaat("v_ilev_cs_door01");
Var0 = { -818.7642f, -1079.544f, 11.4781f };
Var0.f_5 = -167996547;
break;
case 19:
Var0.f_3 = joaat("v_ilev_cs_door01_r");
Var0 = { -816.7932f, -1078.406f, 11.4781f };
Var0.f_5 = -1935818563;
break;
case 20:
Var0.f_3 = joaat("v_ilev_cs_door01");
Var0 = { -0.0564f, 6517.461f, 32.0278f };
Var0.f_5 = 1891185217;
break;
case 21:
Var0.f_3 = joaat("v_ilev_cs_door01_r");
Var0 = { -1.7253f, 6515.914f, 32.0278f };
Var0.f_5 = 1236591681;
break;
case 22:
Var0.f_3 = joaat("v_ilev_clothmiddoor");
Var0 = { -1201.435f, -776.8566f, 17.9918f };
Var0.f_5 = 1980808685;
break;
case 23:
Var0.f_3 = joaat("v_ilev_clothmiddoor");
Var0 = { 617.2458f, 2751.022f, 42.7578f };
Var0.f_5 = 1352749757;
break;
case 24:
Var0.f_3 = joaat("v_ilev_clothmiddoor");
Var0 = { 127.8201f, -211.8274f, 55.2275f };
Var0.f_5 = -566554453;
break;
case 25:
Var0.f_3 = joaat("v_ilev_clothmiddoor");
Var0 = { -3167.75f, 1055.536f, 21.5329f };
Var0.f_5 = 1284749450;
break;
case 26:
Var0.f_3 = joaat("v_ilev_ch_glassdoor");
Var0 = { -716.6754f, -155.42f, 37.6749f };
Var0.f_5 = 261851994;
break;
case 27:
Var0.f_3 = joaat("v_ilev_ch_glassdoor");
Var0 = { -715.6154f, -157.2561f, 37.6749f };
Var0.f_5 = 217646625;
break;
case 28:
Var0.f_3 = joaat("v_ilev_ch_glassdoor");
Var0 = { -157.0924f, -306.4413f, 39.994f };
Var0.f_5 = 1801139578;
break;
case 29:
Var0.f_3 = joaat("v_ilev_ch_glassdoor");
Var0 = { -156.4022f, -304.4366f, 39.994f };
Var0.f_5 = -2123275866;
break;
case 30:
Var0.f_3 = joaat("v_ilev_ch_glassdoor");
Var0 = { -1454.782f, -231.7927f, 50.0565f };
Var0.f_5 = 1312689981;
break;
case 31:
Var0.f_3 = joaat("v_ilev_ch_glassdoor");
Var0 = { -1456.201f, -233.3682f, 50.0565f };
Var0.f_5 = -595055661;
break;
case 32:
Var0.f_3 = joaat("v_ilev_ta_door");
Var0 = { 321.81f, 178.36f, 103.68f };
Var0.f_5 = -265260897;
break;
case 33:
Var0.f_3 = -1212951353;
Var0 = { 1859.89f, 3749.79f, 33.18f };
Var0.f_5 = -1284867488;
break;
case 34:
Var0.f_3 = -1212951353;
Var0 = { -289.1752f, 6199.112f, 31.637f };
Var0.f_5 = 302307081;
break;
case 35:
Var0.f_3 = joaat("v_ilev_ta_door");
Var0 = { -1155.454f, -1424.008f, 5.0461f };
Var0.f_5 = -681886015;
break;
case 36:
Var0.f_3 = joaat("v_ilev_ta_door");
Var0 = { 1321.286f, -1650.597f, 52.3663f };
Var0.f_5 = -2086556500;
break;
case 37:
Var0.f_3 = joaat("v_ilev_ta_door");
Var0 = { -3167.789f, 1074.767f, 20.9209f };
Var0.f_5 = -1496386696;
break;
case 38:
Var0.f_3 = joaat("v_ilev_mm_doorm_l");
Var0 = { -817f, 179f, 73f };
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 0);
Var0.f_5 = -2097039789;
break;
case 39:
Var0.f_3 = joaat("v_ilev_mm_doorm_r");
Var0 = { -816f, 178f, 73f };
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 0);
Var0.f_5 = -2127416656;
break;
case 40:
Var0.f_3 = joaat("prop_ld_garaged_01");
Var0 = { -815f, 186f, 73f };
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 0);
Var0.f_5 = -1986583853;
Var0.f_6 = 6.5f;
break;
case 41:
Var0.f_3 = joaat("prop_bh1_48_backdoor_l");
Var0 = { -797f, 177f, 73f };
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 0);
Var0.f_5 = 776026812;
break;
case 42:
Var0.f_3 = joaat("prop_bh1_48_backdoor_r");
Var0 = { -795f, 178f, 73f };
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 0);
Var0.f_5 = 698422331;
break;
case 43:
Var0.f_3 = joaat("prop_bh1_48_backdoor_l");
Var0 = { -793f, 181f, 73f };
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 0);
Var0.f_5 = 535076355;
break;
case 44:
Var0.f_3 = joaat("prop_bh1_48_backdoor_r");
Var0 = { -794f, 183f, 73f };
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 0);
Var0.f_5 = 474675599;
break;
case 45:
Var0.f_3 = joaat("prop_bh1_48_gate_1");
Var0 = { -849f, 179f, 70f };
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 0);
Var0.f_5 = -1978427516;
break;
case 46:
Var0.f_3 = joaat("v_ilev_mm_windowwc");
Var0 = { -802.7333f, 167.5041f, 77.5824f };
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 0);
Var0.f_5 = -1700375831;
break;
case 47:
Var0.f_3 = joaat("v_ilev_fa_frontdoor");
Var0 = { -14f, -1441f, 31f };
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 0);
Var0.f_5 = 613961892;
break;
case 48:
Var0.f_3 = joaat("v_ilev_fh_frntdoor");
Var0 = { -15f, -1427f, 31f };
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 0);
Var0.f_5 = -272570634;
break;
case 49:
Var0.f_3 = joaat("prop_sc1_21_g_door_01");
Var0 = { -25.28f, -1431.06f, 30.84f };
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 0);
Var0.f_5 = -1040675994;
break;
case 50:
Var0.f_3 = joaat("v_ilev_fh_frontdoor");
Var0 = { 7.52f, 539.53f, 176.18f };
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 0);
Var0.f_5 = 1201219326;
break;
case 51:
Var0.f_3 = joaat("v_ilev_trevtraildr");
Var0 = { 1973f, 3815f, 34f };
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 0);
Var0.f_5 = 1736361794;
break;
case 52:
Var0.f_3 = joaat("prop_cs4_10_tr_gd_01");
Var0 = { 1972.787f, 3824.554f, 32.5831f };
Var0.f_5 = 1113956670;
Var0.f_6 = 12f;
break;
case 53:
Var0.f_3 = joaat("v_ilev_trev_doorfront");
Var0 = { -1150f, -1521f, 11f };
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 0);
Var0.f_5 = -1361617046;
break;
}
switch (iParam0)
{
case 54:
Var0.f_3 = joaat("prop_com_ls_door_01");
Var0 = { -1145.9f, -1991.14f, 14.18f };
Var0.f_5 = -1871080926;
Var0.f_6 = 25f;
break;
case 55:
Var0.f_3 = joaat("prop_id2_11_gdoor");
Var0 = { 723.12f, -1088.83f, 23.28f };
Var0.f_5 = 1168079979;
Var0.f_6 = 25f;
break;
case 56:
Var0.f_3 = joaat("prop_com_ls_door_01");
Var0 = { -356.09f, -134.77f, 40.01f };
Var0.f_5 = 1206354175;
Var0.f_6 = 25f;
break;
case 57:
Var0.f_3 = joaat("v_ilev_carmod3door");
Var0 = { 108.8502f, 6617.876f, 32.673f };
Var0.f_5 = -1038180727;
Var0.f_6 = 25f;
break;
case 58:
Var0.f_3 = joaat("v_ilev_carmod3door");
Var0 = { 114.3206f, 6623.226f, 32.7161f };
Var0.f_5 = 1200466273;
Var0.f_6 = 25f;
break;
case 59:
Var0.f_3 = joaat("v_ilev_carmod3door");
Var0 = { 1182.305f, 2645.242f, 38.807f };
Var0.f_5 = 1391004277;
Var0.f_6 = 25f;
break;
case 60:
Var0.f_3 = joaat("v_ilev_carmod3door");
Var0 = { 1174.654f, 2645.242f, 38.6826f };
Var0.f_5 = -459199009;
Var0.f_6 = 25f;
break;
case 225:
Var0.f_3 = -427498890;
Var0 = { -205.7007f, -1310.692f, 30.2957f };
Var0.f_5 = -288764223;
Var0.f_6 = 25f;
break;
case 61:
Var0.f_3 = joaat("v_ilev_janitor_frontdoor");
Var0 = { -107.5401f, -9.0258f, 70.6696f };
Var0.f_5 = -252283844;
break;
case 62:
Var0.f_3 = joaat("v_ilev_ss_door8");
Var0 = { 717f, -975f, 25f };
Var0.f_5 = -826072862;
break;
case 63:
Var0.f_3 = joaat("v_ilev_ss_door7");
Var0 = { 719f, -975f, 25f };
Var0.f_5 = 763780711;
break;
case 64:
Var0.f_3 = joaat("v_ilev_ss_door02");
Var0 = { 709.9813f, -963.5311f, 30.5453f };
Var0.f_5 = -874851305;
break;
case 65:
Var0.f_3 = joaat("v_ilev_ss_door03");
Var0 = { 709.9894f, -960.6675f, 30.5453f };
Var0.f_5 = -1480820165;
break;
case 66:
Var0.f_3 = joaat("v_ilev_store_door");
Var0 = { 707.8046f, -962.4564f, 30.5453f };
Var0.f_5 = 949391213;
break;
case 67:
Var0.f_3 = -1212951353;
Var0 = { 1393f, 3599f, 35f };
Var0.f_5 = 212192855;
break;
case 68:
Var0.f_3 = -1212951353;
Var0 = { 1395f, 3600f, 35f };
Var0.f_5 = -126474752;
break;
case 69:
Var0.f_3 = joaat("v_ilev_ss_door04");
Var0 = { 1387f, 3614f, 39f };
Var0.f_5 = 1765671336;
break;
case 70:
Var0.f_3 = joaat("prop_ron_door_01");
Var0 = { 1083.547f, -1975.435f, 31.6222f };
Var0.f_5 = 792295685;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 71:
Var0.f_3 = joaat("prop_ron_door_01");
Var0 = { 1065.237f, -2006.079f, 32.2329f };
Var0.f_5 = 563273144;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 72:
Var0.f_3 = joaat("prop_ron_door_01");
Var0 = { 1085.307f, -2018.561f, 41.6289f };
Var0.f_5 = -726993043;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 73:
Var0.f_3 = joaat("v_ilev_bank4door02");
Var0 = { -111f, 6464f, 32f };
Var0.f_5 = 178228075;
break;
case 74:
Var0.f_3 = joaat("v_ilev_bank4door01");
Var0 = { -110f, 6462f, 32f };
Var0.f_5 = 1852297978;
break;
case 75:
Var0.f_3 = joaat("v_ilev_lester_doorfront");
Var0 = { 1274f, -1721f, 55f };
Var0.f_5 = -565026078;
break;
case 76:
Var0.f_3 = joaat("v_ilev_lester_doorveranda");
Var0 = { 1271.89f, -1707.57f, 53.79f };
Var0.f_5 = 1646172266;
break;
case 77:
Var0.f_3 = joaat("v_ilev_lester_doorveranda");
Var0 = { 1270.77f, -1708.1f, 53.75f };
Var0.f_5 = 204467342;
break;
case 78:
Var0.f_3 = joaat("v_ilev_deviantfrontdoor");
Var0 = { -127.5f, -1456.18f, 37.94f };
Var0.f_5 = 2047070410;
break;
case 79:
Var0.f_3 = joaat("prop_com_gar_door_01");
Var0 = { 483.56f, -1316.08f, 32.18f };
Var0.f_5 = 1417775309;
break;
case 80:
Var0.f_3 = joaat("v_ilev_cs_door");
Var0 = { 483f, -1312f, 29f };
Var0.f_5 = -106474626;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 81:
Var0.f_3 = joaat("prop_strip_door_01");
Var0 = { 128f, -1299f, 29f };
Var0.f_5 = 1840510598;
break;
case 82:
Var0.f_3 = joaat("prop_magenta_door");
Var0 = { 96f, -1285f, 29f };
Var0.f_5 = 1382825971;
break;
case 83:
Var0.f_3 = joaat("prop_motel_door_09");
Var0 = { 549f, -1773f, 34f };
Var0.f_5 = 232536303;
break;
case 84:
Var0.f_3 = joaat("v_ilev_gangsafedoor");
Var0 = { 974f, -1839f, 36f };
Var0.f_5 = 1267246609;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 3);
break;
case 85:
Var0.f_3 = joaat("v_ilev_gangsafedoor");
Var0 = { 977f, -105f, 75f };
Var0.f_5 = -1900237971;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 3);
break;
case 86:
Var0.f_3 = joaat("v_ilev_ra_door1_l");
Var0 = { 1391f, 1163f, 114f };
Var0.f_5 = 2077901353;
break;
case 87:
Var0.f_3 = joaat("v_ilev_ra_door1_r");
Var0 = { 1391f, 1161f, 114f };
Var0.f_5 = -2102079126;
break;
case 88:
Var0.f_3 = joaat("prop_cs6_03_door_l");
Var0 = { 1396f, 1143f, 115f };
Var0.f_5 = -1905793212;
break;
case 89:
Var0.f_3 = joaat("prop_cs6_03_door_r");
Var0 = { 1396f, 1141f, 115f };
Var0.f_5 = -1797032505;
break;
case 90:
Var0.f_3 = joaat("v_ilev_ra_door1_l");
Var0 = { 1409f, 1146f, 114f };
Var0.f_5 = -62235167;
break;
case 91:
Var0.f_3 = joaat("v_ilev_ra_door1_r");
Var0 = { 1409f, 1148f, 114f };
Var0.f_5 = -1727188163;
break;
case 92:
Var0.f_3 = joaat("v_ilev_ra_door1_l");
Var0 = { 1408f, 1159f, 114f };
Var0.f_5 = -562748873;
break;
case 93:
Var0.f_3 = joaat("v_ilev_ra_door1_r");
Var0 = { 1408f, 1161f, 114f };
Var0.f_5 = 1976429759;
break;
case 94:
Var0.f_3 = joaat("prop_gar_door_01");
Var0 = { -1067f, -1666f, 5f };
Var0.f_5 = 1341041543;
break;
case 95:
Var0.f_3 = joaat("prop_gar_door_02");
Var0 = { -1065f, -1669f, 5f };
Var0.f_5 = -1631467220;
break;
case 96:
Var0.f_3 = joaat("prop_map_door_01");
Var0 = { -1104.66f, -1638.48f, 4.68f };
Var0.f_5 = -1788473129;
break;
case 97:
Var0.f_3 = joaat("v_ilev_fib_door1");
Var0 = { -31.72f, -1101.85f, 26.57f };
Var0.f_5 = -1831288286;
break;
case 98:
Var0.f_3 = joaat("v_ilev_tort_door");
Var0 = { 134.4f, -2204.1f, 7.52f };
Var0.f_5 = 963876966;
break;
case 99:
Var0.f_3 = joaat("v_ilev_bl_shutter2");
Var0 = { 3628f, 3747f, 28f };
Var0.f_5 = 1773088812;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 100:
Var0.f_3 = joaat("v_ilev_bl_shutter2");
Var0 = { 3621f, 3752f, 28f };
Var0.f_5 = -1332101528;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 101:
Var0.f_3 = joaat("v_ilev_rc_door3_l");
Var0 = { -608.73f, -1610.32f, 27.16f };
Var0.f_5 = -1811763714;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 102:
Var0.f_3 = joaat("v_ilev_rc_door3_r");
Var0 = { -611.32f, -1610.09f, 27.16f };
Var0.f_5 = 1608500665;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 103:
Var0.f_3 = joaat("v_ilev_rc_door3_l");
Var0 = { -592.94f, -1631.58f, 27.16f };
Var0.f_5 = -1456048340;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 104:
Var0.f_3 = joaat("v_ilev_rc_door3_r");
Var0 = { -592.71f, -1628.99f, 27.16f };
Var0.f_5 = 943854909;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 105:
Var0.f_3 = joaat("v_ilev_ss_door04");
Var0 = { 1991f, 3053f, 47f };
Var0.f_5 = -89065356;
break;
case 106:
Var0.f_3 = 479144380;
Var0 = { 1988.353f, 3054.411f, 47.3204f };
Var0.f_5 = -925491840;
break;
case 107:
Var0.f_3 = joaat("prop_epsilon_door_l");
Var0 = { -700.17f, 47.31f, 44.3f };
Var0.f_5 = 1999872275;
break;
case 108:
Var0.f_3 = joaat("prop_epsilon_door_r");
Var0 = { -697.94f, 48.35f, 44.3f };
Var0.f_5 = 1999872275;
break;
case 109:
Var0.f_3 = -1230442770;
Var0 = { 241.3574f, 361.0488f, 105.8963f };
Var0.f_5 = 1538555582;
break;
case 110:
Var0.f_3 = joaat("prop_ch2_09c_garage_door");
Var0 = { -689.11f, 506.97f, 110.64f };
Var0.f_5 = -961994186;
break;
case 111:
Var0.f_3 = joaat("v_ilev_door_orangesolid");
Var0 = { -1055.96f, -236.43f, 44.17f };
Var0.f_5 = -1772472848;
break;
case 112:
Var0.f_3 = joaat("prop_magenta_door");
Var0 = { 29f, 3661f, 41f };
Var0.f_5 = -46374650;
break;
case 113:
Var0.f_3 = joaat("prop_cs4_05_tdoor");
Var0 = { 32f, 3667f, 41f };
Var0.f_5 = -358302761;
break;
case 114:
Var0.f_3 = joaat("v_ilev_housedoor1");
Var0 = { 87f, -1959f, 21f };
Var0.f_5 = -1237936041;
break;
case 115:
Var0.f_3 = joaat("v_ilev_fh_frntdoor");
Var0 = { 0f, -1823f, 30f };
Var0.f_5 = 1487374207;
break;
case 116:
Var0.f_3 = joaat("p_cut_door_03");
Var0 = { 23.34f, -1897.6f, 23.05f };
Var0.f_5 = -199126299;
break;
case 117:
Var0.f_3 = joaat("p_cut_door_02");
Var0 = { 524.2f, 3081.14f, 41.16f };
Var0.f_5 = -897071863;
break;
case 118:
Var0.f_3 = joaat("v_ilev_po_door");
Var0 = { -1910.58f, -576.01f, 19.25f };
Var0.f_5 = -864465775;
break;
case 119:
Var0.f_3 = joaat("prop_ss1_10_door_l");
Var0 = { -720.39f, 256.86f, 80.29f };
Var0.f_5 = -208439480;
break;
case 120:
Var0.f_3 = joaat("prop_ss1_10_door_r");
Var0 = { -718.42f, 257.79f, 80.29f };
Var0.f_5 = -1001088805;
break;
case 121:
Var0.f_3 = joaat("v_ilev_fibl_door02");
Var0 = { 106.38f, -742.7f, 46.18f };
Var0.f_5 = 756894459;
break;
case 122:
Var0.f_3 = joaat("v_ilev_fibl_door01");
Var0 = { 105.76f, -746.65f, 46.18f };
Var0.f_5 = 476981677;
break;
case 123:
Var0.f_3 = joaat("v_ilev_ct_door01");
Var0 = { -2343.53f, 3265.37f, 32.96f };
Var0.f_5 = 2081647379;
break;
case 124:
Var0.f_3 = joaat("v_ilev_ct_door01");
Var0 = { -2342.23f, 3267.62f, 32.96f };
Var0.f_5 = 2081647379;
break;
case 125:
Var0.f_3 = joaat("ap1_02_door_l");
Var0 = { -1041.933f, -2748.167f, 22.0308f };
Var0.f_5 = 169965357;
break;
case 126:
Var0.f_3 = joaat("ap1_02_door_r");
Var0 = { -1044.841f, -2746.489f, 22.0308f };
Var0.f_5 = 311232516;
break;
case 128:
Var0.f_3 = joaat("v_ilev_fb_doorshortl");
Var0 = { -1045.12f, -232.004f, 39.4379f };
Var0.f_5 = -1563127729;
break;
case 129:
Var0.f_3 = joaat("v_ilev_fb_doorshortr");
Var0 = { -1046.516f, -229.3581f, 39.4379f };
Var0.f_5 = 759145763;
break;
case 130:
Var0.f_3 = joaat("v_ilev_fb_door01");
Var0 = { -1083.62f, -260.4167f, 38.1867f };
Var0.f_5 = -84399179;
break;
case 131:
Var0.f_3 = joaat("v_ilev_fb_door02");
Var0 = { -1080.974f, -259.0204f, 38.1867f };
Var0.f_5 = -461898059;
break;
case 127:
Var0.f_3 = joaat("v_ilev_gtdoor");
Var0 = { -1042.57f, -240.6f, 38.11f };
Var0.f_5 = 1259065971;
break;
case 132:
Var0.f_3 = joaat("prop_damdoor_01");
Var0 = { 1385.258f, -2079.949f, 52.7638f };
Var0.f_5 = -884051216;
break;
case 133:
Var0.f_3 = joaat("v_ilev_genbankdoor2");
Var0 = { 1656.57f, 4849.66f, 42.35f };
Var0.f_5 = 243782214;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 134:
Var0.f_3 = joaat("v_ilev_genbankdoor1");
Var0 = { 1656.25f, 4852.24f, 42.35f };
Var0.f_5 = 714115627;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 135:
Var0.f_3 = -1184516519;
Var0 = { -1051.402f, -474.6847f, 36.6199f };
Var0.f_5 = 1668106976;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 1);
break;
case 136:
Var0.f_3 = -1184516519;
Var0 = { -1049.285f, -476.6376f, 36.7584f };
Var0.f_5 = 1382347031;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 1);
break;
case 137:
Var0.f_3 = 1230099731;
Var0 = { -1210.957f, -580.8765f, 27.2373f };
Var0.f_5 = -966790948;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 1);
break;
case 138:
Var0.f_3 = 1230099731;
Var0 = { -1212.445f, -578.4401f, 27.2373f };
Var0.f_5 = -2068750132;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 1);
break;
case 139:
Var0.f_3 = joaat("v_ilev_roc_door4");
Var0 = { -565.1712f, 276.6259f, 83.2863f };
Var0.f_5 = -1716533184;
break;
case 140:
Var0.f_3 = joaat("v_ilev_roc_door4");
Var0 = { -561.2863f, 293.5043f, 87.7771f };
Var0.f_5 = 2146505927;
break;
case 141:
Var0.f_3 = joaat("p_jewel_door_l");
Var0 = { -631.96f, -236.33f, 38.21f };
Var0.f_5 = 1874948872;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 142:
Var0.f_3 = joaat("p_jewel_door_r1");
Var0 = { -630.43f, -238.44f, 38.21f };
Var0.f_5 = -1965020851;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 145:
Var0.f_3 = -1743257725;
Var0 = { 231.62f, 216.23f, 106.4f };
Var0.f_5 = 1951546856;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 146:
Var0.f_3 = -1743257725;
Var0 = { 232.72f, 213.88f, 106.4f };
Var0.f_5 = -431382051;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 143:
Var0.f_3 = 110411286;
Var0 = { 258.32f, 203.84f, 106.43f };
Var0.f_5 = -293975210;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 144:
Var0.f_3 = 110411286;
Var0 = { 260.76f, 202.95f, 106.43f };
Var0.f_5 = -785215289;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 148:
Var0.f_3 = -222270721;
Var0 = { 256.31f, 220.66f, 106.43f };
Var0.f_5 = -366143778;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 147:
Var0.f_3 = joaat("v_ilev_bk_door");
Var0 = { 266.36f, 217.57f, 110.43f };
Var0.f_5 = 440819155;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 149:
Var0.f_3 = joaat("v_ilev_shrf2door");
Var0 = { -442.66f, 6015.222f, 31.8663f };
Var0.f_5 = -588495243;
break;
case 150:
Var0.f_3 = joaat("v_ilev_shrf2door");
Var0 = { -444.4985f, 6017.06f, 31.8663f };
Var0.f_5 = 1815504139;
break;
case 151:
Var0.f_3 = joaat("v_ilev_shrfdoor");
Var0 = { 1855.685f, 3683.93f, 34.5928f };
Var0.f_5 = 1344911780;
break;
case 152:
Var0.f_3 = joaat("prop_bhhotel_door_l");
Var0 = { -1223.35f, -172.41f, 39.98f };
Var0.f_5 = -320891223;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 153:
Var0.f_3 = joaat("prop_bhhotel_door_r");
Var0 = { -1220.93f, -173.68f, 39.98f };
Var0.f_5 = 1511747875;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 154:
Var0.f_3 = joaat("prop_bhhotel_door_l");
Var0 = { -1211.99f, -190.57f, 39.98f };
Var0.f_5 = -1517722103;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 155:
Var0.f_3 = joaat("prop_bhhotel_door_r");
Var0 = { -1213.26f, -192.98f, 39.98f };
Var0.f_5 = -1093199712;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 156:
Var0.f_3 = joaat("prop_bhhotel_door_l");
Var0 = { -1217.77f, -201.54f, 39.98f };
Var0.f_5 = 1902048492;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 157:
Var0.f_3 = joaat("prop_bhhotel_door_r");
Var0 = { -1219.04f, -203.95f, 39.98f };
Var0.f_5 = -444768985;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 158:
Var0.f_3 = joaat("prop_ch3_04_door_01l");
Var0 = { 2514.32f, -317.34f, 93.32f };
Var0.f_5 = 404057594;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 159:
Var0.f_3 = joaat("prop_ch3_04_door_01r");
Var0 = { 2512.42f, -319.26f, 93.32f };
Var0.f_5 = -1417472813;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 160:
Var0.f_3 = joaat("prop_ch3_01_trlrdoor_l");
Var0 = { 2333.23f, 2574.97f, 47.03f };
Var0.f_5 = -1376084479;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 161:
Var0.f_3 = joaat("prop_ch3_01_trlrdoor_r");
Var0 = { 2329.65f, 2576.64f, 47.03f };
Var0.f_5 = 457472151;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 162:
Var0.f_3 = joaat("v_ilev_gc_door04");
Var0 = { 16.1279f, -1114.605f, 29.9469f };
Var0.f_5 = 1071759151;
break;
case 163:
Var0.f_3 = joaat("v_ilev_gc_door03");
Var0 = { 18.572f, -1115.495f, 29.9469f };
Var0.f_5 = -2119023917;
break;
case 165:
Var0.f_3 = joaat("v_ilev_gc_door04");
Var0 = { 1698.176f, 3751.506f, 34.8553f };
Var0.f_5 = -1488490473;
break;
case 166:
Var0.f_3 = joaat("v_ilev_gc_door03");
Var0 = { 1699.937f, 3753.42f, 34.8553f };
Var0.f_5 = -511187813;
break;
case 167:
Var0.f_3 = joaat("v_ilev_gc_door04");
Var0 = { 244.7274f, -44.0791f, 70.91f };
Var0.f_5 = -248569395;
break;
case 168:
Var0.f_3 = joaat("v_ilev_gc_door03");
Var0 = { 243.8379f, -46.5232f, 70.91f };
Var0.f_5 = 989443413;
break;
case 169:
Var0.f_3 = joaat("v_ilev_gc_door04");
Var0 = { 845.3624f, -1024.539f, 28.3448f };
Var0.f_5 = 2022251829;
break;
case 170:
Var0.f_3 = joaat("v_ilev_gc_door03");
Var0 = { 842.7684f, -1024.539f, 23.3448f };
Var0.f_5 = 649820567;
break;
case 171:
Var0.f_3 = joaat("v_ilev_gc_door04");
Var0 = { -326.1122f, 6075.27f, 31.6047f };
Var0.f_5 = 537455378;
break;
case 172:
Var0.f_3 = joaat("v_ilev_gc_door03");
Var0 = { -324.273f, 6077.109f, 31.6047f };
Var0.f_5 = 1121431731;
break;
case 173:
Var0.f_3 = joaat("v_ilev_gc_door04");
Var0 = { -665.2424f, -944.3256f, 21.9792f };
Var0.f_5 = -1437380438;
break;
case 174:
Var0.f_3 = joaat("v_ilev_gc_door03");
Var0 = { -662.6414f, -944.3256f, 21.9792f };
Var0.f_5 = -946336965;
break;
case 175:
Var0.f_3 = joaat("v_ilev_gc_door04");
Var0 = { -1313.826f, -389.1259f, 36.8457f };
Var0.f_5 = 1893144650;
break;
case 176:
Var0.f_3 = joaat("v_ilev_gc_door03");
Var0 = { -1314.465f, -391.6472f, 36.8457f };
Var0.f_5 = 435841678;
break;
case 177:
Var0.f_3 = joaat("v_ilev_gc_door04");
Var0 = { -1114.009f, 2689.77f, 18.7041f };
Var0.f_5 = 948508314;
break;
case 178:
Var0.f_3 = joaat("v_ilev_gc_door03");
Var0 = { -1112.071f, 2691.505f, 18.7041f };
Var0.f_5 = -1796714665;
break;
case 179:
Var0.f_3 = joaat("v_ilev_gc_door04");
Var0 = { -3164.845f, 1081.392f, 20.9887f };
Var0.f_5 = -1155247245;
break;
case 180:
Var0.f_3 = joaat("v_ilev_gc_door03");
Var0 = { -3163.812f, 1083.778f, 20.9887f };
Var0.f_5 = 782482084;
break;
case 181:
Var0.f_3 = joaat("v_ilev_gc_door04");
Var0 = { 2570.905f, 303.3556f, 108.8848f };
Var0.f_5 = -1194470801;
break;
case 182:
Var0.f_3 = joaat("v_ilev_gc_door03");
Var0 = { 2568.304f, 303.3556f, 108.8848f };
Var0.f_5 = -2129698061;
break;
case 183:
Var0.f_3 = joaat("v_ilev_gc_door04");
Var0 = { 813.1779f, -2148.27f, 29.7689f };
Var0.f_5 = 1071759151;
break;
case 184:
Var0.f_3 = joaat("v_ilev_gc_door03");
Var0 = { 810.5769f, -2148.27f, 29.7689f };
Var0.f_5 = -2119023917;
break;
case 164:
Var0.f_3 = joaat("v_ilev_gc_door01");
Var0 = { 6.8179f, -1098.209f, 29.9469f };
Var0.f_5 = 1487704245;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 3);
break;
case 185:
Var0.f_3 = joaat("v_ilev_gc_door01");
Var0 = { 827.5342f, -2160.493f, 29.7688f };
Var0.f_5 = 1529812051;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 3);
break;
case 186:
Var0.f_3 = joaat("prop_lrggate_01c_l");
Var0 = { -1107.01f, 289.38f, 64.76f };
Var0.f_5 = 904342475;
break;
case 187:
Var0.f_3 = joaat("prop_lrggate_01c_r");
Var0 = { -1101.62f, 290.36f, 64.76f };
Var0.f_5 = -795418380;
break;
case 188:
Var0.f_3 = joaat("prop_lrggate_01c_l");
Var0 = { -1138.64f, 300.82f, 67.18f };
Var0.f_5 = -1502457334;
break;
case 189:
Var0.f_3 = joaat("prop_lrggate_01c_r");
Var0 = { -1137.05f, 295.59f, 67.18f };
Var0.f_5 = -1994188940;
break;
case 190:
Var0.f_3 = joaat("v_ilev_bl_doorel_l");
Var0 = { -2053.16f, 3239.49f, 30.5f };
Var0.f_5 = -621770121;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 191:
Var0.f_3 = joaat("v_ilev_bl_doorel_r");
Var0 = { -2054.39f, 3237.23f, 30.5f };
Var0.f_5 = 1018580481;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 192:
Var0.f_3 = joaat("v_ilev_cbankcountdoor01");
Var0 = { -108.91f, 6469.11f, 31.91f };
Var0.f_5 = 421926217;
break;
case 193:
Var0.f_3 = joaat("prop_fnclink_03gate5");
Var0 = { -182.91f, 6168.37f, 32.14f };
Var0.f_5 = -1331552374;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
}
switch (iParam0)
{
case 196:
Var0.f_3 = joaat("v_ilev_csr_door_l");
Var0 = { -59.89f, -1092.95f, 26.88f };
Var0.f_5 = -293141277;
break;
case 197:
Var0.f_3 = joaat("v_ilev_csr_door_r");
Var0 = { -60.55f, -1094.75f, 26.89f };
Var0.f_5 = 506750037;
break;
case 194:
Var0.f_3 = joaat("v_ilev_csr_door_l");
Var0 = { -39.13f, -1108.22f, 26.72f };
Var0.f_5 = 1496005418;
break;
case 195:
Var0.f_3 = joaat("v_ilev_csr_door_r");
Var0 = { -37.33f, -1108.87f, 26.72f };
Var0.f_5 = -1863079210;
break;
case 198:
Var0.f_3 = joaat("prop_ron_door_01");
Var0 = { 1943.73f, 3803.63f, 32.31f };
Var0.f_5 = -2018911784;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 199:
Var0.f_3 = joaat("v_ilev_genbankdoor2");
Var0 = { 316.39f, -276.49f, 54.52f };
Var0.f_5 = -93934272;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 200:
Var0.f_3 = joaat("v_ilev_genbankdoor1");
Var0 = { 313.96f, -275.6f, 54.52f };
Var0.f_5 = 667682830;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 201:
Var0.f_3 = joaat("v_ilev_genbankdoor2");
Var0 = { -2965.71f, 484.22f, 16.05f };
Var0.f_5 = 1876735830;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 202:
Var0.f_3 = joaat("v_ilev_genbankdoor1");
Var0 = { -2965.82f, 481.63f, 16.05f };
Var0.f_5 = -2112857171;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 205:
Var0.f_3 = joaat("v_ilev_abbmaindoor");
Var0 = { 962.1f, -2183.83f, 31.06f };
Var0.f_5 = 2046930518;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 206:
Var0.f_3 = joaat("v_ilev_abbmaindoor2");
Var0 = { 961.79f, -2187.08f, 31.06f };
Var0.f_5 = 1208502884;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 207:
Var0.f_3 = joaat("prop_ch3_04_door_02");
Var0 = { 2508.43f, -336.63f, 115.76f };
Var0.f_5 = 1986432421;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 208:
Var0.f_3 = joaat("prop_ch1_07_door_01l");
Var0 = { -2255.19f, 322.26f, 184.93f };
Var0.f_5 = -722798986;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 209:
Var0.f_3 = joaat("prop_ch1_07_door_01r");
Var0 = { -2254.06f, 319.7f, 184.93f };
Var0.f_5 = 204301578;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 210:
Var0.f_3 = joaat("prop_ch1_07_door_01l");
Var0 = { -2301.13f, 336.91f, 184.93f };
Var0.f_5 = -320140460;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 211:
Var0.f_3 = joaat("prop_ch1_07_door_01r");
Var0 = { -2298.57f, 338.05f, 184.93f };
Var0.f_5 = 65222916;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 212:
Var0.f_3 = joaat("prop_ch1_07_door_01l");
Var0 = { -2222.32f, 305.86f, 184.93f };
Var0.f_5 = -920027322;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 213:
Var0.f_3 = joaat("prop_ch1_07_door_01r");
Var0 = { -2221.19f, 303.3f, 184.93f };
Var0.f_5 = -58432001;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 214:
Var0.f_3 = joaat("prop_ch1_07_door_01l");
Var0 = { -2280.6f, 265.43f, 184.93f };
Var0.f_5 = -2007378629;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 215:
Var0.f_3 = joaat("prop_ch1_07_door_01r");
Var0 = { -2278.04f, 266.57f, 184.93f };
Var0.f_5 = 418772613;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 216:
Var0.f_3 = joaat("prop_gar_door_04");
Var0 = { 778.31f, -1867.49f, 30.66f };
Var0.f_5 = 1679064921;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 217:
Var0.f_3 = joaat("prop_gate_tep_01_l");
Var0 = { -721.35f, 91.01f, 56.68f };
Var0.f_5 = 412198396;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 218:
Var0.f_3 = joaat("prop_gate_tep_01_r");
Var0 = { -728.84f, 88.64f, 56.68f };
Var0.f_5 = -1053755588;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 219:
Var0.f_3 = joaat("prop_artgallery_02_dr");
Var0 = { -2287.62f, 363.9f, 174.93f };
Var0.f_5 = -53446139;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 220:
Var0.f_3 = joaat("prop_artgallery_02_dl");
Var0 = { -2289.78f, 362.91f, 174.93f };
Var0.f_5 = 1333960556;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 221:
Var0.f_3 = joaat("prop_artgallery_02_dr");
Var0 = { -2289.86f, 362.88f, 174.93f };
Var0.f_5 = -41786493;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 222:
Var0.f_3 = joaat("prop_artgallery_02_dl");
Var0 = { -2292.01f, 361.89f, 174.93f };
Var0.f_5 = 1750120734;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 223:
Var0.f_3 = joaat("prop_fnclink_07gate1");
Var0 = { 1803.94f, 3929.01f, 33.72f };
Var0.f_5 = 1661506222;
break;
case 203:
Var0.f_3 = joaat("v_ilev_genbankdoor2");
Var0 = { -348.81f, -47.26f, 49.39f };
Var0.f_5 = -2116116146;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 204:
Var0.f_3 = joaat("v_ilev_genbankdoor1");
Var0 = { -351.26f, -46.41f, 49.39f };
Var0.f_5 = -74083138;
unk_0x2BCFB39E86340DAA(&(Var0.f_4), 2);
break;
case 224:
Var0.f_3 = joaat("prop_abat_slide");
Var0 = { 962.9084f, -2105.814f, 34.6432f };
Var0.f_5 = -1670085357;
break;
}
return Var0;
}
int func_647(vector3 vParam0, int iParam1, int iParam2)
{
int iVar0;
float fVar1;
float fVar2;
int iVar3;
fVar2 = 1000000f;
iVar3 = 10;
iVar0 = 0;
while (iVar0 <= (10 - 1))
{
if (Global_88365[iVar0 /*10*/].f_7 != 263)
{
if (Global_88365[iVar0 /*10*/].f_9 == iParam1 || iParam1 == 145)
{
if (func_648(iVar0) || iParam2 == 0)
{
fVar1 = unk_0x499324B3EF19C288(vParam0, Global_88365[iVar0 /*10*/].f_3, true);
if (fVar1 < fVar2)
{
fVar2 = fVar1;
iVar3 = iVar0;
}
}
}
}
iVar0++;
}
return iVar3;
}
bool func_648(int iParam0)
{
return unk_0x05EFB6A616B6FADE(Global_106070.f_7201[iParam0], 0);
}
void func_649(int iParam0)
{
int iVar0;
iVar0 = 0;
while (iVar0 < 8)
{
func_650(iParam0, iVar0);
iVar0++;
}
}
void func_650(int iParam0, int iParam1)
{
int iVar0;
float fVar1;
int iVar2;
int iVar3;
if (((iParam0 != 0 || iParam0 != 1) || iParam0 != 2) || iParam0 != 3)
{
return;
}
func_651(iParam0, iParam1, &iVar2, &iVar3);
if (unk_0x4C9BACA8D249CB13())
{
iVar0 = func_19(iVar3, -1, 0);
}
else
{
unk_0x2AD48F3CEBA882E9(iVar2, &iVar0, -1);
}
switch (iParam1)
{
case 2:
fVar1 = (0.8f + (0.4f * (to_float(iVar0) / 100f)));
unk_0xAA7525025C2E710F(unk_0xD4E735F4B6A956AC(), fVar1, 1);
break;
case 7:
if (unk_0x8B1574454E8C2421(joaat("armenian3")) != 0 || unk_0x8B1574454E8C2421(joaat("trevor3")) != 0)
{
Global_90610 = 1;
}
else
{
fVar1 = (1f - (to_float(iVar0) / 100f));
unk_0x1B26357B8BDA91B2(unk_0xD4E735F4B6A956AC(), fVar1);
unk_0xDABDEAC9908D8F06(unk_0xD4E735F4B6A956AC(), fVar1);
unk_0x3CC829823004BCCD(unk_0xD4E735F4B6A956AC(), fVar1);
}
break;
}
}
void func_651(int iParam0, int iParam1, var uParam2, var uParam3)
{
switch (iParam0)
{
case 0:
switch (iParam1)
{
case 0:
*uParam2 = joaat("sp0_special_ability_unlocked");
break;
case 1:
*uParam2 = joaat("sp0_stamina");
break;
case 3:
*uParam2 = joaat("sp0_lung_capacity");
break;
case 2:
*uParam2 = joaat("sp0_strength");
break;
case 4:
*uParam2 = joaat("sp0_wheelie_ability");
break;
case 5:
*uParam2 = joaat("sp0_flying_ability");
break;
case 6:
*uParam2 = joaat("sp0_shooting_ability");
break;
case 7:
*uParam2 = joaat("sp0_stealth_ability");
break;
}
break;
case 1:
switch (iParam1)
{
case 0:
*uParam2 = joaat("sp1_special_ability_unlocked");
break;
case 1:
*uParam2 = joaat("sp1_stamina");
break;
case 3:
*uParam2 = joaat("sp1_lung_capacity");
break;
case 2:
*uParam2 = joaat("sp1_strength");
break;
case 4:
*uParam2 = joaat("sp1_wheelie_ability");
break;
case 5:
*uParam2 = joaat("sp1_flying_ability");
break;
case 6:
*uParam2 = joaat("sp1_shooting_ability");
break;
case 7:
*uParam2 = joaat("sp1_stealth_ability");
break;
}
break;
case 2:
switch (iParam1)
{
case 0:
*uParam2 = joaat("sp2_special_ability_unlocked");
break;
case 1:
*uParam2 = joaat("sp2_stamina");
break;
case 3:
*uParam2 = joaat("sp2_lung_capacity");
break;
case 2:
*uParam2 = joaat("sp2_strength");
break;
case 4:
*uParam2 = joaat("sp2_wheelie_ability");
break;
case 5:
*uParam2 = joaat("sp2_flying_ability");
break;
case 6:
*uParam2 = joaat("sp2_shooting_ability");
break;
case 7:
*uParam2 = joaat("sp2_stealth_ability");
break;
}
break;
case 3:
switch (iParam1)
{
case 0:
*uParam3 = 64;
break;
case 1:
*uParam3 = 65;
break;
case 3:
*uParam3 = 67;
break;
case 2:
*uParam3 = 66;
break;
case 4:
*uParam3 = 68;
break;
case 5:
*uParam3 = 69;
break;
case 6:
*uParam3 = 70;
break;
case 7:
*uParam3 = 71;
break;
}
break;
}
}
void func_652(int iParam0)
{
switch (iParam0)
{
case 0:
unk_0x80E7C4A78224C8F9(255, 1166638144, 1862763509);
unk_0x80E7C4A78224C8F9(2, 1862763509, -1865950624);
unk_0x80E7C4A78224C8F9(255, -1865950624, 1862763509);
unk_0x80E7C4A78224C8F9(1, Global_88330, 1862763509);
unk_0x80E7C4A78224C8F9(1, 1862763509, Global_88330);
unk_0x80E7C4A78224C8F9(1, Global_88331, 1862763509);
unk_0x80E7C4A78224C8F9(1, 1862763509, Global_88331);
unk_0x80E7C4A78224C8F9(1, Global_88332, 1862763509);
unk_0x80E7C4A78224C8F9(1, 1862763509, Global_88332);
break;
case 1:
unk_0x80E7C4A78224C8F9(1, 1166638144, 1862763509);
unk_0x80E7C4A78224C8F9(2, 1862763509, -1865950624);
unk_0x80E7C4A78224C8F9(255, -1865950624, 1862763509);
unk_0x80E7C4A78224C8F9(1, Global_88330, 1862763509);
unk_0x80E7C4A78224C8F9(1, 1862763509, Global_88330);
unk_0x80E7C4A78224C8F9(1, Global_88331, 1862763509);
unk_0x80E7C4A78224C8F9(1, 1862763509, Global_88331);
unk_0x80E7C4A78224C8F9(1, Global_88332, 1862763509);
unk_0x80E7C4A78224C8F9(1, 1862763509, Global_88332);
break;
case 2:
unk_0x80E7C4A78224C8F9(255, 1166638144, 1862763509);
unk_0x80E7C4A78224C8F9(5, 1862763509, -1865950624);
unk_0x80E7C4A78224C8F9(5, -1865950624, 1862763509);
unk_0x80E7C4A78224C8F9(1, Global_88330, 1862763509);
unk_0x80E7C4A78224C8F9(1, 1862763509, Global_88330);
unk_0x80E7C4A78224C8F9(1, Global_88331, 1862763509);
unk_0x80E7C4A78224C8F9(1, 1862763509, Global_88331);
unk_0x80E7C4A78224C8F9(1, Global_88332, 1862763509);
unk_0x80E7C4A78224C8F9(1, 1862763509, Global_88332);
break;
default:
break;
}
}
void func_653()
{
int iVar0;
int iVar1;
func_45();
iVar0 = unk_0xAD5C3EEF1F548D92();
if (unk_0xCE3CB618AFE55EFB(iVar0))
{
iVar1 = Global_106070.f_2355.f_539.f_4301;
if (func_46(14))
{
iVar1 = func_48(unk_0xA19140A5C42D8715());
}
if (iVar1 == 0)
{
unk_0xC4F12E446CCE89F5(iVar0, "BLIP_MICHAEL");
}
else if (iVar1 == 1)
{
unk_0xC4F12E446CCE89F5(iVar0, "BLIP_FRANKLIN");
}
else if (iVar1 == 2)
{
unk_0xC4F12E446CCE89F5(iVar0, "BLIP_TREV");
}
else
{
unk_0xC4F12E446CCE89F5(iVar0, "BLIP_PLAYER");
}
}
}
void func_654(int iParam0)
{
int iVar0;
var uVar1;
int iVar2;
int iVar3;
int iVar4;
int iVar5;
struct<2> Var6;
iVar0 = 0;
while (iVar0 < 44)
{
iVar2 = func_340(iVar0);
if (iVar2 != 0)
{
iVar3 = unk_0x3D2A81E3C295D501(iParam0, iVar2);
if ((iVar3 != 0 && iVar3 != joaat("weapon_unarmed")) && iVar3 != joaat("object"))
{
if (unk_0x8F62F4EC66847EC2(iParam0, iVar3) == -1)
{
if (unk_0x777DF4661165BA4B(iParam0, iVar3, &uVar1))
{
unk_0x808CD8B497BA1FB8(iParam0, 0, iVar3);
}
}
}
}
iVar0++;
}
iVar5 = unk_0x0AD363FF0CEF93B1();
iVar4 = 0;
while (iVar4 < iVar5)
{
if (unk_0x8798F3E6AE76AF63(iVar4, &Var6))
{
iVar3 = Var6.f_1;
if (unk_0x8F62F4EC66847EC2(iParam0, iVar3) == -1)
{
if (unk_0x777DF4661165BA4B(iParam0, iVar3, &uVar1))
{
unk_0x808CD8B497BA1FB8(iParam0, 0, iVar3);
}
}
}
iVar4++;
}
}
void func_655(int iParam0)
{
int iVar0;
iVar0 = func_48(iParam0);
if (func_47(iVar0) && !unk_0x4915F4759304D5CF(iParam0))
{
if (iParam0 == unk_0xA19140A5C42D8715() && unk_0xF49CB145FAD56CFD(iParam0) == 200)
{
unk_0x2E591DECDC7041D0(iParam0, round((IntToFloat(unk_0xF49CB145FAD56CFD(iParam0)) * Global_262145.f_105)));
}
if (Global_106070.f_2355.f_539.f_290[iVar0] <= 0f)
{
Global_106070.f_2355.f_539.f_290[iVar0] = 100f;
}
else if (Global_106070.f_2355.f_539.f_290[iVar0] <= 10f)
{
Global_106070.f_2355.f_539.f_290[iVar0] = 10f;
}
unk_0x6259CDB47862A4F3(iParam0, round((((Global_106070.f_2355.f_539.f_290[iVar0] / 100f) * (to_float(unk_0xF49CB145FAD56CFD(iParam0)) - 100f)) + 100f)), 0);
}
}
void func_656(int iParam0, int iParam1)
{
switch (iParam0)
{
case 0:
func_657(4, *iParam1, 0);
func_657(7, *iParam1, 0);
func_657(8, *iParam1, 0);
func_657(11, *iParam1, 0);
break;
case 1:
func_657(4, *iParam1, 0);
func_657(7, *iParam1, 0);
func_657(8, *iParam1, 0);
func_657(11, *iParam1, 0);
if (Global_106070.f_9057.f_99.f_58[126])
{
func_657(12, *iParam1, 0);
}
break;
case 2:
func_657(4, *iParam1, 0);
func_657(7, *iParam1, 0);
func_657(8, *iParam1, 0);
func_657(11, *iParam1, 0);
break;
}
}
void func_657(int iParam0, int iParam1, bool bParam2)
{
int iVar0;
bool bVar1;
if (!bParam2)
{
if (!unk_0xDC5D81351D6A4DDB(iParam1))
{
return;
}
}
if (Global_35240[iParam0 /*31*/].f_24 == 0)
{
return;
}
bVar1 = false;
iVar0 = 0;
while (iVar0 < Global_35240[iParam0 /*31*/].f_24)
{
if (bVar1)
{
Global_35240[iParam0 /*31*/].f_25[(iVar0 - 1)] = Global_35240[iParam0 /*31*/].f_25[iVar0];
Global_35240[iParam0 /*31*/].f_25[iVar0] = 0;
}
else if (iParam1 == Global_35240[iParam0 /*31*/].f_25[iVar0])
{
Global_35240[iParam0 /*31*/].f_25[iVar0] = 0;
bVar1 = true;
}
iVar0++;
}
if (bVar1)
{
Global_35240[iParam0 /*31*/].f_24 = (Global_35240[iParam0 /*31*/].f_24 - 1);
}
}
void func_658(int iParam0, bool bParam1)
{
func_663(iParam0);
func_334(iParam0, bParam1);
func_662(iParam0);
func_341(iParam0);
func_661(iParam0);
func_660(iParam0);
func_659(iParam0);
}
void func_659(int iParam0)
{
int iVar0;
iVar0 = func_48(iParam0);
if (func_47(iVar0) && !unk_0x4915F4759304D5CF(iParam0))
{
if (iParam0 == unk_0xA19140A5C42D8715())
{
Global_106070.f_2355.f_539.f_2308[iVar0] = unk_0x91347D2A80F38492(unk_0xD4E735F4B6A956AC());
}
}
}
void func_660(int iParam0)
{
int iVar0;
iVar0 = func_48(iParam0);
if (func_47(iVar0) && !unk_0x4915F4759304D5CF(iParam0))
{
Global_106070.f_2355.f_539.f_2298[iVar0 /*3*/] = { unk_0x57323E573695B13F(iParam0) };
}
}
void func_661(int iParam0)
{
int iVar0;
iVar0 = func_48(iParam0);
if (func_47(iVar0) && !unk_0x4915F4759304D5CF(iParam0))
{
if (unk_0x47C3DC461C758C29() && unk_0xF6F3AB25005ED460() != 3)
{
if (unk_0x84C1DECF60EFBBD7() == 8)
{
return;
}
}
Global_106070.f_2355.f_539.f_2280[iVar0 /*3*/] = { unk_0xE2BBD32891C18569(iParam0, true) };
Global_106070.f_2355.f_539.f_2290[iVar0] = unk_0x552C823E1D2A019C(iParam0);
Global_106070.f_2355.f_539.f_2294[iVar0] = unk_0x2BDB423A5E45639B(iParam0);
if (Global_106070.f_2355.f_539.f_2280[iVar0 /*3*/] >= 8000f)
{
Global_106070.f_2355.f_539.f_2280[iVar0 /*3*/] = 7500f;
}
else if (Global_106070.f_2355.f_539.f_2280[iVar0 /*3*/] <= -8000f)
{
Global_106070.f_2355.f_539.f_2280[iVar0 /*3*/] = -7500f;
}
if (Global_106070.f_2355.f_539.f_2280[iVar0 /*3*/].f_1 >= 8000f)
{
Global_106070.f_2355.f_539.f_2280[iVar0 /*3*/].f_1 = 7500f;
}
else if (Global_106070.f_2355.f_539.f_2280[iVar0 /*3*/].f_1 <= -8000f)
{
Global_106070.f_2355.f_539.f_2280[iVar0 /*3*/].f_1 = -7500f;
}
if (Global_106070.f_2355.f_539.f_2280[iVar0 /*3*/].f_2 >= 2500f)
{
Global_106070.f_2355.f_539.f_2280[iVar0 /*3*/].f_2 = 2000f;
}
}
}
void func_662(int iParam0)
{
int iVar0;
iVar0 = func_48(iParam0);
if (func_47(iVar0) && !unk_0x4915F4759304D5CF(iParam0))
{
Global_106070.f_2355.f_539.f_290[iVar0] = (((to_float(unk_0x24A1A7BF4ED94B71(iParam0)) - 100f) / (to_float(unk_0xF49CB145FAD56CFD(iParam0)) - 100f)) * 100f);
}
}
void func_663(int iParam0)
{
int iVar0;
iVar0 = func_48(iParam0);
if (func_47(iVar0) && !unk_0x4915F4759304D5CF(iParam0))
{
Global_106070.f_2355.f_539.f_2276[iVar0] = func_246();
}
}
int func_664(int iParam0, int iParam1, vector3 vParam2, float fParam3, bool bParam4, bool bParam5, bool bParam6)
{
int iVar0;
if (func_47(iParam1))
{
iVar0 = func_49(iParam1);
unk_0xCACEBBBEAD8F262E(iVar0);
if (unk_0x7FC99CCC73354033(iVar0))
{
if (unk_0xDC5D81351D6A4DDB(*iParam0))
{
unk_0x680F17660351F21B(iParam0);
}
*iParam0 = unk_0x35C6E06B120EB2E3(26, iVar0, vParam2, fParam3, 0, false);
func_693(*iParam0, iParam1, bParam5);
unk_0x7ABF6BEB0677A2AC(*iParam0, 0, 0);
func_686(*iParam0);
func_676(*iParam0, 1, 0);
func_675(*iParam0);
func_672(*iParam0);
func_666(*iParam0, bParam6);
func_665(*iParam0);
if (bParam4)
{
unk_0xA5DE74AE39867B03(iVar0);
}
return 1;
}
}
return 0;
}
void func_665(int iParam0)
{
int iVar0;
if (unk_0x4915F4759304D5CF(iParam0))
{
return;
}
iVar0 = 0;
while (iVar0 < 9)
{
if (unk_0xDC5D81351D6A4DDB(Global_90696[iVar0]) && Global_90696[iVar0] == iParam0)
{
return;
}
iVar0++;
}
iVar0 = 0;
while (iVar0 < 9)
{
if (!unk_0xDC5D81351D6A4DDB(Global_90696[iVar0]))
{
Global_90696[iVar0] = iParam0;
return;
}
iVar0++;
}
}
int func_666(int iParam0, bool bParam1)
{
int iVar0;
bool bVar1;
iVar0 = func_48(iParam0);
if (func_671(iVar0))
{
func_670(iVar0, 0);
func_110(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
func_383(iParam0, 1);
return 1;
}
if (!bParam1)
{
if (func_668(iParam0))
{
func_670(iVar0, 0);
func_110(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
func_383(iParam0, 1);
return 1;
}
}
bVar1 = false;
switch (iVar0)
{
case 0:
if (Global_106070.f_9057.f_99.f_58[120] && !Global_106070.f_9057.f_99.f_58[122])
{
func_110(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
Global_106070.f_9057.f_99.f_58[121] = 1;
return 1;
}
if (Global_106070.f_9057.f_99.f_58[123])
{
Global_106070.f_9057.f_99.f_58[123] = 0;
if (!unk_0x4915F4759304D5CF(iParam0))
{
if (func_219(iParam0, 3, 169))
{
func_110(iParam0, 3, 85, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
return 1;
}
}
}
if (func_219(iParam0, 12, 6))
{
func_110(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
return 1;
}
if (func_219(iParam0, 12, 17))
{
if (!func_667(unk_0x8F474E419F56E48D(iParam0), 12, 17))
{
func_110(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
return 1;
}
}
if (func_219(iParam0, 12, 20))
{
if (!func_667(unk_0x8F474E419F56E48D(iParam0), 12, 20))
{
func_110(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
return 1;
}
}
if (func_219(iParam0, 12, 21))
{
if (!func_667(unk_0x8F474E419F56E48D(iParam0), 12, 21))
{
func_110(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
return 1;
}
}
if (func_219(iParam0, 12, 22))
{
if (!func_667(unk_0x8F474E419F56E48D(iParam0), 12, 22))
{
func_110(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
return 1;
}
}
if (func_219(iParam0, 12, 11))
{
func_110(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
return 1;
}
if (func_219(iParam0, 12, 10))
{
func_110(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
return 1;
}
if (func_219(iParam0, 12, 50))
{
func_110(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
return 1;
}
if (func_219(iParam0, 14, 59))
{
func_110(iParam0, 14, 1, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
bVar1 = true;
}
if (func_219(iParam0, 8, 22))
{
func_110(iParam0, 8, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
bVar1 = true;
}
if (bVar1)
{
return 1;
}
if (func_219(iParam0, 12, 14))
{
func_110(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
return 1;
}
break;
case 1:
if (func_219(iParam0, 12, 13))
{
if (!func_667(unk_0x8F474E419F56E48D(iParam0), 12, 13))
{
func_110(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
return 1;
}
}
if (func_219(iParam0, 12, 14))
{
if (!func_667(unk_0x8F474E419F56E48D(iParam0), 12, 14))
{
func_110(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
return 1;
}
}
if (func_219(iParam0, 12, 15))
{
if (!func_667(unk_0x8F474E419F56E48D(iParam0), 12, 15))
{
func_110(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
return 1;
}
}
if (func_219(iParam0, 12, 4))
{
func_110(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
return 1;
}
if (func_219(iParam0, 12, 3))
{
func_110(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
return 1;
}
if (func_219(iParam0, 14, 82))
{
func_110(iParam0, 14, 1, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
bVar1 = true;
}
if (func_219(iParam0, 8, 76))
{
func_110(iParam0, 8, 26, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
bVar1 = true;
}
if (bVar1)
{
return 1;
}
if (func_219(iParam0, 12, 1))
{
func_110(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
return 1;
}
break;
case 2:
if (func_219(iParam0, 12, 12))
{
func_110(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
return 1;
}
if (func_219(iParam0, 12, 15))
{
func_110(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
return 1;
}
if (!bParam1)
{
if (func_219(iParam0, 3, 71))
{
func_110(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
return 1;
}
}
if (func_219(iParam0, 12, 17))
{
if (!func_667(unk_0x8F474E419F56E48D(iParam0), 12, 17))
{
func_110(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
return 1;
}
}
if (func_219(iParam0, 12, 18))
{
if (!func_667(unk_0x8F474E419F56E48D(iParam0), 12, 18))
{
func_110(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
return 1;
}
}
if (func_219(iParam0, 12, 19))
{
if (!func_667(unk_0x8F474E419F56E48D(iParam0), 12, 19))
{
func_110(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
return 1;
}
}
if (func_219(iParam0, 12, 7))
{
func_110(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
return 1;
}
if (func_219(iParam0, 12, 6))
{
func_110(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
return 1;
}
if (func_219(iParam0, 14, 88))
{
func_110(iParam0, 14, 1, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
bVar1 = true;
}
if (func_219(iParam0, 8, 17))
{
func_110(iParam0, 8, 15, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
bVar1 = true;
}
if (bVar1)
{
return 1;
}
if (func_219(iParam0, 12, 11))
{
func_110(iParam0, 12, 0, 0, -1, 0, 0, 0, -1, -1, -1, 0, 0, 0);
return 1;
}
break;
}
return 0;
}
bool func_667(int iParam0, int iParam1, int iParam2)
{
Global_71017[1 /*14*/] = { func_155(iParam0, iParam1, iParam2, -1) };
return unk_0x05EFB6A616B6FADE(Global_71017[1 /*14*/].f_6, 1);
}
bool func_668(int iParam0)
{
int iVar0;
int iVar1;
iVar1 = unk_0x8F474E419F56E48D(iParam0);
iVar0 = func_139(iParam0, 4);
return func_669(iVar1, 4, iVar0);
}
int func_669(int iParam0, int iParam1, int iParam2)
{
if (iParam0 == joaat("player_zero"))
{
if (iParam1 == 4)
{
if (iParam2 >= 72 && iParam2 <= 79)
{
return 1;
}
}
else if (iParam1 == 3)
{
if (iParam2 == 169 || (iParam2 >= 92 && iParam2 <= 96))
{
return 1;
}
}
}
else if (iParam0 == joaat("player_one"))
{
if (iParam1 == 4)
{
if (iParam2 >= 72 && iParam2 <= 77)
{
return 1;
}
}
else if (iParam1 == 3)
{
if (iParam2 == 260)
{
return 1;
}
}
}
else if (iParam0 == joaat("player_two"))
{
if (iParam1 == 4)
{
if ((iParam2 >= 81 && iParam2 <= 90) || (iParam2 >= 94 && iParam2 <= 103))
{
return 1;
}
}
else if (iParam1 == 3)
{
if (iParam2 == 96)
{
return 1;
}
}
}
return 0;
}
void func_670(int iParam0, int iParam1)
{
if (!func_47(iParam0))
{
return;
}
Global_106070.f_2355.f_539.f_2312[iParam0] = iParam1;
}
int func_671(int iParam0)
{
if (!func_47(iParam0))
{
return 0;
}
return Global_106070.f_2355.f_539.f_2312[iParam0];
}
void func_672(int iParam0)
{
int iVar0;
int iVar1;
int iVar2;
struct<6> Var3;
iVar0 = func_48(iParam0);
if (func_47(iVar0) && !unk_0x4915F4759304D5CF(iParam0))
{
unk_0xE881A10270416197(iParam0);
iVar1 = 0;
while (iVar1 < 4)
{
iVar2 = 0;
while (iVar2 < 32)
{
if (unk_0x05EFB6A616B6FADE(Global_106070.f_2355.f_493[iVar0 /*15*/].f_10[iVar1], iVar2))
{
if (func_456(&Var3, func_674(iVar1, iVar2), func_673(iVar0), iParam0, -1))
{
unk_0x8DF379B4FA65C8FF(iParam0, Var3.f_4, Var3.f_5);
}
}
iVar2++;
}
iVar1++;
}
}
}
int func_673(int iParam0)
{
switch (iParam0)
{
case 0:
return 0;
break;
case 1:
return 1;
break;
case 2:
return 2;
break;
}
return 0;
}
int func_674(int iParam0, int iParam1)
{
if (iParam0 < 0 || iParam0 > 3)
{
}
if (iParam1 < 0 || iParam1 > 31)
{
}
return (iParam0 * 32 + iParam1);
}
void func_675(int iParam0)
{
int iVar0;
iVar0 = func_48(iParam0);
if (func_47(iVar0) && !unk_0x4915F4759304D5CF(iParam0))
{
unk_0xA71534D0C1D35B8F(iParam0, (Global_106070.f_2355.f_539.f_294[iVar0] - unk_0xBEE435F0F4CCC194(iParam0)));
}
}
void func_676(int iParam0, bool bParam1, bool bParam2)
{
int iVar0;
int iVar1;
int iVar2;
iVar0 = func_48(iParam0);
if (func_47(iVar0) && !unk_0x4915F4759304D5CF(iParam0))
{
func_677(iParam0, &(Global_106070.f_2355.f_539.f_298[iVar0 /*472*/]), bParam1);
iVar1 = 0;
while (iVar1 <= (8 - 1))
{
unk_0x833AEC6F9EF34896(Global_106070.f_2355.f_539.f_1715[iVar1 /*4*/][iVar0]);
if (bParam2)
{
if (iVar1 == Global_106070.f_2355.f_539.f_1748 || (Global_106070.f_2355.f_539.f_1748 == -1 && iVar1 == 4))
{
if (Global_106070.f_2355.f_539.f_1715[iVar1 /*4*/][iVar0] != 0 && Global_106070.f_2355.f_539.f_1715[iVar1 /*4*/][iVar0] != joaat("weapon_molotov"))
{
if (unk_0x22B3625D717A4563(iParam0, Global_106070.f_2355.f_539.f_1715[iVar1 /*4*/][iVar0], 0))
{
unk_0xB20B772FD9DE1847(iParam0, Global_106070.f_2355.f_539.f_1715[iVar1 /*4*/][iVar0], true);
}
}
}
}
iVar1++;
}
if (iVar0 == 0)
{
unk_0x2AD48F3CEBA882E9(joaat("sp0_parachute_current_tint"), &iVar2, -1);
}
else if (iVar0 == 1)
{
unk_0x2AD48F3CEBA882E9(joaat("sp1_parachute_current_tint"), &iVar2, -1);
}
else if (iVar0 == 2)
{
unk_0x2AD48F3CEBA882E9(joaat("sp2_parachute_current_tint"), &iVar2, -1);
}
unk_0xD51625EE684BFF8A(unk_0xD4E735F4B6A956AC(), iVar2);
}
}
void func_677(int iParam0, var uParam1, bool bParam2)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
struct<2> Var9;
struct<4> Var10;
int iVar11;
int iVar12;
int iVar13[44];
int iVar14[50];
int iVar15;
if (!unk_0x4915F4759304D5CF(iParam0))
{
iVar7 = 0;
while (iVar7 < 2)
{
iVar5 = 0;
while (iVar5 <= (44 - 1))
{
iVar1 = func_340(iVar5);
if (iVar1 != 0 && iVar1 != 1993361168)
{
iVar2 = unk_0x3D2A81E3C295D501(iParam0, iVar1);
if (iVar2 != 0 && iVar2 != joaat("weapon_unarmed"))
{
if (func_683(iVar2))
{
if (iVar7 == 0)
{
iVar13[iVar5] = unk_0x8F62F4EC66847EC2(iParam0, iVar2);
}
else
{
unk_0x368DD2AEABF7CF44(iParam0, iVar2, 0, 0);
unk_0x2B82D6FCC6504E49(iParam0, iVar2, 0);
}
}
else
{
iVar13[iVar5] = 0;
unk_0x368DD2AEABF7CF44(iParam0, iVar2, 0, 0);
unk_0x2B82D6FCC6504E49(iParam0, iVar2, 0);
}
}
}
iVar5++;
}
iVar15 = unk_0x0AD363FF0CEF93B1();
iVar8 = 0;
while (iVar8 < iVar15)
{
if (iVar8 < 50)
{
if (unk_0x8798F3E6AE76AF63(iVar8, &Var9))
{
if (!unk_0x3B61940560400F58(Var9) && !func_337(Var9.f_1))
{
if (iVar7 == 0)
{
iVar14[iVar8] = unk_0x8F62F4EC66847EC2(iParam0, Var9.f_1);
}
else
{
unk_0x368DD2AEABF7CF44(iParam0, Var9.f_1, 0, 0);
unk_0x2B82D6FCC6504E49(iParam0, Var9.f_1, 0);
}
}
else
{
iVar14[iVar8] = 0;
unk_0x368DD2AEABF7CF44(iParam0, Var9.f_1, 0, 0);
unk_0x2B82D6FCC6504E49(iParam0, Var9.f_1, 0);
}
}
}
else
{
iVar8 = iVar15;
}
iVar8++;
}
iVar7++;
}
iVar5 = 0;
while (iVar5 <= (44 - 1))
{
iVar1 = func_340(iVar5);
if (iVar1 != 0 && iVar1 != 1993361168)
{
iVar2 = unk_0x3D2A81E3C295D501(iParam0, iVar1);
iVar3 = (*uParam1)[iVar5 /*5*/];
iVar0 = (uParam1[iVar5 /*5*/])->f_1;
if (!func_683(iVar3))
{
(*uParam1)[iVar5 /*5*/] = 0;
iVar3 = 0;
}
if (iVar3 != 0)
{
if (iVar3 != joaat("weapon_unarmed"))
{
if (!unk_0x22B3625D717A4563(iParam0, iVar3, 0))
{
unk_0xF0188A1B49D79AF7(iParam0, iVar3, 0, false, false);
}
if (unk_0x8F62F4EC66847EC2(iParam0, iVar3) < iVar0)
{
unk_0x368DD2AEABF7CF44(iParam0, iVar3, iVar0, 0);
}
if (iVar3 != joaat("weapon_petrolcan") && unk_0x22B3625D717A4563(iParam0, iVar3, 0))
{
unk_0xB4885335032B5FEC(iParam0, iVar3, (uParam1[iVar5 /*5*/])->f_3);
}
iVar6 = 0;
iVar4 = func_338(iVar3, iVar6);
while (iVar4 != 0)
{
if (unk_0x05EFB6A616B6FADE((uParam1[iVar5 /*5*/])->f_2, iVar6))
{
if (!unk_0x15763A17141CD6EE(iParam0, iVar3, iVar4))
{
unk_0xED02AF87669391F2(iParam0, iVar3, iVar4);
func_682(iParam0, iVar3, iVar4);
if (func_681(iVar4))
{
unk_0x509420F171C550DF(iParam0, iVar3, iVar4, (uParam1[iVar5 /*5*/])->f_4);
func_680(iParam0, iVar3, iVar4, (uParam1[iVar5 /*5*/])->f_4);
}
}
}
else if (unk_0x15763A17141CD6EE(iParam0, iVar3, iVar4))
{
unk_0x75C8E70A78BF6B3E(iParam0, iVar3, iVar4);
func_678(iParam0, iVar3, iVar4);
}
iVar6++;
iVar4 = func_338(iVar3, iVar6);
}
}
}
else if (bParam2)
{
if ((iVar2 != 0 && iVar2 != joaat("weapon_unarmed")) && iVar2 != joaat("object"))
{
unk_0x581CF279D6A7E3D6(iParam0, iVar2);
iVar6 = 0;
iVar4 = func_338(iVar2, iVar6);
while (iVar4 != 0)
{
if (unk_0x15763A17141CD6EE(iParam0, iVar2, iVar4))
{
unk_0x75C8E70A78BF6B3E(iParam0, iVar2, iVar4);
func_678(iParam0, iVar2, iVar4);
}
iVar6++;
iVar4 = func_338(iVar2, iVar6);
}
}
}
if (!bParam2)
{
if (iVar2 != 0 && iVar2 != joaat("weapon_unarmed"))
{
if (unk_0x8F62F4EC66847EC2(iParam0, iVar2) < iVar13[iVar5])
{
unk_0x368DD2AEABF7CF44(iParam0, iVar2, iVar13[iVar5], 0);
}
}
}
}
iVar5++;
}
iVar11 = 0;
while (iVar11 < uParam1->f_221)
{
iVar3 = uParam1->f_221[iVar11 /*5*/];
iVar0 = uParam1->f_221[iVar11 /*5*/].f_1;
iVar8 = func_339(iVar3, &Var9);
if ((iVar8 != -1 && iVar8 < 50) && !func_337(Var9.f_1))
{
if (unk_0x3B61940560400F58(Var9) || func_337(Var9.f_1))
{
uParam1->f_221[iVar11 /*5*/] = 0;
iVar3 = 0;
}
if (iVar3 != 0)
{
if (iVar3 != joaat("weapon_unarmed"))
{
if (!unk_0x22B3625D717A4563(iParam0, iVar3, 0))
{
unk_0xF0188A1B49D79AF7(iParam0, iVar3, 0, false, false);
}
if (unk_0x8F62F4EC66847EC2(iParam0, iVar3) < iVar0)
{
unk_0x368DD2AEABF7CF44(iParam0, iVar3, iVar0, 0);
}
if (unk_0x22B3625D717A4563(iParam0, iVar3, 0))
{
unk_0xB4885335032B5FEC(iParam0, iVar3, uParam1->f_221[iVar11 /*5*/].f_3);
}
iVar12 = 0;
iVar6 = 0;
while (iVar6 < unk_0x6E55AE7B1FEC08C5(iVar8))
{
if (unk_0xA9A013B7FD7A9A7F(iVar8, iVar6, &Var10))
{
if (!func_336(Var10.f_3))
{
if (unk_0x05EFB6A616B6FADE(uParam1->f_221[iVar11 /*5*/].f_2, iVar12))
{
if (!unk_0x15763A17141CD6EE(iParam0, iVar3, Var10.f_3))
{
unk_0xED02AF87669391F2(iParam0, iVar3, Var10.f_3);
func_682(iParam0, iVar3, Var10.f_3);
if (func_681(Var10.f_3))
{
unk_0x509420F171C550DF(iParam0, iVar3, Var10.f_3, uParam1->f_221[iVar11 /*5*/].f_4);
func_680(iParam0, iVar3, Var10.f_3, uParam1->f_221[iVar11 /*5*/].f_4);
}
}
}
else if (unk_0x15763A17141CD6EE(iParam0, iVar3, Var10.f_3))
{
unk_0x75C8E70A78BF6B3E(iParam0, iVar3, Var10.f_3);
func_678(iParam0, iVar3, Var10.f_3);
}
iVar12++;
}
}
iVar6++;
}
}
}
else if (bParam2)
{
if ((iVar2 != 0 && iVar2 != joaat("weapon_unarmed")) && iVar2 != joaat("object"))
{
unk_0x581CF279D6A7E3D6(iParam0, iVar2);
iVar6 = 0;
while (iVar6 < unk_0x6E55AE7B1FEC08C5(iVar8))
{
if (unk_0xA9A013B7FD7A9A7F(iVar8, iVar6, &Var10))
{
if (unk_0x15763A17141CD6EE(iParam0, iVar2, Var10.f_3))
{
unk_0x75C8E70A78BF6B3E(iParam0, iVar2, Var10.f_3);
func_678(iParam0, iVar2, Var10.f_3);
}
}
iVar6++;
}
}
}
if (!bParam2)
{
if (iVar3 != 0 && iVar3 != joaat("weapon_unarmed"))
{
if (unk_0x8F62F4EC66847EC2(iParam0, iVar3) < iVar14[iVar8])
{
unk_0x368DD2AEABF7CF44(iParam0, iVar3, iVar14[iVar8], 0);
}
}
}
}
iVar11++;
}
if (((unk_0xF990CFC0F1D94A39(iParam0, &iVar2, 1) && iVar2 != 0) && iVar2 != joaat("weapon_unarmed")) && iVar2 != joaat("object"))
{
iVar0 = unk_0x8F62F4EC66847EC2(iParam0, iVar2);
if (iVar0 > 1 && iVar0 > unk_0x467752C1CCC2E278(iParam0, iVar2, 1))
{
unk_0x368DD2AEABF7CF44(iParam0, iVar2, (iVar0 - unk_0x467752C1CCC2E278(iParam0, iVar2, 1)), 0);
unk_0x2B82D6FCC6504E49(iParam0, iVar2, unk_0x467752C1CCC2E278(iParam0, iVar2, 1));
}
}
}
}
void func_678(int iParam0, int iParam1, int iParam2)
{
int iVar0;
iVar0 = func_679(iParam2);
if (iVar0 != 0)
{
if (unk_0x15763A17141CD6EE(iParam0, iParam1, iVar0))
{
unk_0x75C8E70A78BF6B3E(iParam0, iParam1, iVar0);
}
}
}
int func_679(int iParam0)
{
switch (iParam0)
{
case 1550611612:
return -1258515792;
break;
case 368550800:
return 438243936;
break;
case -1769069349:
return -455079056;
break;
case 24902297:
return 740920107;
break;
case -228041614:
return -541616347;
break;
case -584961562:
return 1809261196;
break;
case -1153175946:
return -1646538868;
break;
case 1301287696:
return -1290164948;
break;
case 1597093459:
return -964465134;
break;
case 1769871776:
return 1135718771;
break;
case -1827882671:
return 1253942266;
break;
case 259780317:
return -403805974;
break;
case -1973342474:
return 691432737;
break;
case 1996130345:
return 987648331;
break;
case -1455657812:
return -431680535;
break;
case -1668263084:
return -847582310;
break;
case 1308243489:
return -92592218;
break;
case 1122574335:
return -494548326;
break;
case 1420313469:
return 730876697;
break;
case 109848390:
return 583159708;
break;
case 593945703:
return -1928503603;
break;
case 1142457062:
return 520557834;
break;
}
return 0;
}
void func_680(int iParam0, int iParam1, int iParam2, int iParam3)
{
int iVar0;
iVar0 = func_679(iParam2);
if (iVar0 != 0)
{
unk_0x509420F171C550DF(iParam0, iParam1, iVar0, iParam3);
}
}
int func_681(int iParam0)
{
switch (iParam0)
{
case -1860492113:
case 937772107:
case 1401650071:
case 628662130:
case -985047251:
case -812944463:
case -1447352303:
case -60338860:
case 2088750491:
case -1513913454:
case -1179558480:
case 1272803094:
case 1080719624:
case 792221348:
case -452181427:
case -746774737:
case -2044296061:
case -199171978:
case -1428075016:
case -1735153315:
case 1796459838:
case -631911105:
case 1249283253:
case -857707587:
case -1097543898:
case 1980349969:
case 1219453777:
case -1853459190:
case -2074781016:
case 457967755:
case 235171324:
case 42685294:
case -687617715:
case -130843390:
case -977347227:
case -378461067:
case 329939175:
case 643374672:
case 807875052:
case -1401804168:
case -1096495395:
case -847811454:
case -1413108537:
case 1815270123:
case 1550611612:
case 368550800:
case -1769069349:
case 24902297:
case -228041614:
case -584961562:
case -1153175946:
case 1301287696:
case 1597093459:
case 1769871776:
case -1827882671:
case -996700057:
case 940943685:
case 1263226800:
case -328035840:
case 1224100642:
case 899228776:
case 616006309:
case -1561952511:
case 572063080:
case 1170588613:
case 966612367:
case -474112444:
case 387223451:
case 617753366:
case -222378256:
case 8741501:
case -601286203:
case -511433605:
case -655387818:
case -282476598:
case 1739501925:
case 1178671645:
case -1069552225:
case 11918884:
case 176157112:
case -220052855:
case 288456487:
case 398658626:
case 628697006:
case 925911836:
case 1222307441:
case 552442715:
case -648943513:
case 259780317:
case -1973342474:
case 1996130345:
case -1455657812:
case -1668263084:
case 1308243489:
case 1122574335:
case 1420313469:
case 109848390:
case 593945703:
case 1142457062:
case -1869284448:
case 1931539634:
case 1624199183:
case -26834113:
case -210406055:
case 423313640:
case 276639596:
case -991356863:
case -1682848301:
case 996213771:
case -1214048550:
case -737430213:
case 1125852043:
case 886015732:
case -1262287139:
case -295208411:
case -544154504:
case 172765678:
case -1982877449:
case 2072122460:
case -1986220171:
case 1377355801:
case -1371515465:
case -1190793877:
case -1497085720:
case -1803148180:
case -1975971886:
case 36929477:
case -268444834:
case -574769446:
case -882699739:
case -1468181474:
case -974541230:
return 1;
break;
}
return 0;
}
void func_682(int iParam0, int iParam1, int iParam2)
{
int iVar0;
iVar0 = func_679(iParam2);
if (iVar0 != 0)
{
unk_0xED02AF87669391F2(iParam0, iParam1, iVar0);
}
}
bool func_683(int iParam0)
{
int iVar0;
struct<2> Var1;
if (iParam0 == -61829581)
{
if (unk_0x4C9BACA8D249CB13() && func_685())
{
return 1;
}
else
{
return 0;
}
}
if (iParam0 == joaat("weapon_firework") && !unk_0x4C9BACA8D249CB13())
{
return 0;
}
switch (iParam0)
{
case joaat("weapon_assaultsmg"):
if (!unk_0x4C9BACA8D249CB13())
{
if (!func_684(1, 1))
{
return 0;
}
}
break;
case joaat("weapon_sawnoffshotgun"):
if (unk_0x4C9BACA8D249CB13())
{
if (!func_684(1, 1))
{
return 0;
}
}
break;
case joaat("weapon_railgun"):
if (!func_242() || unk_0x4C9BACA8D249CB13())
{
return 0;
}
break;
case joaat("weapon_hatchet"):
if (!unk_0x4C9BACA8D249CB13())
{
if (!func_242() && !Global_262145.f_19620)
{
return 0;
}
}
break;
case joaat("weapon_knuckle"):
case joaat("weapon_marksmanpistol"):
break;
}
iVar0 = 0;
while (iVar0 < unk_0x0AD363FF0CEF93B1())
{
if (unk_0x8798F3E6AE76AF63(iVar0, &Var1))
{
if (Var1.f_1 == iParam0)
{
if (unk_0x3B61940560400F58(Var1) || func_337(Var1.f_1))
{
return 0;
}
}
}
iVar0++;
}
return unk_0x2363F72CCCCBE9FF(iParam0);
}
int func_684(bool bParam0, bool bParam1)
{
if (bParam0)
{
if (unk_0x05EFB6A616B6FADE(Global_106070.f_668.f_1309, 2))
{
return 1;
}
}
if (unk_0xD711DD98E3A47F79())
{
if (!bParam1 || unk_0x18F86E07E41D913F())
{
if (!unk_0x332D85764ED0503F() && !unk_0x7DD04831D0FC44CA())
{
return 1;
}
}
}
if (bParam1)
{
if (unk_0x4E64773FA9BA7A47())
{
return 0;
}
}
if (unk_0xD711DD98E3A47F79())
{
return 1;
}
return 0;
}
bool func_685()
{
return unk_0x05BEBC245254F6F2(-1691188696);
}
void func_686(int iParam0)
{
int iVar0;
int iVar1;
bool bVar2;
iVar0 = func_48(iParam0);
if (func_47(iVar0))
{
if (!Global_93218[iVar0])
{
if (Global_106070.f_2355.f_539.f_2371[iVar0] != 0)
{
if (func_384(iParam0) != Global_106070.f_2355.f_539.f_2371[iVar0])
{
func_546(iVar0);
Global_106070.f_2355.f_539.f_2371[iVar0] = func_384(iParam0);
}
}
}
func_390(iParam0, &(Global_106070.f_2355.f_539[iVar0 /*65*/]), 0, 0, 1, 0);
if (!Global_93218[iVar0])
{
bVar2 = false;
if (iVar0 == 0)
{
if (!func_692(49))
{
iVar1 = func_116(iParam0, 12, -1);
if (iVar1 == 16)
{
bVar2 = true;
}
func_687(func_49(0), 12, 16, 0, 0, 0, 0);
}
if (!func_692(44))
{
iVar1 = func_116(iParam0, 3, -1);
if (((((iVar1 == 70 || iVar1 == 71) || iVar1 == 72) || iVar1 == 73) || iVar1 == 74) || iVar1 == 75)
{
bVar2 = true;
}
iVar1 = func_116(iParam0, 4, -1);
if ((((iVar1 == 41 || iVar1 == 42) || iVar1 == 43) || iVar1 == 44) || iVar1 == 45)
{
bVar2 = true;
}
func_687(func_49(0), 3, 70, 1, 0, 0, 0);
func_687(func_49(0), 3, 71, 1, 0, 0, 0);
func_687(func_49(0), 3, 72, 1, 0, 0, 0);
func_687(func_49(0), 3, 73, 1, 0, 0, 0);
func_687(func_49(0), 3, 74, 1, 0, 0, 0);
func_687(func_49(0), 3, 75, 1, 0, 0, 0);
func_687(func_49(0), 4, 41, 1, 0, 0, 0);
func_687(func_49(0), 4, 42, 1, 0, 0, 0);
func_687(func_49(0), 4, 43, 1, 0, 0, 0);
func_687(func_49(0), 4, 44, 1, 0, 0, 0);
func_687(func_49(0), 4, 45, 1, 0, 0, 0);
}
}
else if (iVar0 == 2)
{
iVar1 = func_116(iParam0, 4, -1);
if (iVar1 == 93)
{
bVar2 = true;
}
}
if (bVar2)
{
func_546(iVar0);
func_390(iParam0, &(Global_106070.f_2355.f_539[iVar0 /*65*/]), 0, 0, 1, 0);
}
}
Global_93218[iVar0] = 1;
}
}
void func_687(int iParam0, int iParam1, int iParam2, bool bParam3, bool bParam4, bool bParam5, int iParam6)
{
func_691(iParam0, iParam1, iParam2, bParam3);
func_690(iParam0, iParam1, iParam2, bParam4, 1);
if (bParam5)
{
func_689(iParam0, iParam1, iParam2, 0);
}
if (iParam6 == 1)
{
func_688(iParam0, iParam1, iParam2, 0);
}
}
int func_688(int iParam0, int iParam1, int iParam2, bool bParam3)
{
Global_71017[1 /*14*/] = { func_155(iParam0, iParam1, iParam2, -1) };
if (unk_0x05EFB6A616B6FADE(Global_71017[1 /*14*/].f_6, 0) && !unk_0x05EFB6A616B6FADE(Global_71017[1 /*14*/].f_6, 6))
{
if (bParam3)
{
func_144(iParam1, Global_71017[1 /*14*/].f_5, Global_71017[1 /*14*/].f_2, 2, Global_71017[1 /*14*/].f_1, 0, 1);
}
else
{
func_144(iParam1, Global_71017[1 /*14*/].f_5, Global_71017[1 /*14*/].f_2, 2, Global_71017[1 /*14*/].f_1, 1, 0);
}
return 1;
}
return 0;
}
void func_689(int iParam0, int iParam1, int iParam2, bool bParam3)
{
if (iParam2 == -99)
{
return;
}
switch (iParam0)
{
case joaat("player_zero"):
if (!bParam3 || unk_0x05EFB6A616B6FADE(Global_106070.f_7201[1], 0))
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355.f_539.f_3796[0 /*166*/][iParam1 /*11*/][(iParam2 / 32)]), (iParam2 % 32));
}
break;
case joaat("player_two"):
if (!bParam3 || unk_0x05EFB6A616B6FADE(Global_106070.f_7201[3], 0))
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355.f_539.f_3796[1 /*166*/][iParam1 /*11*/][(iParam2 / 32)]), (iParam2 % 32));
}
if (!bParam3 || unk_0x05EFB6A616B6FADE(Global_106070.f_7201[4], 0))
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_2355.f_539.f_3796[2 /*166*/][iParam1 /*11*/][(iParam2 / 32)]), (iParam2 % 32));
}
break;
}
}
int func_690(int iParam0, int iParam1, int iParam2, bool bParam3, int iParam4)
{
int iVar0;
int iVar1;
int iVar2;
var uVar3;
var uVar4;
int iVar5;
Global_71017[1 /*14*/] = { func_155(iParam0, iParam1, iParam2, -1) };
if (unk_0x05EFB6A616B6FADE(Global_71017[1 /*14*/].f_6, 0) && !unk_0x05EFB6A616B6FADE(Global_71017[1 /*14*/].f_6, 6))
{
if (bParam3)
{
func_144(iParam1, Global_71017[1 /*14*/].f_5, Global_71017[1 /*14*/].f_2, 1, Global_71017[1 /*14*/].f_1, 1, 0);
if (iParam1 == 12)
{
iVar0 = 1;
if (iParam0 == joaat("player_zero"))
{
if (iParam2 == 31)
{
iVar0 = 0;
}
}
if (iVar0 == 1)
{
uVar3 = { func_151(iParam0, iParam2) };
iVar1 = 0;
while (iVar1 <= 14)
{
if ((uVar3[iVar1] != -99 && iVar1 != 12) && iVar1 != 14)
{
if (iVar1 != 13)
{
func_690(iParam0, iVar1, uVar3[iVar1], 1, 1);
func_691(iParam0, iVar1, uVar3[iVar1], 1);
}
else
{
uVar4 = { func_148(iParam0, uVar3[iVar1]) };
iVar2 = 0;
while (iVar2 <= 8)
{
func_690(iParam0, 14, uVar4[iVar2], 1, 1);
func_691(iParam0, 14, uVar4[iVar2], 1);
iVar2++;
}
}
}
iVar1++;
}
}
}
}
else
{
func_144(iParam1, Global_71017[1 /*14*/].f_5, Global_71017[1 /*14*/].f_2, 1, Global_71017[1 /*14*/].f_1, 0, 1);
}
if (iParam4 == 1 && bParam3 == 1)
{
switch (iParam0)
{
case joaat("player_zero"):
break;
case joaat("player_one"):
switch (iParam1)
{
case 3:
if (iParam2 >= 176 && iParam2 <= 191)
{
iVar5 = (227 + Global_71017[1 /*14*/].f_4);
func_690(iParam0, 3, iVar5, 1, 0);
}
else if (iParam2 >= 227 && iParam2 <= 242)
{
iVar5 = (176 + Global_71017[1 /*14*/].f_4);
func_690(iParam0, 3, iVar5, 1, 0);
}
break;
case 11:
if (iParam2 >= 9 && iParam2 <= 24)
{
iVar5 = (25 + Global_71017[1 /*14*/].f_4);
func_690(iParam0, 11, iVar5, 1, 0);
}
else if (iParam2 >= 25 && iParam2 <= 40)
{
iVar5 = (9 + Global_71017[1 /*14*/].f_4);
func_690(iParam0, 11, iVar5, 1, 0);
}
break;
case 8:
if (iParam2 >= 27 && iParam2 <= 42)
{
iVar5 = (43 + Global_71017[1 /*14*/].f_4);
func_690(iParam0, 8, iVar5, 1, 0);
iVar5 = (59 + Global_71017[1 /*14*/].f_4);
func_690(iParam0, 8, iVar5, 1, 0);
}
else if (iParam2 >= 43 && iParam2 <= 58)
{
iVar5 = (27 + Global_71017[1 /*14*/].f_4);
func_690(iParam0, 8, iVar5, 1, 0);
iVar5 = (59 + Global_71017[1 /*14*/].f_4);
func_690(iParam0, 8, iVar5, 1, 0);
}
else if (iParam2 >= 59 && iParam2 <= 74)
{
iVar5 = (27 + Global_71017[1 /*14*/].f_4);
func_690(iParam0, 8, iVar5, 1, 0);
iVar5 = (43 + Global_71017[1 /*14*/].f_4);
func_690(iParam0, 8, iVar5, 1, 0);
}
break;
case 14:
if (iParam2 >= 64 && iParam2 <= 79)
{
iVar5 = (41 + Global_71017[1 /*14*/].f_4);
func_690(iParam0, 14, iVar5, 1, 0);
}
break;
}
break;
case joaat("player_two"):
switch (iParam1)
{
case 4:
if (iParam2 >= 81 && iParam2 <= 90)
{
iVar5 = (94 + Global_71017[1 /*14*/].f_4);
func_690(iParam0, 4, iVar5, 1, 0);
}
break;
case 12:
if (iParam2 == 2)
{
func_690(iParam0, 14, 17, 1, 0);
}
break;
}
break;
}
}
return 1;
}
return 0;
}
int func_691(int iParam0, int iParam1, int iParam2, bool bParam3)
{
Global_71017[1 /*14*/] = { func_155(iParam0, iParam1, iParam2, -1) };
if (unk_0x05EFB6A616B6FADE(Global_71017[1 /*14*/].f_6, 0) && !unk_0x05EFB6A616B6FADE(Global_71017[1 /*14*/].f_6, 6))
{
if (bParam3)
{
func_144(iParam1, Global_71017[1 /*14*/].f_5, Global_71017[1 /*14*/].f_2, 0, Global_71017[1 /*14*/].f_1, 1, 0);
}
else
{
func_144(iParam1, Global_71017[1 /*14*/].f_5, Global_71017[1 /*14*/].f_2, 0, Global_71017[1 /*14*/].f_1, 0, 1);
}
return 1;
}
return 0;
}
bool func_692(int iParam0)
{
return Global_106070.f_9057.f_330[iParam0 /*6*/];
}
int func_693(int iParam0, int iParam1, bool bParam2)
{
int iVar0;
int iVar1;
int iVar2;
iVar0 = 4;
if (iParam1 == 0)
{
iVar0 = 0;
}
else if (iParam1 == 2)
{
iVar0 = 2;
}
else if (iParam1 == 1)
{
iVar0 = 1;
}
else if (iParam1 == 145)
{
iVar0 = 3;
return 0;
}
if (unk_0xDC5D81351D6A4DDB(Global_90805[iVar0]))
{
iVar1 = -1;
iVar2 = 0;
while (iVar2 < Global_93222)
{
if (iVar1 < 0)
{
if (!unk_0xDC5D81351D6A4DDB(Global_93222[iVar2]))
{
iVar1 = iVar2;
}
}
iVar2++;
}
if (iVar1 < 0 || iVar1 > Global_93222)
{
iVar1 = 0;
}
Global_93222[iVar1] = Global_90805[iVar0];
if (bParam2)
{
if (!unk_0x4915F4759304D5CF(Global_93222[iVar1]))
{
if (unk_0xDC5D81351D6A4DDB(iParam0))
{
if (!unk_0x7112137033807390(iParam0, 0))
{
unk_0x9568B1B58F78FF36(Global_93222[iVar1]);
unk_0x1659AF2827EC9D40(Global_93222[iVar1], unk_0xE2BBD32891C18569(iParam0, true), 1000f, -1, 1, 0);
}
}
}
}
}
Global_90805[iVar0] = iParam0;
Global_106070.f_2355.f_539.f_2276[iParam1] = func_246();
Global_106070.f_2355.f_539.f_2280[iParam1 /*3*/] = { unk_0xE2BBD32891C18569(iParam0, true) };
Global_106070.f_2355.f_539.f_2290[iParam1] = unk_0x552C823E1D2A019C(iParam0);
if (bParam2)
{
unk_0x2BCFB39E86340DAA(&(Global_90805.f_47), iVar0);
}
return 1;
}
int func_694(int iParam0, int iParam1, int iParam2, int iParam3, bool bParam4, bool bParam5, bool bParam6)
{
int iVar0;
if (func_47(iParam1))
{
iVar0 = func_49(iParam1);
unk_0xCACEBBBEAD8F262E(iVar0);
if (unk_0x7FC99CCC73354033(iVar0))
{
if (unk_0xDC5D81351D6A4DDB(*iParam0))
{
unk_0x680F17660351F21B(iParam0);
}
if (unk_0xDC5D81351D6A4DDB(iParam2) && unk_0x1095F403F52B42E1(iParam2, 0))
{
*iParam0 = unk_0x91A7C8CA5E332C03(iParam2, 26, iVar0, iParam3, 1, true);
func_693(*iParam0, iParam1, bParam5);
unk_0x7ABF6BEB0677A2AC(*iParam0, 0, 0);
func_686(*iParam0);
func_676(*iParam0, 1, 0);
func_675(*iParam0);
func_672(*iParam0);
func_666(*iParam0, bParam6);
func_665(*iParam0);
if (bParam4)
{
unk_0xA5DE74AE39867B03(iVar0);
}
}
return 1;
}
}
return 0;
}
int func_695(int iParam0)
{
if (iParam0 == 0)
{
return 0;
}
else if (iParam0 == 2)
{
return 2;
}
else if (iParam0 == 1)
{
return 1;
}
return 145;
}
int func_696(int iParam0)
{
if (iParam0 == 0)
{
return 0;
}
else if (iParam0 == 2)
{
return 2;
}
else if (iParam0 == 1)
{
return 1;
}
else if (iParam0 == 145)
{
return 3;
}
return 4;
}
void func_697()
{
int iVar0;
char cVar1[32];
vector3 vVar2;
iVar0 = func_721(Global_71451);
StringCopy(&cVar1, func_720(Global_71451), 32);
vVar2 = { func_718(iVar0) };
switch (iVar0)
{
case 4:
case 3:
if (unk_0x05EFB6A616B6FADE(iLocal_107, 13))
{
func_713(13, 0);
}
case 2:
if (unk_0x05EFB6A616B6FADE(iLocal_107, 11))
{
func_713(11, 0);
}
case 0:
if (unk_0x05EFB6A616B6FADE(iLocal_107, 10))
{
func_713(10, 0);
}
if (unk_0x05EFB6A616B6FADE(iLocal_107, 12))
{
func_713(12, 0);
}
break;
}
unk_0xD75A4240F0AD8613(&cVar1);
while (!unk_0xB1FDFCECA75CE4A7(&cVar1))
{
wait(0);
}
start_new_script(&cVar1, 2050);
unk_0x4659F4154D948B01(&cVar1);
if (!unk_0x4915F4759304D5CF(unk_0xA19140A5C42D8715()))
{
func_612(vVar2, unk_0x552C823E1D2A019C(unk_0xA19140A5C42D8715()), 0);
}
func_711(iVar0);
if (iVar0 == 1)
{
func_601(139, 1, 0, 1, 0);
func_601(140, 1, 0, 1, 0);
}
else if (iVar0 == 3)
{
func_601(71, 1, 0, 1, 0);
}
func_710(iVar0, 0, 1);
while (Global_89334 == 0)
{
wait(0);
}
func_591(0);
wait(500);
unk_0x70C1F5AA59767FE6(500);
iLocal_99 = 0;
while (iLocal_99 != 7)
{
wait(0);
switch (iLocal_99)
{
case 0:
iLocal_99 = func_705(iVar0, 0, func_709(iVar0, 1), iLocal_99);
break;
case 1:
wait(func_704(iVar0, iLocal_99));
if (iVar0 == 2)
{
func_703(9, 5);
func_710(iVar0, 1, 1);
iLocal_99 = 4;
}
else
{
iLocal_99 = 2;
}
break;
case 2:
iLocal_99 = func_705(iVar0, 2, func_709(iVar0, 1), iLocal_99);
if (iLocal_99 != 2)
{
func_710(iVar0, 1, 1);
}
break;
case 3:
wait(func_704(iVar0, iLocal_99));
iLocal_99 = 4;
break;
case 4:
iLocal_99 = func_705(iVar0, 1, func_709(iVar0, 0), iLocal_99);
break;
case 5:
wait(func_704(iVar0, iLocal_99));
func_701(iVar0, 0);
iLocal_99 = 6;
break;
case 6:
while (!func_700(iVar0))
{
wait(0);
}
unk_0x9662BE461F9FDF9E(0);
while (unk_0x99E48E2CD778F380())
{
wait(0);
}
iLocal_99 = 7;
break;
default:
break;
}
}
while (func_41(0))
{
wait(0);
}
if (iVar0 == 3)
{
func_601(70, 1, 0, 1, 0);
func_601(71, 2, 0, 1, 0);
func_601(73, 1, 0, 1, 0);
func_601(72, 0, 0, 1, 0);
func_601(74, 0, 0, 1, 0);
}
else if (iVar0 == 1)
{
func_601(139, 0, 0, 1, 0);
func_601(140, 0, 0, 1, 0);
}
Global_71451 = func_698(iVar0);
MemCopy(&Local_100, {Global_84115[Global_71451 /*34*/]}, 8);
iLocal_105 = Global_84115[Global_71451 /*34*/].f_11;
func_591(1);
iLocal_98 = 2;
}
int func_698(int iParam0)
{
switch (iParam0)
{
case 0:
return 90;
break;
case 1:
if (func_699(8) == 3)
{
return 74;
}
else
{
return 75;
}
break;
case 2:
return 93;
break;
case 3:
if (func_699(10) == 6)
{
return 69;
}
else
{
return 70;
}
break;
case 4:
if (func_699(11) == 8)
{
return 84;
}
else
{
return 85;
}
break;
default:
break;
}
return 0;
}
int func_699(int iParam0)
{
if (iParam0 == 13 || iParam0 == -1)
{
return 0;
}
return Global_106070.f_9057.f_99.f_205[iParam0];
}
int func_700(int iParam0)
{
switch (iParam0)
{
case 0:
if (func_635(18) == 1)
{
return 0;
}
break;
case 1:
if (func_635(22) == 1)
{
return 0;
}
break;
case 2:
if (func_635(40) == 1)
{
return 0;
}
break;
case 3:
if (func_635(8) == 1)
{
return 0;
}
break;
case 4:
if (func_635(26) == 1)
{
return 0;
}
break;
default:
break;
}
return 1;
}
void func_701(int iParam0, bool bParam1)
{
int iVar0;
while (func_381())
{
wait(0);
}
iVar0 = func_710(iParam0, 2, 1);
if (iVar0 == 1)
{
while (!unk_0x5CA3186381FC012C())
{
wait(0);
}
}
else
{
unk_0x9662BE461F9FDF9E(0);
}
func_702(1, iParam0, bParam1);
func_702(2, iParam0, 1);
}
void func_702(int iParam0, int iParam1, bool bParam2)
{
bool bVar0;
if (iParam0 == 11 || iParam0 == -1)
{
return;
}
if (iParam1 < 0 || iParam1 >= 32)
{
return;
}
bVar0 = unk_0x05EFB6A616B6FADE(Global_106070.f_9057.f_99.f_219[iParam0], iParam1);
if (bVar0 == bParam2)
{
return;
}
if (bParam2)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_9057.f_99.f_219[iParam0]), iParam1);
}
else
{
unk_0xFA57C719261AA55D(&(Global_106070.f_9057.f_99.f_219[iParam0]), iParam1);
}
}
void func_703(int iParam0, int iParam1)
{
if (iParam0 == 13 || iParam0 == -1)
{
return;
}
if (Global_106070.f_9057.f_99.f_205[iParam0] == iParam1)
{
return;
}
Global_106070.f_9057.f_99.f_205[iParam0] = iParam1;
}
int func_704(int iParam0, int iParam1)
{
switch (iParam0)
{
case 0:
switch (iParam1)
{
case 1:
return 3000;
break;
case 3:
return 3000;
break;
case 5:
return 2250;
break;
}
break;
case 1:
switch (iParam1)
{
case 1:
return 3000;
break;
case 3:
return 3500;
break;
case 5:
return 2250;
break;
}
break;
case 2:
switch (iParam1)
{
case 1:
return 3000;
break;
case 3:
return 1000;
break;
case 5:
return 2250;
break;
}
break;
case 3:
switch (iParam1)
{
case 1:
return 3000;
break;
case 3:
return 0;
break;
case 5:
return 2250;
break;
}
break;
case 4:
switch (iParam1)
{
case 1:
return 3000;
break;
case 3:
return 0;
break;
case 5:
return 2250;
break;
}
break;
default:
break;
}
return 0;
}
int func_705(int iParam0, int iParam1, int iParam2, int iParam3)
{
int iVar0;
int iVar1;
int iVar2;
bool bVar3;
bool bVar4;
int iVar5;
if (func_635(0))
{
func_708(0, 0);
return 2;
}
iVar0 = func_707(iParam0);
iVar1 = func_699(iVar0);
if (iVar1 < 0 || iVar1 >= 5)
{
}
iVar2 = iVar1;
bVar3 = true;
bVar4 = true;
switch (iParam1)
{
case 0:
if (iVar2 != 1)
{
func_703(iVar0, 1);
func_702(3, iParam0, 0);
func_702(1, iParam0, bVar3);
}
else if (func_706(3, iParam0))
{
if (bVar4)
{
func_703(iVar0, 0);
}
func_702(3, iParam0, 0);
if (iParam2 != 13)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_1.f_120[iParam0]), iParam2);
unk_0x2BCFB39E86340DAA(&Global_89335, iParam0);
}
return 1;
}
break;
case 1:
if (iVar2 != 2)
{
func_703(iVar0, 2);
if (iParam2 != 13)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_1.f_120[iParam0]), iParam2);
unk_0x2BCFB39E86340DAA(&Global_89335, iParam0);
}
func_702(4, iParam0, 0);
func_702(1, iParam0, bVar3);
}
else if (func_706(4, iParam0))
{
if (bVar4)
{
func_703(iVar0, 0);
}
func_702(4, iParam0, 0);
if (iParam2 != 13)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_1.f_120[iParam0]), iParam2);
unk_0x2BCFB39E86340DAA(&Global_89335, iParam0);
}
return 5;
}
break;
case 2:
switch (iParam0)
{
case 0:
iVar5 = 7;
break;
case 1:
iVar5 = 8;
break;
case 2:
iVar5 = 9;
break;
case 3:
iVar5 = 10;
break;
case 4:
iVar5 = 11;
break;
}
if (iVar2 != 3)
{
func_703(iVar0, 3);
func_703(iVar5, 0);
func_702(5, iParam0, 0);
if (iParam2 != 13)
{
unk_0xFA57C719261AA55D(&(Global_106070.f_1.f_120[iParam0]), iParam2);
unk_0x2BCFB39E86340DAA(&Global_89335, iParam0);
}
func_702(1, iParam0, bVar3);
}
else if (func_699(iVar5) != 0 && func_706(5, iParam0))
{
if (bVar4)
{
func_703(iVar0, 0);
}
func_702(5, iParam0, 0);
if (iParam2 != 13)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_1.f_120[iParam0]), iParam2);
unk_0x2BCFB39E86340DAA(&Global_89335, iParam0);
}
if (iParam0 == 1)
{
return 5;
}
return 3;
}
break;
}
return iParam3;
}
bool func_706(int iParam0, int iParam1)
{
bool bVar0;
if (iParam0 == 11 || iParam0 == -1)
{
return 0;
}
if (iParam1 < 0 || iParam1 >= 32)
{
return 0;
}
bVar0 = unk_0x05EFB6A616B6FADE(Global_106070.f_9057.f_99.f_219[iParam0], iParam1);
return bVar0;
}
int func_707(int iParam0)
{
switch (iParam0)
{
case 0:
return 2;
break;
case 1:
return 3;
break;
case 2:
return 4;
break;
case 3:
return 5;
break;
case 4:
return 6;
break;
}
return -1;
}
void func_708(int iParam0, int iParam1)
{
if (iParam0 == 146 || iParam0 == -1)
{
return;
}
if (Global_106070.f_9057.f_99.f_58[iParam0] == iParam1)
{
return;
}
Global_106070.f_9057.f_99.f_58[iParam0] = iParam1;
}
int func_709(int iParam0, int iParam1)
{
switch (iParam0)
{
case 0:
if (iParam1 == 1)
{
return 5;
}
else
{
return 6;
}
break;
case 1:
if (iParam1 == 1)
{
return 2;
}
else
{
return 2;
}
break;
case 2:
if (iParam1 == 1)
{
return 2;
}
else
{
return 2;
}
break;
case 3:
if (iParam1 == 1)
{
return 4;
}
else
{
return 5;
}
break;
case 4:
if (iParam1 == 1)
{
return 2;
}
else
{
return 3;
}
break;
default:
break;
}
return -1;
}
int func_710(int iParam0, int iParam1, int iParam2)
{
switch (iParam0)
{
case 0:
switch (iParam1)
{
case 0:
func_708(16, iParam2);
return 1;
break;
case 1:
func_708(17, iParam2);
return 1;
break;
case 2:
func_708(18, iParam2);
return 1;
break;
case 3:
func_708(4, iParam2);
return 1;
break;
}
break;
case 1:
switch (iParam1)
{
case 0:
func_708(20, iParam2);
return 1;
break;
case 1:
func_708(21, iParam2);
return 1;
break;
case 2:
func_708(22, iParam2);
return 1;
break;
case 3:
func_708(1, iParam2);
return 1;
break;
}
break;
case 2:
switch (iParam1)
{
case 0:
func_708(38, iParam2);
return 1;
break;
case 1:
func_708(39, iParam2);
return 1;
break;
case 2:
func_708(40, iParam2);
return 1;
break;
case 3:
func_708(5, iParam2);
return 1;
break;
}
break;
case 3:
switch (iParam1)
{
case 0:
func_708(6, iParam2);
return 1;
break;
case 1:
func_708(7, iParam2);
return 1;
break;
case 2:
func_708(8, iParam2);
return 1;
break;
case 3:
func_708(2, iParam2);
return 1;
break;
}
break;
case 4:
switch (iParam1)
{
case 0:
func_708(24, iParam2);
return 1;
break;
case 1:
func_708(25, iParam2);
return 1;
break;
case 2:
func_708(26, iParam2);
return 1;
break;
case 3:
func_708(3, iParam2);
return 1;
break;
}
break;
default:
break;
}
return 0;
}
void func_711(int iParam0)
{
switch (iParam0)
{
case 0:
func_712(0, 0, 1);
func_712(0, 1, 1);
func_712(0, 2, 1);
func_712(0, 3, 1);
func_712(0, 4, 1);
func_712(0, 5, 1);
func_712(0, 6, 1);
switch (func_699(7))
{
case 1:
func_712(0, 8, 1);
break;
case 2:
func_712(0, 7, 1);
break;
}
break;
case 1:
func_712(1, 0, 1);
func_712(1, 1, 1);
break;
case 2:
func_712(2, 0, 1);
func_712(2, 1, 1);
break;
case 3:
func_712(3, 0, 1);
func_712(3, 1, 1);
func_712(3, 2, 1);
func_712(3, 3, 1);
break;
case 4:
func_712(4, 0, 1);
func_712(4, 1, 1);
break;
default:
break;
}
}
void func_712(int iParam0, int iParam1, int iParam2)
{
if (iParam2 == 1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_1.f_120[iParam0]), iParam1);
}
else
{
unk_0xFA57C719261AA55D(&(Global_106070.f_1.f_120[iParam0]), iParam1);
}
unk_0x2BCFB39E86340DAA(&Global_89335, iParam0);
}
void func_713(int iParam0, bool bParam1)
{
int iVar0;
char* sVar1;
unk_0x2BCFB39E86340DAA(&(Global_106070.f_1.f_116), iParam0);
switch (iParam0)
{
case 10:
unk_0x2BCFB39E86340DAA(&(Global_106070.f_1.f_119), 14);
break;
case 13:
unk_0x2BCFB39E86340DAA(&(Global_106070.f_1.f_119), 16);
break;
case 12:
unk_0x2BCFB39E86340DAA(&(Global_106070.f_1.f_119), 15);
break;
case 11:
unk_0x2BCFB39E86340DAA(&(Global_106070.f_1.f_119), 17);
break;
}
if (!bParam1)
{
iVar0 = 0;
switch (func_717(iParam0))
{
case 1:
iVar0 = 6;
break;
case 3:
iVar0 = 4;
break;
case 2:
iVar0 = 5;
break;
}
sVar1 = func_715(iParam0);
unk_0x59FF6261546DDD52("FEED_CREW_U");
unk_0x4FDA9E6EF359F8A9(func_715(iParam0));
unk_0x595B8132C1F20265(sVar1, sVar1, 0, iVar0, "", 0);
if (!func_279(45))
{
func_277("AM_H_CREWU", 2, 0, 20000, 10000, func_714(), 0, 131, 0);
}
}
}
int func_714()
{
func_45();
switch (Global_106070.f_2355.f_539.f_4301)
{
case 0:
return 1;
break;
case 1:
return 2;
break;
case 2:
return 4;
break;
}
return 0;
}
var func_715(int iParam0)
{
return func_716(iParam0);
}
char* func_716(int iParam0)
{
switch (iParam0)
{
case 1:
return "HC_N_GUS";
break;
case 2:
return "HC_N_KAR";
break;
case 10:
return "HC_N_PAC";
break;
case 11:
return "HC_N_CHE";
break;
case 3:
return "HC_N_HUG";
break;
case 4:
return "HC_N_NOR";
break;
case 5:
return "HC_N_DAR";
break;
case 6:
return "HC_N_PAI";
break;
case 7:
return "HC_N_CHR";
break;
case 12:
return "HC_N_RIC";
break;
case 8:
return "HC_N_EDD";
break;
case 13:
return "HC_N_TAL";
break;
case 9:
return "HC_N_KRM";
break;
}
return "ERROR!";
}
int func_717(int iParam0)
{
return Global_89202[iParam0 /*5*/];
}
Vector3 func_718(int iParam0)
{
int iVar0;
iVar0 = func_719(iParam0);
if (iVar0 != 5)
{
return Global_89273[iVar0 /*15*/].f_3;
}
return 0f, 0f, 0f;
}
int func_719(int iParam0)
{
switch (iParam0)
{
case 0:
return 1;
break;
case 1:
return 3;
break;
case 2:
return 2;
break;
case 3:
return 1;
break;
case 4:
return 0;
break;
}
return 5;
}
char* func_720(int iParam0)
{
switch (iParam0)
{
case 66:
case 67:
case 68:
case 69:
case 70:
return "heist_ctrl_agency";
break;
case 71:
case 74:
case 75:
return "heist_ctrl_docks";
break;
case 76:
case 77:
case 78:
case 79:
case 80:
case 81:
case 82:
case 83:
case 84:
case 85:
return "heist_ctrl_finale";
break;
case 86:
case 87:
case 88:
case 90:
return "heist_ctrl_jewel";
break;
case 91:
case 92:
case 93:
return "heist_ctrl_rural";
break;
default:
return "NONE";
break;
}
return "NONE";
}
int func_721(int iParam0)
{
switch (iParam0)
{
case 66:
case 67:
case 68:
case 69:
case 70:
return 3;
break;
case 71:
case 74:
case 75:
return 1;
break;
case 76:
case 77:
case 78:
case 79:
case 80:
case 81:
case 82:
case 83:
case 84:
case 85:
return 4;
break;
case 86:
case 87:
case 88:
case 89:
case 90:
return 0;
break;
case 91:
case 93:
return 2;
break;
default:
return 5;
break;
}
return 5;
}
void func_722()
{
struct<27> Var0;
vector3 vVar1;
unk_0x62BAB49318F4FE6E(1);
if (Global_71451 < 0 || Global_71451 >= 94)
{
func_5(1);
}
if (Global_71451.f_1 == 7)
{
Global_71450 = 1;
func_71(Global_71451, &Var0);
}
switch (Global_71451.f_1)
{
case 1:
MemCopy(&Local_100, {Global_84115[Global_71451 /*34*/]}, 8);
iLocal_105 = Global_84115[Global_71451 /*34*/].f_11;
break;
case 7:
StringCopy(&Local_100, Var0, 32);
iLocal_105 = Var0.f_26;
break;
default:
break;
}
unk_0xD6092A9154AFB325(1);
while (!unk_0x71364F510A1CB69F())
{
if (!unk_0x607776744A243309())
{
unk_0x9662BE461F9FDF9E(500);
}
wait(0);
}
func_886();
Global_106070.f_25056.f_6.f_3 = { Global_71456 };
func_871(0, 1, 0);
unk_0x3F4900FC4019C598();
while (unk_0x7CE392C760FE7BA9() == 1)
{
wait(0);
}
if (unk_0x7CE392C760FE7BA9() == 2)
{
func_5(1);
return;
}
if (unk_0xDC5D81351D6A4DDB(unk_0xA19140A5C42D8715()))
{
if (!unk_0x4915F4759304D5CF(unk_0xA19140A5C42D8715()))
{
unk_0x836A6A722DEA63F1(unk_0xA19140A5C42D8715());
vVar1 = { unk_0xE2BBD32891C18569(unk_0xA19140A5C42D8715(), true) };
unk_0x8F7BA8E028ADF980(vVar1, &(vVar1.f_2), 0, 0);
unk_0x4299736016AECE26(unk_0xA19140A5C42D8715(), vVar1, 1, false, 0, 1);
if (unk_0x463E3A48A46C9195(unk_0xA19140A5C42D8715()))
{
unk_0xA0DD3F6A83C651FC(unk_0xA19140A5C42D8715());
}
if (!unk_0x4915F4759304D5CF(unk_0xA19140A5C42D8715()))
{
unk_0x341AA026B031328A(vVar1, 50f);
}
unk_0x9827D9AC8985F888(vVar1, 50f, 0);
unk_0x6259CDB47862A4F3(unk_0xA19140A5C42D8715(), unk_0xF49CB145FAD56CFD(unk_0xA19140A5C42D8715()), 0);
unk_0xB20B772FD9DE1847(unk_0xA19140A5C42D8715(), joaat("weapon_unarmed"), true);
}
}
func_591(1);
func_865(0);
iLocal_107 = Global_106070.f_1.f_116;
func_723(Global_71451, Global_71451.f_1);
if (Global_71451.f_1 == 1 && unk_0x05EFB6A616B6FADE(Global_84115[Global_71451 /*34*/].f_15, 14))
{
iLocal_98 = 1;
}
else
{
iLocal_98 = 2;
}
}
void func_723(int iParam0, int iParam1)
{
int iVar0;
int iVar1;
struct<2> Var2[157];
int iVar3;
int iVar4;
int iVar5;
int iVar6;
int iVar7;
int iVar8;
int iVar9;
int iVar10;
var uVar11;
int iVar12;
int iVar13;
int iVar14;
if (94 != 94 || 63 != 63)
{
}
iVar3 = -1;
if (func_706(6, 1))
{
iVar10 = 1;
}
uVar11 = Global_106070.f_2355.f_4843;
iVar4 = func_699(7);
iVar5 = func_635(43);
iVar6 = func_635(76);
iVar7 = func_699(10);
iVar8 = func_699(11);
iVar9 = func_635(101);
if (Global_106070.f_9057.f_330[24 /*6*/] == 1)
{
iVar3 = 24;
}
else if (Global_106070.f_9057.f_330[25 /*6*/] == 1)
{
iVar3 = 25;
}
else if (Global_106070.f_9057.f_330[27 /*6*/] == 1)
{
iVar3 = 27;
}
iVar1 = func_864(iParam0, iParam1);
if (iParam1 == 1)
{
}
func_857(&Var2, 1, 1, 0);
func_777();
if (iVar10 == 1)
{
func_702(6, 1, 1);
}
Global_106070.f_2355.f_4843 = uVar11;
iVar12 = 0;
iVar0 = 0;
while (iVar0 <= iVar1)
{
if (iVar0 == iVar1)
{
iVar12 = 1;
}
else
{
iVar12 = 0;
}
switch (Var2[iVar0 /*2*/].f_1)
{
case 1:
func_729(Var2[iVar0 /*2*/], 1, iVar12, iVar3);
if (iVar0 < iVar1)
{
func_729(Var2[iVar0 /*2*/], 0, iVar12, iVar3);
if (func_728(Var2[iVar0 /*2*/]))
{
if (iVar3 == Var2[iVar0 /*2*/])
{
func_262(Var2[iVar0 /*2*/], 0);
}
}
else
{
func_262(Var2[iVar0 /*2*/], 0);
}
}
break;
case 7:
func_724(Var2[iVar0 /*2*/], 1);
if (iVar0 < iVar1)
{
func_724(Var2[iVar0 /*2*/], 0);
func_262(Var2[iVar0 /*2*/], 1);
}
break;
default:
break;
}
iVar0++;
}
Global_106070.f_9988.f_21 = 0;
iVar13 = 0;
while (iVar13 <= 99)
{
Global_106070.f_9057.f_330[iVar13 /*6*/].f_3 = -1;
iVar13++;
}
Global_106070.f_18546.f_380 = 0;
iVar13 = 0;
while (iVar13 <= (63 - 1))
{
Global_106070.f_18546[iVar13 /*6*/].f_3 = -1;
iVar13++;
}
iVar13 = 0;
while (iVar13 <= iVar1)
{
if (Var2[iVar13 /*2*/].f_1 == 1)
{
iVar14 = Var2[iVar13 /*2*/];
Global_106070.f_9057.f_330[iVar14 /*6*/].f_3 = iVar13;
Global_106070.f_9988.f_21++;
}
else if (Var2[iVar13 /*2*/].f_1 == 7)
{
iVar14 = Var2[iVar13 /*2*/];
Global_106070.f_18546[iVar14 /*6*/].f_3 = iVar13;
Global_106070.f_18546.f_380++;
}
iVar13++;
}
if (Global_106070.f_9057.f_330[90 /*6*/].f_3 > -1)
{
func_703(7, iVar4);
}
if (Global_106070.f_9057.f_330[41 /*6*/].f_3 > -1)
{
func_708(43, iVar5);
}
if (Global_106070.f_9057.f_330[9 /*6*/].f_3 > -1)
{
func_708(76, iVar6);
}
if (Global_106070.f_9057.f_330[69 /*6*/].f_3 > -1 || Global_106070.f_9057.f_330[70 /*6*/].f_3 > -1)
{
func_703(10, iVar7);
}
if (Global_106070.f_9057.f_330[84 /*6*/].f_3 > -1 || Global_106070.f_9057.f_330[85 /*6*/].f_3 > -1)
{
func_703(11, iVar8);
}
if (Global_106070.f_18546[43 /*6*/].f_3 > -1)
{
func_708(101, iVar9);
}
}
void func_724(int iParam0, int iParam1)
{
switch (iParam0)
{
case 0:
if (iParam1 == 1)
{
}
else
{
func_725(16, 0, 0);
}
break;
case 1:
if (iParam1 == 1)
{
}
else
{
func_725(16, 0, 0);
}
break;
case 2:
if (iParam1 == 1)
{
}
break;
case 3:
if (iParam1 == 1)
{
}
break;
case 4:
if (iParam1 == 1)
{
}
else
{
func_725(49, 1, 0);
}
break;
case 5:
if (iParam1 == 1)
{
}
break;
case 6:
if (iParam1 == 1)
{
}
break;
case 7:
if (iParam1 == 1)
{
}
break;
case 8:
if (iParam1 == 1)
{
}
break;
case 9:
if (iParam1 == 1)
{
func_708(86, 1);
}
break;
case 10:
if (iParam1 == 1)
{
func_708(87, 1);
}
else
{
func_725(60, 0, 0);
}
break;
case 11:
if (iParam1 == 1)
{
func_708(88, 1);
}
break;
case 12:
if (iParam1 == 1)
{
func_708(90, 1);
}
else
{
func_725(55, 0, 0);
}
break;
case 13:
if (iParam1 == 1)
{
func_708(89, 1);
}
break;
case 14:
if (iParam1 == 1)
{
func_708(91, 1);
func_708(92, 1);
}
break;
case 15:
if (iParam1 == 1)
{
}
break;
case 16:
if (iParam1 == 1)
{
func_708(94, 1);
}
break;
case 17:
if (iParam1 == 1)
{
}
else
{
func_725(52, 1, 0);
}
break;
case 18:
if (iParam1 == 1)
{
}
break;
case 19:
if (iParam1 == 1)
{
}
break;
case 20:
if (iParam1 == 1)
{
}
break;
case 21:
if (iParam1 == 1)
{
}
else
{
func_725(61, 0, 0);
}
break;
case 22:
if (iParam1 == 1)
{
}
else
{
func_725(61, 2, 0);
}
break;
case 23:
if (iParam1 == 1)
{
}
else
{
func_725(61, 1, 0);
}
break;
case 24:
break;
case 25:
if (iParam1 == 1)
{
}
else
{
func_725(54, 2, 0);
}
break;
case 26:
if (iParam1 == 1)
{
}
break;
case 27:
if (iParam1 == 1)
{
}
else
{
func_725(58, 2, 0);
}
break;
case 28:
if (iParam1 == 1)
{
}
break;
case 29:
if (iParam1 == 1)
{
}
else
{
func_601(22, 1, 0, 1, 0);
}
break;
case 30:
if (iParam1 == 1)
{
}
break;
case 31:
if (iParam1 == 1)
{
}
else
{
func_725(62, 2, 0);
}
break;
case 32:
if (iParam1 == 1)
{
}
else
{
func_725(56, 2, 0);
func_725(57, 2, 0);
}
break;
case 33:
if (iParam1 == 1)
{
}
break;
case 34:
if (iParam1 == 1)
{
}
else
{
func_725(59, 2, 0);
}
break;
case 35:
break;
case 36:
break;
case 37:
if (iParam1 == 1)
{
}
else
{
func_725(64, 2, 0);
}
break;
case 38:
if (iParam1 == 1)
{
}
break;
case 39:
if (iParam1 == 1)
{
}
break;
case 40:
if (iParam1 == 1)
{
}
break;
case 41:
if (iParam1 == 1)
{
}
break;
case 42:
if (iParam1 == 1)
{
}
break;
case 43:
if (iParam1 == 1)
{
}
break;
case 44:
if (iParam1 == 1)
{
}
break;
case 45:
if (iParam1 == 1)
{
}
break;
case 46:
if (iParam1 == 1)
{
}
else
{
func_725(50, 1, 0);
}
break;
case 47:
if (iParam1 == 1)
{
}
break;
case 48:
if (iParam1 == 1)
{
}
break;
case 49:
if (iParam1 == 1)
{
}
break;
case 50:
if (iParam1 == 1)
{
}
break;
case 51:
if (iParam1 == 1)
{
}
break;
case 52:
if (iParam1 == 1)
{
}
break;
case 53:
if (iParam1 == 1)
{
}
break;
case 54:
if (iParam1 == 1)
{
}
break;
case 55:
if (iParam1 == 1)
{
}
break;
case 56:
if (iParam1 == 1)
{
}
break;
case 57:
if (iParam1 == 1)
{
}
break;
case 58:
if (iParam1 == 1)
{
}
else
{
func_725(103, 1, 0);
}
break;
case 59:
break;
case 60:
break;
case 61:
break;
case 62:
break;
default:
break;
}
}
void func_725(int iParam0, int iParam1, bool bParam2)
{
Global_3069 = iParam0;
if (Global_117[iParam0 /*10*/].f_8 != 145)
{
func_727();
if (iParam1 == 4)
{
Global_106070.f_28022[iParam0 /*29*/].f_12[0] = 1;
Global_106070.f_28022[iParam0 /*29*/].f_12[1] = 1;
Global_106070.f_28022[iParam0 /*29*/].f_12[2] = 1;
Global_106070.f_28022[iParam0 /*29*/].f_24[0] = 1;
Global_106070.f_28022[iParam0 /*29*/].f_24[1] = 1;
Global_106070.f_28022[iParam0 /*29*/].f_24[2] = 1;
}
else
{
if (Global_106070.f_28022[iParam0 /*29*/].f_12[iParam1] == 1 && Global_106070.f_28022[iParam0 /*29*/].f_24[iParam1] == 1)
{
bParam2 = false;
}
Global_106070.f_28022[iParam0 /*29*/].f_12[iParam1] = 1;
Global_106070.f_28022[iParam0 /*29*/].f_24[iParam1] = 1;
}
if (bParam2)
{
if (!Global_71205)
{
if (iParam1 != 4)
{
if (Global_14513 != iParam1)
{
Global_3042[iParam1 /*4*/] = { Global_106070.f_28022[iParam0 /*29*/].f_3 };
Global_3059[iParam1] = 1;
Global_3064[iParam1] = iParam0;
}
else if (iParam0 == Global_14513)
{
}
else
{
Global_2993[1 /*6*/] = { Global_106070.f_28022[iParam0 /*29*/].f_3 };
Global_2993[1 /*6*/].f_5 = iParam1;
func_726();
}
}
else
{
Global_2993[1 /*6*/] = { Global_106070.f_28022[iParam0 /*29*/].f_3 };
Global_2993[1 /*6*/].f_5 = iParam1;
func_726();
}
}
else
{
Global_2993[1 /*6*/] = { Global_106070.f_28022[iParam0 /*29*/].f_3 };
Global_2993[1 /*6*/].f_5 = iParam1;
func_726();
}
}
}
}
void func_726()
{
char cVar0[64];
char cVar1[64];
char* sVar2;
StringCopy(&cVar0, unk_0x08791BD93D5986C6(&(Global_106070.f_28022[Global_3069 /*29*/].f_7)), 64);
if (Global_3088 == 0)
{
unk_0x59FF6261546DDD52("");
StringCopy(&cVar1, unk_0x08791BD93D5986C6(&(Global_2993[1 /*6*/])), 64);
sVar2 = unk_0x08791BD93D5986C6("CELL_253");
unk_0x595B8132C1F20265(&cVar0, &cVar0, 0, 3, sVar2, &cVar1);
}
else
{
unk_0x59FF6261546DDD52("CELL_255");
unk_0x4FDA9E6EF359F8A9(&(Global_2993[1 /*6*/]));
unk_0x595B8132C1F20265(&cVar0, &cVar0, 0, 3, "", 0);
}
unk_0xFA57C719261AA55D(&Global_2383, 0);
}
void func_727()
{
if (func_46(14))
{
if (!unk_0x7112137033807390(unk_0xA19140A5C42D8715(), 0))
{
if (unk_0x8F474E419F56E48D(unk_0xA19140A5C42D8715()) == Global_106070.f_28022[0 /*29*/])
{
Global_14513 = 0;
}
else if (unk_0x8F474E419F56E48D(unk_0xA19140A5C42D8715()) == Global_106070.f_28022[1 /*29*/])
{
Global_14513 = 1;
}
else if (unk_0x8F474E419F56E48D(unk_0xA19140A5C42D8715()) == Global_106070.f_28022[2 /*29*/])
{
Global_14513 = 2;
}
else
{
Global_14513 = 0;
}
}
}
else
{
Global_14513 = func_44();
if (Global_14513 == 145)
{
Global_14513 = 3;
}
if (Global_71205)
{
Global_14513 = 3;
}
if (Global_14513 > 3)
{
Global_14513 = 3;
}
}
}
int func_728(var uParam0)
{
int iVar0;
iVar0 = uParam0;
if (((iVar0 == 24 || iVar0 == 25) || iVar0 == 26) || iVar0 == 27)
{
return 1;
}
return 0;
}
void func_729(int iParam0, int iParam1, int iParam2, int iParam3)
{
bool bVar0;
bVar0 = true;
if (iParam1 || iParam2)
{
bVar0 = false;
}
switch (iParam0)
{
case 0:
if (iParam1 == 1)
{
}
else
{
func_769(5, 1, 1);
func_769(7, 0, 0);
func_769(8, 0, 0);
func_769(9, 0, 0);
func_708(66, 0);
func_725(131, 0, 0);
func_725(131, 1, 0);
func_609(58, 0);
func_609(71, 0);
func_598(2, 1);
func_598(59, 1);
func_768(1, 1);
func_767("controller_taxi", 1424);
func_609(94, 0);
func_609(31, 0);
func_609(32, 0);
func_609(34, 0);
func_609(15, 0);
func_637(81, 0);
func_637(82, 0);
}
break;
case 1:
if (iParam1 == 1)
{
}
else
{
func_601(79, 1, 0, 1, 0);
func_766(1);
func_765(0);
func_751(joaat("weapon_pistol"), 1);
func_751(joaat("weapon_microsmg"), 1);
func_751(joaat("weapon_knife"), 1);
func_751(joaat("weapon_pumpshotgun"), 1);
func_601(179, 1, 0, 1, 0);
func_609(41, 0);
func_725(17, 0, 0);
func_725(14, 0, 0);
func_725(15, 0, 0);
func_742(19, 1, 0);
func_742(14, 0, 0);
func_742(17, 0, 0);
}
break;
case 2:
if (iParam1 == 1)
{
}
else
{
func_769(0, 1, 1);
func_598(0, 1);
func_598(36, 1);
func_601(179, 1, 0, 1, 0);
func_601(174, 1, 0, 1, 0);
func_601(178, 1, 0, 1, 0);
func_601(175, 1, 0, 1, 0);
func_601(176, 1, 0, 1, 0);
func_601(177, 1, 0, 1, 0);
func_609(42, 0);
func_741(0, 1);
func_708(115, 1);
func_751(joaat("weapon_pistol"), 1);
}
break;
case 3:
if (iParam1 == 1)
{
func_708(48, 1);
}
else
{
func_708(48, 1);
func_609(45, 0);
}
break;
case 4:
if (iParam1 == 1)
{
}
break;
case 5:
if (iParam1 == 1)
{
}
break;
case 6:
if (iParam1 == 1)
{
}
break;
case 7:
if (iParam1 == 1)
{
}
else
{
func_708(49, 1);
}
break;
case 8:
if (iParam1 == 1)
{
func_601(77, 1, 0, 1, 0);
func_637(79, 0);
func_637(80, 0);
func_740(0, 1, 0, 10);
func_740(1, 2, 0, 10);
func_740(2, 0, 0, 10);
}
else
{
func_601(8, 1, 0, 1, 0);
func_601(9, 1, 0, 1, 0);
func_601(127, 1, 0, 1, 0);
func_601(128, 1, 0, 1, 0);
func_601(126, 1, 0, 1, 0);
func_751(joaat("weapon_nightstick"), 1);
func_609(162, 0);
func_725(29, 1, 0);
func_725(45, 1, 0);
func_725(29, 2, 0);
}
break;
case 9:
if (iParam1 == 1)
{
}
else
{
func_601(10, 1, 0, 1, 0);
}
break;
case 10:
if (iParam1 == 1)
{
}
else
{
func_601(7, 1, 0, 1, 0);
func_601(162, 1, 0, 1, 0);
func_740(1, 19, 0, 11);
func_740(1, 2, 0, 11);
}
break;
case 11:
if (iParam1 == 1)
{
}
else
{
func_601(8, 0, 0, 1, 0);
func_601(9, 0, 0, 1, 0);
func_601(10, 0, 0, 1, 0);
func_601(7, 0, 0, 1, 0);
func_601(77, 2, 0, 1, 0);
}
break;
case 12:
if (iParam1 == 1)
{
func_637(67, 0);
func_637(68, 0);
func_637(69, 0);
}
else
{
func_751(joaat("weapon_grenadelauncher"), 1);
func_725(21, 2, 0);
}
break;
case 13:
if (iParam1 == 1)
{
}
else
{
func_601(50, 1, 0, 1, 0);
func_601(51, 1, 0, 1, 0);
func_601(52, 1, 0, 1, 0);
func_601(53, 1, 0, 1, 0);
func_601(54, 2, 0, 1, 0);
func_601(55, 2, 0, 1, 0);
func_609(141, 0);
func_751(joaat("weapon_sawnoffshotgun"), 1);
func_751(joaat("weapon_petrolcan"), 1);
}
break;
case 14:
if (iParam1 == 1)
{
func_708(130, 1);
func_708(120, 1);
func_601(78, 0, 0, 1, 0);
func_609(135, 0);
func_739(1, 0, 1);
func_739(1, 2, 1);
func_739(14, 1, 1);
func_739(19, 2, 1);
}
else
{
func_741(0, 1);
func_741(2, 1);
func_601(78, 2, 0, 1, 0);
func_601(6, 1, 0, 1, 0);
func_751(joaat("gadget_parachute"), 1);
func_609(70, 0);
func_609(123, 0);
}
break;
case 15:
if (iParam1 == 1)
{
}
else
{
func_751(joaat("weapon_heavysniper"), 1);
}
break;
case 16:
if (iParam1 == 1)
{
}
else
{
func_601(65, 1, 0, 1, 0);
func_601(66, 1, 0, 1, 0);
func_601(0, 0, 0, 1, 0);
func_598(0, 1);
}
break;
case 17:
if (iParam1 == 1)
{
}
else
{
func_742(14, 1, 0);
func_725(1, 0, 0);
func_725(0, 1, 0);
func_725(14, 1, 0);
func_601(179, 1, 0, 1, 0);
func_601(174, 2, 0, 1, 0);
func_601(178, 2, 0, 1, 0);
func_601(175, 2, 0, 1, 0);
func_601(176, 2, 0, 1, 0);
func_601(177, 2, 0, 1, 0);
func_598(36, 0);
func_768(0, 1);
func_609(124, 0);
func_609(122, 0);
}
break;
case 19:
if (iParam1 == 1)
{
}
else
{
func_601(2, 1, 0, 1, 0);
func_708(58, 1);
func_725(12, 0, 0);
func_725(31, 0, 0);
}
break;
case 18:
if (iParam1 == 1)
{
}
else
{
func_601(14, 1, 0, 1, 0);
func_708(123, 1);
func_598(9, 1);
func_598(10, 1);
}
break;
case 20:
if (iParam1 == 1)
{
}
else
{
func_725(14, 2, 0);
func_742(14, 2, 0);
func_725(31, 0, 0);
func_601(2, 2, 0, 1, 0);
func_601(135, 1, 0, 1, 0);
func_601(138, 1, 0, 1, 0);
func_601(144, 1, 0, 1, 0);
func_601(122, 1, 0, 1, 0);
func_725(0, 2, 0);
func_725(2, 0, 0);
func_742(0, 2, 0);
func_601(116, 1, 0, 1, 0);
func_741(1, 1);
}
break;
case 21:
if (iParam1 == 1)
{
}
else
{
func_601(118, 1, 0, 1, 0);
func_601(117, 1, 0, 1, 0);
func_601(119, 1, 0, 1, 0);
func_601(125, 1, 0, 1, 0);
func_601(120, 1, 0, 1, 0);
func_708(128, 1);
func_739(17, 0, 1);
func_739(14, 0, 1);
func_609(81, 0);
func_609(133, 0);
func_609(132, 0);
}
break;
case 22:
if (iParam1 == 1)
{
}
else
{
func_609(148, 0);
func_739(17, 0, 0);
func_739(14, 0, 0);
func_601(116, 0, 0, 1, 0);
func_601(118, 0, 0, 1, 0);
func_601(117, 0, 0, 1, 0);
func_601(119, 0, 0, 1, 0);
func_601(125, 0, 0, 1, 0);
func_601(120, 0, 0, 1, 0);
}
break;
case 29:
if (iParam1 == 1)
{
}
else
{
func_751(joaat("weapon_combatpistol"), 1);
func_601(2, 0, 0, 1, 0);
}
break;
case 30:
if (iParam1 == 1)
{
}
else
{
func_751(joaat("weapon_appistol"), 1);
func_751(joaat("weapon_heavysniper"), 1);
func_725(23, 0, 0);
func_725(2, 1, 0);
func_725(1, 2, 0);
func_734(0, 1, 1);
func_734(1, 2, 1);
func_734(2, 0, 1);
func_708(44, 0);
func_609(48, 0);
}
break;
case 31:
if (iParam1 == 1)
{
}
else
{
func_601(142, 1, 0, 1, 0);
func_734(0, 1, 0);
func_734(1, 2, 0);
func_734(2, 0, 0);
func_725(23, 1, 0);
}
break;
case 32:
if (iParam1 == 1)
{
}
else
{
func_725(23, 1, 0);
func_725(30, 1, 0);
func_725(30, 2, 0);
func_751(joaat("weapon_rpg"), 1);
func_609(154, 0);
}
break;
case 33:
if (iParam1 == 1)
{
}
else
{
func_598(40, 1);
func_708(47, 0);
func_609(49, 0);
func_601(167, 0, 0, 1, 0);
}
break;
case 34:
if (iParam1 == 1)
{
}
else
{
func_598(41, 1);
}
break;
case 35:
if (iParam1 == 1)
{
}
break;
case 36:
if (iParam1 == 1)
{
func_609(33, 0);
}
else
{
func_609(33, 0);
func_601(167, 1, 0, 1, 0);
}
break;
case 37:
if (iParam1 == 1)
{
func_601(167, 0, 0, 1, 0);
}
else
{
func_731(28, 1, 0);
}
break;
case 38:
if (iParam1 == 1)
{
func_598(41, 0);
func_598(40, 0);
}
else
{
func_609(146, 0);
func_725(29, 0, 0);
func_601(1, 1, 0, 1, 0);
func_601(137, 1, 0, 1, 0);
func_601(156, 0, 0, 1, 0);
func_601(157, 1, 0, 1, 0);
func_751(joaat("weapon_assaultrifle"), 1);
func_751(joaat("weapon_assaultshotgun"), 1);
func_751(joaat("weapon_stickybomb"), 1);
func_751(joaat("weapon_combatmg"), 1);
}
break;
case 39:
if (iParam1 == 1)
{
}
else
{
func_751(joaat("weapon_carbinerifle"), 1);
func_751(joaat("weapon_stungun"), 1);
func_690(func_49(2), 12, 15, 1, 1);
func_601(78, 0, 0, 1, 0);
func_601(158, 1, 0, 1, 0);
func_601(171, 1, 0, 1, 0);
func_601(105, 1, 0, 1, 0);
func_601(106, 1, 0, 1, 0);
func_601(107, 1, 0, 1, 0);
func_601(108, 1, 0, 1, 0);
func_601(109, 1, 0, 1, 0);
func_601(110, 1, 0, 1, 0);
func_708(131, 1);
func_708(120, 1);
func_739(1, 0, 0);
func_739(1, 2, 0);
func_739(14, 1, 0);
func_739(19, 2, 0);
func_769(1, 0, 0);
func_769(0, 1, 1);
func_598(0, 1);
func_598(1, 0);
func_601(134, 0, 0, 1, 0);
func_601(132, 0, 0, 1, 0);
func_601(133, 0, 0, 1, 0);
}
break;
case 23:
if (iParam1 == 1)
{
}
break;
case 24:
if (iParam3 == iParam0 || iParam2 == 1)
{
if (iParam1 == 1)
{
func_708(134, 1);
}
else
{
func_601(56, 1, 0, 1, 0);
func_601(57, 0, 0, 1, 0);
func_601(58, 0, 0, 1, 0);
func_601(59, 0, 0, 1, 0);
}
}
break;
case 25:
if (iParam3 == iParam0 || iParam2 == 1)
{
if (iParam1 == 1)
{
func_708(134, 1);
}
else
{
func_601(11, 1, 0, 1, 0);
}
}
break;
case 26:
if (iParam3 == 27 || iParam2 == 1)
{
if (iParam1 == 1)
{
func_708(134, 1);
}
}
break;
case 27:
if (iParam3 == iParam0 || iParam2 == 1)
{
if (iParam1 == 1)
{
func_751(joaat("weapon_advancedrifle"), 1);
}
else
{
func_708(129, 0);
func_739(0, 2, 0);
}
}
break;
case 28:
if (iParam1 == 1)
{
}
else
{
func_609(130, 0);
func_609(207, 0);
}
break;
case 40:
if (iParam1 == 1)
{
}
else
{
func_601(154, 1, 0, 1, 0);
func_609(41, 0);
}
break;
case 41:
if (iParam1 == 1)
{
}
else
{
func_601(155, 1, 0, 1, 0);
func_742(19, 2, 0);
func_725(19, 2, 0);
func_601(3, 0, 0, 1, 0);
func_598(35, 0);
func_601(4, 0, 0, 1, 0);
func_739(1, 19, 1);
}
break;
case 42:
if (iParam1 == 1)
{
}
else
{
func_601(161, 1, 0, 1, 0);
func_739(1, 19, 0);
}
break;
case 43:
if (iParam1 == 1)
{
}
else
{
func_751(joaat("weapon_sawnoffshotgun"), 1);
func_751(joaat("weapon_pumpshotgun"), 1);
func_725(37, 1, 0);
func_766(0);
}
break;
case 44:
if (iParam1 == 1)
{
}
else
{
func_725(12, 0, 0);
func_690(func_49(1), 12, 43, 1, 1);
func_690(func_49(1), 12, 44, 1, 1);
func_690(func_49(1), 12, 45, 1, 1);
func_690(func_49(1), 12, 46, 1, 1);
func_609(124, 0);
func_609(88, 0);
func_609(160, 0);
}
break;
case 45:
if (iParam1 == 1)
{
}
else
{
func_601(130, 1, 0, 1, 0);
func_601(129, 1, 0, 1, 0);
func_601(131, 1, 0, 1, 0);
func_601(134, 1, 0, 1, 0);
func_601(132, 1, 0, 1, 0);
func_601(133, 1, 0, 1, 0);
func_708(59, 0);
func_741(0, 0);
func_741(2, 0);
func_769(0, 0, 0);
func_769(3, 0, 0);
func_769(4, 0, 0);
func_769(1, 1, 1);
func_769(2, 1, 1);
func_598(0, 0);
func_598(1, 1);
func_598(7, 0);
func_598(6, 1);
func_598(8, 0);
func_725(31, 0, 0);
func_725(31, 2, 0);
}
break;
case 46:
if (iParam1 == 1)
{
}
else
{
func_741(0, 0);
func_708(129, 1);
func_739(0, 1, 1);
func_739(0, 2, 1);
func_734(1, 2, 1);
func_725(35, 2, 0);
func_690(func_49(2), 12, 23, 1, 1);
func_601(124, 1, 0, 1, 0);
}
break;
case 47:
if (iParam1 == 1)
{
}
else
{
func_741(0, 1);
func_739(0, 1, 0);
func_601(81, 1, 0, 1, 0);
func_601(82, 0, 0, 1, 0);
}
break;
case 48:
if (iParam1 == 1)
{
}
else
{
func_601(81, 0, 0, 1, 0);
func_601(82, 0, 0, 1, 0);
func_734(1, 2, 0);
func_609(56, 0);
}
break;
case 49:
if (iParam1 == 1)
{
}
else
{
func_601(26, 0, 0, 1, 0);
func_601(34, 0, 0, 1, 0);
func_601(123, 1, 0, 1, 0);
func_690(func_49(0), 12, 16, 1, 1);
func_690(func_49(1), 12, 11, 1, 1);
}
break;
case 50:
if (iParam1 == 1)
{
}
break;
case 51:
if (iParam1 == 1)
{
}
break;
case 52:
if (iParam1 == 1)
{
}
break;
case 53:
if (iParam1 == 1)
{
func_708(115, 1);
func_708(117, 1);
func_601(14, 1, 0, 1, 0);
func_765(1);
func_609(57, 0);
func_769(7, 1, 0);
func_769(8, 1, 0);
func_769(9, 1, 0);
}
else
{
func_725(18, 1, 0);
func_725(19, 1, 0);
func_725(43, 1, 0);
func_725(44, 1, 0);
func_725(53, 1, 0);
func_725(36, 0, 0);
func_725(30, 0, 0);
func_725(12, 0, 0);
func_742(0, 1, 0);
func_742(2, 1, 0);
func_609(140, 0);
func_708(124, 1);
func_708(125, 1);
func_609(90, 0);
func_609(91, 0);
func_708(66, 1);
func_708(115, 0);
func_708(117, 0);
func_708(116, 1);
func_741(0, 0);
func_741(1, 1);
func_741(2, 0);
}
break;
case 54:
if (iParam1 == 1)
{
}
break;
case 55:
if (iParam1 == 1)
{
}
break;
case 56:
if (iParam1 == 1)
{
}
break;
case 57:
if (iParam1 == 1)
{
}
break;
case 58:
if (iParam1 == 1)
{
}
break;
case 59:
if (iParam1 == 1)
{
func_708(65, 1);
}
else
{
func_609(143, 0);
func_751(joaat("weapon_remotesniper"), 1);
func_725(26, 0, 0);
}
break;
case 60:
if (iParam1 == 1)
{
}
else
{
func_708(66, 1);
}
break;
case 61:
if (iParam1 == 1)
{
}
else
{
func_751(joaat("weapon_smg"), 1);
func_601(103, 1, 0, 1, 0);
func_601(102, 1, 0, 1, 0);
func_601(104, 1, 0, 1, 0);
func_601(111, 1, 0, 1, 0);
func_601(112, 1, 0, 1, 0);
}
break;
case 62:
if (iParam1 == 1)
{
}
else
{
func_708(58, 1);
func_741(0, 0);
func_741(1, 0);
func_741(2, 1);
func_708(117, 1);
func_769(2, 1, 1);
func_609(115, 0);
func_601(3, 1, 0, 1, 0);
func_598(35, 1);
func_601(4, 1, 0, 1, 0);
func_768(2, 1);
func_598(6, 1);
func_751(joaat("weapon_pumpshotgun"), 1);
func_637(105, 0);
func_601(179, 1, 0, 1, 0);
func_601(174, 0, 0, 1, 0);
func_601(178, 0, 0, 1, 0);
func_601(175, 0, 0, 1, 0);
func_601(176, 0, 0, 1, 0);
func_601(177, 0, 0, 1, 0);
func_601(173, 1, 0, 1, 0);
func_598(36, 0);
func_731(29, 1, 0);
func_601(78, 1, 0, 1, 0);
}
break;
case 63:
if (iParam1 == 1)
{
}
else
{
func_609(87, 0);
func_609(99, 0);
func_609(161, 0);
func_751(joaat("weapon_sniperrifle"), 1);
func_751(joaat("weapon_molotov"), 1);
func_601(78, 1, 0, 1, 0);
}
break;
case 64:
if (iParam1 == 1)
{
}
else
{
func_725(131, 2, 0);
func_601(38, 1, 0, 1, 0);
func_601(39, 1, 0, 1, 0);
func_601(40, 1, 0, 1, 0);
func_601(41, 1, 0, 1, 0);
func_601(42, 1, 0, 1, 0);
func_601(43, 1, 0, 1, 0);
func_601(44, 1, 0, 1, 0);
func_601(45, 1, 0, 1, 0);
func_601(46, 1, 0, 1, 0);
func_601(47, 1, 0, 1, 0);
func_601(37, 1, 0, 1, 0);
func_769(3, 1, 1);
func_769(2, 1, 0);
func_598(7, 1);
func_598(6, 0);
func_708(59, 1);
func_741(0, 1);
func_741(1, 1);
func_708(58, 0);
func_751(joaat("weapon_stickybomb"), 1);
func_690(func_49(2), 12, 45, 1, 1);
func_601(192, 1, 0, 1, 0);
func_601(193, 1, 0, 1, 0);
func_601(191, 1, 0, 1, 0);
}
break;
case 65:
if (iParam1 == 1)
{
func_601(135, 0, 0, 1, 0);
func_601(136, 0, 0, 1, 0);
func_601(137, 0, 0, 1, 0);
func_601(138, 0, 0, 1, 0);
func_601(141, 0, 0, 1, 0);
func_601(142, 0, 0, 1, 0);
func_601(144, 0, 0, 1, 0);
func_601(139, 0, 0, 1, 0);
func_601(140, 0, 0, 1, 0);
func_601(143, 0, 0, 1, 0);
}
else
{
func_601(147, 1, 0, 1, 0);
func_601(148, 1, 0, 1, 0);
func_601(145, 2, 0, 1, 0);
func_769(4, 1, 1);
func_769(3, 0, 0);
func_598(7, 0);
func_598(8, 1);
func_708(119, 1);
func_601(65, 0, 0, 1, 0);
func_601(66, 0, 0, 1, 0);
func_601(78, 0, 0, 1, 0);
}
break;
case 66:
if (iParam1 == 1)
{
}
else
{
func_712(3, 0, 1);
func_712(3, 1, 1);
func_767("buildingSiteAmbience", 128);
func_601(165, 1, 0, 1, 0);
func_708(11, 0);
func_708(70, 1);
func_601(87, 1, 0, 1, 0);
}
break;
case 67:
if (iParam1 == 1)
{
}
else
{
func_601(87, 0, 0, 1, 0);
func_712(3, 2, 1);
func_708(70, 0);
func_601(166, 1, 0, 1, 0);
}
break;
case 68:
if (iParam1 == 1)
{
}
else
{
func_601(169, 1, 0, 1, 0);
func_598(43, 1);
func_712(3, 7, 1);
func_637(62, 0);
func_637(63, 0);
}
break;
case 69:
if (iParam1 == 1)
{
}
else
{
func_730();
}
break;
case 70:
if (iParam1 == 1)
{
}
else
{
func_730();
}
break;
case 71:
if (iParam1 == 1)
{
}
else
{
func_601(145, 1, 0, 1, 0);
func_601(146, 0, 0, 1, 0);
func_601(141, 1, 0, 1, 0);
func_601(139, 0, 0, 1, 0);
func_601(140, 0, 0, 1, 0);
func_601(143, 1, 0, 1, 0);
}
break;
case 72:
if (iParam1 == 1)
{
}
else
{
func_609(119, 0);
func_712(1, 5, 1);
func_712(1, 7, 1);
func_601(136, 1, 0, 1, 0);
}
break;
case 73:
if (iParam1 == 1)
{
}
else
{
func_598(38, 1);
func_712(1, 6, 1);
}
break;
case 74:
if (iParam1 == 1)
{
}
else
{
func_601(12, 1, 0, 1, 0);
func_601(13, 1, 0, 1, 0);
func_751(joaat("weapon_assaultshotgun"), 1);
func_598(38, 0);
func_601(2, 0, 0, 1, 0);
func_708(1, 1);
}
break;
case 75:
if (iParam1 == 1)
{
}
else
{
func_598(39, 1);
func_598(38, 0);
func_601(2, 0, 0, 1, 0);
func_708(1, 1);
}
break;
case 76:
if (iParam1 == 1)
{
}
else
{
func_601(172, 1, 0, 1, 0);
func_712(4, 1, 1);
func_609(155, 0);
}
break;
case 77:
if (iParam1 == 1)
{
}
break;
case 78:
if (iParam1 == 1)
{
}
else
{
func_712(4, 5, 1);
func_609(104, 0);
func_712(4, 6, 1);
}
break;
case 84:
if (iParam1 == 1)
{
}
else
{
func_751(joaat("weapon_appistol"), 1);
func_751(joaat("weapon_pumpshotgun"), 1);
func_708(3, 1);
func_751(joaat("weapon_advancedrifle"), 1);
}
break;
case 79:
if (iParam1 == 1)
{
}
else
{
func_712(4, 7, 1);
func_609(120, 0);
func_609(105, 0);
}
break;
case 80:
if (iParam1 == 1)
{
func_708(30, 0);
func_609(102, 0);
}
else
{
func_609(106, 0);
}
break;
case 81:
if (iParam1 == 1)
{
}
else
{
func_609(106, 0);
}
break;
case 82:
if (iParam1 == 1)
{
}
else
{
func_609(106, 0);
}
break;
case 83:
if (iParam1 == 1)
{
}
else
{
func_609(107, 0);
}
break;
case 85:
if (iParam1 == 1)
{
}
else
{
func_708(3, 1);
func_751(joaat("weapon_advancedrifle"), 1);
}
break;
case 86:
if (iParam1 == 1)
{
func_601(70, 1, 0, 1, 0);
func_601(71, 1, 0, 1, 0);
func_601(73, 1, 0, 1, 0);
func_601(72, 0, 0, 1, 0);
func_601(74, 0, 0, 1, 0);
func_637(62, 0);
func_637(63, 0);
}
break;
case 87:
if (iParam1 == 1)
{
func_601(182, 1, 0, 1, 0);
func_601(183, 1, 0, 1, 0);
func_601(184, 1, 0, 1, 0);
}
else
{
func_712(0, 9, 1);
func_601(182, 0, 0, 1, 0);
func_601(183, 0, 0, 1, 0);
func_601(184, 0, 0, 1, 0);
func_601(164, 1, 0, 1, 0);
func_609(117, 0);
}
break;
case 89:
if (iParam1 == 1)
{
}
else
{
func_712(0, 11, 1);
}
break;
case 88:
if (iParam1 == 1)
{
func_609(118, 0);
}
else
{
func_712(0, 10, 1);
}
break;
case 90:
if (iParam1 == 1)
{
func_712(0, 4, 1);
}
else
{
func_601(88, 2, 0, 1, 0);
func_601(89, 0, 0, 1, 0);
func_601(164, 0, 0, 1, 0);
func_601(70, 0, 0, 1, 0);
func_601(71, 0, 0, 1, 0);
func_601(73, 0, 0, 1, 0);
func_601(72, 0, 0, 1, 0);
func_601(74, 0, 0, 1, 0);
func_609(101, 0);
func_708(4, 1);
func_708(72, 0);
func_725(12, 1, 0);
func_725(20, 2, 0);
func_725(24, 2, 0);
func_725(39, 2, 0);
func_725(34, 2, 0);
func_725(47, 2, 0);
func_725(131, 2, 0);
func_751(joaat("weapon_carbinerifle"), 1);
func_751(joaat("weapon_smokegrenade"), 1);
}
break;
case 91:
if (iParam1 == 1)
{
func_637(67, 0);
func_637(68, 0);
func_637(69, 0);
func_708(37, 0);
func_708(38, 0);
}
else
{
func_712(2, 1, 1);
func_725(12, 2, 0);
}
break;
case 92:
if (iParam1 == 1)
{
}
else
{
func_598(42, 1);
func_712(2, 3, 1);
}
break;
case 93:
if (iParam1 == 1)
{
func_601(168, 1, 0, 1, 0);
}
else
{
func_601(5, 1, 0, 1, 0);
func_601(196, 1, 0, 1, 0);
func_598(42, 0);
func_708(5, 1);
func_751(joaat("weapon_mg"), 1);
func_751(joaat("weapon_minigun"), 1);
func_690(func_49(2), 12, 39, 1, 1);
}
break;
default:
bVar0 = false;
break;
}
if (bVar0)
{
Global_106070.f_9057.f_330[iParam0 /*6*/] = 1;
}
}
void func_730()
{
func_708(2, 1);
func_637(62, 1);
func_637(63, 1);
func_601(36, 0, 0, 1, 0);
func_601(166, 0, 0, 1, 0);
func_601(169, 0, 0, 1, 0);
func_601(165, 0, 0, 1, 0);
func_601(70, 0, 0, 1, 0);
func_601(71, 0, 0, 1, 0);
func_601(73, 0, 0, 1, 0);
func_601(72, 2, 0, 1, 0);
func_601(74, 1, 0, 1, 0);
func_598(43, 0);
func_601(28, 1, 0, 1, 0);
func_601(26, 0, 0, 1, 0);
func_601(36, 0, 0, 1, 0);
func_601(27, 0, 0, 1, 0);
func_601(34, 0, 0, 1, 0);
func_601(29, 0, 0, 1, 0);
func_601(30, 0, 0, 1, 0);
func_601(31, 0, 0, 1, 0);
}
void func_731(int iParam0, bool bParam1, int iParam2)
{
if (bParam1)
{
if (!func_23(iParam0, 0, 0))
{
if (iParam2 && Global_93284.f_18[iParam0])
{
if (func_364(iParam0) == 3 && !func_347(iParam0))
{
func_733(iParam0);
func_22(iParam0, 0, 0);
func_15(iParam0, 1, 0);
func_732(iParam0);
}
else
{
func_22(iParam0, 1, 0);
func_732(iParam0);
}
}
else
{
func_22(iParam0, 0, 0);
func_15(iParam0, 1, 0);
func_732(iParam0);
}
}
else
{
func_15(iParam0, 1, 0);
func_732(iParam0);
}
}
else if (func_23(iParam0, 0, 0))
{
func_15(iParam0, 0, 0);
func_15(iParam0, 1, 0);
func_732(iParam0);
}
}
void func_732(int iParam0)
{
Global_93284.f_172[iParam0] = 1;
Global_93284.f_171 = 1;
}
void func_733(int iParam0)
{
if (Global_93284.f_18[iParam0])
{
func_22(iParam0, 10, 1);
func_22(iParam0, 19, 1);
}
}
void func_734(int iParam0, int iParam1, bool bParam2)
{
if (bParam2)
{
if (func_738(iParam0, iParam1, 2))
{
return;
}
func_740(iParam0, iParam1, 2, -1);
}
else
{
if (!func_738(iParam0, iParam1, 2))
{
return;
}
func_735(iParam0, iParam1, 2);
}
}
int func_735(int iParam0, int iParam1, int iParam2)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
iVar0 = func_737(iParam0);
iVar1 = func_737(iParam1);
iVar2 = func_736(iVar0, iVar1);
iVar3 = 0;
if (iVar2 != 10)
{
if (unk_0x05EFB6A616B6FADE(Global_106070.f_18075.f_175[iVar2 /*19*/].f_2, iParam2))
{
unk_0xFA57C719261AA55D(&(Global_106070.f_18075.f_175[iVar2 /*19*/].f_2), iParam2);
iVar3 = 1;
}
if (!unk_0x05EFB6A616B6FADE(Global_106070.f_18075.f_175[iVar2 /*19*/].f_2, 0))
{
Global_106070.f_18075.f_175[iVar2 /*19*/].f_3 = -1;
}
}
return iVar3;
}
int func_736(int iParam0, int iParam1)
{
int iVar0;
if ((iParam0 != 0 && iParam0 != 1) && iParam0 != 2)
{
if ((iParam1 == 0 || iParam1 == 1) || iParam1 == 2)
{
iVar0 = iParam1;
iParam1 = iParam0;
iParam0 = iVar0;
}
}
switch (iParam0)
{
case 0:
switch (iParam1)
{
case 0:
return 10;
break;
case 1:
return 0;
break;
case 2:
return 2;
break;
case 3:
return 10;
break;
case 4:
return 5;
break;
case 5:
return 8;
break;
default:
return 10;
break;
}
break;
case 1:
switch (iParam1)
{
case 0:
return 0;
break;
case 1:
return 10;
break;
case 2:
return 1;
break;
case 3:
return 3;
break;
case 4:
return 6;
break;
case 5:
return 10;
break;
default:
return 10;
break;
}
break;
case 2:
switch (iParam1)
{
case 0:
return 2;
break;
case 1:
return 1;
break;
case 2:
return 10;
break;
case 3:
return 4;
break;
case 4:
return 7;
break;
case 5:
return 10;
break;
default:
return 10;
break;
}
break;
}
return 10;
}
int func_737(int iParam0)
{
if (iParam0 == 145)
{
return 7;
}
if (iParam0 < 157)
{
return Global_106070.f_28022[iParam0 /*29*/].f_11;
}
if (iParam0 == 144)
{
return 7;
}
if (iParam0 == 157)
{
return 6;
}
if (iParam0 == 158)
{
return 6;
}
return 6;
}
bool func_738(int iParam0, int iParam1, int iParam2)
{
int iVar0;
int iVar1;
int iVar2;
iVar0 = func_737(iParam0);
iVar1 = func_737(iParam1);
iVar2 = func_736(iVar0, iVar1);
if (iVar2 == 10)
{
return 0;
}
return unk_0x05EFB6A616B6FADE(Global_106070.f_18075.f_175[iVar2 /*19*/].f_2, iParam2);
}
void func_739(int iParam0, int iParam1, bool bParam2)
{
if (bParam2)
{
if (func_738(iParam0, iParam1, 1))
{
return;
}
func_740(iParam0, iParam1, 1, -1);
}
else
{
if (!func_738(iParam0, iParam1, 1))
{
return;
}
func_735(iParam0, iParam1, 1);
}
}
int func_740(int iParam0, int iParam1, int iParam2, int iParam3)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
iVar0 = func_737(iParam0);
iVar1 = func_737(iParam1);
iVar2 = func_736(iVar0, iVar1);
iVar3 = 0;
if (iParam2 != 0 && iParam3 != -1)
{
return 0;
}
if (iParam2 == 0 && iParam3 == 94)
{
return 0;
}
if (iParam2 == 0 && iParam3 == -1)
{
return 0;
}
if (iVar2 != 10)
{
if (!unk_0x05EFB6A616B6FADE(Global_106070.f_18075.f_175[iVar2 /*19*/].f_2, iParam2))
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_18075.f_175[iVar2 /*19*/].f_2), iParam2);
iVar3 = 1;
}
if (iParam2 == 0)
{
Global_106070.f_18075.f_175[iVar2 /*19*/].f_3 = iParam3;
}
}
return iVar3;
}
void func_741(int iParam0, int iParam1)
{
if (func_47(iParam0))
{
Global_106070.f_2355.f_539.f_2328[iParam0] = iParam1;
}
}
void func_742(int iParam0, int iParam1, bool bParam2)
{
int iVar0;
if (func_750(iParam1, iParam0, &iVar0))
{
func_749(iParam1, iParam0, 1);
func_748(iParam1, iParam0, 50);
if (bParam2)
{
func_744(iParam0, iParam1, (5f * 60f));
}
func_743(iVar0, 0);
unk_0x2BCFB39E86340DAA(&(Global_106070.f_18075.f_175[iVar0 /*19*/].f_18), 1);
Global_89062++;
}
}
void func_743(int iParam0, int iParam1)
{
if (iParam0 < 9)
{
Global_89183[iParam0 /*2*/] = iParam1;
if (iParam1 == 0)
{
Global_89183[iParam0 /*2*/].f_1 = 0;
}
}
}
void func_744(int iParam0, int iParam1, float fParam2)
{
int iVar0;
int iVar1;
int iVar2;
float fVar3;
iVar0 = func_737(iParam0);
iVar1 = func_737(iParam1);
iVar2 = func_736(iVar0, iVar1);
if (iVar2 < 9)
{
fVar3 = 0f;
if (func_747(&(Global_106070.f_18075.f_175[iVar2 /*19*/].f_5)))
{
fVar3 = func_745(&(Global_106070.f_18075.f_175[iVar2 /*19*/].f_5));
}
func_52(&(Global_106070.f_18075.f_175[iVar2 /*19*/].f_5), (fVar3 + fParam2));
}
}
float func_745(var uParam0)
{
if (func_747(uParam0))
{
if (func_746(uParam0))
{
return uParam0->f_2;
}
else
{
return (func_53(unk_0x05EFB6A616B6FADE(*uParam0, 4)) - uParam0->f_1);
}
}
return uParam0->f_1;
}
bool func_746(var uParam0)
{
return unk_0x05EFB6A616B6FADE(*uParam0, 2);
}
bool func_747(var uParam0)
{
return unk_0x05EFB6A616B6FADE(*uParam0, 1);
}
void func_748(int iParam0, int iParam1, int iParam2)
{
int iVar0;
int iVar1;
int iVar2;
iVar0 = func_737(iParam0);
iVar1 = func_737(iParam1);
iVar2 = func_736(iVar0, iVar1);
Global_106070.f_18075.f_175[iVar2 /*19*/].f_17 = iParam2;
if (Global_106070.f_18075.f_175[iVar2 /*19*/].f_17 < 0)
{
Global_106070.f_18075.f_175[iVar2 /*19*/].f_17 = 0;
}
if (Global_106070.f_18075.f_175[iVar2 /*19*/].f_17 > 100)
{
Global_106070.f_18075.f_175[iVar2 /*19*/].f_17 = 100;
}
}
void func_749(int iParam0, int iParam1, int iParam2)
{
int iVar0;
int iVar1;
int iVar2;
iVar0 = func_737(iParam0);
iVar1 = func_737(iParam1);
iVar2 = func_736(iVar0, iVar1);
if (iVar2 != 10)
{
func_51(&(Global_106070.f_18075.f_175[iVar2 /*19*/].f_5));
Global_106070.f_18075.f_175[iVar2 /*19*/].f_8 = iParam2;
}
}
int func_750(int iParam0, int iParam1, var uParam2)
{
int iVar0;
int iVar1;
iVar0 = func_737(iParam0);
iVar1 = func_737(iParam1);
if (iVar0 != 7 && iVar1 != 7)
{
*uParam2 = func_736(iVar0, iVar1);
if (*uParam2 != 10)
{
return 1;
}
}
*uParam2 = 10;
return 0;
}
void func_751(int iParam0, bool bParam1)
{
func_752(0, iParam0, bParam1, 1);
func_752(2, iParam0, bParam1, 1);
func_752(1, iParam0, bParam1, 1);
}
void func_752(int iParam0, int iParam1, bool bParam2, bool bParam3)
{
int iVar0;
int iVar1;
int iVar2;
if (func_47(iParam0))
{
iVar0 = func_764(iParam0, iParam1);
iVar1 = func_762(iParam1);
iVar2 = func_442(iVar1);
if (bParam2)
{
unk_0x2BCFB39E86340DAA(&iVar0, iVar2);
}
else
{
unk_0xFA57C719261AA55D(&iVar0, iVar2);
}
func_761(iParam0, iParam1, iVar0);
if (bParam3)
{
func_753(iParam0, iParam1);
}
}
}
void func_753(int iParam0, int iParam1)
{
int iVar0;
int iVar1;
iVar0 = 0;
iVar1 = func_338(iParam1, iVar0);
while (iVar1 != 0)
{
func_754(iParam0, iParam1, iVar1, 1);
iVar0++;
iVar1 = func_338(iParam1, iVar0);
}
}
void func_754(int iParam0, int iParam1, int iParam2, bool bParam3)
{
int iVar0;
int iVar1;
int iVar2;
if (func_47(iParam0))
{
iVar0 = func_760(iParam0, iParam1, iParam2);
iVar1 = func_758(iParam2, iParam1);
iVar2 = func_757(iVar1);
if (bParam3)
{
unk_0x2BCFB39E86340DAA(&iVar0, iVar2);
}
else
{
unk_0xFA57C719261AA55D(&iVar0, iVar2);
}
func_755(iParam0, iParam1, iParam2, iVar0);
}
}
void func_755(int iParam0, int iParam1, int iParam2, int iParam3)
{
int iVar0;
int iVar1;
iVar0 = func_758(iParam2, iParam1);
iVar1 = func_756(iVar0);
switch (iVar1)
{
case 0:
switch (iParam0)
{
case 0:
unk_0x93180BE33E7149EF(joaat("sp0_weap_addon_unlock_0"), iParam3, 1);
break;
case 1:
unk_0x93180BE33E7149EF(joaat("sp1_weap_addon_unlock_0"), iParam3, 1);
break;
case 2:
unk_0x93180BE33E7149EF(joaat("sp2_weap_addon_unlock_0"), iParam3, 1);
break;
}
break;
case 1:
switch (iParam0)
{
case 0:
unk_0x93180BE33E7149EF(joaat("sp0_weap_addon_unlock_1"), iParam3, 1);
break;
case 1:
unk_0x93180BE33E7149EF(joaat("sp1_weap_addon_unlock_1"), iParam3, 1);
break;
case 2:
unk_0x93180BE33E7149EF(joaat("sp2_weap_addon_unlock_1"), iParam3, 1);
break;
}
break;
case 2:
switch (iParam0)
{
case 0:
unk_0x93180BE33E7149EF(joaat("sp0_weap_addon_unlock_2"), iParam3, 1);
break;
case 1:
unk_0x93180BE33E7149EF(joaat("sp1_weap_addon_unlock_2"), iParam3, 1);
break;
case 2:
unk_0x93180BE33E7149EF(joaat("sp2_weap_addon_unlock_2"), iParam3, 1);
break;
}
break;
case 3:
switch (iParam0)
{
case 0:
unk_0x93180BE33E7149EF(joaat("sp0_weap_addon_unlock_3"), iParam3, 1);
break;
case 1:
unk_0x93180BE33E7149EF(joaat("sp1_weap_addon_unlock_3"), iParam3, 1);
break;
case 2:
unk_0x93180BE33E7149EF(joaat("sp2_weap_addon_unlock_3"), iParam3, 1);
break;
}
break;
case 4:
switch (iParam0)
{
case 0:
unk_0x93180BE33E7149EF(joaat("sp0_weap_addon_unlock_4"), iParam3, 1);
break;
case 1:
unk_0x93180BE33E7149EF(joaat("sp1_weap_addon_unlock_4"), iParam3, 1);
break;
case 2:
unk_0x93180BE33E7149EF(joaat("sp2_weap_addon_unlock_4"), iParam3, 1);
break;
}
break;
case 5:
switch (iParam0)
{
case 0:
unk_0x93180BE33E7149EF(joaat("sp0_weap_addon_unlock_5"), iParam3, 1);
break;
case 1:
unk_0x93180BE33E7149EF(joaat("sp1_weap_addon_unlock_5"), iParam3, 1);
break;
case 2:
unk_0x93180BE33E7149EF(joaat("sp2_weap_addon_unlock_5"), iParam3, 1);
break;
}
break;
case 6:
switch (iParam0)
{
case 0:
unk_0x93180BE33E7149EF(joaat("sp0_weap_addon_unlock_6"), iParam3, 1);
break;
case 1:
unk_0x93180BE33E7149EF(joaat("sp1_weap_addon_unlock_6"), iParam3, 1);
break;
case 2:
unk_0x93180BE33E7149EF(joaat("sp2_weap_addon_unlock_6"), iParam3, 1);
break;
}
break;
default:
break;
}
}
int func_756(int iParam0)
{
return (iParam0 / 32);
}
int func_757(int iParam0)
{
return (iParam0 % 32);
}
int func_758(int iParam0, int iParam1)
{
return func_759(iParam0, iParam1);
}
int func_759(int iParam0, int iParam1)
{
switch (iParam1)
{
case joaat("weapon_pistol"):
switch (iParam0)
{
case joaat("component_pistol_clip_01"):
return 1;
break;
case joaat("component_pistol_clip_02"):
return 2;
break;
case joaat("component_at_pi_flsh"):
return 3;
break;
case joaat("component_at_pi_supp_02"):
return 4;
break;
case joaat("component_pistol_varmod_luxe"):
return 175;
break;
case 1623028892:
return 211;
break;
}
break;
case joaat("weapon_combatpistol"):
switch (iParam0)
{
case joaat("component_combatpistol_clip_01"):
return 5;
break;
case joaat("component_combatpistol_clip_02"):
return 6;
break;
case joaat("component_at_pi_flsh"):
return 7;
break;
case joaat("component_at_pi_supp"):
return 8;
break;
case joaat("component_combatpistol_varmod_lowrider"):
return 186;
break;
}
break;
case joaat("weapon_appistol"):
switch (iParam0)
{
case joaat("component_appistol_clip_01"):
return 11;
break;
case joaat("component_appistol_clip_02"):
return 12;
break;
case joaat("component_at_pi_flsh"):
return 13;
break;
case joaat("component_at_pi_supp"):
return 14;
break;
case joaat("component_appistol_varmod_luxe"):
return 164;
break;
}
break;
case joaat("weapon_microsmg"):
switch (iParam0)
{
case joaat("component_microsmg_clip_01"):
return 15;
break;
case joaat("component_microsmg_clip_02"):
return 16;
break;
case joaat("component_at_pi_flsh"):
return 17;
break;
case joaat("component_at_scope_macro"):
return 18;
break;
case joaat("component_at_ar_supp_02"):
return 19;
break;
case joaat("component_microsmg_varmod_luxe"):
return 174;
break;
}
break;
case joaat("weapon_smg"):
switch (iParam0)
{
case joaat("component_smg_clip_01"):
return 22;
break;
case joaat("component_smg_clip_02"):
return 23;
break;
case joaat("component_smg_clip_03"):
return 207;
break;
case joaat("component_at_ar_flsh"):
return 24;
break;
case joaat("component_at_scope_macro_02"):
return 25;
break;
case joaat("component_at_pi_supp"):
return 26;
break;
case joaat("component_smg_varmod_luxe"):
return 179;
break;
case 1623028892:
return 212;
break;
}
break;
case joaat("weapon_assaultrifle"):
switch (iParam0)
{
case joaat("component_assaultrifle_clip_01"):
return 27;
break;
case joaat("component_assaultrifle_clip_02"):
return 28;
break;
case joaat("component_assaultrifle_clip_03"):
return 201;
break;
case joaat("component_at_ar_afgrip"):
return 29;
break;
case joaat("component_at_ar_flsh"):
return 30;
break;
case joaat("component_at_scope_macro"):
return 31;
break;
case joaat("component_at_ar_supp_02"):
return 32;
break;
case joaat("component_assaultrifle_varmod_luxe"):
return 165;
break;
case 1623028892:
return 213;
break;
}
break;
case joaat("weapon_carbinerifle"):
switch (iParam0)
{
case joaat("component_carbinerifle_clip_01"):
return 33;
break;
case joaat("component_carbinerifle_clip_02"):
return 34;
break;
case joaat("component_carbinerifle_clip_03"):
return 202;
break;
case joaat("component_at_railcover_01"):
return 35;
break;
case joaat("component_at_ar_afgrip"):
return 36;
break;
case joaat("component_at_ar_flsh"):
return 37;
break;
case joaat("component_at_scope_medium"):
return 38;
break;
case joaat("component_at_ar_supp"):
return 39;
break;
case joaat("component_carbinerifle_varmod_luxe"):
return 168;
break;
case 1623028892:
return 214;
break;
}
break;
case joaat("weapon_advancedrifle"):
switch (iParam0)
{
case joaat("component_advancedrifle_clip_01"):
return 44;
break;
case joaat("component_advancedrifle_clip_02"):
return 45;
break;
case joaat("component_at_ar_flsh"):
return 47;
break;
case joaat("component_at_scope_small"):
return 48;
break;
case joaat("component_at_ar_supp"):
return 49;
break;
case joaat("component_advancedrifle_varmod_luxe"):
return 163;
break;
}
break;
case joaat("weapon_mg"):
switch (iParam0)
{
case joaat("component_mg_clip_01"):
return 50;
break;
case joaat("component_mg_clip_02"):
return 51;
break;
case joaat("component_at_scope_small_02"):
return 52;
break;
case joaat("component_mg_varmod_lowrider"):
return 187;
break;
}
break;
case joaat("weapon_combatmg"):
switch (iParam0)
{
case joaat("component_combatmg_clip_01"):
return 53;
break;
case joaat("component_combatmg_clip_02"):
return 54;
break;
case joaat("component_at_ar_afgrip"):
return 55;
break;
case joaat("component_at_scope_medium"):
return 56;
break;
case joaat("component_combatmg_varmod_lowrider"):
return 188;
break;
case 1623028892:
return 215;
break;
}
break;
case joaat("weapon_pumpshotgun"):
switch (iParam0)
{
case joaat("component_at_sr_supp"):
return 59;
break;
case joaat("component_at_ar_flsh"):
return 60;
break;
case joaat("component_pumpshotgun_varmod_lowrider"):
return 193;
break;
case 1623028892:
return 389;
break;
}
break;
case joaat("weapon_assaultshotgun"):
switch (iParam0)
{
case joaat("component_assaultshotgun_clip_01"):
return 64;
break;
case joaat("component_assaultshotgun_clip_02"):
return 65;
break;
case joaat("component_at_ar_afgrip"):
return 66;
break;
case joaat("component_at_ar_flsh"):
return 67;
break;
case joaat("component_at_ar_supp"):
return 68;
break;
}
break;
case joaat("weapon_sniperrifle"):
switch (iParam0)
{
case joaat("component_sniperrifle_clip_01"):
return 69;
break;
case joaat("component_at_scope_large"):
return 70;
break;
case joaat("component_at_scope_max"):
return 71;
break;
case joaat("component_at_ar_supp_02"):
return 72;
break;
case joaat("component_sniperrifle_varmod_luxe"):
return 180;
break;
}
break;
case joaat("weapon_heavysniper"):
switch (iParam0)
{
case joaat("component_heavysniper_clip_01"):
return 76;
break;
case joaat("component_at_scope_max"):
return 77;
break;
case joaat("component_at_scope_large"):
return 82;
break;
case 1623028892:
return 216;
break;
}
break;
case joaat("weapon_grenadelauncher"):
switch (iParam0)
{
case joaat("component_at_ar_afgrip"):
return 78;
break;
case joaat("component_at_ar_flsh"):
return 79;
break;
case joaat("component_at_scope_small"):
return 80;
break;
}
break;
case joaat("weapon_minigun"):
switch (iParam0)
{
case joaat("component_minigun_clip_01"):
return 81;
break;
}
break;
case joaat("weapon_assaultsmg"):
switch (iParam0)
{
case joaat("component_assaultsmg_clip_01"):
return 83;
break;
case joaat("component_assaultsmg_clip_02"):
return 84;
break;
case joaat("component_at_ar_flsh"):
return 85;
break;
case joaat("component_at_scope_macro"):
return 86;
break;
case joaat("component_at_ar_supp_02"):
return 87;
break;
case joaat("component_assaultsmg_varmod_lowrider"):
return 189;
break;
}
break;
case joaat("weapon_bullpupshotgun"):
switch (iParam0)
{
case joaat("component_at_ar_afgrip"):
return 88;
break;
case joaat("component_at_ar_flsh"):
return 89;
break;
case joaat("component_at_ar_supp_02"):
return 90;
break;
}
break;
case joaat("weapon_pistol50"):
switch (iParam0)
{
case joaat("component_pistol50_clip_01"):
return 91;
break;
case joaat("component_pistol50_clip_02"):
return 92;
break;
case joaat("component_at_pi_flsh"):
return 93;
break;
case joaat("component_at_ar_supp_02"):
return 94;
break;
case joaat("component_pistol50_varmod_luxe"):
return 176;
break;
}
break;
case 392730790:
switch (iParam0)
{
case 195735895:
return 95;
break;
case joaat("component_at_scope_large"):
return 96;
break;
case joaat("component_at_scope_max"):
return 97;
break;
case joaat("component_at_ar_supp"):
return 98;
break;
}
break;
case -947031628:
switch (iParam0)
{
case 1525977990:
return 99;
break;
case 1824470811:
return 100;
break;
case joaat("component_at_ar_afgrip"):
return 101;
break;
case joaat("component_at_ar_flsh"):
return 102;
break;
case joaat("component_at_scope_medium"):
return 103;
break;
case joaat("component_at_ar_supp"):
return 104;
break;
}
break;
case -572349828:
switch (iParam0)
{
case -890514874:
return 105;
break;
case -507117574:
return 106;
break;
case joaat("component_at_ar_afgrip"):
return 107;
break;
case joaat("component_at_scope_medium"):
return 108;
break;
}
break;
case -1887867191:
switch (iParam0)
{
case -124428919:
return 109;
break;
case 1048471894:
return 110;
break;
}
break;
case joaat("weapon_specialcarbine"):
switch (iParam0)
{
case joaat("component_specialcarbine_clip_01"):
return 111;
break;
case joaat("component_specialcarbine_clip_02"):
return 112;
break;
case joaat("component_specialcarbine_clip_03"):
return 208;
break;
case joaat("component_at_ar_afgrip"):
return 113;
break;
case joaat("component_at_ar_flsh"):
return 114;
break;
case joaat("component_at_scope_medium"):
return 115;
break;
case joaat("component_at_ar_supp_02"):
return 116;
break;
case joaat("component_specialcarbine_varmod_lowrider"):
return 190;
break;
case 1623028892:
return 390;
break;
}
break;
case joaat("weapon_snspistol"):
switch (iParam0)
{
case joaat("component_snspistol_clip_01"):
return 117;
break;
case joaat("component_snspistol_clip_02"):
return 118;
break;
case joaat("component_at_pi_flsh"):
return 119;
break;
case joaat("component_at_pi_supp"):
return 120;
break;
case joaat("component_snspistol_varmod_lowrider"):
return 191;
break;
case 1623028892:
return 391;
break;
}
break;
case joaat("weapon_heavypistol"):
switch (iParam0)
{
case joaat("component_heavypistol_clip_01"):
return 121;
break;
case joaat("component_heavypistol_clip_02"):
return 122;
break;
case joaat("component_at_pi_flsh"):
return 123;
break;
case joaat("component_at_pi_supp"):
return 124;
break;
case joaat("component_heavypistol_varmod_luxe"):
return 171;
break;
}
break;
case joaat("weapon_bullpuprifle"):
switch (iParam0)
{
case joaat("component_bullpuprifle_clip_01"):
return 131;
break;
case joaat("component_bullpuprifle_clip_02"):
return 132;
break;
case joaat("component_at_ar_flsh"):
return 127;
break;
case joaat("component_at_ar_supp"):
return 128;
break;
case joaat("component_at_scope_small"):
return 129;
break;
case joaat("component_at_ar_afgrip"):
return 130;
break;
case joaat("component_bullpuprifle_varmod_low"):
return 192;
break;
case 1623028892:
return 394;
break;
}
break;
case joaat("weapon_gusenberg"):
switch (iParam0)
{
case joaat("component_gusenberg_clip_01"):
return 125;
break;
case joaat("component_gusenberg_clip_02"):
return 126;
break;
}
break;
case joaat("weapon_vintagepistol"):
switch (iParam0)
{
case joaat("component_vintagepistol_clip_01"):
return 133;
break;
case joaat("component_vintagepistol_clip_02"):
return 134;
break;
case joaat("component_at_pi_supp"):
return 136;
break;
}
break;
case joaat("weapon_heavyshotgun"):
switch (iParam0)
{
case joaat("component_heavyshotgun_clip_01"):
return 137;
break;
case joaat("component_heavyshotgun_clip_02"):
return 140;
break;
case joaat("component_heavyshotgun_clip_03"):
return 205;
break;
case joaat("component_at_ar_flsh"):
return 145;
break;
case joaat("component_at_ar_supp_02"):
return 146;
break;
case joaat("component_at_ar_afgrip"):
return 147;
break;
}
break;
case joaat("weapon_marksmanrifle"):
switch (iParam0)
{
case joaat("component_marksmanrifle_clip_01"):
return 138;
break;
case joaat("component_marksmanrifle_clip_02"):
return 139;
break;
case joaat("component_at_scope_large_fixed_zoom"):
return 141;
break;
case joaat("component_at_ar_flsh"):
return 142;
break;
case joaat("component_at_ar_supp"):
return 143;
break;
case joaat("component_at_ar_afgrip"):
return 144;
break;
case joaat("component_marksmanrifle_varmod_luxe"):
return 172;
break;
case 1623028892:
return 392;
break;
}
break;
case joaat("weapon_combatpdw"):
switch (iParam0)
{
case joaat("component_combatpdw_clip_01"):
return 149;
break;
case joaat("component_combatpdw_clip_02"):
return 150;
break;
case joaat("component_combatpdw_clip_03"):
return 203;
break;
case joaat("component_at_ar_flsh"):
return 151;
break;
case joaat("component_at_scope_small"):
return 152;
break;
case joaat("component_at_ar_afgrip"):
return 153;
break;
}
break;
case joaat("weapon_sawnoffshotgun"):
switch (iParam0)
{
case joaat("component_sawnoffshotgun_varmod_luxe"):
return 178;
break;
}
break;
case joaat("weapon_marksmanpistol"):
switch (iParam0)
{
case joaat("component_marksmanpistol_clip_01"):
return 148;
break;
}
break;
case joaat("weapon_knuckle"):
switch (iParam0)
{
case joaat("component_knuckle_varmod_pimp"):
return 154;
break;
case joaat("component_knuckle_varmod_ballas"):
return 155;
break;
case joaat("component_knuckle_varmod_dollar"):
return 156;
break;
case joaat("component_knuckle_varmod_diamond"):
return 157;
break;
case joaat("component_knuckle_varmod_hate"):
return 158;
break;
case joaat("component_knuckle_varmod_love"):
return 159;
break;
case joaat("component_knuckle_varmod_player"):
return 160;
break;
case joaat("component_knuckle_varmod_king"):
return 161;
break;
case joaat("component_knuckle_varmod_vagos"):
return 162;
break;
}
break;
case joaat("weapon_machinepistol"):
switch (iParam0)
{
case joaat("component_machinepistol_clip_01"):
return 184;
break;
case joaat("component_machinepistol_clip_02"):
return 185;
break;
case joaat("component_machinepistol_clip_03"):
return 206;
break;
case joaat("component_at_pi_supp"):
return 183;
break;
}
break;
case joaat("weapon_switchblade"):
switch (iParam0)
{
case joaat("component_switchblade_varmod_var1"):
return 194;
break;
case joaat("component_switchblade_varmod_var2"):
return 195;
break;
}
break;
case joaat("weapon_revolver"):
switch (iParam0)
{
case joaat("component_revolver_clip_01"):
return 196;
break;
case joaat("component_revolver_varmod_boss"):
return 197;
break;
case joaat("component_revolver_varmod_goon"):
return 198;
break;
case 1623028892:
return 393;
break;
}
break;
case joaat("weapon_compactrifle"):
switch (iParam0)
{
case joaat("component_compactrifle_clip_01"):
return 199;
break;
case joaat("component_compactrifle_clip_02"):
return 200;
break;
case joaat("component_compactrifle_clip_03"):
return 204;
break;
}
break;
case -1121678507:
switch (iParam0)
{
case -2067221805:
return 209;
break;
case -1820405577:
return 210;
break;
}
break;
case -1075685676:
switch (iParam0)
{
case -1795936926:
return 217;
break;
case 1591132456:
return 218;
break;
case 1329061674:
return 219;
break;
case -2046910199:
return 220;
break;
case 733837882:
return 221;
break;
case 634039983:
return 222;
break;
case 1140676955:
return 223;
break;
case -1898661008:
return 224;
break;
case joaat("component_at_pi_supp_02"):
return 225;
break;
case 568543123:
return 226;
break;
case 1550611612:
return 367;
break;
case 368550800:
return 368;
break;
case -1769069349:
return 369;
break;
case 24902297:
return 370;
break;
case -228041614:
return 371;
break;
case -584961562:
return 372;
break;
case -1153175946:
return 373;
break;
case 1301287696:
return 374;
break;
case 1597093459:
return 375;
break;
case 1769871776:
return 376;
break;
case -1827882671:
return 377;
break;
}
break;
case 2024373456:
switch (iParam0)
{
case 1277460590:
return 227;
break;
case -1182573778:
return 228;
break;
case 190476639:
return 229;
break;
case 974903034:
return 230;
break;
case -644734235:
return 231;
break;
case 2146055916:
return 232;
break;
case joaat("component_at_ar_flsh"):
return 233;
break;
case -1613015470:
return 234;
break;
case -452809877:
return 235;
break;
case 1038927834:
return 236;
break;
case joaat("component_at_pi_supp"):
return 237;
break;
case -1181482284:
return 238;
break;
case -932732805:
return 239;
break;
case -569259057:
return 240;
break;
case -326080308:
return 241;
break;
case 48731514:
return 242;
break;
case 880736428:
return 243;
break;
case 1303784126:
return 244;
break;
case -653246751:
return 245;
break;
case -1520117877:
return 246;
break;
case -996700057:
return 378;
break;
case 940943685:
return 379;
break;
case 1263226800:
return 380;
break;
case -328035840:
return 381;
break;
case 1224100642:
return 382;
break;
case 899228776:
return 383;
break;
case 616006309:
return 384;
break;
case -1561952511:
return 385;
break;
case 572063080:
return 386;
break;
case 1170588613:
return 387;
break;
case 966612367:
return 388;
break;
}
break;
case 177293209:
switch (iParam0)
{
case -98690520:
return 247;
break;
case 752418717:
return 248;
break;
case -130689324:
return 249;
break;
case -1981031769:
return 250;
break;
case 1005144310:
return 251;
break;
case 247526935:
return 252;
break;
case -2101279869:
return 253;
break;
case joaat("component_at_scope_max"):
return 254;
break;
case -1233121104:
return 255;
break;
case 776198721:
return 256;
break;
case -1404903567:
return 257;
break;
case 1602080333:
return 258;
break;
case 1764221345:
return 259;
break;
case -1869205321:
return 260;
break;
case 277524638:
return 261;
break;
case -130843390:
return 356;
break;
case -977347227:
return 357;
break;
case -378461067:
return 358;
break;
case 329939175:
return 359;
break;
case 643374672:
return 360;
break;
case 807875052:
return 361;
break;
case -1401804168:
return 362;
break;
case -1096495395:
return 363;
break;
case -847811454:
return 364;
break;
case -1413108537:
return 365;
break;
case 1815270123:
return 366;
break;
}
break;
case -608341376:
switch (iParam0)
{
case 1227564412:
return 262;
break;
case 400507625:
return 263;
break;
case 696788003:
return 264;
break;
case 1475288264:
return 265;
break;
case -1020871238:
return 266;
break;
case -161179835:
return 267;
break;
case -1654288262:
return 268;
break;
case 1108334355:
return 269;
break;
case 1060929921:
return 270;
break;
case -966040254:
return 271;
break;
case -1181482284:
return 272;
break;
case -932732805:
return 273;
break;
case -569259057:
return 274;
break;
case -326080308:
return 275;
break;
case 48731514:
return 276;
break;
case 880736428:
return 277;
break;
case 1303784126:
return 278;
break;
case -1018236364:
return 279;
break;
case -1243457701:
return 280;
break;
case 1249283253:
return 345;
break;
case -857707587:
return 346;
break;
case -1097543898:
return 347;
break;
case 1980349969:
return 348;
break;
case 1219453777:
return 349;
break;
case -1853459190:
return 350;
break;
case -2074781016:
return 351;
break;
case 457967755:
return 352;
break;
case 235171324:
return 353;
break;
case 42685294:
return 354;
break;
case -687617715:
return 355;
break;
}
break;
case 961495388:
switch (iParam0)
{
case -2045758401:
return 281;
break;
case -785724817:
return 282;
break;
case -1478681000:
return 283;
break;
case 1675665560:
return 284;
break;
case -76490669:
return 285;
break;
case -282298175:
return 286;
break;
case -1654288262:
return 287;
break;
case joaat("component_at_ar_flsh"):
return 288;
break;
case 1108334355:
return 289;
break;
case 77277509:
return 290;
break;
case -966040254:
return 291;
break;
case joaat("component_at_ar_supp_02"):
return 292;
break;
case -1181482284:
return 293;
break;
case -932732805:
return 294;
break;
case -569259057:
return 295;
break;
case -326080308:
return 296;
break;
case 48731514:
return 297;
break;
case 880736428:
return 298;
break;
case 1303784126:
return 299;
break;
case 1134861606:
return 300;
break;
case 1447477866:
return 301;
break;
case -1860492113:
return 323;
break;
case 937772107:
return 324;
break;
case 1401650071:
return 325;
break;
case 628662130:
return 326;
break;
case -985047251:
return 327;
break;
case -812944463:
return 328;
break;
case -1447352303:
return 329;
break;
case -60338860:
return 330;
break;
case 2088750491:
return 331;
break;
case -1513913454:
return 332;
break;
case -1179558480:
return 333;
break;
}
break;
case -86904375:
switch (iParam0)
{
case 1283078430:
return 302;
break;
case 1574296533:
return 303;
break;
case 626875735:
return 304;
break;
case 1141059345:
return 305;
break;
case 1025884839:
return 306;
break;
case 391640422:
return 307;
break;
case -1654288262:
return 308;
break;
case joaat("component_at_ar_flsh"):
return 309;
break;
case 1108334355:
return 310;
break;
case 77277509:
return 311;
break;
case -966040254:
return 312;
break;
case joaat("component_at_ar_supp"):
return 313;
break;
case -1181482284:
return 314;
break;
case -932732805:
return 315;
break;
case -569259057:
return 316;
break;
case -326080308:
return 317;
break;
case 48731514:
return 318;
break;
case 880736428:
return 319;
break;
case 1303784126:
return 320;
break;
case -2093598721:
return 321;
break;
case -1958983669:
return 322;
break;
case 1272803094:
return 334;
break;
case 1080719624:
return 335;
break;
case 792221348:
return 336;
break;
case -452181427:
return 337;
break;
case -746774737:
return 338;
break;
case -2044296061:
return 339;
break;
case -199171978:
return 340;
break;
case -1428075016:
return 341;
break;
case -1735153315:
return 342;
break;
case 1796459838:
return 343;
break;
case -631911105:
return 344;
break;
}
break;
case 1432025498:
switch (iParam0)
{
case -845938367:
return 395;
break;
case 1315288101:
return 396;
break;
case 1004815965:
return 397;
break;
case -380098265:
return 398;
break;
case -1618338827:
return 399;
break;
case joaat("component_at_ar_flsh"):
return 400;
break;
case 1108334355:
return 401;
break;
case 77277509:
return 402;
break;
case 1060929921:
return 403;
break;
case -1404903567:
return 404;
break;
case 1602080333:
return 405;
break;
case -474112444:
return 488;
break;
case 387223451:
return 489;
break;
case 617753366:
return 490;
break;
case -222378256:
return 491;
break;
case 8741501:
return 492;
break;
case -601286203:
return 493;
break;
case -511433605:
return 494;
break;
case -655387818:
return 495;
break;
case -282476598:
return 496;
break;
case 1739501925:
return 497;
break;
case 1178671645:
return 498;
break;
}
break;
case -1768145561:
switch (iParam0)
{
case 382112385:
return 406;
break;
case -568352468:
return 407;
break;
case 1362433589:
return 408;
break;
case 1346235024:
return 409;
break;
case -570355066:
return 410;
break;
case -2023373174:
return 411;
break;
case joaat("component_at_ar_flsh"):
return 412;
break;
case 1108334355:
return 413;
break;
case 77277509:
return 414;
break;
case -966040254:
return 415;
break;
case joaat("component_at_ar_supp_02"):
return 416;
break;
case -1181482284:
return 417;
break;
case -932732805:
return 418;
break;
case -569259057:
return 419;
break;
case -326080308:
return 420;
break;
case 48731514:
return 421;
break;
case 880736428:
return 422;
break;
case 1303784126:
return 423;
break;
case -1654288262:
return 424;
break;
case -415870039:
return 425;
break;
case -109086661:
return 426;
break;
case -737430213:
return 532;
break;
case 1125852043:
return 533;
break;
case 886015732:
return 534;
break;
case -1262287139:
return 535;
break;
case -295208411:
return 536;
break;
case -544154504:
return 537;
break;
case 172765678:
return 538;
break;
case -1982877449:
return 539;
break;
case 2072122460:
return 540;
break;
case -1986220171:
return 541;
break;
case 1377355801:
return 542;
break;
}
break;
case -2009644972:
switch (iParam0)
{
case 21392614:
return 427;
break;
case -829683854:
return 428;
break;
case -1055790298:
return 429;
break;
case -1928301566:
return 430;
break;
case -424845447:
return 431;
break;
case -1876057490:
return 432;
break;
case 1246324211:
return 433;
break;
case 1205768792:
return 434;
break;
case joaat("component_at_pi_supp_02"):
return 435;
break;
case -1434287169:
return 436;
break;
case 259780317:
return 510;
break;
case -1973342474:
return 511;
break;
case 1996130345:
return 512;
break;
case -1455657812:
return 513;
break;
case -1668263084:
return 514;
break;
case 1308243489:
return 515;
break;
case 1122574335:
return 516;
break;
case 1420313469:
return 517;
break;
case 109848390:
return 518;
break;
case 593945703:
return 519;
break;
case 1142457062:
return 520;
break;
}
break;
case 1785463520:
switch (iParam0)
{
case -1797182002:
return 437;
break;
case -422587990:
return 438;
break;
case -193998727:
return 439;
break;
case -515203373:
return 440;
break;
case 1842849902:
return 441;
break;
case -679861550:
return 442;
break;
case joaat("component_at_ar_flsh"):
return 443;
break;
case 1108334355:
return 444;
break;
case -966040254:
return 445;
break;
case 1528590652:
return 446;
break;
case joaat("component_at_ar_supp"):
return 447;
break;
case -1181482284:
return 448;
break;
case -932732805:
return 449;
break;
case -569259057:
return 450;
break;
case -326080308:
return 451;
break;
case 48731514:
return 452;
break;
case 880736428:
return 453;
break;
case 1303784126:
return 454;
break;
case -1654288262:
return 455;
break;
case 941317513:
return 456;
break;
case 1748450780:
return 457;
break;
case -1869284448:
return 521;
break;
case 1931539634:
return 522;
break;
case 1624199183:
return 523;
break;
case -26834113:
return 524;
break;
case -210406055:
return 525;
break;
case 423313640:
return 526;
break;
case 276639596:
return 527;
break;
case -991356863:
return 528;
break;
case -1682848301:
return 529;
break;
case 996213771:
return 530;
break;
case -1214048550:
return 531;
break;
}
break;
case -879347409:
switch (iParam0)
{
case -1172055874:
return 458;
break;
case 231258687:
return 459;
break;
case 284438159:
return 460;
break;
case 15712037:
return 461;
break;
case -958864266:
return 462;
break;
case 1108334355:
return 463;
break;
case 77277509:
return 464;
break;
case joaat("component_at_pi_flsh"):
return 465;
break;
case 654802123:
return 466;
break;
case -1069552225:
return 499;
break;
case 11918884:
return 500;
break;
case 176157112:
return 501;
break;
case -220052855:
return 502;
break;
case 288456487:
return 503;
break;
case 398658626:
return 504;
break;
case 628697006:
return 505;
break;
case 925911836:
return 506;
break;
case 1222307441:
return 507;
break;
case 552442715:
return 508;
break;
case -648943513:
return 509;
break;
}
break;
case -2066285827:
switch (iParam0)
{
case 25766362:
return 467;
break;
case -273676760:
return 468;
break;
case -89655827:
return 469;
break;
case 1130501904:
return 470;
break;
case -1449330342:
return 471;
break;
case -2111807319:
return 472;
break;
case joaat("component_at_ar_flsh"):
return 473;
break;
case 1108334355:
return 474;
break;
case -944910075:
return 475;
break;
case 1060929921:
return 476;
break;
case 1704640795:
return 477;
break;
case 1005743559:
return 478;
break;
case joaat("component_at_ar_supp"):
return 479;
break;
case -1181482284:
return 480;
break;
case -932732805:
return 481;
break;
case -569259057:
return 482;
break;
case -326080308:
return 483;
break;
case 48731514:
return 484;
break;
case 880736428:
return 485;
break;
case 1303784126:
return 486;
break;
case -1654288262:
return 487;
break;
case -1371515465:
return 543;
break;
case -1190793877:
return 544;
break;
case -1497085720:
return 545;
break;
case -1803148180:
return 546;
break;
case -1975971886:
return 547;
break;
case 36929477:
return 548;
break;
case -268444834:
return 549;
break;
case -574769446:
return 550;
break;
case -882699739:
return 551;
break;
case -1468181474:
return 552;
break;
case -974541230:
return 553;
break;
}
break;
case -1355376991:
switch (iParam0)
{
case -673450233:
return 554;
break;
}
break;
}
return 0;
}
var func_760(int iParam0, int iParam1, int iParam2)
{
var uVar0;
int iVar1;
int iVar2;
iVar1 = func_758(iParam2, iParam1);
iVar2 = func_756(iVar1);
switch (iVar2)
{
case 0:
switch (iParam0)
{
case 0:
unk_0x2AD48F3CEBA882E9(joaat("sp0_weap_addon_unlock_0"), &uVar0, -1);
break;
case 1:
unk_0x2AD48F3CEBA882E9(joaat("sp1_weap_addon_unlock_0"), &uVar0, -1);
break;
case 2:
unk_0x2AD48F3CEBA882E9(joaat("sp2_weap_addon_unlock_0"), &uVar0, -1);
break;
}
break;
case 1:
switch (iParam0)
{
case 0:
unk_0x2AD48F3CEBA882E9(joaat("sp0_weap_addon_unlock_1"), &uVar0, -1);
break;
case 1:
unk_0x2AD48F3CEBA882E9(joaat("sp1_weap_addon_unlock_1"), &uVar0, -1);
break;
case 2:
unk_0x2AD48F3CEBA882E9(joaat("sp2_weap_addon_unlock_1"), &uVar0, -1);
break;
}
break;
case 2:
switch (iParam0)
{
case 0:
unk_0x2AD48F3CEBA882E9(joaat("sp0_weap_addon_unlock_2"), &uVar0, -1);
break;
case 1:
unk_0x2AD48F3CEBA882E9(joaat("sp1_weap_addon_unlock_2"), &uVar0, -1);
break;
case 2:
unk_0x2AD48F3CEBA882E9(joaat("sp2_weap_addon_unlock_2"), &uVar0, -1);
break;
}
break;
case 3:
switch (iParam0)
{
case 0:
unk_0x2AD48F3CEBA882E9(joaat("sp0_weap_addon_unlock_3"), &uVar0, -1);
break;
case 1:
unk_0x2AD48F3CEBA882E9(joaat("sp1_weap_addon_unlock_3"), &uVar0, -1);
break;
case 2:
unk_0x2AD48F3CEBA882E9(joaat("sp2_weap_addon_unlock_3"), &uVar0, -1);
break;
}
break;
case 4:
switch (iParam0)
{
case 0:
unk_0x2AD48F3CEBA882E9(joaat("sp0_weap_addon_unlock_4"), &uVar0, -1);
break;
case 1:
unk_0x2AD48F3CEBA882E9(joaat("sp1_weap_addon_unlock_4"), &uVar0, -1);
break;
case 2:
unk_0x2AD48F3CEBA882E9(joaat("sp2_weap_addon_unlock_4"), &uVar0, -1);
break;
}
break;
case 5:
switch (iParam0)
{
case 0:
unk_0x2AD48F3CEBA882E9(joaat("sp0_weap_addon_unlock_5"), &uVar0, -1);
break;
case 1:
unk_0x2AD48F3CEBA882E9(joaat("sp1_weap_addon_unlock_5"), &uVar0, -1);
break;
case 2:
unk_0x2AD48F3CEBA882E9(joaat("sp2_weap_addon_unlock_5"), &uVar0, -1);
break;
}
break;
case 6:
switch (iParam0)
{
case 0:
unk_0x2AD48F3CEBA882E9(joaat("sp0_weap_addon_unlock_6"), &uVar0, -1);
break;
case 1:
unk_0x2AD48F3CEBA882E9(joaat("sp1_weap_addon_unlock_6"), &uVar0, -1);
break;
case 2:
unk_0x2AD48F3CEBA882E9(joaat("sp2_weap_addon_unlock_6"), &uVar0, -1);
break;
}
break;
default:
break;
}
return uVar0;
}
void func_761(int iParam0, int iParam1, int iParam2)
{
int iVar0;
int iVar1;
iVar0 = func_762(iParam1);
iVar1 = func_446(iVar0);
switch (iVar1)
{
case 0:
switch (iParam0)
{
case 0:
unk_0x93180BE33E7149EF(joaat("sp0_weap_unlock_0"), iParam2, 1);
break;
case 1:
unk_0x93180BE33E7149EF(joaat("sp1_weap_unlock_0"), iParam2, 1);
break;
case 2:
unk_0x93180BE33E7149EF(joaat("sp2_weap_unlock_0"), iParam2, 1);
break;
}
break;
case 1:
switch (iParam0)
{
case 0:
unk_0x93180BE33E7149EF(joaat("sp0_weap_unlock_1"), iParam2, 1);
break;
case 1:
unk_0x93180BE33E7149EF(joaat("sp1_weap_unlock_1"), iParam2, 1);
break;
case 2:
unk_0x93180BE33E7149EF(joaat("sp2_weap_unlock_1"), iParam2, 1);
break;
}
break;
case 2:
switch (iParam0)
{
case 0:
unk_0x93180BE33E7149EF(joaat("sp0_weap_unlock_2"), iParam2, 1);
break;
case 1:
unk_0x93180BE33E7149EF(joaat("sp1_weap_unlock_2"), iParam2, 1);
break;
case 2:
unk_0x93180BE33E7149EF(joaat("sp2_weap_unlock_2"), iParam2, 1);
break;
}
break;
default:
break;
}
}
int func_762(int iParam0)
{
return func_763(iParam0);
}
int func_763(int iParam0)
{
switch (iParam0)
{
case joaat("weapon_unarmed"):
return 0;
break;
case joaat("weapon_pistol"):
return 1;
break;
case joaat("weapon_combatpistol"):
return 2;
break;
case joaat("weapon_appistol"):
return 3;
break;
case joaat("weapon_pistol50"):
return 4;
break;
case joaat("weapon_smg"):
return 5;
break;
case joaat("weapon_assaultsmg"):
return 6;
break;
case joaat("weapon_microsmg"):
return 7;
break;
case joaat("weapon_assaultrifle"):
return 8;
break;
case joaat("weapon_carbinerifle"):
return 9;
break;
case -947031628:
return 10;
break;
case joaat("weapon_advancedrifle"):
return 11;
break;
case joaat("weapon_mg"):
return 12;
break;
case joaat("weapon_combatmg"):
return 13;
break;
case -572349828:
return 14;
break;
case joaat("weapon_stickybomb"):
return 15;
break;
case joaat("weapon_grenade"):
return 16;
break;
case joaat("weapon_smokegrenade"):
return 17;
break;
case joaat("weapon_remotesniper"):
return 18;
break;
case 392730790:
return 19;
break;
case joaat("weapon_sniperrifle"):
return 20;
break;
case joaat("weapon_heavysniper"):
return 21;
break;
case joaat("weapon_pumpshotgun"):
return 22;
break;
case joaat("weapon_bullpupshotgun"):
return 23;
break;
case joaat("weapon_assaultshotgun"):
return 24;
break;
case joaat("weapon_sawnoffshotgun"):
return 25;
break;
case joaat("weapon_grenadelauncher"):
return 26;
break;
case joaat("weapon_rpg"):
return 27;
break;
case joaat("weapon_minigun"):
return 28;
break;
case -344484024:
return 29;
break;
case -1887867191:
return 30;
break;
case joaat("weapon_stungun"):
return 31;
break;
case -837150131:
return 32;
break;
case joaat("gadget_parachute"):
return 33;
break;
case joaat("weapon_knife"):
return 34;
break;
case joaat("weapon_nightstick"):
return 35;
break;
case joaat("weapon_hammer"):
return 36;
break;
case joaat("weapon_bat"):
return 37;
break;
case joaat("weapon_crowbar"):
return 38;
break;
case joaat("weapon_golfclub"):
return 39;
break;
case joaat("weapon_grenadelauncher_smoke"):
return 40;
break;
case joaat("weapon_molotov"):
return 41;
break;
case joaat("weapon_fireextinguisher"):
return 42;
break;
case joaat("weapon_petrolcan"):
return 43;
break;
case joaat("weapon_digiscanner"):
return 44;
break;
case joaat("weapon_bottle"):
return 45;
break;
case joaat("weapon_specialcarbine"):
return 46;
break;
case joaat("weapon_snspistol"):
return 47;
break;
case joaat("weapon_heavypistol"):
return 49;
break;
case joaat("weapon_bullpuprifle"):
return 48;
break;
case joaat("weapon_gusenberg"):
return 50;
break;
case joaat("weapon_dagger"):
return 51;
break;
case joaat("weapon_vintagepistol"):
return 52;
break;
case joaat("weapon_flaregun"):
return 57;
break;
case joaat("weapon_musket"):
return 53;
break;
case joaat("weapon_firework"):
return 54;
break;
case joaat("weapon_marksmanrifle"):
return 56;
break;
case joaat("weapon_heavyshotgun"):
return 55;
break;
case joaat("weapon_proxmine"):
return 60;
break;
case joaat("weapon_hominglauncher"):
return 61;
break;
case joaat("weapon_hatchet"):
return 58;
break;
case joaat("weapon_railgun"):
return 59;
break;
case joaat("weapon_combatpdw"):
return 64;
break;
case joaat("weapon_knuckle"):
return 62;
break;
case joaat("weapon_marksmanpistol"):
return 63;
break;
case joaat("weapon_machete"):
return 65;
break;
case joaat("weapon_machinepistol"):
return 68;
break;
case joaat("weapon_dbshotgun"):
return 66;
break;
case joaat("weapon_compactrifle"):
return 67;
break;
case joaat("weapon_flashlight"):
return 69;
break;
case joaat("weapon_revolver"):
return 70;
break;
case joaat("weapon_switchblade"):
return 71;
break;
case 317205821:
return 72;
break;
case -1121678507:
return 73;
break;
case 125959754:
return 74;
break;
case -853065399:
return 75;
break;
case -1169823560:
return 76;
break;
case -1810795771:
return 77;
break;
case 419712736:
return 78;
break;
case 961495388:
return 8;
break;
case -86904375:
return 9;
break;
case -608341376:
return 13;
break;
case 177293209:
return 21;
break;
case -1075685676:
return 1;
break;
case 2024373456:
return 5;
break;
case 1432025498:
return 22;
break;
case -1768145561:
return 46;
break;
case -2009644972:
return 47;
break;
case 1785463520:
return 56;
break;
case -879347409:
return 70;
break;
case -2066285827:
return 48;
break;
case -1746263880:
return 79;
break;
case 940833800:
return 80;
break;
case -1355376991:
return 81;
break;
case 1198256469:
return 82;
break;
case -1238556825:
return 83;
break;
}
return 0;
}
var func_764(int iParam0, int iParam1)
{
var uVar0;
int iVar1;
int iVar2;
iVar1 = func_762(iParam1);
iVar2 = func_446(iVar1);
switch (iVar2)
{
case 0:
switch (iParam0)
{
case 0:
unk_0x2AD48F3CEBA882E9(joaat("sp0_weap_unlock_0"), &uVar0, -1);
break;
case 1:
unk_0x2AD48F3CEBA882E9(joaat("sp1_weap_unlock_0"), &uVar0, -1);
break;
case 2:
unk_0x2AD48F3CEBA882E9(joaat("sp2_weap_unlock_0"), &uVar0, -1);
break;
}
break;
case 1:
switch (iParam0)
{
case 0:
unk_0x2AD48F3CEBA882E9(joaat("sp0_weap_unlock_1"), &uVar0, -1);
break;
case 1:
unk_0x2AD48F3CEBA882E9(joaat("sp1_weap_unlock_1"), &uVar0, -1);
break;
case 2:
unk_0x2AD48F3CEBA882E9(joaat("sp2_weap_unlock_1"), &uVar0, -1);
break;
}
break;
case 2:
switch (iParam0)
{
case 0:
unk_0x2AD48F3CEBA882E9(joaat("sp0_weap_unlock_2"), &uVar0, -1);
break;
case 1:
unk_0x2AD48F3CEBA882E9(joaat("sp1_weap_unlock_2"), &uVar0, -1);
break;
case 2:
unk_0x2AD48F3CEBA882E9(joaat("sp2_weap_unlock_2"), &uVar0, -1);
break;
}
break;
default:
break;
}
return uVar0;
}
void func_765(bool bParam0)
{
unk_0xFC00A668AFC2126D(joaat("faggio2"), bParam0);
unk_0xFC00A668AFC2126D(joaat("hexer"), bParam0);
unk_0xFC00A668AFC2126D(joaat("policeb"), bParam0);
unk_0xFC00A668AFC2126D(joaat("sanchez"), bParam0);
unk_0xFC00A668AFC2126D(joaat("vader"), bParam0);
}
void func_766(int iParam0)
{
if (iParam0 == 0)
{
func_702(7, 0, 0);
}
else
{
func_702(7, 0, 1);
}
}
void func_767(char* sParam0, int iParam1)
{
if (unk_0x8B1574454E8C2421(unk_0xFEB6EEC0545AF7AA(sParam0)) > 0)
{
return;
}
unk_0xD75A4240F0AD8613(sParam0);
while (!unk_0xB1FDFCECA75CE4A7(sParam0))
{
wait(0);
}
start_new_script(sParam0, iParam1);
unk_0x4659F4154D948B01(sParam0);
}
void func_768(int iParam0, int iParam1)
{
if (iParam1 == 1)
{
unk_0xA3990C1A918DC68A(func_49(iParam0));
Global_106070.f_2355.f_539.f_2363[iParam0] = 1;
}
else
{
unk_0x717B84DE5E60E767(func_49(iParam0));
Global_106070.f_2355.f_539.f_2363[iParam0] = 0;
}
}
void func_769(int iParam0, bool bParam1, bool bParam2)
{
func_771(iParam0, bParam1);
func_770(iParam0, bParam2);
}
void func_770(int iParam0, bool bParam1)
{
if (iParam0 == 10)
{
return;
}
if (bParam1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_7201[iParam0]), 1);
}
else
{
unk_0xFA57C719261AA55D(&(Global_106070.f_7201[iParam0]), 1);
}
if (Global_88365[iParam0 /*10*/].f_7 != 263)
{
func_377(Global_88365[iParam0 /*10*/].f_7, unk_0x05EFB6A616B6FADE(Global_106070.f_7201[iParam0], 1), 0);
}
}
void func_771(int iParam0, bool bParam1)
{
if (iParam0 == 10)
{
return;
}
if (bParam1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_7201[iParam0]), 0);
}
else
{
unk_0xFA57C719261AA55D(&(Global_106070.f_7201[iParam0]), 0);
}
unk_0xA6869C8E0E2C3CEE(Global_88365[iParam0 /*10*/].f_8, bParam1, 1);
func_774(iParam0);
func_773(iParam0, 0);
func_772(iParam0);
func_636(iParam0);
}
void func_772(int iParam0)
{
if (iParam0 == 10)
{
return;
}
switch (iParam0)
{
case 0:
case 1:
if (func_648(1))
{
unk_0xA6869C8E0E2C3CEE(Global_88365[1 /*10*/].f_8, true, 1);
unk_0xA6869C8E0E2C3CEE(Global_88365[0 /*10*/].f_8, func_648(0), 0);
}
else if (func_648(0))
{
unk_0xA6869C8E0E2C3CEE(Global_88365[0 /*10*/].f_8, true, 1);
unk_0xA6869C8E0E2C3CEE(Global_88365[1 /*10*/].f_8, func_648(1), 0);
}
break;
case 2:
case 3:
case 4:
if (func_648(3))
{
unk_0xA6869C8E0E2C3CEE(Global_88365[3 /*10*/].f_8, true, 1);
unk_0xA6869C8E0E2C3CEE(Global_88365[4 /*10*/].f_8, func_648(4), 0);
unk_0xA6869C8E0E2C3CEE(Global_88365[2 /*10*/].f_8, func_648(2), 0);
}
else if (func_648(4))
{
unk_0xA6869C8E0E2C3CEE(Global_88365[4 /*10*/].f_8, true, 1);
unk_0xA6869C8E0E2C3CEE(Global_88365[3 /*10*/].f_8, func_648(3), 0);
unk_0xA6869C8E0E2C3CEE(Global_88365[2 /*10*/].f_8, func_648(2), 0);
}
else if (func_648(2))
{
unk_0xA6869C8E0E2C3CEE(Global_88365[2 /*10*/].f_8, true, 1);
unk_0xA6869C8E0E2C3CEE(Global_88365[3 /*10*/].f_8, func_648(3), 0);
unk_0xA6869C8E0E2C3CEE(Global_88365[4 /*10*/].f_8, func_648(4), 0);
}
break;
case 5:
case 6:
if (func_648(6))
{
unk_0xA6869C8E0E2C3CEE(Global_88365[6 /*10*/].f_8, true, 1);
unk_0xA6869C8E0E2C3CEE(Global_88365[5 /*10*/].f_8, func_648(5), 0);
}
else if (func_648(5))
{
unk_0xA6869C8E0E2C3CEE(Global_88365[5 /*10*/].f_8, true, 1);
unk_0xA6869C8E0E2C3CEE(Global_88365[6 /*10*/].f_8, func_648(6), 0);
}
break;
}
}
void func_773(int iParam0, bool bParam1)
{
int iVar0;
int iVar1;
int iVar2;
struct<4> Var3;
bool bVar4;
if (iParam0 == 10)
{
return;
}
bVar4 = unk_0x05EFB6A616B6FADE(Global_106070.f_7201[iParam0], 0);
if (iParam0 == 5 && unk_0x05EFB6A616B6FADE(Global_106070.f_7201[6], 0))
{
bVar4 = true;
}
iVar0 = 0;
while (iVar0 < 3)
{
iVar1 = 0;
StringCopy(&Var3, "", 32);
iVar2 = 10;
while (func_228(iVar0, iVar1, &Var3, &iVar2))
{
if (iVar2 == iParam0)
{
if (bVar4)
{
if (bParam1)
{
unk_0x9C57EF90F9C9B74E(unk_0xFEB6EEC0545AF7AA(&Var3), 0);
}
}
unk_0x1E896F2B793FBFA0(unk_0xFEB6EEC0545AF7AA(&Var3), bVar4);
}
iVar1++;
}
iVar0++;
}
}
void func_774(int iParam0)
{
bool bVar0;
if (iParam0 == 10)
{
return;
}
if (Global_88365[iParam0 /*10*/].f_7 == 263)
{
return;
}
bVar0 = false;
if (unk_0x05EFB6A616B6FADE(Global_106070.f_7201[iParam0], 0))
{
if (Global_88365[iParam0 /*10*/].f_9 != func_333())
{
bVar0 = true;
}
else if (!func_775(iParam0))
{
bVar0 = true;
}
}
if (iParam0 == 5)
{
if (func_648(6))
{
bVar0 = false;
}
}
if (func_41(14))
{
bVar0 = false;
}
func_587(Global_88365[iParam0 /*10*/].f_7, bVar0, 0);
}
int func_775(int iParam0)
{
int iVar0;
char* sVar1;
int iVar2;
if (Global_93284.f_325 == 0)
{
return 0;
}
if (iParam0 == 10)
{
iVar0 = 0;
while (iVar0 < 10)
{
if (func_775(iVar0))
{
return 1;
}
iVar0++;
}
}
else if (!unk_0x4915F4759304D5CF(unk_0xA19140A5C42D8715()))
{
func_776(iParam0, &sVar1);
iVar2 = unk_0xB68EB57358F46F86(Global_88365[iParam0 /*10*/].f_3, &sVar1);
if (iVar2 != 0 && Global_93284.f_325 == iVar2)
{
return 1;
}
}
return 0;
}
bool func_776(int iParam0, char* sParam1)
{
StringCopy(sParam1, "", 32);
switch (iParam0)
{
case 0:
StringCopy(sParam1, "v_michael", 32);
break;
case 5:
StringCopy(sParam1, "v_franklins", 32);
break;
case 6:
StringCopy(sParam1, "v_franklinshouse", 32);
break;
case 2:
case 1:
if (unk_0x471855870C045BD0("TrevorsTrailer"))
{
StringCopy(sParam1, "v_trailer", 32);
}
else if (unk_0x471855870C045BD0("TrevorsTrailerTidy"))
{
StringCopy(sParam1, "V_TrailerTIDY", 32);
}
else if (unk_0x471855870C045BD0("TrevorsTrailerTrash"))
{
StringCopy(sParam1, "V_TrailerTRASH", 32);
}
break;
case 3:
StringCopy(sParam1, "v_trevors", 32);
break;
case 4:
StringCopy(sParam1, "v_strip3", 32);
break;
case 8:
case 7:
case 9:
StringCopy(sParam1, "v_psycheoffice", 32);
break;
}
return !unk_0x3CAC2741CC1A631F(sParam1, "");
}
void func_777()
{
Global_71474 = 1;
func_845();
func_844();
Global_36666 = 1;
Global_36664 = -1;
func_839();
func_838();
func_837();
func_830();
func_829();
func_822();
func_819();
func_818();
func_801();
func_799();
func_798();
func_797(0);
func_796();
func_795();
func_793();
func_782();
func_781();
func_779();
func_778();
Global_71474 = 0;
}
void func_778()
{
int iVar0;
if (Global_3)
{
return;
}
if (unk_0xDC5D81351D6A4DDB(unk_0xA19140A5C42D8715()))
{
if (!unk_0x7112137033807390(unk_0xA19140A5C42D8715(), 0))
{
if (unk_0x5D7DFE2058701942(unk_0xA19140A5C42D8715(), 1))
{
iVar0 = unk_0xCAEB6CE71A2C7212(unk_0xA19140A5C42D8715(), 1);
unk_0x836A6A722DEA63F1(unk_0xA19140A5C42D8715());
if (unk_0x1095F403F52B42E1(iVar0, 0))
{
unk_0x1F7948851FB36E88(iVar0, true, 1);
unk_0x792676988A48387F(&iVar0);
}
}
}
}
}
void func_779()
{
int iVar0;
iVar0 = 0;
iVar0 = 0;
while (iVar0 < 3)
{
if (Global_37279[iVar0] != -1)
{
Global_37279[iVar0] = -1;
}
iVar0++;
}
Global_37276 = 0;
Global_37277 = 0;
Global_37278 = 0;
iVar0 = 0;
while (iVar0 < 122)
{
Global_40609[iVar0 /*46*/].f_31 = 0;
Global_40609[iVar0 /*46*/].f_42 = 0;
Global_40609[iVar0 /*46*/] = 0;
iVar0++;
}
iVar0 = 0;
while (iVar0 < 277)
{
Global_37284[iVar0 /*12*/].f_10 = 0;
iVar0++;
}
iVar0 = 0;
while (iVar0 < 3)
{
Global_46222[iVar0 /*120*/] = 0;
iVar0++;
}
func_780();
}
void func_780()
{
Global_37284[0 /*12*/] = 15;
Global_37284[0 /*12*/].f_1 = 16;
Global_37284[0 /*12*/].f_2 = 4;
Global_37284[0 /*12*/].f_3 = 0;
Global_37284[0 /*12*/].f_10 = 1;
Global_37284[0 /*12*/].f_11 = 0;
Global_37284[0 /*12*/].f_4 = 0;
Global_37284[1 /*12*/] = 17;
Global_37284[1 /*12*/].f_1 = 16;
Global_37284[1 /*12*/].f_2 = 4;
Global_37284[1 /*12*/].f_3 = 0;
Global_37284[1 /*12*/].f_10 = 1;
Global_37284[1 /*12*/].f_11 = 0;
Global_37284[1 /*12*/].f_4 = 0;
Global_37284[2 /*12*/] = 18;
Global_37284[2 /*12*/].f_1 = 16;
Global_37284[2 /*12*/].f_2 = 4;
Global_37284[2 /*12*/].f_3 = 0;
Global_37284[2 /*12*/].f_10 = 1;
Global_37284[2 /*12*/].f_11 = 0;
Global_37284[2 /*12*/].f_4 = 0;
Global_37284[3 /*12*/] = 19;
Global_37284[3 /*12*/].f_1 = 16;
Global_37284[3 /*12*/].f_2 = 4;
Global_37284[3 /*12*/].f_3 = 0;
Global_37284[3 /*12*/].f_10 = 1;
Global_37284[3 /*12*/].f_11 = 0;
Global_37284[3 /*12*/].f_4 = 0;
Global_37284[4 /*12*/] = 20;
Global_37284[4 /*12*/].f_1 = 16;
Global_37284[4 /*12*/].f_2 = 4;
Global_37284[4 /*12*/].f_3 = 0;
Global_37284[4 /*12*/].f_10 = 1;
Global_37284[4 /*12*/].f_11 = 0;
Global_37284[4 /*12*/].f_4 = 0;
Global_37284[5 /*12*/] = 21;
Global_37284[5 /*12*/].f_1 = 16;
Global_37284[5 /*12*/].f_2 = 4;
Global_37284[5 /*12*/].f_3 = 0;
Global_37284[5 /*12*/].f_10 = 1;
Global_37284[5 /*12*/].f_11 = 0;
Global_37284[5 /*12*/].f_4 = 0;
Global_37284[6 /*12*/] = 22;
Global_37284[6 /*12*/].f_1 = 16;
Global_37284[6 /*12*/].f_2 = 4;
Global_37284[6 /*12*/].f_3 = 0;
Global_37284[6 /*12*/].f_10 = 0;
Global_37284[6 /*12*/].f_11 = 0;
Global_37284[6 /*12*/].f_4 = 0;
Global_37284[7 /*12*/] = 23;
Global_37284[7 /*12*/].f_1 = 24;
Global_37284[7 /*12*/].f_2 = 4;
Global_37284[7 /*12*/].f_3 = 0;
Global_37284[7 /*12*/].f_10 = 0;
Global_37284[7 /*12*/].f_11 = 0;
Global_37284[7 /*12*/].f_4 = 0;
Global_37284[8 /*12*/] = 25;
Global_37284[8 /*12*/].f_1 = 26;
Global_37284[8 /*12*/].f_2 = 4;
Global_37284[8 /*12*/].f_3 = 0;
Global_37284[8 /*12*/].f_10 = 0;
Global_37284[8 /*12*/].f_11 = 0;
Global_37284[8 /*12*/].f_4 = 0;
Global_37284[9 /*12*/] = 27;
Global_37284[9 /*12*/].f_1 = 28;
Global_37284[9 /*12*/].f_2 = 4;
Global_37284[9 /*12*/].f_3 = 0;
Global_37284[9 /*12*/].f_10 = 0;
Global_37284[9 /*12*/].f_11 = 0;
Global_37284[9 /*12*/].f_4 = 0;
Global_37284[10 /*12*/] = 32;
Global_37284[10 /*12*/].f_1 = 33;
Global_37284[10 /*12*/].f_2 = 5;
Global_37284[10 /*12*/].f_3 = 0;
Global_37284[10 /*12*/].f_10 = 0;
Global_37284[10 /*12*/].f_11 = 0;
Global_37284[10 /*12*/].f_4 = 0;
Global_37284[11 /*12*/] = 34;
Global_37284[11 /*12*/].f_1 = 35;
Global_37284[11 /*12*/].f_2 = 5;
Global_37284[11 /*12*/].f_3 = 0;
Global_37284[11 /*12*/].f_10 = 0;
Global_37284[11 /*12*/].f_11 = 0;
Global_37284[11 /*12*/].f_4 = 0;
Global_37284[12 /*12*/] = 42;
Global_37284[12 /*12*/].f_1 = 43;
Global_37284[12 /*12*/].f_2 = 7;
Global_37284[12 /*12*/].f_3 = 1;
Global_37284[12 /*12*/].f_10 = 0;
Global_37284[12 /*12*/].f_11 = 0;
Global_37284[12 /*12*/].f_4 = 0;
Global_37284[13 /*12*/] = 44;
Global_37284[13 /*12*/].f_1 = 45;
Global_37284[13 /*12*/].f_2 = 7;
Global_37284[13 /*12*/].f_3 = 1;
Global_37284[13 /*12*/].f_10 = 0;
Global_37284[13 /*12*/].f_11 = 0;
Global_37284[13 /*12*/].f_4 = 0;
Global_37284[14 /*12*/] = 46;
Global_37284[14 /*12*/].f_1 = 47;
Global_37284[14 /*12*/].f_2 = 7;
Global_37284[14 /*12*/].f_3 = 1;
Global_37284[14 /*12*/].f_10 = 0;
Global_37284[14 /*12*/].f_11 = 0;
Global_37284[14 /*12*/].f_4 = 0;
Global_37284[15 /*12*/] = 48;
Global_37284[15 /*12*/].f_1 = 49;
Global_37284[15 /*12*/].f_2 = 7;
Global_37284[15 /*12*/].f_3 = 1;
Global_37284[15 /*12*/].f_10 = 0;
Global_37284[15 /*12*/].f_11 = 0;
Global_37284[15 /*12*/].f_4 = 0;
Global_37284[16 /*12*/] = 50;
Global_37284[16 /*12*/].f_1 = 51;
Global_37284[16 /*12*/].f_2 = 4;
Global_37284[16 /*12*/].f_3 = 0;
Global_37284[16 /*12*/].f_10 = 0;
Global_37284[16 /*12*/].f_11 = 0;
Global_37284[16 /*12*/].f_4 = 0;
Global_37284[17 /*12*/] = 61;
Global_37284[17 /*12*/].f_1 = 62;
Global_37284[17 /*12*/].f_2 = 8;
Global_37284[17 /*12*/].f_3 = 0;
Global_37284[17 /*12*/].f_10 = 1;
Global_37284[17 /*12*/].f_11 = 0;
Global_37284[17 /*12*/].f_4 = 0;
Global_37284[18 /*12*/] = 63;
Global_37284[18 /*12*/].f_1 = 64;
Global_37284[18 /*12*/].f_2 = 9;
Global_37284[18 /*12*/].f_3 = 1;
Global_37284[18 /*12*/].f_10 = 1;
Global_37284[18 /*12*/].f_11 = 0;
Global_37284[18 /*12*/].f_4 = 0;
Global_37284[19 /*12*/] = 61;
Global_37284[19 /*12*/].f_1 = 65;
Global_37284[19 /*12*/].f_2 = 8;
Global_37284[19 /*12*/].f_3 = 0;
Global_37284[19 /*12*/].f_10 = 1;
Global_37284[19 /*12*/].f_11 = 0;
Global_37284[19 /*12*/].f_4 = 0;
Global_37284[20 /*12*/] = 61;
Global_37284[20 /*12*/].f_1 = 66;
Global_37284[20 /*12*/].f_2 = 8;
Global_37284[20 /*12*/].f_3 = 0;
Global_37284[20 /*12*/].f_10 = 1;
Global_37284[20 /*12*/].f_11 = 0;
Global_37284[20 /*12*/].f_4 = 0;
Global_37284[21 /*12*/] = 61;
Global_37284[21 /*12*/].f_1 = 67;
Global_37284[21 /*12*/].f_2 = 8;
Global_37284[21 /*12*/].f_3 = 0;
Global_37284[21 /*12*/].f_10 = 1;
Global_37284[21 /*12*/].f_11 = 0;
Global_37284[21 /*12*/].f_4 = 0;
Global_37284[22 /*12*/] = 61;
Global_37284[22 /*12*/].f_1 = 68;
Global_37284[22 /*12*/].f_2 = 8;
Global_37284[22 /*12*/].f_3 = 0;
Global_37284[22 /*12*/].f_10 = 0;
Global_37284[22 /*12*/].f_11 = 0;
Global_37284[22 /*12*/].f_4 = 0;
Global_37284[23 /*12*/] = 69;
Global_37284[23 /*12*/].f_1 = 70;
Global_37284[23 /*12*/].f_2 = 10;
Global_37284[23 /*12*/].f_3 = 2;
Global_37284[23 /*12*/].f_10 = 1;
Global_37284[23 /*12*/].f_11 = 0;
Global_37284[23 /*12*/].f_4 = 0;
Global_37284[24 /*12*/] = 63;
Global_37284[24 /*12*/].f_1 = 74;
Global_37284[24 /*12*/].f_2 = 9;
Global_37284[24 /*12*/].f_3 = 1;
Global_37284[24 /*12*/].f_10 = 1;
Global_37284[24 /*12*/].f_11 = 0;
Global_37284[24 /*12*/].f_4 = 0;
Global_37284[25 /*12*/] = 63;
Global_37284[25 /*12*/].f_1 = 75;
Global_37284[25 /*12*/].f_2 = 9;
Global_37284[25 /*12*/].f_3 = 1;
Global_37284[25 /*12*/].f_10 = 1;
Global_37284[25 /*12*/].f_11 = 0;
Global_37284[25 /*12*/].f_4 = 0;
Global_37284[26 /*12*/] = 63;
Global_37284[26 /*12*/].f_1 = 76;
Global_37284[26 /*12*/].f_2 = 9;
Global_37284[26 /*12*/].f_3 = 1;
Global_37284[26 /*12*/].f_10 = 1;
Global_37284[26 /*12*/].f_11 = 0;
Global_37284[26 /*12*/].f_4 = 0;
Global_37284[27 /*12*/] = 63;
Global_37284[27 /*12*/].f_1 = 77;
Global_37284[27 /*12*/].f_2 = 9;
Global_37284[27 /*12*/].f_3 = 1;
Global_37284[27 /*12*/].f_10 = 0;
Global_37284[27 /*12*/].f_11 = 0;
Global_37284[27 /*12*/].f_4 = 0;
Global_37284[28 /*12*/] = 69;
Global_37284[28 /*12*/].f_1 = 73;
Global_37284[28 /*12*/].f_2 = 10;
Global_37284[28 /*12*/].f_3 = 2;
Global_37284[28 /*12*/].f_10 = 1;
Global_37284[28 /*12*/].f_11 = 0;
Global_37284[28 /*12*/].f_4 = 0;
Global_37284[29 /*12*/] = 69;
Global_37284[29 /*12*/].f_1 = 72;
Global_37284[29 /*12*/].f_2 = 10;
Global_37284[29 /*12*/].f_3 = 2;
Global_37284[29 /*12*/].f_10 = 1;
Global_37284[29 /*12*/].f_11 = 0;
Global_37284[29 /*12*/].f_4 = 0;
Global_37284[30 /*12*/] = 69;
Global_37284[30 /*12*/].f_1 = 71;
Global_37284[30 /*12*/].f_2 = 10;
Global_37284[30 /*12*/].f_3 = 2;
Global_37284[30 /*12*/].f_10 = 0;
Global_37284[30 /*12*/].f_11 = 0;
Global_37284[30 /*12*/].f_4 = 0;
Global_37284[31 /*12*/] = 90;
Global_37284[31 /*12*/].f_1 = 91;
Global_37284[31 /*12*/].f_2 = 11;
Global_37284[31 /*12*/].f_3 = 1;
Global_37284[31 /*12*/].f_10 = 0;
Global_37284[31 /*12*/].f_11 = 0;
Global_37284[31 /*12*/].f_4 = 0;
Global_37284[32 /*12*/] = 90;
Global_37284[32 /*12*/].f_1 = 92;
Global_37284[32 /*12*/].f_2 = 11;
Global_37284[32 /*12*/].f_3 = 0;
Global_37284[32 /*12*/].f_10 = 0;
Global_37284[32 /*12*/].f_11 = 0;
Global_37284[32 /*12*/].f_4 = 0;
Global_37284[33 /*12*/] = 90;
Global_37284[33 /*12*/].f_1 = 93;
Global_37284[33 /*12*/].f_2 = 11;
Global_37284[33 /*12*/].f_3 = 2;
Global_37284[33 /*12*/].f_10 = 0;
Global_37284[33 /*12*/].f_11 = 0;
Global_37284[33 /*12*/].f_4 = 0;
Global_37284[34 /*12*/] = 94;
Global_37284[34 /*12*/].f_1 = 95;
Global_37284[34 /*12*/].f_2 = 13;
Global_37284[34 /*12*/].f_3 = 0;
Global_37284[34 /*12*/].f_10 = 0;
Global_37284[34 /*12*/].f_11 = 0;
Global_37284[34 /*12*/].f_4 = 0;
Global_37284[35 /*12*/] = 94;
Global_37284[35 /*12*/].f_1 = 96;
Global_37284[35 /*12*/].f_2 = 13;
Global_37284[35 /*12*/].f_3 = 1;
Global_37284[35 /*12*/].f_10 = 0;
Global_37284[35 /*12*/].f_11 = 0;
Global_37284[35 /*12*/].f_4 = 0;
Global_37284[36 /*12*/] = 94;
Global_37284[36 /*12*/].f_1 = 97;
Global_37284[36 /*12*/].f_2 = 13;
Global_37284[36 /*12*/].f_3 = 2;
Global_37284[36 /*12*/].f_10 = 0;
Global_37284[36 /*12*/].f_11 = 0;
Global_37284[36 /*12*/].f_4 = 0;
Global_37284[37 /*12*/] = 94;
Global_37284[37 /*12*/].f_1 = 98;
Global_37284[37 /*12*/].f_2 = 14;
Global_37284[37 /*12*/].f_3 = 0;
Global_37284[37 /*12*/].f_10 = 0;
Global_37284[37 /*12*/].f_11 = 0;
Global_37284[37 /*12*/].f_4 = 0;
Global_37284[38 /*12*/] = 94;
Global_37284[38 /*12*/].f_1 = 99;
Global_37284[38 /*12*/].f_2 = 14;
Global_37284[38 /*12*/].f_3 = 1;
Global_37284[38 /*12*/].f_10 = 0;
Global_37284[38 /*12*/].f_11 = 0;
Global_37284[38 /*12*/].f_4 = 0;
Global_37284[39 /*12*/] = 94;
Global_37284[39 /*12*/].f_1 = 100;
Global_37284[39 /*12*/].f_2 = 14;
Global_37284[39 /*12*/].f_3 = 2;
Global_37284[39 /*12*/].f_10 = 0;
Global_37284[39 /*12*/].f_11 = 0;
Global_37284[39 /*12*/].f_4 = 0;
Global_37284[40 /*12*/] = 94;
Global_37284[40 /*12*/].f_1 = 101;
Global_37284[40 /*12*/].f_2 = 12;
Global_37284[40 /*12*/].f_3 = 0;
Global_37284[40 /*12*/].f_10 = 0;
Global_37284[40 /*12*/].f_11 = 0;
Global_37284[40 /*12*/].f_4 = 0;
Global_37284[41 /*12*/] = 94;
Global_37284[41 /*12*/].f_1 = 102;
Global_37284[41 /*12*/].f_2 = 12;
Global_37284[41 /*12*/].f_3 = 1;
Global_37284[41 /*12*/].f_10 = 0;
Global_37284[41 /*12*/].f_11 = 0;
Global_37284[41 /*12*/].f_4 = 0;
Global_37284[42 /*12*/] = 94;
Global_37284[42 /*12*/].f_1 = 103;
Global_37284[42 /*12*/].f_2 = 12;
Global_37284[42 /*12*/].f_3 = 2;
Global_37284[42 /*12*/].f_10 = 0;
Global_37284[42 /*12*/].f_11 = 0;
Global_37284[42 /*12*/].f_4 = 0;
Global_37284[43 /*12*/] = 104;
Global_37284[43 /*12*/].f_1 = 105;
Global_37284[43 /*12*/].f_2 = 7;
Global_37284[43 /*12*/].f_3 = 0;
Global_37284[43 /*12*/].f_10 = 1;
Global_37284[43 /*12*/].f_11 = 0;
Global_37284[43 /*12*/].f_4 = 0;
Global_37284[44 /*12*/] = 108;
Global_37284[44 /*12*/].f_1 = 109;
Global_37284[44 /*12*/].f_2 = 15;
Global_37284[44 /*12*/].f_3 = 0;
Global_37284[44 /*12*/].f_10 = 1;
Global_37284[44 /*12*/].f_11 = 0;
Global_37284[44 /*12*/].f_4 = 0;
Global_37284[45 /*12*/] = 110;
Global_37284[45 /*12*/].f_1 = 111;
Global_37284[45 /*12*/].f_2 = 15;
Global_37284[45 /*12*/].f_3 = 0;
Global_37284[45 /*12*/].f_10 = 1;
Global_37284[45 /*12*/].f_11 = 0;
Global_37284[45 /*12*/].f_4 = 0;
Global_37284[46 /*12*/] = 112;
Global_37284[46 /*12*/].f_1 = 113;
Global_37284[46 /*12*/].f_2 = 15;
Global_37284[46 /*12*/].f_3 = 0;
Global_37284[46 /*12*/].f_10 = 1;
Global_37284[46 /*12*/].f_11 = 0;
Global_37284[46 /*12*/].f_4 = 0;
Global_37284[47 /*12*/] = 117;
Global_37284[47 /*12*/].f_1 = 118;
Global_37284[47 /*12*/].f_2 = 16;
Global_37284[47 /*12*/].f_3 = 0;
Global_37284[47 /*12*/].f_10 = 1;
Global_37284[47 /*12*/].f_11 = 0;
Global_37284[47 /*12*/].f_4 = 0;
Global_37284[48 /*12*/] = 119;
Global_37284[48 /*12*/].f_1 = 120;
Global_37284[48 /*12*/].f_2 = 16;
Global_37284[48 /*12*/].f_3 = 0;
Global_37284[48 /*12*/].f_10 = 1;
Global_37284[48 /*12*/].f_11 = 0;
Global_37284[48 /*12*/].f_4 = 0;
Global_37284[49 /*12*/] = 131;
Global_37284[49 /*12*/].f_1 = 132;
Global_37284[49 /*12*/].f_2 = 16;
Global_37284[49 /*12*/].f_3 = 0;
Global_37284[49 /*12*/].f_10 = 1;
Global_37284[49 /*12*/].f_11 = 0;
Global_37284[49 /*12*/].f_4 = 0;
Global_37284[50 /*12*/] = 129;
Global_37284[50 /*12*/].f_1 = 130;
Global_37284[50 /*12*/].f_2 = 16;
Global_37284[50 /*12*/].f_3 = 0;
Global_37284[50 /*12*/].f_10 = 0;
Global_37284[50 /*12*/].f_11 = 0;
Global_37284[50 /*12*/].f_4 = 0;
Global_37284[51 /*12*/] = 127;
Global_37284[51 /*12*/].f_1 = 128;
Global_37284[51 /*12*/].f_2 = 16;
Global_37284[51 /*12*/].f_3 = 0;
Global_37284[51 /*12*/].f_10 = 1;
Global_37284[51 /*12*/].f_11 = 0;
Global_37284[51 /*12*/].f_4 = 0;
Global_37284[52 /*12*/] = 125;
Global_37284[52 /*12*/].f_1 = 126;
Global_37284[52 /*12*/].f_2 = 16;
Global_37284[52 /*12*/].f_3 = 0;
Global_37284[52 /*12*/].f_10 = 1;
Global_37284[52 /*12*/].f_11 = 0;
Global_37284[52 /*12*/].f_4 = 0;
Global_37284[53 /*12*/] = 123;
Global_37284[53 /*12*/].f_1 = 124;
Global_37284[53 /*12*/].f_2 = 16;
Global_37284[53 /*12*/].f_3 = 0;
Global_37284[53 /*12*/].f_10 = 1;
Global_37284[53 /*12*/].f_11 = 0;
Global_37284[53 /*12*/].f_4 = 0;
Global_37284[54 /*12*/] = 121;
Global_37284[54 /*12*/].f_1 = 122;
Global_37284[54 /*12*/].f_2 = 16;
Global_37284[54 /*12*/].f_3 = 0;
Global_37284[54 /*12*/].f_10 = 1;
Global_37284[54 /*12*/].f_11 = 0;
Global_37284[54 /*12*/].f_4 = 0;
Global_37284[55 /*12*/] = 133;
Global_37284[55 /*12*/].f_1 = 134;
Global_37284[55 /*12*/].f_2 = 12;
Global_37284[55 /*12*/].f_3 = 0;
Global_37284[55 /*12*/].f_10 = 0;
Global_37284[55 /*12*/].f_11 = 0;
Global_37284[55 /*12*/].f_4 = 0;
Global_37284[56 /*12*/] = 135;
Global_37284[56 /*12*/].f_1 = 136;
Global_37284[56 /*12*/].f_2 = 14;
Global_37284[56 /*12*/].f_3 = 0;
Global_37284[56 /*12*/].f_10 = 0;
Global_37284[56 /*12*/].f_11 = 0;
Global_37284[56 /*12*/].f_4 = 0;
Global_37284[57 /*12*/] = 137;
Global_37284[57 /*12*/].f_1 = 138;
Global_37284[57 /*12*/].f_2 = 12;
Global_37284[57 /*12*/].f_3 = 0;
Global_37284[57 /*12*/].f_10 = 0;
Global_37284[57 /*12*/].f_11 = 0;
Global_37284[57 /*12*/].f_4 = 0;
Global_37284[58 /*12*/] = 133;
Global_37284[58 /*12*/].f_1 = 139;
Global_37284[58 /*12*/].f_2 = 12;
Global_37284[58 /*12*/].f_3 = 1;
Global_37284[58 /*12*/].f_10 = 0;
Global_37284[58 /*12*/].f_11 = 0;
Global_37284[58 /*12*/].f_4 = 0;
Global_37284[59 /*12*/] = 133;
Global_37284[59 /*12*/].f_1 = 140;
Global_37284[59 /*12*/].f_2 = 12;
Global_37284[59 /*12*/].f_3 = 2;
Global_37284[59 /*12*/].f_10 = 0;
Global_37284[59 /*12*/].f_11 = 0;
Global_37284[59 /*12*/].f_4 = 0;
Global_37284[60 /*12*/] = 135;
Global_37284[60 /*12*/].f_1 = 136;
Global_37284[60 /*12*/].f_2 = 14;
Global_37284[60 /*12*/].f_3 = 1;
Global_37284[60 /*12*/].f_10 = 0;
Global_37284[60 /*12*/].f_11 = 0;
Global_37284[60 /*12*/].f_4 = 0;
Global_37284[61 /*12*/] = 135;
Global_37284[61 /*12*/].f_1 = 136;
Global_37284[61 /*12*/].f_2 = 14;
Global_37284[61 /*12*/].f_3 = 2;
Global_37284[61 /*12*/].f_10 = 0;
Global_37284[61 /*12*/].f_11 = 0;
Global_37284[61 /*12*/].f_4 = 0;
Global_37284[62 /*12*/] = 137;
Global_37284[62 /*12*/].f_1 = 141;
Global_37284[62 /*12*/].f_2 = 12;
Global_37284[62 /*12*/].f_3 = 1;
Global_37284[62 /*12*/].f_10 = 0;
Global_37284[62 /*12*/].f_11 = 0;
Global_37284[62 /*12*/].f_4 = 0;
Global_37284[63 /*12*/] = 137;
Global_37284[63 /*12*/].f_1 = 138;
Global_37284[63 /*12*/].f_2 = 12;
Global_37284[63 /*12*/].f_3 = 2;
Global_37284[63 /*12*/].f_10 = 0;
Global_37284[63 /*12*/].f_11 = 0;
Global_37284[63 /*12*/].f_4 = 0;
Global_37284[64 /*12*/] = 148;
Global_37284[64 /*12*/].f_1 = 149;
Global_37284[64 /*12*/].f_2 = 7;
Global_37284[64 /*12*/].f_3 = 0;
Global_37284[64 /*12*/].f_10 = 0;
Global_37284[64 /*12*/].f_11 = 0;
Global_37284[64 /*12*/].f_4 = 0;
Global_37284[65 /*12*/] = 148;
Global_37284[65 /*12*/].f_1 = 151;
Global_37284[65 /*12*/].f_2 = 7;
Global_37284[65 /*12*/].f_3 = 0;
Global_37284[65 /*12*/].f_10 = 0;
Global_37284[65 /*12*/].f_11 = 0;
Global_37284[65 /*12*/].f_4 = 0;
Global_37284[66 /*12*/] = 148;
Global_37284[66 /*12*/].f_1 = 150;
Global_37284[66 /*12*/].f_2 = 7;
Global_37284[66 /*12*/].f_3 = 0;
Global_37284[66 /*12*/].f_10 = 0;
Global_37284[66 /*12*/].f_11 = 0;
Global_37284[66 /*12*/].f_4 = 0;
Global_37284[67 /*12*/] = 155;
Global_37284[67 /*12*/].f_1 = 156;
Global_37284[67 /*12*/].f_2 = 63;
Global_37284[67 /*12*/].f_3 = 2;
Global_37284[67 /*12*/].f_10 = 0;
Global_37284[67 /*12*/].f_11 = 0;
Global_37284[67 /*12*/].f_4 = 0;
Global_37284[68 /*12*/] = 125;
Global_37284[68 /*12*/].f_1 = 160;
Global_37284[68 /*12*/].f_2 = 16;
Global_37284[68 /*12*/].f_3 = 0;
Global_37284[68 /*12*/].f_10 = 1;
Global_37284[68 /*12*/].f_11 = 0;
Global_37284[68 /*12*/].f_4 = 0;
Global_37284[69 /*12*/] = 161;
Global_37284[69 /*12*/].f_1 = 162;
Global_37284[69 /*12*/].f_2 = 64;
Global_37284[69 /*12*/].f_3 = 2;
Global_37284[69 /*12*/].f_10 = 0;
Global_37284[69 /*12*/].f_11 = 0;
Global_37284[69 /*12*/].f_4 = 0;
Global_37284[70 /*12*/] = 161;
Global_37284[70 /*12*/].f_1 = 162;
Global_37284[70 /*12*/].f_2 = 64;
Global_37284[70 /*12*/].f_3 = 1;
Global_37284[70 /*12*/].f_10 = 0;
Global_37284[70 /*12*/].f_11 = 0;
Global_37284[70 /*12*/].f_4 = 0;
Global_37284[71 /*12*/] = 161;
Global_37284[71 /*12*/].f_1 = 162;
Global_37284[71 /*12*/].f_2 = 64;
Global_37284[71 /*12*/].f_3 = 2;
Global_37284[71 /*12*/].f_10 = 0;
Global_37284[71 /*12*/].f_11 = 0;
Global_37284[71 /*12*/].f_4 = 0;
Global_37284[72 /*12*/] = 166;
Global_37284[72 /*12*/].f_1 = 16;
Global_37284[72 /*12*/].f_2 = 21;
Global_37284[72 /*12*/].f_3 = 0;
Global_37284[72 /*12*/].f_10 = 0;
Global_37284[72 /*12*/].f_11 = 0;
Global_37284[72 /*12*/].f_4 = 0;
Global_37284[73 /*12*/] = 166;
Global_37284[73 /*12*/].f_1 = 16;
Global_37284[73 /*12*/].f_2 = 21;
Global_37284[73 /*12*/].f_3 = 1;
Global_37284[73 /*12*/].f_10 = 0;
Global_37284[73 /*12*/].f_11 = 0;
Global_37284[73 /*12*/].f_4 = 0;
Global_37284[74 /*12*/] = 166;
Global_37284[74 /*12*/].f_1 = 16;
Global_37284[74 /*12*/].f_2 = 21;
Global_37284[74 /*12*/].f_3 = 2;
Global_37284[74 /*12*/].f_10 = 0;
Global_37284[74 /*12*/].f_11 = 0;
Global_37284[74 /*12*/].f_4 = 0;
Global_37284[75 /*12*/] = 167;
Global_37284[75 /*12*/].f_1 = 16;
Global_37284[75 /*12*/].f_2 = 6;
Global_37284[75 /*12*/].f_3 = 2;
Global_37284[75 /*12*/].f_10 = 0;
Global_37284[75 /*12*/].f_11 = 0;
Global_37284[75 /*12*/].f_4 = 0;
Global_37284[76 /*12*/] = 168;
Global_37284[76 /*12*/].f_1 = 16;
Global_37284[76 /*12*/].f_2 = 6;
Global_37284[76 /*12*/].f_3 = 2;
Global_37284[76 /*12*/].f_10 = 0;
Global_37284[76 /*12*/].f_11 = 0;
Global_37284[76 /*12*/].f_4 = 0;
Global_37284[77 /*12*/] = 169;
Global_37284[77 /*12*/].f_1 = 16;
Global_37284[77 /*12*/].f_2 = 6;
Global_37284[77 /*12*/].f_3 = 2;
Global_37284[77 /*12*/].f_10 = 0;
Global_37284[77 /*12*/].f_11 = 0;
Global_37284[77 /*12*/].f_4 = 0;
Global_37284[78 /*12*/] = 170;
Global_37284[78 /*12*/].f_1 = 16;
Global_37284[78 /*12*/].f_2 = 6;
Global_37284[78 /*12*/].f_3 = 2;
Global_37284[78 /*12*/].f_10 = 0;
Global_37284[78 /*12*/].f_11 = 0;
Global_37284[78 /*12*/].f_4 = 0;
Global_37284[79 /*12*/] = 171;
Global_37284[79 /*12*/].f_1 = 16;
Global_37284[79 /*12*/].f_2 = 6;
Global_37284[79 /*12*/].f_3 = 2;
Global_37284[79 /*12*/].f_10 = 0;
Global_37284[79 /*12*/].f_11 = 0;
Global_37284[79 /*12*/].f_4 = 0;
Global_37284[80 /*12*/] = 172;
Global_37284[80 /*12*/].f_1 = 173;
Global_37284[80 /*12*/].f_2 = 6;
Global_37284[80 /*12*/].f_3 = 2;
Global_37284[80 /*12*/].f_10 = 0;
Global_37284[80 /*12*/].f_11 = 0;
Global_37284[80 /*12*/].f_4 = 0;
Global_37284[81 /*12*/] = 174;
Global_37284[81 /*12*/].f_1 = 175;
Global_37284[81 /*12*/].f_2 = 6;
Global_37284[81 /*12*/].f_3 = 2;
Global_37284[81 /*12*/].f_10 = 0;
Global_37284[81 /*12*/].f_11 = 0;
Global_37284[81 /*12*/].f_4 = 0;
Global_37284[82 /*12*/] = 176;
Global_37284[82 /*12*/].f_1 = 177;
Global_37284[82 /*12*/].f_2 = 6;
Global_37284[82 /*12*/].f_3 = 2;
Global_37284[82 /*12*/].f_10 = 0;
Global_37284[82 /*12*/].f_11 = 0;
Global_37284[82 /*12*/].f_4 = 0;
Global_37284[83 /*12*/] = 178;
Global_37284[83 /*12*/].f_1 = 179;
Global_37284[83 /*12*/].f_2 = 6;
Global_37284[83 /*12*/].f_3 = 2;
Global_37284[83 /*12*/].f_10 = 0;
Global_37284[83 /*12*/].f_11 = 0;
Global_37284[83 /*12*/].f_4 = 0;
Global_37284[84 /*12*/] = 180;
Global_37284[84 /*12*/].f_1 = 181;
Global_37284[84 /*12*/].f_2 = 4;
Global_37284[84 /*12*/].f_3 = 0;
Global_37284[84 /*12*/].f_10 = 0;
Global_37284[84 /*12*/].f_11 = 3000;
Global_37284[84 /*12*/].f_4 = 0;
Global_37284[85 /*12*/] = 185;
Global_37284[85 /*12*/].f_1 = 186;
Global_37284[85 /*12*/].f_2 = 22;
Global_37284[85 /*12*/].f_3 = 0;
Global_37284[85 /*12*/].f_10 = 0;
Global_37284[85 /*12*/].f_11 = 0;
Global_37284[85 /*12*/].f_4 = 0;
Global_37284[86 /*12*/] = 193;
Global_37284[86 /*12*/].f_1 = 194;
Global_37284[86 /*12*/].f_2 = 24;
Global_37284[86 /*12*/].f_3 = 0;
Global_37284[86 /*12*/].f_10 = 1;
Global_37284[86 /*12*/].f_11 = 0;
Global_37284[86 /*12*/].f_4 = 1;
Global_37284[86 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[86 /*12*/].f_5[0 /*4*/].f_1 = 87;
Global_37284[86 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[86 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[87 /*12*/] = 195;
Global_37284[87 /*12*/].f_1 = 196;
Global_37284[87 /*12*/].f_2 = 0;
Global_37284[87 /*12*/].f_3 = 24;
Global_37284[87 /*12*/].f_10 = 0;
Global_37284[87 /*12*/].f_11 = 0;
Global_37284[87 /*12*/].f_4 = 1;
Global_37284[87 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[87 /*12*/].f_5[0 /*4*/].f_1 = 88;
Global_37284[87 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[87 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[88 /*12*/] = 197;
Global_37284[88 /*12*/].f_1 = 198;
Global_37284[88 /*12*/].f_2 = 24;
Global_37284[88 /*12*/].f_3 = 0;
Global_37284[88 /*12*/].f_10 = 0;
Global_37284[88 /*12*/].f_11 = 120000;
Global_37284[88 /*12*/].f_4 = 0;
Global_37284[89 /*12*/] = 200;
Global_37284[89 /*12*/].f_1 = 201;
Global_37284[89 /*12*/].f_2 = 24;
Global_37284[89 /*12*/].f_3 = 0;
Global_37284[89 /*12*/].f_10 = 1;
Global_37284[89 /*12*/].f_11 = 0;
Global_37284[89 /*12*/].f_4 = 1;
Global_37284[89 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[89 /*12*/].f_5[0 /*4*/].f_1 = 90;
Global_37284[89 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[89 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[90 /*12*/] = 202;
Global_37284[90 /*12*/].f_1 = 203;
Global_37284[90 /*12*/].f_2 = 0;
Global_37284[90 /*12*/].f_3 = 24;
Global_37284[90 /*12*/].f_10 = 0;
Global_37284[90 /*12*/].f_11 = 0;
Global_37284[90 /*12*/].f_4 = 1;
Global_37284[90 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[90 /*12*/].f_5[0 /*4*/].f_1 = 91;
Global_37284[90 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[90 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[91 /*12*/] = 204;
Global_37284[91 /*12*/].f_1 = 205;
Global_37284[91 /*12*/].f_2 = 24;
Global_37284[91 /*12*/].f_3 = 0;
Global_37284[91 /*12*/].f_10 = 0;
Global_37284[91 /*12*/].f_11 = 120000;
Global_37284[91 /*12*/].f_4 = 0;
Global_37284[92 /*12*/] = 209;
Global_37284[92 /*12*/].f_1 = 210;
Global_37284[92 /*12*/].f_2 = 25;
Global_37284[92 /*12*/].f_3 = 0;
Global_37284[92 /*12*/].f_10 = 1;
Global_37284[92 /*12*/].f_11 = 0;
Global_37284[92 /*12*/].f_4 = 1;
Global_37284[92 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[92 /*12*/].f_5[0 /*4*/].f_1 = 93;
Global_37284[92 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[92 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[93 /*12*/] = 211;
Global_37284[93 /*12*/].f_1 = 212;
Global_37284[93 /*12*/].f_2 = 0;
Global_37284[93 /*12*/].f_3 = 25;
Global_37284[93 /*12*/].f_10 = 0;
Global_37284[93 /*12*/].f_11 = 0;
Global_37284[93 /*12*/].f_4 = 1;
Global_37284[93 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[93 /*12*/].f_5[0 /*4*/].f_1 = 94;
Global_37284[93 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[93 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[94 /*12*/] = 213;
Global_37284[94 /*12*/].f_1 = 214;
Global_37284[94 /*12*/].f_2 = 25;
Global_37284[94 /*12*/].f_3 = 0;
Global_37284[94 /*12*/].f_10 = 1;
Global_37284[94 /*12*/].f_11 = 60000;
Global_37284[94 /*12*/].f_4 = 1;
Global_37284[94 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[94 /*12*/].f_5[0 /*4*/].f_1 = 95;
Global_37284[94 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[94 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[95 /*12*/] = 215;
Global_37284[95 /*12*/].f_1 = 216;
Global_37284[95 /*12*/].f_2 = 0;
Global_37284[95 /*12*/].f_3 = 25;
Global_37284[95 /*12*/].f_10 = 0;
Global_37284[95 /*12*/].f_11 = 0;
Global_37284[95 /*12*/].f_4 = 1;
Global_37284[95 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[95 /*12*/].f_5[0 /*4*/].f_1 = 96;
Global_37284[95 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[95 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[96 /*12*/] = 217;
Global_37284[96 /*12*/].f_1 = 218;
Global_37284[96 /*12*/].f_2 = 25;
Global_37284[96 /*12*/].f_3 = 0;
Global_37284[96 /*12*/].f_10 = 0;
Global_37284[96 /*12*/].f_11 = 60000;
Global_37284[96 /*12*/].f_4 = 0;
Global_37284[97 /*12*/] = 222;
Global_37284[97 /*12*/].f_1 = 223;
Global_37284[97 /*12*/].f_2 = 26;
Global_37284[97 /*12*/].f_3 = 0;
Global_37284[97 /*12*/].f_10 = 1;
Global_37284[97 /*12*/].f_11 = 0;
Global_37284[97 /*12*/].f_4 = 1;
Global_37284[97 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[97 /*12*/].f_5[0 /*4*/].f_1 = 98;
Global_37284[97 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[97 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[98 /*12*/] = 224;
Global_37284[98 /*12*/].f_1 = 225;
Global_37284[98 /*12*/].f_2 = 0;
Global_37284[98 /*12*/].f_3 = 26;
Global_37284[98 /*12*/].f_10 = 0;
Global_37284[98 /*12*/].f_11 = 0;
Global_37284[98 /*12*/].f_4 = 0;
Global_37284[99 /*12*/] = 229;
Global_37284[99 /*12*/].f_1 = 230;
Global_37284[99 /*12*/].f_2 = 27;
Global_37284[99 /*12*/].f_3 = 0;
Global_37284[99 /*12*/].f_10 = 1;
Global_37284[99 /*12*/].f_11 = 0;
Global_37284[99 /*12*/].f_4 = 1;
Global_37284[99 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[99 /*12*/].f_5[0 /*4*/].f_1 = 100;
Global_37284[99 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[99 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[100 /*12*/] = 231;
Global_37284[100 /*12*/].f_1 = 232;
Global_37284[100 /*12*/].f_2 = 0;
Global_37284[100 /*12*/].f_3 = 27;
Global_37284[100 /*12*/].f_10 = 0;
Global_37284[100 /*12*/].f_11 = 0;
Global_37284[100 /*12*/].f_4 = 0;
Global_37284[101 /*12*/] = 236;
Global_37284[101 /*12*/].f_1 = 237;
Global_37284[101 /*12*/].f_2 = 28;
Global_37284[101 /*12*/].f_3 = 0;
Global_37284[101 /*12*/].f_10 = 0;
Global_37284[101 /*12*/].f_11 = 0;
Global_37284[101 /*12*/].f_4 = 0;
Global_37284[102 /*12*/] = 238;
Global_37284[102 /*12*/].f_1 = 239;
Global_37284[102 /*12*/].f_2 = 26;
Global_37284[102 /*12*/].f_3 = 0;
Global_37284[102 /*12*/].f_10 = 1;
Global_37284[102 /*12*/].f_11 = 0;
Global_37284[102 /*12*/].f_4 = 1;
Global_37284[102 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[102 /*12*/].f_5[0 /*4*/].f_1 = 103;
Global_37284[102 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[102 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[103 /*12*/] = 240;
Global_37284[103 /*12*/].f_1 = 241;
Global_37284[103 /*12*/].f_2 = 0;
Global_37284[103 /*12*/].f_3 = 26;
Global_37284[103 /*12*/].f_10 = 0;
Global_37284[103 /*12*/].f_11 = 0;
Global_37284[103 /*12*/].f_4 = 0;
Global_37284[104 /*12*/] = 245;
Global_37284[104 /*12*/].f_1 = 246;
Global_37284[104 /*12*/].f_2 = 29;
Global_37284[104 /*12*/].f_3 = 0;
Global_37284[104 /*12*/].f_10 = 1;
Global_37284[104 /*12*/].f_11 = 0;
Global_37284[104 /*12*/].f_4 = 1;
Global_37284[104 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[104 /*12*/].f_5[0 /*4*/].f_1 = 105;
Global_37284[104 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[104 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[105 /*12*/] = 247;
Global_37284[105 /*12*/].f_1 = 248;
Global_37284[105 /*12*/].f_2 = 0;
Global_37284[105 /*12*/].f_3 = 29;
Global_37284[105 /*12*/].f_10 = 0;
Global_37284[105 /*12*/].f_11 = 0;
Global_37284[105 /*12*/].f_4 = 0;
Global_37284[106 /*12*/] = 252;
Global_37284[106 /*12*/].f_1 = 253;
Global_37284[106 /*12*/].f_2 = 30;
Global_37284[106 /*12*/].f_3 = 1;
Global_37284[106 /*12*/].f_10 = 1;
Global_37284[106 /*12*/].f_11 = 120000;
Global_37284[106 /*12*/].f_4 = 1;
Global_37284[106 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[106 /*12*/].f_5[0 /*4*/].f_1 = 107;
Global_37284[106 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[106 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[107 /*12*/] = 254;
Global_37284[107 /*12*/].f_1 = 255;
Global_37284[107 /*12*/].f_2 = 1;
Global_37284[107 /*12*/].f_3 = 30;
Global_37284[107 /*12*/].f_10 = 0;
Global_37284[107 /*12*/].f_11 = 0;
Global_37284[107 /*12*/].f_4 = 1;
Global_37284[107 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[107 /*12*/].f_5[0 /*4*/].f_1 = 108;
Global_37284[107 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[107 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[108 /*12*/] = 256;
Global_37284[108 /*12*/].f_1 = 257;
Global_37284[108 /*12*/].f_2 = 30;
Global_37284[108 /*12*/].f_3 = 1;
Global_37284[108 /*12*/].f_10 = 1;
Global_37284[108 /*12*/].f_11 = 120000;
Global_37284[108 /*12*/].f_4 = 1;
Global_37284[108 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[108 /*12*/].f_5[0 /*4*/].f_1 = 109;
Global_37284[108 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[108 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[109 /*12*/] = 258;
Global_37284[109 /*12*/].f_1 = 259;
Global_37284[109 /*12*/].f_2 = 1;
Global_37284[109 /*12*/].f_3 = 30;
Global_37284[109 /*12*/].f_10 = 0;
Global_37284[109 /*12*/].f_11 = 0;
Global_37284[109 /*12*/].f_4 = 1;
Global_37284[109 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[109 /*12*/].f_5[0 /*4*/].f_1 = 110;
Global_37284[109 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[109 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[110 /*12*/] = 260;
Global_37284[110 /*12*/].f_1 = 261;
Global_37284[110 /*12*/].f_2 = 30;
Global_37284[110 /*12*/].f_3 = 1;
Global_37284[110 /*12*/].f_10 = 0;
Global_37284[110 /*12*/].f_11 = 60000;
Global_37284[110 /*12*/].f_4 = 0;
Global_37284[111 /*12*/] = 265;
Global_37284[111 /*12*/].f_1 = 266;
Global_37284[111 /*12*/].f_2 = 31;
Global_37284[111 /*12*/].f_3 = 1;
Global_37284[111 /*12*/].f_10 = 1;
Global_37284[111 /*12*/].f_11 = 0;
Global_37284[111 /*12*/].f_4 = 1;
Global_37284[111 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[111 /*12*/].f_5[0 /*4*/].f_1 = 112;
Global_37284[111 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[111 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[112 /*12*/] = 267;
Global_37284[112 /*12*/].f_1 = 268;
Global_37284[112 /*12*/].f_2 = 1;
Global_37284[112 /*12*/].f_3 = 31;
Global_37284[112 /*12*/].f_10 = 0;
Global_37284[112 /*12*/].f_11 = 0;
Global_37284[112 /*12*/].f_4 = 0;
Global_37284[113 /*12*/] = 272;
Global_37284[113 /*12*/].f_1 = 273;
Global_37284[113 /*12*/].f_2 = 32;
Global_37284[113 /*12*/].f_3 = 1;
Global_37284[113 /*12*/].f_10 = 1;
Global_37284[113 /*12*/].f_11 = 0;
Global_37284[113 /*12*/].f_4 = 1;
Global_37284[113 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[113 /*12*/].f_5[0 /*4*/].f_1 = 114;
Global_37284[113 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[113 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[114 /*12*/] = 274;
Global_37284[114 /*12*/].f_1 = 275;
Global_37284[114 /*12*/].f_2 = 1;
Global_37284[114 /*12*/].f_3 = 32;
Global_37284[114 /*12*/].f_10 = 0;
Global_37284[114 /*12*/].f_11 = 0;
Global_37284[114 /*12*/].f_4 = 1;
Global_37284[114 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[114 /*12*/].f_5[0 /*4*/].f_1 = 115;
Global_37284[114 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[114 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[115 /*12*/] = 276;
Global_37284[115 /*12*/].f_1 = 277;
Global_37284[115 /*12*/].f_2 = 32;
Global_37284[115 /*12*/].f_3 = 1;
Global_37284[115 /*12*/].f_10 = 0;
Global_37284[115 /*12*/].f_11 = 30000;
Global_37284[115 /*12*/].f_4 = 0;
Global_37284[116 /*12*/] = 278;
Global_37284[116 /*12*/].f_1 = 279;
Global_37284[116 /*12*/].f_2 = 32;
Global_37284[116 /*12*/].f_3 = 1;
Global_37284[116 /*12*/].f_10 = 1;
Global_37284[116 /*12*/].f_11 = 0;
Global_37284[116 /*12*/].f_4 = 1;
Global_37284[116 /*12*/].f_5[0 /*4*/] = 282;
Global_37284[116 /*12*/].f_5[0 /*4*/].f_1 = 117;
Global_37284[116 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[116 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[117 /*12*/] = 280;
Global_37284[117 /*12*/].f_1 = 281;
Global_37284[117 /*12*/].f_2 = 1;
Global_37284[117 /*12*/].f_3 = 32;
Global_37284[117 /*12*/].f_10 = 0;
Global_37284[117 /*12*/].f_11 = 0;
Global_37284[117 /*12*/].f_4 = 0;
Global_37284[118 /*12*/] = 283;
Global_37284[118 /*12*/].f_1 = 284;
Global_37284[118 /*12*/].f_2 = 32;
Global_37284[118 /*12*/].f_3 = 1;
Global_37284[118 /*12*/].f_10 = 1;
Global_37284[118 /*12*/].f_11 = 0;
Global_37284[118 /*12*/].f_4 = 1;
Global_37284[118 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[118 /*12*/].f_5[0 /*4*/].f_1 = 119;
Global_37284[118 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[118 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[119 /*12*/] = 285;
Global_37284[119 /*12*/].f_1 = 286;
Global_37284[119 /*12*/].f_2 = 1;
Global_37284[119 /*12*/].f_3 = 32;
Global_37284[119 /*12*/].f_10 = 0;
Global_37284[119 /*12*/].f_11 = 0;
Global_37284[119 /*12*/].f_4 = 0;
Global_37284[120 /*12*/] = 287;
Global_37284[120 /*12*/].f_1 = 288;
Global_37284[120 /*12*/].f_2 = 32;
Global_37284[120 /*12*/].f_3 = 1;
Global_37284[120 /*12*/].f_10 = 1;
Global_37284[120 /*12*/].f_11 = 0;
Global_37284[120 /*12*/].f_4 = 1;
Global_37284[120 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[120 /*12*/].f_5[0 /*4*/].f_1 = 121;
Global_37284[120 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[120 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[121 /*12*/] = 289;
Global_37284[121 /*12*/].f_1 = 290;
Global_37284[121 /*12*/].f_2 = 1;
Global_37284[121 /*12*/].f_3 = 32;
Global_37284[121 /*12*/].f_10 = 0;
Global_37284[121 /*12*/].f_11 = 0;
Global_37284[121 /*12*/].f_4 = 1;
Global_37284[121 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[121 /*12*/].f_5[0 /*4*/].f_1 = 122;
Global_37284[121 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[121 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[122 /*12*/] = 291;
Global_37284[122 /*12*/].f_1 = 292;
Global_37284[122 /*12*/].f_2 = 32;
Global_37284[122 /*12*/].f_3 = 1;
Global_37284[122 /*12*/].f_10 = 1;
Global_37284[122 /*12*/].f_11 = 30000;
Global_37284[122 /*12*/].f_4 = 1;
Global_37284[122 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[122 /*12*/].f_5[0 /*4*/].f_1 = 123;
Global_37284[122 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[122 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[123 /*12*/] = 293;
Global_37284[123 /*12*/].f_1 = 294;
Global_37284[123 /*12*/].f_2 = 1;
Global_37284[123 /*12*/].f_3 = 32;
Global_37284[123 /*12*/].f_10 = 0;
Global_37284[123 /*12*/].f_11 = 0;
Global_37284[123 /*12*/].f_4 = 0;
Global_37284[124 /*12*/] = 295;
Global_37284[124 /*12*/].f_1 = 296;
Global_37284[124 /*12*/].f_2 = 27;
Global_37284[124 /*12*/].f_3 = 1;
Global_37284[124 /*12*/].f_10 = 1;
Global_37284[124 /*12*/].f_11 = 0;
Global_37284[124 /*12*/].f_4 = 1;
Global_37284[124 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[124 /*12*/].f_5[0 /*4*/].f_1 = 125;
Global_37284[124 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[124 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[125 /*12*/] = 297;
Global_37284[125 /*12*/].f_1 = 298;
Global_37284[125 /*12*/].f_2 = 1;
Global_37284[125 /*12*/].f_3 = 27;
Global_37284[125 /*12*/].f_10 = 0;
Global_37284[125 /*12*/].f_11 = 0;
Global_37284[125 /*12*/].f_4 = 0;
Global_37284[126 /*12*/] = 299;
Global_37284[126 /*12*/].f_1 = 300;
Global_37284[126 /*12*/].f_2 = 2;
Global_37284[126 /*12*/].f_3 = 1;
Global_37284[126 /*12*/].f_10 = 1;
Global_37284[126 /*12*/].f_11 = 0;
Global_37284[126 /*12*/].f_4 = 1;
Global_37284[126 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[126 /*12*/].f_5[0 /*4*/].f_1 = 127;
Global_37284[126 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[126 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[127 /*12*/] = 301;
Global_37284[127 /*12*/].f_1 = 302;
Global_37284[127 /*12*/].f_2 = 1;
Global_37284[127 /*12*/].f_3 = 2;
Global_37284[127 /*12*/].f_10 = 0;
Global_37284[127 /*12*/].f_11 = 0;
Global_37284[127 /*12*/].f_4 = 1;
Global_37284[127 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[127 /*12*/].f_5[0 /*4*/].f_1 = 128;
Global_37284[127 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[127 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[128 /*12*/] = 303;
Global_37284[128 /*12*/].f_1 = 304;
Global_37284[128 /*12*/].f_2 = 2;
Global_37284[128 /*12*/].f_3 = 1;
Global_37284[128 /*12*/].f_10 = 1;
Global_37284[128 /*12*/].f_11 = 60000;
Global_37284[128 /*12*/].f_4 = 1;
Global_37284[128 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[128 /*12*/].f_5[0 /*4*/].f_1 = 129;
Global_37284[128 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[128 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[129 /*12*/] = 305;
Global_37284[129 /*12*/].f_1 = 306;
Global_37284[129 /*12*/].f_2 = 1;
Global_37284[129 /*12*/].f_3 = 2;
Global_37284[129 /*12*/].f_10 = 0;
Global_37284[129 /*12*/].f_11 = 0;
Global_37284[129 /*12*/].f_4 = 1;
Global_37284[129 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[129 /*12*/].f_5[0 /*4*/].f_1 = 130;
Global_37284[129 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[129 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[130 /*12*/] = 307;
Global_37284[130 /*12*/].f_1 = 308;
Global_37284[130 /*12*/].f_2 = 2;
Global_37284[130 /*12*/].f_3 = 1;
Global_37284[130 /*12*/].f_10 = 0;
Global_37284[130 /*12*/].f_11 = 30000;
Global_37284[130 /*12*/].f_4 = 0;
Global_37284[131 /*12*/] = 309;
Global_37284[131 /*12*/].f_1 = 310;
Global_37284[131 /*12*/].f_2 = 0;
Global_37284[131 /*12*/].f_3 = 1;
Global_37284[131 /*12*/].f_10 = 1;
Global_37284[131 /*12*/].f_11 = 0;
Global_37284[131 /*12*/].f_4 = 1;
Global_37284[131 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[131 /*12*/].f_5[0 /*4*/].f_1 = 132;
Global_37284[131 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[131 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[132 /*12*/] = 311;
Global_37284[132 /*12*/].f_1 = 312;
Global_37284[132 /*12*/].f_2 = 1;
Global_37284[132 /*12*/].f_3 = 0;
Global_37284[132 /*12*/].f_10 = 0;
Global_37284[132 /*12*/].f_11 = 0;
Global_37284[132 /*12*/].f_4 = 1;
Global_37284[132 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[132 /*12*/].f_5[0 /*4*/].f_1 = 133;
Global_37284[132 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[132 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[133 /*12*/] = 313;
Global_37284[133 /*12*/].f_1 = 314;
Global_37284[133 /*12*/].f_2 = 0;
Global_37284[133 /*12*/].f_3 = 1;
Global_37284[133 /*12*/].f_10 = 0;
Global_37284[133 /*12*/].f_11 = 25000;
Global_37284[133 /*12*/].f_4 = 0;
Global_37284[134 /*12*/] = 315;
Global_37284[134 /*12*/].f_1 = 316;
Global_37284[134 /*12*/].f_2 = 0;
Global_37284[134 /*12*/].f_3 = 1;
Global_37284[134 /*12*/].f_10 = 1;
Global_37284[134 /*12*/].f_11 = 0;
Global_37284[134 /*12*/].f_4 = 1;
Global_37284[134 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[134 /*12*/].f_5[0 /*4*/].f_1 = 135;
Global_37284[134 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[134 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[135 /*12*/] = 317;
Global_37284[135 /*12*/].f_1 = 318;
Global_37284[135 /*12*/].f_2 = 1;
Global_37284[135 /*12*/].f_3 = 0;
Global_37284[135 /*12*/].f_10 = 0;
Global_37284[135 /*12*/].f_11 = 0;
Global_37284[135 /*12*/].f_4 = 0;
Global_37284[136 /*12*/] = 322;
Global_37284[136 /*12*/].f_1 = 323;
Global_37284[136 /*12*/].f_2 = 33;
Global_37284[136 /*12*/].f_3 = 2;
Global_37284[136 /*12*/].f_10 = 1;
Global_37284[136 /*12*/].f_11 = 0;
Global_37284[136 /*12*/].f_4 = 1;
Global_37284[136 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[136 /*12*/].f_5[0 /*4*/].f_1 = 137;
Global_37284[136 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[136 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[137 /*12*/] = 324;
Global_37284[137 /*12*/].f_1 = 325;
Global_37284[137 /*12*/].f_2 = 2;
Global_37284[137 /*12*/].f_3 = 33;
Global_37284[137 /*12*/].f_10 = 0;
Global_37284[137 /*12*/].f_11 = 0;
Global_37284[137 /*12*/].f_4 = 0;
Global_37284[138 /*12*/] = 326;
Global_37284[138 /*12*/].f_1 = 327;
Global_37284[138 /*12*/].f_2 = 33;
Global_37284[138 /*12*/].f_3 = 2;
Global_37284[138 /*12*/].f_10 = 1;
Global_37284[138 /*12*/].f_11 = 0;
Global_37284[138 /*12*/].f_4 = 1;
Global_37284[138 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[138 /*12*/].f_5[0 /*4*/].f_1 = 139;
Global_37284[138 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[138 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[139 /*12*/] = 328;
Global_37284[139 /*12*/].f_1 = 329;
Global_37284[139 /*12*/].f_2 = 2;
Global_37284[139 /*12*/].f_3 = 33;
Global_37284[139 /*12*/].f_10 = 0;
Global_37284[139 /*12*/].f_11 = 0;
Global_37284[139 /*12*/].f_4 = 1;
Global_37284[139 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[139 /*12*/].f_5[0 /*4*/].f_1 = -1;
Global_37284[139 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[139 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[140 /*12*/] = 330;
Global_37284[140 /*12*/].f_1 = 331;
Global_37284[140 /*12*/].f_2 = 2;
Global_37284[140 /*12*/].f_3 = 33;
Global_37284[140 /*12*/].f_10 = 0;
Global_37284[140 /*12*/].f_11 = 0;
Global_37284[140 /*12*/].f_4 = 0;
Global_37284[141 /*12*/] = 332;
Global_37284[141 /*12*/].f_1 = 333;
Global_37284[141 /*12*/].f_2 = 29;
Global_37284[141 /*12*/].f_3 = 2;
Global_37284[141 /*12*/].f_10 = 0;
Global_37284[141 /*12*/].f_11 = 0;
Global_37284[141 /*12*/].f_4 = 1;
Global_37284[141 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[141 /*12*/].f_5[0 /*4*/].f_1 = 142;
Global_37284[141 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[141 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[142 /*12*/] = 334;
Global_37284[142 /*12*/].f_1 = 335;
Global_37284[142 /*12*/].f_2 = 2;
Global_37284[142 /*12*/].f_3 = 29;
Global_37284[142 /*12*/].f_10 = 0;
Global_37284[142 /*12*/].f_11 = 0;
Global_37284[142 /*12*/].f_4 = 0;
Global_37284[143 /*12*/] = 336;
Global_37284[143 /*12*/].f_1 = 337;
Global_37284[143 /*12*/].f_2 = 3;
Global_37284[143 /*12*/].f_3 = 2;
Global_37284[143 /*12*/].f_10 = 0;
Global_37284[143 /*12*/].f_11 = 0;
Global_37284[143 /*12*/].f_4 = 1;
Global_37284[143 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[143 /*12*/].f_5[0 /*4*/].f_1 = 144;
Global_37284[143 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[143 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[144 /*12*/] = 338;
Global_37284[144 /*12*/].f_1 = 339;
Global_37284[144 /*12*/].f_2 = 2;
Global_37284[144 /*12*/].f_3 = 3;
Global_37284[144 /*12*/].f_10 = 0;
Global_37284[144 /*12*/].f_11 = 0;
Global_37284[144 /*12*/].f_4 = 0;
Global_37284[145 /*12*/] = 343;
Global_37284[145 /*12*/].f_1 = 344;
Global_37284[145 /*12*/].f_2 = 34;
Global_37284[145 /*12*/].f_3 = 2;
Global_37284[145 /*12*/].f_10 = 0;
Global_37284[145 /*12*/].f_11 = 0;
Global_37284[145 /*12*/].f_4 = 1;
Global_37284[145 /*12*/].f_5[0 /*4*/] = 199;
Global_37284[145 /*12*/].f_5[0 /*4*/].f_1 = 146;
Global_37284[145 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[145 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[146 /*12*/] = 345;
Global_37284[146 /*12*/].f_1 = 346;
Global_37284[146 /*12*/].f_2 = 2;
Global_37284[146 /*12*/].f_3 = 34;
Global_37284[146 /*12*/].f_10 = 0;
Global_37284[146 /*12*/].f_11 = 0;
Global_37284[146 /*12*/].f_4 = 0;
Global_37284[147 /*12*/] = 319;
Global_37284[147 /*12*/].f_1 = 347;
Global_37284[147 /*12*/].f_2 = 26;
Global_37284[147 /*12*/].f_3 = 2;
Global_37284[147 /*12*/].f_10 = 0;
Global_37284[147 /*12*/].f_11 = 0;
Global_37284[147 /*12*/].f_4 = 0;
Global_37284[148 /*12*/] = 351;
Global_37284[148 /*12*/].f_1 = 352;
Global_37284[148 /*12*/].f_2 = 35;
Global_37284[148 /*12*/].f_3 = 2;
Global_37284[148 /*12*/].f_10 = 0;
Global_37284[148 /*12*/].f_11 = 0;
Global_37284[148 /*12*/].f_4 = 0;
Global_37284[149 /*12*/] = 351;
Global_37284[149 /*12*/].f_1 = 352;
Global_37284[149 /*12*/].f_2 = 35;
Global_37284[149 /*12*/].f_3 = 0;
Global_37284[149 /*12*/].f_10 = 0;
Global_37284[149 /*12*/].f_11 = 0;
Global_37284[149 /*12*/].f_4 = 0;
Global_37284[150 /*12*/] = 351;
Global_37284[150 /*12*/].f_1 = 352;
Global_37284[150 /*12*/].f_2 = 35;
Global_37284[150 /*12*/].f_3 = 1;
Global_37284[150 /*12*/].f_10 = 0;
Global_37284[150 /*12*/].f_11 = 0;
Global_37284[150 /*12*/].f_4 = 0;
Global_37284[151 /*12*/] = 355;
Global_37284[151 /*12*/].f_1 = 356;
Global_37284[151 /*12*/].f_2 = 36;
Global_37284[151 /*12*/].f_3 = 2;
Global_37284[151 /*12*/].f_10 = 0;
Global_37284[151 /*12*/].f_11 = 0;
Global_37284[151 /*12*/].f_4 = 0;
Global_37284[152 /*12*/] = 355;
Global_37284[152 /*12*/].f_1 = 356;
Global_37284[152 /*12*/].f_2 = 36;
Global_37284[152 /*12*/].f_3 = 0;
Global_37284[152 /*12*/].f_10 = 0;
Global_37284[152 /*12*/].f_11 = 0;
Global_37284[152 /*12*/].f_4 = 0;
Global_37284[153 /*12*/] = 355;
Global_37284[153 /*12*/].f_1 = 356;
Global_37284[153 /*12*/].f_2 = 36;
Global_37284[153 /*12*/].f_3 = 1;
Global_37284[153 /*12*/].f_10 = 0;
Global_37284[153 /*12*/].f_11 = 0;
Global_37284[153 /*12*/].f_4 = 0;
Global_37284[154 /*12*/] = 363;
Global_37284[154 /*12*/].f_1 = 364;
Global_37284[154 /*12*/].f_2 = 38;
Global_37284[154 /*12*/].f_3 = 2;
Global_37284[154 /*12*/].f_10 = 0;
Global_37284[154 /*12*/].f_11 = 0;
Global_37284[154 /*12*/].f_4 = 0;
Global_37284[155 /*12*/] = 365;
Global_37284[155 /*12*/].f_1 = 366;
Global_37284[155 /*12*/].f_2 = 11;
Global_37284[155 /*12*/].f_3 = 0;
Global_37284[155 /*12*/].f_10 = 0;
Global_37284[155 /*12*/].f_11 = 0;
Global_37284[155 /*12*/].f_4 = 0;
Global_37284[156 /*12*/] = 365;
Global_37284[156 /*12*/].f_1 = 366;
Global_37284[156 /*12*/].f_2 = 11;
Global_37284[156 /*12*/].f_3 = 1;
Global_37284[156 /*12*/].f_10 = 0;
Global_37284[156 /*12*/].f_11 = 0;
Global_37284[156 /*12*/].f_4 = 0;
Global_37284[157 /*12*/] = 365;
Global_37284[157 /*12*/].f_1 = 366;
Global_37284[157 /*12*/].f_2 = 11;
Global_37284[157 /*12*/].f_3 = 2;
Global_37284[157 /*12*/].f_10 = 0;
Global_37284[157 /*12*/].f_11 = 0;
Global_37284[157 /*12*/].f_4 = 0;
Global_37284[158 /*12*/] = 367;
Global_37284[158 /*12*/].f_1 = 368;
Global_37284[158 /*12*/].f_2 = 29;
Global_37284[158 /*12*/].f_3 = 2;
Global_37284[158 /*12*/].f_10 = 0;
Global_37284[158 /*12*/].f_11 = 0;
Global_37284[158 /*12*/].f_4 = 0;
Global_37284[159 /*12*/] = 372;
Global_37284[159 /*12*/].f_1 = 373;
Global_37284[159 /*12*/].f_2 = 39;
Global_37284[159 /*12*/].f_3 = 0;
Global_37284[159 /*12*/].f_10 = 0;
Global_37284[159 /*12*/].f_11 = 0;
Global_37284[159 /*12*/].f_4 = 0;
Global_37284[160 /*12*/] = 374;
Global_37284[160 /*12*/].f_1 = 375;
Global_37284[160 /*12*/].f_2 = 39;
Global_37284[160 /*12*/].f_3 = 1;
Global_37284[160 /*12*/].f_10 = 0;
Global_37284[160 /*12*/].f_11 = 0;
Global_37284[160 /*12*/].f_4 = 0;
Global_37284[161 /*12*/] = 417;
Global_37284[161 /*12*/].f_1 = 418;
Global_37284[161 /*12*/].f_2 = 40;
Global_37284[161 /*12*/].f_3 = 1;
Global_37284[161 /*12*/].f_10 = 0;
Global_37284[161 /*12*/].f_11 = 0;
Global_37284[161 /*12*/].f_4 = 0;
Global_37284[162 /*12*/] = 419;
Global_37284[162 /*12*/].f_1 = 420;
Global_37284[162 /*12*/].f_2 = 43;
Global_37284[162 /*12*/].f_3 = 0;
Global_37284[162 /*12*/].f_10 = 0;
Global_37284[162 /*12*/].f_11 = 0;
Global_37284[162 /*12*/].f_4 = 0;
Global_37284[163 /*12*/] = 421;
Global_37284[163 /*12*/].f_1 = 422;
Global_37284[163 /*12*/].f_2 = 43;
Global_37284[163 /*12*/].f_3 = 2;
Global_37284[163 /*12*/].f_10 = 0;
Global_37284[163 /*12*/].f_11 = 0;
Global_37284[163 /*12*/].f_4 = 0;
Global_37284[164 /*12*/] = 423;
Global_37284[164 /*12*/].f_1 = 424;
Global_37284[164 /*12*/].f_2 = 43;
Global_37284[164 /*12*/].f_3 = 1;
Global_37284[164 /*12*/].f_10 = 0;
Global_37284[164 /*12*/].f_11 = 0;
Global_37284[164 /*12*/].f_4 = 0;
Global_37284[165 /*12*/] = 425;
Global_37284[165 /*12*/].f_1 = 426;
Global_37284[165 /*12*/].f_2 = 44;
Global_37284[165 /*12*/].f_3 = 1;
Global_37284[165 /*12*/].f_10 = 0;
Global_37284[165 /*12*/].f_11 = 0;
Global_37284[165 /*12*/].f_4 = 0;
Global_37284[166 /*12*/] = 427;
Global_37284[166 /*12*/].f_1 = 428;
Global_37284[166 /*12*/].f_2 = 45;
Global_37284[166 /*12*/].f_3 = 0;
Global_37284[166 /*12*/].f_10 = 0;
Global_37284[166 /*12*/].f_11 = 0;
Global_37284[166 /*12*/].f_4 = 0;
Global_37284[167 /*12*/] = 429;
Global_37284[167 /*12*/].f_1 = 430;
Global_37284[167 /*12*/].f_2 = 46;
Global_37284[167 /*12*/].f_3 = 0;
Global_37284[167 /*12*/].f_10 = 0;
Global_37284[167 /*12*/].f_11 = 0;
Global_37284[167 /*12*/].f_4 = 0;
Global_37284[168 /*12*/] = 431;
Global_37284[168 /*12*/].f_1 = 432;
Global_37284[168 /*12*/].f_2 = 49;
Global_37284[168 /*12*/].f_3 = 0;
Global_37284[168 /*12*/].f_10 = 0;
Global_37284[168 /*12*/].f_11 = 0;
Global_37284[168 /*12*/].f_4 = 0;
Global_37284[169 /*12*/] = 433;
Global_37284[169 /*12*/].f_1 = 434;
Global_37284[169 /*12*/].f_2 = 49;
Global_37284[169 /*12*/].f_3 = 2;
Global_37284[169 /*12*/].f_10 = 0;
Global_37284[169 /*12*/].f_11 = 0;
Global_37284[169 /*12*/].f_4 = 0;
Global_37284[170 /*12*/] = 435;
Global_37284[170 /*12*/].f_1 = 436;
Global_37284[170 /*12*/].f_2 = 49;
Global_37284[170 /*12*/].f_3 = 1;
Global_37284[170 /*12*/].f_10 = 0;
Global_37284[170 /*12*/].f_11 = 0;
Global_37284[170 /*12*/].f_4 = 0;
Global_37284[171 /*12*/] = 437;
Global_37284[171 /*12*/].f_1 = 438;
Global_37284[171 /*12*/].f_2 = 50;
Global_37284[171 /*12*/].f_3 = 1;
Global_37284[171 /*12*/].f_10 = 0;
Global_37284[171 /*12*/].f_11 = 0;
Global_37284[171 /*12*/].f_4 = 0;
Global_37284[172 /*12*/] = 439;
Global_37284[172 /*12*/].f_1 = 440;
Global_37284[172 /*12*/].f_2 = 51;
Global_37284[172 /*12*/].f_3 = 0;
Global_37284[172 /*12*/].f_10 = 0;
Global_37284[172 /*12*/].f_11 = 0;
Global_37284[172 /*12*/].f_4 = 0;
Global_37284[173 /*12*/] = 441;
Global_37284[173 /*12*/].f_1 = 442;
Global_37284[173 /*12*/].f_2 = 51;
Global_37284[173 /*12*/].f_3 = 2;
Global_37284[173 /*12*/].f_10 = 0;
Global_37284[173 /*12*/].f_11 = 0;
Global_37284[173 /*12*/].f_4 = 0;
Global_37284[174 /*12*/] = 443;
Global_37284[174 /*12*/].f_1 = 444;
Global_37284[174 /*12*/].f_2 = 51;
Global_37284[174 /*12*/].f_3 = 1;
Global_37284[174 /*12*/].f_10 = 0;
Global_37284[174 /*12*/].f_11 = 0;
Global_37284[174 /*12*/].f_4 = 0;
Global_37284[175 /*12*/] = 445;
Global_37284[175 /*12*/].f_1 = 446;
Global_37284[175 /*12*/].f_2 = 52;
Global_37284[175 /*12*/].f_3 = 0;
Global_37284[175 /*12*/].f_10 = 0;
Global_37284[175 /*12*/].f_11 = 0;
Global_37284[175 /*12*/].f_4 = 0;
Global_37284[176 /*12*/] = 447;
Global_37284[176 /*12*/].f_1 = 448;
Global_37284[176 /*12*/].f_2 = 52;
Global_37284[176 /*12*/].f_3 = 2;
Global_37284[176 /*12*/].f_10 = 0;
Global_37284[176 /*12*/].f_11 = 0;
Global_37284[176 /*12*/].f_4 = 0;
Global_37284[177 /*12*/] = 449;
Global_37284[177 /*12*/].f_1 = 450;
Global_37284[177 /*12*/].f_2 = 52;
Global_37284[177 /*12*/].f_3 = 1;
Global_37284[177 /*12*/].f_10 = 0;
Global_37284[177 /*12*/].f_11 = 0;
Global_37284[177 /*12*/].f_4 = 0;
Global_37284[178 /*12*/] = 451;
Global_37284[178 /*12*/].f_1 = 452;
Global_37284[178 /*12*/].f_2 = 53;
Global_37284[178 /*12*/].f_3 = 2;
Global_37284[178 /*12*/].f_10 = 0;
Global_37284[178 /*12*/].f_11 = 0;
Global_37284[178 /*12*/].f_4 = 0;
Global_37284[179 /*12*/] = 453;
Global_37284[179 /*12*/].f_1 = 454;
Global_37284[179 /*12*/].f_2 = 53;
Global_37284[179 /*12*/].f_3 = 0;
Global_37284[179 /*12*/].f_10 = 0;
Global_37284[179 /*12*/].f_11 = 0;
Global_37284[179 /*12*/].f_4 = 0;
Global_37284[180 /*12*/] = 455;
Global_37284[180 /*12*/].f_1 = 456;
Global_37284[180 /*12*/].f_2 = 53;
Global_37284[180 /*12*/].f_3 = 1;
Global_37284[180 /*12*/].f_10 = 0;
Global_37284[180 /*12*/].f_11 = 0;
Global_37284[180 /*12*/].f_4 = 0;
Global_37284[181 /*12*/] = 457;
Global_37284[181 /*12*/].f_1 = 458;
Global_37284[181 /*12*/].f_2 = 4;
Global_37284[181 /*12*/].f_3 = 0;
Global_37284[181 /*12*/].f_10 = 0;
Global_37284[181 /*12*/].f_11 = 0;
Global_37284[181 /*12*/].f_4 = 0;
Global_37284[182 /*12*/] = 459;
Global_37284[182 /*12*/].f_1 = 460;
Global_37284[182 /*12*/].f_2 = 37;
Global_37284[182 /*12*/].f_3 = 0;
Global_37284[182 /*12*/].f_10 = 0;
Global_37284[182 /*12*/].f_11 = 0;
Global_37284[182 /*12*/].f_4 = 0;
Global_37284[183 /*12*/] = 461;
Global_37284[183 /*12*/].f_1 = 462;
Global_37284[183 /*12*/].f_2 = 37;
Global_37284[183 /*12*/].f_3 = 2;
Global_37284[183 /*12*/].f_10 = 0;
Global_37284[183 /*12*/].f_11 = 0;
Global_37284[183 /*12*/].f_4 = 0;
Global_37284[184 /*12*/] = 463;
Global_37284[184 /*12*/].f_1 = 464;
Global_37284[184 /*12*/].f_2 = 37;
Global_37284[184 /*12*/].f_3 = 1;
Global_37284[184 /*12*/].f_10 = 0;
Global_37284[184 /*12*/].f_11 = 0;
Global_37284[184 /*12*/].f_4 = 0;
Global_37284[185 /*12*/] = 471;
Global_37284[185 /*12*/].f_1 = 472;
Global_37284[185 /*12*/].f_2 = 54;
Global_37284[185 /*12*/].f_3 = 1;
Global_37284[185 /*12*/].f_10 = 0;
Global_37284[185 /*12*/].f_11 = 0;
Global_37284[185 /*12*/].f_4 = 0;
Global_37284[186 /*12*/] = 473;
Global_37284[186 /*12*/].f_1 = 474;
Global_37284[186 /*12*/].f_2 = 54;
Global_37284[186 /*12*/].f_3 = 0;
Global_37284[186 /*12*/].f_10 = 0;
Global_37284[186 /*12*/].f_11 = 0;
Global_37284[186 /*12*/].f_4 = 0;
Global_37284[187 /*12*/] = 475;
Global_37284[187 /*12*/].f_1 = 476;
Global_37284[187 /*12*/].f_2 = 55;
Global_37284[187 /*12*/].f_3 = 1;
Global_37284[187 /*12*/].f_10 = 0;
Global_37284[187 /*12*/].f_11 = 0;
Global_37284[187 /*12*/].f_4 = 0;
Global_37284[188 /*12*/] = 477;
Global_37284[188 /*12*/].f_1 = 478;
Global_37284[188 /*12*/].f_2 = 54;
Global_37284[188 /*12*/].f_3 = 2;
Global_37284[188 /*12*/].f_10 = 0;
Global_37284[188 /*12*/].f_11 = 0;
Global_37284[188 /*12*/].f_4 = 0;
Global_37284[189 /*12*/] = 479;
Global_37284[189 /*12*/].f_1 = 480;
Global_37284[189 /*12*/].f_2 = 55;
Global_37284[189 /*12*/].f_3 = 0;
Global_37284[189 /*12*/].f_10 = 0;
Global_37284[189 /*12*/].f_11 = 0;
Global_37284[189 /*12*/].f_4 = 0;
Global_37284[190 /*12*/] = 481;
Global_37284[190 /*12*/].f_1 = 482;
Global_37284[190 /*12*/].f_2 = 55;
Global_37284[190 /*12*/].f_3 = 2;
Global_37284[190 /*12*/].f_10 = 0;
Global_37284[190 /*12*/].f_11 = 0;
Global_37284[190 /*12*/].f_4 = 0;
Global_37284[191 /*12*/] = 483;
Global_37284[191 /*12*/].f_1 = 484;
Global_37284[191 /*12*/].f_2 = 12;
Global_37284[191 /*12*/].f_3 = 0;
Global_37284[191 /*12*/].f_10 = 0;
Global_37284[191 /*12*/].f_11 = 0;
Global_37284[191 /*12*/].f_4 = 0;
Global_37284[192 /*12*/] = 485;
Global_37284[192 /*12*/].f_1 = 486;
Global_37284[192 /*12*/].f_2 = 12;
Global_37284[192 /*12*/].f_3 = 1;
Global_37284[192 /*12*/].f_10 = 0;
Global_37284[192 /*12*/].f_11 = 0;
Global_37284[192 /*12*/].f_4 = 0;
Global_37284[193 /*12*/] = 487;
Global_37284[193 /*12*/].f_1 = 488;
Global_37284[193 /*12*/].f_2 = 12;
Global_37284[193 /*12*/].f_3 = 2;
Global_37284[193 /*12*/].f_10 = 0;
Global_37284[193 /*12*/].f_11 = 0;
Global_37284[193 /*12*/].f_4 = 0;
Global_37284[194 /*12*/] = 510;
Global_37284[194 /*12*/].f_1 = 511;
Global_37284[194 /*12*/].f_2 = 56;
Global_37284[194 /*12*/].f_3 = 0;
Global_37284[194 /*12*/].f_10 = 0;
Global_37284[194 /*12*/].f_11 = 0;
Global_37284[194 /*12*/].f_4 = 0;
Global_37284[195 /*12*/] = 512;
Global_37284[195 /*12*/].f_1 = 513;
Global_37284[195 /*12*/].f_2 = 56;
Global_37284[195 /*12*/].f_3 = 0;
Global_37284[195 /*12*/].f_10 = 0;
Global_37284[195 /*12*/].f_11 = 0;
Global_37284[195 /*12*/].f_4 = 0;
Global_37284[196 /*12*/] = 514;
Global_37284[196 /*12*/].f_1 = 515;
Global_37284[196 /*12*/].f_2 = 56;
Global_37284[196 /*12*/].f_3 = 0;
Global_37284[196 /*12*/].f_10 = 0;
Global_37284[196 /*12*/].f_11 = 0;
Global_37284[196 /*12*/].f_4 = 0;
Global_37284[197 /*12*/] = 516;
Global_37284[197 /*12*/].f_1 = 517;
Global_37284[197 /*12*/].f_2 = 56;
Global_37284[197 /*12*/].f_3 = 0;
Global_37284[197 /*12*/].f_10 = 0;
Global_37284[197 /*12*/].f_11 = 0;
Global_37284[197 /*12*/].f_4 = 0;
Global_37284[198 /*12*/] = 518;
Global_37284[198 /*12*/].f_1 = 519;
Global_37284[198 /*12*/].f_2 = 56;
Global_37284[198 /*12*/].f_3 = 0;
Global_37284[198 /*12*/].f_10 = 0;
Global_37284[198 /*12*/].f_11 = 0;
Global_37284[198 /*12*/].f_4 = 0;
Global_37284[199 /*12*/] = 520;
Global_37284[199 /*12*/].f_1 = 521;
Global_37284[199 /*12*/].f_2 = 57;
Global_37284[199 /*12*/].f_3 = 0;
Global_37284[199 /*12*/].f_10 = 1;
Global_37284[199 /*12*/].f_11 = 60000;
Global_37284[199 /*12*/].f_4 = 1;
Global_37284[199 /*12*/].f_5[0 /*4*/] = 536;
Global_37284[199 /*12*/].f_5[0 /*4*/].f_1 = 200;
Global_37284[199 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[199 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[200 /*12*/] = 522;
Global_37284[200 /*12*/].f_1 = 523;
Global_37284[200 /*12*/].f_2 = 0;
Global_37284[200 /*12*/].f_3 = 57;
Global_37284[200 /*12*/].f_10 = 0;
Global_37284[200 /*12*/].f_11 = 0;
Global_37284[200 /*12*/].f_4 = 1;
Global_37284[200 /*12*/].f_5[0 /*4*/] = 537;
Global_37284[200 /*12*/].f_5[0 /*4*/].f_1 = 201;
Global_37284[200 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[200 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[201 /*12*/] = 524;
Global_37284[201 /*12*/].f_1 = 525;
Global_37284[201 /*12*/].f_2 = 57;
Global_37284[201 /*12*/].f_3 = 0;
Global_37284[201 /*12*/].f_10 = 1;
Global_37284[201 /*12*/].f_11 = 60000;
Global_37284[201 /*12*/].f_4 = 1;
Global_37284[201 /*12*/].f_5[0 /*4*/] = 538;
Global_37284[201 /*12*/].f_5[0 /*4*/].f_1 = 202;
Global_37284[201 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[201 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[202 /*12*/] = 526;
Global_37284[202 /*12*/].f_1 = 527;
Global_37284[202 /*12*/].f_2 = 0;
Global_37284[202 /*12*/].f_3 = 57;
Global_37284[202 /*12*/].f_10 = 0;
Global_37284[202 /*12*/].f_11 = 0;
Global_37284[202 /*12*/].f_4 = 1;
Global_37284[202 /*12*/].f_5[0 /*4*/] = 539;
Global_37284[202 /*12*/].f_5[0 /*4*/].f_1 = 203;
Global_37284[202 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[202 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[203 /*12*/] = 528;
Global_37284[203 /*12*/].f_1 = 529;
Global_37284[203 /*12*/].f_2 = 57;
Global_37284[203 /*12*/].f_3 = 0;
Global_37284[203 /*12*/].f_10 = 1;
Global_37284[203 /*12*/].f_11 = 60000;
Global_37284[203 /*12*/].f_4 = 1;
Global_37284[203 /*12*/].f_5[0 /*4*/] = 540;
Global_37284[203 /*12*/].f_5[0 /*4*/].f_1 = 204;
Global_37284[203 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[203 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[204 /*12*/] = 530;
Global_37284[204 /*12*/].f_1 = 531;
Global_37284[204 /*12*/].f_2 = 0;
Global_37284[204 /*12*/].f_3 = 57;
Global_37284[204 /*12*/].f_10 = 0;
Global_37284[204 /*12*/].f_11 = 0;
Global_37284[204 /*12*/].f_4 = 1;
Global_37284[204 /*12*/].f_5[0 /*4*/] = 541;
Global_37284[204 /*12*/].f_5[0 /*4*/].f_1 = 205;
Global_37284[204 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[204 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[205 /*12*/] = 532;
Global_37284[205 /*12*/].f_1 = 533;
Global_37284[205 /*12*/].f_2 = 57;
Global_37284[205 /*12*/].f_3 = 0;
Global_37284[205 /*12*/].f_10 = 1;
Global_37284[205 /*12*/].f_11 = 60000;
Global_37284[205 /*12*/].f_4 = 1;
Global_37284[205 /*12*/].f_5[0 /*4*/] = 542;
Global_37284[205 /*12*/].f_5[0 /*4*/].f_1 = 206;
Global_37284[205 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[205 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[206 /*12*/] = 534;
Global_37284[206 /*12*/].f_1 = 535;
Global_37284[206 /*12*/].f_2 = 0;
Global_37284[206 /*12*/].f_3 = 57;
Global_37284[206 /*12*/].f_10 = 0;
Global_37284[206 /*12*/].f_11 = 0;
Global_37284[206 /*12*/].f_4 = 0;
Global_37284[207 /*12*/] = 543;
Global_37284[207 /*12*/].f_1 = 544;
Global_37284[207 /*12*/].f_2 = 58;
Global_37284[207 /*12*/].f_3 = 0;
Global_37284[207 /*12*/].f_10 = 1;
Global_37284[207 /*12*/].f_11 = 60000;
Global_37284[207 /*12*/].f_4 = 1;
Global_37284[207 /*12*/].f_5[0 /*4*/] = 557;
Global_37284[207 /*12*/].f_5[0 /*4*/].f_1 = 208;
Global_37284[207 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[207 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[208 /*12*/] = 545;
Global_37284[208 /*12*/].f_1 = 546;
Global_37284[208 /*12*/].f_2 = 0;
Global_37284[208 /*12*/].f_3 = 58;
Global_37284[208 /*12*/].f_10 = 0;
Global_37284[208 /*12*/].f_11 = 0;
Global_37284[208 /*12*/].f_4 = 1;
Global_37284[208 /*12*/].f_5[0 /*4*/] = 558;
Global_37284[208 /*12*/].f_5[0 /*4*/].f_1 = 209;
Global_37284[208 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[208 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[209 /*12*/] = 547;
Global_37284[209 /*12*/].f_1 = 548;
Global_37284[209 /*12*/].f_2 = 58;
Global_37284[209 /*12*/].f_3 = 0;
Global_37284[209 /*12*/].f_10 = 1;
Global_37284[209 /*12*/].f_11 = 60000;
Global_37284[209 /*12*/].f_4 = 1;
Global_37284[209 /*12*/].f_5[0 /*4*/] = 559;
Global_37284[209 /*12*/].f_5[0 /*4*/].f_1 = 210;
Global_37284[209 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[209 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[210 /*12*/] = 549;
Global_37284[210 /*12*/].f_1 = 550;
Global_37284[210 /*12*/].f_2 = 0;
Global_37284[210 /*12*/].f_3 = 58;
Global_37284[210 /*12*/].f_10 = 0;
Global_37284[210 /*12*/].f_11 = 0;
Global_37284[210 /*12*/].f_4 = 1;
Global_37284[210 /*12*/].f_5[0 /*4*/] = 560;
Global_37284[210 /*12*/].f_5[0 /*4*/].f_1 = 211;
Global_37284[210 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[210 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[211 /*12*/] = 551;
Global_37284[211 /*12*/].f_1 = 552;
Global_37284[211 /*12*/].f_2 = 58;
Global_37284[211 /*12*/].f_3 = 0;
Global_37284[211 /*12*/].f_10 = 1;
Global_37284[211 /*12*/].f_11 = 60000;
Global_37284[211 /*12*/].f_4 = 1;
Global_37284[211 /*12*/].f_5[0 /*4*/] = 561;
Global_37284[211 /*12*/].f_5[0 /*4*/].f_1 = 212;
Global_37284[211 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[211 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[212 /*12*/] = 553;
Global_37284[212 /*12*/].f_1 = 554;
Global_37284[212 /*12*/].f_2 = 0;
Global_37284[212 /*12*/].f_3 = 58;
Global_37284[212 /*12*/].f_10 = 0;
Global_37284[212 /*12*/].f_11 = 0;
Global_37284[212 /*12*/].f_4 = 1;
Global_37284[212 /*12*/].f_5[0 /*4*/] = 562;
Global_37284[212 /*12*/].f_5[0 /*4*/].f_1 = -1;
Global_37284[212 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[212 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[213 /*12*/] = 555;
Global_37284[213 /*12*/].f_1 = 556;
Global_37284[213 /*12*/].f_2 = 58;
Global_37284[213 /*12*/].f_3 = 0;
Global_37284[213 /*12*/].f_10 = 1;
Global_37284[213 /*12*/].f_11 = 60000;
Global_37284[213 /*12*/].f_4 = 0;
Global_37284[214 /*12*/] = 563;
Global_37284[214 /*12*/].f_1 = 564;
Global_37284[214 /*12*/].f_2 = 59;
Global_37284[214 /*12*/].f_3 = 0;
Global_37284[214 /*12*/].f_10 = 1;
Global_37284[214 /*12*/].f_11 = 60000;
Global_37284[214 /*12*/].f_4 = 1;
Global_37284[214 /*12*/].f_5[0 /*4*/] = 579;
Global_37284[214 /*12*/].f_5[0 /*4*/].f_1 = 215;
Global_37284[214 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[214 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[215 /*12*/] = 565;
Global_37284[215 /*12*/].f_1 = 566;
Global_37284[215 /*12*/].f_2 = 0;
Global_37284[215 /*12*/].f_3 = 59;
Global_37284[215 /*12*/].f_10 = 0;
Global_37284[215 /*12*/].f_11 = 0;
Global_37284[215 /*12*/].f_4 = 1;
Global_37284[215 /*12*/].f_5[0 /*4*/] = 580;
Global_37284[215 /*12*/].f_5[0 /*4*/].f_1 = 216;
Global_37284[215 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[215 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[216 /*12*/] = 567;
Global_37284[216 /*12*/].f_1 = 568;
Global_37284[216 /*12*/].f_2 = 59;
Global_37284[216 /*12*/].f_3 = 0;
Global_37284[216 /*12*/].f_10 = 1;
Global_37284[216 /*12*/].f_11 = 60000;
Global_37284[216 /*12*/].f_4 = 1;
Global_37284[216 /*12*/].f_5[0 /*4*/] = 581;
Global_37284[216 /*12*/].f_5[0 /*4*/].f_1 = 217;
Global_37284[216 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[216 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[217 /*12*/] = 569;
Global_37284[217 /*12*/].f_1 = 570;
Global_37284[217 /*12*/].f_2 = 0;
Global_37284[217 /*12*/].f_3 = 59;
Global_37284[217 /*12*/].f_10 = 0;
Global_37284[217 /*12*/].f_11 = 0;
Global_37284[217 /*12*/].f_4 = 1;
Global_37284[217 /*12*/].f_5[0 /*4*/] = 582;
Global_37284[217 /*12*/].f_5[0 /*4*/].f_1 = 218;
Global_37284[217 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[217 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[218 /*12*/] = 571;
Global_37284[218 /*12*/].f_1 = 572;
Global_37284[218 /*12*/].f_2 = 59;
Global_37284[218 /*12*/].f_3 = 0;
Global_37284[218 /*12*/].f_10 = 1;
Global_37284[218 /*12*/].f_11 = 60000;
Global_37284[218 /*12*/].f_4 = 1;
Global_37284[218 /*12*/].f_5[0 /*4*/] = 583;
Global_37284[218 /*12*/].f_5[0 /*4*/].f_1 = 219;
Global_37284[218 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[218 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[219 /*12*/] = 573;
Global_37284[219 /*12*/].f_1 = 574;
Global_37284[219 /*12*/].f_2 = 0;
Global_37284[219 /*12*/].f_3 = 59;
Global_37284[219 /*12*/].f_10 = 0;
Global_37284[219 /*12*/].f_11 = 0;
Global_37284[219 /*12*/].f_4 = 1;
Global_37284[219 /*12*/].f_5[0 /*4*/] = 584;
Global_37284[219 /*12*/].f_5[0 /*4*/].f_1 = 220;
Global_37284[219 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[219 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[220 /*12*/] = 575;
Global_37284[220 /*12*/].f_1 = 576;
Global_37284[220 /*12*/].f_2 = 59;
Global_37284[220 /*12*/].f_3 = 0;
Global_37284[220 /*12*/].f_10 = 1;
Global_37284[220 /*12*/].f_11 = 60000;
Global_37284[220 /*12*/].f_4 = 1;
Global_37284[220 /*12*/].f_5[0 /*4*/] = 585;
Global_37284[220 /*12*/].f_5[0 /*4*/].f_1 = 221;
Global_37284[220 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[220 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[221 /*12*/] = 577;
Global_37284[221 /*12*/].f_1 = 578;
Global_37284[221 /*12*/].f_2 = 0;
Global_37284[221 /*12*/].f_3 = 59;
Global_37284[221 /*12*/].f_10 = 0;
Global_37284[221 /*12*/].f_11 = 0;
Global_37284[221 /*12*/].f_4 = 0;
Global_37284[222 /*12*/] = 586;
Global_37284[222 /*12*/].f_1 = 587;
Global_37284[222 /*12*/].f_2 = 60;
Global_37284[222 /*12*/].f_3 = 2;
Global_37284[222 /*12*/].f_10 = 1;
Global_37284[222 /*12*/].f_11 = 60000;
Global_37284[222 /*12*/].f_4 = 1;
Global_37284[222 /*12*/].f_5[0 /*4*/] = 600;
Global_37284[222 /*12*/].f_5[0 /*4*/].f_1 = 223;
Global_37284[222 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[222 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[223 /*12*/] = 588;
Global_37284[223 /*12*/].f_1 = 589;
Global_37284[223 /*12*/].f_2 = 2;
Global_37284[223 /*12*/].f_3 = 60;
Global_37284[223 /*12*/].f_10 = 0;
Global_37284[223 /*12*/].f_11 = 0;
Global_37284[223 /*12*/].f_4 = 1;
Global_37284[223 /*12*/].f_5[0 /*4*/] = 601;
Global_37284[223 /*12*/].f_5[0 /*4*/].f_1 = 224;
Global_37284[223 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[223 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[224 /*12*/] = 590;
Global_37284[224 /*12*/].f_1 = 591;
Global_37284[224 /*12*/].f_2 = 60;
Global_37284[224 /*12*/].f_3 = 2;
Global_37284[224 /*12*/].f_10 = 1;
Global_37284[224 /*12*/].f_11 = 60000;
Global_37284[224 /*12*/].f_4 = 1;
Global_37284[224 /*12*/].f_5[0 /*4*/] = 602;
Global_37284[224 /*12*/].f_5[0 /*4*/].f_1 = 225;
Global_37284[224 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[224 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[225 /*12*/] = 592;
Global_37284[225 /*12*/].f_1 = 593;
Global_37284[225 /*12*/].f_2 = 2;
Global_37284[225 /*12*/].f_3 = 60;
Global_37284[225 /*12*/].f_10 = 0;
Global_37284[225 /*12*/].f_11 = 0;
Global_37284[225 /*12*/].f_4 = 1;
Global_37284[225 /*12*/].f_5[0 /*4*/] = 603;
Global_37284[225 /*12*/].f_5[0 /*4*/].f_1 = 226;
Global_37284[225 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[225 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[226 /*12*/] = 594;
Global_37284[226 /*12*/].f_1 = 595;
Global_37284[226 /*12*/].f_2 = 60;
Global_37284[226 /*12*/].f_3 = 2;
Global_37284[226 /*12*/].f_10 = 1;
Global_37284[226 /*12*/].f_11 = 60000;
Global_37284[226 /*12*/].f_4 = 1;
Global_37284[226 /*12*/].f_5[0 /*4*/] = 604;
Global_37284[226 /*12*/].f_5[0 /*4*/].f_1 = 227;
Global_37284[226 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[226 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[227 /*12*/] = 596;
Global_37284[227 /*12*/].f_1 = 597;
Global_37284[227 /*12*/].f_2 = 2;
Global_37284[227 /*12*/].f_3 = 60;
Global_37284[227 /*12*/].f_10 = 1;
Global_37284[227 /*12*/].f_11 = 60000;
Global_37284[227 /*12*/].f_4 = 1;
Global_37284[227 /*12*/].f_5[0 /*4*/] = 605;
Global_37284[227 /*12*/].f_5[0 /*4*/].f_1 = 228;
Global_37284[227 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[227 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[228 /*12*/] = 598;
Global_37284[228 /*12*/].f_1 = 599;
Global_37284[228 /*12*/].f_2 = 2;
Global_37284[228 /*12*/].f_3 = 60;
Global_37284[228 /*12*/].f_10 = 0;
Global_37284[228 /*12*/].f_11 = 0;
Global_37284[228 /*12*/].f_4 = 0;
Global_37284[229 /*12*/] = 606;
Global_37284[229 /*12*/].f_1 = 607;
Global_37284[229 /*12*/].f_2 = 61;
Global_37284[229 /*12*/].f_3 = 2;
Global_37284[229 /*12*/].f_10 = 1;
Global_37284[229 /*12*/].f_11 = 60000;
Global_37284[229 /*12*/].f_4 = 1;
Global_37284[229 /*12*/].f_5[0 /*4*/] = 610;
Global_37284[229 /*12*/].f_5[0 /*4*/].f_1 = 230;
Global_37284[229 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[229 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[230 /*12*/] = 608;
Global_37284[230 /*12*/].f_1 = 609;
Global_37284[230 /*12*/].f_2 = 2;
Global_37284[230 /*12*/].f_3 = 61;
Global_37284[230 /*12*/].f_10 = 0;
Global_37284[230 /*12*/].f_11 = 0;
Global_37284[230 /*12*/].f_4 = 1;
Global_37284[230 /*12*/].f_5[0 /*4*/] = 617;
Global_37284[230 /*12*/].f_5[0 /*4*/].f_1 = 231;
Global_37284[230 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[230 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[231 /*12*/] = 611;
Global_37284[231 /*12*/].f_1 = 612;
Global_37284[231 /*12*/].f_2 = 61;
Global_37284[231 /*12*/].f_3 = 2;
Global_37284[231 /*12*/].f_10 = 1;
Global_37284[231 /*12*/].f_11 = 60000;
Global_37284[231 /*12*/].f_4 = 1;
Global_37284[231 /*12*/].f_5[0 /*4*/] = 618;
Global_37284[231 /*12*/].f_5[0 /*4*/].f_1 = 232;
Global_37284[231 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[231 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[232 /*12*/] = 613;
Global_37284[232 /*12*/].f_1 = 614;
Global_37284[232 /*12*/].f_2 = 2;
Global_37284[232 /*12*/].f_3 = 61;
Global_37284[232 /*12*/].f_10 = 0;
Global_37284[232 /*12*/].f_11 = 0;
Global_37284[232 /*12*/].f_4 = 1;
Global_37284[232 /*12*/].f_5[0 /*4*/] = 619;
Global_37284[232 /*12*/].f_5[0 /*4*/].f_1 = 233;
Global_37284[232 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[232 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[233 /*12*/] = 615;
Global_37284[233 /*12*/].f_1 = 616;
Global_37284[233 /*12*/].f_2 = 61;
Global_37284[233 /*12*/].f_3 = 2;
Global_37284[233 /*12*/].f_10 = 1;
Global_37284[233 /*12*/].f_11 = 60000;
Global_37284[233 /*12*/].f_4 = 1;
Global_37284[233 /*12*/].f_5[0 /*4*/] = 622;
Global_37284[233 /*12*/].f_5[0 /*4*/].f_1 = 234;
Global_37284[233 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[233 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[234 /*12*/] = 620;
Global_37284[234 /*12*/].f_1 = 621;
Global_37284[234 /*12*/].f_2 = 2;
Global_37284[234 /*12*/].f_3 = 61;
Global_37284[234 /*12*/].f_10 = 0;
Global_37284[234 /*12*/].f_11 = 0;
Global_37284[234 /*12*/].f_4 = 0;
Global_37284[235 /*12*/] = 623;
Global_37284[235 /*12*/].f_1 = 624;
Global_37284[235 /*12*/].f_2 = 62;
Global_37284[235 /*12*/].f_3 = 2;
Global_37284[235 /*12*/].f_10 = 1;
Global_37284[235 /*12*/].f_11 = 60000;
Global_37284[235 /*12*/].f_4 = 1;
Global_37284[235 /*12*/].f_5[0 /*4*/] = 635;
Global_37284[235 /*12*/].f_5[0 /*4*/].f_1 = 236;
Global_37284[235 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[235 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[236 /*12*/] = 625;
Global_37284[236 /*12*/].f_1 = 626;
Global_37284[236 /*12*/].f_2 = 2;
Global_37284[236 /*12*/].f_3 = 62;
Global_37284[236 /*12*/].f_10 = 0;
Global_37284[236 /*12*/].f_11 = 0;
Global_37284[236 /*12*/].f_4 = 1;
Global_37284[236 /*12*/].f_5[0 /*4*/] = 636;
Global_37284[236 /*12*/].f_5[0 /*4*/].f_1 = 237;
Global_37284[236 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[236 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[237 /*12*/] = 627;
Global_37284[237 /*12*/].f_1 = 628;
Global_37284[237 /*12*/].f_2 = 62;
Global_37284[237 /*12*/].f_3 = 2;
Global_37284[237 /*12*/].f_10 = 1;
Global_37284[237 /*12*/].f_11 = 60000;
Global_37284[237 /*12*/].f_4 = 1;
Global_37284[237 /*12*/].f_5[0 /*4*/] = 637;
Global_37284[237 /*12*/].f_5[0 /*4*/].f_1 = 238;
Global_37284[237 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[237 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[238 /*12*/] = 629;
Global_37284[238 /*12*/].f_1 = 630;
Global_37284[238 /*12*/].f_2 = 2;
Global_37284[238 /*12*/].f_3 = 62;
Global_37284[238 /*12*/].f_10 = 0;
Global_37284[238 /*12*/].f_11 = 0;
Global_37284[238 /*12*/].f_4 = 1;
Global_37284[238 /*12*/].f_5[0 /*4*/] = 638;
Global_37284[238 /*12*/].f_5[0 /*4*/].f_1 = 239;
Global_37284[238 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[238 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[239 /*12*/] = 631;
Global_37284[239 /*12*/].f_1 = 632;
Global_37284[239 /*12*/].f_2 = 62;
Global_37284[239 /*12*/].f_3 = 2;
Global_37284[239 /*12*/].f_10 = 1;
Global_37284[239 /*12*/].f_11 = 60000;
Global_37284[239 /*12*/].f_4 = 1;
Global_37284[239 /*12*/].f_5[0 /*4*/] = 639;
Global_37284[239 /*12*/].f_5[0 /*4*/].f_1 = 240;
Global_37284[239 /*12*/].f_5[0 /*4*/].f_2 = 0;
Global_37284[239 /*12*/].f_5[0 /*4*/].f_3 = -1;
Global_37284[240 /*12*/] = 633;
Global_37284[240 /*12*/].f_1 = 634;
Global_37284[240 /*12*/].f_2 = 2;
Global_37284[240 /*12*/].f_3 = 62;
Global_37284[240 /*12*/].f_10 = 0;
Global_37284[240 /*12*/].f_11 = 0;
Global_37284[240 /*12*/].f_4 = 0;
Global_37284[241 /*12*/] = 646;
Global_37284[241 /*12*/].f_1 = 647;
Global_37284[241 /*12*/].f_2 = 36;
Global_37284[241 /*12*/].f_3 = 2;
Global_37284[241 /*12*/].f_10 = 0;
Global_37284[241 /*12*/].f_11 = 0;
Global_37284[241 /*12*/].f_4 = 0;
Global_37284[242 /*12*/] = 648;
Global_37284[242 /*12*/].f_1 = 649;
Global_37284[242 /*12*/].f_2 = 36;
Global_37284[242 /*12*/].f_3 = 0;
Global_37284[242 /*12*/].f_10 = 0;
Global_37284[242 /*12*/].f_11 = 0;
Global_37284[242 /*12*/].f_4 = 0;
Global_37284[243 /*12*/] = 650;
Global_37284[243 /*12*/].f_1 = 651;
Global_37284[243 /*12*/].f_2 = 36;
Global_37284[243 /*12*/].f_3 = 1;
Global_37284[243 /*12*/].f_10 = 0;
Global_37284[243 /*12*/].f_11 = 0;
Global_37284[243 /*12*/].f_4 = 0;
Global_37284[244 /*12*/] = 655;
Global_37284[244 /*12*/].f_1 = 656;
Global_37284[244 /*12*/].f_2 = 65;
Global_37284[244 /*12*/].f_3 = 1;
Global_37284[244 /*12*/].f_10 = 0;
Global_37284[244 /*12*/].f_11 = 0;
Global_37284[244 /*12*/].f_4 = 0;
Global_37284[245 /*12*/] = 657;
Global_37284[245 /*12*/].f_1 = 658;
Global_37284[245 /*12*/].f_2 = 65;
Global_37284[245 /*12*/].f_3 = 1;
Global_37284[245 /*12*/].f_10 = 0;
Global_37284[245 /*12*/].f_11 = 0;
Global_37284[245 /*12*/].f_4 = 0;
Global_37284[246 /*12*/] = 659;
Global_37284[246 /*12*/].f_1 = 660;
Global_37284[246 /*12*/].f_2 = 65;
Global_37284[246 /*12*/].f_3 = 1;
Global_37284[246 /*12*/].f_10 = 0;
Global_37284[246 /*12*/].f_11 = 0;
Global_37284[246 /*12*/].f_4 = 0;
Global_37284[247 /*12*/] = 661;
Global_37284[247 /*12*/].f_1 = 662;
Global_37284[247 /*12*/].f_2 = 65;
Global_37284[247 /*12*/].f_3 = 1;
Global_37284[247 /*12*/].f_10 = 0;
Global_37284[247 /*12*/].f_11 = 0;
Global_37284[247 /*12*/].f_4 = 0;
Global_37284[248 /*12*/] = 663;
Global_37284[248 /*12*/].f_1 = 664;
Global_37284[248 /*12*/].f_2 = 33;
Global_37284[248 /*12*/].f_3 = 2;
Global_37284[248 /*12*/].f_10 = 0;
Global_37284[248 /*12*/].f_11 = 40000;
Global_37284[248 /*12*/].f_4 = 0;
Global_37284[249 /*12*/] = 665;
Global_37284[249 /*12*/].f_1 = 666;
Global_37284[249 /*12*/].f_2 = 19;
Global_37284[249 /*12*/].f_3 = 1;
Global_37284[249 /*12*/].f_10 = 1;
Global_37284[249 /*12*/].f_11 = 0;
Global_37284[249 /*12*/].f_4 = 0;
Global_37284[250 /*12*/] = 667;
Global_37284[250 /*12*/].f_1 = 668;
Global_37284[250 /*12*/].f_2 = 19;
Global_37284[250 /*12*/].f_3 = 1;
Global_37284[250 /*12*/].f_10 = 1;
Global_37284[250 /*12*/].f_11 = 0;
Global_37284[250 /*12*/].f_4 = 0;
Global_37284[251 /*12*/] = 669;
Global_37284[251 /*12*/].f_1 = 670;
Global_37284[251 /*12*/].f_2 = 19;
Global_37284[251 /*12*/].f_3 = 1;
Global_37284[251 /*12*/].f_10 = 1;
Global_37284[251 /*12*/].f_11 = 0;
Global_37284[251 /*12*/].f_4 = 0;
Global_37284[252 /*12*/] = 671;
Global_37284[252 /*12*/].f_1 = 672;
Global_37284[252 /*12*/].f_2 = 19;
Global_37284[252 /*12*/].f_3 = 1;
Global_37284[252 /*12*/].f_10 = 1;
Global_37284[252 /*12*/].f_11 = 0;
Global_37284[252 /*12*/].f_4 = 0;
Global_37284[253 /*12*/] = 673;
Global_37284[253 /*12*/].f_1 = 674;
Global_37284[253 /*12*/].f_2 = 19;
Global_37284[253 /*12*/].f_3 = 1;
Global_37284[253 /*12*/].f_10 = 1;
Global_37284[253 /*12*/].f_11 = 0;
Global_37284[253 /*12*/].f_4 = 0;
Global_37284[254 /*12*/] = 675;
Global_37284[254 /*12*/].f_1 = 676;
Global_37284[254 /*12*/].f_2 = 19;
Global_37284[254 /*12*/].f_3 = 1;
Global_37284[254 /*12*/].f_10 = 1;
Global_37284[254 /*12*/].f_11 = 0;
Global_37284[254 /*12*/].f_4 = 0;
Global_37284[255 /*12*/] = 679;
Global_37284[255 /*12*/].f_1 = 680;
Global_37284[255 /*12*/].f_2 = 19;
Global_37284[255 /*12*/].f_3 = 1;
Global_37284[255 /*12*/].f_10 = 1;
Global_37284[255 /*12*/].f_11 = 0;
Global_37284[255 /*12*/].f_4 = 0;
Global_37284[256 /*12*/] = 677;
Global_37284[256 /*12*/].f_1 = 678;
Global_37284[256 /*12*/].f_2 = 19;
Global_37284[256 /*12*/].f_3 = 1;
Global_37284[256 /*12*/].f_10 = 1;
Global_37284[256 /*12*/].f_11 = 0;
Global_37284[256 /*12*/].f_4 = 0;
Global_37284[257 /*12*/] = 681;
Global_37284[257 /*12*/].f_1 = 682;
Global_37284[257 /*12*/].f_2 = 19;
Global_37284[257 /*12*/].f_3 = 1;
Global_37284[257 /*12*/].f_10 = 1;
Global_37284[257 /*12*/].f_11 = 0;
Global_37284[257 /*12*/].f_4 = 0;
Global_37284[258 /*12*/] = 683;
Global_37284[258 /*12*/].f_1 = 684;
Global_37284[258 /*12*/].f_2 = 19;
Global_37284[258 /*12*/].f_3 = 1;
Global_37284[258 /*12*/].f_10 = 1;
Global_37284[258 /*12*/].f_11 = 0;
Global_37284[258 /*12*/].f_4 = 0;
Global_37284[259 /*12*/] = 685;
Global_37284[259 /*12*/].f_1 = 686;
Global_37284[259 /*12*/].f_2 = 19;
Global_37284[259 /*12*/].f_3 = 1;
Global_37284[259 /*12*/].f_10 = 1;
Global_37284[259 /*12*/].f_11 = 0;
Global_37284[259 /*12*/].f_4 = 0;
Global_37284[260 /*12*/] = 687;
Global_37284[260 /*12*/].f_1 = 688;
Global_37284[260 /*12*/].f_2 = 19;
Global_37284[260 /*12*/].f_3 = 1;
Global_37284[260 /*12*/].f_10 = 1;
Global_37284[260 /*12*/].f_11 = 0;
Global_37284[260 /*12*/].f_4 = 0;
Global_37284[261 /*12*/] = 691;
Global_37284[261 /*12*/].f_1 = 692;
Global_37284[261 /*12*/].f_2 = 19;
Global_37284[261 /*12*/].f_3 = 1;
Global_37284[261 /*12*/].f_10 = 1;
Global_37284[261 /*12*/].f_11 = 0;
Global_37284[261 /*12*/].f_4 = 0;
Global_37284[262 /*12*/] = 689;
Global_37284[262 /*12*/].f_1 = 690;
Global_37284[262 /*12*/].f_2 = 19;
Global_37284[262 /*12*/].f_3 = 1;
Global_37284[262 /*12*/].f_10 = 1;
Global_37284[262 /*12*/].f_11 = 0;
Global_37284[262 /*12*/].f_4 = 0;
Global_37284[263 /*12*/] = 693;
Global_37284[263 /*12*/].f_1 = 694;
Global_37284[263 /*12*/].f_2 = 19;
Global_37284[263 /*12*/].f_3 = 1;
Global_37284[263 /*12*/].f_10 = 1;
Global_37284[263 /*12*/].f_11 = 0;
Global_37284[263 /*12*/].f_4 = 0;
Global_37284[264 /*12*/] = 695;
Global_37284[264 /*12*/].f_1 = 696;
Global_37284[264 /*12*/].f_2 = 19;
Global_37284[264 /*12*/].f_3 = 1;
Global_37284[264 /*12*/].f_10 = 1;
Global_37284[264 /*12*/].f_11 = 0;
Global_37284[264 /*12*/].f_4 = 0;
Global_37284[265 /*12*/] = 697;
Global_37284[265 /*12*/].f_1 = 698;
Global_37284[265 /*12*/].f_2 = 19;
Global_37284[265 /*12*/].f_3 = 1;
Global_37284[265 /*12*/].f_10 = 1;
Global_37284[265 /*12*/].f_11 = 0;
Global_37284[265 /*12*/].f_4 = 0;
Global_37284[266 /*12*/] = 699;
Global_37284[266 /*12*/].f_1 = 700;
Global_37284[266 /*12*/].f_2 = 19;
Global_37284[266 /*12*/].f_3 = 1;
Global_37284[266 /*12*/].f_10 = 1;
Global_37284[266 /*12*/].f_11 = 0;
Global_37284[266 /*12*/].f_4 = 0;
Global_37284[267 /*12*/] = 701;
Global_37284[267 /*12*/].f_1 = 702;
Global_37284[267 /*12*/].f_2 = 19;
Global_37284[267 /*12*/].f_3 = 1;
Global_37284[267 /*12*/].f_10 = 1;
Global_37284[267 /*12*/].f_11 = 0;
Global_37284[267 /*12*/].f_4 = 0;
Global_37284[268 /*12*/] = 703;
Global_37284[268 /*12*/].f_1 = 704;
Global_37284[268 /*12*/].f_2 = 19;
Global_37284[268 /*12*/].f_3 = 1;
Global_37284[268 /*12*/].f_10 = 1;
Global_37284[268 /*12*/].f_11 = 0;
Global_37284[268 /*12*/].f_4 = 0;
Global_37284[269 /*12*/] = 705;
Global_37284[269 /*12*/].f_1 = 706;
Global_37284[269 /*12*/].f_2 = 19;
Global_37284[269 /*12*/].f_3 = 1;
Global_37284[269 /*12*/].f_10 = 1;
Global_37284[269 /*12*/].f_11 = 0;
Global_37284[269 /*12*/].f_4 = 0;
Global_37284[270 /*12*/] = 707;
Global_37284[270 /*12*/].f_1 = 708;
Global_37284[270 /*12*/].f_2 = 16;
Global_37284[270 /*12*/].f_3 = 0;
Global_37284[270 /*12*/].f_10 = 1;
Global_37284[270 /*12*/].f_11 = 0;
Global_37284[270 /*12*/].f_4 = 0;
Global_37284[271 /*12*/] = 709;
Global_37284[271 /*12*/].f_1 = 710;
Global_37284[271 /*12*/].f_2 = 16;
Global_37284[271 /*12*/].f_3 = 0;
Global_37284[271 /*12*/].f_10 = 1;
Global_37284[271 /*12*/].f_11 = 0;
Global_37284[271 /*12*/].f_4 = 0;
Global_37284[272 /*12*/] = 711;
Global_37284[272 /*12*/].f_1 = 712;
Global_37284[272 /*12*/].f_2 = 16;
Global_37284[272 /*12*/].f_3 = 0;
Global_37284[272 /*12*/].f_10 = 1;
Global_37284[272 /*12*/].f_11 = 0;
Global_37284[272 /*12*/].f_4 = 0;
Global_37284[273 /*12*/] = 713;
Global_37284[273 /*12*/].f_1 = 714;
Global_37284[273 /*12*/].f_2 = 16;
Global_37284[273 /*12*/].f_3 = 0;
Global_37284[273 /*12*/].f_10 = 1;
Global_37284[273 /*12*/].f_11 = 0;
Global_37284[273 /*12*/].f_4 = 0;
Global_37284[274 /*12*/] = 715;
Global_37284[274 /*12*/].f_1 = 716;
Global_37284[274 /*12*/].f_2 = 16;
Global_37284[274 /*12*/].f_3 = 0;
Global_37284[274 /*12*/].f_10 = 1;
Global_37284[274 /*12*/].f_11 = 0;
Global_37284[274 /*12*/].f_4 = 0;
Global_37284[275 /*12*/] = 717;
Global_37284[275 /*12*/].f_1 = 718;
Global_37284[275 /*12*/].f_2 = 16;
Global_37284[275 /*12*/].f_3 = 0;
Global_37284[275 /*12*/].f_10 = 1;
Global_37284[275 /*12*/].f_11 = 0;
Global_37284[275 /*12*/].f_4 = 0;
Global_37284[276 /*12*/] = 719;
Global_37284[276 /*12*/].f_1 = 720;
Global_37284[276 /*12*/].f_2 = 16;
Global_37284[276 /*12*/].f_3 = 0;
Global_37284[276 /*12*/].f_10 = 1;
Global_37284[276 /*12*/].f_11 = 0;
Global_37284[276 /*12*/].f_4 = 0;
Global_40609[0 /*46*/].f_45 = 0;
Global_40609[0 /*46*/].f_31 = 0;
Global_40609[0 /*46*/].f_42 = 0;
Global_40609[0 /*46*/].f_43 = 0;
Global_40609[0 /*46*/].f_2 = 2;
Global_40609[0 /*46*/].f_3[0] = 0;
Global_40609[0 /*46*/].f_3[1] = 4;
Global_40609[0 /*46*/].f_30 = 8;
Global_40609[0 /*46*/].f_8[0] = 0;
Global_40609[0 /*46*/].f_8[1] = 1;
Global_40609[0 /*46*/].f_8[2] = 2;
Global_40609[0 /*46*/].f_8[3] = 3;
Global_40609[0 /*46*/].f_8[4] = 4;
Global_40609[0 /*46*/].f_8[5] = 5;
Global_40609[0 /*46*/].f_8[6] = 6;
Global_40609[0 /*46*/].f_8[7] = 9;
Global_40609[1 /*46*/].f_45 = 0;
Global_40609[1 /*46*/].f_31 = 0;
Global_40609[1 /*46*/].f_42 = 0;
Global_40609[1 /*46*/].f_43 = 0;
Global_40609[1 /*46*/].f_2 = 3;
Global_40609[1 /*46*/].f_3[0] = 5;
Global_40609[1 /*46*/].f_3[1] = 0;
Global_40609[1 /*46*/].f_3[2] = 4;
Global_40609[1 /*46*/].f_30 = 3;
Global_40609[1 /*46*/].f_8[0] = 10;
Global_40609[1 /*46*/].f_8[1] = 11;
Global_40609[1 /*46*/].f_8[2] = 16;
Global_40609[2 /*46*/].f_45 = 0;
Global_40609[2 /*46*/].f_31 = 0;
Global_40609[2 /*46*/].f_42 = 0;
Global_40609[2 /*46*/].f_43 = 0;
Global_40609[2 /*46*/].f_2 = 2;
Global_40609[2 /*46*/].f_3[0] = 7;
Global_40609[2 /*46*/].f_3[1] = 1;
Global_40609[2 /*46*/].f_30 = 1;
Global_40609[2 /*46*/].f_8[0] = 12;
Global_40609[3 /*46*/].f_45 = 0;
Global_40609[3 /*46*/].f_31 = 0;
Global_40609[3 /*46*/].f_42 = 0;
Global_40609[3 /*46*/].f_43 = 0;
Global_40609[3 /*46*/].f_2 = 2;
Global_40609[3 /*46*/].f_3[0] = 7;
Global_40609[3 /*46*/].f_3[1] = 1;
Global_40609[3 /*46*/].f_30 = 1;
Global_40609[3 /*46*/].f_8[0] = 14;
Global_40609[4 /*46*/].f_45 = 0;
Global_40609[4 /*46*/].f_31 = 0;
Global_40609[4 /*46*/].f_42 = 0;
Global_40609[4 /*46*/].f_43 = 0;
Global_40609[4 /*46*/].f_2 = 2;
Global_40609[4 /*46*/].f_3[0] = 7;
Global_40609[4 /*46*/].f_3[1] = 1;
Global_40609[4 /*46*/].f_30 = 1;
Global_40609[4 /*46*/].f_8[0] = 13;
Global_40609[5 /*46*/].f_45 = 0;
Global_40609[5 /*46*/].f_31 = 0;
Global_40609[5 /*46*/].f_42 = 0;
Global_40609[5 /*46*/].f_43 = 0;
Global_40609[5 /*46*/].f_2 = 2;
Global_40609[5 /*46*/].f_3[0] = 7;
Global_40609[5 /*46*/].f_3[1] = 1;
Global_40609[5 /*46*/].f_30 = 1;
Global_40609[5 /*46*/].f_8[0] = 15;
Global_40609[6 /*46*/].f_45 = 0;
Global_40609[6 /*46*/].f_31 = 0;
Global_40609[6 /*46*/].f_42 = 0;
Global_40609[6 /*46*/].f_43 = 0;
Global_40609[6 /*46*/].f_2 = 2;
Global_40609[6 /*46*/].f_3[0] = 0;
Global_40609[6 /*46*/].f_3[1] = 8;
Global_40609[6 /*46*/].f_30 = 5;
Global_40609[6 /*46*/].f_8[0] = 17;
Global_40609[6 /*46*/].f_8[1] = 19;
Global_40609[6 /*46*/].f_8[2] = 20;
Global_40609[6 /*46*/].f_8[3] = 21;
Global_40609[6 /*46*/].f_8[4] = 22;
Global_40609[7 /*46*/].f_45 = 0;
Global_40609[7 /*46*/].f_31 = 0;
Global_40609[7 /*46*/].f_42 = 0;
Global_40609[7 /*46*/].f_43 = 0;
Global_40609[7 /*46*/].f_2 = 2;
Global_40609[7 /*46*/].f_3[0] = 1;
Global_40609[7 /*46*/].f_3[1] = 9;
Global_40609[7 /*46*/].f_30 = 5;
Global_40609[7 /*46*/].f_8[0] = 18;
Global_40609[7 /*46*/].f_8[1] = 24;
Global_40609[7 /*46*/].f_8[2] = 25;
Global_40609[7 /*46*/].f_8[3] = 26;
Global_40609[7 /*46*/].f_8[4] = 27;
Global_40609[8 /*46*/].f_45 = 0;
Global_40609[8 /*46*/].f_31 = 0;
Global_40609[8 /*46*/].f_42 = 0;
Global_40609[8 /*46*/].f_43 = 0;
Global_40609[8 /*46*/].f_2 = 2;
Global_40609[8 /*46*/].f_3[0] = 2;
Global_40609[8 /*46*/].f_3[1] = 10;
Global_40609[8 /*46*/].f_30 = 4;
Global_40609[8 /*46*/].f_8[0] = 23;
Global_40609[8 /*46*/].f_8[1] = 28;
Global_40609[8 /*46*/].f_8[2] = 29;
Global_40609[8 /*46*/].f_8[3] = 30;
Global_40609[9 /*46*/].f_45 = 0;
Global_40609[9 /*46*/].f_31 = 0;
Global_40609[9 /*46*/].f_42 = 0;
Global_40609[9 /*46*/].f_43 = 0;
Global_40609[9 /*46*/].f_2 = 1;
Global_40609[9 /*46*/].f_3[0] = 11;
Global_40609[9 /*46*/].f_30 = 3;
Global_40609[9 /*46*/].f_8[0] = 31;
Global_40609[9 /*46*/].f_8[1] = 32;
Global_40609[9 /*46*/].f_8[2] = 33;
Global_40609[10 /*46*/].f_45 = 0;
Global_40609[10 /*46*/].f_31 = 0;
Global_40609[10 /*46*/].f_42 = 0;
Global_40609[10 /*46*/].f_43 = 0;
Global_40609[10 /*46*/].f_2 = 1;
Global_40609[10 /*46*/].f_3[0] = 13;
Global_40609[10 /*46*/].f_30 = 3;
Global_40609[10 /*46*/].f_8[0] = 34;
Global_40609[10 /*46*/].f_8[1] = 35;
Global_40609[10 /*46*/].f_8[2] = 36;
Global_40609[11 /*46*/].f_45 = 0;
Global_40609[11 /*46*/].f_31 = 0;
Global_40609[11 /*46*/].f_42 = 0;
Global_40609[11 /*46*/].f_43 = 0;
Global_40609[11 /*46*/].f_2 = 1;
Global_40609[11 /*46*/].f_3[0] = 14;
Global_40609[11 /*46*/].f_30 = 3;
Global_40609[11 /*46*/].f_8[0] = 37;
Global_40609[11 /*46*/].f_8[1] = 38;
Global_40609[11 /*46*/].f_8[2] = 39;
Global_40609[12 /*46*/].f_45 = 0;
Global_40609[12 /*46*/].f_31 = 0;
Global_40609[12 /*46*/].f_42 = 0;
Global_40609[12 /*46*/].f_43 = 0;
Global_40609[12 /*46*/].f_2 = 1;
Global_40609[12 /*46*/].f_3[0] = 12;
Global_40609[12 /*46*/].f_30 = 6;
Global_40609[12 /*46*/].f_8[0] = 40;
Global_40609[12 /*46*/].f_8[1] = 41;
Global_40609[12 /*46*/].f_8[2] = 42;
Global_40609[12 /*46*/].f_8[3] = 191;
Global_40609[12 /*46*/].f_8[4] = 192;
Global_40609[12 /*46*/].f_8[5] = 193;
Global_40609[13 /*46*/].f_45 = 0;
Global_40609[13 /*46*/].f_31 = 0;
Global_40609[13 /*46*/].f_42 = 0;
Global_40609[13 /*46*/].f_43 = 0;
Global_40609[13 /*46*/].f_2 = 2;
Global_40609[13 /*46*/].f_3[0] = 7;
Global_40609[13 /*46*/].f_3[1] = 0;
Global_40609[13 /*46*/].f_30 = 1;
Global_40609[13 /*46*/].f_8[0] = 43;
Global_40609[14 /*46*/].f_45 = 0;
Global_40609[14 /*46*/].f_31 = 0;
Global_40609[14 /*46*/].f_42 = 0;
Global_40609[14 /*46*/].f_43 = 0;
Global_40609[14 /*46*/].f_2 = 4;
Global_40609[14 /*46*/].f_3[0] = 15;
Global_40609[14 /*46*/].f_3[1] = 0;
Global_40609[14 /*46*/].f_3[2] = 1;
Global_40609[14 /*46*/].f_3[3] = 2;
Global_40609[14 /*46*/].f_30 = 3;
Global_40609[14 /*46*/].f_8[0] = 44;
Global_40609[14 /*46*/].f_8[1] = 45;
Global_40609[14 /*46*/].f_8[2] = 46;
Global_40609[15 /*46*/].f_45 = 0;
Global_40609[15 /*46*/].f_31 = 0;
Global_40609[15 /*46*/].f_42 = 0;
Global_40609[15 /*46*/].f_43 = 0;
Global_40609[15 /*46*/].f_2 = 4;
Global_40609[15 /*46*/].f_3[0] = 16;
Global_40609[15 /*46*/].f_3[1] = 0;
Global_40609[15 /*46*/].f_3[2] = 1;
Global_40609[15 /*46*/].f_3[3] = 2;
Global_40609[15 /*46*/].f_30 = 1;
Global_40609[15 /*46*/].f_8[0] = 47;
Global_40609[16 /*46*/].f_45 = 0;
Global_40609[16 /*46*/].f_31 = 0;
Global_40609[16 /*46*/].f_42 = 0;
Global_40609[16 /*46*/].f_43 = 0;
Global_40609[16 /*46*/].f_2 = 4;
Global_40609[16 /*46*/].f_3[0] = 16;
Global_40609[16 /*46*/].f_3[1] = 0;
Global_40609[16 /*46*/].f_3[2] = 1;
Global_40609[16 /*46*/].f_3[3] = 2;
Global_40609[16 /*46*/].f_30 = 1;
Global_40609[16 /*46*/].f_8[0] = 48;
Global_40609[17 /*46*/].f_45 = 0;
Global_40609[17 /*46*/].f_31 = 0;
Global_40609[17 /*46*/].f_42 = 0;
Global_40609[17 /*46*/].f_43 = 0;
Global_40609[17 /*46*/].f_2 = 4;
Global_40609[17 /*46*/].f_3[0] = 0;
Global_40609[17 /*46*/].f_3[1] = 1;
Global_40609[17 /*46*/].f_3[2] = 2;
Global_40609[17 /*46*/].f_3[3] = 16;
Global_40609[17 /*46*/].f_30 = 1;
Global_40609[17 /*46*/].f_8[0] = 49;
Global_40609[18 /*46*/].f_45 = 0;
Global_40609[18 /*46*/].f_31 = 0;
Global_40609[18 /*46*/].f_42 = 0;
Global_40609[18 /*46*/].f_43 = 0;
Global_40609[18 /*46*/].f_2 = 4;
Global_40609[18 /*46*/].f_3[0] = 0;
Global_40609[18 /*46*/].f_3[1] = 1;
Global_40609[18 /*46*/].f_3[2] = 2;
Global_40609[18 /*46*/].f_3[3] = 16;
Global_40609[18 /*46*/].f_30 = 1;
Global_40609[18 /*46*/].f_8[0] = 50;
Global_40609[19 /*46*/].f_45 = 0;
Global_40609[19 /*46*/].f_31 = 0;
Global_40609[19 /*46*/].f_42 = 0;
Global_40609[19 /*46*/].f_43 = 0;
Global_40609[19 /*46*/].f_2 = 4;
Global_40609[19 /*46*/].f_3[0] = 0;
Global_40609[19 /*46*/].f_3[1] = 1;
Global_40609[19 /*46*/].f_3[2] = 2;
Global_40609[19 /*46*/].f_3[3] = 16;
Global_40609[19 /*46*/].f_30 = 1;
Global_40609[19 /*46*/].f_8[0] = 51;
Global_40609[20 /*46*/].f_45 = 0;
Global_40609[20 /*46*/].f_31 = 0;
Global_40609[20 /*46*/].f_42 = 0;
Global_40609[20 /*46*/].f_43 = 0;
Global_40609[20 /*46*/].f_2 = 4;
Global_40609[20 /*46*/].f_3[0] = 0;
Global_40609[20 /*46*/].f_3[1] = 1;
Global_40609[20 /*46*/].f_3[2] = 2;
Global_40609[20 /*46*/].f_3[3] = 16;
Global_40609[20 /*46*/].f_30 = 1;
Global_40609[20 /*46*/].f_8[0] = 52;
Global_40609[21 /*46*/].f_45 = 0;
Global_40609[21 /*46*/].f_31 = 0;
Global_40609[21 /*46*/].f_42 = 0;
Global_40609[21 /*46*/].f_43 = 0;
Global_40609[21 /*46*/].f_2 = 4;
Global_40609[21 /*46*/].f_3[0] = 16;
Global_40609[21 /*46*/].f_3[1] = 0;
Global_40609[21 /*46*/].f_3[2] = 1;
Global_40609[21 /*46*/].f_3[3] = 2;
Global_40609[21 /*46*/].f_30 = 1;
Global_40609[21 /*46*/].f_8[0] = 53;
Global_40609[22 /*46*/].f_45 = 0;
Global_40609[22 /*46*/].f_31 = 0;
Global_40609[22 /*46*/].f_42 = 0;
Global_40609[22 /*46*/].f_43 = 0;
Global_40609[22 /*46*/].f_2 = 4;
Global_40609[22 /*46*/].f_3[0] = 0;
Global_40609[22 /*46*/].f_3[1] = 1;
Global_40609[22 /*46*/].f_3[2] = 2;
Global_40609[22 /*46*/].f_3[3] = 16;
Global_40609[22 /*46*/].f_30 = 1;
Global_40609[22 /*46*/].f_8[0] = 54;
Global_40609[23 /*46*/].f_45 = 0;
Global_40609[23 /*46*/].f_31 = 0;
Global_40609[23 /*46*/].f_42 = 0;
Global_40609[23 /*46*/].f_43 = 0;
Global_40609[23 /*46*/].f_2 = 1;
Global_40609[23 /*46*/].f_3[0] = 12;
Global_40609[23 /*46*/].f_30 = 3;
Global_40609[23 /*46*/].f_8[0] = 55;
Global_40609[23 /*46*/].f_8[1] = 58;
Global_40609[23 /*46*/].f_8[2] = 59;
Global_40609[24 /*46*/].f_45 = 0;
Global_40609[24 /*46*/].f_31 = 0;
Global_40609[24 /*46*/].f_42 = 0;
Global_40609[24 /*46*/].f_43 = 0;
Global_40609[24 /*46*/].f_2 = 1;
Global_40609[24 /*46*/].f_3[0] = 14;
Global_40609[24 /*46*/].f_30 = 3;
Global_40609[24 /*46*/].f_8[0] = 56;
Global_40609[24 /*46*/].f_8[1] = 60;
Global_40609[24 /*46*/].f_8[2] = 61;
Global_40609[25 /*46*/].f_45 = 0;
Global_40609[25 /*46*/].f_31 = 0;
Global_40609[25 /*46*/].f_42 = 0;
Global_40609[25 /*46*/].f_43 = 0;
Global_40609[25 /*46*/].f_2 = 1;
Global_40609[25 /*46*/].f_3[0] = 12;
Global_40609[25 /*46*/].f_30 = 3;
Global_40609[25 /*46*/].f_8[0] = 57;
Global_40609[25 /*46*/].f_8[1] = 62;
Global_40609[25 /*46*/].f_8[2] = 63;
Global_40609[26 /*46*/].f_45 = 0;
Global_40609[26 /*46*/].f_31 = 0;
Global_40609[26 /*46*/].f_42 = 0;
Global_40609[26 /*46*/].f_43 = 0;
Global_40609[26 /*46*/].f_2 = 4;
Global_40609[26 /*46*/].f_3[0] = 1;
Global_40609[26 /*46*/].f_3[1] = 0;
Global_40609[26 /*46*/].f_3[2] = 2;
Global_40609[26 /*46*/].f_3[3] = 20;
Global_40609[26 /*46*/].f_30 = 1;
Global_40609[26 /*46*/].f_8[0] = 64;
Global_40609[27 /*46*/].f_45 = 0;
Global_40609[27 /*46*/].f_31 = 0;
Global_40609[27 /*46*/].f_42 = 0;
Global_40609[27 /*46*/].f_43 = 0;
Global_40609[27 /*46*/].f_2 = 4;
Global_40609[27 /*46*/].f_3[0] = 17;
Global_40609[27 /*46*/].f_3[1] = 0;
Global_40609[27 /*46*/].f_3[2] = 1;
Global_40609[27 /*46*/].f_3[3] = 2;
Global_40609[27 /*46*/].f_30 = 1;
Global_40609[27 /*46*/].f_8[0] = 66;
Global_40609[28 /*46*/].f_45 = 0;
Global_40609[28 /*46*/].f_31 = 0;
Global_40609[28 /*46*/].f_42 = 0;
Global_40609[28 /*46*/].f_43 = 0;
Global_40609[28 /*46*/].f_2 = 4;
Global_40609[28 /*46*/].f_3[0] = 18;
Global_40609[28 /*46*/].f_3[1] = 0;
Global_40609[28 /*46*/].f_3[2] = 1;
Global_40609[28 /*46*/].f_3[3] = 2;
Global_40609[28 /*46*/].f_30 = 1;
Global_40609[28 /*46*/].f_8[0] = 65;
Global_40609[29 /*46*/].f_45 = 0;
Global_40609[29 /*46*/].f_31 = 0;
Global_40609[29 /*46*/].f_42 = 0;
Global_40609[29 /*46*/].f_43 = 0;
Global_40609[29 /*46*/].f_2 = 2;
Global_40609[29 /*46*/].f_3[0] = 2;
Global_40609[29 /*46*/].f_3[1] = 63;
Global_40609[29 /*46*/].f_30 = 1;
Global_40609[29 /*46*/].f_8[0] = 67;
Global_40609[30 /*46*/].f_45 = 0;
Global_40609[30 /*46*/].f_31 = 0;
Global_40609[30 /*46*/].f_42 = 0;
Global_40609[30 /*46*/].f_43 = 0;
Global_40609[30 /*46*/].f_2 = 3;
Global_40609[30 /*46*/].f_3[0] = 0;
Global_40609[30 /*46*/].f_3[1] = 1;
Global_40609[30 /*46*/].f_3[2] = 2;
Global_40609[30 /*46*/].f_30 = 1;
Global_40609[30 /*46*/].f_8[0] = 68;
Global_40609[31 /*46*/].f_45 = 0;
Global_40609[31 /*46*/].f_31 = 0;
Global_40609[31 /*46*/].f_42 = 0;
Global_40609[31 /*46*/].f_43 = 0;
Global_40609[31 /*46*/].f_2 = 2;
Global_40609[31 /*46*/].f_3[0] = 0;
Global_40609[31 /*46*/].f_3[1] = 64;
Global_40609[31 /*46*/].f_30 = 1;
Global_40609[31 /*46*/].f_8[0] = 69;
Global_40609[32 /*46*/].f_45 = 0;
Global_40609[32 /*46*/].f_31 = 0;
Global_40609[32 /*46*/].f_42 = 0;
Global_40609[32 /*46*/].f_43 = 0;
Global_40609[32 /*46*/].f_2 = 2;
Global_40609[32 /*46*/].f_3[0] = 1;
Global_40609[32 /*46*/].f_3[1] = 64;
Global_40609[32 /*46*/].f_30 = 1;
Global_40609[32 /*46*/].f_8[0] = 70;
Global_40609[33 /*46*/].f_45 = 0;
Global_40609[33 /*46*/].f_31 = 0;
Global_40609[33 /*46*/].f_42 = 0;
Global_40609[33 /*46*/].f_43 = 0;
Global_40609[33 /*46*/].f_2 = 2;
Global_40609[33 /*46*/].f_3[0] = 2;
Global_40609[33 /*46*/].f_3[1] = 64;
Global_40609[33 /*46*/].f_30 = 1;
Global_40609[33 /*46*/].f_8[0] = 71;
Global_40609[34 /*46*/].f_45 = 0;
Global_40609[34 /*46*/].f_31 = 0;
Global_40609[34 /*46*/].f_42 = 0;
Global_40609[34 /*46*/].f_43 = 0;
Global_40609[34 /*46*/].f_2 = 1;
Global_40609[34 /*46*/].f_3[0] = 21;
Global_40609[34 /*46*/].f_30 = 1;
Global_40609[34 /*46*/].f_8[0] = 72;
Global_40609[35 /*46*/].f_45 = 0;
Global_40609[35 /*46*/].f_31 = 0;
Global_40609[35 /*46*/].f_42 = 0;
Global_40609[35 /*46*/].f_43 = 0;
Global_40609[35 /*46*/].f_2 = 1;
Global_40609[35 /*46*/].f_3[0] = 21;
Global_40609[35 /*46*/].f_30 = 1;
Global_40609[35 /*46*/].f_8[0] = 73;
Global_40609[36 /*46*/].f_45 = 0;
Global_40609[36 /*46*/].f_31 = 0;
Global_40609[36 /*46*/].f_42 = 0;
Global_40609[36 /*46*/].f_43 = 0;
Global_40609[36 /*46*/].f_2 = 1;
Global_40609[36 /*46*/].f_3[0] = 21;
Global_40609[36 /*46*/].f_30 = 1;
Global_40609[36 /*46*/].f_8[0] = 74;
Global_40609[37 /*46*/].f_45 = 0;
Global_40609[37 /*46*/].f_31 = 0;
Global_40609[37 /*46*/].f_42 = 0;
Global_40609[37 /*46*/].f_43 = 0;
Global_40609[37 /*46*/].f_2 = 2;
Global_40609[37 /*46*/].f_3[0] = 6;
Global_40609[37 /*46*/].f_3[1] = 2;
Global_40609[37 /*46*/].f_30 = 9;
Global_40609[37 /*46*/].f_8[0] = 75;
Global_40609[37 /*46*/].f_8[1] = 76;
Global_40609[37 /*46*/].f_8[2] = 77;
Global_40609[37 /*46*/].f_8[3] = 78;
Global_40609[37 /*46*/].f_8[4] = 79;
Global_40609[37 /*46*/].f_8[5] = 80;
Global_40609[37 /*46*/].f_8[6] = 81;
Global_40609[37 /*46*/].f_8[7] = 82;
Global_40609[37 /*46*/].f_8[8] = 83;
Global_40609[38 /*46*/].f_45 = 0;
Global_40609[38 /*46*/].f_31 = 0;
Global_40609[38 /*46*/].f_42 = 0;
Global_40609[38 /*46*/].f_43 = 0;
Global_40609[38 /*46*/].f_2 = 2;
Global_40609[38 /*46*/].f_3[0] = 0;
Global_40609[38 /*46*/].f_3[1] = 4;
Global_40609[38 /*46*/].f_30 = 1;
Global_40609[38 /*46*/].f_8[0] = 84;
Global_40609[39 /*46*/].f_45 = 0;
Global_40609[39 /*46*/].f_31 = 0;
Global_40609[39 /*46*/].f_42 = 0;
Global_40609[39 /*46*/].f_43 = 0;
Global_40609[39 /*46*/].f_2 = 4;
Global_40609[39 /*46*/].f_3[0] = 22;
Global_40609[39 /*46*/].f_3[1] = 0;
Global_40609[39 /*46*/].f_3[2] = 1;
Global_40609[39 /*46*/].f_3[3] = 2;
Global_40609[39 /*46*/].f_30 = 1;
Global_40609[39 /*46*/].f_8[0] = 85;
Global_40609[40 /*46*/].f_45 = 0;
Global_40609[40 /*46*/].f_31 = 0;
Global_40609[40 /*46*/].f_42 = 0;
Global_40609[40 /*46*/].f_43 = 0;
Global_40609[40 /*46*/].f_2 = 2;
Global_40609[40 /*46*/].f_3[0] = 0;
Global_40609[40 /*46*/].f_3[1] = 24;
Global_40609[40 /*46*/].f_30 = 3;
Global_40609[40 /*46*/].f_8[0] = 86;
Global_40609[40 /*46*/].f_8[1] = 87;
Global_40609[40 /*46*/].f_8[2] = 88;
Global_40609[41 /*46*/].f_45 = 0;
Global_40609[41 /*46*/].f_31 = 0;
Global_40609[41 /*46*/].f_42 = 0;
Global_40609[41 /*46*/].f_43 = 0;
Global_40609[41 /*46*/].f_2 = 2;
Global_40609[41 /*46*/].f_3[0] = 0;
Global_40609[41 /*46*/].f_3[1] = 24;
Global_40609[41 /*46*/].f_30 = 3;
Global_40609[41 /*46*/].f_8[0] = 89;
Global_40609[41 /*46*/].f_8[1] = 90;
Global_40609[41 /*46*/].f_8[2] = 91;
Global_40609[42 /*46*/].f_45 = 0;
Global_40609[42 /*46*/].f_31 = 0;
Global_40609[42 /*46*/].f_42 = 0;
Global_40609[42 /*46*/].f_43 = 0;
Global_40609[42 /*46*/].f_2 = 2;
Global_40609[42 /*46*/].f_3[0] = 0;
Global_40609[42 /*46*/].f_3[1] = 25;
Global_40609[42 /*46*/].f_30 = 5;
Global_40609[42 /*46*/].f_8[0] = 92;
Global_40609[42 /*46*/].f_8[1] = 93;
Global_40609[42 /*46*/].f_8[2] = 94;
Global_40609[42 /*46*/].f_8[3] = 95;
Global_40609[42 /*46*/].f_8[4] = 96;
Global_40609[43 /*46*/].f_45 = 0;
Global_40609[43 /*46*/].f_31 = 0;
Global_40609[43 /*46*/].f_42 = 0;
Global_40609[43 /*46*/].f_43 = 0;
Global_40609[43 /*46*/].f_2 = 2;
Global_40609[43 /*46*/].f_3[0] = 26;
Global_40609[43 /*46*/].f_3[1] = 0;
Global_40609[43 /*46*/].f_30 = 2;
Global_40609[43 /*46*/].f_8[0] = 97;
Global_40609[43 /*46*/].f_8[1] = 98;
Global_40609[44 /*46*/].f_45 = 0;
Global_40609[44 /*46*/].f_31 = 0;
Global_40609[44 /*46*/].f_42 = 0;
Global_40609[44 /*46*/].f_43 = 0;
Global_40609[44 /*46*/].f_2 = 2;
Global_40609[44 /*46*/].f_3[0] = 27;
Global_40609[44 /*46*/].f_3[1] = 0;
Global_40609[44 /*46*/].f_30 = 2;
Global_40609[44 /*46*/].f_8[0] = 99;
Global_40609[44 /*46*/].f_8[1] = 100;
Global_40609[45 /*46*/].f_45 = 0;
Global_40609[45 /*46*/].f_31 = 0;
Global_40609[45 /*46*/].f_42 = 0;
Global_40609[45 /*46*/].f_43 = 0;
Global_40609[45 /*46*/].f_2 = 3;
Global_40609[45 /*46*/].f_3[0] = 0;
Global_40609[45 /*46*/].f_3[1] = 2;
Global_40609[45 /*46*/].f_3[2] = 28;
Global_40609[45 /*46*/].f_30 = 1;
Global_40609[45 /*46*/].f_8[0] = 101;
Global_40609[46 /*46*/].f_45 = 0;
Global_40609[46 /*46*/].f_31 = 0;
Global_40609[46 /*46*/].f_42 = 0;
Global_40609[46 /*46*/].f_43 = 0;
Global_40609[46 /*46*/].f_2 = 2;
Global_40609[46 /*46*/].f_3[0] = 0;
Global_40609[46 /*46*/].f_3[1] = 26;
Global_40609[46 /*46*/].f_30 = 2;
Global_40609[46 /*46*/].f_8[0] = 102;
Global_40609[46 /*46*/].f_8[1] = 103;
Global_40609[47 /*46*/].f_45 = 0;
Global_40609[47 /*46*/].f_31 = 0;
Global_40609[47 /*46*/].f_42 = 0;
Global_40609[47 /*46*/].f_43 = 0;
Global_40609[47 /*46*/].f_2 = 2;
Global_40609[47 /*46*/].f_3[0] = 0;
Global_40609[47 /*46*/].f_3[1] = 29;
Global_40609[47 /*46*/].f_30 = 2;
Global_40609[47 /*46*/].f_8[0] = 104;
Global_40609[47 /*46*/].f_8[1] = 105;
Global_40609[48 /*46*/].f_45 = 0;
Global_40609[48 /*46*/].f_31 = 0;
Global_40609[48 /*46*/].f_42 = 0;
Global_40609[48 /*46*/].f_43 = 0;
Global_40609[48 /*46*/].f_2 = 2;
Global_40609[48 /*46*/].f_3[0] = 1;
Global_40609[48 /*46*/].f_3[1] = 30;
Global_40609[48 /*46*/].f_30 = 5;
Global_40609[48 /*46*/].f_8[0] = 106;
Global_40609[48 /*46*/].f_8[1] = 107;
Global_40609[48 /*46*/].f_8[2] = 108;
Global_40609[48 /*46*/].f_8[3] = 109;
Global_40609[48 /*46*/].f_8[4] = 110;
Global_40609[49 /*46*/].f_45 = 0;
Global_40609[49 /*46*/].f_31 = 0;
Global_40609[49 /*46*/].f_42 = 0;
Global_40609[49 /*46*/].f_43 = 0;
Global_40609[49 /*46*/].f_2 = 2;
Global_40609[49 /*46*/].f_3[0] = 1;
Global_40609[49 /*46*/].f_3[1] = 31;
Global_40609[49 /*46*/].f_30 = 2;
Global_40609[49 /*46*/].f_8[0] = 111;
Global_40609[49 /*46*/].f_8[1] = 112;
Global_40609[50 /*46*/].f_45 = 0;
Global_40609[50 /*46*/].f_31 = 0;
Global_40609[50 /*46*/].f_42 = 0;
Global_40609[50 /*46*/].f_43 = 0;
Global_40609[50 /*46*/].f_2 = 2;
Global_40609[50 /*46*/].f_3[0] = 1;
Global_40609[50 /*46*/].f_3[1] = 32;
Global_40609[50 /*46*/].f_30 = 3;
Global_40609[50 /*46*/].f_8[0] = 113;
Global_40609[50 /*46*/].f_8[1] = 114;
Global_40609[50 /*46*/].f_8[2] = 115;
Global_40609[51 /*46*/].f_45 = 0;
Global_40609[51 /*46*/].f_31 = 0;
Global_40609[51 /*46*/].f_42 = 0;
Global_40609[51 /*46*/].f_43 = 0;
Global_40609[51 /*46*/].f_2 = 2;
Global_40609[51 /*46*/].f_3[0] = 1;
Global_40609[51 /*46*/].f_3[1] = 32;
Global_40609[51 /*46*/].f_30 = 2;
Global_40609[51 /*46*/].f_8[0] = 116;
Global_40609[51 /*46*/].f_8[1] = 117;
Global_40609[52 /*46*/].f_45 = 0;
Global_40609[52 /*46*/].f_31 = 0;
Global_40609[52 /*46*/].f_42 = 0;
Global_40609[52 /*46*/].f_43 = 0;
Global_40609[52 /*46*/].f_2 = 2;
Global_40609[52 /*46*/].f_3[0] = 1;
Global_40609[52 /*46*/].f_3[1] = 32;
Global_40609[52 /*46*/].f_30 = 2;
Global_40609[52 /*46*/].f_8[0] = 118;
Global_40609[52 /*46*/].f_8[1] = 119;
Global_40609[53 /*46*/].f_45 = 0;
Global_40609[53 /*46*/].f_31 = 0;
Global_40609[53 /*46*/].f_42 = 0;
Global_40609[53 /*46*/].f_43 = 0;
Global_40609[53 /*46*/].f_2 = 2;
Global_40609[53 /*46*/].f_3[0] = 1;
Global_40609[53 /*46*/].f_3[1] = 32;
Global_40609[53 /*46*/].f_30 = 4;
Global_40609[53 /*46*/].f_8[0] = 120;
Global_40609[53 /*46*/].f_8[1] = 121;
Global_40609[53 /*46*/].f_8[2] = 122;
Global_40609[53 /*46*/].f_8[3] = 123;
Global_40609[54 /*46*/].f_45 = 0;
Global_40609[54 /*46*/].f_31 = 0;
Global_40609[54 /*46*/].f_42 = 0;
Global_40609[54 /*46*/].f_43 = 0;
Global_40609[54 /*46*/].f_2 = 2;
Global_40609[54 /*46*/].f_3[0] = 1;
Global_40609[54 /*46*/].f_3[1] = 27;
Global_40609[54 /*46*/].f_30 = 2;
Global_40609[54 /*46*/].f_8[0] = 124;
Global_40609[54 /*46*/].f_8[1] = 125;
Global_40609[55 /*46*/].f_45 = 0;
Global_40609[55 /*46*/].f_31 = 0;
Global_40609[55 /*46*/].f_42 = 0;
Global_40609[55 /*46*/].f_43 = 0;
Global_40609[55 /*46*/].f_2 = 2;
Global_40609[55 /*46*/].f_3[0] = 1;
Global_40609[55 /*46*/].f_3[1] = 2;
Global_40609[55 /*46*/].f_30 = 5;
Global_40609[55 /*46*/].f_8[0] = 126;
Global_40609[55 /*46*/].f_8[1] = 127;
Global_40609[55 /*46*/].f_8[2] = 128;
Global_40609[55 /*46*/].f_8[3] = 129;
Global_40609[55 /*46*/].f_8[4] = 130;
Global_40609[56 /*46*/].f_45 = 0;
Global_40609[56 /*46*/].f_31 = 0;
Global_40609[56 /*46*/].f_42 = 0;
Global_40609[56 /*46*/].f_43 = 0;
Global_40609[56 /*46*/].f_2 = 2;
Global_40609[56 /*46*/].f_3[0] = 1;
Global_40609[56 /*46*/].f_3[1] = 0;
Global_40609[56 /*46*/].f_30 = 3;
Global_40609[56 /*46*/].f_8[0] = 131;
Global_40609[56 /*46*/].f_8[1] = 132;
Global_40609[56 /*46*/].f_8[2] = 133;
Global_40609[57 /*46*/].f_45 = 0;
Global_40609[57 /*46*/].f_31 = 0;
Global_40609[57 /*46*/].f_42 = 0;
Global_40609[57 /*46*/].f_43 = 0;
Global_40609[57 /*46*/].f_2 = 2;
Global_40609[57 /*46*/].f_3[0] = 0;
Global_40609[57 /*46*/].f_3[1] = 1;
Global_40609[57 /*46*/].f_30 = 2;
Global_40609[57 /*46*/].f_8[0] = 134;
Global_40609[57 /*46*/].f_8[1] = 135;
Global_40609[58 /*46*/].f_45 = 0;
Global_40609[58 /*46*/].f_31 = 0;
Global_40609[58 /*46*/].f_42 = 0;
Global_40609[58 /*46*/].f_43 = 0;
Global_40609[58 /*46*/].f_2 = 2;
Global_40609[58 /*46*/].f_3[0] = 2;
Global_40609[58 /*46*/].f_3[1] = 33;
Global_40609[58 /*46*/].f_30 = 2;
Global_40609[58 /*46*/].f_8[0] = 136;
Global_40609[58 /*46*/].f_8[1] = 137;
Global_40609[59 /*46*/].f_45 = 0;
Global_40609[59 /*46*/].f_31 = 0;
Global_40609[59 /*46*/].f_42 = 0;
Global_40609[59 /*46*/].f_43 = 0;
Global_40609[59 /*46*/].f_2 = 2;
Global_40609[59 /*46*/].f_3[0] = 2;
Global_40609[59 /*46*/].f_3[1] = 33;
Global_40609[59 /*46*/].f_30 = 3;
Global_40609[59 /*46*/].f_8[0] = 138;
Global_40609[59 /*46*/].f_8[1] = 139;
Global_40609[59 /*46*/].f_8[2] = 248;
Global_40609[60 /*46*/].f_45 = 0;
Global_40609[60 /*46*/].f_31 = 0;
Global_40609[60 /*46*/].f_42 = 0;
Global_40609[60 /*46*/].f_43 = 0;
Global_40609[60 /*46*/].f_2 = 2;
Global_40609[60 /*46*/].f_3[0] = 2;
Global_40609[60 /*46*/].f_3[1] = 33;
Global_40609[60 /*46*/].f_30 = 1;
Global_40609[60 /*46*/].f_8[0] = 140;
Global_40609[61 /*46*/].f_45 = 0;
Global_40609[61 /*46*/].f_31 = 0;
Global_40609[61 /*46*/].f_42 = 0;
Global_40609[61 /*46*/].f_43 = 0;
Global_40609[61 /*46*/].f_2 = 2;
Global_40609[61 /*46*/].f_3[0] = 2;
Global_40609[61 /*46*/].f_3[1] = 29;
Global_40609[61 /*46*/].f_30 = 2;
Global_40609[61 /*46*/].f_8[0] = 141;
Global_40609[61 /*46*/].f_8[1] = 142;
Global_40609[62 /*46*/].f_45 = 0;
Global_40609[62 /*46*/].f_31 = 0;
Global_40609[62 /*46*/].f_42 = 0;
Global_40609[62 /*46*/].f_43 = 0;
Global_40609[62 /*46*/].f_2 = 2;
Global_40609[62 /*46*/].f_3[0] = 3;
Global_40609[62 /*46*/].f_3[1] = 2;
Global_40609[62 /*46*/].f_30 = 2;
Global_40609[62 /*46*/].f_8[0] = 143;
Global_40609[62 /*46*/].f_8[1] = 144;
Global_40609[63 /*46*/].f_45 = 0;
Global_40609[63 /*46*/].f_31 = 0;
Global_40609[63 /*46*/].f_42 = 0;
Global_40609[63 /*46*/].f_43 = 0;
Global_40609[63 /*46*/].f_2 = 2;
Global_40609[63 /*46*/].f_3[0] = 2;
Global_40609[63 /*46*/].f_3[1] = 34;
Global_40609[63 /*46*/].f_30 = 2;
Global_40609[63 /*46*/].f_8[0] = 145;
Global_40609[63 /*46*/].f_8[1] = 146;
Global_40609[64 /*46*/].f_45 = 0;
Global_40609[64 /*46*/].f_31 = 0;
Global_40609[64 /*46*/].f_42 = 0;
Global_40609[64 /*46*/].f_43 = 0;
Global_40609[64 /*46*/].f_2 = 2;
Global_40609[64 /*46*/].f_3[0] = 2;
Global_40609[64 /*46*/].f_3[1] = 26;
Global_40609[64 /*46*/].f_30 = 1;
Global_40609[64 /*46*/].f_8[0] = 147;
Global_40609[65 /*46*/].f_45 = 0;
Global_40609[65 /*46*/].f_31 = 0;
Global_40609[65 /*46*/].f_42 = 0;
Global_40609[65 /*46*/].f_43 = 0;
Global_40609[65 /*46*/].f_2 = 1;
Global_40609[65 /*46*/].f_3[0] = 35;
Global_40609[65 /*46*/].f_30 = 3;
Global_40609[65 /*46*/].f_8[0] = 148;
Global_40609[65 /*46*/].f_8[1] = 149;
Global_40609[65 /*46*/].f_8[2] = 150;
Global_40609[66 /*46*/].f_45 = 0;
Global_40609[66 /*46*/].f_31 = 0;
Global_40609[66 /*46*/].f_42 = 0;
Global_40609[66 /*46*/].f_43 = 0;
Global_40609[66 /*46*/].f_2 = 1;
Global_40609[66 /*46*/].f_3[0] = 36;
Global_40609[66 /*46*/].f_30 = 3;
Global_40609[66 /*46*/].f_8[0] = 151;
Global_40609[66 /*46*/].f_8[1] = 152;
Global_40609[66 /*46*/].f_8[2] = 153;
Global_40609[67 /*46*/].f_45 = 0;
Global_40609[67 /*46*/].f_31 = 0;
Global_40609[67 /*46*/].f_42 = 0;
Global_40609[67 /*46*/].f_43 = 0;
Global_40609[67 /*46*/].f_2 = 2;
Global_40609[67 /*46*/].f_3[0] = 4;
Global_40609[67 /*46*/].f_3[1] = 0;
Global_40609[67 /*46*/].f_30 = 1;
Global_40609[67 /*46*/].f_8[0] = 7;
Global_40609[68 /*46*/].f_45 = 0;
Global_40609[68 /*46*/].f_31 = 0;
Global_40609[68 /*46*/].f_42 = 0;
Global_40609[68 /*46*/].f_43 = 0;
Global_40609[68 /*46*/].f_2 = 2;
Global_40609[68 /*46*/].f_3[0] = 4;
Global_40609[68 /*46*/].f_3[1] = 0;
Global_40609[68 /*46*/].f_30 = 1;
Global_40609[68 /*46*/].f_8[0] = 8;
Global_40609[69 /*46*/].f_45 = 0;
Global_40609[69 /*46*/].f_31 = 0;
Global_40609[69 /*46*/].f_42 = 0;
Global_40609[69 /*46*/].f_43 = 0;
Global_40609[69 /*46*/].f_2 = 2;
Global_40609[69 /*46*/].f_3[0] = 2;
Global_40609[69 /*46*/].f_3[1] = 38;
Global_40609[69 /*46*/].f_30 = 1;
Global_40609[69 /*46*/].f_8[0] = 154;
Global_40609[70 /*46*/].f_45 = 0;
Global_40609[70 /*46*/].f_31 = 0;
Global_40609[70 /*46*/].f_42 = 0;
Global_40609[70 /*46*/].f_43 = 0;
Global_40609[70 /*46*/].f_2 = 1;
Global_40609[70 /*46*/].f_3[0] = 11;
Global_40609[70 /*46*/].f_30 = 3;
Global_40609[70 /*46*/].f_8[0] = 155;
Global_40609[70 /*46*/].f_8[1] = 156;
Global_40609[70 /*46*/].f_8[2] = 157;
Global_40609[71 /*46*/].f_45 = 0;
Global_40609[71 /*46*/].f_31 = 0;
Global_40609[71 /*46*/].f_42 = 0;
Global_40609[71 /*46*/].f_43 = 0;
Global_40609[71 /*46*/].f_2 = 2;
Global_40609[71 /*46*/].f_3[0] = 2;
Global_40609[71 /*46*/].f_3[1] = 29;
Global_40609[71 /*46*/].f_30 = 1;
Global_40609[71 /*46*/].f_8[0] = 158;
Global_40609[72 /*46*/].f_45 = 0;
Global_40609[72 /*46*/].f_31 = 0;
Global_40609[72 /*46*/].f_42 = 0;
Global_40609[72 /*46*/].f_43 = 0;
Global_40609[72 /*46*/].f_2 = 1;
Global_40609[72 /*46*/].f_3[0] = 0;
Global_40609[72 /*46*/].f_30 = 1;
Global_40609[72 /*46*/].f_8[0] = 159;
Global_40609[73 /*46*/].f_45 = 0;
Global_40609[73 /*46*/].f_31 = 0;
Global_40609[73 /*46*/].f_42 = 0;
Global_40609[73 /*46*/].f_43 = 0;
Global_40609[73 /*46*/].f_2 = 1;
Global_40609[73 /*46*/].f_3[0] = 1;
Global_40609[73 /*46*/].f_30 = 1;
Global_40609[73 /*46*/].f_8[0] = 160;
Global_40609[74 /*46*/].f_45 = 0;
Global_40609[74 /*46*/].f_31 = 0;
Global_40609[74 /*46*/].f_42 = 0;
Global_40609[74 /*46*/].f_43 = 0;
Global_40609[74 /*46*/].f_2 = 1;
Global_40609[74 /*46*/].f_3[0] = 1;
Global_40609[74 /*46*/].f_30 = 1;
Global_40609[74 /*46*/].f_8[0] = 161;
Global_40609[75 /*46*/].f_45 = 0;
Global_40609[75 /*46*/].f_31 = 0;
Global_40609[75 /*46*/].f_42 = 0;
Global_40609[75 /*46*/].f_43 = 0;
Global_40609[75 /*46*/].f_2 = 1;
Global_40609[75 /*46*/].f_3[0] = 0;
Global_40609[75 /*46*/].f_30 = 1;
Global_40609[75 /*46*/].f_8[0] = 162;
Global_40609[76 /*46*/].f_45 = 0;
Global_40609[76 /*46*/].f_31 = 0;
Global_40609[76 /*46*/].f_42 = 0;
Global_40609[76 /*46*/].f_43 = 0;
Global_40609[76 /*46*/].f_2 = 1;
Global_40609[76 /*46*/].f_3[0] = 2;
Global_40609[76 /*46*/].f_30 = 1;
Global_40609[76 /*46*/].f_8[0] = 163;
Global_40609[77 /*46*/].f_45 = 0;
Global_40609[77 /*46*/].f_31 = 0;
Global_40609[77 /*46*/].f_42 = 0;
Global_40609[77 /*46*/].f_43 = 0;
Global_40609[77 /*46*/].f_2 = 1;
Global_40609[77 /*46*/].f_3[0] = 1;
Global_40609[77 /*46*/].f_30 = 1;
Global_40609[77 /*46*/].f_8[0] = 164;
Global_40609[78 /*46*/].f_45 = 0;
Global_40609[78 /*46*/].f_31 = 0;
Global_40609[78 /*46*/].f_42 = 0;
Global_40609[78 /*46*/].f_43 = 0;
Global_40609[78 /*46*/].f_2 = 1;
Global_40609[78 /*46*/].f_3[0] = 1;
Global_40609[78 /*46*/].f_30 = 1;
Global_40609[78 /*46*/].f_8[0] = 165;
Global_40609[79 /*46*/].f_45 = 0;
Global_40609[79 /*46*/].f_31 = 0;
Global_40609[79 /*46*/].f_42 = 0;
Global_40609[79 /*46*/].f_43 = 0;
Global_40609[79 /*46*/].f_2 = 1;
Global_40609[79 /*46*/].f_3[0] = 0;
Global_40609[79 /*46*/].f_30 = 1;
Global_40609[79 /*46*/].f_8[0] = 166;
Global_40609[80 /*46*/].f_45 = 0;
Global_40609[80 /*46*/].f_31 = 0;
Global_40609[80 /*46*/].f_42 = 0;
Global_40609[80 /*46*/].f_43 = 0;
Global_40609[80 /*46*/].f_2 = 1;
Global_40609[80 /*46*/].f_3[0] = 0;
Global_40609[80 /*46*/].f_30 = 1;
Global_40609[80 /*46*/].f_8[0] = 167;
Global_40609[81 /*46*/].f_45 = 0;
Global_40609[81 /*46*/].f_31 = 0;
Global_40609[81 /*46*/].f_42 = 0;
Global_40609[81 /*46*/].f_43 = 0;
Global_40609[81 /*46*/].f_2 = 1;
Global_40609[81 /*46*/].f_3[0] = 0;
Global_40609[81 /*46*/].f_30 = 1;
Global_40609[81 /*46*/].f_8[0] = 168;
Global_40609[82 /*46*/].f_45 = 0;
Global_40609[82 /*46*/].f_31 = 0;
Global_40609[82 /*46*/].f_42 = 0;
Global_40609[82 /*46*/].f_43 = 0;
Global_40609[82 /*46*/].f_2 = 1;
Global_40609[82 /*46*/].f_3[0] = 2;
Global_40609[82 /*46*/].f_30 = 1;
Global_40609[82 /*46*/].f_8[0] = 169;
Global_40609[83 /*46*/].f_45 = 0;
Global_40609[83 /*46*/].f_31 = 0;
Global_40609[83 /*46*/].f_42 = 0;
Global_40609[83 /*46*/].f_43 = 0;
Global_40609[83 /*46*/].f_2 = 1;
Global_40609[83 /*46*/].f_3[0] = 1;
Global_40609[83 /*46*/].f_30 = 1;
Global_40609[83 /*46*/].f_8[0] = 170;
Global_40609[84 /*46*/].f_45 = 0;
Global_40609[84 /*46*/].f_31 = 0;
Global_40609[84 /*46*/].f_42 = 0;
Global_40609[84 /*46*/].f_43 = 0;
Global_40609[84 /*46*/].f_2 = 1;
Global_40609[84 /*46*/].f_3[0] = 1;
Global_40609[84 /*46*/].f_30 = 1;
Global_40609[84 /*46*/].f_8[0] = 171;
Global_40609[85 /*46*/].f_45 = 0;
Global_40609[85 /*46*/].f_31 = 0;
Global_40609[85 /*46*/].f_42 = 0;
Global_40609[85 /*46*/].f_43 = 0;
Global_40609[85 /*46*/].f_2 = 1;
Global_40609[85 /*46*/].f_3[0] = 0;
Global_40609[85 /*46*/].f_30 = 1;
Global_40609[85 /*46*/].f_8[0] = 172;
Global_40609[86 /*46*/].f_45 = 0;
Global_40609[86 /*46*/].f_31 = 0;
Global_40609[86 /*46*/].f_42 = 0;
Global_40609[86 /*46*/].f_43 = 0;
Global_40609[86 /*46*/].f_2 = 1;
Global_40609[86 /*46*/].f_3[0] = 2;
Global_40609[86 /*46*/].f_30 = 1;
Global_40609[86 /*46*/].f_8[0] = 173;
Global_40609[87 /*46*/].f_45 = 0;
Global_40609[87 /*46*/].f_31 = 0;
Global_40609[87 /*46*/].f_42 = 0;
Global_40609[87 /*46*/].f_43 = 0;
Global_40609[87 /*46*/].f_2 = 1;
Global_40609[87 /*46*/].f_3[0] = 1;
Global_40609[87 /*46*/].f_30 = 1;
Global_40609[87 /*46*/].f_8[0] = 174;
Global_40609[88 /*46*/].f_45 = 0;
Global_40609[88 /*46*/].f_31 = 0;
Global_40609[88 /*46*/].f_42 = 0;
Global_40609[88 /*46*/].f_43 = 0;
Global_40609[88 /*46*/].f_2 = 1;
Global_40609[88 /*46*/].f_3[0] = 0;
Global_40609[88 /*46*/].f_30 = 1;
Global_40609[88 /*46*/].f_8[0] = 175;
Global_40609[89 /*46*/].f_45 = 0;
Global_40609[89 /*46*/].f_31 = 0;
Global_40609[89 /*46*/].f_42 = 0;
Global_40609[89 /*46*/].f_43 = 0;
Global_40609[89 /*46*/].f_2 = 1;
Global_40609[89 /*46*/].f_3[0] = 2;
Global_40609[89 /*46*/].f_30 = 1;
Global_40609[89 /*46*/].f_8[0] = 176;
Global_40609[90 /*46*/].f_45 = 0;
Global_40609[90 /*46*/].f_31 = 0;
Global_40609[90 /*46*/].f_42 = 0;
Global_40609[90 /*46*/].f_43 = 0;
Global_40609[90 /*46*/].f_2 = 1;
Global_40609[90 /*46*/].f_3[0] = 1;
Global_40609[90 /*46*/].f_30 = 1;
Global_40609[90 /*46*/].f_8[0] = 177;
Global_40609[91 /*46*/].f_45 = 0;
Global_40609[91 /*46*/].f_31 = 0;
Global_40609[91 /*46*/].f_42 = 0;
Global_40609[91 /*46*/].f_43 = 0;
Global_40609[91 /*46*/].f_2 = 1;
Global_40609[91 /*46*/].f_3[0] = 0;
Global_40609[91 /*46*/].f_30 = 1;
Global_40609[91 /*46*/].f_8[0] = 179;
Global_40609[92 /*46*/].f_45 = 0;
Global_40609[92 /*46*/].f_31 = 0;
Global_40609[92 /*46*/].f_42 = 0;
Global_40609[92 /*46*/].f_43 = 0;
Global_40609[92 /*46*/].f_2 = 1;
Global_40609[92 /*46*/].f_3[0] = 2;
Global_40609[92 /*46*/].f_30 = 1;
Global_40609[92 /*46*/].f_8[0] = 178;
Global_40609[93 /*46*/].f_45 = 0;
Global_40609[93 /*46*/].f_31 = 0;
Global_40609[93 /*46*/].f_42 = 0;
Global_40609[93 /*46*/].f_43 = 0;
Global_40609[93 /*46*/].f_2 = 1;
Global_40609[93 /*46*/].f_3[0] = 1;
Global_40609[93 /*46*/].f_30 = 1;
Global_40609[93 /*46*/].f_8[0] = 180;
Global_40609[94 /*46*/].f_45 = 0;
Global_40609[94 /*46*/].f_31 = 0;
Global_40609[94 /*46*/].f_42 = 0;
Global_40609[94 /*46*/].f_43 = 0;
Global_40609[94 /*46*/].f_2 = 2;
Global_40609[94 /*46*/].f_3[0] = 4;
Global_40609[94 /*46*/].f_3[1] = 0;
Global_40609[94 /*46*/].f_30 = 1;
Global_40609[94 /*46*/].f_8[0] = 181;
Global_40609[95 /*46*/].f_45 = 0;
Global_40609[95 /*46*/].f_31 = 0;
Global_40609[95 /*46*/].f_42 = 0;
Global_40609[95 /*46*/].f_43 = 0;
Global_40609[95 /*46*/].f_2 = 1;
Global_40609[95 /*46*/].f_3[0] = 37;
Global_40609[95 /*46*/].f_30 = 1;
Global_40609[95 /*46*/].f_8[0] = 182;
Global_40609[96 /*46*/].f_45 = 0;
Global_40609[96 /*46*/].f_31 = 0;
Global_40609[96 /*46*/].f_42 = 0;
Global_40609[96 /*46*/].f_43 = 0;
Global_40609[96 /*46*/].f_2 = 1;
Global_40609[96 /*46*/].f_3[0] = 37;
Global_40609[96 /*46*/].f_30 = 1;
Global_40609[96 /*46*/].f_8[0] = 183;
Global_40609[97 /*46*/].f_45 = 0;
Global_40609[97 /*46*/].f_31 = 0;
Global_40609[97 /*46*/].f_42 = 0;
Global_40609[97 /*46*/].f_43 = 0;
Global_40609[97 /*46*/].f_2 = 1;
Global_40609[97 /*46*/].f_3[0] = 37;
Global_40609[97 /*46*/].f_30 = 1;
Global_40609[97 /*46*/].f_8[0] = 184;
Global_40609[98 /*46*/].f_45 = 0;
Global_40609[98 /*46*/].f_31 = 0;
Global_40609[98 /*46*/].f_42 = 0;
Global_40609[98 /*46*/].f_43 = 0;
Global_40609[98 /*46*/].f_2 = 1;
Global_40609[98 /*46*/].f_3[0] = 54;
Global_40609[98 /*46*/].f_30 = 3;
Global_40609[98 /*46*/].f_8[0] = 185;
Global_40609[98 /*46*/].f_8[1] = 186;
Global_40609[98 /*46*/].f_8[2] = 188;
Global_40609[99 /*46*/].f_45 = 0;
Global_40609[99 /*46*/].f_31 = 0;
Global_40609[99 /*46*/].f_42 = 0;
Global_40609[99 /*46*/].f_43 = 0;
Global_40609[99 /*46*/].f_2 = 1;
Global_40609[99 /*46*/].f_3[0] = 55;
Global_40609[99 /*46*/].f_30 = 3;
Global_40609[99 /*46*/].f_8[0] = 187;
Global_40609[99 /*46*/].f_8[1] = 189;
Global_40609[99 /*46*/].f_8[2] = 190;
Global_40609[100 /*46*/].f_45 = 0;
Global_40609[100 /*46*/].f_31 = 0;
Global_40609[100 /*46*/].f_42 = 0;
Global_40609[100 /*46*/].f_43 = 0;
Global_40609[100 /*46*/].f_2 = 3;
Global_40609[100 /*46*/].f_3[0] = 56;
Global_40609[100 /*46*/].f_3[1] = 0;
Global_40609[100 /*46*/].f_3[2] = 2;
Global_40609[100 /*46*/].f_30 = 5;
Global_40609[100 /*46*/].f_8[0] = 194;
Global_40609[100 /*46*/].f_8[1] = 195;
Global_40609[100 /*46*/].f_8[2] = 196;
Global_40609[100 /*46*/].f_8[3] = 197;
Global_40609[100 /*46*/].f_8[4] = 198;
Global_40609[101 /*46*/].f_45 = 0;
Global_40609[101 /*46*/].f_31 = 0;
Global_40609[101 /*46*/].f_42 = 0;
Global_40609[101 /*46*/].f_43 = 0;
Global_40609[101 /*46*/].f_2 = 2;
Global_40609[101 /*46*/].f_3[0] = 57;
Global_40609[101 /*46*/].f_3[1] = 0;
Global_40609[101 /*46*/].f_30 = 8;
Global_40609[101 /*46*/].f_8[0] = 199;
Global_40609[101 /*46*/].f_8[1] = 200;
Global_40609[101 /*46*/].f_8[2] = 201;
Global_40609[101 /*46*/].f_8[3] = 202;
Global_40609[101 /*46*/].f_8[4] = 203;
Global_40609[101 /*46*/].f_8[5] = 204;
Global_40609[101 /*46*/].f_8[6] = 205;
Global_40609[101 /*46*/].f_8[7] = 206;
Global_40609[102 /*46*/].f_45 = 0;
Global_40609[102 /*46*/].f_31 = 0;
Global_40609[102 /*46*/].f_42 = 0;
Global_40609[102 /*46*/].f_43 = 0;
Global_40609[102 /*46*/].f_2 = 2;
Global_40609[102 /*46*/].f_3[0] = 58;
Global_40609[102 /*46*/].f_3[1] = 0;
Global_40609[102 /*46*/].f_30 = 7;
Global_40609[102 /*46*/].f_8[0] = 207;
Global_40609[102 /*46*/].f_8[1] = 208;
Global_40609[102 /*46*/].f_8[2] = 209;
Global_40609[102 /*46*/].f_8[3] = 210;
Global_40609[102 /*46*/].f_8[4] = 211;
Global_40609[102 /*46*/].f_8[5] = 212;
Global_40609[102 /*46*/].f_8[6] = 213;
Global_40609[103 /*46*/].f_45 = 0;
Global_40609[103 /*46*/].f_31 = 0;
Global_40609[103 /*46*/].f_42 = 0;
Global_40609[103 /*46*/].f_43 = 0;
Global_40609[103 /*46*/].f_2 = 2;
Global_40609[103 /*46*/].f_3[0] = 59;
Global_40609[103 /*46*/].f_3[1] = 0;
Global_40609[103 /*46*/].f_30 = 8;
Global_40609[103 /*46*/].f_8[0] = 214;
Global_40609[103 /*46*/].f_8[1] = 215;
Global_40609[103 /*46*/].f_8[2] = 216;
Global_40609[103 /*46*/].f_8[3] = 217;
Global_40609[103 /*46*/].f_8[4] = 218;
Global_40609[103 /*46*/].f_8[5] = 219;
Global_40609[103 /*46*/].f_8[6] = 220;
Global_40609[103 /*46*/].f_8[7] = 221;
Global_40609[104 /*46*/].f_45 = 0;
Global_40609[104 /*46*/].f_31 = 0;
Global_40609[104 /*46*/].f_42 = 0;
Global_40609[104 /*46*/].f_43 = 0;
Global_40609[104 /*46*/].f_2 = 2;
Global_40609[104 /*46*/].f_3[0] = 60;
Global_40609[104 /*46*/].f_3[1] = 2;
Global_40609[104 /*46*/].f_30 = 7;
Global_40609[104 /*46*/].f_8[0] = 222;
Global_40609[104 /*46*/].f_8[1] = 223;
Global_40609[104 /*46*/].f_8[2] = 224;
Global_40609[104 /*46*/].f_8[3] = 225;
Global_40609[104 /*46*/].f_8[4] = 226;
Global_40609[104 /*46*/].f_8[5] = 227;
Global_40609[104 /*46*/].f_8[6] = 228;
Global_40609[105 /*46*/].f_45 = 0;
Global_40609[105 /*46*/].f_31 = 0;
Global_40609[105 /*46*/].f_42 = 0;
Global_40609[105 /*46*/].f_43 = 0;
Global_40609[105 /*46*/].f_2 = 2;
Global_40609[105 /*46*/].f_3[0] = 61;
Global_40609[105 /*46*/].f_3[1] = 2;
Global_40609[105 /*46*/].f_30 = 6;
Global_40609[105 /*46*/].f_8[0] = 229;
Global_40609[105 /*46*/].f_8[1] = 230;
Global_40609[105 /*46*/].f_8[2] = 231;
Global_40609[105 /*46*/].f_8[3] = 232;
Global_40609[105 /*46*/].f_8[4] = 233;
Global_40609[105 /*46*/].f_8[5] = 234;
Global_40609[106 /*46*/].f_45 = 0;
Global_40609[106 /*46*/].f_31 = 0;
Global_40609[106 /*46*/].f_42 = 0;
Global_40609[106 /*46*/].f_43 = 0;
Global_40609[106 /*46*/].f_2 = 2;
Global_40609[106 /*46*/].f_3[0] = 62;
Global_40609[106 /*46*/].f_3[1] = 2;
Global_40609[106 /*46*/].f_30 = 6;
Global_40609[106 /*46*/].f_8[0] = 235;
Global_40609[106 /*46*/].f_8[1] = 236;
Global_40609[106 /*46*/].f_8[2] = 237;
Global_40609[106 /*46*/].f_8[3] = 238;
Global_40609[106 /*46*/].f_8[4] = 239;
Global_40609[106 /*46*/].f_8[5] = 240;
Global_40609[107 /*46*/].f_45 = 0;
Global_40609[107 /*46*/].f_31 = 0;
Global_40609[107 /*46*/].f_42 = 0;
Global_40609[107 /*46*/].f_43 = 0;
Global_40609[107 /*46*/].f_2 = 1;
Global_40609[107 /*46*/].f_3[0] = 36;
Global_40609[107 /*46*/].f_30 = 1;
Global_40609[107 /*46*/].f_8[0] = 241;
Global_40609[108 /*46*/].f_45 = 0;
Global_40609[108 /*46*/].f_31 = 0;
Global_40609[108 /*46*/].f_42 = 0;
Global_40609[108 /*46*/].f_43 = 0;
Global_40609[108 /*46*/].f_2 = 1;
Global_40609[108 /*46*/].f_3[0] = 36;
Global_40609[108 /*46*/].f_30 = 1;
Global_40609[108 /*46*/].f_8[0] = 242;
Global_40609[109 /*46*/].f_45 = 0;
Global_40609[109 /*46*/].f_31 = 0;
Global_40609[109 /*46*/].f_42 = 0;
Global_40609[109 /*46*/].f_43 = 0;
Global_40609[109 /*46*/].f_2 = 1;
Global_40609[109 /*46*/].f_3[0] = 36;
Global_40609[109 /*46*/].f_30 = 1;
Global_40609[109 /*46*/].f_8[0] = 243;
Global_40609[110 /*46*/].f_45 = 0;
Global_40609[110 /*46*/].f_31 = 0;
Global_40609[110 /*46*/].f_42 = 0;
Global_40609[110 /*46*/].f_43 = 0;
Global_40609[110 /*46*/].f_2 = 1;
Global_40609[110 /*46*/].f_3[0] = 65;
Global_40609[110 /*46*/].f_30 = 1;
Global_40609[110 /*46*/].f_8[0] = 244;
Global_40609[111 /*46*/].f_45 = 0;
Global_40609[111 /*46*/].f_31 = 0;
Global_40609[111 /*46*/].f_42 = 0;
Global_40609[111 /*46*/].f_43 = 0;
Global_40609[111 /*46*/].f_2 = 1;
Global_40609[111 /*46*/].f_3[0] = 65;
Global_40609[111 /*46*/].f_30 = 1;
Global_40609[111 /*46*/].f_8[0] = 245;
Global_40609[112 /*46*/].f_45 = 0;
Global_40609[112 /*46*/].f_31 = 0;
Global_40609[112 /*46*/].f_42 = 0;
Global_40609[112 /*46*/].f_43 = 0;
Global_40609[112 /*46*/].f_2 = 1;
Global_40609[112 /*46*/].f_3[0] = 65;
Global_40609[112 /*46*/].f_30 = 1;
Global_40609[112 /*46*/].f_8[0] = 246;
Global_40609[113 /*46*/].f_45 = 0;
Global_40609[113 /*46*/].f_31 = 0;
Global_40609[113 /*46*/].f_42 = 0;
Global_40609[113 /*46*/].f_43 = 0;
Global_40609[113 /*46*/].f_2 = 1;
Global_40609[113 /*46*/].f_3[0] = 65;
Global_40609[113 /*46*/].f_30 = 1;
Global_40609[113 /*46*/].f_8[0] = 247;
Global_40609[114 /*46*/].f_45 = 0;
Global_40609[114 /*46*/].f_31 = 0;
Global_40609[114 /*46*/].f_42 = 0;
Global_40609[114 /*46*/].f_43 = 0;
Global_40609[114 /*46*/].f_2 = 2;
Global_40609[114 /*46*/].f_3[0] = 19;
Global_40609[114 /*46*/].f_3[1] = 1;
Global_40609[114 /*46*/].f_30 = 21;
Global_40609[114 /*46*/].f_8[0] = 249;
Global_40609[114 /*46*/].f_8[1] = 250;
Global_40609[114 /*46*/].f_8[2] = 251;
Global_40609[114 /*46*/].f_8[3] = 252;
Global_40609[114 /*46*/].f_8[4] = 253;
Global_40609[114 /*46*/].f_8[5] = 254;
Global_40609[114 /*46*/].f_8[6] = 255;
Global_40609[114 /*46*/].f_8[7] = 256;
Global_40609[114 /*46*/].f_8[8] = 257;
Global_40609[114 /*46*/].f_8[9] = 258;
Global_40609[114 /*46*/].f_8[10] = 259;
Global_40609[114 /*46*/].f_8[11] = 260;
Global_40609[114 /*46*/].f_8[12] = 261;
Global_40609[114 /*46*/].f_8[13] = 262;
Global_40609[114 /*46*/].f_8[14] = 263;
Global_40609[114 /*46*/].f_8[15] = 264;
Global_40609[114 /*46*/].f_8[16] = 265;
Global_40609[114 /*46*/].f_8[17] = 266;
Global_40609[114 /*46*/].f_8[18] = 267;
Global_40609[114 /*46*/].f_8[19] = 268;
Global_40609[114 /*46*/].f_8[20] = 269;
Global_40609[115 /*46*/].f_45 = 0;
Global_40609[115 /*46*/].f_31 = 0;
Global_40609[115 /*46*/].f_42 = 0;
Global_40609[115 /*46*/].f_43 = 0;
Global_40609[115 /*46*/].f_2 = 4;
Global_40609[115 /*46*/].f_3[0] = 0;
Global_40609[115 /*46*/].f_3[1] = 1;
Global_40609[115 /*46*/].f_3[2] = 2;
Global_40609[115 /*46*/].f_3[3] = 16;
Global_40609[115 /*46*/].f_30 = 1;
Global_40609[115 /*46*/].f_8[0] = 270;
Global_40609[116 /*46*/].f_45 = 0;
Global_40609[116 /*46*/].f_31 = 0;
Global_40609[116 /*46*/].f_42 = 0;
Global_40609[116 /*46*/].f_43 = 0;
Global_40609[116 /*46*/].f_2 = 4;
Global_40609[116 /*46*/].f_3[0] = 0;
Global_40609[116 /*46*/].f_3[1] = 1;
Global_40609[116 /*46*/].f_3[2] = 2;
Global_40609[116 /*46*/].f_3[3] = 16;
Global_40609[116 /*46*/].f_30 = 1;
Global_40609[116 /*46*/].f_8[0] = 271;
Global_40609[117 /*46*/].f_45 = 0;
Global_40609[117 /*46*/].f_31 = 0;
Global_40609[117 /*46*/].f_42 = 0;
Global_40609[117 /*46*/].f_43 = 0;
Global_40609[117 /*46*/].f_2 = 4;
Global_40609[117 /*46*/].f_3[0] = 0;
Global_40609[117 /*46*/].f_3[1] = 1;
Global_40609[117 /*46*/].f_3[2] = 2;
Global_40609[117 /*46*/].f_3[3] = 16;
Global_40609[117 /*46*/].f_30 = 1;
Global_40609[117 /*46*/].f_8[0] = 272;
Global_40609[118 /*46*/].f_45 = 0;
Global_40609[118 /*46*/].f_31 = 0;
Global_40609[118 /*46*/].f_42 = 0;
Global_40609[118 /*46*/].f_43 = 0;
Global_40609[118 /*46*/].f_2 = 4;
Global_40609[118 /*46*/].f_3[0] = 0;
Global_40609[118 /*46*/].f_3[1] = 1;
Global_40609[118 /*46*/].f_3[2] = 2;
Global_40609[118 /*46*/].f_3[3] = 16;
Global_40609[118 /*46*/].f_30 = 1;
Global_40609[118 /*46*/].f_8[0] = 273;
Global_40609[119 /*46*/].f_45 = 0;
Global_40609[119 /*46*/].f_31 = 0;
Global_40609[119 /*46*/].f_42 = 0;
Global_40609[119 /*46*/].f_43 = 0;
Global_40609[119 /*46*/].f_2 = 4;
Global_40609[119 /*46*/].f_3[0] = 0;
Global_40609[119 /*46*/].f_3[1] = 1;
Global_40609[119 /*46*/].f_3[2] = 2;
Global_40609[119 /*46*/].f_3[3] = 16;
Global_40609[119 /*46*/].f_30 = 1;
Global_40609[119 /*46*/].f_8[0] = 274;
Global_40609[120 /*46*/].f_45 = 0;
Global_40609[120 /*46*/].f_31 = 0;
Global_40609[120 /*46*/].f_42 = 0;
Global_40609[120 /*46*/].f_43 = 0;
Global_40609[120 /*46*/].f_2 = 4;
Global_40609[120 /*46*/].f_3[0] = 0;
Global_40609[120 /*46*/].f_3[1] = 1;
Global_40609[120 /*46*/].f_3[2] = 2;
Global_40609[120 /*46*/].f_3[3] = 16;
Global_40609[120 /*46*/].f_30 = 1;
Global_40609[120 /*46*/].f_8[0] = 275;
Global_40609[121 /*46*/].f_45 = 0;
Global_40609[121 /*46*/].f_31 = 0;
Global_40609[121 /*46*/].f_42 = 0;
Global_40609[121 /*46*/].f_43 = 0;
Global_40609[121 /*46*/].f_2 = 4;
Global_40609[121 /*46*/].f_3[0] = 0;
Global_40609[121 /*46*/].f_3[1] = 1;
Global_40609[121 /*46*/].f_3[2] = 2;
Global_40609[121 /*46*/].f_3[3] = 16;
Global_40609[121 /*46*/].f_30 = 1;
Global_40609[121 /*46*/].f_8[0] = 276;
}
void func_781()
{
int iVar0;
iVar0 = 0;
while (iVar0 < Global_71267)
{
Global_71268[iVar0 /*4*/] = -1;
Global_71268[iVar0 /*4*/].f_1 = 0;
Global_71268[iVar0 /*4*/].f_2 = 0;
Global_71268[iVar0 /*4*/].f_3 = 0;
iVar0++;
}
Global_71267 = 0;
iVar0 = 0;
while (iVar0 < Global_71389)
{
Global_71390[iVar0 /*3*/] = -1;
Global_71390[iVar0 /*3*/].f_1 = 0;
Global_71390[iVar0 /*3*/].f_2 = -99;
iVar0++;
}
Global_71389 = 0;
iVar0 = 0;
while (iVar0 < Global_71403)
{
Global_71404[iVar0 /*2*/] = -1;
Global_71404[iVar0 /*2*/].f_1 = 0;
iVar0++;
}
Global_71403 = 0;
iVar0 = 0;
while (iVar0 < Global_71415)
{
Global_71416[iVar0 /*4*/] = -1;
Global_71416[iVar0 /*4*/].f_1 = 0;
Global_71416[iVar0 /*4*/].f_2 = 0;
Global_71416[iVar0 /*4*/].f_3 = 0;
iVar0++;
}
Global_71415 = 0;
iVar0 = 0;
while (iVar0 < Global_71229)
{
StringCopy(&(Global_71230[iVar0 /*6*/]), "", 24);
iVar0++;
}
Global_71229 = 0;
iVar0 = 0;
while (iVar0 < 3)
{
Global_71225[iVar0] = 0;
iVar0++;
}
Global_71210 = -1;
Global_71217[0] = -1;
Global_71217[1] = -1;
Global_71217[2] = -1;
Global_71208 = 0;
Global_71209 = 0;
Global_71224 = 0;
Global_71223 = 0;
Global_71222 = 1;
}
void func_782()
{
func_783();
}
void func_783()
{
func_792(&(Global_106070.f_18075[0 /*29*/]), 0);
func_792(&(Global_106070.f_18075[1 /*29*/]), 1);
func_792(&(Global_106070.f_18075[2 /*29*/]), 2);
func_792(&(Global_106070.f_18075[3 /*29*/]), 19);
func_792(&(Global_106070.f_18075[4 /*29*/]), 14);
func_792(&(Global_106070.f_18075[5 /*29*/]), 17);
func_789(0, 1);
func_789(1, 2);
func_789(2, 0);
func_789(1, 3);
func_789(2, 3);
func_789(0, 4);
func_789(1, 4);
func_789(2, 4);
func_789(0, 5);
func_784(0, 1, 2);
func_784(1, 2, 3);
Global_106070.f_18075.f_395 = 0;
Global_89173 = 0;
Global_89174 = -1;
Global_89175 = 0;
Global_89178 = 0;
Global_89179 = 0;
Global_89180 = 0;
Global_89181 = 0;
Global_89182 = 0;
Global_89176 = -1;
Global_89177 = 0;
Global_89158 = 145;
}
void func_784(int iParam0, int iParam1, int iParam2)
{
int iVar0;
iVar0 = func_788(iParam0, iParam1, iParam2);
if (iVar0 < 2)
{
func_785(&(Global_106070.f_18075.f_347[iVar0 /*7*/]), iVar0);
}
}
void func_785(var uParam0, int iParam1)
{
func_787(uParam0);
switch (iParam1)
{
case 0:
func_786(uParam0[0], 0, 0, 0, 2, 2, 0, 9);
func_786(uParam0[1], 0, 0, 0, 8, 8, 2, 1);
break;
case 1:
func_786(uParam0[0], 0, 0, 0, 6, 6, 5, 1);
break;
}
}
void func_786(var uParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5, int iParam6, int iParam7)
{
*uParam0 = 0;
*uParam0 = (*uParam0 || shift_left(iParam1 & 15, 28));
*uParam0 = (*uParam0 || shift_left(iParam2 & 15, 24));
*uParam0 = (*uParam0 || shift_left(iParam3 & 15, 20));
*uParam0 = (*uParam0 || shift_left(iParam4 & 15, 16));
*uParam0 = (*uParam0 || shift_left(iParam5 & 15, 12));
*uParam0 = (*uParam0 || shift_left(iParam6 & 15, 8));
*uParam0 = (*uParam0 || iParam7 & 255);
}
void func_787(var uParam0)
{
func_786(uParam0[0], 0, 0, 0, 0, 0, 0, 0);
func_786(uParam0[1], 0, 0, 0, 0, 0, 0, 0);
func_786(uParam0[2], 0, 0, 0, 0, 0, 0, 0);
func_786(uParam0[3], 0, 0, 0, 0, 0, 0, 0);
func_786(uParam0[4], 0, 0, 0, 0, 0, 0, 0);
func_786(uParam0[5], 0, 0, 0, 0, 0, 0, 0);
}
int func_788(int iParam0, int iParam1, int iParam2)
{
if ((iParam0 == iParam1 || iParam1 == iParam2) || iParam2 == iParam0)
{
return 3;
}
if (((iParam0 == 1 || iParam1 == 1) || iParam2 == 1) && ((iParam0 == 2 || iParam1 == 2) || iParam2 == 2))
{
if ((iParam0 == 0 || iParam1 == 0) || iParam2 == 0)
{
return 0;
}
if ((iParam0 == 3 || iParam1 == 3) || iParam2 == 3)
{
return 1;
}
}
return 3;
}
void func_789(int iParam0, int iParam1)
{
int iVar0;
iVar0 = func_736(iParam0, iParam1);
if (iVar0 < 9)
{
func_790(&(Global_89183[iVar0 /*2*/]), &(Global_106070.f_18075.f_175[iVar0 /*19*/]), iVar0, iParam0, iParam1);
}
}
void func_790(var uParam0, var uParam1, int iParam2, int iParam3, int iParam4)
{
*uParam1 = iParam3;
uParam1->f_1 = iParam4;
*uParam0 = -1;
uParam0->f_1 = 0;
uParam1->f_2 = 0;
uParam1->f_3 = -1;
uParam1->f_4 = -1;
func_791(&(uParam1->f_5));
uParam1->f_8 = 1;
uParam1->f_16 = 7;
uParam1->f_17 = -1;
uParam1->f_18 = 0;
func_787(&(uParam1->f_9));
switch (iParam2)
{
case 6:
func_786(&(uParam1->f_9[0]), 0, 0, 0, 1, 0, 0, 4);
func_786(&(uParam1->f_9[1]), 0, 0, 0, 10, 6, 10, 1);
break;
case 3:
func_786(&(uParam1->f_9[0]), 0, 0, 0, 1, 0, 0, 18);
func_786(&(uParam1->f_9[1]), 0, 0, 0, 1, 0, 0, 19);
func_786(&(uParam1->f_9[2]), 0, 0, 0, 4, 8, 0, 7);
func_786(&(uParam1->f_9[3]), 0, 0, 0, 4, 8, 0, 8);
func_786(&(uParam1->f_9[4]), 0, 0, 0, 9, 0, 0, 9);
func_786(&(uParam1->f_9[5]), 0, 0, 0, 0, 0, 8, 1);
func_787(&(Global_106070.f_18075.f_388));
func_786(&(Global_106070.f_18075.f_388[0]), 0, 0, 0, 0, 4, 0, 10);
func_786(&(Global_106070.f_18075.f_388[1]), 0, 0, 0, 0, 5, 0, 11);
func_786(&(Global_106070.f_18075.f_388[2]), 0, 0, 0, 0, 4, 0, 12);
func_786(&(Global_106070.f_18075.f_388[3]), 0, 0, 0, 0, 6, 0, 13);
func_786(&(Global_106070.f_18075.f_388[4]), 0, 0, 0, 0, 3, 0, 14);
break;
case 1:
func_786(&(uParam1->f_9[0]), 0, 0, 0, 2, 2, 0, 17);
func_786(&(uParam1->f_9[1]), 0, 0, 0, 2, 1, 1, 10);
func_786(&(uParam1->f_9[2]), 0, 0, 0, 8, 8, 4, 1);
break;
case 8:
func_786(&(uParam1->f_9[0]), 0, 0, 0, 8, 8, 4, 3);
func_786(&(uParam1->f_9[1]), 0, 0, 0, 8, 8, 3, 4);
func_786(&(uParam1->f_9[2]), 0, 0, 0, 0, 0, 1, 21);
break;
case 0:
func_786(&(uParam1->f_9[0]), 0, 0, 0, 2, 2, 0, 15);
func_786(&(uParam1->f_9[1]), 0, 0, 0, 2, 2, 0, 17);
func_786(&(uParam1->f_9[2]), 0, 0, 0, 2, 2, 0, 9);
func_786(&(uParam1->f_9[3]), 0, 0, 0, 8, 8, 4, 1);
break;
case 5:
func_786(&(uParam1->f_9[0]), 0, 0, 0, 6, 6, 0, 5);
func_786(&(uParam1->f_9[1]), 0, 0, 0, 8, 8, 0, 6);
break;
case 2:
func_786(&(uParam1->f_9[0]), 0, 0, 0, 2, 0, 0, 16);
func_786(&(uParam1->f_9[1]), 0, 0, 0, 2, 1, 1, 10);
func_786(&(uParam1->f_9[2]), 0, 0, 0, 1, 0, 0, 20);
func_786(&(uParam1->f_9[3]), 0, 0, 0, 5, 8, 4, 1);
break;
case 7:
func_786(&(uParam1->f_9[0]), 0, 0, 0, 1, 0, 0, 4);
func_786(&(uParam1->f_9[1]), 0, 0, 0, 10, 6, 0, 1);
break;
case 4:
func_786(&(uParam1->f_9[0]), 0, 0, 0, 6, 6, 0, 1);
func_786(&(uParam1->f_9[1]), 0, 0, 0, 6, 6, 0, 1);
break;
}
}
void func_791(var uParam0)
{
uParam0->f_1 = 0f;
uParam0->f_2 = 0f;
*uParam0 = 0;
}
void func_792(var uParam0, int iParam1)
{
*uParam0 = { Global_106070.f_28022[iParam1 /*29*/] };
}
void func_793()
{
int iVar0;
func_794();
iVar0 = 0;
while (iVar0 < 2)
{
Global_106070.f_18546.f_390[iVar0] = 0;
iVar0++;
}
}
void func_794()
{
int iVar0;
iVar0 = 0;
while (iVar0 < 63)
{
Global_105157[iVar0 /*10*/].f_5 = 0;
Global_105157[iVar0 /*10*/].f_6 = 0;
Global_105157[iVar0 /*10*/].f_4 = 0;
Global_105157[iVar0 /*10*/].f_9 = -1;
Global_105157[iVar0 /*10*/].f_3 = 0;
Global_106070.f_18546[iVar0 /*6*/] = 0;
Global_106070.f_18546[iVar0 /*6*/].f_1 = 0;
Global_106070.f_18546[iVar0 /*6*/].f_4 = 0;
iVar0++;
}
Global_106070.f_18546.f_379 = 0;
Global_106070.f_18546.f_380 = 0;
Global_106070.f_18546.f_381 = 0;
}
void func_795()
{
unk_0x504029C627B3C261(unk_0xD4E735F4B6A956AC());
unk_0x717B84DE5E60E767(func_49(0));
unk_0x717B84DE5E60E767(func_49(1));
unk_0x717B84DE5E60E767(func_49(2));
}
void func_796()
{
int iVar0;
int iVar1;
Global_70024.f_138 = 0;
iVar0 = 0;
while (iVar0 < 68)
{
Global_70024[iVar0] = 0;
Global_70024.f_69[iVar0] = 0;
Global_106070.f_32605[iVar0] = 0;
iVar0++;
}
iVar0 = 0;
while (iVar0 < 23)
{
Global_106070.f_32605.f_1934[iVar0] = -1f;
iVar0++;
}
iVar0 = 0;
while (iVar0 < 312)
{
Global_106070.f_32605.f_1982[0 /*939*/].f_626[iVar0] = -15;
Global_106070.f_32605.f_1982[1 /*939*/].f_626[iVar0] = -15;
Global_106070.f_32605.f_1982[2 /*939*/].f_626[iVar0] = -15;
iVar0++;
}
iVar0 = 0;
while (iVar0 < Global_106070.f_32605.f_4803)
{
Global_106070.f_32605.f_4803[iVar0 /*78*/].f_66 = 0;
iVar0++;
}
iVar1 = 0;
while (iVar1 < 3)
{
iVar0 = 0;
while (iVar0 < func_620(&(Global_106070.f_32605.f_5038[iVar1 /*157*/])))
{
Global_106070.f_32605.f_5038[iVar1 /*157*/][iVar0 /*78*/].f_66 = 0;
iVar0++;
}
Global_106070.f_32605.f_5596[iVar1] = 0;
Global_106070.f_32605.f_5600[iVar1 /*78*/].f_66 = 0;
iVar1++;
}
Global_106070.f_32605.f_5510.f_66 = 0;
Global_106070.f_32605.f_5588 = 0;
Global_106070.f_32605.f_4801 = -15;
}
void func_797(bool bParam0)
{
if (!bParam0)
{
Global_104712 = unk_0xFD34717937104F1C() + 250;
}
Global_104709 = bParam0;
}
void func_798()
{
int iVar0;
iVar0 = 0;
while (iVar0 < Global_106070.f_20382.f_145)
{
func_59(iVar0);
iVar0++;
}
Global_106070.f_20382.f_145 = 0;
iVar0 = 0;
while (iVar0 < 2)
{
Global_106070.f_20382.f_146[iVar0] = 0;
iVar0++;
}
if (unk_0xE06AA0996C4E4E03())
{
unk_0x135C61E339DABBAC(1);
}
}
void func_799()
{
func_800();
}
void func_800()
{
int iVar0;
Global_37021 = 1;
iVar0 = 0;
while (iVar0 < 6)
{
Global_36827[iVar0 /*32*/] = 0;
Global_36827[iVar0 /*32*/].f_2 = 0;
Global_36827[iVar0 /*32*/].f_4 = 0;
Global_36827[iVar0 /*32*/].f_5 = 0;
Global_36827[iVar0 /*32*/].f_7 = 0;
Global_36827[iVar0 /*32*/].f_1 = -1;
Global_36827[iVar0 /*32*/].f_3 = 0;
iVar0++;
}
}
void func_801()
{
int iVar0;
wait(0);
Global_31902 = 1;
func_817();
func_803(1);
func_802();
iVar0 = unk_0xA19140A5C42D8715();
func_632(func_44(), &iVar0);
wait(0);
}
void func_802()
{
int iVar0;
int iVar1;
iVar0 = 0;
while (iVar0 < 27)
{
iVar1 = 0;
while (iVar1 < Global_35240[iVar0 /*31*/].f_24)
{
Global_35240[iVar0 /*31*/].f_25[iVar1] = 0;
iVar1++;
}
Global_35240[iVar0 /*31*/].f_24 = 0;
iVar0++;
}
}
void func_803(int iParam0)
{
int iVar0;
if (Global_106070.f_7233.f_426)
{
iVar0 = 0;
while (iVar0 < 198)
{
Global_33084[iVar0] = 1;
func_604(iVar0, 1, iParam0, 0);
iVar0++;
}
func_816();
func_804();
}
Global_35076 = 1;
}
void func_804()
{
int iVar0;
iVar0 = 0;
while (iVar0 < 6)
{
Global_31888[iVar0] = 0;
Global_31895[iVar0] = 0;
iVar0++;
}
func_814(3, 1);
func_814(11, 1);
func_814(15, 1);
func_814(16, 1);
func_814(23, 1);
func_814(22, 1);
func_814(21, 1);
func_814(2, 1);
func_814(4, 1);
func_813(45, 1);
func_814(138, 1);
func_814(166, 1);
func_814(167, 1);
func_814(168, 1);
func_814(149, 1);
func_814(190, 1);
func_808(169, 1);
func_808(170, 1);
func_808(171, 1);
func_808(172, 1);
func_808(173, 1);
func_808(174, 1);
func_808(175, 1);
func_808(176, 1);
func_808(177, 1);
func_808(178, 1);
func_808(179, 1);
func_808(180, 1);
func_808(181, 1);
func_808(182, 1);
func_808(183, 1);
func_808(184, 1);
func_808(185, 1);
func_808(186, 1);
func_808(187, 1);
func_808(188, 1);
func_808(189, 1);
func_808(147, 1);
func_808(146, 1);
func_808(145, 1);
func_808(148, 1);
func_808(141, 1);
func_808(142, 1);
func_808(143, 1);
func_808(139, 1);
func_808(144, 1);
func_808(0, 1);
func_808(1, 1);
func_806(8, 1);
func_806(9, 1);
func_806(10, 1);
func_808(24, 1);
func_814(192, 1);
func_814(193, 1);
if (!unk_0x4C9BACA8D249CB13() && !func_805())
{
func_806(25, 1);
func_806(26, 1);
func_806(27, 1);
func_806(28, 1);
func_806(29, 1);
func_806(30, 1);
func_806(31, 1);
func_806(32, 1);
func_806(33, 1);
func_806(34, 1);
func_806(35, 1);
func_806(36, 1);
func_806(37, 1);
func_806(38, 1);
func_806(39, 1);
func_806(40, 1);
func_806(41, 1);
func_806(42, 1);
func_806(43, 1);
func_806(44, 1);
func_806(43, 1);
func_806(46, 1);
func_806(12, 1);
func_806(13, 1);
func_806(14, 1);
func_806(47, 1);
}
}
bool func_805()
{
return Global_2448386.f_580;
}
void func_806(int iParam0, bool bParam1)
{
struct<2> Var0;
Var0 = { func_807(iParam0) };
if (Var0.f_1 == -1)
{
return;
}
if (bParam1)
{
unk_0x2BCFB39E86340DAA(&(Global_31895[Var0.f_1]), Var0);
}
else
{
unk_0xFA57C719261AA55D(&(Global_31895[Var0.f_1]), Var0);
}
}
struct<2> func_807(var uParam0)
{
int iVar0;
int iVar1;
int iVar2;
struct<2> Var3;
iVar0 = uParam0;
iVar1 = 0;
iVar2 = 0;
Var3 = -1;
Var3.f_1 = -1;
while (iVar1 < 6)
{
iVar2 += 32;
if (iVar0 < iVar2)
{
Var3.f_1 = iVar1;
Var3 = (iVar0 - Var3.f_1 * 32);
return Var3;
}
iVar1++;
}
return Var3;
}
void func_808(int iParam0, bool bParam1)
{
char* sVar0;
int iVar1;
sVar0 = "NULL";
iVar1 = 0;
sVar0 = func_810(iParam0, &iVar1);
if (!unk_0x3CAC2741CC1A631F("NONE", sVar0) && iVar1 != 0)
{
if (bParam1)
{
if (unk_0xCA96527943C16C82(iVar1))
{
return;
}
if (unk_0xDA3A4E46D189F555(unk_0xA19140A5C42D8715()) == iVar1)
{
func_806(iParam0, 1);
return;
}
}
else
{
if (!unk_0xCA96527943C16C82(iVar1))
{
return;
}
if (func_809(iParam0))
{
func_806(iParam0, 0);
}
}
unk_0x91B3D9D185F338A1(iVar1, bParam1);
if (bParam1)
{
}
}
}
int func_809(int iParam0)
{
struct<2> Var0;
Var0 = { func_807(iParam0) };
if (Var0.f_1 != -1 && unk_0x05EFB6A616B6FADE(Global_31895[Var0.f_1], Var0))
{
return 1;
}
return 0;
}
var func_810(int iParam0, int iParam1)
{
struct<5> Var0;
Var0 = { func_811(iParam0) };
*iParam1 = unk_0xB68EB57358F46F86(Var0, Var0.f_3);
return Var0.f_4;
}
struct<5> func_811(int iParam0)
{
struct<5> Var0;
vector3 vVar1;
switch (iParam0)
{
case 0:
Var0 = { -447.4833f, 280.3197f, 77.5215f };
Var0.f_3 = "v_comedy";
Var0.f_4 = Var0.f_3;
break;
case 1:
Var0 = { -1906.786f, -573.7576f, 19.0773f };
Var0.f_3 = "v_psycheoffice";
Var0.f_4 = Var0.f_3;
break;
case 2:
Var0 = { 1399.973f, 1148.756f, 113.3336f };
Var0.f_3 = "v_ranch";
Var0.f_4 = Var0.f_3;
break;
case 3:
Var0 = { -598.6379f, -1608.399f, 26.0108f };
Var0.f_3 = "v_recycle";
Var0.f_4 = Var0.f_3;
break;
case 4:
Var0 = { -556.5089f, 286.3181f, 81.1763f };
Var0.f_3 = "v_rockclub";
Var0.f_4 = Var0.f_3;
break;
case 5:
Var0 = { -111.7116f, -11.912f, 69.5196f };
Var0.f_3 = "v_janitor";
Var0.f_4 = Var0.f_3;
break;
case 6:
Var0 = { 1274.934f, -1714.726f, 53.7715f };
Var0.f_3 = "v_lesters";
Var0.f_4 = Var0.f_3;
break;
case 7:
Var0 = { 147.433f, -2201.37f, 3.688f };
Var0.f_3 = "v_torture";
Var0.f_4 = Var0.f_3;
break;
case 8:
Var0 = { 320.9934f, 265.2515f, 82.1221f };
Var0.f_3 = "v_cinema";
Var0.f_4 = "v_cinema (Vinewood)";
break;
case 9:
Var0 = { -1425.564f, -244.3f, 15.8053f };
Var0.f_3 = "v_cinema";
Var0.f_4 = "v_cinema (Morningwood)";
break;
case 10:
Var0 = { 377.153f, -717.567f, 10.0536f };
Var0.f_3 = "v_cinema";
Var0.f_4 = "v_cinema (Downtown)";
break;
case 11:
Var0 = { 245.1564f, 370.211f, 104.7382f };
Var0.f_3 = "v_epsilonism";
Var0.f_4 = Var0.f_3;
break;
case 12:
Var0 = { 173.1176f, -1003.279f, -99.9999f };
Var0.f_3 = "v_garages";
Var0.f_4 = Var0.f_3;
break;
case 13:
Var0 = { 199.9715f, -999.6678f, -100f };
Var0.f_3 = "v_garagem";
Var0.f_4 = Var0.f_3;
break;
case 14:
Var0 = { 228.6058f, -992.0537f, -99.9999f };
Var0.f_3 = "v_garagel";
Var0.f_3 = "hei_dlc_garage_high_new";
Var0.f_4 = Var0.f_3;
break;
case 15:
Var0 = { 1854.254f, 3686.739f, 33.2671f };
Var0.f_3 = "v_sheriff";
Var0.f_4 = Var0.f_3;
break;
case 16:
Var0 = { -444.8907f, 6013.587f, 30.7164f };
Var0.f_3 = "v_sheriff2";
Var0.f_4 = Var0.f_3;
break;
case 17:
Var0 = { 3522.845f, 3707.965f, 19.9918f };
Var0.f_3 = "v_lab";
Var0.f_4 = Var0.f_3;
break;
case 18:
Var0 = { 717.2994f, -974.4271f, 23.9142f };
Var0.f_3 = "v_sweat";
Var0.f_4 = Var0.f_3;
break;
case 19:
Var0 = { 717.299f, -974.4271f, 23.9142f };
Var0.f_3 = "v_sweatempty";
Var0.f_4 = Var0.f_3;
break;
case 20:
Var0 = { 2449.785f, 4983.825f, 45.8106f };
Var0.f_3 = "v_farmhouse";
Var0.f_4 = Var0.f_3;
break;
case 22:
Var0 = { 1087.195f, -1988.445f, 28.649f };
Var0.f_3 = "v_foundry";
Var0.f_4 = Var0.f_3;
break;
case 23:
Var0 = { 982.233f, -2160.382f, 28.4761f };
Var0.f_3 = "v_abattoir";
Var0.f_4 = Var0.f_3;
break;
case 21:
Var0 = { 479.0568f, -1316.825f, 28.2038f };
Var0.f_3 = "v_chopshop";
Var0.f_4 = Var0.f_3;
break;
case 24:
Var0 = { -1005.663f, -478.3461f, 49.0265f };
Var0.f_3 = "v_58_sol_office";
Var0.f_4 = Var0.f_3;
break;
case 25:
vVar1 = { func_812(1, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "hei_dlc_apart_high_new";
Var0.f_4 = "hei_dlc_apart_high_new (1)";
break;
case 26:
vVar1 = { func_812(2, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "hei_dlc_apart_high_new";
Var0.f_4 = "hei_dlc_apart_high_new (2)";
break;
case 27:
vVar1 = { func_812(3, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "hei_dlc_apart_high_new";
Var0.f_4 = "hei_dlc_apart_high_new (3)";
break;
case 28:
vVar1 = { func_812(4, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "hei_dlc_apart_high_new";
Var0.f_4 = "hei_dlc_apart_high_new (4)";
break;
case 29:
vVar1 = { func_812(5, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "hei_dlc_apart_high_new";
Var0.f_4 = "hei_dlc_apart_high_new (5)";
break;
case 30:
vVar1 = { func_812(6, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "hei_dlc_apart_high_new";
Var0.f_4 = "hei_dlc_apart_high_new (6)";
break;
case 31:
vVar1 = { func_812(7, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "hei_dlc_apart_high_new";
Var0.f_4 = "hei_dlc_apart_high_new (7)";
break;
case 32:
Var0 = { Global_1049778[34 /*1951*/].f_146.f_1517 + Vector(1f, 0f, 0f) };
Var0.f_3 = "hei_dlc_apart_high_new";
Var0.f_4 = "hei_dlc_apart_high_new (8)";
break;
case 33:
vVar1 = { func_812(35, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "hei_dlc_apart_high_new";
Var0.f_4 = "hei_dlc_apart_high_new (9)";
break;
case 34:
vVar1 = { func_812(36, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "hei_dlc_apart_high_new";
Var0.f_4 = "hei_dlc_apart_high_new (10)";
break;
case 35:
vVar1 = { func_812(37, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "hei_dlc_apart_high_new";
Var0.f_4 = "hei_dlc_apart_high_new (11)";
break;
case 36:
vVar1 = { func_812(38, 0) };
Var0 = { -20.1f, -580.8f, 91.3f };
Var0.f_3 = "hei_dlc_apart_high_new";
Var0.f_4 = "hei_dlc_apart_high_new (12)";
break;
case 37:
vVar1 = { func_812(39, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "hei_dlc_apart_high_new";
Var0.f_4 = "hei_dlc_apart_high_new (13)";
break;
case 38:
vVar1 = { func_812(40, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "hei_dlc_apart_high_new";
Var0.f_4 = "hei_dlc_apart_high_new (14)";
break;
case 39:
vVar1 = { func_812(41, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "hei_dlc_apart_high_new";
Var0.f_4 = "hei_dlc_apart_high_new (15)";
break;
case 40:
vVar1 = { func_812(42, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "hei_dlc_apart_high_new";
Var0.f_4 = "hei_dlc_apart_high_new (16)";
break;
case 41:
vVar1 = { func_812(43, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "hei_dlc_apart_high_new";
Var0.f_4 = "hei_dlc_apart_high_new (17)";
break;
case 42:
Var0 = { -470.3754f, -698.5207f, 51.5276f };
Var0.f_3 = "hei_dlc_apart_high_new";
Var0.f_4 = "hei_dlc_apart_high_new (18)";
break;
case 43:
Var0 = { -460.6133f, -691.5562f, 69.9067f };
Var0.f_3 = "hei_dlc_apart_high_new";
Var0.f_4 = "hei_dlc_apart_high_new (19)";
break;
case 44:
Var0 = { 300.633f, -997.4288f, -99.9727f };
Var0.f_3 = "hei_dlc_apart_high_new";
Var0.f_4 = "hei_dlc_apart_high_new (20)";
break;
case 49:
Var0 = { -171.3969f, 494.2671f, 134.4935f };
Var0.f_3 = "apa_v_mp_stilts_b";
Var0.f_4 = "apa_v_mp_stilts_b (1)";
break;
case 50:
Var0 = { 339.4982f, 434.0887f, 146.2206f };
Var0.f_3 = "apa_v_mp_stilts_b";
Var0.f_4 = "apa_v_mp_stilts_b (2)";
break;
case 51:
Var0 = { -761.3884f, 615.7333f, 140.9805f };
Var0.f_3 = "apa_v_mp_stilts_b";
Var0.f_4 = "apa_v_mp_stilts_b (3)";
break;
case 52:
Var0 = { -678.1752f, 591.0076f, 142.2196f };
Var0.f_3 = "apa_v_mp_stilts_b";
Var0.f_4 = "apa_v_mp_stilts_b (4)";
break;
case 53:
Var0 = { 120.0541f, 553.793f, 181.0943f };
Var0.f_3 = "apa_v_mp_stilts_a";
Var0.f_4 = "apa_v_mp_stilts_a (5)";
break;
case 54:
Var0 = { -571.4039f, 655.2008f, 142.6293f };
Var0.f_3 = "apa_v_mp_stilts_a";
Var0.f_4 = "apa_v_mp_stilts_a (7)";
break;
case 55:
Var0 = { -742.2565f, 587.6547f, 143.0577f };
Var0.f_3 = "apa_v_mp_stilts_a";
Var0.f_4 = "apa_v_mp_stilts_a (8)";
break;
case 56:
Var0 = { -857.2222f, 685.051f, 149.6502f };
Var0.f_3 = "apa_v_mp_stilts_a";
Var0.f_4 = "apa_v_mp_stilts_a (10)";
break;
case 57:
Var0 = { -1287.65f, 443.2707f, 94.6919f };
Var0.f_3 = "apa_v_mp_stilts_a";
Var0.f_4 = "apa_v_mp_stilts_a (12)";
break;
case 58:
Var0 = { 374.2012f, 416.9688f, 142.5991f };
Var0.f_3 = "apa_v_mp_stilts_a";
Var0.f_4 = "apa_v_mp_stilts_a (13)";
break;
case 45:
Var0 = { -16.29585f, -684.0385f, 33.50832f };
Var0.f_3 = "dt1_03_carpark";
Var0.f_4 = "dt1_03_carpark";
break;
case 46:
Var0 = { 341.1f, -1000f, -99.2f };
Var0.f_3 = "v_apart_midspaz";
Var0.f_4 = "v_apart_midspaz";
break;
case 47:
Var0 = { 199.9716f, -1018.954f, -100f };
Var0.f_3 = "v_garagem_sp";
Var0.f_4 = Var0.f_3;
break;
case 48:
Var0 = { -1388.001f, -618.4197f, 30.8196f };
Var0.f_3 = "v_bahama";
Var0.f_4 = Var0.f_3;
break;
}
switch (iParam0)
{
case 59:
Var0 = { -787.7805f, 334.9232f, 215.8384f };
Var0.f_3 = "apa_v_mp_h_01";
Var0.f_4 = Var0.f_3;
break;
case 60:
Var0 = { -787.7805f, 334.9232f, 215.8384f };
Var0.f_3 = "apa_v_mp_h_02";
Var0.f_4 = Var0.f_3;
break;
case 61:
Var0 = { -787.7805f, 334.9232f, 215.8384f };
Var0.f_3 = "apa_v_mp_h_03";
Var0.f_4 = Var0.f_3;
break;
case 62:
Var0 = { -787.7805f, 334.9232f, 215.8384f };
Var0.f_3 = "apa_v_mp_h_04";
Var0.f_4 = Var0.f_3;
break;
case 63:
Var0 = { -787.7805f, 334.9232f, 215.8384f };
Var0.f_3 = "apa_v_mp_h_05";
Var0.f_4 = Var0.f_3;
break;
case 64:
Var0 = { -787.7805f, 334.9232f, 215.8384f };
Var0.f_3 = "apa_v_mp_h_06";
Var0.f_4 = Var0.f_3;
break;
case 65:
Var0 = { -787.7805f, 334.9232f, 215.8384f };
Var0.f_3 = "apa_v_mp_h_07";
Var0.f_4 = Var0.f_3;
break;
case 66:
Var0 = { -787.7805f, 334.9232f, 215.8384f };
Var0.f_3 = "apa_v_mp_h_08";
Var0.f_4 = Var0.f_3;
break;
case 67:
Var0 = { -773.2258f, 322.8252f, 194.8862f };
Var0.f_3 = "apa_v_mp_h_01";
Var0.f_4 = Var0.f_3;
break;
case 68:
Var0 = { -773.2258f, 322.8252f, 194.8862f };
Var0.f_3 = "apa_v_mp_h_02";
Var0.f_4 = Var0.f_3;
break;
case 69:
Var0 = { -773.2258f, 322.8252f, 194.8862f };
Var0.f_3 = "apa_v_mp_h_03";
Var0.f_4 = Var0.f_3;
break;
case 70:
Var0 = { -773.2258f, 322.8252f, 194.8862f };
Var0.f_3 = "apa_v_mp_h_04";
Var0.f_4 = Var0.f_3;
break;
case 71:
Var0 = { -773.2258f, 322.8252f, 194.8862f };
Var0.f_3 = "apa_v_mp_h_05";
Var0.f_4 = Var0.f_3;
break;
case 72:
Var0 = { -773.2258f, 322.8252f, 194.8862f };
Var0.f_3 = "apa_v_mp_h_06";
Var0.f_4 = Var0.f_3;
break;
case 73:
Var0 = { -773.2258f, 322.8252f, 194.8862f };
Var0.f_3 = "apa_v_mp_h_07";
Var0.f_4 = Var0.f_3;
break;
case 74:
Var0 = { -773.2258f, 322.8252f, 194.8862f };
Var0.f_3 = "apa_v_mp_h_08";
Var0.f_4 = Var0.f_3;
break;
case 75:
Var0 = { -787.7805f, 334.9232f, 186.1134f };
Var0.f_3 = "apa_v_mp_h_01";
Var0.f_4 = Var0.f_3;
break;
case 76:
Var0 = { -787.7805f, 334.9232f, 186.1134f };
Var0.f_3 = "apa_v_mp_h_02";
Var0.f_4 = Var0.f_3;
break;
case 77:
Var0 = { -787.7805f, 334.9232f, 186.1134f };
Var0.f_3 = "apa_v_mp_h_03";
Var0.f_4 = Var0.f_3;
break;
case 78:
Var0 = { -787.7805f, 334.9232f, 186.1134f };
Var0.f_3 = "apa_v_mp_h_04";
Var0.f_4 = Var0.f_3;
break;
case 79:
Var0 = { -787.7805f, 334.9232f, 186.1134f };
Var0.f_3 = "apa_v_mp_h_05";
Var0.f_4 = Var0.f_3;
break;
case 80:
Var0 = { -787.7805f, 334.9232f, 186.1134f };
Var0.f_3 = "apa_v_mp_h_06";
Var0.f_4 = Var0.f_3;
break;
case 81:
Var0 = { -787.7805f, 334.9232f, 186.1134f };
Var0.f_3 = "apa_v_mp_h_07";
Var0.f_4 = Var0.f_3;
break;
case 82:
Var0 = { -787.7805f, 334.9232f, 186.1134f };
Var0.f_3 = "apa_v_mp_h_08";
Var0.f_4 = Var0.f_3;
break;
case 83:
vVar1 = { func_812(87, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_01a_dlc";
Var0.f_4 = Var0.f_3;
break;
case 84:
vVar1 = { func_812(87, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_01b_dlc";
Var0.f_4 = Var0.f_3;
break;
case 85:
vVar1 = { func_812(87, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_01c_dlc";
Var0.f_4 = Var0.f_3;
break;
case 86:
vVar1 = { func_812(87, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_02a_dlc";
Var0.f_4 = Var0.f_3;
break;
case 87:
vVar1 = { func_812(87, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_02b_dlc";
Var0.f_4 = Var0.f_3;
break;
case 88:
vVar1 = { func_812(87, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_02c_dlc";
Var0.f_4 = Var0.f_3;
break;
case 89:
vVar1 = { func_812(87, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_03a_dlc";
Var0.f_4 = Var0.f_3;
break;
case 90:
vVar1 = { func_812(87, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_03b_dlc";
Var0.f_4 = Var0.f_3;
break;
case 91:
vVar1 = { func_812(87, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_03c_dlc";
Var0.f_4 = Var0.f_3;
break;
case 92:
vVar1 = { func_812(88, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_01a_dlc";
Var0.f_4 = Var0.f_3;
break;
case 93:
vVar1 = { func_812(88, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_01b_dlc";
Var0.f_4 = Var0.f_3;
break;
case 94:
vVar1 = { func_812(88, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_01c_dlc";
Var0.f_4 = Var0.f_3;
break;
case 95:
vVar1 = { func_812(88, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_02a_dlc";
Var0.f_4 = Var0.f_3;
break;
case 96:
vVar1 = { func_812(88, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_02b_dlc";
Var0.f_4 = Var0.f_3;
break;
case 97:
vVar1 = { func_812(88, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_02c_dlc";
Var0.f_4 = Var0.f_3;
break;
case 98:
vVar1 = { func_812(88, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_03a_dlc";
Var0.f_4 = Var0.f_3;
break;
case 99:
vVar1 = { func_812(88, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_03b_dlc";
Var0.f_4 = Var0.f_3;
break;
case 100:
vVar1 = { func_812(88, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_03c_dlc";
Var0.f_4 = Var0.f_3;
break;
case 101:
vVar1 = { func_812(89, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_01a_dlc";
Var0.f_4 = Var0.f_3;
break;
case 102:
vVar1 = { func_812(89, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_01b_dlc";
Var0.f_4 = Var0.f_3;
break;
case 103:
vVar1 = { func_812(89, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_01c_dlc";
Var0.f_4 = Var0.f_3;
break;
case 104:
vVar1 = { func_812(89, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_02a_dlc";
Var0.f_4 = Var0.f_3;
break;
case 105:
vVar1 = { func_812(89, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_02b_dlc";
Var0.f_4 = Var0.f_3;
break;
case 106:
vVar1 = { func_812(89, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_02c_dlc";
Var0.f_4 = Var0.f_3;
break;
case 107:
vVar1 = { func_812(89, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_03a_dlc";
Var0.f_4 = Var0.f_3;
break;
case 108:
vVar1 = { func_812(89, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_03b_dlc";
Var0.f_4 = Var0.f_3;
break;
case 109:
vVar1 = { func_812(89, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_03c_dlc";
Var0.f_4 = Var0.f_3;
break;
case 110:
vVar1 = { func_812(90, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_01a_dlc";
Var0.f_4 = Var0.f_3;
break;
case 111:
vVar1 = { func_812(90, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_01b_dlc";
Var0.f_4 = Var0.f_3;
break;
case 112:
vVar1 = { func_812(90, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_01c_dlc";
Var0.f_4 = Var0.f_3;
break;
case 113:
vVar1 = { func_812(90, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_02a_dlc";
Var0.f_4 = Var0.f_3;
break;
case 114:
vVar1 = { func_812(90, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_02b_dlc";
Var0.f_4 = Var0.f_3;
break;
case 115:
vVar1 = { func_812(90, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_02c_dlc";
Var0.f_4 = Var0.f_3;
break;
case 116:
vVar1 = { func_812(90, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_03a_dlc";
Var0.f_4 = Var0.f_3;
break;
case 117:
vVar1 = { func_812(90, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_03b_dlc";
Var0.f_4 = Var0.f_3;
break;
case 118:
vVar1 = { func_812(90, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "ex_int_office_03c_dlc";
Var0.f_4 = Var0.f_3;
break;
case 119:
vVar1 = { func_812(91, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "bkr_biker_dlc_int_01";
Var0.f_4 = Var0.f_3;
break;
case 120:
vVar1 = { func_812(97, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "bkr_biker_dlc_int_02";
Var0.f_4 = Var0.f_3;
break;
case 121:
vVar1 = { func_812(103, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "imp_impexp_int_01";
Var0.f_4 = Var0.f_3;
break;
case 122:
vVar1 = { func_812(104, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "imp_impexp_int_01";
Var0.f_4 = Var0.f_3;
break;
case 123:
vVar1 = { func_812(105, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "imp_impexp_int_01";
Var0.f_4 = Var0.f_3;
break;
case 124:
vVar1 = { func_812(106, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "imp_impexp_int_01";
Var0.f_4 = Var0.f_3;
break;
case 125:
vVar1 = { func_812(107, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "imp_impexp_int_01";
Var0.f_4 = Var0.f_3;
break;
case 126:
vVar1 = { func_812(108, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "imp_impexp_int_01";
Var0.f_4 = Var0.f_3;
break;
case 127:
vVar1 = { func_812(109, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "imp_impexp_int_01";
Var0.f_4 = Var0.f_3;
break;
case 128:
vVar1 = { func_812(110, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "imp_impexp_int_01";
Var0.f_4 = Var0.f_3;
break;
case 129:
vVar1 = { func_812(111, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "imp_impexp_int_01";
Var0.f_4 = Var0.f_3;
break;
case 130:
vVar1 = { func_812(112, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "imp_impexp_int_01";
Var0.f_4 = Var0.f_3;
break;
case 131:
vVar1 = { func_812(113, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "imp_impexp_int_01";
Var0.f_4 = Var0.f_3;
break;
case 132:
vVar1 = { func_812(114, 0) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "imp_impexp_int_01";
Var0.f_4 = Var0.f_3;
break;
case 133:
vVar1 = { func_812(103, 1) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "imp_imptexp_mod_int_01";
Var0.f_4 = Var0.f_3;
break;
case 134:
vVar1 = { func_812(106, 1) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "imp_imptexp_mod_int_01";
Var0.f_4 = Var0.f_3;
break;
case 135:
vVar1 = { func_812(109, 1) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "imp_imptexp_mod_int_01";
Var0.f_4 = Var0.f_3;
break;
case 136:
vVar1 = { func_812(112, 1) };
Var0 = { vVar1 + Vector(1f, 0f, 0f) };
Var0.f_3 = "imp_imptexp_mod_int_01";
Var0.f_4 = Var0.f_3;
break;
case 137:
Var0 = { 938.3077f, -3196.112f, -100f };
Var0.f_3 = "gr_grdlc_int_02";
Var0.f_4 = Var0.f_3;
break;
case 138:
Var0 = { 512.5f, 4852f, -62.6f };
Var0.f_3 = "xm_x17dlc_int_sub";
Var0.f_4 = Var0.f_3;
break;
case 139:
Var0 = { 2047f, 2942f, -61.9f };
Var0.f_3 = "xm_x17dlc_int_facility";
Var0.f_4 = Var0.f_3;
break;
case 140:
Var0 = { -1047.6f, -232.3503f, 38.0135f };
Var0.f_3 = "v_faceoffice";
Var0.f_4 = Var0.f_3;
break;
case 22:
Var0 = { 1100f, -2004f, 37f };
Var0.f_3 = "v_foundry";
Var0.f_4 = Var0.f_3;
break;
case 141:
Var0 = { 361f, 6306f, -159f };
Var0.f_3 = "xm_x17dlc_int_silo_01";
Var0.f_4 = Var0.f_3;
break;
case 142:
Var0 = { 305f, 6298f, -160f };
Var0.f_3 = "xm_x17dlc_int_silo_02";
Var0.f_4 = Var0.f_3;
break;
case 143:
Var0 = { 244f, 6163f, -159f };
Var0.f_3 = "xm_x17dlc_int_lab";
Var0.f_4 = Var0.f_3;
break;
case 144:
Var0 = { 2168f, 2920f, -84f };
Var0.f_3 = "xm_x17dlc_int_facility2";
Var0.f_4 = Var0.f_3;
break;
case 145:
Var0 = { 446f, 5922f, -158f };
Var0.f_3 = "xm_x17dlc_int_bse_tun";
Var0.f_4 = Var0.f_3;
break;
case 146:
Var0 = { 252f, 5972f, -156f };
Var0.f_3 = "xm_x17dlc_int_base_loop";
Var0.f_4 = Var0.f_3;
break;
case 147:
Var0 = { 682f, 5959f, -152f };
Var0.f_3 = "xm_x17dlc_int_base_ent";
Var0.f_4 = Var0.f_3;
break;
case 148:
Var0 = { 551f, 5939f, -158f };
Var0.f_3 = "xm_x17dlc_int_base";
Var0.f_4 = Var0.f_3;
break;
case 149:
Var0 = { 520.0001f, 4750f, -70f };
Var0.f_3 = "xm_x17dlc_int_01";
Var0.f_4 = Var0.f_3;
break;
case 150:
Var0 = { -1266.802f, -3014.849f, -49.4903f };
Var0.f_3 = "sm_smugdlc_int_01";
Var0.f_4 = Var0.f_3;
break;
case 151:
Var0 = { 974.9203f, -3000.065f, -40.647f };
Var0.f_3 = "imp_impexp_intwaremed";
Var0.f_4 = Var0.f_3;
break;
case 152:
Var0 = { 969.5376f, -3000.411f, -48.647f };
Var0.f_3 = "imp_impexp_int_02";
Var0.f_4 = Var0.f_3;
break;
case 153:
Var0 = { 1094.997f, -3100.012f, -39.9999f };
Var0.f_3 = "ex_int_warehouse_s_dlc";
Var0.f_4 = Var0.f_3;
break;
case 154:
Var0 = { 1059.995f, -3100f, -39.9999f };
Var0.f_3 = "ex_int_warehouse_m_dlc";
Var0.f_4 = Var0.f_3;
break;
case 155:
Var0 = { 1010.008f, -3100f, -39.9999f };
Var0.f_3 = "ex_int_warehouse_l_dlc";
Var0.f_4 = Var0.f_3;
break;
case 156:
Var0 = { 372.6707f, 405.5235f, 144.5326f };
Var0.f_3 = "apa_v_mp_stilts_a";
Var0.f_4 = Var0.f_3;
break;
case 157:
Var0 = { -282.0588f, -955.17f, 85.3036f };
Var0.f_3 = "hei_dlc_apart_high_new";
Var0.f_4 = Var0.f_3;
break;
case 158:
Var0 = { 342.7946f, -997.4225f, -99.7444f };
Var0.f_3 = "v_apart_midspaz";
Var0.f_4 = Var0.f_3;
break;
case 159:
Var0 = { 260.3268f, -997.4298f, -100.0086f };
Var0.f_3 = "v_studio_lo";
Var0.f_4 = Var0.f_3;
break;
case 160:
Var0 = { 108.2369f, -753.5364f, 233.1523f };
Var0.f_3 = "v_fib01";
Var0.f_4 = Var0.f_3;
break;
case 161:
Var0 = { 135.3226f, -746.3677f, 253.1523f };
Var0.f_3 = "v_fib03";
Var0.f_4 = Var0.f_3;
break;
case 162:
Var0 = { 108.2572f, -753.5342f, 44.7548f };
Var0.f_3 = "v_office_lobby";
Var0.f_4 = Var0.f_3;
break;
case 163:
Var0 = { 228.6161f, -992.053f, -99.9999f };
Var0.f_3 = "heist_dlc_garage_high_new";
Var0.f_4 = Var0.f_3;
break;
case 164:
Var0 = { 199.9716f, -999.6678f, -100f };
Var0.f_3 = "v_garagem";
Var0.f_4 = Var0.f_3;
break;
case 165:
Var0 = { 173.1165f, -1003.28f, -99.9999f };
Var0.f_3 = "v_garages";
Var0.f_4 = Var0.f_3;
break;
case 166:
Var0 = { 575f, 4750f, -60f };
Var0.f_3 = "xm_v_apart_midspaz";
Var0.f_4 = Var0.f_3;
break;
case 167:
Var0 = { 600f, 4750f, -60f };
Var0.f_3 = "xm_v_studio_lo";
Var0.f_4 = Var0.f_3;
break;
case 168:
Var0 = { 630f, 4750f, -60f };
Var0.f_3 = "xm_v_garagem";
Var0.f_4 = Var0.f_3;
break;
case 169:
Var0 = { 1257f, 4796.7f, -39.1f };
Var0.f_3 = "xm_x17dlc_int_tun_entry";
Var0.f_4 = Var0.f_3;
break;
case 170:
Var0 = { 694.4f, 5898.9f, -152.3f };
Var0.f_3 = "xm_x17dlc_int_tun_straight";
Var0.f_4 = Var0.f_3;
break;
case 171:
Var0 = { 1121.8f, 5516.3f, -101.3f };
Var0.f_3 = "xm_x17dlc_int_tun_straight";
Var0.f_4 = Var0.f_3;
break;
case 172:
Var0 = { 1279.6f, 5233.2f, -80.3f };
Var0.f_3 = "xm_x17dlc_int_tun_straight";
Var0.f_4 = Var0.f_3;
break;
case 173:
Var0 = { 1158.6f, 5467.1f, -101.3f };
Var0.f_3 = "xm_x17dlc_int_tun_slope_flat";
Var0.f_4 = Var0.f_3;
break;
case 174:
Var0 = { 705.9f, 5838.5f, -152.3f };
Var0.f_3 = "xm_x17dlc_int_tun_slope_flat";
Var0.f_4 = Var0.f_3;
break;
case 175:
Var0 = { 1316.5f, 5184f, -80.3f };
Var0.f_3 = "xm_x17dlc_int_tun_slope_flat";
Var0.f_4 = Var0.f_3;
break;
case 176:
Var0 = { 1248f, 5276.1f, -80.3f };
Var0.f_3 = "xm_x17dlc_int_tun_flat_slope";
Var0.f_4 = Var0.f_3;
break;
case 177:
Var0 = { 1090.2f, 5559.2f, -101.3f };
Var0.f_3 = "xm_x17dlc_int_tun_flat_slope";
Var0.f_4 = Var0.f_3;
break;
case 178:
Var0 = { 1261f, 4808.6f, -39.3f };
Var0.f_3 = "xm_x17dlc_int_tun_flat_slope";
Var0.f_4 = Var0.f_3;
break;
case 179:
Var0 = { 721.8f, 5781.4f, -146.7f };
Var0.f_3 = "xm_x17dlc_int_tun_30d_r";
Var0.f_4 = Var0.f_3;
break;
case 180:
Var0 = { 780.8f, 5703.4f, -136.7f };
Var0.f_3 = "xm_x17dlc_int_tun_30d_r";
Var0.f_4 = Var0.f_3;
break;
case 181:
Var0 = { 868.1f, 5659.2f, -126.7f };
Var0.f_3 = "xm_x17dlc_int_tun_30d_r";
Var0.f_4 = Var0.f_3;
break;
case 182:
Var0 = { 1218.2f, 5321.2f, -85.7f };
Var0.f_3 = "xm_x17dlc_int_tun_30d_r";
Var0.f_4 = Var0.f_3;
break;
case 183:
Var0 = { 1278.5f, 4859.7f, -44.7f };
Var0.f_3 = "xm_x17dlc_int_tun_30d_r";
Var0.f_4 = Var0.f_3;
break;
case 184:
Var0 = { 1187.2f, 5419.8f, -96.4f };
Var0.f_3 = "xm_x17dlc_int_tun_30d_l";
Var0.f_4 = Var0.f_3;
break;
case 185:
Var0 = { 1344.7f, 5136.4f, -75.4f };
Var0.f_3 = "xm_x17dlc_int_tun_30d_l";
Var0.f_4 = Var0.f_3;
break;
case 186:
Var0 = { 1363.4f, 5039.5f, -65.4f };
Var0.f_3 = "xm_x17dlc_int_tun_30d_l";
Var0.f_4 = Var0.f_3;
break;
case 187:
Var0 = { 1049.3f, 5602.1f, -107.4f };
Var0.f_3 = "xm_x17dlc_int_tun_30d_l";
Var0.f_4 = Var0.f_3;
break;
case 188:
Var0 = { 1337.8f, 4944.3f, -55.4f };
Var0.f_3 = "xm_x17dlc_int_tun_30d_l";
Var0.f_4 = Var0.f_3;
break;
case 189:
Var0 = { 961.5f, 5646.9f, -117.4f };
Var0.f_3 = "xm_x17dlc_int_tun_30d_l";
Var0.f_4 = Var0.f_3;
break;
case 190:
Var0 = { 345.0041f, 4842.001f, -59.9997f };
Var0.f_3 = "xm_x17dlc_int_02";
Var0.f_4 = Var0.f_3;
break;
case 191:
Var0 = { 279.9322f, -1337.49f, 23.7419f };
Var0.f_3 = "v_coroner";
Var0.f_4 = Var0.f_3;
break;
case 192:
Var0 = { -1604.664f, -3012.583f, -79.9999f };
Var0.f_3 = "ba_dlc_int_01_ba";
Var0.f_4 = Var0.f_3;
break;
case 193:
Var0 = { -1505.783f, -3012.587f, -79.9999f };
Var0.f_3 = "ba_dlc_int_02_ba";
Var0.f_4 = Var0.f_3;
break;
case 194:
Var0 = { -630.4205f, -236.7843f, 37.057f };
Var0.f_3 = "V_JEWEL2";
Var0.f_4 = Var0.f_3;
break;
case 195:
Var0 = { 2800f, -3800f, 100f };
Var0.f_3 = "xs_x18_int_01";
Var0.f_4 = Var0.f_3;
break;
case 196:
Var0 = { 2800f, -3942f, 182.5f };
Var0.f_3 = "xs_arena_vip";
Var0.f_4 = Var0.f_3;
break;
default:
break;
}
return Var0;
}
struct<6> func_812(int iParam0, bool bParam1)
{
struct<6> Var0;
switch (iParam0)
{
case -1:
Var0 = { -794.9184f, 339.6266f, 200.4135f };
Var0.f_3 = { 0f, 0f, 180f };
break;
case 1:
Var0 = { -794.9184f, 339.6266f, 200.4135f };
Var0.f_3 = { 0f, 0f, 180f };
break;
case 2:
Var0 = { -761.0982f, 317.6259f, 169.5963f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 3:
Var0 = { -761.1888f, 317.6295f, 216.0503f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 4:
Var0 = { -795.3856f, 340.0188f, 152.7941f };
Var0.f_3 = { 0f, 0f, 180f };
break;
case 61:
Var0 = { -778.5056f, 332.3779f, 212.1968f };
Var0.f_3 = { 0f, 0f, 90f };
break;
case 5:
Var0 = { -258.1807f, -950.6853f, 70.0239f };
Var0.f_3 = { 0f, 0f, 70f };
break;
case 6:
Var0 = { -285.0051f, -957.6552f, 85.3035f };
Var0.f_3 = { 0f, 0f, -110f };
break;
case 7:
Var0 = { -1471.882f, -530.7484f, 62.34918f };
Var0.f_3 = { 0f, 0f, -145f };
break;
case 34:
Var0 = { -1471.882f, -530.7484f, 49.72156f };
Var0.f_3 = { 0f, 0f, -145f };
break;
case 62:
Var0 = { -1463.15f, -540.2369f, 74.2439f };
Var0.f_3 = { 0f, 0f, -145f };
break;
case 35:
Var0 = { -885.3702f, -451.4775f, 119.327f };
Var0.f_3 = { 0f, 0f, 27.55617f };
break;
case 36:
Var0 = { -913.0385f, -438.4284f, 114.3997f };
Var0.f_3 = { 0f, 0f, -153.3093f };
break;
case 37:
Var0 = { -892.5499f, -430.4789f, 88.25368f };
Var0.f_3 = { 0f, 0f, 116.9193f };
break;
case 38:
Var0 = { -35.0462f, -576.317f, 82.90739f };
Var0.f_3 = { 0f, 0f, 160f };
break;
case 39:
Var0 = { -10.3788f, -590.7431f, 93.02542f };
Var0.f_3 = { 0f, 0f, 70f };
break;
case 65:
Var0 = { -22.2487f, -589.1461f, 80.2305f };
Var0.f_3 = { 0f, 0f, 69.88f };
break;
case 40:
Var0 = { -900.6311f, -376.7462f, 78.27306f };
Var0.f_3 = { 0f, 0f, 26.92611f };
break;
case 41:
Var0 = { -929.483f, -374.5104f, 102.2329f };
Var0.f_3 = { 0f, 0f, -152.5531f };
break;
case 63:
Var0 = { -914.4202f, -375.8189f, 114.4743f };
Var0.f_3 = { 0f, 0f, -63f };
break;
case 42:
Var0 = { -617.1647f, 64.6042f, 100.8196f };
Var0.f_3 = { 0f, 0f, 180f };
break;
case 43:
Var0 = { -584.2015f, 42.7133f, 86.4187f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 64:
Var0 = { -609.5665f, 50.2203f, 98.3998f };
Var0.f_3 = { 0f, 0f, -90f };
break;
case 73:
Var0 = { -171.3969f, 494.2671f, 134.4935f };
Var0.f_3 = { 0f, 0f, 11f };
break;
case 74:
Var0 = { 339.4982f, 434.0887f, 146.2206f };
Var0.f_3 = { 0f, 0f, -63.5f };
break;
case 75:
Var0 = { -761.3884f, 615.7333f, 140.9805f };
Var0.f_3 = { 0f, 0f, -71.5f };
break;
case 76:
Var0 = { -678.1752f, 591.0076f, 142.2196f };
Var0.f_3 = { 0f, 0f, 40.5f };
break;
case 77:
Var0 = { 120.0541f, 553.793f, 181.0943f };
Var0.f_3 = { 0f, 0f, 6f };
break;
case 78:
Var0 = { -571.4039f, 655.2008f, 142.6293f };
Var0.f_3 = { 0f, 0f, -14.5f };
break;
case 79:
Var0 = { -742.2565f, 587.6547f, 143.0577f };
Var0.f_3 = { 0f, 0f, -29f };
break;
case 80:
Var0 = { -857.2222f, 685.051f, 149.6502f };
Var0.f_3 = { 0f, 0f, 4.5f };
break;
case 81:
Var0 = { -1287.65f, 443.2707f, 94.6919f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 82:
Var0 = { 374.2012f, 416.9688f, 142.6977f };
Var0.f_3 = { 0f, 0f, -14f };
break;
case 83:
Var0 = { -787.7805f, 334.9232f, 186.1134f };
Var0.f_3 = { 0f, 0f, 90f };
break;
case 84:
Var0 = { -787.7805f, 334.9232f, 215.8384f };
Var0.f_3 = { 0f, 0f, 90f };
break;
case 85:
Var0 = { -773.2258f, 322.8252f, 194.8862f };
Var0.f_3 = { 0f, 0f, -90f };
break;
case 86:
Var0 = { -1573.098f, -4085.806f, 9.7851f };
Var0.f_3 = { 0f, 0f, 162f };
break;
case 8:
case 9:
case 10:
case 11:
case 12:
case 13:
case 14:
case 15:
case 16:
case 66:
case 67:
case 68:
case 69:
Var0 = { 342.8157f, -997.4288f, -100f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 17:
case 18:
case 19:
case 20:
case 21:
case 22:
case 23:
case 70:
case 71:
case 72:
Var0 = { 260.3297f, -997.4288f, -100f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 87:
Var0 = { -1572.187f, -570.8315f, 109.9879f };
Var0.f_3 = { 0f, 0f, -54f };
break;
case 88:
Var0 = { -1383.954f, -476.7112f, 73.507f };
Var0.f_3 = { 0f, 0f, 8f };
break;
case 89:
Var0 = { -138.0029f, -629.739f, 170.2854f };
Var0.f_3 = { 0f, 0f, -84f };
break;
case 90:
Var0 = { -74.8895f, -817.6883f, 244.8508f };
Var0.f_3 = { 0f, 0f, 70f };
break;
case 91:
case 92:
case 93:
case 94:
case 95:
case 96:
Var0 = { 1100.764f, -3159.384f, -34.9342f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 97:
case 98:
case 99:
case 100:
case 101:
case 102:
Var0 = { 1005.806f, -3157.67f, -36.0897f };
Var0.f_3 = { 0f, 0f, 0f };
break;
case 103:
if (!bParam1)
{
Var0 = { -1576.571f, -569.7595f, 85.5f };
Var0.f_3 = { 0f, 0f, 36.1f };
}
else
{
Var0 = { -1578.022f, -576.4251f, 104.2f };
Var0.f_3 = { 0f, 0f, -144.04f };
}
break;
case 104:
if (!bParam1)
{
Var0 = { -1571.254f, -566.5865f, 85.5f };
Var0.f_3 = { 0f, 0f, -53.9f };
}
else
{
Var0 = { -1578.022f, -576.4251f, 104.2f };
Var0.f_3 = { 0f, 0f, -144.04f };
}
break;
case 105:
if (!bParam1)
{
Var0 = { -1568.098f, -571.9171f, 85.5f };
Var0.f_3 = { 0f, 0f, -143.9f };
}
else
{
Var0 = { -1578.022f, -576.4251f, 104.2f };
Var0.f_3 = { 0f, 0f, -144.04f };
}
break;
case 106:
if (!bParam1)
{
Var0 = { -1384.518f, -475.8657f, 56.1f };
Var0.f_3 = { 0f, 0f, 98.7f };
}
else
{
Var0 = { -1391.245f, -473.9638f, 77.2f };
Var0.f_3 = { 0f, 0f, 98.86f };
}
break;
case 107:
if (!bParam1)
{
Var0 = { -1384.538f, -475.8829f, 48.1f };
Var0.f_3 = { 0f, 0f, 98.7f };
}
else
{
Var0 = { -1391.245f, -473.9638f, 77.2f };
Var0.f_3 = { 0f, 0f, 98.86f };
}
break;
case 108:
if (!bParam1)
{
Var0 = { -1378.994f, -477.2481f, 56.1f };
Var0.f_3 = { 0f, 0f, -81.1f };
}
else
{
Var0 = { -1391.245f, -473.9638f, 77.2f };
Var0.f_3 = { 0f, 0f, 98.86f };
}
break;
case 109:
if (!bParam1)
{
Var0 = { -186.5683f, -576.4624f, 135f };
Var0.f_3 = { 0f, 0f, 96.16f };
}
else
{
Var0 = { -146.6167f, -596.6301f, 166f };
Var0.f_3 = { 0f, 0f, -140f };
}
break;
case 110:
if (!bParam1)
{
Var0 = { -113.886f, -564.3862f, 135f };
Var0.f_3 = { 0f, 0f, 110.96f };
}
else
{
Var0 = { -146.6167f, -596.6301f, 166f };
Var0.f_3 = { 0f, 0f, -140f };
}
break;
case 111:
if (!bParam1)
{
Var0 = { -134.6568f, -635.1774f, 135f };
Var0.f_3 = { 0f, 0f, -9.04f };
}
else
{
Var0 = { -146.6167f, -596.6301f, 166f };
Var0.f_3 = { 0f, 0f, -140f };
}
break;
case 112:
if (!bParam1)
{
Var0 = { -79.0479f, -822.6393f, 221f };
Var0.f_3 = { 0f, 0f, 70f };
}
else
{
Var0 = { -73.904f, -821.6204f, 284f };
Var0.f_3 = { 0f, 0f, -110f };
}
break;
case 113:
if (!bParam1)
{
Var0 = { -70.3086f, -819.5784f, 221f };
Var0.f_3 = { 0f, 0f, 160f };
}
else
{
Var0 = { -73.904f, -821.6204f, 284f };
Var0.f_3 = { 0f, 0f, -110f };
}
break;
case 114:
if (!bParam1)
{
Var0 = { -79.9861f, -818.425f, 221f };
Var0.f_3 = { 0f, 0f, -20f };
}
else
{
Var0 = { -73.904f, -821.6204f, 284f };
Var0.f_3 = { 0f, 0f, -110f };
}
break;
}
return Var0;
}
void func_813(int iParam0, bool bParam1)
{
struct<2> Var0;
Var0 = { func_807(iParam0) };
if (Var0.f_1 == -1)
{
return;
}
if (bParam1)
{
unk_0x2BCFB39E86340DAA(&(Global_31888[Var0.f_1]), Var0);
}
else
{
unk_0xFA57C719261AA55D(&(Global_31888[Var0.f_1]), Var0);
}
}
void func_814(int iParam0, bool bParam1)
{
char* sVar0;
int iVar1;
sVar0 = "NULL";
iVar1 = 0;
sVar0 = func_810(iParam0, &iVar1);
if (!unk_0x3CAC2741CC1A631F("NONE", sVar0) && iVar1 != 0)
{
if (bParam1 && !unk_0xD2242EF5F75A0A99(iVar1))
{
if (unk_0xDA3A4E46D189F555(unk_0xA19140A5C42D8715()) == iVar1)
{
func_813(iParam0, 1);
return;
}
unk_0xF397403C7F0F348D(iVar1, 1);
}
else if (!bParam1 && unk_0xD2242EF5F75A0A99(iVar1))
{
if (func_815(iParam0))
{
func_813(iParam0, 0);
}
unk_0xF397403C7F0F348D(iVar1, 0);
}
else if (!bParam1)
{
if (func_815(iParam0))
{
func_813(iParam0, 0);
}
}
}
}
int func_815(int iParam0)
{
struct<2> Var0;
Var0 = { func_807(iParam0) };
if (Var0.f_1 != -1 && unk_0x05EFB6A616B6FADE(Global_31888[Var0.f_1], Var0))
{
return 1;
}
return 0;
}
void func_816()
{
func_602(12, Global_106070.f_7233.f_227[12]);
func_602(65, Global_106070.f_7233.f_227[65]);
func_602(6, Global_106070.f_7233.f_227[6]);
func_602(174, Global_106070.f_7233.f_227[174]);
func_602(37, Global_106070.f_7233.f_227[37]);
}
void func_817()
{
int iVar0;
if (func_605())
{
}
iVar0 = 0;
while (iVar0 <= 197)
{
if (func_605())
{
Global_106070.f_7233.f_227[iVar0] = 0;
}
else
{
Global_2437022.f_75.f_227[iVar0] = 0;
}
Global_33283[iVar0] = 1;
Global_33084[iVar0] = 0;
iVar0++;
}
iVar0 = 0;
while (iVar0 <= 225)
{
if (func_605())
{
Global_106070.f_7233[iVar0] = 1;
}
else
{
Global_2437022.f_75[iVar0] = 0;
}
unk_0x2BCFB39E86340DAA(&(Global_31904[(iVar0 / 32)]), (iVar0 % 32));
Global_32847.f_227 = 0;
Global_31922[iVar0] = 0;
unk_0xFA57C719261AA55D(&(Global_31913[(iVar0 / 32)]), (iVar0 % 32));
Global_32376[iVar0] = 0;
Global_32603[iVar0] = 0;
iVar0++;
}
if (func_605())
{
Global_106070.f_7233.f_227[185] = 1;
Global_106070.f_7233.f_227[187] = 1;
Global_106070.f_7233.f_227[186] = 1;
Global_106070.f_7233.f_227[86] = 1;
Global_106070.f_7233[106] = 0;
Global_106070.f_7233[64] = 0;
Global_106070.f_7233[65] = 0;
Global_106070.f_7233[66] = 0;
Global_106070.f_7233[164] = 0;
Global_106070.f_7233.f_426 = 1;
}
else
{
Global_2437022.f_75.f_227[62] = 1;
Global_2437022.f_75.f_227[179] = 1;
Global_2437022.f_75.f_227[14] = 1;
Global_2437022.f_75.f_227[86] = 1;
Global_2437022.f_75.f_227[173] = 1;
Global_2437022.f_75.f_227[76] = 1;
Global_2437022.f_75.f_227[94] = 1;
Global_2437022.f_75.f_227[70] = 1;
Global_2437022.f_75.f_227[71] = 1;
Global_2437022.f_75.f_227[73] = 1;
Global_2437022.f_75.f_227[72] = 0;
Global_2437022.f_75.f_227[74] = 0;
Global_2437022.f_75.f_426 = 1;
}
Global_106070.f_7233.f_227[76] = 1;
Global_106070.f_7233.f_227[94] = 1;
}
void func_818()
{
int iVar0;
Global_36117 = 15;
Global_90257 = 0;
Global_90247 = 0;
Global_90259 = 0;
Global_90248 = -1;
Global_90249 = -1;
Global_90250 = -1;
Global_90251 = -1;
Global_90253 = 0;
Global_90254 = 0;
Global_90255 = 0;
Global_90185 = 0;
Global_90186 = 0;
Global_90188 = -15;
Global_17227 = 0;
iVar0 = 0;
while (iVar0 < 8)
{
func_585(iVar0);
iVar0++;
}
}
void func_819()
{
func_820();
}
void func_820()
{
int iVar0;
int iVar1;
int iVar2;
iVar1 = -1;
if (unk_0x4C9BACA8D249CB13())
{
iVar1 = 0;
}
else
{
iVar1 = 1;
}
iVar0 = 0;
while (iVar0 <= 49)
{
if (iVar1 == 0)
{
func_16(func_20(iVar0), 0, -1, 1, 0);
func_731(iVar0, 0, 0);
}
else if (iVar1 == 1)
{
Global_106070.f_668[iVar0] = 0;
func_731(iVar0, (!Global_106070.f_9057 && !func_888(0)), 0);
}
iVar0++;
}
if (iVar1 == 0)
{
func_731(28, 1, 0);
func_731(30, 1, 0);
func_731(31, 1, 0);
func_731(33, 1, 0);
func_731(34, 1, 0);
func_391(77, 1, -1, 1);
}
else if (iVar1 == 1)
{
func_821(0, 1);
func_821(23, 1);
func_821(28, 1);
func_821(14, 1);
func_821(39, 1);
Global_106070.f_668.f_1304 = 0;
Global_106070.f_668.f_1305 = 0;
Global_106070.f_668.f_1306 = 0;
Global_106070.f_668.f_1307 = 0;
Global_106070.f_668.f_1308 = 0;
Global_106070.f_668.f_1309 = 0;
iVar2 = 0;
while (iVar2 < Global_106070.f_668.f_79)
{
Global_106070.f_668.f_79[iVar2] = 0;
iVar2++;
}
Global_106070.f_668.f_51 = 1;
}
Global_93284 = 0;
}
void func_821(int iParam0, bool bParam1)
{
if (bParam1)
{
if (!func_23(iParam0, 10, 0))
{
func_22(iParam0, 10, 0);
func_732(iParam0);
}
}
else if (func_23(iParam0, 10, 0))
{
func_15(iParam0, 10, 0);
func_732(iParam0);
}
}
void func_822()
{
Global_106070.f_7201.f_25 = 0;
func_828();
Global_106070.f_7201.f_26 = 0;
func_825();
Global_106070.f_7201.f_27 = 0;
func_823();
Global_106070.f_7201.f_28 = 0;
Global_106070.f_7201.f_29 = 0;
Global_106070.f_7201.f_30 = 0;
}
void func_823()
{
int iVar0;
int iVar1;
if (!Global_106070.f_7201.f_27)
{
iVar0 = 0;
while (iVar0 <= (7 - 1))
{
Global_106070.f_7201.f_17[iVar0] = 0;
iVar0++;
}
unk_0x2BCFB39E86340DAA(&(Global_106070.f_7201.f_17[3]), 0);
unk_0x2BCFB39E86340DAA(&(Global_106070.f_7201.f_17[1]), 0);
unk_0x2BCFB39E86340DAA(&(Global_106070.f_7201.f_17[0]), 0);
unk_0x2BCFB39E86340DAA(&(Global_106070.f_7201.f_17[2]), 0);
unk_0x2BCFB39E86340DAA(&(Global_106070.f_7201.f_17[4]), 0);
unk_0x2BCFB39E86340DAA(&(Global_106070.f_7201.f_17[5]), 0);
unk_0x2BCFB39E86340DAA(&(Global_106070.f_7201.f_17[6]), 0);
unk_0x2BCFB39E86340DAA(&(Global_106070.f_7201.f_17[3]), 1);
unk_0x2BCFB39E86340DAA(&(Global_106070.f_7201.f_17[1]), 1);
unk_0x2BCFB39E86340DAA(&(Global_106070.f_7201.f_17[2]), 1);
unk_0x2BCFB39E86340DAA(&(Global_106070.f_7201.f_17[0]), 1);
unk_0x2BCFB39E86340DAA(&(Global_106070.f_7201.f_17[4]), 1);
unk_0x2BCFB39E86340DAA(&(Global_106070.f_7201.f_17[5]), 1);
unk_0x2BCFB39E86340DAA(&(Global_106070.f_7201.f_17[6]), 1);
Global_106070.f_7201.f_27 = 1;
}
iVar1 = 0;
while (iVar1 <= (7 - 1))
{
func_824(iVar1, unk_0x05EFB6A616B6FADE(Global_106070.f_7201.f_17[iVar1], 0));
iVar1++;
}
}
void func_824(int iParam0, bool bParam1)
{
if (iParam0 == 7)
{
return;
}
if (bParam1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_7201.f_17[iParam0]), 0);
}
else
{
unk_0xFA57C719261AA55D(&(Global_106070.f_7201.f_17[iParam0]), 0);
}
unk_0x7825541D7CA1C83C(Global_88466[iParam0 /*9*/].f_8, !bParam1);
func_587(Global_88466[iParam0 /*9*/].f_7, 0, 0);
}
void func_825()
{
int iVar0;
int iVar1;
if (!Global_106070.f_7201.f_26)
{
iVar0 = 0;
while (iVar0 <= (5 - 1))
{
Global_106070.f_7201.f_11[iVar0] = 0;
iVar0++;
}
unk_0x2BCFB39E86340DAA(&(Global_106070.f_7201.f_11[0]), 0);
unk_0x2BCFB39E86340DAA(&(Global_106070.f_7201.f_11[2]), 0);
unk_0x2BCFB39E86340DAA(&(Global_106070.f_7201.f_11[1]), 0);
unk_0x2BCFB39E86340DAA(&(Global_106070.f_7201.f_11[3]), 0);
unk_0x2BCFB39E86340DAA(&(Global_106070.f_7201.f_11[4]), 0);
unk_0x2BCFB39E86340DAA(&(Global_106070.f_7201.f_11[0]), 1);
unk_0x2BCFB39E86340DAA(&(Global_106070.f_7201.f_11[2]), 1);
unk_0x2BCFB39E86340DAA(&(Global_106070.f_7201.f_11[1]), 1);
unk_0x2BCFB39E86340DAA(&(Global_106070.f_7201.f_11[3]), 1);
unk_0x2BCFB39E86340DAA(&(Global_106070.f_7201.f_11[4]), 1);
Global_106070.f_7201.f_26 = 1;
}
iVar1 = 0;
while (iVar1 <= (5 - 1))
{
func_827(iVar1, unk_0x05EFB6A616B6FADE(Global_106070.f_7201.f_11[iVar1], 0));
iVar1++;
}
func_826();
}
void func_826()
{
Global_88576 = 0;
Global_88576 = (Global_88576 + func_306(joaat("sp0_died_in_drowning")));
Global_88576 = (Global_88576 + func_306(joaat("sp1_died_in_drowning")));
Global_88576 = (Global_88576 + func_306(joaat("sp2_died_in_drowning")));
Global_88576 = (Global_88576 + func_306(joaat("sp0_died_in_drowninginvehicle")));
Global_88576 = (Global_88576 + func_306(joaat("sp1_died_in_drowninginvehicle")));
Global_88576 = (Global_88576 + func_306(joaat("sp2_died_in_drowninginvehicle")));
Global_88577 = 0;
Global_88577 = (Global_88577 + func_306(joaat("sp0_died_in_explosion")));
Global_88577 = (Global_88577 + func_306(joaat("sp0_died_in_explosion")));
Global_88577 = (Global_88577 + func_306(joaat("sp0_died_in_explosion")));
Global_88578 = 0;
Global_88578 = (Global_88578 + func_306(joaat("sp0_died_in_fall")));
Global_88578 = (Global_88578 + func_306(joaat("sp0_died_in_fall")));
Global_88578 = (Global_88578 + func_306(joaat("sp0_died_in_fall")));
Global_88579 = 0;
Global_88579 = (Global_88579 + func_306(joaat("sp0_died_in_fire")));
Global_88579 = (Global_88579 + func_306(joaat("sp0_died_in_fire")));
Global_88579 = (Global_88579 + func_306(joaat("sp0_died_in_fire")));
Global_88580 = 0;
Global_88580 = (Global_88580 + func_306(joaat("sp0_died_in_road")));
Global_88580 = (Global_88580 + func_306(joaat("sp0_died_in_road")));
Global_88580 = (Global_88580 + func_306(joaat("sp0_died_in_road")));
Global_88581 = 0;
Global_88581 = (Global_88581 + func_306(joaat("sp0_died_in_mission")));
Global_88581 = (Global_88581 + func_306(joaat("sp0_died_in_mission")));
Global_88581 = (Global_88581 + func_306(joaat("sp0_died_in_mission")));
}
void func_827(int iParam0, bool bParam1)
{
if (iParam0 == 5)
{
return;
}
if (bParam1)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_7201.f_11[iParam0]), 0);
}
else
{
unk_0xFA57C719261AA55D(&(Global_106070.f_7201.f_11[iParam0]), 0);
}
unk_0x34C60612C49AE35D(Global_88530[iParam0 /*9*/].f_8, !bParam1);
func_587(Global_88530[iParam0 /*9*/].f_7, 0, 0);
}
void func_828()
{
int iVar0;
int iVar1;
if (!Global_106070.f_7201.f_25)
{
iVar0 = 0;
while (iVar0 <= (10 - 1))
{
Global_106070.f_7201[iVar0] = 0;
if (!Global_106070.f_9057 && !func_888(0))
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_7201[iVar0]), 0);
}
unk_0x2BCFB39E86340DAA(&(Global_106070.f_7201[iVar0]), 1);
iVar0++;
}
Global_106070.f_7201.f_25 = 1;
}
iVar1 = 0;
while (iVar1 <= (10 - 1))
{
func_771(iVar1, unk_0x05EFB6A616B6FADE(Global_106070.f_7201[iVar1], 0));
iVar1++;
}
}
void func_829()
{
int iVar0;
iVar0 = 0;
while (iVar0 < 263)
{
if (unk_0x05EFB6A616B6FADE(Global_25834[iVar0 /*23*/].f_11, 0))
{
unk_0xFA57C719261AA55D(&(Global_25834[iVar0 /*23*/].f_11), 0);
unk_0xFA57C719261AA55D(&(Global_25834[iVar0 /*23*/].f_11), 15);
unk_0x2BCFB39E86340DAA(&(Global_25834[iVar0 /*23*/].f_11), 18);
}
iVar0++;
}
}
void func_830()
{
int iVar0;
int iVar1;
int iVar2;
iVar0 = 0;
while (iVar0 < 5)
{
Global_106070.f_1[iVar0] = 0;
Global_106070.f_1.f_6[iVar0] = 0;
Global_106070.f_1.f_120[iVar0] = 0;
Global_106070.f_1.f_126[iVar0 /*23*/] = 0;
Global_106070.f_1.f_126[iVar0 /*23*/].f_1 = 0;
Global_106070.f_1.f_126[iVar0 /*23*/].f_10 = 0;
iVar1 = 0;
while (iVar1 < 3)
{
Global_106070.f_1.f_126[iVar0 /*23*/].f_2[iVar1] = 0;
Global_106070.f_1.f_126[iVar0 /*23*/].f_6[iVar1] = 0f;
iVar1++;
}
iVar1 = 0;
while (iVar1 < 5)
{
Global_106070.f_1.f_126[iVar0 /*23*/].f_11[iVar1] = 0;
Global_106070.f_1.f_126[iVar0 /*23*/].f_17[iVar1] = 0;
Global_89339[iVar1 /*3*/] = 0;
Global_89339[iVar1 /*3*/].f_1 = 0;
Global_89339[iVar1 /*3*/].f_1 = 0;
iVar1++;
}
iVar0++;
}
iVar0 = 0;
while (iVar0 < 10)
{
iVar2 = 0;
while (iVar2 < 5)
{
Global_106070.f_1.f_12[iVar0 /*6*/][iVar2] = 0;
iVar2++;
}
Global_89356[iVar0 /*19*/].f_18 = 0;
iVar0++;
}
unk_0x2BCFB39E86340DAA(&(Global_106070.f_1.f_116), 1);
unk_0xFA57C719261AA55D(&(Global_106070.f_1.f_116), 2);
unk_0xFA57C719261AA55D(&(Global_106070.f_1.f_116), 10);
unk_0xFA57C719261AA55D(&(Global_106070.f_1.f_116), 11);
unk_0xFA57C719261AA55D(&(Global_106070.f_1.f_116), 3);
unk_0x2BCFB39E86340DAA(&(Global_106070.f_1.f_116), 4);
unk_0xFA57C719261AA55D(&(Global_106070.f_1.f_116), 5);
unk_0x2BCFB39E86340DAA(&(Global_106070.f_1.f_116), 6);
unk_0x2BCFB39E86340DAA(&(Global_106070.f_1.f_116), 7);
unk_0xFA57C719261AA55D(&(Global_106070.f_1.f_116), 12);
unk_0x2BCFB39E86340DAA(&(Global_106070.f_1.f_116), 8);
unk_0xFA57C719261AA55D(&(Global_106070.f_1.f_116), 13);
unk_0x2BCFB39E86340DAA(&(Global_106070.f_1.f_116), 9);
func_831();
Global_106070.f_1.f_118 = 0;
Global_106070.f_1.f_119 = 0;
Global_89334 = 0;
Global_89355 = 0;
Global_89547.f_3 = 0;
}
void func_831()
{
func_836(1, 1, 14, 1);
func_836(10, 1, 12, 0);
func_836(11, 1, 12, 0);
func_836(3, 1, 7, 0);
func_836(2, 1, 8, 0);
func_836(4, 1, 7, 1);
func_836(5, 1, 6, 0);
func_836(6, 2, 15, 1);
func_836(7, 2, 10, 1);
func_836(12, 2, 4, 0);
func_836(8, 3, 14, 1);
func_836(13, 3, 5, 0);
func_836(9, 3, 8, 1);
func_835(1, joaat("hc_gunman"), 4, 1);
func_835(10, joaat("hc_gunman"), 5, 2);
func_835(11, joaat("hc_gunman"), 6, 1);
func_835(2, joaat("hc_gunman"), 1, 1);
func_835(3, joaat("hc_gunman"), 3, 0);
func_835(4, joaat("hc_gunman"), 0, 0);
func_835(5, joaat("hc_gunman"), 2, 2);
func_835(6, joaat("hc_hacker"), 1, 1);
func_835(7, joaat("hc_hacker"), 0, 0);
func_835(12, joaat("hc_hacker"), 2, 3);
func_835(8, joaat("hc_driver"), 0, 1);
func_835(13, joaat("hc_driver"), 2, 4);
func_835(9, joaat("hc_driver"), 1, 0);
func_832(1, 2, 700, 79, 83, 77);
func_832(10, 2, 800, 91, 89, 71);
func_832(11, 2, 675, 86, 78, 90);
func_832(2, 0, 275, 40, 28, 52);
func_832(3, 0, 300, 35, 32, 48);
func_832(4, 0, 250, 39, 40, 44);
func_832(5, 0, 200, 42, 35, 46);
func_832(6, 2, 85, 77, 93, 0);
func_832(7, 1, 59, 59, 43, 0);
func_832(12, 0, 36, 45, 39, 0);
func_832(8, 2, 72, 91, 86, 0);
func_832(13, 2, 94, 83, 68, 0);
func_832(9, 0, 60, 54, 24, 0);
}
void func_832(int iParam0, int iParam1, int iParam2, int iParam3, int iParam4, int iParam5)
{
Global_106070.f_1.f_73[iParam0 /*3*/] = iParam1;
func_833(iParam0, 0, iParam2);
func_833(iParam0, 1, iParam3);
func_833(iParam0, 2, iParam4);
func_833(iParam0, 3, iParam5);
}
void func_833(int iParam0, int iParam1, int iParam2)
{
func_834(iParam1, iParam2, &(Global_106070.f_1.f_73[iParam0 /*3*/].f_1), &(Global_106070.f_1.f_73[iParam0 /*3*/].f_2));
}
void func_834(int iParam0, int iParam1, var uParam2, var uParam3)
{
switch (iParam0)
{
case 0:
*uParam2 = (*uParam2 - *uParam2 & 32767);
*uParam2 = (*uParam2 || iParam1);
return;
break;
case 1:
*uParam2 = (*uParam2 - *uParam2 & 1073709056);
*uParam2 = (*uParam2 || shift_left(iParam1, 15));
return;
break;
case 2:
*uParam3 = (*uParam3 - *uParam3 & 32767);
*uParam3 = (*uParam3 || iParam1);
return;
break;
case 3:
*uParam3 = (*uParam3 - *uParam3 & 1073709056);
*uParam3 = (*uParam3 || shift_left(iParam1, 15));
return;
break;
}
}
void func_835(int iParam0, int iParam1, int iParam2, int iParam3)
{
Global_89202[iParam0 /*5*/].f_4 = iParam1;
Global_89202[iParam0 /*5*/].f_2 = iParam2;
Global_89202[iParam0 /*5*/].f_3 = iParam3;
}
void func_836(int iParam0, int iParam1, int iParam2, bool bParam3)
{
Global_89202[iParam0 /*5*/] = iParam1;
Global_89202[iParam0 /*5*/].f_1 = iParam2;
if (bParam3)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_1.f_116), iParam0);
}
else
{
unk_0xFA57C719261AA55D(&(Global_106070.f_1.f_116), iParam0);
}
unk_0xFA57C719261AA55D(&(Global_106070.f_1.f_118), iParam0);
}
void func_837()
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
iVar0 = 0;
while (iVar0 < 94)
{
iVar1 = iVar0;
Global_106070.f_9057.f_330[iVar0 /*6*/] = 0;
Global_106070.f_9057.f_330[iVar0 /*6*/].f_1 = 0;
Global_106070.f_9057.f_330[iVar0 /*6*/].f_2 = 0;
func_55(iVar1, 0);
Global_106070.f_9057.f_330[iVar0 /*6*/].f_3 = -1;
Global_106070.f_9057.f_330[iVar0 /*6*/].f_4 = 0;
Global_106070.f_9057.f_330[iVar0 /*6*/].f_5 = 0f;
if (!func_888(0))
{
if (!unk_0x05EFB6A616B6FADE(Global_84115[iVar0 /*34*/].f_15, 7))
{
if (iVar1 != 90)
{
iVar2 = func_263(iVar1);
if (iVar2 != joaat("cities_passed"))
{
unk_0x93180BE33E7149EF(iVar2, 0, 1);
}
}
else
{
unk_0x93180BE33E7149EF(joaat("fl_co_jh2a"), 0, 1);
unk_0x93180BE33E7149EF(joaat("fl_co_jh2b"), 0, 1);
}
}
}
iVar0++;
}
Global_106070.f_9988.f_21 = 0;
iVar3 = 0;
while (iVar3 < 3)
{
Global_106070.f_9988.f_26[iVar3] = 0;
iVar3++;
}
}
void func_838()
{
int iVar0;
iVar0 = 0;
while (iVar0 < 235)
{
Global_106070.f_8585[iVar0] = 0;
Global_106070.f_8585.f_236[iVar0] = -1;
iVar0++;
}
}
void func_839()
{
func_843();
func_382();
func_87(0);
func_842();
func_840();
}
void func_840()
{
Global_14688 = 0;
func_841();
}
void func_841()
{
unk_0xB4E5B1A6FE923ECB();
Global_16833 = 0;
if (unk_0x904275961B875DEB())
{
unk_0xA8B97F91CBDE376C(false);
Global_15822 = 6;
}
}
void func_842()
{
int iVar0;
iVar0 = 0;
while (iVar0 < 35)
{
Global_106070.f_14113[iVar0 /*104*/].f_24 = 0;
Global_106070.f_14113[iVar0 /*104*/].f_28 = 0;
Global_106070.f_14113[iVar0 /*104*/].f_99[0] = 0;
Global_106070.f_14113[iVar0 /*104*/].f_99[1] = 0;
Global_106070.f_14113[iVar0 /*104*/].f_99[2] = 0;
iVar0++;
}
Global_106070.f_14023[0 /*20*/].f_17 = 0;
Global_106070.f_14023[0 /*20*/].f_18 = 0;
Global_106070.f_14023[1 /*20*/].f_17 = 0;
Global_106070.f_14023[1 /*20*/].f_18 = 0;
Global_106070.f_14023[2 /*20*/].f_17 = 0;
Global_106070.f_14023[2 /*20*/].f_18 = 0;
}
void func_843()
{
int iVar0;
iVar0 = 0;
while (iVar0 < 157)
{
if (!Global_106070.f_28022[iVar0 /*29*/].f_12[0] == 2)
{
Global_106070.f_28022[iVar0 /*29*/].f_12[0] = 0;
Global_106070.f_28022[iVar0 /*29*/].f_12[1] = 0;
Global_106070.f_28022[iVar0 /*29*/].f_12[2] = 0;
Global_106070.f_28022[iVar0 /*29*/].f_24[0] = 0;
Global_106070.f_28022[iVar0 /*29*/].f_24[1] = 0;
Global_106070.f_28022[iVar0 /*29*/].f_24[2] = 0;
Global_106070.f_28022[iVar0 /*29*/].f_19[0] = 0;
Global_106070.f_28022[iVar0 /*29*/].f_19[1] = 0;
Global_106070.f_28022[iVar0 /*29*/].f_19[2] = 0;
}
iVar0++;
}
}
void func_844()
{
struct<15> Var0;
struct<14> Var1;
struct<10> Var2;
struct<165> Var3;
int iVar4;
int iVar5;
Var3 = 16;
Global_36499 = { Var3 };
iVar4 = unk_0xFD34717937104F1C();
Global_36668 = iVar4;
iVar5 = 0;
while (iVar5 < 157)
{
Global_36669[iVar5] = iVar4;
iVar5++;
}
iVar5 = 0;
while (iVar5 < 3)
{
Global_106070.f_7660.f_919[iVar5] = 0;
iVar5++;
}
iVar5 = 0;
while (iVar5 < 9)
{
Global_106070.f_7660[iVar5 /*15*/] = { Var0 };
iVar5++;
}
Global_106070.f_7660.f_136 = 0;
iVar5 = 0;
while (iVar5 < 4)
{
Global_106070.f_7660.f_137[iVar5 /*15*/] = { Var0 };
iVar5++;
}
Global_106070.f_7660.f_198 = 0;
iVar5 = 0;
while (iVar5 < 30)
{
Global_106070.f_7660.f_199[iVar5 /*15*/] = { Var0 };
iVar5++;
}
Global_106070.f_7660.f_650 = 0;
iVar5 = 0;
while (iVar5 < 8)
{
Global_106070.f_7660.f_651[iVar5 /*14*/] = { Var1 };
iVar5++;
}
Global_106070.f_7660.f_764 = 0;
iVar5 = 0;
while (iVar5 < 3)
{
Global_106070.f_7660.f_867[iVar5 /*14*/] = { Var1 };
iVar5++;
}
Global_106070.f_7660.f_910 = 0;
iVar5 = 0;
while (iVar5 < 10)
{
Global_106070.f_7660.f_765[iVar5 /*10*/] = { Var2 };
iVar5++;
}
Global_106070.f_7660.f_866 = 0;
Global_106070.f_7660.f_911 = -1;
Global_106070.f_7660.f_912 = 0;
Global_106070.f_7660.f_913 = 0;
Global_106070.f_7660.f_914 = 0;
Global_106070.f_7660.f_915 = -1;
Global_106070.f_7660.f_916 = 0;
Global_106070.f_7660.f_917 = 0;
Global_106070.f_7660.f_918 = -1;
Global_106070.f_7660.f_923 = 0;
Global_36666 = 0;
}
void func_845()
{
int iVar0;
func_848();
func_847();
func_846();
Global_106070.f_9057.f_99.f_219[9] = 0;
Global_106070.f_9057.f_99.f_219[10] = 0;
iVar0 = 0;
while (iVar0 < 32)
{
Global_71474.f_10[iVar0] = 0;
iVar0++;
}
Global_106070.f_9057.f_1 = 0;
Global_106070.f_9988.f_25 = 0;
Global_71474.f_9 = -1;
Global_71474.f_7 = 0;
Global_71474.f_6 = 0;
Global_71474.f_2 = 1;
Global_71467 = -1;
Global_93270 = -1;
}
void func_846()
{
int iVar0;
iVar0 = 0;
iVar0 = 0;
while (iVar0 < 32)
{
Global_106070.f_9057.f_2[iVar0 /*3*/].f_1 = Global_71474.f_12526[iVar0 /*2*/];
iVar0++;
}
}
void func_847()
{
int iVar0;
iVar0 = 0;
iVar0 = 0;
while (iVar0 < 7)
{
func_571(iVar0);
iVar0++;
}
}
void func_848()
{
func_856();
func_855();
func_854();
func_853();
func_852();
func_849();
}
void func_849()
{
func_851();
func_850();
}
void func_850()
{
int iVar0;
iVar0 = 0;
while (iVar0 < 3)
{
Global_106070.f_9988[iVar0] = -1;
Global_106070.f_9988.f_4[iVar0] = -1;
Global_106070.f_9988.f_8[iVar0] = 0;
Global_106070.f_9988.f_16[iVar0] = 0;
Global_106070.f_9988.f_12[iVar0] = -1;
iVar0++;
}
Global_106070.f_9988.f_20 = 0;
}
void func_851()
{
int iVar0;
iVar0 = 0;
while (iVar0 < 100)
{
Global_106070.f_9057.f_330[iVar0 /*6*/].f_3 = -1;
iVar0++;
}
iVar0 = 0;
while (iVar0 < 63)
{
Global_106070.f_18546[iVar0 /*6*/].f_3 = -1;
iVar0++;
}
Global_106070.f_18546.f_383 = -1;
Global_106070.f_9988.f_21 = 0;
Global_106070.f_18546.f_380 = 0;
}
void func_852()
{
int iVar0;
iVar0 = 0;
iVar0 = 0;
while (iVar0 < 11)
{
Global_106070.f_9057.f_99.f_219[iVar0] = 0;
iVar0++;
}
}
void func_853()
{
int iVar0;
iVar0 = 0;
iVar0 = 0;
while (iVar0 < 13)
{
Global_106070.f_9057.f_99.f_205[iVar0] = 0;
iVar0++;
}
}
void func_854()
{
int iVar0;
iVar0 = 0;
iVar0 = 0;
while (iVar0 < 146)
{
Global_106070.f_9057.f_99.f_58[iVar0] = 0;
iVar0++;
}
}
void func_855()
{
int iVar0;
iVar0 = 0;
iVar0 = 0;
while (iVar0 < 57)
{
Global_106070.f_9057.f_99[iVar0] = 0;
iVar0++;
}
}
void func_856()
{
int iVar0;
iVar0 = 0;
iVar0 = 0;
while (iVar0 < 32)
{
Global_106070.f_9057.f_2[iVar0 /*3*/] = 0;
Global_106070.f_9057.f_2[iVar0 /*3*/].f_1 = -1;
Global_106070.f_9057.f_2[iVar0 /*3*/].f_2 = 0;
iVar0++;
}
}
int func_857(var uParam0, int iParam1, int iParam2, int iParam3)
{
int iVar0;
iVar0 = 0;
if (iParam1 == 1)
{
if (iParam2 == 1)
{
func_858(uParam0, &iVar0, 1, iParam3, 0);
func_858(uParam0, &iVar0, 7, iParam3, 0);
}
else
{
func_858(uParam0, &iVar0, 1, iParam3, 1);
}
}
else if (iParam2 == 1)
{
func_858(uParam0, &iVar0, 7, iParam3, 1);
}
return iVar0;
}
void func_858(var uParam0, int iParam1, int iParam2, int iParam3, int iParam4)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
int iVar4;
int iVar5;
iVar0 = func_863(iParam2);
if (iParam4 == 0)
{
iVar1 = 0;
while (iVar1 < iVar0)
{
if (func_861(iVar1, iParam2))
{
iVar2 = func_864(iVar1, iParam2);
if (iVar2 == -1)
{
}
else
{
if (iParam3 == 0 || func_860(iVar1, iParam2) == 1)
{
(*uParam0)[iVar2 /*2*/] = iVar1;
(uParam0[iVar2 /*2*/])->f_1 = iParam2;
}
if (func_860(iVar1, iParam2) == 1)
{
*iParam1++;
}
}
}
iVar1++;
}
}
else
{
iVar4 = 0;
iVar3 = 0;
while (iVar3 <= (iVar0 - 1))
{
iVar5 = func_859(iVar4, iParam3, iParam2);
if (iVar5 != -1)
{
iVar4 = func_864(iVar5, iParam2) + 1;
(*uParam0)[iVar3 /*2*/] = iVar5;
(uParam0[iVar3 /*2*/])->f_1 = iParam2;
if (func_860(iVar5, iParam2))
{
*iParam1++;
}
}
else
{
iVar3 = iVar0 + 1;
}
iVar3++;
}
}
}
int func_859(int iParam0, int iParam1, int iParam2)
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
int iVar4;
iVar0 = 0;
iVar1 = -1;
iVar2 = -1;
iVar4 = func_863(iParam2);
iVar0 = 0;
while (iVar0 < iVar4)
{
if (func_861(iVar0, iParam2) == 1)
{
if (iParam1 == 0 || func_860(iVar0, iParam2) == 1)
{
iVar3 = func_864(iVar0, iParam2);
if (iVar3 >= iParam0)
{
if (iVar3 < iVar1 || iVar1 == -1)
{
iVar1 = iVar3;
iVar2 = iVar0;
}
}
}
}
iVar0++;
}
return iVar2;
}
int func_860(int iParam0, int iParam1)
{
switch (iParam1)
{
case 1:
return !unk_0x05EFB6A616B6FADE(Global_84115[iParam0 /*34*/].f_15, 5);
break;
case 7:
return func_73(iParam0);
break;
default:
break;
}
return 0;
}
int func_861(int iParam0, int iParam1)
{
switch (iParam1)
{
case 1:
if (func_728(iParam0))
{
return func_862();
}
else
{
return Global_106070.f_9057.f_330[iParam0 /*6*/];
}
break;
case 7:
return unk_0x05EFB6A616B6FADE(Global_106070.f_18546[iParam0 /*6*/], 3);
break;
default:
break;
}
return 0;
}
int func_862()
{
if (((Global_106070.f_9057.f_330[24 /*6*/] == 1 || Global_106070.f_9057.f_330[25 /*6*/] == 1) || Global_106070.f_9057.f_330[26 /*6*/] == 1) || Global_106070.f_9057.f_330[27 /*6*/] == 1)
{
return 1;
}
return 0;
}
int func_863(int iParam0)
{
switch (iParam0)
{
case 1:
return 94;
break;
case 7:
return 63;
break;
default:
break;
}
return -1;
}
int func_864(int iParam0, int iParam1)
{
switch (iParam1)
{
case 1:
return Global_106070.f_9057.f_330[iParam0 /*6*/].f_3;
break;
case 7:
return Global_106070.f_18546[iParam0 /*6*/].f_3;
break;
default:
break;
}
return -1;
}
void func_865(bool bParam0)
{
int iVar0;
unk_0x62BAB49318F4FE6E(0);
if (unk_0x8B1574454E8C2421(joaat("director_mode")) > 0)
{
unk_0x0FF1E784EBDD72A3(1);
Global_105021 = 1;
while (Global_105021)
{
wait(0);
}
unk_0x0FF1E784EBDD72A3(0);
}
unk_0xA5DD4141C1E70561(8);
unk_0xA5DD4141C1E70561(64);
wait(0);
if (unk_0x99E48E2CD778F380())
{
unk_0x609D4B6E0B7381C9();
}
if (bParam0)
{
while (Global_71467 != -1)
{
func_847();
if (Global_71467 != -1)
{
unk_0xE62EF1D7C63D4A0F(&(Global_84115[Global_71467 /*34*/]), 2);
}
if (Global_36080 != 0)
{
unk_0xD64F781E7AD4BE57(Global_36080, 2);
Global_36080 = 0;
}
if (Global_36079 != -1)
{
func_6(&Global_36079);
}
Global_90257 = 0;
Global_36083 = 0;
Global_71467 = -1;
}
unk_0xFDD15D670AD33E10(0f, 0f, 0f, 10000f, 0, 0, 0, false);
Global_90257 = 0;
Global_36083 = 0;
Global_71467 = -1;
Global_36079 = -1;
Global_36080 = 0;
func_870();
}
else
{
while ((((Global_90257 || Global_36083) || Global_71467 != -1) || Global_36079 != -1) || Global_36080 != 0)
{
func_847();
wait(0);
if (Global_71467 != -1)
{
unk_0xE62EF1D7C63D4A0F(&(Global_84115[Global_71467 /*34*/]), 2);
}
if (Global_36080 != 0)
{
unk_0xD64F781E7AD4BE57(Global_36080, 2);
Global_36080 = 0;
}
if (Global_36079 != -1)
{
func_6(&Global_36079);
}
Global_90257 = 0;
Global_36083 = 0;
Global_71467 = -1;
wait(0);
}
}
if (unk_0x99E48E2CD778F380())
{
unk_0x609D4B6E0B7381C9();
unk_0xFB35B0BAD6F5AD8F();
}
unk_0x135C61E339DABBAC(1);
unk_0x4F93066CECE72793();
unk_0x158181F81A221D70();
while (Global_71210 != -1)
{
if (!Global_71222)
{
Global_71222 = 1;
}
wait(0);
}
iVar0 = unk_0xFD34717937104F1C() + 1000;
while (unk_0x99E48E2CD778F380() && iVar0 > unk_0xFD34717937104F1C())
{
wait(0);
unk_0x609D4B6E0B7381C9();
unk_0xFB35B0BAD6F5AD8F();
}
if (iVar0 > unk_0xFD34717937104F1C())
{
}
Global_106070.f_9057 = 0;
func_547();
func_90(1);
func_868();
if (unk_0x58E3CCF930D23BD5(unk_0xD4E735F4B6A956AC()))
{
unk_0xDEE4574BA71257AB(unk_0xD4E735F4B6A956AC());
}
unk_0x144ECBDB133125FD();
if (Global_106070.f_2355.f_539[0 /*65*/].f_13[9] == 5)
{
Global_106070.f_2355.f_539[0 /*65*/].f_13[9] = 0;
}
if (Global_106070.f_2355.f_539[1 /*65*/].f_13[8] == 1)
{
Global_106070.f_2355.f_539[1 /*65*/].f_13[8] = 0;
}
if (Global_106070.f_2355.f_539[2 /*65*/].f_13[8] == 3)
{
Global_106070.f_2355.f_539[2 /*65*/].f_13[8] = 0;
}
while (!func_866(func_867()))
{
unk_0xCACEBBBEAD8F262E(joaat("player_zero"));
if (unk_0x7FC99CCC73354033(joaat("player_zero")))
{
unk_0x041B27626566B361(unk_0xD4E735F4B6A956AC(), joaat("player_zero"));
}
wait(0);
}
if (!unk_0x4915F4759304D5CF(unk_0xA19140A5C42D8715()))
{
unk_0x7D10B65F1B81F403(unk_0xA19140A5C42D8715(), 1);
unk_0x7C73A424F1117528(unk_0xA19140A5C42D8715(), true, 0);
}
}
int func_866(int iParam0)
{
if ((iParam0 == joaat("player_zero") || iParam0 == joaat("player_one")) || iParam0 == joaat("player_two"))
{
return 1;
}
return 0;
}
int func_867()
{
return unk_0x8F474E419F56E48D(unk_0xA19140A5C42D8715());
}
void func_868()
{
int iVar0;
iVar0 = 0;
while (iVar0 < 50)
{
func_869(iVar0);
iVar0++;
}
}
void func_869(int iParam0)
{
if (!func_23(iParam0, 16, 1))
{
func_22(iParam0, 17, 1);
}
}
void func_870()
{
int iVar0;
char* sVar1;
if (unk_0x365C4466BC171A2D() || unk_0x29A02C184A66D25E())
{
iVar0 = 30;
unk_0x14D4D10C8FD9E0DD(8, &iVar0, 1, 1);
}
else if (unk_0x332D85764ED0503F() || unk_0x7DD04831D0FC44CA())
{
sVar1 = "SPMG_30_STR";
unk_0x5182FF270C9DCEBC(8, sVar1);
}
}
void func_871(bool bParam0, int iParam1, bool bParam2)
{
var uVar0;
var uVar1;
func_885();
func_874();
func_872();
if (bParam2)
{
unk_0x2BCFB39E86340DAA(&(Global_106070.f_9988.f_25), 4);
}
else
{
unk_0xFA57C719261AA55D(&(Global_106070.f_9988.f_25), 4);
}
Global_106070.f_7660.f_924 = unk_0xFD34717937104F1C();
if (Global_71467 == 62 || Global_71468 == 62)
{
func_771(2, 1);
}
if (!bParam0)
{
Global_93271.f_8 = 0;
Global_106070.f_9988.f_23 = 0;
Global_106070.f_9988.f_24 = 0;
}
unk_0x688672A456E7E5D1(iParam1, Global_106070.f_25056, Global_106070.f_25056.f_3, bParam0, &uVar0, &uVar1);
}
void func_872()
{
int iVar0;
bool bVar1;
int iVar2;
struct<4> Var3;
vector3 vVar4;
int iVar5;
func_658(unk_0xA19140A5C42D8715(), 1);
func_383(unk_0xA19140A5C42D8715(), 0);
iVar0 = 0;
while (iVar0 < 9)
{
if (unk_0xDC5D81351D6A4DDB(Global_90658[iVar0]))
{
bVar1 = false;
iVar2 = 0;
StringCopy(&Var3, "", 32);
vVar4 = { 0f, 0f, 0f };
iVar5 = func_647(unk_0xE2BBD32891C18569(unk_0xA19140A5C42D8715(), true), Global_90668[iVar0], 1);
if ((((iVar5 != 10 && iVar5 != 3) && iVar5 != 2) && unk_0x1095F403F52B42E1(Global_90658[iVar0], 0)) && unk_0x678F978B0FAD24D2(Global_90658[iVar0]))
{
while (!bVar1 && func_228(Global_90668[iVar0], iVar2, &Var3, &iVar5))
{
if (unk_0xFB166837ACE44C44(&Var3, Global_90658[iVar0]))
{
bVar1 = true;
vVar4 = { unk_0xE2BBD32891C18569(Global_90658[iVar0], false) };
func_873(Global_90668[iVar0], iVar2, &vVar4);
}
iVar2++;
}
}
if (bVar1)
{
if (unk_0x425CD7B17352316F(Global_90678[iVar0]))
{
Global_106070.f_2355.f_539.f_3568[0 /*10*/][Global_90668[iVar0] /*3*/] = { vVar4 };
Global_106070.f_2355.f_539.f_3589[0 /*4*/][Global_90668[iVar0]] = unk_0x552C823E1D2A019C(Global_90658[iVar0]);
}
else if (unk_0x8CE5E4632E631B03(Global_90678[iVar0]))
{
Global_106070.f_2355.f_539.f_3568[1 /*10*/][Global_90668[iVar0] /*3*/] = { vVar4 };
Global_106070.f_2355.f_539.f_3589[1 /*4*/][Global_90668[iVar0]] = unk_0x552C823E1D2A019C(Global_90658[iVar0]);
}
}
else if (unk_0x425CD7B17352316F(Global_90678[iVar0]))
{
Global_106070.f_2355.f_539.f_3568[0 /*10*/][Global_90668[iVar0] /*3*/] = { 0f, 0f, 0f };
Global_106070.f_2355.f_539.f_3589[0 /*4*/][Global_90668[iVar0]] = 0f;
}
else if (unk_0x8CE5E4632E631B03(Global_90678[iVar0]))
{
Global_106070.f_2355.f_539.f_3568[1 /*10*/][Global_90668[iVar0] /*3*/] = { 0f, 0f, 0f };
Global_106070.f_2355.f_539.f_3589[1 /*4*/][Global_90668[iVar0]] = 0f;
}
}
iVar0++;
}
}
void func_873(int iParam0, int iParam1, var uParam2)
{
switch (iParam0)
{
case 0:
if (iParam1 == 0)
{
uParam2->f_2 = 71.47866f;
}
else if (iParam1 == 1)
{
uParam2->f_2 = 31.39692f;
}
break;
case 1:
if (iParam1 == 0)
{
uParam2->f_2 = 29.65688f;
}
else if (iParam1 == 1)
{
uParam2->f_2 = 175.0277f;
}
break;
case 2:
if (iParam1 == 0)
{
uParam2->f_2 = 31.39692f;
}
else if (iParam1 == 1)
{
uParam2->f_2 = 3.24864f;
}
else if (iParam1 == 2)
{
}
break;
}
}
void func_874()
{
int iVar0;
iVar0 = 0;
while (iVar0 < 32)
{
Global_106070.f_9057.f_2[iVar0 /*3*/].f_2 = func_875(Global_106070.f_9057.f_2[iVar0 /*3*/].f_1);
iVar0++;
}
}
int func_875(int iParam0)
{
struct<8> Var0;
StringCopy(&Var0, "NULL", 64);
if (iParam0 != -1)
{
switch (Global_71474.f_6825[iParam0 /*3*/].f_1)
{
case 12:
func_884(iParam0, &Var0);
break;
case 0:
func_883(iParam0, &Var0);
break;
case 1:
func_882(iParam0, &Var0);
break;
case 2:
func_881(iParam0, &Var0);
break;
case 3:
func_880(iParam0, &Var0);
break;
case 4:
func_879(iParam0, &Var0);
break;
case 7:
func_878(iParam0, &Var0);
break;
case 8:
func_876(iParam0, &Var0);
break;
}
}
return unk_0xFEB6EEC0545AF7AA(&Var0);
}
void func_876(int iParam0, char* sParam1)
{
char cVar0[64];
IntToString(sParam1, Global_71474.f_6825[iParam0 /*3*/], 64);
StringIntConCat(sParam1, func_877(iParam0), 64);
IntToString(&cVar0, Global_71474.f_6684[Global_71474.f_6825[iParam0 /*3*/].f_2 /*14*/], 64);
StringIntConCat(&cVar0, Global_71474.f_6684[Global_71474.f_6825[iParam0 /*3*/].f_2 /*14*/].f_1, 64);
StringIntConCat(&cVar0, Global_71474.f_6684[Global_71474.f_6825[iParam0 /*3*/].f_2 /*14*/].f_2, 64);
StringIntConCat(sParam1, unk_0xFEB6EEC0545AF7AA(&cVar0), 64);
IntToString(&cVar0, Global_71474.f_6684[Global_71474.f_6825[iParam0 /*3*/].f_2 /*14*/].f_3, 64);
StringIntConCat(&cVar0, Global_71474.f_6684[Global_71474.f_6825[iParam0 /*3*/].f_2 /*14*/].f_4, 64);
StringIntConCat(&cVar0, Global_71474.f_6684[Global_71474.f_6825[iParam0 /*3*/].f_2 /*14*/].f_5, 64);
StringIntConCat(sParam1, unk_0xFEB6EEC0545AF7AA(&cVar0), 64);
IntToString(&cVar0, Global_71474.f_6684[Global_71474.f_6825[iParam0 /*3*/].f_2 /*14*/].f_6, 64);
StringIntConCat(&cVar0, Global_71474.f_6684[Global_71474.f_6825[iParam0 /*3*/].f_2 /*14*/].f_7, 64);
StringIntConCat(&cVar0, Global_71474.f_6684[Global_71474.f_6825[iParam0 /*3*/].f_2 /*14*/].f_8, 64);
StringIntConCat(sParam1, unk_0xFEB6EEC0545AF7AA(&cVar0), 64);
IntToString(&cVar0, Global_71474.f_6684[Global_71474.f_6825[iParam0 /*3*/].f_2 /*14*/].f_9, 64);
StringIntConCat(&cVar0, Global_71474.f_6684[Global_71474.f_6825[iParam0 /*3*/].f_2 /*14*/].f_10, 64);
StringIntConCat(&cVar0, Global_71474.f_6684[Global_71474.f_6825[iParam0 /*3*/].f_2 /*14*/].f_11, 64);
StringIntConCat(&cVar0, Global_71474.f_6684[Global_71474.f_6825[iParam0 /*3*/].f_2 /*14*/].f_12, 64);
StringIntConCat(&cVar0, Global_71474.f_6684[Global_71474.f_6825[iParam0 /*3*/].f_2 /*14*/].f_13, 64);
StringIntConCat(sParam1, unk_0xFEB6EEC0545AF7AA(&cVar0), 64);
}
int func_877(int iParam0)
{
int iVar0;
iVar0 = 0;
while (iVar0 < 32)
{
if (iParam0 >= Global_71474.f_12526[iVar0 /*2*/] && iParam0 <= Global_71474.f_12526[iVar0 /*2*/].f_1)
{
return iVar0;
}
iVar0++;
}
return -1;
}
void func_878(int iParam0, char* sParam1)
{
char cVar0[64];
IntToString(sParam1, Global_71474.f_6825[iParam0 /*3*/], 64);
StringIntConCat(sParam1, func_877(iParam0), 64);
IntToString(&cVar0, Global_71474.f_4824[Global_71474.f_6825[iParam0 /*3*/].f_2 /*11*/], 64);
StringIntConCat(&cVar0, Global_71474.f_4824[Global_71474.f_6825[iParam0 /*3*/].f_2 /*11*/].f_1, 64);
StringIntConCat(sParam1, unk_0xFEB6EEC0545AF7AA(&cVar0), 64);
IntToString(&cVar0, Global_71474.f_4824[Global_71474.f_6825[iParam0 /*3*/].f_2 /*11*/].f_2, 64);
StringIntConCat(&cVar0, Global_71474.f_4824[Global_71474.f_6825[iParam0 /*3*/].f_2 /*11*/].f_3, 64);
StringIntConCat(sParam1, unk_0xFEB6EEC0545AF7AA(&cVar0), 64);
IntToString(&cVar0, Global_71474.f_4824[Global_71474.f_6825[iParam0 /*3*/].f_2 /*11*/].f_4, 64);
StringIntConCat(&cVar0, Global_71474.f_4824[Global_71474.f_6825[iParam0 /*3*/].f_2 /*11*/].f_5, 64);
StringIntConCat(sParam1, unk_0xFEB6EEC0545AF7AA(&cVar0), 64);
IntToString(&cVar0, Global_71474.f_4824[Global_71474.f_6825[iParam0 /*3*/].f_2 /*11*/].f_6, 64);
StringIntConCat(&cVar0, Global_71474.f_4824[Global_71474.f_6825[iParam0 /*3*/].f_2 /*11*/].f_7, 64);
StringIntConCat(&cVar0, Global_71474.f_4824[Global_71474.f_6825[iParam0 /*3*/].f_2 /*11*/].f_8, 64);
StringIntConCat(sParam1, unk_0xFEB6EEC0545AF7AA(&cVar0), 64);
}
void func_879(int iParam0, char* sParam1)
{
char cVar0[64];
IntToString(sParam1, Global_71474.f_6825[iParam0 /*3*/], 64);
StringIntConCat(sParam1, func_877(iParam0), 64);
MemCopy(&cVar0, {Global_71474.f_4160[Global_71474.f_6825[iParam0 /*3*/].f_2 /*12*/]}, 16);
StringIntConCat(sParam1, unk_0xFEB6EEC0545AF7AA(&cVar0), 64);
IntToString(&cVar0, Global_71474.f_4160[Global_71474.f_6825[iParam0 /*3*/].f_2 /*12*/].f_8, 64);
StringIntConCat(&cVar0, Global_71474.f_4160[Global_71474.f_6825[iParam0 /*3*/].f_2 /*12*/].f_9, 64);
StringIntConCat(sParam1, unk_0xFEB6EEC0545AF7AA(&cVar0), 64);
IntToString(&cVar0, Global_71474.f_4160[Global_71474.f_6825[iParam0 /*3*/].f_2 /*12*/].f_10, 64);
StringIntConCat(&cVar0, Global_71474.f_4160[Global_71474.f_6825[iParam0 /*3*/].f_2 /*12*/].f_11, 64);
StringIntConCat(sParam1, unk_0xFEB6EEC0545AF7AA(&cVar0), 64);
}
void func_880(int iParam0, char* sParam1)
{
IntToString(sParam1, Global_71474.f_6825[iParam0 /*3*/], 64);
StringIntConCat(sParam1, func_877(iParam0), 64);
StringConCat(sParam1, &(Global_71474.f_4151[Global_71474.f_6825[iParam0 /*3*/].f_2 /*8*/]), 64);
}
void func_881(int iParam0, char* sParam1)
{
IntToString(sParam1, Global_71474.f_6825[iParam0 /*3*/], 64);
StringIntConCat(sParam1, func_877(iParam0), 64);
StringIntConCat(sParam1, Global_71474.f_3590[Global_71474.f_6825[iParam0 /*3*/].f_2 /*2*/], 64);
StringIntConCat(sParam1, Global_71474.f_3590[Global_71474.f_6825[iParam0 /*3*/].f_2 /*2*/].f_1, 64);
}
void func_882(int iParam0, char* sParam1)
{
char cVar0[64];
IntToString(sParam1, Global_71474.f_6825[iParam0 /*3*/], 64);
StringIntConCat(sParam1, func_877(iParam0), 64);
IntToString(&cVar0, Global_71474.f_109[Global_71474.f_6825[iParam0 /*3*/].f_2 /*4*/], 64);
StringIntConCat(&cVar0, Global_71474.f_109[Global_71474.f_6825[iParam0 /*3*/].f_2 /*4*/].f_1, 64);
StringIntConCat(sParam1, unk_0xFEB6EEC0545AF7AA(&cVar0), 64);
IntToString(&cVar0, Global_71474.f_109[Global_71474.f_6825[iParam0 /*3*/].f_2 /*4*/].f_2, 64);
StringIntConCat(&cVar0, Global_71474.f_109[Global_71474.f_6825[iParam0 /*3*/].f_2 /*4*/].f_3, 64);
StringIntConCat(sParam1, unk_0xFEB6EEC0545AF7AA(&cVar0), 64);
}
void func_883(int iParam0, char* sParam1)
{
IntToString(sParam1, Global_71474.f_6825[iParam0 /*3*/], 64);
StringIntConCat(sParam1, func_877(iParam0), 64);
StringIntConCat(sParam1, Global_71474.f_6825[iParam0 /*3*/].f_2, 64);
}
void func_884(int iParam0, char* sParam1)
{
IntToString(sParam1, Global_71474.f_6825[iParam0 /*3*/], 64);
StringIntConCat(sParam1, func_877(iParam0), 64);
}
void func_885()
{
int iVar0;
int iVar1;
int iVar2;
int iVar3;
int iVar4;
int iVar5;
iVar0 = 0;
iVar0 = 0;
while (iVar0 < 3)
{
Global_106070.f_21009[iVar0 /*103*/] = Global_46222[iVar0 /*120*/];
iVar1 = 0;
iVar1 = 0;
while (iVar1 < 16)
{
Global_106070.f_21009[iVar0 /*103*/].f_1[iVar1] = Global_46222[iVar0 /*120*/].f_1[iVar1];
Global_106070.f_21009[iVar0 /*103*/].f_18[iVar1] = Global_46222[iVar0 /*120*/].f_18[iVar1];
Global_106070.f_21009[iVar0 /*103*/].f_35[iVar1] = Global_46222[iVar0 /*120*/].f_35[iVar1];
Global_106070.f_21009[iVar0 /*103*/].f_52[iVar1] = Global_46222[iVar0 /*120*/].f_52[iVar1];
Global_106070.f_21009[iVar0 /*103*/].f_69[iVar1] = Global_46222[iVar0 /*120*/].f_69[iVar1];
Global_106070.f_21009[iVar0 /*103*/].f_86[iVar1] = Global_46222[iVar0 /*120*/].f_86[iVar1];
iVar1++;
}
iVar0++;
}
iVar0 = 0;
iVar0 = 0;
while (iVar0 < 7)
{
Global_106070.f_21009.f_311[iVar0 /*203*/] = Global_46584[iVar0 /*203*/].f_2;
Global_106070.f_21009.f_311[iVar0 /*203*/].f_1 = Global_46584[iVar0 /*203*/].f_1;
Global_106070.f_21009.f_311[iVar0 /*203*/].f_2 = Global_46584[iVar0 /*203*/];
Global_106070.f_21009.f_311[iVar0 /*203*/].f_3 = Global_46584[iVar0 /*203*/].f_3;
iVar2 = 0;
iVar2 = 0;
while (iVar2 < 4)
{
Global_106070.f_21009.f_311[iVar0 /*203*/].f_4[iVar2] = Global_46584[iVar0 /*203*/].f_4[iVar2];
iVar2++;
}
Global_106070.f_21009.f_311[iVar0 /*203*/].f_9 = Global_46584[iVar0 /*203*/].f_9;
iVar2 = 0;
iVar2 = 0;
while (iVar2 < 4)
{
Global_106070.f_21009.f_311[iVar0 /*203*/].f_10[iVar2 /*48*/] = Global_46584[iVar0 /*203*/].f_10[iVar2 /*48*/];
Global_106070.f_21009.f_311[iVar0 /*203*/].f_10[iVar2 /*48*/].f_1 = Global_46584[iVar0 /*203*/].f_10[iVar2 /*48*/].f_1;
Global_106070.f_21009.f_311[iVar0 /*203*/].f_10[iVar2 /*48*/].f_2 = { Global_46584[iVar0 /*203*/].f_10[iVar2 /*48*/].f_2 };
Global_106070.f_21009.f_311[iVar0 /*203*/].f_10[iVar2 /*48*/].f_6 = Global_46584[iVar0 /*203*/].f_10[iVar2 /*48*/].f_6;
iVar3 = 0;
iVar3 = 0;
while (iVar3 < 10)
{
Global_106070.f_21009.f_311[iVar0 /*203*/].f_10[iVar2 /*48*/].f_7[iVar3 /*4*/] = { Global_46584[iVar0 /*203*/].f_10[iVar2 /*48*/].f_7[iVar3 /*4*/] };
iVar3++;
}
iVar2++;
}
iVar0++;
}
iVar0 = 0;
iVar0 = 0;
while (iVar0 < 122)
{
Global_106070.f_21009.f_1733[iVar0 /*14*/] = Global_40609[iVar0 /*46*/];
Global_106070.f_21009.f_1733[iVar0 /*14*/].f_1 = Global_40609[iVar0 /*46*/].f_1;
Global_106070.f_21009.f_1733[iVar0 /*14*/].f_2 = Global_40609[iVar0 /*46*/].f_45;
Global_106070.f_21009.f_1733[iVar0 /*14*/].f_3 = Global_40609[iVar0 /*46*/].f_31;
iVar4 = 0;
while (iVar4 < 9)
{
if (iVar4 < Global_40609[iVar0 /*46*/].f_42)
{
Global_106070.f_21009.f_1733[iVar0 /*14*/].f_4[iVar4] = Global_40609[iVar0 /*46*/].f_32[iVar4] + 1;
}
else
{
Global_106070.f_21009.f_1733[iVar0 /*14*/].f_4[iVar4] = -1;
}
iVar4++;
}
iVar0++;
}
iVar0 = 0;
iVar0 = 0;
while (iVar0 < 8)
{
Global_106070.f_21009.f_3442[iVar0 /*53*/] = Global_48007[iVar0 /*53*/];
Global_106070.f_21009.f_3442[iVar0 /*53*/].f_1 = Global_48007[iVar0 /*53*/].f_1;
Global_106070.f_21009.f_3442[iVar0 /*53*/].f_2 = Global_48007[iVar0 /*53*/].f_2;
Global_106070.f_21009.f_3442[iVar0 /*53*/].f_5 = Global_48007[iVar0 /*53*/].f_5;
Global_106070.f_21009.f_3442[iVar0 /*53*/].f_6 = { Global_48007[iVar0 /*53*/].f_6 };
Global_106070.f_21009.f_3442[iVar0 /*53*/].f_10 = Global_48007[iVar0 /*53*/].f_10;
iVar5 = 0;
iVar5 = 0;
while (iVar5 < 10)
{
Global_106070.f_21009.f_3442[iVar0 /*53*/].f_11[iVar5 /*4*/] = { Global_48007[iVar0 /*53*/].f_11[iVar5 /*4*/] };
iVar5++;
}
Global_106070.f_21009.f_3442[iVar0 /*53*/].f_52 = Global_48007[iVar0 /*53*/].f_52;
iVar0++;
}
}
void func_886()
{
if (!unk_0x4915F4759304D5CF(unk_0xA19140A5C42D8715()))
{
func_342(&(Global_106070.f_25056), 1);
func_316(&(Global_106070.f_25056.f_6), &Global_96664, 0, 1, 1, 1);
Global_106070.f_25056.f_96 = Global_90249;
Global_106070.f_25056.f_97 = func_887(1129381888, 1);
if (Global_106070.f_25056.f_97 != -1)
{
if (Global_105157[Global_106070.f_25056.f_97 /*10*/].f_1 == 0 && Global_105157[Global_106070.f_25056.f_97 /*10*/].f_3 == 1)
{
}
else
{
Global_106070.f_25056.f_97 = -1;
}
}
}
}
int func_887(int iParam0, bool bParam1)
{
struct<27> Var0;
int iVar1;
int iVar2;
float fVar3;
float fVar4;
int iVar5;
int iVar6;
bool bVar7;
iVar2 = -1;
fVar3 = iParam0;
if (unk_0x58E3CCF930D23BD5(unk_0xD4E735F4B6A956AC()))
{
iVar5 = func_714();
iVar6 = 0;
iVar6 = 0;
while (iVar6 < 63)
{
iVar1 = iVar6;
if (unk_0x05EFB6A616B6FADE(Global_106070.f_18546[iVar1 /*6*/], 2) && !unk_0x05EFB6A616B6FADE(Global_106070.f_18546[iVar1 /*6*/], 3))
{
func_71(iVar1, &Var0);
fVar4 = unk_0x499324B3EF19C288(unk_0xE2BBD32891C18569(unk_0xA19140A5C42D8715(), false), Var0.f_6, true);
if (fVar4 < fVar3)
{
bVar7 = true;
if (bParam1)
{
if (iVar5 != Var0.f_26)
{
bVar7 = false;
}
}
if (bVar7)
{
iVar2 = iVar1;
fVar3 = fVar4;
}
}
}
iVar6++;
}
}
return iVar2;
}
bool func_888(bool bParam0)
{
if (!bParam0 && unk_0x8B1574454E8C2421(joaat("benchmark")) > 0)
{
return 1;
}
return unk_0x05EFB6A616B6FADE(Global_71453, 0);
}
| [
"[email protected]"
] | |
3878a434fd9014d277b04e8222533fd85008bfb2 | 0c0dac0626aaadd561e250fb47eeede8312d5d82 | /sbin/unwind/unwind.h | bbd0f9657c98a03b6bdd4058999d16d5102374e5 | [] | no_license | arekinath/openbsd-6.9-a3 | 5c25a287c481699a09c9c4630c5c773a38412e0a | 744a280e5e7d8e71664847a5d9a9693e80f7f5ec | refs/heads/main | 2023-08-19T04:33:48.119966 | 2021-10-05T02:07:50 | 2021-10-05T11:12:50 | 413,786,977 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 5,071 | h | /* $OpenBSD: unwind.h,v 1.53 2021/01/27 08:30:50 florian Exp $ */
/*
* Copyright (c) 2018 Florian Obser <[email protected]>
* Copyright (c) 2004 Esben Norby <[email protected]>
* Copyright (c) 2003, 2004 Henning Brauer <[email protected]>
*
* Permission to use, copy, modify, and 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.
*
* THE 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 <sys/types.h>
#include <sys/tree.h>
#include <netinet/in.h> /* INET6_ADDRSTRLEN */
#include <event.h>
#include <imsg.h>
#include <netdb.h> /* NI_MAXHOST */
#include <stdint.h>
#ifndef nitems
#define nitems(_a) (sizeof((_a)) / sizeof((_a)[0]))
#endif
#define _PATH_CONF_FILE "/etc/unwind.conf"
#define _PATH_UNWIND_SOCKET "/dev/unwind.sock"
#define UNWIND_USER "_unwind"
#define OPT_VERBOSE 0x00000001
#define OPT_VERBOSE2 0x00000002
#define OPT_VERBOSE3 0x00000004
#define OPT_NOACTION 0x00000008
#define ROOT_DNSKEY_TTL 172800 /* TTL from authority */
#define KSK2017 ". 172800 IN DNSKEY 257 3 8 AwEAAaz/tAm8yTn4Mfeh5eyI96WSVexTBAvkMgJzkKTOiW1vkIbzxeF3+/4RgWOq7HrxRixHlFlExOLAJr5emLvN7SWXgnLh4+B5xQlNVz8Og8kvArMtNROxVQuCaSnIDdD5LKyWbRd2n9WGe2R8PzgCmr3EgVLrjyBxWezF0jLHwVN8efS3rCj/EWgvIWgb9tarpVUDK/b58Da+sqqls3eNbuv7pr+eoZG+SrDK6nWeL3c6H5Apxz7LjVc1uTIdsIXxuOLYA4/ilBmSVIzuDWfdRUfhHdY6+cn8HFRm+2hM8AnXGXws9555KrUB5qihylGa8subX2Nn6UwNR1AkUTV74bU="
#define IMSG_DATA_SIZE(imsg) ((imsg).hdr.len - IMSG_HEADER_SIZE)
enum uw_resolver_type {
UW_RES_RECURSOR,
UW_RES_DHCP,
UW_RES_ODOT_DHCP,
UW_RES_ASR,
UW_RES_FORWARDER,
UW_RES_ODOT_FORWARDER,
UW_RES_DOT,
UW_RES_NONE
};
static const char * const uw_resolver_type_str[] = {
"recursor",
"dhcp",
"oDoT-dhcp",
"stub",
"forwarder",
"oDoT-forwarder",
"DoT"
};
static const char * const uw_resolver_type_short[] = {
"rec",
"dhcp",
"dhcp*",
"stub",
"forw",
"forw*",
"DoT"
};
struct imsgev {
struct imsgbuf ibuf;
void (*handler)(int, short, void *);
struct event ev;
short events;
};
enum imsg_type {
IMSG_NONE,
IMSG_CTL_LOG_VERBOSE,
IMSG_CTL_RELOAD,
IMSG_CTL_STATUS,
IMSG_CTL_AUTOCONF,
IMSG_CTL_MEM,
IMSG_RECONF_CONF,
IMSG_RECONF_BLOCKLIST_FILE,
IMSG_RECONF_FORWARDER,
IMSG_RECONF_DOT_FORWARDER,
IMSG_RECONF_FORCE,
IMSG_RECONF_END,
IMSG_UDP4SOCK,
IMSG_UDP6SOCK,
IMSG_TCP4SOCK,
IMSG_TCP6SOCK,
IMSG_ROUTESOCK,
IMSG_CONTROLFD,
IMSG_STARTUP,
IMSG_STARTUP_DONE,
IMSG_SOCKET_IPC_FRONTEND,
IMSG_SOCKET_IPC_RESOLVER,
IMSG_QUERY,
IMSG_ANSWER,
IMSG_CTL_RESOLVER_INFO,
IMSG_CTL_AUTOCONF_RESOLVER_INFO,
IMSG_CTL_MEM_INFO,
IMSG_CTL_END,
IMSG_HTTPSOCK,
IMSG_TAFD,
IMSG_NEW_TA,
IMSG_NEW_TAS_ABORT,
IMSG_NEW_TAS_DONE,
IMSG_NETWORK_CHANGED,
IMSG_BLFD,
IMSG_REPLACE_DNS,
IMSG_NEW_DNS64_PREFIXES_START,
IMSG_NEW_DNS64_PREFIX,
IMSG_NEW_DNS64_PREFIXES_DONE,
IMSG_CHANGE_AFS,
};
struct uw_forwarder {
TAILQ_ENTRY(uw_forwarder) entry;
char ip[INET6_ADDRSTRLEN];
char auth_name[NI_MAXHOST];
uint16_t port;
uint32_t if_index;
int src;
};
struct force_tree_entry {
RB_ENTRY(force_tree_entry) entry;
char domain[NI_MAXHOST];
enum uw_resolver_type type;
int acceptbogus;
};
RB_HEAD(force_tree, force_tree_entry);
struct resolver_preference {
enum uw_resolver_type types[UW_RES_NONE];
int len;
};
TAILQ_HEAD(uw_forwarder_head, uw_forwarder);
struct uw_conf {
struct uw_forwarder_head uw_forwarder_list;
struct uw_forwarder_head uw_dot_forwarder_list;
struct force_tree force;
struct resolver_preference res_pref;
char *blocklist_file;
int blocklist_log;
};
struct query_imsg {
uint64_t id;
char qname[NI_MAXHOST];
int t;
int c;
struct timespec tp;
};
struct answer_header {
uint64_t id;
int srvfail;
int bogus;
int answer_len;
};
extern uint32_t cmd_opts;
/* unwind.c */
void main_imsg_compose_frontend(int, pid_t, void *, uint16_t);
void main_imsg_compose_frontend_fd(int, pid_t, int);
void main_imsg_compose_resolver(int, pid_t, void *, uint16_t);
void merge_config(struct uw_conf *, struct uw_conf *);
void imsg_event_add(struct imsgev *);
int imsg_compose_event(struct imsgev *, uint16_t, uint32_t, pid_t,
int, void *, uint16_t);
void imsg_receive_config(struct imsg *, struct uw_conf **);
struct uw_conf *config_new_empty(void);
void config_clear(struct uw_conf *);
/* printconf.c */
void print_config(struct uw_conf *);
/* parse.y */
struct uw_conf *parse_config(char *);
int cmdline_symset(char *);
RB_PROTOTYPE(force_tree, force_tree_entry, entry, force_tree_cmp);
| [
"[email protected]"
] | |
b20b8c33e6cd860b284d546c9551c3dd3cb75607 | 93866c0c5bcc3826e973cc0dcec5916e0f3f205b | /Pods/Target Support Files/Pods-Bending/Pods-Bending-environment.h | 6972004db193a92500cc0575792f0199be41e328 | [] | no_license | yishuiliunian/WanLeMa | 62691eec561e48af289ef5b55766dd726c655932 | f6e4cfd4beba77b501f97989ff51218356b2a4a9 | refs/heads/master | 2020-06-05T05:56:44.854420 | 2014-12-02T10:39:34 | 2014-12-02T10:39:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 1,495 | h |
// To check if a library is compiled with CocoaPods you
// can use the `COCOAPODS` macro definition which is
// defined in the xcconfigs so it is available in
// headers also when they are imported in the client
// project.
// DZCDNFiles
#define COCOAPODS_POD_AVAILABLE_DZCDNFiles
#define COCOAPODS_VERSION_MAJOR_DZCDNFiles 1
#define COCOAPODS_VERSION_MINOR_DZCDNFiles 0
#define COCOAPODS_VERSION_PATCH_DZCDNFiles 1
// DZCache
#define COCOAPODS_POD_AVAILABLE_DZCache
#define COCOAPODS_VERSION_MAJOR_DZCache 1
#define COCOAPODS_VERSION_MINOR_DZCache 0
#define COCOAPODS_VERSION_PATCH_DZCache 0
// DZGeometryTools
#define COCOAPODS_POD_AVAILABLE_DZGeometryTools
#define COCOAPODS_VERSION_MAJOR_DZGeometryTools 1
#define COCOAPODS_VERSION_MINOR_DZGeometryTools 0
#define COCOAPODS_VERSION_PATCH_DZGeometryTools 0
// DZProgrameDefines
#define COCOAPODS_POD_AVAILABLE_DZProgrameDefines
#define COCOAPODS_VERSION_MAJOR_DZProgrameDefines 1
#define COCOAPODS_VERSION_MINOR_DZProgrameDefines 0
#define COCOAPODS_VERSION_PATCH_DZProgrameDefines 0
// DZSinglonFactory
#define COCOAPODS_POD_AVAILABLE_DZSinglonFactory
#define COCOAPODS_VERSION_MAJOR_DZSinglonFactory 1
#define COCOAPODS_VERSION_MINOR_DZSinglonFactory 0
#define COCOAPODS_VERSION_PATCH_DZSinglonFactory 0
// UIColor-HexString
#define COCOAPODS_POD_AVAILABLE_UIColor_HexString
#define COCOAPODS_VERSION_MAJOR_UIColor_HexString 1
#define COCOAPODS_VERSION_MINOR_UIColor_HexString 1
#define COCOAPODS_VERSION_PATCH_UIColor_HexString 0
| [
"[email protected]"
] | |
41693f73e1618e7c973291db89e694aaac7bce66 | 532a671d5156365ca7aa8f74a0b736c3f290e380 | /Ch13/编程题/p14/14.c | 30b4e077f339d991bf7ad23d0a5fa0432b09ca92 | [] | no_license | zwzky/C-Primer-Plus | 1917f403ff63705e0fdfbc50d215c2959e9ebc6f | 56a8c77fbafff935e75ba05b000ac0336180847a | refs/heads/master | 2022-12-28T22:34:01.364878 | 2020-09-29T16:51:34 | 2020-09-29T16:51:34 | 291,493,961 | 1 | 0 | null | null | null | null | UTF-8 | C | false | false | 3,574 | c | /* 数字图像,尤其是从宇宙飞船发回的数字图像,可能会包含一些失真。
* 为编程练习12添加消除失真的函数。该函数把每个值与它上下左右相
* 邻的值作比较,如果该值与其周围相邻的值的差大于1,则用所有相邻
* 值的平均值(四舍五入为整数)代替该值。注意,与边界上的店相邻的
* 点少于4个,所以做特殊处理。
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define SIZE 40
#define ROWS 20
#define COLS 30
int main(void)
{
FILE * fp;
char name[SIZE];
int arr[ROWS][COLS];
int i, j;
puts("Plese input the filename.");
scanf("%s", name);
if((fp = fopen(name, "r")) == NULL)
{
printf("Can't open file %s.\n", name);
exit(EXIT_FAILURE);
}
for(i = 0; i < ROWS; i++)
for(j = 0; j < COLS; j++)
fscanf(fp, "%d", &arr[i][j]);
for(i = 0; i < ROWS; i++)
{
for(j = 0; j < COLS; j++)
{
if(i == 0 && j == 0 && abs(arr[i][j]- arr[i+1][j]) > 1 && abs(arr[i][j] - arr[i][j+1]) > 1)
arr[i][j] = (int)((arr[i+1][j] + arr[i][j+1]) / 2.0 + 0.5);
else if(i == 0 && j == COLS - 1 && abs(arr[i][j] - arr[i][j-1]) > 1 && abs(arr[i][j] - arr[i+1][j]) > 1)
arr[i][j] = (int)((arr[i][j-1] + arr[i+1][j]) / 2.0 + 0.5);
else if(i == ROWS - 1 && j == 0 && abs(arr[i][j] - arr[i-1][j]) > 1 && abs(arr[i][j] - arr[i][j+1]) > 1)
arr[i][j] = (int)((arr[i-1][j] + arr[i][j+1]) / 2.0 + 0.5);
else if(i == ROWS - 1 && j ==COLS - 1 && abs(arr[i][j] - arr[i-1][j]) > 1 && abs(arr[i][j] - arr[i][j-1]) > 1)
arr[i][j] = (int)((arr[i-1][j] + arr[i][j-1]) / 2.0 + 0.5);
else if(i == 0 && abs(arr[i][j] - arr[i][j-1]) > 1 && abs(arr[i][j] - arr[i][j+1]) > 1 && abs(arr[i][j] - arr[i+1][j]) > 1)
arr[i][j] = (int)((arr[i][j-1] + arr[i][j+1] + arr[i+1][j])/ 3.0 + 0.5);
else if(i == ROWS && abs(arr[i][j] - arr[i][j-1]) > 1 && abs(arr[i][j] - arr[i][j+1]) > 1 && abs(arr[i][j] - arr[i-1][j]) > 1)
arr[i][j] = (int)((arr[i][j-1] + arr[i][j+1] + arr[i-1][j])/ 3.0 + 0.5);
else if(j == 0 && abs(arr[i][j] - arr[i-1][j]) > 1 && abs(arr[i][j] - arr[i+1][j]) > 1 && abs(arr[i][j] - arr[i][j+1]) > 1)
arr[i][j] = (int)((arr[i-1][j] + arr[i+1][j] + arr[i][j+1])/ 3.0 + 0.5);
else if(j == COLS && abs(arr[i][j] - arr[i-1][j]) > 1 && abs(arr[i][j] - arr[i+1][j]) > 1 && abs(arr[i][j] - arr[i][j-1]) > 1)
arr[i][j] = (int)((arr[i-1][j] + arr[i+1][j] + arr[i][j-1])/ 3.0 + 0.5);
else if(abs(arr[i][j] - arr[i-1][j]) > 1 && abs(arr[i][j] - arr[i+1][j]) > 1 && abs(arr[i][j] - arr[i][j-1]) > 1 && abs(arr[i][j] - arr[i][j+1]) > 1)
arr[i][j] = (int)((arr[i-1][j] +arr[i+1][j] + arr[i][j-1] + arr[i][j+1]) / 4.0 + 0/5);
switch(arr[i][j])
{
case 0: putchar(' '); break;
case 1: putchar('.'); break;
case 2: putchar('\''); break;
case 3: putchar(':'); break;
case 4: putchar('~'); break;
case 5: putchar('*'); break;
case 6: putchar('='); break;
case 7: putchar('+'); break;
case 8: putchar('%'); break;
case 9: putchar('#'); break;
default: printf("Error!");
}
}
putchar('\n');
}
return 0;
}
| [
"[email protected]"
] | |
6420d69d1e217be1ec0bfec6f3ea2063391e68b5 | 38de22af849b46bb3be42cbe6a371c0d7cdc1e92 | /ft2demos/graph/grobjs.h | 4deb456aba7bae4a5408283d95e0b5fda47e544f | [] | no_license | genesi/freetype | f074f62ed9cf71e168c7fc4d55b92593712f3291 | 5f4f3071f50690a33e034f4756351f7e340a3a9a | refs/heads/master | 2021-01-02T09:27:06.859111 | 2013-03-16T20:43:44 | 2013-03-16T20:43:44 | 8,639,299 | 1 | 1 | null | null | null | null | UTF-8 | C | false | false | 5,036 | h | /***************************************************************************
*
* grobjs.h
*
* basic object classes definitions
*
* Copyright 1999 - The FreeType Development Team - www.freetype.org
*
*
*
*
***************************************************************************/
#ifndef GROBJS_H
#define GROBJS_H
#include "graph.h"
#include "grconfig.h"
#include "grtypes.h"
typedef struct grBiColor_
{
grColor foreground;
grColor background;
int num_levels;
int max_levels;
grColor* levels;
} grBiColor;
/**********************************************************************
*
* Technical note : explaining how the blitter works.
*
* The blitter is used to "draw" a given source bitmap into
* a given target bitmap.
*
* The function called 'compute_clips' is used to compute clipping
* constraints. These lead us to compute two areas :
*
* - the read area : is the rectangle, within the source bitmap,
* which will be effectively "drawn" in the
* target bitmap.
*
* - the write area : is the rectangle, within the target bitmap,
* which will effectively "receive" the pixels
* from the read area
*
* Note that both areas have the same dimensions, but are
* located in distinct surfaces.
*
* These areas are computed by 'compute_clips' which is called
* by each blitting function.
*
* Note that we use the Y-downwards convention within the blitter
*
**********************************************************************/
typedef struct grBlitter_
{
int width; /* width in pixels of the areas */
int height; /* height in pixels of the areas */
int xread; /* x position of start point in read area */
int yread; /* y position of start point in read area */
int xwrite; /* x position of start point in write area */
int ywrite; /* y position of start point in write area */
int right_clip; /* amount of right clip */
unsigned char* read; /* top left corner of read area in source map */
unsigned char* write; /* top left corner of write area in target map */
int read_line; /* byte increment to go down one row in read area */
int write_line; /* byte increment to go down one row in write area */
grBitmap source; /* source bitmap descriptor */
grBitmap target; /* target bitmap descriptor */
} grBlitter;
typedef void (*grBlitterFunc)( grBlitter* blitter,
grColor color );
typedef void (*grSetTitleFunc)( grSurface* surface,
const char* title_string );
typedef void (*grRefreshRectFunc)( grSurface* surface,
int x,
int y,
int width,
int height );
typedef void (*grDoneSurfaceFunc)( grSurface* surface );
typedef int (*grListenEventFunc)( grSurface* surface,
int event_mode,
grEvent *event );
struct grSurface_
{
grDevice* device;
grBitmap bitmap;
grBool refresh;
grBool owner;
const byte* saturation; /* used for gray surfaces only */
grBlitterFunc blit_mono; /* 0 by default, set by grBlit.. */
grRefreshRectFunc refresh_rect;
grSetTitleFunc set_title;
grListenEventFunc listen_event;
grDoneSurfaceFunc done;
};
/********************************************************************
*
* <Function>
* grAlloc
*
* <Description>
* Simple memory allocation. The returned block is always zero-ed
*
* <Input>
* size :: size in bytes of the requested block
*
* <Return>
* the memory block address. 0 in case of error
*
********************************************************************/
extern unsigned char* grAlloc( long size );
/********************************************************************
*
* <Function>
* grRealloc
*
* <Description>
* Simple memory re-allocation.
*
* <Input>
* block :: original memory block address
* size :: new requested block size in bytes
*
* <Return>
* the memory block address. 0 in case of error
*
********************************************************************/
extern unsigned char* grRealloc( const unsigned char* block, long size );
/********************************************************************
*
* <Function>
* grFree
*
* <Description>
* Simple memory release
*
* <Input>
* block :: target block
*
********************************************************************/
extern void grFree( const void* block );
#endif /* GROBJS_H */
| [
"[email protected]"
] | |
f4b10dc640d6aa1aaee4d232a3d405693b6134a6 | 6580c296be797a5ac8d5fb655ebb2e7b23b75254 | /corelib/Oes_resources_en_US.h | 285ff3560e2ec442d053d0740074324e1df87d02 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | navicore/oescript_c | 2add949951c2fa94cd62fdf7f3073ca8f2dc411a | f0bf8460dfb98bbc45070565934f753ef026b1dc | refs/heads/master | 2022-12-22T04:06:39.024882 | 2014-08-19T14:59:10 | 2014-08-19T14:59:10 | 14,442,589 | 0 | 0 | Apache-2.0 | 2022-11-25T21:16:50 | 2013-11-16T05:59:50 | C | UTF-8 | C | false | false | 224 | h | /*
* OeScript http://www.oescript.net
* Copyright 2012 Ed Sweeney, all rights reserved.
*/
#ifdef __cplusplus
extern "C" {
#endif
#ifndef OES_RES_EN_US_H
#define OES_RES_EN_US_H
#endif
#ifdef __cplusplus
}
#endif
| [
"[email protected]"
] | |
1f6b87833241f8dc601b7c9054678bdff4cb1a48 | 389b665b1483eebd8248a1ca8099794c310e1800 | /Day06/Day06_06.c | 376b27dbe80ea5b73f05b033e4d334c6703578aa | [] | no_license | Sharadchandra-Patil/C-Programming | c52113f3feba1f0f224f240654b99d0e217ff311 | da2756926e95d9acff1971331f1496045c014f40 | refs/heads/master | 2023-07-31T17:16:45.986519 | 2021-09-20T15:55:43 | 2021-09-20T15:55:43 | 363,111,846 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 737 | c | #include<stdio.h>
int main()
{
/*
int num=100;
double d1=12.33;
char ch='A';
printf("%d\n",sizeof(num+d1+ch));
// int + double + char
// double
printf("%d",sizeof(100+12.33+'A'));
// int + double + char
// double
*/
/*
char ch ='A';
short int num = 100;
printf("\n %u",sizeof(ch + num));
// char + short
// int + short
// int
sizeof is evaluated at compile time
*/
//Char types are treated as integers (ASCII values) for calculation
printf("%d",65 + 'A');
// int + 'A'
// int + 65
// 65 + 65
// 130
} | [
"[email protected]"
] | |
56d851e66ab86a47ef75eec46d9aebe2d2939023 | f7027bc8f8472d76be6caca1b7116141a437ac7c | /uCos-II/uCOS-II在C51下的一个完整的LCD项目源码/hhh16.h | 6352e99747c3bfa341b58cb2f1d97c25f0a48666 | [] | no_license | zstang/BookX | c1eb779dff3d2f069dcd04298949df9c99c7ff16 | 858497c0eea57e0073081897b06532ae30e64be5 | refs/heads/master | 2020-12-02T11:22:35.558418 | 2017-07-08T17:06:31 | 2017-07-08T17:06:31 | 96,609,079 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 133 | h | typedef struct typFNT_GB16
{
unsigned char Index[2];
unsigned char Msk[32];
};
code struct typFNT_GB16 GB_16[] = {
};
| [
"[email protected]"
] | |
7c6f1b215eda08999e9a7975658e4e1f38478bcc | d2fb019e63eb66f9ddcbdf39d07f7670f8cf79de | /groups/bsl/bsl+bslhdrs/bsl_c_ctype.h | 777429106475a513f4d42dfe04631dd524792cee | [
"MIT"
] | permissive | gosuwachu/bsl | 4fa8163a7e4b39e4253ad285b97f8a4d58020494 | 88cc2b2c480bcfca19e0f72753b4ec0359aba718 | refs/heads/master | 2021-01-17T05:36:55.605787 | 2013-01-15T19:48:00 | 2013-01-15T19:48:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 2,027 | h | /* bsl_c_ctype.h -*-C-*- */
#ifndef INCLUDED_BSL_C_CTYPE
#define INCLUDED_BSL_C_CTYPE
#ifndef INCLUDED_BSLS_IDENT
#include <bsls_ident.h>
#endif
BSLS_IDENT("$Id: $")
/*
//@PURPOSE: Provide functionality of the corresponding C Standard header.
//
//@SEE_ALSO: package bsl+stdhdrs
//
//@DESCRIPTION: Provide types, in the 'bsl' namespace, equivalent to those
// defined in the corresponding C standard header. Include the native
// compiler-provided standard header, and also directly include Bloomberg's
// implementation of the C standard type (if one exists). Finally, place the
// included symbols from the 'std' namespace (if any) into the 'bsl' namespace.
*/
#include <ctype.h>
#endif
/*
// ----------------------------------------------------------------------------
// Copyright (C) 2012 Bloomberg L.P.
//
// 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.
// ----------------------------- END-OF-FILE ----------------------------------
*/
| [
"[email protected]"
] | |
0894f9394ee468e80042fc92dcb13ea3bd606153 | 28efd40605a20cea317055bd3a3d11006e8c2451 | /positive or negative.c | 9212d8b5829dba962c40fd47606b0ef2c2f09a34 | [] | no_license | BolliAkshitha/-pps-programs | 2c1379cbdd583b66dd679aba4bd4e8080d18338b | a5e53b6d9b2eb50870c5c658881e2b321fabb306 | refs/heads/main | 2023-06-20T15:53:55.674140 | 2021-07-21T07:00:02 | 2021-07-21T07:00:02 | 387,741,243 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 190 | c | #include<stdio.h>
int main()
{
int(num);
printf("enter number");
scanf("%d",&num);
if(num>0)
printf("number is positive");
else
printf("number is negative");
return 1;
}
| [
"[email protected]"
] | |
2dcc4843c86c3f5b1868fa8079651ad8dea0fb27 | e56a958bfb1e857fdafc705520303b65bdce4daa | /Sources/check_local_path.c | c04f9d46d4c7e60a47141982f0c83d345819a177 | [] | no_license | proso42/Mini_shell | c8867671f8351c5311e53c77f3b5138851fdfe66 | 31ae3bead73adebfbbcc1f699f0a0fa77abc78bc | refs/heads/master | 2021-01-19T11:22:55.319140 | 2017-04-30T20:10:42 | 2017-04-30T20:10:42 | 87,961,671 | 1 | 0 | null | null | null | null | UTF-8 | C | false | false | 1,163 | c | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* check_local_path.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: proso <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/04/30 02:52:18 by proso #+# #+# */
/* Updated: 2017/04/30 02:52:20 by proso ### ########.fr */
/* */
/* ************************************************************************** */
#include "../Includes/mini_shell.h"
int check_local_path(char *path)
{
int i;
int ok;
i = (path[1] == '/') ? 2 : 1;
ok = 0;
if (path[i] == '/')
{
path[i] = '\0';
ok = 1;
}
if ((access(path, F_OK)))
return (-1);
if (ok)
path[i] = '/';
return (0);
}
| [
"[email protected]"
] | |
614b74fd895ef97b0550b54ec481493f61b8d43d | 9ebbb85c8ef263bb117b4a9f89823a4f867427d4 | /Upnp/Device/Services/C/DvOpenhomeOrgTestBasic1.h | b3b3f66442310e2cac56f63635d845ee8df7ecba | [] | no_license | wifigeek/ohNet | 792f2eb8664bfbe1f1afa8ddddb01db03cf0a2a3 | 1076d5fbecb2226d52da082471ffa199009bae9f | refs/heads/master | 2021-01-20T22:34:53.010110 | 2011-06-07T11:09:40 | 2011-06-07T11:09:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 26,966 | h | /**
* Provider for the openhome.org:TestBasic:1 UPnP service
*/
#ifndef HEADER_DVOPENHOMEORGTESTBASIC1_C
#define HEADER_DVOPENHOMEORGTESTBASIC1_C
#include <OsTypes.h>
#include <C/DvDevice.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* @addtogroup DvProviderOpenhomeOrgTestBasic1
* @ingroup Providers
* @{
*/
/**
* Callback which runs when the Increment action is invoked
*
* @param[in] aPtr Opaque data passed to DvProviderOpenhomeOrgTestBasic1EnableActionIncrement
* @param[in] aVersion Version of the service being used. Will be <= the version advertised by the provider
* @param[in] aValue
* @param[out] aResult
*
* @return 0 if the action succeeded; non-zero if the action failed
*/
typedef int32_t (*CallbackTestBasic1Increment)(void* aPtr, uint32_t aVersion, uint32_t aValue, uint32_t* aResult);
/**
* Callback which runs when the Decrement action is invoked
*
* @param[in] aPtr Opaque data passed to DvProviderOpenhomeOrgTestBasic1EnableActionDecrement
* @param[in] aVersion Version of the service being used. Will be <= the version advertised by the provider
* @param[in] aValue
* @param[out] aResult
*
* @return 0 if the action succeeded; non-zero if the action failed
*/
typedef int32_t (*CallbackTestBasic1Decrement)(void* aPtr, uint32_t aVersion, int32_t aValue, int32_t* aResult);
/**
* Callback which runs when the Toggle action is invoked
*
* @param[in] aPtr Opaque data passed to DvProviderOpenhomeOrgTestBasic1EnableActionToggle
* @param[in] aVersion Version of the service being used. Will be <= the version advertised by the provider
* @param[in] aValue
* @param[out] aResult
*
* @return 0 if the action succeeded; non-zero if the action failed
*/
typedef int32_t (*CallbackTestBasic1Toggle)(void* aPtr, uint32_t aVersion, uint32_t aValue, uint32_t* aResult);
/**
* Callback which runs when the EchoString action is invoked
*
* @param[in] aPtr Opaque data passed to DvProviderOpenhomeOrgTestBasic1EnableActionEchoString
* @param[in] aVersion Version of the service being used. Will be <= the version advertised by the provider
* @param[in] aValue
* @param[out] aResult
*
* @return 0 if the action succeeded; non-zero if the action failed
*/
typedef int32_t (*CallbackTestBasic1EchoString)(void* aPtr, uint32_t aVersion, const char* aValue, char** aResult);
/**
* Callback which runs when the EchoBinary action is invoked
*
* @param[in] aPtr Opaque data passed to DvProviderOpenhomeOrgTestBasic1EnableActionEchoBinary
* @param[in] aVersion Version of the service being used. Will be <= the version advertised by the provider
* @param[in] aValue
* @param[in] aValueLen
* @param[out] aResult
* @param[out] aResultLen
*
* @return 0 if the action succeeded; non-zero if the action failed
*/
typedef int32_t (*CallbackTestBasic1EchoBinary)(void* aPtr, uint32_t aVersion, const char* aValue, uint32_t aValueLen, char** aResult, uint32_t* aResultLen);
/**
* Callback which runs when the SetUint action is invoked
*
* @param[in] aPtr Opaque data passed to DvProviderOpenhomeOrgTestBasic1EnableActionSetUint
* @param[in] aVersion Version of the service being used. Will be <= the version advertised by the provider
* @param[in] aValueUint
*
* @return 0 if the action succeeded; non-zero if the action failed
*/
typedef int32_t (*CallbackTestBasic1SetUint)(void* aPtr, uint32_t aVersion, uint32_t aValueUint);
/**
* Callback which runs when the GetUint action is invoked
*
* @param[in] aPtr Opaque data passed to DvProviderOpenhomeOrgTestBasic1EnableActionGetUint
* @param[in] aVersion Version of the service being used. Will be <= the version advertised by the provider
* @param[out] aValueUint
*
* @return 0 if the action succeeded; non-zero if the action failed
*/
typedef int32_t (*CallbackTestBasic1GetUint)(void* aPtr, uint32_t aVersion, uint32_t* aValueUint);
/**
* Callback which runs when the SetInt action is invoked
*
* @param[in] aPtr Opaque data passed to DvProviderOpenhomeOrgTestBasic1EnableActionSetInt
* @param[in] aVersion Version of the service being used. Will be <= the version advertised by the provider
* @param[in] aValueInt
*
* @return 0 if the action succeeded; non-zero if the action failed
*/
typedef int32_t (*CallbackTestBasic1SetInt)(void* aPtr, uint32_t aVersion, int32_t aValueInt);
/**
* Callback which runs when the GetInt action is invoked
*
* @param[in] aPtr Opaque data passed to DvProviderOpenhomeOrgTestBasic1EnableActionGetInt
* @param[in] aVersion Version of the service being used. Will be <= the version advertised by the provider
* @param[out] aValueInt
*
* @return 0 if the action succeeded; non-zero if the action failed
*/
typedef int32_t (*CallbackTestBasic1GetInt)(void* aPtr, uint32_t aVersion, int32_t* aValueInt);
/**
* Callback which runs when the SetBool action is invoked
*
* @param[in] aPtr Opaque data passed to DvProviderOpenhomeOrgTestBasic1EnableActionSetBool
* @param[in] aVersion Version of the service being used. Will be <= the version advertised by the provider
* @param[in] aValueBool
*
* @return 0 if the action succeeded; non-zero if the action failed
*/
typedef int32_t (*CallbackTestBasic1SetBool)(void* aPtr, uint32_t aVersion, uint32_t aValueBool);
/**
* Callback which runs when the GetBool action is invoked
*
* @param[in] aPtr Opaque data passed to DvProviderOpenhomeOrgTestBasic1EnableActionGetBool
* @param[in] aVersion Version of the service being used. Will be <= the version advertised by the provider
* @param[out] aValueBool
*
* @return 0 if the action succeeded; non-zero if the action failed
*/
typedef int32_t (*CallbackTestBasic1GetBool)(void* aPtr, uint32_t aVersion, uint32_t* aValueBool);
/**
* Callback which runs when the SetMultiple action is invoked
*
* @param[in] aPtr Opaque data passed to DvProviderOpenhomeOrgTestBasic1EnableActionSetMultiple
* @param[in] aVersion Version of the service being used. Will be <= the version advertised by the provider
* @param[in] aValueUint
* @param[in] aValueInt
* @param[in] aValueBool
*
* @return 0 if the action succeeded; non-zero if the action failed
*/
typedef int32_t (*CallbackTestBasic1SetMultiple)(void* aPtr, uint32_t aVersion, uint32_t aValueUint, int32_t aValueInt, uint32_t aValueBool);
/**
* Callback which runs when the SetString action is invoked
*
* @param[in] aPtr Opaque data passed to DvProviderOpenhomeOrgTestBasic1EnableActionSetString
* @param[in] aVersion Version of the service being used. Will be <= the version advertised by the provider
* @param[in] aValueStr
*
* @return 0 if the action succeeded; non-zero if the action failed
*/
typedef int32_t (*CallbackTestBasic1SetString)(void* aPtr, uint32_t aVersion, const char* aValueStr);
/**
* Callback which runs when the GetString action is invoked
*
* @param[in] aPtr Opaque data passed to DvProviderOpenhomeOrgTestBasic1EnableActionGetString
* @param[in] aVersion Version of the service being used. Will be <= the version advertised by the provider
* @param[out] aValueStr
*
* @return 0 if the action succeeded; non-zero if the action failed
*/
typedef int32_t (*CallbackTestBasic1GetString)(void* aPtr, uint32_t aVersion, char** aValueStr);
/**
* Callback which runs when the SetBinary action is invoked
*
* @param[in] aPtr Opaque data passed to DvProviderOpenhomeOrgTestBasic1EnableActionSetBinary
* @param[in] aVersion Version of the service being used. Will be <= the version advertised by the provider
* @param[in] aValueBin
* @param[in] aValueBinLen
*
* @return 0 if the action succeeded; non-zero if the action failed
*/
typedef int32_t (*CallbackTestBasic1SetBinary)(void* aPtr, uint32_t aVersion, const char* aValueBin, uint32_t aValueBinLen);
/**
* Callback which runs when the GetBinary action is invoked
*
* @param[in] aPtr Opaque data passed to DvProviderOpenhomeOrgTestBasic1EnableActionGetBinary
* @param[in] aVersion Version of the service being used. Will be <= the version advertised by the provider
* @param[out] aValueBin
* @param[out] aValueBinLen
*
* @return 0 if the action succeeded; non-zero if the action failed
*/
typedef int32_t (*CallbackTestBasic1GetBinary)(void* aPtr, uint32_t aVersion, char** aValueBin, uint32_t* aValueBinLen);
/**
* Callback which runs when the ToggleBool action is invoked
*
* @param[in] aPtr Opaque data passed to DvProviderOpenhomeOrgTestBasic1EnableActionToggleBool
* @param[in] aVersion Version of the service being used. Will be <= the version advertised by the provider
*
* @return 0 if the action succeeded; non-zero if the action failed
*/
typedef int32_t (*CallbackTestBasic1ToggleBool)(void* aPtr, uint32_t aVersion);
/**
* Callback which runs when the WriteFile action is invoked
*
* @param[in] aPtr Opaque data passed to DvProviderOpenhomeOrgTestBasic1EnableActionWriteFile
* @param[in] aVersion Version of the service being used. Will be <= the version advertised by the provider
* @param[in] aData
* @param[in] aFileFullName
*
* @return 0 if the action succeeded; non-zero if the action failed
*/
typedef int32_t (*CallbackTestBasic1WriteFile)(void* aPtr, uint32_t aVersion, const char* aData, const char* aFileFullName);
/**
* Callback which runs when the Shutdown action is invoked
*
* @param[in] aPtr Opaque data passed to DvProviderOpenhomeOrgTestBasic1EnableActionShutdown
* @param[in] aVersion Version of the service being used. Will be <= the version advertised by the provider
*
* @return 0 if the action succeeded; non-zero if the action failed
*/
typedef int32_t (*CallbackTestBasic1Shutdown)(void* aPtr, uint32_t aVersion);
/**
* Provider constructor
*
* @param[in] aDevice Handle returned by DvDeviceCreate[NoResources]
*
* @return Handle to this provider
*/
DllExport THandle DvProviderOpenhomeOrgTestBasic1Create(DvDeviceC aDevice);
/**
* Provider destructor
*
* @param[in] aProvider Handle returned by DvProviderOpenhomeOrgTestBasic1Create
*/
DllExport void DvProviderOpenhomeOrgTestBasic1Destroy(THandle aProvider);
/**
* Register a callback for the action Increment
*
* If this is called, the action's availability will be published in the device's service.xml.
* If this is not called, any attempt to invoke the action on a control point will fail.
*
* @param[in] aProvider Handle returned by DvProviderOpenhomeOrgTestBasic1Create
* @param[in] aCallback Callback which will be run when the action is invoked
* @param[in] aPtr Client-specified data which will be passed to the callback
*/
DllExport void DvProviderOpenhomeOrgTestBasic1EnableActionIncrement(THandle aProvider, CallbackTestBasic1Increment aCallback, void* aPtr);
/**
* Register a callback for the action Decrement
*
* If this is called, the action's availability will be published in the device's service.xml.
* If this is not called, any attempt to invoke the action on a control point will fail.
*
* @param[in] aProvider Handle returned by DvProviderOpenhomeOrgTestBasic1Create
* @param[in] aCallback Callback which will be run when the action is invoked
* @param[in] aPtr Client-specified data which will be passed to the callback
*/
DllExport void DvProviderOpenhomeOrgTestBasic1EnableActionDecrement(THandle aProvider, CallbackTestBasic1Decrement aCallback, void* aPtr);
/**
* Register a callback for the action Toggle
*
* If this is called, the action's availability will be published in the device's service.xml.
* If this is not called, any attempt to invoke the action on a control point will fail.
*
* @param[in] aProvider Handle returned by DvProviderOpenhomeOrgTestBasic1Create
* @param[in] aCallback Callback which will be run when the action is invoked
* @param[in] aPtr Client-specified data which will be passed to the callback
*/
DllExport void DvProviderOpenhomeOrgTestBasic1EnableActionToggle(THandle aProvider, CallbackTestBasic1Toggle aCallback, void* aPtr);
/**
* Register a callback for the action EchoString
*
* If this is called, the action's availability will be published in the device's service.xml.
* If this is not called, any attempt to invoke the action on a control point will fail.
*
* @param[in] aProvider Handle returned by DvProviderOpenhomeOrgTestBasic1Create
* @param[in] aCallback Callback which will be run when the action is invoked
* @param[in] aPtr Client-specified data which will be passed to the callback
*/
DllExport void DvProviderOpenhomeOrgTestBasic1EnableActionEchoString(THandle aProvider, CallbackTestBasic1EchoString aCallback, void* aPtr);
/**
* Register a callback for the action EchoBinary
*
* If this is called, the action's availability will be published in the device's service.xml.
* If this is not called, any attempt to invoke the action on a control point will fail.
*
* @param[in] aProvider Handle returned by DvProviderOpenhomeOrgTestBasic1Create
* @param[in] aCallback Callback which will be run when the action is invoked
* @param[in] aPtr Client-specified data which will be passed to the callback
*/
DllExport void DvProviderOpenhomeOrgTestBasic1EnableActionEchoBinary(THandle aProvider, CallbackTestBasic1EchoBinary aCallback, void* aPtr);
/**
* Register a callback for the action SetUint
*
* If this is called, the action's availability will be published in the device's service.xml.
* If this is not called, any attempt to invoke the action on a control point will fail.
*
* @param[in] aProvider Handle returned by DvProviderOpenhomeOrgTestBasic1Create
* @param[in] aCallback Callback which will be run when the action is invoked
* @param[in] aPtr Client-specified data which will be passed to the callback
*/
DllExport void DvProviderOpenhomeOrgTestBasic1EnableActionSetUint(THandle aProvider, CallbackTestBasic1SetUint aCallback, void* aPtr);
/**
* Register a callback for the action GetUint
*
* If this is called, the action's availability will be published in the device's service.xml.
* If this is not called, any attempt to invoke the action on a control point will fail.
*
* @param[in] aProvider Handle returned by DvProviderOpenhomeOrgTestBasic1Create
* @param[in] aCallback Callback which will be run when the action is invoked
* @param[in] aPtr Client-specified data which will be passed to the callback
*/
DllExport void DvProviderOpenhomeOrgTestBasic1EnableActionGetUint(THandle aProvider, CallbackTestBasic1GetUint aCallback, void* aPtr);
/**
* Register a callback for the action SetInt
*
* If this is called, the action's availability will be published in the device's service.xml.
* If this is not called, any attempt to invoke the action on a control point will fail.
*
* @param[in] aProvider Handle returned by DvProviderOpenhomeOrgTestBasic1Create
* @param[in] aCallback Callback which will be run when the action is invoked
* @param[in] aPtr Client-specified data which will be passed to the callback
*/
DllExport void DvProviderOpenhomeOrgTestBasic1EnableActionSetInt(THandle aProvider, CallbackTestBasic1SetInt aCallback, void* aPtr);
/**
* Register a callback for the action GetInt
*
* If this is called, the action's availability will be published in the device's service.xml.
* If this is not called, any attempt to invoke the action on a control point will fail.
*
* @param[in] aProvider Handle returned by DvProviderOpenhomeOrgTestBasic1Create
* @param[in] aCallback Callback which will be run when the action is invoked
* @param[in] aPtr Client-specified data which will be passed to the callback
*/
DllExport void DvProviderOpenhomeOrgTestBasic1EnableActionGetInt(THandle aProvider, CallbackTestBasic1GetInt aCallback, void* aPtr);
/**
* Register a callback for the action SetBool
*
* If this is called, the action's availability will be published in the device's service.xml.
* If this is not called, any attempt to invoke the action on a control point will fail.
*
* @param[in] aProvider Handle returned by DvProviderOpenhomeOrgTestBasic1Create
* @param[in] aCallback Callback which will be run when the action is invoked
* @param[in] aPtr Client-specified data which will be passed to the callback
*/
DllExport void DvProviderOpenhomeOrgTestBasic1EnableActionSetBool(THandle aProvider, CallbackTestBasic1SetBool aCallback, void* aPtr);
/**
* Register a callback for the action GetBool
*
* If this is called, the action's availability will be published in the device's service.xml.
* If this is not called, any attempt to invoke the action on a control point will fail.
*
* @param[in] aProvider Handle returned by DvProviderOpenhomeOrgTestBasic1Create
* @param[in] aCallback Callback which will be run when the action is invoked
* @param[in] aPtr Client-specified data which will be passed to the callback
*/
DllExport void DvProviderOpenhomeOrgTestBasic1EnableActionGetBool(THandle aProvider, CallbackTestBasic1GetBool aCallback, void* aPtr);
/**
* Register a callback for the action SetMultiple
*
* If this is called, the action's availability will be published in the device's service.xml.
* If this is not called, any attempt to invoke the action on a control point will fail.
*
* @param[in] aProvider Handle returned by DvProviderOpenhomeOrgTestBasic1Create
* @param[in] aCallback Callback which will be run when the action is invoked
* @param[in] aPtr Client-specified data which will be passed to the callback
*/
DllExport void DvProviderOpenhomeOrgTestBasic1EnableActionSetMultiple(THandle aProvider, CallbackTestBasic1SetMultiple aCallback, void* aPtr);
/**
* Register a callback for the action SetString
*
* If this is called, the action's availability will be published in the device's service.xml.
* If this is not called, any attempt to invoke the action on a control point will fail.
*
* @param[in] aProvider Handle returned by DvProviderOpenhomeOrgTestBasic1Create
* @param[in] aCallback Callback which will be run when the action is invoked
* @param[in] aPtr Client-specified data which will be passed to the callback
*/
DllExport void DvProviderOpenhomeOrgTestBasic1EnableActionSetString(THandle aProvider, CallbackTestBasic1SetString aCallback, void* aPtr);
/**
* Register a callback for the action GetString
*
* If this is called, the action's availability will be published in the device's service.xml.
* If this is not called, any attempt to invoke the action on a control point will fail.
*
* @param[in] aProvider Handle returned by DvProviderOpenhomeOrgTestBasic1Create
* @param[in] aCallback Callback which will be run when the action is invoked
* @param[in] aPtr Client-specified data which will be passed to the callback
*/
DllExport void DvProviderOpenhomeOrgTestBasic1EnableActionGetString(THandle aProvider, CallbackTestBasic1GetString aCallback, void* aPtr);
/**
* Register a callback for the action SetBinary
*
* If this is called, the action's availability will be published in the device's service.xml.
* If this is not called, any attempt to invoke the action on a control point will fail.
*
* @param[in] aProvider Handle returned by DvProviderOpenhomeOrgTestBasic1Create
* @param[in] aCallback Callback which will be run when the action is invoked
* @param[in] aPtr Client-specified data which will be passed to the callback
*/
DllExport void DvProviderOpenhomeOrgTestBasic1EnableActionSetBinary(THandle aProvider, CallbackTestBasic1SetBinary aCallback, void* aPtr);
/**
* Register a callback for the action GetBinary
*
* If this is called, the action's availability will be published in the device's service.xml.
* If this is not called, any attempt to invoke the action on a control point will fail.
*
* @param[in] aProvider Handle returned by DvProviderOpenhomeOrgTestBasic1Create
* @param[in] aCallback Callback which will be run when the action is invoked
* @param[in] aPtr Client-specified data which will be passed to the callback
*/
DllExport void DvProviderOpenhomeOrgTestBasic1EnableActionGetBinary(THandle aProvider, CallbackTestBasic1GetBinary aCallback, void* aPtr);
/**
* Register a callback for the action ToggleBool
*
* If this is called, the action's availability will be published in the device's service.xml.
* If this is not called, any attempt to invoke the action on a control point will fail.
*
* @param[in] aProvider Handle returned by DvProviderOpenhomeOrgTestBasic1Create
* @param[in] aCallback Callback which will be run when the action is invoked
* @param[in] aPtr Client-specified data which will be passed to the callback
*/
DllExport void DvProviderOpenhomeOrgTestBasic1EnableActionToggleBool(THandle aProvider, CallbackTestBasic1ToggleBool aCallback, void* aPtr);
/**
* Register a callback for the action WriteFile
*
* If this is called, the action's availability will be published in the device's service.xml.
* If this is not called, any attempt to invoke the action on a control point will fail.
*
* @param[in] aProvider Handle returned by DvProviderOpenhomeOrgTestBasic1Create
* @param[in] aCallback Callback which will be run when the action is invoked
* @param[in] aPtr Client-specified data which will be passed to the callback
*/
DllExport void DvProviderOpenhomeOrgTestBasic1EnableActionWriteFile(THandle aProvider, CallbackTestBasic1WriteFile aCallback, void* aPtr);
/**
* Register a callback for the action Shutdown
*
* If this is called, the action's availability will be published in the device's service.xml.
* If this is not called, any attempt to invoke the action on a control point will fail.
*
* @param[in] aProvider Handle returned by DvProviderOpenhomeOrgTestBasic1Create
* @param[in] aCallback Callback which will be run when the action is invoked
* @param[in] aPtr Client-specified data which will be passed to the callback
*/
DllExport void DvProviderOpenhomeOrgTestBasic1EnableActionShutdown(THandle aProvider, CallbackTestBasic1Shutdown aCallback, void* aPtr);
/**
* Set the value of the VarUint property
*
* @param[in] aProvider Handle returned by DvProviderOpenhomeOrgTestBasic1Create
* @param[in] aValue New value for the property
* @param[out] aChanged 1 if the value has been updated; 0 if it was the same as the previous value
*
* @return 0 if the property was successfully set; non-zero if there was an error (including
* an attempt to set a property to a value not in its allowed range/set)
*/
DllExport int32_t DvProviderOpenhomeOrgTestBasic1SetPropertyVarUint(THandle aProvider, uint32_t aValue, uint32_t* aChanged);
/**
* Get a copy of the value of the VarUint property
*
* @param[in] aProvider Handle returned by DvProviderOpenhomeOrgTestBasic1Create
* @param[out] aValue Value for the property
*/
DllExport void DvProviderOpenhomeOrgTestBasic1GetPropertyVarUint(THandle aProvider, uint32_t* aValue);
/**
* Set the value of the VarInt property
*
* @param[in] aProvider Handle returned by DvProviderOpenhomeOrgTestBasic1Create
* @param[in] aValue New value for the property
* @param[out] aChanged 1 if the value has been updated; 0 if it was the same as the previous value
*
* @return 0 if the property was successfully set; non-zero if there was an error (including
* an attempt to set a property to a value not in its allowed range/set)
*/
DllExport int32_t DvProviderOpenhomeOrgTestBasic1SetPropertyVarInt(THandle aProvider, int32_t aValue, uint32_t* aChanged);
/**
* Get a copy of the value of the VarInt property
*
* @param[in] aProvider Handle returned by DvProviderOpenhomeOrgTestBasic1Create
* @param[out] aValue Value for the property
*/
DllExport void DvProviderOpenhomeOrgTestBasic1GetPropertyVarInt(THandle aProvider, int32_t* aValue);
/**
* Set the value of the VarBool property
*
* @param[in] aProvider Handle returned by DvProviderOpenhomeOrgTestBasic1Create
* @param[in] aValue New value for the property
* @param[out] aChanged 1 if the value has been updated; 0 if it was the same as the previous value
*
* @return 0 if the property was successfully set; non-zero if there was an error (including
* an attempt to set a property to a value not in its allowed range/set)
*/
DllExport int32_t DvProviderOpenhomeOrgTestBasic1SetPropertyVarBool(THandle aProvider, uint32_t aValue, uint32_t* aChanged);
/**
* Get a copy of the value of the VarBool property
*
* @param[in] aProvider Handle returned by DvProviderOpenhomeOrgTestBasic1Create
* @param[out] aValue Value for the property
*/
DllExport void DvProviderOpenhomeOrgTestBasic1GetPropertyVarBool(THandle aProvider, uint32_t* aValue);
/**
* Set the value of the VarStr property
*
* @param[in] aProvider Handle returned by DvProviderOpenhomeOrgTestBasic1Create
* @param[in] aValue New value for the property (will be copied)
* @param[out] aChanged 1 if the value has been updated; 0 if it was the same as the previous value
*
* @return 0 if the property was successfully set; non-zero if there was an error (including
* an attempt to set a property to a value not in its allowed range/set)
*/
DllExport int32_t DvProviderOpenhomeOrgTestBasic1SetPropertyVarStr(THandle aProvider, const char* aValue, uint32_t* aChanged);
/**
* Get a copy of the value of the VarStr property
*
* @param[in] aProvider Handle returned by DvProviderOpenhomeOrgTestBasic1Create
* @param[out] aValue Value for the property. Caller is responsible for freeing this.
*/
DllExport void DvProviderOpenhomeOrgTestBasic1GetPropertyVarStr(THandle aProvider, char** aValue);
/**
* Set the value of the VarBin property
*
* @param[in] aProvider Handle returned by DvProviderOpenhomeOrgTestBasic1Create
* @param[in] aValue New value for the property (will be copied)
* @param[in] aValueLen Size in bytes pointed to by aValue
* @param[out] aChanged 1 if the value has been updated; 0 if it was the same as the previous value
*
* @return 0 if the property was successfully set; non-zero if there was an error (including
* an attempt to set a property to a value not in its allowed range/set)
*/
DllExport int32_t DvProviderOpenhomeOrgTestBasic1SetPropertyVarBin(THandle aProvider, const char* aValue, uint32_t aValueLen, uint32_t* aChanged);
/**
* Get a copy of the value of the VarBin property
*
* @param[in] aProvider Handle returned by DvProviderOpenhomeOrgTestBasic1Create
* @param[out] aValue Value for the property. Caller is responsible for freeing this.
* @param[out] aValueLen Size in bytes pointed to by aValue
*/
DllExport void DvProviderOpenhomeOrgTestBasic1GetPropertyVarBin(THandle aProvider, char** aValue, uint32_t* aValueLen);
/* @} */
#ifdef __cplusplus
} // extern "C"
#endif
#endif // HEADER_DVOPENHOMEORGTESTBASIC1_C
| [
"[email protected]"
] | |
caf69e7b742be38ea787567709e26964d57fa8d2 | c71ab99a9aa7edacb1c0bfdfbd60956a83fa86e7 | /src/Writer.h | f2fbf9aa7c7975841d9be9e19ef6b78cc40d8293 | [] | no_license | aingerson/GSoC_2016_Compressor | 5db2567dd6483d465d1c6032cca3812f90d0ca55 | 02776a939ee730329cd3a724c615a69330c0340d | refs/heads/master | 2020-04-18T14:35:32.383817 | 2016-08-18T21:38:15 | 2016-08-18T21:38:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 198 | h | #ifndef WRITER_H_
#define WRITER_H_
#include "Control.h"
char *toUnstriped();
char *toStriped();
int readRow(FILE *,int *,int);
char *getFormattedExtension();
#endif /* WRITER_H_ */
| [
"[email protected]"
] | |
bf6df067cd96314456893e8d71ec25b00c9d2be5 | 04f0ef00af2b014bce6f6b38ad9ffe851f4a962c | /User/find_abi.c | 0647c78e36cebeec7bccaa2fd3e06b8d8732c79a | [] | no_license | nbd1597/ABI | c0c836a0c8052539da9e8e7ed3668ec6a3d878f9 | 7b54e8f757a6eff302d0338051427f469253ab84 | refs/heads/main | 2023-06-05T01:04:09.470256 | 2021-01-22T17:12:15 | 2021-01-22T17:12:15 | 332,012,940 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 249 | c | #include "find_abi.h"
float32_t get_ABI (float32_t Limp[])
{
uint16_t lower_BP, upper_BP;
float32_t ABI;
upper_BP = Limp[0];
if (Limp[1] > Limp[2])
{
lower_BP = Limp[1];
}
else lower_BP = Limp[2];
ABI = upper_BP/lower_BP;
return ABI;
}
| [
"[email protected]"
] | |
b01b361523996762132e956ce915cf1cb47aa936 | 11ab781b5362797229adb14fe92742b94e2f1036 | /iot_link/network/mqtt/paho_mqtt/paho/MQTTClient-C/src/MQTTClient.c | 06873350de1e32c015a1e02802454c68fa8d0057 | [
"BSD-3-Clause",
"EPL-1.0",
"CPL-1.0",
"LicenseRef-scancode-generic-export-compliance",
"MPL-1.1",
"Apache-1.1",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | BearPi/LiteOS_Lab | 171b82501bc1e09ce63aaeeb4640790fdf1d49bc | b1bc9cc8791b3f1cdff14cb0ea1e0aed7641e46b | refs/heads/iot_link | 2021-07-05T19:22:45.870924 | 2021-01-29T10:30:59 | 2021-01-29T10:30:59 | 333,319,969 | 0 | 0 | BSD-3-Clause | 2021-01-27T06:00:32 | 2021-01-27T06:00:31 | null | UTF-8 | C | false | false | 25,453 | c | /*******************************************************************************
* Copyright (c) 2014, 2017 IBM Corp.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accompany this distribution.
*
* The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html
* and the Eclipse Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Contributors:
* Allan Stockdill-Mander/Ian Craggs - initial API and implementation and/or initial documentation
* Ian Craggs - fix for #96 - check rem_len in readPacket
* Ian Craggs - add ability to set message handler separately #6
*******************************************************************************/
#include "MQTTClient.h"
static void NewMessageData(MessageData* md, MQTTString* aTopicName, MQTTMessage* aMessage) {
md->topicName = aTopicName;
md->message = aMessage;
}
static int getNextPacketId(MQTTClient *c) {
return c->next_packetid = (c->next_packetid == MAX_PACKET_ID) ? 1 : c->next_packetid + 1;
}
static int sendPacket(MQTTClient* c, int length, Timer* timer)
{
int rc = FAILURE,
sent = 0;
while (sent < length && !TimerIsExpired(timer))
{
rc = c->ipstack->mqttwrite(c->ipstack, &c->buf[sent], length, TimerLeftMS(timer));
if (rc < 0) // there was an error writing the data
break;
sent += rc;
}
if (sent == length)
{
TimerCountdown(&c->last_sent, c->keepAliveInterval); // record the fact that we have successfully sent the packet
rc = MQTT_SUCCESS;
}
else
rc = FAILURE;
return rc;
}
int MQTTClientInit(MQTTClient* c, Network* network, unsigned int command_timeout_ms,
unsigned char *sendbuf, size_t sendbuf_size, unsigned char *readbuf, size_t readbuf_size)
{
int i;
c->ipstack = network;
for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
c->messageHandlers[i].topicFilter = 0;
c->command_timeout_ms = command_timeout_ms;
c->buf = sendbuf;
c->buf_size = sendbuf_size;
c->readbuf = readbuf;
c->readbuf_size = readbuf_size;
c->isconnected = 0;
c->cleansession = 0;
c->ping_outstanding = 0;
c->defaultMessageHandler = NULL;
c->next_packetid = 1;
TimerInit(&c->last_sent);
TimerInit(&c->last_received);
#if defined(MQTT_TASK)
if (MutexInit(&c->mutex) != 0)
{
return FAILURE;
}
#endif
return MQTT_SUCCESS;
}
void MQTTClientDeInit(MQTTClient *c)
{
if(!c)
return;
#if defined(MQTT_TASK)
MutexDestory(&c->mutex);
#endif
return;
}
static int decodePacket(MQTTClient* c, int* value, int timeout)
{
unsigned char i;
int multiplier = 1;
int len = 0;
const int MAX_NO_OF_REMAINING_LENGTH_BYTES = 4;
*value = 0;
do
{
int rc = MQTTPACKET_READ_ERROR;
if (++len > MAX_NO_OF_REMAINING_LENGTH_BYTES)
{
rc = MQTTPACKET_READ_ERROR; /* bad data */
goto exit;
}
rc = c->ipstack->mqttread(c->ipstack, &i, 1, timeout);
if (rc != 1)
goto exit;
*value += (i & 127) * multiplier;
multiplier *= 128;
} while ((i & 128) != 0);
exit:
return len;
}
static int readPacket(MQTTClient* c, Timer* timer)
{
MQTTHeader header = {0};
int len = 0;
int rem_len = 0;
/* 1. read the header byte. This has the packet type in it */
int rc = c->ipstack->mqttread(c->ipstack, c->readbuf, 1, TimerLeftMS(timer));
if (rc != 1)
goto exit;
len = 1;
/* 2. read the remaining length. This is variable in itself */
decodePacket(c, &rem_len, TimerLeftMS(timer));
len += MQTTPacket_encode(c->readbuf + 1, rem_len); /* put the original remaining length back into the buffer */
if (rem_len > (c->readbuf_size - len))
{
rc = BUFFER_OVERFLOW;
goto exit;
}
/* 3. read the rest of the buffer using a callback to supply the rest of the data */
if (rem_len > 0 && (rc = c->ipstack->mqttread(c->ipstack, c->readbuf + len, rem_len, TimerLeftMS(timer)) != rem_len)) {
rc = 0;
goto exit;
}
header.byte = c->readbuf[0];
rc = header.bits.type;
if (c->keepAliveInterval > 0)
TimerCountdown(&c->last_received, c->keepAliveInterval); // record the fact that we have successfully received a packet
exit:
return rc;
}
/**
* Copyright (c) 2009-2018 Roger Light <[email protected]>
* licensed under the Eclipse Public License 1.0 and the Eclipse Distribution License 1.0
*/
static int MQTTTopicMatched(const char *sub, MQTTString *topic_name, char *result)
{
int sublen, topiclen;
int spos, tpos;
char multilevel_wildcard = 0;
char *topic;
if(!result)
return -1;
*result = 0;
if(!sub || !topic_name)
{
return -1;
}
sublen = strlen(sub);
if(topic_name->cstring)
{
topic = topic_name->cstring;
topiclen = strlen(topic_name->cstring);
}
else
{
topic = topic_name->lenstring.data;
topiclen = topic_name->lenstring.len;
}
if(!sublen || !topiclen)
{
*result = 0;
return -1;
}
if(sublen && topiclen)
{
if((sub[0] == '$' && topic[0] != '$')
|| (topic[0] == '$' && sub[0] != '$'))
{
return 0;
}
}
spos = 0;
tpos = 0;
while(spos < sublen && tpos <= topiclen)
{
if(sub[spos] == topic[tpos])
{
if(tpos == topiclen - 1)
{
/* Check for e.g. foo matching foo/# */
if(spos == sublen - 3 && sub[spos + 1] == '/' && sub[spos + 2] == '#')
{
*result = 1;
multilevel_wildcard = 1;
return 0;
}
}
spos++;
tpos++;
if(spos == sublen && tpos == topiclen)
{
*result = 1;
return 0;
}
else if(tpos == topiclen && spos == sublen - 1 && sub[spos] == '+')
{
if(spos > 0 && sub[spos - 1] != '/')
{
return -1;
}
spos++;
*result = 1;
return 0;
}
}
else
{
if(sub[spos] == '+')
{
/* Check for bad "+foo" or "a/+foo" subscription */
if(spos > 0 && sub[spos - 1] != '/')
{
return -1;
}
/* Check for bad "foo+" or "foo+/a" subscription */
if(spos < sublen - 1 && sub[spos + 1] != '/')
{
return -1;
}
spos++;
while(tpos < topiclen && topic[tpos] != '/')
{
tpos++;
}
if(tpos == topiclen && spos == sublen)
{
*result = 1;
return 0;
}
}
else if(sub[spos] == '#')
{
if(spos > 0 && sub[spos - 1] != '/')
{
return -1;
}
multilevel_wildcard = 1;
if(spos + 1 != sublen)
{
return -1;
}
else
{
*result = 1;
return 0;
}
}
else
{
/* Check for e.g. foo/bar matching foo/+/# */
if(spos > 0 && spos + 2 == sublen && tpos == topiclen
&& sub[spos - 1] == '+' && sub[spos] == '/' && sub[spos + 1] == '#')
{
*result = 1;
multilevel_wildcard = 1;
return 0;
}
return 0;
}
}
}
if(multilevel_wildcard == 0 && (tpos < topiclen || spos < sublen))
{
*result = 0;
}
return 0;
}
int deliverMessage(MQTTClient* c, MQTTString* topicName, MQTTMessage* message)
{
int i;
int rc = FAILURE;
char match_rst = 0;
// we have to find the right message handler - indexed by topic
for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
{
if (c->messageHandlers[i].topicFilter != 0)
{
(void)MQTTTopicMatched((const char *)c->messageHandlers[i].topicFilter, topicName, &match_rst);
if (1 == match_rst && c->messageHandlers[i].fp != NULL)
{
MessageData md;
NewMessageData(&md, topicName, message);
md.arg = c->messageHandlers[i].arg; ///< --modified,we need a args for the handler
c->messageHandlers[i].fp(&md);
rc = MQTT_SUCCESS;
}
}
}
if (rc == FAILURE && c->defaultMessageHandler != NULL)
{
MessageData md;
NewMessageData(&md, topicName, message);
c->defaultMessageHandler(&md);
rc = MQTT_SUCCESS;
}
return rc;
}
int keepalive(MQTTClient* c)
{
int rc = MQTT_SUCCESS;
if (c->keepAliveInterval == 0)
goto exit;
///<ACOCORDING TO THE protocol,we only care about the send time
if (TimerIsExpired(&c->last_sent))
{
if (c->ping_outstanding)
rc = FAILURE; /* PINGRESP not received in keepalive interval */
else
{
Timer timer;
TimerInit(&timer);
TimerCountdownMS(&timer, 1000);
int len = MQTTSerialize_pingreq(c->buf, c->buf_size);
if (len > 0 && (rc = sendPacket(c, len, &timer)) == MQTT_SUCCESS) // send the ping packet
c->ping_outstanding = 1;
}
}
exit:
return rc;
}
void MQTTCleanSession(MQTTClient* c)
{
int i = 0;
for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
c->messageHandlers[i].topicFilter = NULL;
}
void MQTTCloseSession(MQTTClient* c)
{
c->ping_outstanding = 0;
c->isconnected = 0;
if (c->cleansession)
MQTTCleanSession(c);
}
int cycle(MQTTClient* c, Timer* timer)
{
int len = 0,
rc = MQTT_SUCCESS;
Timer send_timer;
int packet_type = readPacket(c, timer); /* read the socket, see what work is due */
switch (packet_type)
{
default:
/* no more data to read, unrecoverable. Or read packet fails due to unexpected network error */
rc = packet_type;
goto exit;
case 0: /* timed out reading packet */
break;
case CONNACK:
case PUBACK:
case SUBACK:
case UNSUBACK:
break;
case PUBLISH:
{
MQTTString topicName;
MQTTMessage msg;
int intQoS;
msg.payloadlen = 0; /* this is a size_t, but deserialize publish sets this as int */
if (MQTTDeserialize_publish(&msg.dup, &intQoS, &msg.retained, &msg.id, &topicName,
(unsigned char **)&msg.payload, (int *)&msg.payloadlen, c->readbuf, c->readbuf_size) != 1)
goto exit;
msg.qos = (enum QoS)intQoS;
deliverMessage(c, &topicName, &msg);
if (msg.qos != QOS0)
{
if (msg.qos == QOS1)
len = MQTTSerialize_ack(c->buf, c->buf_size, PUBACK, 0, msg.id);
else if (msg.qos == QOS2)
len = MQTTSerialize_ack(c->buf, c->buf_size, PUBREC, 0, msg.id);
if (len <= 0)
rc = FAILURE;
else
{
TimerInit(&send_timer);
TimerCountdownMS(&send_timer, 1000);
rc = sendPacket(c, len, &send_timer);
}
if (rc == FAILURE)
goto exit; // there was a problem
}
break;
}
case PUBREC:
case PUBREL:
{
unsigned short mypacketid;
unsigned char dup, type;
if (MQTTDeserialize_ack(&type, &dup, &mypacketid, c->readbuf, c->readbuf_size) != 1)
rc = FAILURE;
else if ((len = MQTTSerialize_ack(c->buf, c->buf_size,
(packet_type == PUBREC) ? PUBREL : PUBCOMP, 0, mypacketid)) <= 0)
rc = FAILURE;
else
{
TimerInit(&send_timer);
TimerCountdownMS(&send_timer, 1000);
rc = sendPacket(c, len, &send_timer);
if(rc != MQTT_SUCCESS)
rc = FAILURE; // there was a problem
}
if (rc == FAILURE)
goto exit; // there was a problem
break;
}
case PUBCOMP:
break;
case PINGRESP:
c->ping_outstanding = 0;
break;
}
if (keepalive(c) != MQTT_SUCCESS)
{
//check only keepalive FAILURE status so that previous FAILURE status can be considered as FAULT
rc = FAILURE;
}
exit:
if (rc == MQTT_SUCCESS)
rc = packet_type;
else if (c->isconnected)
MQTTCloseSession(c);
return rc;
}
int MQTTYield(MQTTClient* c, int timeout_ms)
{
int rc = MQTT_SUCCESS;
Timer timer;
TimerInit(&timer);
TimerCountdownMS(&timer, timeout_ms);
do
{
#if defined(MQTT_TASK)
(void)MutexLock(&c->mutex);
#endif
if ( (rc = cycle(c, &timer) ) < 0)
{
rc = FAILURE;
#if defined(MQTT_TASK)
MutexUnlock(&c->mutex);
#endif
break;
}
#if defined(MQTT_TASK)
MutexUnlock(&c->mutex);
#endif
}
while (!TimerIsExpired(&timer));
return rc;
}
void MQTTRun(void* parm)
{
Timer timer;
MQTTClient* c = (MQTTClient*)parm;
TimerInit(&timer);
while (1)
{
#if defined(MQTT_TASK)
MutexLock(&c->mutex);
#endif
TimerCountdownMS(&timer, 500); /* Don't wait too long if no traffic is incoming */
cycle(c, &timer);
#if defined(MQTT_TASK)
MutexUnlock(&c->mutex);
#endif
}
}
//#if defined(MQTT_TASK)
//int MQTTStartTask(MQTTClient* client)
//{
// return ThreadStart(&client->thread, &MQTTRun, client);
//}
//#endif
int waitfor(MQTTClient* c, int packet_type, Timer* timer)
{
int rc = FAILURE;
do
{
if (TimerIsExpired(timer))
break; // we timed out
rc = cycle(c, timer);
}
while (rc != packet_type && rc >= 0);
return rc;
}
int MQTTConnectWithResults(MQTTClient* c, MQTTPacket_connectData* options, MQTTConnackData* data)
{
Timer connect_timer;
int rc = FAILURE;
MQTTPacket_connectData default_options = MQTTPacket_connectData_initializer;
int len = 0;
#if defined(MQTT_TASK)
MutexLock(&c->mutex);
#endif
if (c->isconnected) /* don't send connect packet again if we are already connected */
goto exit;
TimerInit(&connect_timer);
TimerCountdownMS(&connect_timer, c->command_timeout_ms);
if (options == 0)
options = &default_options; /* set default options if none were supplied */
c->keepAliveInterval = options->keepAliveInterval;
c->cleansession = options->cleansession;
TimerCountdown(&c->last_received, c->keepAliveInterval);
if ((len = MQTTSerialize_connect(c->buf, c->buf_size, options)) <= 0)
goto exit;
if ((rc = sendPacket(c, len, &connect_timer)) != MQTT_SUCCESS) // send the connect packet
goto exit; // there was a problem
// this will be a blocking call, wait for the connack
if (waitfor(c, CONNACK, &connect_timer) == CONNACK)
{
data->rc = 0;
data->sessionPresent = 0;
if (MQTTDeserialize_connack(&data->sessionPresent, &data->rc, c->readbuf, c->readbuf_size) == 1)
rc = data->rc;
else
rc = FAILURE;
}
else
rc = FAILURE;
exit:
if (rc == MQTT_SUCCESS)
{
c->isconnected = 1;
c->ping_outstanding = 0;
}
#if defined(MQTT_TASK)
MutexUnlock(&c->mutex);
#endif
return rc;
}
int MQTTConnect(MQTTClient* c, MQTTPacket_connectData* options)
{
MQTTConnackData data;
return MQTTConnectWithResults(c, options, &data);
}
int MQTTSetMessageHandler(MQTTClient* c, const char* topicFilter, messageHandler messageHandler)
{
int rc = FAILURE;
int i = -1;
/* first check for an existing matching slot */
for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
{
if (c->messageHandlers[i].topicFilter != NULL && strcmp(c->messageHandlers[i].topicFilter, topicFilter) == 0)
{
if (messageHandler == NULL) /* remove existing */
{
c->messageHandlers[i].topicFilter = NULL;
c->messageHandlers[i].fp = NULL;
}
rc = MQTT_SUCCESS; /* return i when adding new subscription */
break;
}
}
/* if no existing, look for empty slot (unless we are removing) */
if (messageHandler != NULL)
{
if (rc == FAILURE)
{
for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
{
if (c->messageHandlers[i].topicFilter == NULL)
{
rc = MQTT_SUCCESS;
break;
}
}
}
if (i < MAX_MESSAGE_HANDLERS)
{
c->messageHandlers[i].topicFilter = topicFilter;
c->messageHandlers[i].fp = messageHandler;
}
}
return rc;
}
int MQTTSubscribeWithResults(MQTTClient *c, const char *topicFilter, enum QoS qos,
messageHandler messageHandler, MQTTSubackData *data)
{
int rc = FAILURE;
Timer timer;
int len = 0;
MQTTString topic = MQTTString_initializer;
topic.cstring = (char *)topicFilter;
#if defined(MQTT_TASK)
MutexLock(&c->mutex);
#endif
if (!c->isconnected)
goto exit;
TimerInit(&timer);
TimerCountdownMS(&timer, c->command_timeout_ms);
len = MQTTSerialize_subscribe(c->buf, c->buf_size, 0, getNextPacketId(c), 1, &topic, (int *)&qos);
if (len <= 0)
goto exit;
if ((rc = sendPacket(c, len, &timer)) != MQTT_SUCCESS) // send the subscribe packet
goto exit; // there was a problem
if (waitfor(c, SUBACK, &timer) == SUBACK) // wait for suback
{
int count = 0;
unsigned short mypacketid;
data->grantedQoS = QOS0;
if (MQTTDeserialize_suback(&mypacketid, 1, &count, (int *)&data->grantedQoS, c->readbuf, c->readbuf_size) == 1)
{
if (data->grantedQoS != 0x80)
rc = MQTTSetMessageHandler(c, topicFilter, messageHandler);
}
}
else
rc = FAILURE;
exit:
if (rc == FAILURE)
MQTTCloseSession(c);
#if defined(MQTT_TASK)
MutexUnlock(&c->mutex);
#endif
return rc;
}
static int MQTTSetMessageHandlerArgs(MQTTClient* c, const char* topicFilter, messageHandler messageHandler,void *arg)
{
int rc = FAILURE;
int i = -1;
/* first check for an existing matching slot */
for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
{
if (c->messageHandlers[i].topicFilter != NULL && strcmp(c->messageHandlers[i].topicFilter, topicFilter) == 0)
{
if (messageHandler == NULL) /* remove existing */
{
c->messageHandlers[i].topicFilter = NULL;
c->messageHandlers[i].fp = NULL;
c->messageHandlers[i].arg = NULL;
}
rc = MQTT_SUCCESS; /* return i when adding new subscription */
break;
}
}
/* if no existing, look for empty slot (unless we are removing) */
if (messageHandler != NULL)
{
if (rc == FAILURE)
{
for (i = 0; i < MAX_MESSAGE_HANDLERS; ++i)
{
if (c->messageHandlers[i].topicFilter == NULL)
{
rc = MQTT_SUCCESS;
break;
}
}
}
if (i < MAX_MESSAGE_HANDLERS)
{
c->messageHandlers[i].topicFilter = topicFilter;
c->messageHandlers[i].fp = messageHandler;
c->messageHandlers[i].arg = arg;
}
}
return rc;
}
int MQTTSubscribeWithResultsArgs(MQTTClient *c, const char *topicFilter, enum QoS qos,
messageHandler messageHandler, MQTTSubackData *data,void *arg)
{
int rc = FAILURE;
Timer timer;
int len = 0;
MQTTString topic = MQTTString_initializer;
topic.cstring = (char *)topicFilter;
#if defined(MQTT_TASK)
MutexLock(&c->mutex);
#endif
if (!c->isconnected)
goto exit;
TimerInit(&timer);
TimerCountdownMS(&timer, c->command_timeout_ms);
len = MQTTSerialize_subscribe(c->buf, c->buf_size, 0, getNextPacketId(c), 1, &topic, (int *)&qos);
if (len <= 0)
goto exit;
if ((rc = sendPacket(c, len, &timer)) != MQTT_SUCCESS) // send the subscribe packet
goto exit; // there was a problem
if (waitfor(c, SUBACK, &timer) == SUBACK) // wait for suback
{
int count = 0;
unsigned short mypacketid;
data->grantedQoS = QOS0;
if (MQTTDeserialize_suback(&mypacketid, 1, &count, (int *)&data->grantedQoS, c->readbuf, c->readbuf_size) == 1)
{
if (data->grantedQoS != 0x80)
rc = MQTTSetMessageHandlerArgs(c, topicFilter, messageHandler,arg);
}
}
else
rc = FAILURE;
exit:
if (rc == FAILURE)
MQTTCloseSession(c);
#if defined(MQTT_TASK)
MutexUnlock(&c->mutex);
#endif
return rc;
}
int MQTTSubscribe(MQTTClient* c, const char* topicFilter, enum QoS qos,
messageHandler messageHandler)
{
MQTTSubackData data;
return MQTTSubscribeWithResults(c, topicFilter, qos, messageHandler, &data);
}
int MQTTUnsubscribe(MQTTClient* c, const char* topicFilter)
{
int rc = FAILURE;
Timer timer;
MQTTString topic = MQTTString_initializer;
topic.cstring = (char *)topicFilter;
int len = 0;
#if defined(MQTT_TASK)
MutexLock(&c->mutex);
#endif
if (!c->isconnected)
goto exit;
TimerInit(&timer);
TimerCountdownMS(&timer, c->command_timeout_ms);
if ((len = MQTTSerialize_unsubscribe(c->buf, c->buf_size, 0, getNextPacketId(c), 1, &topic)) <= 0)
goto exit;
if ((rc = sendPacket(c, len, &timer)) != MQTT_SUCCESS) // send the subscribe packet
goto exit; // there was a problem
if (waitfor(c, UNSUBACK, &timer) == UNSUBACK)
{
unsigned short mypacketid; // should be the same as the packetid above
if (MQTTDeserialize_unsuback(&mypacketid, c->readbuf, c->readbuf_size) == 1)
{
/* remove the subscription message handler associated with this topic, if there is one */
MQTTSetMessageHandler(c, topicFilter, NULL);
}
}
else
rc = FAILURE;
exit:
if (rc == FAILURE)
MQTTCloseSession(c);
#if defined(MQTT_TASK)
MutexUnlock(&c->mutex);
#endif
return rc;
}
int MQTTPublish(MQTTClient* c, const char* topicName, MQTTMessage* message)
{
int rc = FAILURE;
Timer timer;
MQTTString topic = MQTTString_initializer;
topic.cstring = (char *)topicName;
int len = 0;
#if defined(MQTT_TASK)
MutexLock(&c->mutex);
#endif
if (!c->isconnected)
goto exit;
TimerInit(&timer);
if(message->qos == QOS2)
TimerCountdownMS(&timer, c->command_timeout_ms * 2);
else
TimerCountdownMS(&timer, c->command_timeout_ms);
if (message->qos == QOS1 || message->qos == QOS2)
message->id = getNextPacketId(c);
len = MQTTSerialize_publish(c->buf, c->buf_size, 0, message->qos, message->retained, message->id,
topic, (unsigned char*)message->payload, message->payloadlen);
if (len <= 0)
goto exit;
if ((rc = sendPacket(c, len, &timer)) != MQTT_SUCCESS) // send the subscribe packet
goto exit; // there was a problem
if (message->qos == QOS1)
{
if (waitfor(c, PUBACK, &timer) == PUBACK)
{
unsigned short mypacketid;
unsigned char dup, type;
if (MQTTDeserialize_ack(&type, &dup, &mypacketid, c->readbuf, c->readbuf_size) != 1)
rc = FAILURE;
}
else
rc = FAILURE;
}
else if (message->qos == QOS2)
{
if (waitfor(c, PUBCOMP, &timer) == PUBCOMP)
{
unsigned short mypacketid;
unsigned char dup, type;
if (MQTTDeserialize_ack(&type, &dup, &mypacketid, c->readbuf, c->readbuf_size) != 1)
rc = FAILURE;
}
else
rc = FAILURE;
}
exit:
if (rc == FAILURE)
MQTTCloseSession(c);
#if defined(MQTT_TASK)
MutexUnlock(&c->mutex);
#endif
return rc;
}
int MQTTDisconnect(MQTTClient* c)
{
int rc = FAILURE;
Timer timer; // we might wait for incomplete incoming publishes to complete
int len = 0;
#if defined(MQTT_TASK)
MutexLock(&c->mutex);
#endif
TimerInit(&timer);
TimerCountdownMS(&timer, c->command_timeout_ms);
len = MQTTSerialize_disconnect(c->buf, c->buf_size);
if (len > 0)
rc = sendPacket(c, len, &timer); // send the disconnect packet
MQTTCloseSession(c);
#if defined(MQTT_TASK)
MutexUnlock(&c->mutex);
#endif
return rc;
}
| [
"[email protected]"
] | |
286dcfc89e1fe9b2963a0fe1669541a0f51be3a6 | 8244a7dfae7a61466c73b1c9508d4608002d0168 | /syscalls/sys_linkat.h | 0431225141783a9ad67f93bfe942e095524c11a4 | [] | no_license | sebcat/nolibs-stub | 60c79e7742618298d7a3670144615548ac5994cc | 3ff962ab5e71fa64179fc95f7b2601e0f0d944d6 | refs/heads/master | 2020-05-15T07:45:20.460314 | 2014-09-10T11:50:49 | 2014-09-10T11:50:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 154 | h |
#ifndef __SYS_LINKAT_H
#define __SYS_LINKAT_H
#include <systm/types.h>
int sys_linkat(int fd1, char *path1, int fd2, char *path2, int flag);
#endif
| [
"[email protected]"
] | |
b331090ccd9ad2f7bddf4e270ae5b5729e8e10b3 | 018cb63c0217bead7d893441b4ca28682414c455 | /test.C | 4f25332bfd90c2513919e8162b36826c2704e4a5 | [] | no_license | ikzazki/temp | 44d32272631b420a4db742e5577ac2708cee3adb | 89ce5ae0eec4b4704de1f9bbfe5430525ab2794e | refs/heads/master | 2021-05-15T08:04:56.152202 | 2017-10-31T08:19:20 | 2017-10-31T08:19:20 | 108,965,155 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 65 | c | #include<stdio.h>
void main()
{
printf("last");
printf("lol");
}
| [
"[email protected]"
] | |
7925282697cb2aeaddabe565788f6757038d10a1 | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/com/ole32/com/dcomrem/vsevfire.h | 2f2fd14b1c107f41f2b72ce42d8f935fb4aa7c98 | [] | no_license | jjzhang166/WinNT5_src_20201004 | 712894fcf94fb82c49e5cd09d719da00740e0436 | b2db264153b80fbb91ef5fc9f57b387e223dbfc2 | refs/heads/Win2K3 | 2023-08-12T01:31:59.670176 | 2021-10-14T15:14:37 | 2021-10-14T15:14:37 | 586,134,273 | 1 | 0 | null | 2023-01-07T03:47:45 | 2023-01-07T03:47:44 | null | UTF-8 | C | false | false | 3,644 | h | //+-------------------------------------------------------------------
//
// File: vsevfile.h
//
// Contents: Vista events and related functions
//
// History: 26-Sep-97 RongC Created
//
// Note: This file was generated from vsevfire.idl in the Vista land.
// Since we only use a very small and stable subset part of
// the original file, we don't want to build the IDL file
// everytime. We may, however, consider building vsevfire.idl
// when it ships with NT 5.0 SDK.
//
//--------------------------------------------------------------------
typedef enum VSAParameterType {
cVSAParameterKeyMask = 0x80000000,
cVSAParameterKeyString = 0x80000000,
cVSAParameterValueMask = 0x7ffff,
cVSAParameterValueTypeMask = 0x70000,
cVSAParameterValueUnicodeString = 0,
cVSAParameterValueANSIString = 0x10000,
cVSAParameterValueGUID = 0x20000,
cVSAParameterValueDWORD = 0x30000,
cVSAParameterValueBYTEArray = 0x40000,
cVSAParameterValueLengthMask = 0xffff
} VSAParameterFlags;
typedef enum VSAStandardParameter {
cVSAStandardParameterSourceMachine = 0,
cVSAStandardParameterSourceProcess = 1,
cVSAStandardParameterSourceThread = 2,
cVSAStandardParameterSourceComponent = 3,
cVSAStandardParameterSourceSession = 4,
cVSAStandardParameterTargetMachine = 5,
cVSAStandardParameterTargetProcess = 6,
cVSAStandardParameterTargetThread = 7,
cVSAStandardParameterTargetComponent = 8,
cVSAStandardParameterTargetSession = 9,
cVSAStandardParameterSecurityIdentity = 10,
cVSAStandardParameterCausalityID = 11,
cVSAStandardParameterNoDefault = 0x4000,
cVSAStandardParameterSourceHandle = 0x4000,
cVSAStandardParameterTargetHandle = 0x4001,
cVSAStandardParameterArguments = 0x4002,
cVSAStandardParameterReturnValue = 0x4003,
cVSAStandardParameterException = 0x4004,
cVSAStandardParameterCorrelationID = 0x4005
} VSAStandardParameters;
typedef enum eVSAEventFlags {
cVSAEventStandard = 0,
cVSAEventDefaultSource = 1,
cVSAEventDefaultTarget = 2,
cVSAEventCanBreak = 4
} VSAEventFlags;
const IID IID_ISystemDebugEventFire =
{0x6C736DC1,0xAB0D,0x11D0,{0xA2,0xAD,0x00,0xA0,0xC9,0x0F,0x27,0xE8}};
interface ISystemDebugEventFire : public IUnknown
{
public:
virtual HRESULT STDMETHODCALLTYPE BeginSession(
/* [in] */ REFGUID guidSourceID,
/* [in] */ LPCOLESTR strSessionName) = 0;
virtual HRESULT STDMETHODCALLTYPE EndSession( void) = 0;
virtual HRESULT STDMETHODCALLTYPE IsActive( void) = 0;
virtual HRESULT STDMETHODCALLTYPE FireEvent(
/* [in] */ REFGUID guidEvent,
/* [in] */ int nEntries,
/* [size_is][in] */ PULONG_PTR rgKeys,
/* [size_is][in] */ PULONG_PTR rgValues,
/* [size_is][in] */ LPDWORD rgTypes,
/* [in] */ DWORD dwTimeLow,
/* [in] */ LONG dwTimeHigh,
/* [in] */ VSAEventFlags dwFlags) = 0;
};
const IID IID_ISystemDebugEventShutdown =
{0x6C736DCF,0xAB0D,0x11D0,{0xA2,0xAD,0x00,0xA0,0xC9,0x0F,0x27,0xE8}};
interface ISystemDebugEventShutdown : public IUnknown
{
public:
virtual HRESULT STDMETHODCALLTYPE Shutdown( void) = 0;
};
extern const CLSID CLSID_VSA_IEC =
{0x6C736DB1,0xBD94,0x11D0,{0x8A,0x23,0x00,0xAA,0x00,0xB5,0x8E,0x10}};
| [
"[email protected]"
] | |
e5b4b945693c43c16f768aa7418781d2534d730b | e73547787354afd9b717ea57fe8dd0695d161821 | /src/world/area_omo/common/RockingHorse.inc.c | 6a638d2fc6fe461794db4ff24a654b6cae07af64 | [] | no_license | pmret/papermario | 8b514b19653cef8d6145e47499b3636b8c474a37 | 9774b26d93f1045dd2a67e502b6efc9599fb6c31 | refs/heads/main | 2023-08-31T07:09:48.951514 | 2023-08-21T18:07:08 | 2023-08-21T18:07:08 | 287,151,133 | 904 | 139 | null | 2023-09-14T02:44:23 | 2020-08-13T01:22:57 | C | UTF-8 | C | false | false | 2,525 | c | #include "common.h"
#include "model.h"
typedef struct RockingHorse {
/* 0x00 */ f32 posX;
/* 0x04 */ f32 posZ;
/* 0x08 */ f32 lastRockAngle;
/* 0x0C */ f32 rockPhaseAngularVel;
/* 0x10 */ f32 rockPhase;
/* 0x14 */ s32 modelID;
} RockingHorse; // size = 0x18
API_CALLABLE(N(UpdateRockingHorses)) {
Matrix4f mtxPivot, mtxRotate;
RockingHorse* horse;
Model* model;
f32 rockAngle;
f32 offsetY;
u32 i;
if (isInitialCall) {
horse = heap_malloc(sizeof(*horse) * ARRAY_COUNT(N(RockingHorseModels)));
script->functionTempPtr[0] = horse;
for (i = 0; i < ARRAY_COUNT(N(RockingHorseModels)); i++, horse++) {
s32 modelID = N(RockingHorseModels)[i];
horse->modelID = modelID;
model = get_model_from_list_index(get_model_list_index_from_tree_index(modelID));
horse->posX = model->center.x;
horse->posZ = model->center.z;
horse->rockPhaseAngularVel = 3.5f;
horse->rockPhase = 0;
horse->lastRockAngle = 0;
}
}
horse = script->functionTempPtr[0];
for (i = 0; i < ARRAY_COUNT(N(RockingHorseModels)); i++, horse++) {
horse->rockPhase += horse->rockPhaseAngularVel;
horse->rockPhase = clamp_angle(horse->rockPhase);
#ifdef ROCKING_USE_SIN_DEG
rockAngle = sin_deg(horse->rockPhase) * 20.0f;
#else
rockAngle = sin_rad((horse->rockPhase * 3.14f) / 180.0f) * 20.0f;
#endif
offsetY = SQ(rockAngle) / 90.0f;
if (i == 0) {
if ((horse->lastRockAngle >= 0.0f && rockAngle < 0.0f) || (horse->lastRockAngle < 0.0f && rockAngle >= 0.0f)) {
sfx_play_sound_at_position(SOUND_CREAKY_ROCKING, SOUND_SPACE_DEFAULT, ROCKING_SOUND_LOCATION);
}
horse->lastRockAngle = rockAngle;
}
model = get_model_from_list_index(get_model_list_index_from_tree_index(horse->modelID));
model->flags |= MODEL_FLAG_MATRIX_DIRTY | MODEL_FLAG_HAS_TRANSFORM;
guTranslateF(mtxPivot, -horse->posX, 0.0f, -horse->posZ);
guRotateF(mtxRotate, rockAngle, 0.0f, 0.0f, 1.0f);
guMtxCatF(mtxPivot, mtxRotate, model->userTransformMtx);
guTranslateF(mtxPivot, horse->posX, offsetY, horse->posZ);
guMtxCatF(model->userTransformMtx, mtxPivot, model->userTransformMtx);
}
return ApiStatus_BLOCK;
}
EvtScript N(EVS_Gizmos_RockingHorses) = {
EVT_CALL(N(UpdateRockingHorses))
EVT_RETURN
EVT_END
};
| [
"[email protected]"
] | |
078c1a56029711552dc6fb727becb46f76d25c4d | a280aa9ac69d3834dc00219e9a4ba07996dfb4dd | /regularexpress/home/weilaidb/work/kernel/linux-3.0.8/arch/arm/mach-msm/gpiomux.c | 9b58bb520a9834c65d821b468096b795641387ca | [] | no_license | weilaidb/PythonExample | b2cc6c514816a0e1bfb7c0cbd5045cf87bd28466 | 798bf1bdfdf7594f528788c4df02f79f0f7827ce | refs/heads/master | 2021-01-12T13:56:19.346041 | 2017-07-22T16:30:33 | 2017-07-22T16:30:33 | 68,925,741 | 4 | 2 | null | null | null | null | UTF-8 | C | false | false | 366 | c | static DEFINE_SPINLOCK(gpiomux_lock);
int msm_gpiomux_write(unsigned gpio,
gpiomux_config_t active,
gpiomux_config_t suspended)
EXPORT_SYMBOL(msm_gpiomux_write);
int msm_gpiomux_get(unsigned gpio)
EXPORT_SYMBOL(msm_gpiomux_get);
int msm_gpiomux_put(unsigned gpio)
EXPORT_SYMBOL(msm_gpiomux_put);
static int __init gpiomux_init(void)
postcore_initcall(gpiomux_init);
| [
"[email protected]"
] | |
fa2799027b904c700ab0bc5d48e72786981e4924 | c47c254ca476c1f9969f8f3e89acb4d0618c14b6 | /datasets/linux-4.11-rc3/drivers/infiniband/hw/cxgb3/iwch_cm.h | e66e75921797446019fc67974a2baf4e1d4980a5 | [
"BSD-2-Clause",
"Linux-syscall-note",
"GPL-2.0-only"
] | permissive | yijunyu/demo | 5cf4e83f585254a28b31c4a050630b8f661a90c8 | 11c0c84081a3181494b9c469bda42a313c457ad2 | refs/heads/master | 2023-02-22T09:00:12.023083 | 2021-01-25T16:51:40 | 2021-01-25T16:51:40 | 175,939,000 | 3 | 6 | BSD-2-Clause | 2021-01-09T23:00:12 | 2019-03-16T07:13:00 | C | UTF-8 | C | false | false | 5,811 | h | /*
* Copyright (c) 2006 Chelsio, Inc. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
* General Public License (GPL) Version 2, available from the file
* COPYING in the main directory of this source tree, or the
* OpenIB.org BSD license below:
*
* 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.
*
* 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.
*/
#ifndef _IWCH_CM_H_
#define _IWCH_CM_H_
#include <linux/inet.h>
#include <linux/wait.h>
#include <linux/spinlock.h>
#include <linux/kref.h>
#include <rdma/ib_verbs.h>
#include <rdma/iw_cm.h>
#include "cxgb3_offload.h"
#include "iwch_provider.h"
#define MPA_KEY_REQ "MPA ID Req Frame"
#define MPA_KEY_REP "MPA ID Rep Frame"
#define MPA_MAX_PRIVATE_DATA 256
#define MPA_REV 0 /* XXX - amso1100 uses rev 0 ! */
#define MPA_REJECT 0x20
#define MPA_CRC 0x40
#define MPA_MARKERS 0x80
#define MPA_FLAGS_MASK 0xE0
#define put_ep(ep) { \
PDBG("put_ep (via %s:%u) ep %p refcnt %d\n", __func__, __LINE__, \
ep, kref_read(&((ep)->kref))); \
WARN_ON(kref_read(&((ep)->kref)) < 1); \
kref_put(&((ep)->kref), __free_ep); \
}
#define get_ep(ep) { \
PDBG("get_ep (via %s:%u) ep %p, refcnt %d\n", __func__, __LINE__, \
ep, kref_read(&((ep)->kref))); \
kref_get(&((ep)->kref)); \
}
struct mpa_message {
u8 key[16];
u8 flags;
u8 revision;
__be16 private_data_size;
u8 private_data[0];
};
struct terminate_message {
u8 layer_etype;
u8 ecode;
__be16 hdrct_rsvd;
u8 len_hdrs[0];
};
#define TERM_MAX_LENGTH (sizeof(struct terminate_message) + 2 + 18 + 28)
enum iwch_layers_types {
LAYER_RDMAP = 0x00,
LAYER_DDP = 0x10,
LAYER_MPA = 0x20,
RDMAP_LOCAL_CATA = 0x00,
RDMAP_REMOTE_PROT = 0x01,
RDMAP_REMOTE_OP = 0x02,
DDP_LOCAL_CATA = 0x00,
DDP_TAGGED_ERR = 0x01,
DDP_UNTAGGED_ERR = 0x02,
DDP_LLP = 0x03
};
enum iwch_rdma_ecodes {
RDMAP_INV_STAG = 0x00,
RDMAP_BASE_BOUNDS = 0x01,
RDMAP_ACC_VIOL = 0x02,
RDMAP_STAG_NOT_ASSOC = 0x03,
RDMAP_TO_WRAP = 0x04,
RDMAP_INV_VERS = 0x05,
RDMAP_INV_OPCODE = 0x06,
RDMAP_STREAM_CATA = 0x07,
RDMAP_GLOBAL_CATA = 0x08,
RDMAP_CANT_INV_STAG = 0x09,
RDMAP_UNSPECIFIED = 0xff
};
enum iwch_ddp_ecodes {
DDPT_INV_STAG = 0x00,
DDPT_BASE_BOUNDS = 0x01,
DDPT_STAG_NOT_ASSOC = 0x02,
DDPT_TO_WRAP = 0x03,
DDPT_INV_VERS = 0x04,
DDPU_INV_QN = 0x01,
DDPU_INV_MSN_NOBUF = 0x02,
DDPU_INV_MSN_RANGE = 0x03,
DDPU_INV_MO = 0x04,
DDPU_MSG_TOOBIG = 0x05,
DDPU_INV_VERS = 0x06
};
enum iwch_mpa_ecodes {
MPA_CRC_ERR = 0x02,
MPA_MARKER_ERR = 0x03
};
enum iwch_ep_state {
IDLE = 0,
LISTEN,
CONNECTING,
MPA_REQ_WAIT,
MPA_REQ_SENT,
MPA_REQ_RCVD,
MPA_REP_SENT,
FPDU_MODE,
ABORTING,
CLOSING,
MORIBUND,
DEAD,
};
enum iwch_ep_flags {
PEER_ABORT_IN_PROGRESS = 0,
ABORT_REQ_IN_PROGRESS = 1,
RELEASE_RESOURCES = 2,
CLOSE_SENT = 3,
};
struct iwch_ep_common {
struct iw_cm_id *cm_id;
struct iwch_qp *qp;
struct t3cdev *tdev;
enum iwch_ep_state state;
struct kref kref;
spinlock_t lock;
struct sockaddr_in local_addr;
struct sockaddr_in remote_addr;
wait_queue_head_t waitq;
int rpl_done;
int rpl_err;
unsigned long flags;
};
struct iwch_listen_ep {
struct iwch_ep_common com;
unsigned int stid;
int backlog;
};
struct iwch_ep {
struct iwch_ep_common com;
struct iwch_ep *parent_ep;
struct timer_list timer;
unsigned int atid;
u32 hwtid;
u32 snd_seq;
u32 rcv_seq;
struct l2t_entry *l2t;
struct dst_entry *dst;
struct sk_buff *mpa_skb;
struct iwch_mpa_attributes mpa_attr;
unsigned int mpa_pkt_len;
u8 mpa_pkt[sizeof(struct mpa_message) + MPA_MAX_PRIVATE_DATA];
u8 tos;
u16 emss;
u16 plen;
u32 ird;
u32 ord;
};
static inline struct iwch_ep *to_ep(struct iw_cm_id *cm_id)
{
return cm_id->provider_data;
}
static inline struct iwch_listen_ep *to_listen_ep(struct iw_cm_id *cm_id)
{
return cm_id->provider_data;
}
static inline int compute_wscale(int win)
{
int wscale = 0;
while (wscale < 14 && (65535<<wscale) < win)
wscale++;
return wscale;
}
/* CM prototypes */
int iwch_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param);
int iwch_create_listen(struct iw_cm_id *cm_id, int backlog);
int iwch_destroy_listen(struct iw_cm_id *cm_id);
int iwch_reject_cr(struct iw_cm_id *cm_id, const void *pdata, u8 pdata_len);
int iwch_accept_cr(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param);
int iwch_ep_disconnect(struct iwch_ep *ep, int abrupt, gfp_t gfp);
int iwch_quiesce_tid(struct iwch_ep *ep);
int iwch_resume_tid(struct iwch_ep *ep);
void __free_ep(struct kref *kref);
void iwch_rearp(struct iwch_ep *ep);
int iwch_ep_redirect(void *ctx, struct dst_entry *old, struct dst_entry *new, struct l2t_entry *l2t);
int __init iwch_cm_init(void);
void __exit iwch_cm_term(void);
extern int peer2peer;
#endif /* _IWCH_CM_H_ */
| [
"[email protected]"
] | |
992a344d9688f7d82cb697cfcdc534c421d747c8 | 5994e66e9a001ab1a9244b17e6f93f16defbc5c4 | /sll.c | dc4f2d03326d0882dee24dd9a7788bb832a47650 | [] | no_license | abhishek-kumbhar/C-data_structures | 3ac7def149caea1a0bb49567c2cf72bc728b5d1b | a767106e192236d861fd075ab6711b8edce35b31 | refs/heads/master | 2020-08-28T19:26:09.735791 | 2020-04-23T09:57:40 | 2020-04-23T09:57:40 | 217,798,420 | 1 | 0 | null | null | null | null | UTF-8 | C | false | false | 7,031 | c |
// SINGLY LINKED_LIST PRESENTATION //
#include <stdio.h>
#include <stdlib.h> //for using dynamic memory allocation methods (malloc, free)
//declaring structure for a node in linked list.
struct node {
int data;
struct node * next; //self-referrencial pointer.
};
//this method returns total no of node's in linke list.
int totalNodes(struct node *headnd) {
struct node * temp = headnd;
int cnt = 0;
while (temp != NULL) {
temp = temp->next;
cnt++;
}
return cnt;
}
//this method create's node and returns to calling function.
//which takes param as data which we want to store in our node.
struct node * createNode(int x) {
struct node * newnd = (struct node *)malloc(sizeof(struct node));
newnd->next = NULL;
newnd->data = x;
return newnd;
}
//this method add's node to linked list in forward direction.
//one after other like 1 --> 2 --> 3 --> 4 --> NULL
//which takes param as data & headnd pointer and returns headnd.
struct node * addNode(int x, struct node * headnd) {
struct node * tempnd;
struct node * newnd = createNode(x);
if (headnd == NULL) {
headnd = tempnd = newnd;
} else {
tempnd->next = newnd;
tempnd = newnd;
}
return headnd;
}
//this method add's node to linked list @ Begining of list.
//which takes param as data & headnd pointer and returns headnd.
struct node * addAtBegining(int x, struct node * headnd) {
struct node * newnd = createNode(x);
newnd->next = headnd;
headnd = newnd;
return headnd;
}
//this method add's node to linked list @ End of list.
//which takes param as data & headnd pointer and returns headnd.
struct node * addAtEnd(int x, struct node * headnd) {
struct node * tempnd;
struct node * newnd = createNode(x);
tempnd = headnd;
while (tempnd->next != NULL) {
tempnd = tempnd->next;
}
tempnd->next = newnd;
return headnd;
}
//this method add's node to linked list In-Between of list.
//which takes param as data, position where we want to add node & headnd pointer
//and returns headnd.
struct node * addInBetween(int x, int pos, struct node * headnd) {
if (pos == 1) {
struct node * head = addAtBegining(x, headnd);
return head;
} else if (pos == (totalNodes(headnd) + 1)) {
struct node * head = addAtEnd(x, headnd);
return head;
} else {
struct node * tempnd = headnd;
int cnt = 2;
while (cnt < pos) {
tempnd = tempnd->next;
cnt++;
}
struct node * newnd = createNode(x);
struct node * nextnode = tempnd->next;
tempnd->next = newnd;
newnd->next = nextnode;
return headnd;
}
}
//this method remove's node @ Begining of list.
//which takes param as headnd pointer and returns headnd.
struct node * removeAtBegining(struct node * headnd) {
struct node * tempnd = headnd->next;
free(headnd);
headnd = tempnd;
return headnd;
}
//this method remove's node @ End of list.
//which takes param as headnd pointer and returns headnd.
struct node * removeAtEnd(struct node * headnd) {
struct node * tempnd = headnd;
while (tempnd->next->next != NULL) {
tempnd = tempnd->next;
}
free(tempnd->next);
tempnd->next = NULL;
return headnd;
}
//this method remove's node In-Between of list.
//which takes param as position of node which we want to remove from list &
//headnd pointer and returns headnd.
struct node * removeInBetween(int pos, struct node * headnd) {
if (pos == 1) {
struct node * head = removeAtBegining(headnd);
return head;
} else if (pos == totalNodes(headnd)) {
struct node * head = removeAtEnd(headnd);
return head;
} else {
struct node * tempnd = headnd;
int cnt = 2;
while (cnt < pos) {
tempnd = tempnd->next;
cnt++;
}
struct node *nextnode = tempnd->next->next;
free(tempnd->next);
tempnd->next = nextnode;
return headnd;
}
}
//this method print's whole list in forward direction.
void print(struct node * head) {
struct node * temphead = head;
while (temphead != NULL) {
printf("--> %d ", temphead->data);
temphead = temphead->next;
}
printf("\n\n");
}
//this method print's whole list with current & next pointer for
//better visualization of "How pointers of linked-list are connected to each other"
//using this, the actual concept of singly linked list can be clear to user.
void printWithAddresses(struct node * head) {
printf("\nPrinting Linked-List with Its pointers : \n");
printf("\nCurrent :\tNext :\t\tData :\t\n");
struct node * temphead = head;
while (temphead != NULL) {
printf("%14p\t%14p\t%d\n", temphead, temphead->next, temphead->data);
temphead = temphead->next;
}
}
void main (void) {
struct node * headnd =NULL;
//createting linked-list with 5 nodes.
headnd = addNode(9, headnd);
headnd = addNode(10, headnd);
headnd = addNode(11, headnd);
headnd = addNode(12, headnd);
headnd = addNode(13, headnd);
//printing linked-list in forward direction.
printf("\nPrinting Linked-List : \n");
print(headnd);
printf("============================================================\n");
//printing linked-list with all its addresses.
printWithAddresses(headnd);
printf("============================================================\n");
printf("============================================================\n");
//adding node at begining of list
printf("\nadding node at begining...\n");
headnd = addAtBegining(8, headnd);
print(headnd);
printf("============================================================\n");
//adding node at end of list
printf("\nadding node at end...\n");
headnd = addAtEnd(14, headnd);
print(headnd);
printf("============================================================\n");
//adding node In-between of list
printf("\nadding node at 4th position...\n");
headnd = addInBetween(0, 4, headnd);
print(headnd);
printf("============================================================\n");
printf("============================================================\n");
//removing node at begining of list
printf("\nremoving node at begining...\n");
headnd = removeAtBegining(headnd);
print(headnd);
printf("============================================================\n");
//removing node at end of list
printf("\nremoving node at end...\n");
headnd = removeAtEnd(headnd);
print(headnd);
printf("============================================================\n");
//removing node In-between of list
printf("\nremoving node at 3rd position...\n");
headnd = removeInBetween(3, headnd);
print(headnd);
printf("########## THE END #############");
}
| [
"[email protected]"
] | |
3a1e7d7b159b3c38ce0128dba846d1a26da20ffd | 528bd6c511b07472b1c6cc00a9ff91f6faa9dbcc | /programming/scripts/scripts/parsers/cheaders/printable_e.c | 5ad901d2f9b33891ee0f5c73572fa734cf003f43 | [] | no_license | tbots/docs | 15448fdfdcb10b50a958de262e2c5f9396d9bb76 | 8443141926cf4bd3949d94eae20f70963802ab5b | refs/heads/master | 2020-08-17T03:16:14.686338 | 2019-10-12T16:34:18 | 2019-10-12T16:34:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 459 | c | #include <stdio.h>
#include <ctype.h>
void printable_e(char c,int np) {
if(np) { /* display non-printable characters */
printf("[\033[90m");
switch (c) {
case '\t': printf("\\t"); break;
case ' ': printf(" "); break;
case '\n': printf("\\n"); break;
default : printf("%d",c); /* print ascii value by default */
}
printf("\033[0m]");
}
else
if(!isspace(c))
printf("%c",c);
else
printf(" ");
}
| [
"[email protected]"
] | |
5b3b80f49aae969986e1d172c36a3e3a3244ffd7 | fee328afe0308053c938aef9e42a010a26fde04c | /sosil4.c | c8f2de9570dea1c64fe8bfbb7248caf9fbf55c54 | [] | no_license | jungsoojun/homework7 | bcc401c78604bad4af2670a2ec5aa40a235866f2 | 3418ee9e83dd55bedb9a8637c69035b5632a5623 | refs/heads/master | 2021-01-20T14:29:57.778920 | 2017-05-08T11:32:58 | 2017-05-08T11:32:58 | 90,621,612 | 0 | 0 | null | null | null | null | UTF-8 | C | false | false | 67 | c | #include "sosil4.h"
void func4()
{
printf("one shot ");
}
| [
"[email protected]"
] | |
53094bfb84058c98b6db73070169d02109cc5f32 | 68032b48023e9daff30e446fee2f83886cf66d57 | /C++项目/08/学生管理系统/源程序/ExternDllHeader.h | 0a600bf4ba0caa5068bc291418f8ba2eba528318 | [] | no_license | std2312/C-PLUS-PLUS | c77c1bb7fe60fd39bc4d576300d6817e543b27bd | 5a51b124a3c7073b80579ff3b1ad79cacb85b657 | refs/heads/master | 2021-05-11T04:49:15.667040 | 2018-01-18T08:03:44 | 2018-01-18T08:03:44 | 117,946,728 | 1 | 0 | null | null | null | null | GB18030 | C | false | false | 2,054 | h |
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
// 声明RXDLL中函数
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
/*
函数原型:CString CharToLetterCode(CString string)
主要功能: 返回指定字符串的拼音简码。
参数:
String:要获得拼音简码的字符串。*/
typedef CString(_CharToLetterCode)(CString);
extern _CharToLetterCode* CharToLetterCode;
/**************************************************************
CString Padl(CString String, int digit, CString Fill,int Style)
主要功能: 在字符中前添加指定个数的字符。
参数:
String:源字符串 。
digit:字符串的长度。
fill: 添充的字符串。
Style: 决定字符串添充方式 如果为1时,在字符前填充 如果为0 在字符串后填充*/
typedef CString(_Padl)(CString,int,CString,int);
extern _Padl* Padl;
/**************************************************************
CTime CStringTOCTime(CString cDate)
主要功能: 将时间字符串转换成CTime类型。
参数:
cDate:指定字符型字符串 。 */
typedef CTime(_CStringTOCTime)(CString);
extern _CStringTOCTime* CStringTOCTime;
/**************************************************************
CString CTimeToCString(CTime date)
主要功能: 将CTime类型数据转换在时间字符串。
参数:
date:CTime类型数据 。*/
typedef CString(_CTimeToCString)(CTime);
extern _CTimeToCString* CTimeToCString;
/**************************************************************
CString MoneyToChineseCode(CString sMoney)
主要功能: 将阿拉伯数字小写金额转换成汉字大写金额
参数:
sMoney:小写金额字符串。*/
typedef CString(_MoneyToChineseCode)(CString);
extern _MoneyToChineseCode* MoneyToChineseCode;
| [
"[email protected]"
] | |
810cc49e2372bf46b4359db4c6581b69620331e3 | 7244aae24f6a5f7376501ffb4ca743c65dddb074 | /scaler/hana_scaler/tscalhist_main.C | 39d221d7d95d2dbdbabb8e19bc8d1dacf9f729d8 | [] | no_license | tgdragon/HallA-Online-Tritium | 59f61eb6ae299d8c816e436dbdf0ef18901a7447 | c01f776e56cc895d976c028e90ef2c660f1abbaa | refs/heads/master | 2020-03-23T06:09:52.193630 | 2018-10-15T15:14:38 | 2018-10-15T15:14:38 | 141,192,611 | 0 | 2 | null | 2018-07-16T20:46:27 | 2018-07-16T20:46:27 | null | UTF-8 | C | false | false | 3,438 | c | //--------------------------------------------------------
// tscalhist_main.C
//
// Test of scaler class, for reading scaler history (end-of-run)
// files and obtaining data.
// This version also fills an ntuple
// Hint: if you have two scaler history files (for L and R arm),
// try to concatenate them 'cat file1 file2 > file3' and analyze
// the resulting concatenated file3.
//
// R. Michaels, updated Mar 2005
//--------------------------------------------------------
#include <iostream>
#include <string>
#include "THaScaler.h"
#ifndef __CINT__
#include "TROOT.h"
#include "TFile.h"
#include "TH1.h"
#include "TH2.h"
#include "TProfile.h"
#include "TNtuple.h"
#include "TRandom.h"
#endif
using namespace std;
int main(int argc, char* argv[]) {
const Double_t calib_u3 = 4114; // calibrations (an example)
const Double_t calib_d10 = 12728;
const Double_t off_u3 = 167.1;
const Double_t off_d10 = 199.5;
// Initialize root and output
TROOT scalana("scalroot","Hall A scaler analysis");
TFile hfile("scalerhist.root","RECREATE","Scaler history in Hall A");
// Define the ntuple here
// 0 1 2 3 4 5 6 7 8 9 10 11
char cdata[]="run:time:u3:d10:ct1:ct2:ct3:ct4:ct5:ct6:ct7:ctacc";
int nlen = strlen(cdata);
char *string_ntup = new char[nlen+1];
strcpy(string_ntup,cdata);
TNtuple *ntup = new TNtuple("ascal","Scaler History Data",string_ntup);
Float_t farray_ntup[12]; // Note, dimension is same as size of string_ntup
cout << "Enter bank 'Right' or 'Left' (spectrometer) ->" << endl;
string bank; cin >> bank;
cout << "enter [runlo, runhi] = interval of runs to summarize ->" << endl;
int runlo; cout << "runlo: " << endl; cin >> runlo;
int runhi; cout << "runhi: " << endl; cin >> runhi;
THaScaler scaler(bank.c_str());
if (scaler.Init() == -1) { // Init for default time ("now").
cout << "Error initializing scaler "<<endl; return 1;
}
int status;
for (int run = runlo; run < runhi; run++) {
status = scaler.LoadDataHistoryFile(run); // load data from default history file
if ( status != 0 ) continue;
for (int i = 0; i < 12; i++) farray_ntup[i] = 0;
cout << "\nScalers for run = "<<run<<endl<<flush;
cout << "Time --- Beam Current (uA) ---- | --- Triggers --- "<<endl;
cout << "(min) u3 d10";
cout << " T1(Right) T3(Left) T5(coinc)"<<endl;
double time_sec = scaler.GetPulser("clock")/1024;
double curr_u3 = (scaler.GetBcm("bcm_u3")/time_sec - off_u3)/calib_u3;
double curr_d10 = (scaler.GetBcm("bcm_d10")/time_sec - off_d10)/calib_d10;
printf("%7.2f %7.2f %7.2f %d %d %d\n",
time_sec/60, curr_u3, curr_d10, scaler.GetTrig(1), scaler.GetTrig(3),
scaler.GetTrig(5));
cout << " T6 T7 Tot accepted"<<endl;
printf(" %d %d %d\n",
scaler.GetTrig(6), scaler.GetTrig(7),scaler.GetNormData(0,12));
farray_ntup[0] = run;
farray_ntup[1] = time_sec;
farray_ntup[2] = curr_u3;
farray_ntup[3] = curr_d10;
for (int itrig = 1; itrig <= 7; itrig++) farray_ntup[3+itrig]=scaler.GetTrig(itrig);
farray_ntup[11] = scaler.GetNormData(0,12);
ntup->Fill(farray_ntup);
}
hfile.Write();
hfile.Close();
return 0;
}
| [
"[email protected]"
] |