The decompiled C++ tree moves to generated-src/ (classes.h, C++20); src/ is for code written by hand. A curated function defines the generated declaration and starts its comment with its address, and source_tree.py stops emitting that body. src/rng.cpp takes over RNG (SetSeed, the constructor, Next, RandomInt, RandomFloat, Shuffle) with the shift table read from the exe as a constexpr array; src/log.h names KAGE_LogMessage's levels (1 INFO, 2 NET, 4 WARN, 8 ERROR, 16 ASSERT, from its prefix jump table). CMakeLists.txt builds src/*.cpp against generated-src/classes.h (clean with -Wall -Wextra). structs.hpp and headers.py are retired: scripts/merge_fields.py writes the merged field list, classes.h checks the layout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6843 lines
349 KiB
C++
6843 lines
349 KiB
C++
#include "classes.h"
|
|
|
|
// 00932120
|
|
void * Backdrop::render_grid_rect(void *outQuad, int x, int y, int width, int height)
|
|
{
|
|
KColor *color;
|
|
KColor local_18;
|
|
|
|
(GHIDRA_CAST<KColor *>((&local_18)))->KColor::SetFromARGB(0xffffffff);
|
|
render_quad_set_uniform_color
|
|
(outQuad,(float)x * 26.0 + (float)this[0x13c6],(float)y * 26.0 + (float)this[0x13c7],
|
|
(float)(width + x) * 26.0 + (float)this[0x13c6],
|
|
(float)(height + y) * 26.0 + (float)this[0x13c7],color);
|
|
return outQuad;
|
|
}
|
|
|
|
// 009321c0
|
|
void Backdrop::constructor()
|
|
{
|
|
char isLastRef;
|
|
void *renderTarget;
|
|
undefined4 extraout_ECX;
|
|
KColor *clearColor;
|
|
KColor *clearColor_00;
|
|
KColor *clearColor_01;
|
|
KColor *clearColor_02;
|
|
KColor clearColorValue;
|
|
undefined1 newTarget [4];
|
|
int *newTargetRefCount;
|
|
Backdrop *local_14;
|
|
void *local_10;
|
|
undefined1 *puStack_c;
|
|
undefined4 local_8;
|
|
|
|
local_8 = 0xffffffff;
|
|
puStack_c = &LAB_00b0ae2f;
|
|
local_10 = ExceptionList;
|
|
ExceptionList = &local_10;
|
|
local_14 = this;
|
|
FUN_00708c90(this);
|
|
local_8 = 0;
|
|
FUN_00708c90(extraout_ECX);
|
|
this[4] = (Backdrop)0x0;
|
|
this[5] = (Backdrop)0x0;
|
|
this[6] = (Backdrop)0x0;
|
|
this[7] = (Backdrop)0x0;
|
|
this[9] = (Backdrop)0x0;
|
|
this[10] = (Backdrop)0x0;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 4;
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((this + 0xb)))->KAGE::SmartPointer::SmartPointer((void *)0x0);
|
|
this[0xd] = (Backdrop)0x0;
|
|
this[0xe] = (Backdrop)0x0;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 6;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0xf)))))->ANM2::constructor();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 7;
|
|
_eh_vector_constructor_iterator_
|
|
(this + 0x55,0x13c,0x3f,BackdropConfig::constructor,BackdropConfig::~BackdropConfig);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 8;
|
|
this[0x13c7] = (Backdrop)0x0;
|
|
this[0x13c6] = (Backdrop)0x0;
|
|
this[0x13c9] = (Backdrop)0x0;
|
|
this[0x13c8] = (Backdrop)0x0;
|
|
*GHIDRA_CAST<undefined8 *>((this + 0x13cb)) = 0x900000005;
|
|
this[0x13ca] = (Backdrop)0xaa17414f;
|
|
this[0x13cd] = (Backdrop)0x7;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0x13cf)))))->ANM2::constructor();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 9;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0x1414)))))->ANM2::constructor();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 10;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0x1459)))))->ANM2::constructor();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0xb;
|
|
(GHIDRA_CAST<KColor *>((&clearColorValue)))->KColor::SetFromARGB(0);
|
|
renderTarget = KAGE_Graphics::create_render_target
|
|
(newTarget,0x30c,0x1d4,GHIDRA_CAST<byte *>("Floor Surface"),clearColor);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0xc;
|
|
this->shared_ptr::operator_assign(renderTarget);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0xd;
|
|
if (newTargetRefCount != GHIDRA_CAST<int *>(0x0)) {
|
|
isLastRef = (**(code **)(*newTargetRefCount + 0xc))();
|
|
if ((isLastRef != '\0') && (g_renderTargetReleaseFn != (void *)0x0)) {
|
|
(*g_renderTargetReleaseFn)(newTarget);
|
|
}
|
|
}
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0xb;
|
|
(GHIDRA_CAST<KColor *>((&clearColorValue)))->KColor::SetFromARGB(0);
|
|
renderTarget = KAGE_Graphics::create_render_target
|
|
(newTarget,0x30c,0x1d4,GHIDRA_CAST<byte *>("Wall Surface"),clearColor_00);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0xe;
|
|
(GHIDRA_CAST<shared_ptr *>((this + 2)))->shared_ptr::operator_assign(renderTarget);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0xf;
|
|
if (newTargetRefCount != GHIDRA_CAST<int *>(0x0)) {
|
|
isLastRef = (**(code **)(*newTargetRefCount + 0xc))();
|
|
if ((isLastRef != '\0') && (g_renderTargetReleaseFn != (void *)0x0)) {
|
|
(*g_renderTargetReleaseFn)(newTarget);
|
|
}
|
|
}
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0xb;
|
|
(GHIDRA_CAST<KColor *>((&clearColorValue)))->KColor::SetFromARGB(0);
|
|
renderTarget = KAGE_Graphics::create_render_target
|
|
(newTarget,0x30c,0x1d4,GHIDRA_CAST<byte *>("Floor Surface 2"),clearColor_01);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x10;
|
|
(GHIDRA_CAST<shared_ptr *>((this + 4)))->shared_ptr::operator_assign(renderTarget);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x11;
|
|
if (newTargetRefCount != GHIDRA_CAST<int *>(0x0)) {
|
|
isLastRef = (**(code **)(*newTargetRefCount + 0xc))();
|
|
if ((isLastRef != '\0') && (g_renderTargetReleaseFn != (void *)0x0)) {
|
|
(*g_renderTargetReleaseFn)(newTarget);
|
|
}
|
|
}
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0xb;
|
|
*GHIDRA_CAST<undefined1 *>((this + 8)) = 0;
|
|
(GHIDRA_CAST<KColor *>((&clearColorValue)))->KColor::SetFromARGB(0);
|
|
renderTarget = KAGE_Graphics::create_render_target
|
|
(newTarget,0x30c,0x1d4,GHIDRA_CAST<byte *>("Temp Backdrop Surface"),clearColor_02);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x12;
|
|
(GHIDRA_CAST<shared_ptr *>((this + 6)))->shared_ptr::operator_assign(renderTarget);
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0x13);
|
|
if (newTargetRefCount != GHIDRA_CAST<int *>(0x0)) {
|
|
isLastRef = (**(code **)(*newTargetRefCount + 0xc))();
|
|
if ((isLastRef != '\0') && (g_renderTargetReleaseFn != (void *)0x0)) {
|
|
(*g_renderTargetReleaseFn)(newTarget);
|
|
}
|
|
}
|
|
this[0x13ce] = (Backdrop)0x11111111;
|
|
*GHIDRA_CAST<undefined8 *>((this + 0x13cb)) = 0x900000005;
|
|
this[0x13cd] = (Backdrop)0x7;
|
|
this[0x13ca] = (Backdrop)0x11111111;
|
|
this[0x13c6] = (Backdrop)g_vectorZero.x;
|
|
this[0x13c7] = (Backdrop)g_vectorZero.y;
|
|
this[0x13c8] = (Backdrop)g_vectorZero.x;
|
|
this[0x13c9] = (Backdrop)g_vectorZero.y;
|
|
ExceptionList = local_10;
|
|
return;
|
|
}
|
|
|
|
// 00932570
|
|
void Backdrop::destructor()
|
|
{
|
|
char isLastReference;
|
|
undefined4 extraout_ECX;
|
|
undefined4 extraout_ECX_00;
|
|
void *local_10;
|
|
undefined1 *puStack_c;
|
|
undefined4 local_8;
|
|
|
|
local_8 = 0xffffffff;
|
|
puStack_c = &LAB_00b0ae50;
|
|
local_10 = ExceptionList;
|
|
ExceptionList = &local_10;
|
|
KAGE::SmartPointer<RenderTargetBase>::reset(this);
|
|
KAGE::SmartPointer<RenderTargetBase>::reset(extraout_ECX);
|
|
KAGE::SmartPointer<RenderTargetBase>::reset(extraout_ECX_00);
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((this + 0xb)))->KAGE::SmartPointer::reset((void *)0x0);
|
|
local_8 = 0;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0x1459)))))->ANM2::Reset();
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((this + 0x146d)))))->AnimationState::~AnimationState();
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((this + 0x1465)))))->AnimationState::~AnimationState();
|
|
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((this + 0x145f)))))->std::string::_Tidy_deallocate();
|
|
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((this + 0x1459)))))->std::string::_Tidy_deallocate();
|
|
local_8 = 1;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0x1414)))))->ANM2::Reset();
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((this + 0x1428)))))->AnimationState::~AnimationState();
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((this + 0x1420)))))->AnimationState::~AnimationState();
|
|
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((this + 0x141a)))))->std::string::_Tidy_deallocate();
|
|
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((this + 0x1414)))))->std::string::_Tidy_deallocate();
|
|
local_8 = 2;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0x13cf)))))->ANM2::Reset();
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((this + 0x13e3)))))->AnimationState::~AnimationState();
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((this + 0x13db)))))->AnimationState::~AnimationState();
|
|
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((this + 0x13d5)))))->std::string::_Tidy_deallocate();
|
|
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((this + 0x13cf)))))->std::string::_Tidy_deallocate();
|
|
local_8 = 0xffffffff;
|
|
_eh_vector_destructor_iterator_(this + 0x55,0x13c,0x3f,BackdropConfig::~BackdropConfig);
|
|
local_8 = 3;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0xf)))))->ANM2::Reset();
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((this + 0x23)))))->AnimationState::~AnimationState();
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((this + 0x1b)))))->AnimationState::~AnimationState();
|
|
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((this + 0x15)))))->std::string::_Tidy_deallocate();
|
|
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((this + 0xf)))))->std::string::_Tidy_deallocate();
|
|
local_8 = 4;
|
|
if (this[0xe] != (Backdrop)0x0) {
|
|
isLastReference = (**(code **)(*GHIDRA_CAST<int *>(this[0xe]) + 0xc))();
|
|
if ((isLastReference != '\0') && (g_imageReleaseFn != (void *)0x0)) {
|
|
(*g_imageReleaseFn)(this + 0xd);
|
|
}
|
|
}
|
|
local_8 = 5;
|
|
if (this[0xc] != (Backdrop)0x0) {
|
|
isLastReference = (**(code **)(*GHIDRA_CAST<int *>(this[0xc]) + 0xc))();
|
|
if ((isLastReference != '\0') && (g_imageReleaseFn != (void *)0x0)) {
|
|
(*g_imageReleaseFn)(this + 0xb);
|
|
}
|
|
}
|
|
local_8 = 6;
|
|
if (this[10] != (Backdrop)0x0) {
|
|
isLastReference = (**(code **)(*GHIDRA_CAST<int *>(this[10]) + 0xc))();
|
|
if ((isLastReference != '\0') && (g_imageReleaseFn != (void *)0x0)) {
|
|
(*g_imageReleaseFn)(this + 9);
|
|
}
|
|
}
|
|
local_8 = 7;
|
|
if (this[7] != (Backdrop)0x0) {
|
|
isLastReference = (**(code **)(*GHIDRA_CAST<int *>(this[7]) + 0xc))();
|
|
if ((isLastReference != '\0') && (g_renderTargetReleaseFn != (void *)0x0)) {
|
|
(*g_renderTargetReleaseFn)(this + 6);
|
|
}
|
|
}
|
|
local_8 = 8;
|
|
if (this[5] != (Backdrop)0x0) {
|
|
isLastReference = (**(code **)(*GHIDRA_CAST<int *>(this[5]) + 0xc))();
|
|
if ((isLastReference != '\0') && (g_renderTargetReleaseFn != (void *)0x0)) {
|
|
(*g_renderTargetReleaseFn)(this + 4);
|
|
}
|
|
}
|
|
local_8 = 9;
|
|
if (this[3] != (Backdrop)0x0) {
|
|
isLastReference = (**(code **)(*GHIDRA_CAST<int *>(this[3]) + 0xc))();
|
|
if ((isLastReference != '\0') && (g_renderTargetReleaseFn != (void *)0x0)) {
|
|
(*g_renderTargetReleaseFn)(this + 2);
|
|
}
|
|
}
|
|
local_8 = 10;
|
|
if (this[1] != (Backdrop)0x0) {
|
|
isLastReference = (**(code **)(*GHIDRA_CAST<int *>(this[1]) + 0xc))();
|
|
if ((isLastReference != '\0') && (g_renderTargetReleaseFn != (void *)0x0)) {
|
|
(*g_renderTargetReleaseFn)(this);
|
|
}
|
|
}
|
|
ExceptionList = local_10;
|
|
return;
|
|
}
|
|
|
|
// 00932810
|
|
byte Backdrop::LoadConfig(byte *xmlPath)
|
|
{
|
|
byte isJoinedPathAlive;
|
|
int *file;
|
|
int iVar2;
|
|
byte *text;
|
|
void *rootAttribute;
|
|
int iVar3;
|
|
std_string *rootText;
|
|
byte *strCursor;
|
|
byte *attrNameCursor;
|
|
uint appendLength;
|
|
std_string *psVar4;
|
|
byte *valueText;
|
|
void *freeBlock;
|
|
uint freeSize;
|
|
bool isLess;
|
|
char *pcVar5;
|
|
undefined4 *attribute;
|
|
uint cleanupFlags;
|
|
BackdropConfig config;
|
|
undefined1 xmlDoc [48];
|
|
undefined1 xmlMemoryPool [65560];
|
|
BackdropConfig defaultConfig;
|
|
std_string effectsGfxRoot;
|
|
std_string gfxRoot;
|
|
std_string gridGfxRoot;
|
|
std_string joinedPath;
|
|
std_string attrValue;
|
|
void *local_1c;
|
|
undefined1 *puStack_18;
|
|
undefined4 local_14;
|
|
bool isJoinedPathAlive;
|
|
|
|
local_14 = 0xffffffff;
|
|
puStack_18 = &LAB_00b0b036;
|
|
local_1c = ExceptionList;
|
|
freeSize = __security_cookie ^ GHIDRA_INT(register0x00000010) - 0x10U;
|
|
ExceptionList = &local_1c;
|
|
cleanupFlags = 0;
|
|
isJoinedPathAlive = false;
|
|
file = (GHIDRA_CAST<FileSystem *>((&PTR_vftable_00c37a10)))->FileSystem::Open(xmlPath,GHIDRA_CAST<int *>(0x0));
|
|
if (file == GHIDRA_CAST<int *>(0x0)) {
|
|
isJoinedPathAlive = 0;
|
|
}
|
|
else {
|
|
iVar2 = (**(code **)(*file + 4))(freeSize);
|
|
text = operator_new_tracked(iVar2 + 1);
|
|
(**(code **)(*file + 0x14))(text,1,iVar2);
|
|
text[iVar2] = 0;
|
|
(**(code **)*file)(1);
|
|
FUN_00413b90();
|
|
local_14 = 0;
|
|
pcVar5 = GHIDRA_CAST<char *>(0x9328f7);
|
|
valueText = text;
|
|
(GHIDRA_CAST<rapidxml::xml_document *>((xmlDoc)))->rapidxml::xml_document::parse(text);
|
|
isJoinedPathAlive = (byte)valueText;
|
|
freeBlock = (GHIDRA_CAST<xml_node *>((xmlDoc)))->xml_node::first_node(GHIDRA_CAST<byte *>("backdrops"),GHIDRA_INT(pcVar5),isJoinedPathAlive);
|
|
if (freeBlock == (void *)0x0) {
|
|
pcVar5 = "Could not find root node \'backdrops\' in %s\n";
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<byte *>("Could not find root node \'backdrops\' in %s\n"));
|
|
isJoinedPathAlive = (byte)xmlPath;
|
|
}
|
|
rootAttribute = (GHIDRA_CAST<xml_node *>((freeBlock)))->xml_node::first_attribute(&DAT_00b6987c,GHIDRA_UINT(pcVar5),isJoinedPathAlive);
|
|
gfxRoot._size = 0;
|
|
gfxRoot._capacity = 0xf;
|
|
gfxRoot._buf[0] = '\0';
|
|
gfxRoot._buf[1] = '\0';
|
|
gfxRoot._buf[2] = '\0';
|
|
gfxRoot._buf[3] = '\0';
|
|
valueText = &g_xmlNullStr;
|
|
if (*GHIDRA_CAST<byte **>((GHIDRA_CAST<char *>(rootAttribute) + 4)) != GHIDRA_CAST<byte *>(0x0)) {
|
|
valueText = *GHIDRA_CAST<byte **>((GHIDRA_CAST<char *>(rootAttribute) + 4));
|
|
}
|
|
strCursor = valueText;
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
strCursor = strCursor + 1;
|
|
} while (isJoinedPathAlive != 0);
|
|
freeSize = GHIDRA_INT(strCursor) - GHIDRA_INT((valueText + 1));
|
|
(GHIDRA_CAST<std::string *>((gfxRoot._buf)))->std::string::assign(valueText,freeSize);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 1;
|
|
rootAttribute =
|
|
(GHIDRA_CAST<xml_node *>((freeBlock)))->xml_node::first_attribute(GHIDRA_CAST<byte *>("gridgfxroot"),GHIDRA_UINT(valueText),(byte)freeSize);
|
|
gridGfxRoot._size = 0;
|
|
gridGfxRoot._capacity = 0xf;
|
|
gridGfxRoot._buf[0] = '\0';
|
|
gridGfxRoot._buf[1] = '\0';
|
|
gridGfxRoot._buf[2] = '\0';
|
|
gridGfxRoot._buf[3] = '\0';
|
|
valueText = &g_xmlNullStr;
|
|
if (*GHIDRA_CAST<byte **>((GHIDRA_CAST<char *>(rootAttribute) + 4)) != GHIDRA_CAST<byte *>(0x0)) {
|
|
valueText = *GHIDRA_CAST<byte **>((GHIDRA_CAST<char *>(rootAttribute) + 4));
|
|
}
|
|
strCursor = valueText;
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
strCursor = strCursor + 1;
|
|
} while (isJoinedPathAlive != 0);
|
|
freeSize = GHIDRA_INT(strCursor) - GHIDRA_INT((valueText + 1));
|
|
(GHIDRA_CAST<std::string *>((gridGfxRoot._buf)))->std::string::assign(valueText,freeSize);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 2;
|
|
rootAttribute =
|
|
xml_node::first_attribute
|
|
(freeBlock,GHIDRA_CAST<byte *>("effectsgfxroot"),GHIDRA_UINT(valueText),(byte)freeSize);
|
|
effectsGfxRoot._size = 0;
|
|
effectsGfxRoot._capacity = 0xf;
|
|
effectsGfxRoot._buf[0] = '\0';
|
|
effectsGfxRoot._buf[1] = '\0';
|
|
effectsGfxRoot._buf[2] = '\0';
|
|
effectsGfxRoot._buf[3] = '\0';
|
|
valueText = &g_xmlNullStr;
|
|
if (*GHIDRA_CAST<byte **>((GHIDRA_CAST<char *>(rootAttribute) + 4)) != GHIDRA_CAST<byte *>(0x0)) {
|
|
valueText = *GHIDRA_CAST<byte **>((GHIDRA_CAST<char *>(rootAttribute) + 4));
|
|
}
|
|
strCursor = valueText;
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
strCursor = strCursor + 1;
|
|
} while (isJoinedPathAlive != 0);
|
|
(GHIDRA_CAST<std::string *>((effectsGfxRoot._buf)))->std::string::assign(valueText,GHIDRA_INT(strCursor) - GHIDRA_INT((valueText + 1)));
|
|
(GHIDRA_CAST<BackdropConfig *>((&defaultConfig)))->BackdropConfig::constructor();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 4;
|
|
defaultConfig.backdropId = 0;
|
|
(GHIDRA_CAST<std::string *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0x78))))))->std::string::assign(GHIDRA_CAST<byte *>("gfx/grid/props_01_basement.anm2"),0x1f);
|
|
(GHIDRA_CAST<std::string *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0x90))))))->std::string::assign(GHIDRA_CAST<byte *>("gfx/grid/rocks_basement.png"),0x1b);
|
|
(GHIDRA_CAST<std::string *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0xa8))))))->std::string::assign(GHIDRA_CAST<byte *>("gfx/grid/grid_pit.png"),0x15);
|
|
(GHIDRA_CAST<std::string *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0xc0))))))->std::string::assign(GHIDRA_CAST<byte *>("gfx/grid/grid_pit_water.png"),0x1b);
|
|
(GHIDRA_CAST<std::string *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0xd8))))))->std::string::assign(GHIDRA_CAST<byte *>("gfx/grid/grid_bridge.png"),0x18);
|
|
(GHIDRA_CAST<std::string *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0xf0))))))->std::string::assign(GHIDRA_CAST<byte *>("gfx/grid/door_01_normaldoor.png"),0x1f);
|
|
(GHIDRA_CAST<std::string *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0x108))))))->std::string::assign(GHIDRA_CAST<byte *>("gfx/grid/door_08_holeinwall.png"),0x1f);
|
|
(GHIDRA_CAST<std::string *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0x120))))))->std::string::assign(GHIDRA_CAST<byte *>("gfx/grid/grid_spikes.png"),0x18);
|
|
(GHIDRA_CAST<BackdropConfig *>((GHIDRA_CAST<BackdropConfig *>((this + 0x55)))))->BackdropConfig::operator_assign(&defaultConfig);
|
|
iVar3 = config.backdropId;
|
|
config.backdropId = defaultConfig.backdropId;
|
|
for (iVar2 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(freeBlock) + 0x18)); defaultConfig.backdropId = config.backdropId,
|
|
iVar2 != 0; iVar2 = *GHIDRA_CAST<int *>((iVar2 + 0x2c))) {
|
|
(GHIDRA_CAST<std::string *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x4))))))->std::string::string(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0x4))));
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 5;
|
|
(GHIDRA_CAST<std::string *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x1c))))))->std::string::string(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0x1c))));
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 6;
|
|
(GHIDRA_CAST<std::string *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x34))))))->std::string::string(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0x34))));
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 7;
|
|
(GHIDRA_CAST<std::string *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x4c))))))->std::string::string(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0x4c))));
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 8;
|
|
config.walls = defaultConfig.walls;
|
|
config.wallVariants = defaultConfig.wallVariants;
|
|
config.floors = defaultConfig.floors;
|
|
config.floorVariants = defaultConfig.floorVariants;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config.unk1)) + 0x0))) = (undefined1)defaultConfig.unk1;
|
|
(GHIDRA_CAST<std::string *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x78))))))->std::string::string(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0x78))));
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 9;
|
|
(GHIDRA_CAST<std::string *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x90))))))->std::string::string(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0x90))));
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 10;
|
|
(GHIDRA_CAST<std::string *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xa8))))))->std::string::string(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0xa8))));
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xb;
|
|
(GHIDRA_CAST<std::string *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xc0))))))->std::string::string(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0xc0))));
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xc;
|
|
(GHIDRA_CAST<std::string *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xd8))))))->std::string::string(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0xd8))));
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xd;
|
|
(GHIDRA_CAST<std::string *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xf0))))))->std::string::string(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0xf0))));
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xe;
|
|
(GHIDRA_CAST<std::string *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x108))))))->std::string::string(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0x108))));
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xf;
|
|
(GHIDRA_CAST<std::string *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x120))))))->std::string::string(&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0x120))));
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config.waterPitsMode)) + 0x0))) = (undefined1)defaultConfig.waterPitsMode;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config.waterPitsMode)) + 0x1))) = (*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(defaultConfig.waterPitsMode)) + 0x1)));
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x10;
|
|
attribute = *GHIDRA_CAST<undefined4 **>((iVar2 + 0x20));
|
|
if (attribute != GHIDRA_CAST<undefined4 *>(0x0)) {
|
|
do {
|
|
valueText = GHIDRA_CAST<byte *>(*attribute);
|
|
attrNameCursor = s_id;
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
isLess = isJoinedPathAlive < *attrNameCursor;
|
|
if (isJoinedPathAlive != *attrNameCursor) {
|
|
LAB_00932cc1:
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_00932cc6;
|
|
}
|
|
if (isJoinedPathAlive == 0) break;
|
|
isJoinedPathAlive = strCursor[1];
|
|
isLess = isJoinedPathAlive < attrNameCursor[1];
|
|
if (isJoinedPathAlive != attrNameCursor[1]) goto LAB_00932cc1;
|
|
strCursor = strCursor + 2;
|
|
attrNameCursor = attrNameCursor + 2;
|
|
} while (isJoinedPathAlive != 0);
|
|
freeSize = 0;
|
|
LAB_00932cc6:
|
|
if (freeSize == 0) {
|
|
valueText = &g_xmlNullStr;
|
|
if (GHIDRA_CAST<byte *>(attribute[1]) != GHIDRA_CAST<byte *>(0x0)) {
|
|
valueText = GHIDRA_CAST<byte *>(attribute[1]);
|
|
}
|
|
config.backdropId = atoi(GHIDRA_CAST<char *>(valueText));
|
|
}
|
|
else {
|
|
attrNameCursor = &DAT_00b66fec;
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
isLess = isJoinedPathAlive < *attrNameCursor;
|
|
if (isJoinedPathAlive != *attrNameCursor) {
|
|
LAB_00932d21:
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_00932d26;
|
|
}
|
|
if (isJoinedPathAlive == 0) break;
|
|
isJoinedPathAlive = strCursor[1];
|
|
isLess = isJoinedPathAlive < attrNameCursor[1];
|
|
if (isJoinedPathAlive != attrNameCursor[1]) goto LAB_00932d21;
|
|
strCursor = strCursor + 2;
|
|
attrNameCursor = attrNameCursor + 2;
|
|
} while (isJoinedPathAlive != 0);
|
|
freeSize = 0;
|
|
LAB_00932d26:
|
|
if (freeSize == 0) {
|
|
valueText = &g_xmlNullStr;
|
|
if (GHIDRA_CAST<byte *>(attribute[1]) != GHIDRA_CAST<byte *>(0x0)) {
|
|
valueText = GHIDRA_CAST<byte *>(attribute[1]);
|
|
}
|
|
strCursor = valueText;
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
strCursor = strCursor + 1;
|
|
} while (isJoinedPathAlive != 0);
|
|
appendLength = GHIDRA_INT(strCursor) - GHIDRA_INT((valueText + 1));
|
|
if (0x7fffffff - gfxRoot._size < appendLength) {
|
|
LAB_00934421:
|
|
/* WARNING: Subroutine does not return */
|
|
std::string::_Xlen();
|
|
}
|
|
psVar4 = &gfxRoot;
|
|
if (0xf < gfxRoot._capacity) {
|
|
psVar4 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<std_string *>(gfxRoot._buf))) + 0x0)));
|
|
}
|
|
(GHIDRA_CAST<std::string *>((joinedPath._buf)))->std::string::concat(GHIDRA_INT(this),GHIDRA_CAST<std_string *>(appendLength),
|
|
GHIDRA_CAST<byte *>(psVar4),gfxRoot._size,valueText,appendLength);
|
|
(GHIDRA_CAST<std::string *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x4))))))->std::string::_Tidy_deallocate();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x4))) = joinedPath._buf[0];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x5))) = joinedPath._buf[1];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x6))) = joinedPath._buf[2];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x7))) = joinedPath._buf[3];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x8))) = joinedPath._buf[4];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x9))) = joinedPath._buf[5];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xa))) = joinedPath._buf[6];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xb))) = joinedPath._buf[7];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xc))) = joinedPath._buf[8];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xd))) = joinedPath._buf[9];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xe))) = joinedPath._buf[10];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xf))) = joinedPath._buf[0xb];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x10))) = joinedPath._buf[0xc];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x11))) = joinedPath._buf[0xd];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x12))) = joinedPath._buf[0xe];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x13))) = joinedPath._buf[0xf];
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x14))) = joinedPath._size;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x18))) = joinedPath._capacity;
|
|
}
|
|
else {
|
|
attrNameCursor = &DAT_00b7b60c;
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
isLess = isJoinedPathAlive < *attrNameCursor;
|
|
if (isJoinedPathAlive != *attrNameCursor) {
|
|
LAB_00932de2:
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_00932de7;
|
|
}
|
|
if (isJoinedPathAlive == 0) break;
|
|
isJoinedPathAlive = strCursor[1];
|
|
isLess = isJoinedPathAlive < attrNameCursor[1];
|
|
if (isJoinedPathAlive != attrNameCursor[1]) goto LAB_00932de2;
|
|
strCursor = strCursor + 2;
|
|
attrNameCursor = attrNameCursor + 2;
|
|
} while (isJoinedPathAlive != 0);
|
|
freeSize = 0;
|
|
LAB_00932de7:
|
|
if (freeSize == 0) {
|
|
valueText = &g_xmlNullStr;
|
|
if (GHIDRA_CAST<byte *>(attribute[1]) != GHIDRA_CAST<byte *>(0x0)) {
|
|
valueText = GHIDRA_CAST<byte *>(attribute[1]);
|
|
}
|
|
strCursor = valueText;
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
strCursor = strCursor + 1;
|
|
} while (isJoinedPathAlive != 0);
|
|
psVar4 = GHIDRA_CAST<std_string *>((strCursor + -GHIDRA_INT((valueText + 1))));
|
|
if (GHIDRA_CAST<std_string *>((0x7fffffff - gfxRoot._size)) < psVar4) goto LAB_00934421;
|
|
rootText = &gfxRoot;
|
|
if (0xf < gfxRoot._capacity) {
|
|
rootText = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<std_string *>(gfxRoot._buf))) + 0x0)));
|
|
}
|
|
(GHIDRA_CAST<std::string *>((joinedPath._buf)))->std::string::concat(GHIDRA_INT(this),psVar4,GHIDRA_CAST<byte *>(rootText),gfxRoot._size,
|
|
valueText,GHIDRA_UINT(psVar4));
|
|
(GHIDRA_CAST<std::string *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x34))))))->std::string::_Tidy_deallocate();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x34))) = joinedPath._buf[0];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x35))) = joinedPath._buf[1];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x36))) = joinedPath._buf[2];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x37))) = joinedPath._buf[3];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x38))) = joinedPath._buf[4];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x39))) = joinedPath._buf[5];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x3a))) = joinedPath._buf[6];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x3b))) = joinedPath._buf[7];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x3c))) = joinedPath._buf[8];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x3d))) = joinedPath._buf[9];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x3e))) = joinedPath._buf[10];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x3f))) = joinedPath._buf[0xb];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x40))) = joinedPath._buf[0xc];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x41))) = joinedPath._buf[0xd];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x42))) = joinedPath._buf[0xe];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x43))) = joinedPath._buf[0xf];
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x44))) = joinedPath._size;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x48))) = joinedPath._capacity;
|
|
}
|
|
else {
|
|
attrNameCursor = &DAT_00b7b600;
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
isLess = isJoinedPathAlive < *attrNameCursor;
|
|
if (isJoinedPathAlive != *attrNameCursor) {
|
|
LAB_00932ea3:
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_00932ea8;
|
|
}
|
|
if (isJoinedPathAlive == 0) break;
|
|
isJoinedPathAlive = strCursor[1];
|
|
isLess = isJoinedPathAlive < attrNameCursor[1];
|
|
if (isJoinedPathAlive != attrNameCursor[1]) goto LAB_00932ea3;
|
|
strCursor = strCursor + 2;
|
|
attrNameCursor = attrNameCursor + 2;
|
|
} while (isJoinedPathAlive != 0);
|
|
freeSize = 0;
|
|
LAB_00932ea8:
|
|
if (freeSize == 0) {
|
|
valueText = &g_xmlNullStr;
|
|
if (GHIDRA_CAST<byte *>(attribute[1]) != GHIDRA_CAST<byte *>(0x0)) {
|
|
valueText = GHIDRA_CAST<byte *>(attribute[1]);
|
|
}
|
|
strCursor = valueText;
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
strCursor = strCursor + 1;
|
|
} while (isJoinedPathAlive != 0);
|
|
psVar4 = GHIDRA_CAST<std_string *>((strCursor + -GHIDRA_INT((valueText + 1))));
|
|
if (GHIDRA_CAST<std_string *>((0x7fffffff - gfxRoot._size)) < psVar4) goto LAB_00934421;
|
|
rootText = &gfxRoot;
|
|
if (0xf < gfxRoot._capacity) {
|
|
rootText = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<std_string *>(gfxRoot._buf))) + 0x0)));
|
|
}
|
|
(GHIDRA_CAST<std::string *>((joinedPath._buf)))->std::string::concat(GHIDRA_INT(this),psVar4,GHIDRA_CAST<byte *>(rootText),
|
|
gfxRoot._size,valueText,GHIDRA_UINT(psVar4));
|
|
(GHIDRA_CAST<std::string *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x4c))))))->std::string::_Tidy_deallocate();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x4c))) = joinedPath._buf[0];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x4d))) = joinedPath._buf[1];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x4e))) = joinedPath._buf[2];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x4f))) = joinedPath._buf[3];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x50))) = joinedPath._buf[4];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x51))) = joinedPath._buf[5];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x52))) = joinedPath._buf[6];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x53))) = joinedPath._buf[7];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x54))) = joinedPath._buf[8];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x55))) = joinedPath._buf[9];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x56))) = joinedPath._buf[10];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x57))) = joinedPath._buf[0xb];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x58))) = joinedPath._buf[0xc];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x59))) = joinedPath._buf[0xd];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x5a))) = joinedPath._buf[0xe];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x5b))) = joinedPath._buf[0xf];
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x5c))) = joinedPath._size;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x60))) = joinedPath._capacity;
|
|
}
|
|
else {
|
|
pcVar5 = "watergfx";
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
isLess = isJoinedPathAlive < (byte)*pcVar5;
|
|
if (isJoinedPathAlive != *pcVar5) {
|
|
LAB_00932f64:
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_00932f69;
|
|
}
|
|
if (isJoinedPathAlive == 0) break;
|
|
isJoinedPathAlive = strCursor[1];
|
|
isLess = isJoinedPathAlive < (byte)pcVar5[1];
|
|
if (isJoinedPathAlive != pcVar5[1]) goto LAB_00932f64;
|
|
strCursor = strCursor + 2;
|
|
pcVar5 = pcVar5 + 2;
|
|
} while (isJoinedPathAlive != 0);
|
|
freeSize = 0;
|
|
LAB_00932f69:
|
|
if (freeSize == 0) {
|
|
valueText = &g_xmlNullStr;
|
|
if (GHIDRA_CAST<byte *>(attribute[1]) != GHIDRA_CAST<byte *>(0x0)) {
|
|
valueText = GHIDRA_CAST<byte *>(attribute[1]);
|
|
}
|
|
strCursor = valueText;
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
strCursor = strCursor + 1;
|
|
} while (isJoinedPathAlive != 0);
|
|
psVar4 = GHIDRA_CAST<std_string *>((strCursor + -GHIDRA_INT((valueText + 1))));
|
|
if (GHIDRA_CAST<std_string *>((0x7fffffff - gfxRoot._size)) < psVar4) goto LAB_00934421;
|
|
rootText = &gfxRoot;
|
|
if (0xf < gfxRoot._capacity) {
|
|
rootText = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<std_string *>(gfxRoot._buf))) + 0x0)));
|
|
}
|
|
(GHIDRA_CAST<std::string *>((joinedPath._buf)))->std::string::concat(GHIDRA_INT(this),psVar4,GHIDRA_CAST<byte *>(rootText),
|
|
gfxRoot._size,valueText,GHIDRA_UINT(psVar4));
|
|
(GHIDRA_CAST<std::string *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x1c))))))->std::string::_Tidy_deallocate();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x1c))) = joinedPath._buf[0];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x1d))) = joinedPath._buf[1];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x1e))) = joinedPath._buf[2];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x1f))) = joinedPath._buf[3];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x20))) = joinedPath._buf[4];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x21))) = joinedPath._buf[5];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x22))) = joinedPath._buf[6];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x23))) = joinedPath._buf[7];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x24))) = joinedPath._buf[8];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x25))) = joinedPath._buf[9];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x26))) = joinedPath._buf[10];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x27))) = joinedPath._buf[0xb];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x28))) = joinedPath._buf[0xc];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x29))) = joinedPath._buf[0xd];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x2a))) = joinedPath._buf[0xe];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x2b))) = joinedPath._buf[0xf];
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x2c))) = joinedPath._size;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x30))) = joinedPath._capacity;
|
|
}
|
|
else {
|
|
pcVar5 = "walls";
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
isLess = isJoinedPathAlive < (byte)*pcVar5;
|
|
if (isJoinedPathAlive != *pcVar5) {
|
|
LAB_00933030:
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_00933035;
|
|
}
|
|
if (isJoinedPathAlive == 0) break;
|
|
isJoinedPathAlive = strCursor[1];
|
|
isLess = isJoinedPathAlive < (byte)pcVar5[1];
|
|
if (isJoinedPathAlive != pcVar5[1]) goto LAB_00933030;
|
|
strCursor = strCursor + 2;
|
|
pcVar5 = pcVar5 + 2;
|
|
} while (isJoinedPathAlive != 0);
|
|
freeSize = 0;
|
|
LAB_00933035:
|
|
if (freeSize == 0) {
|
|
valueText = &g_xmlNullStr;
|
|
if (GHIDRA_CAST<byte *>(attribute[1]) != GHIDRA_CAST<byte *>(0x0)) {
|
|
valueText = GHIDRA_CAST<byte *>(attribute[1]);
|
|
}
|
|
config.walls = atoi(GHIDRA_CAST<char *>(valueText));
|
|
}
|
|
else {
|
|
pcVar5 = "wallvariants";
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
isLess = isJoinedPathAlive < (byte)*pcVar5;
|
|
if (isJoinedPathAlive != *pcVar5) {
|
|
LAB_00933090:
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_00933095;
|
|
}
|
|
if (isJoinedPathAlive == 0) break;
|
|
isJoinedPathAlive = strCursor[1];
|
|
isLess = isJoinedPathAlive < (byte)pcVar5[1];
|
|
if (isJoinedPathAlive != pcVar5[1]) goto LAB_00933090;
|
|
strCursor = strCursor + 2;
|
|
pcVar5 = pcVar5 + 2;
|
|
} while (isJoinedPathAlive != 0);
|
|
freeSize = 0;
|
|
LAB_00933095:
|
|
if (freeSize == 0) {
|
|
valueText = &g_xmlNullStr;
|
|
if (GHIDRA_CAST<byte *>(attribute[1]) != GHIDRA_CAST<byte *>(0x0)) {
|
|
valueText = GHIDRA_CAST<byte *>(attribute[1]);
|
|
}
|
|
config.wallVariants = atoi(GHIDRA_CAST<char *>(valueText));
|
|
}
|
|
else {
|
|
pcVar5 = "floors";
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
isLess = isJoinedPathAlive < (byte)*pcVar5;
|
|
if (isJoinedPathAlive != *pcVar5) {
|
|
LAB_009330f0:
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_009330f5;
|
|
}
|
|
if (isJoinedPathAlive == 0) break;
|
|
isJoinedPathAlive = strCursor[1];
|
|
isLess = isJoinedPathAlive < (byte)pcVar5[1];
|
|
if (isJoinedPathAlive != pcVar5[1]) goto LAB_009330f0;
|
|
strCursor = strCursor + 2;
|
|
pcVar5 = pcVar5 + 2;
|
|
} while (isJoinedPathAlive != 0);
|
|
freeSize = 0;
|
|
LAB_009330f5:
|
|
if (freeSize == 0) {
|
|
valueText = &g_xmlNullStr;
|
|
if (GHIDRA_CAST<byte *>(attribute[1]) != GHIDRA_CAST<byte *>(0x0)) {
|
|
valueText = GHIDRA_CAST<byte *>(attribute[1]);
|
|
}
|
|
config.floors = atoi(GHIDRA_CAST<char *>(valueText));
|
|
}
|
|
else {
|
|
pcVar5 = "floorvariants";
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
isLess = isJoinedPathAlive < (byte)*pcVar5;
|
|
if (isJoinedPathAlive != *pcVar5) {
|
|
LAB_00933150:
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_00933155;
|
|
}
|
|
if (isJoinedPathAlive == 0) break;
|
|
isJoinedPathAlive = strCursor[1];
|
|
isLess = isJoinedPathAlive < (byte)pcVar5[1];
|
|
if (isJoinedPathAlive != pcVar5[1]) goto LAB_00933150;
|
|
strCursor = strCursor + 2;
|
|
pcVar5 = pcVar5 + 2;
|
|
} while (isJoinedPathAlive != 0);
|
|
freeSize = 0;
|
|
LAB_00933155:
|
|
if (freeSize == 0) {
|
|
valueText = &g_xmlNullStr;
|
|
if (GHIDRA_CAST<byte *>(attribute[1]) != GHIDRA_CAST<byte *>(0x0)) {
|
|
valueText = GHIDRA_CAST<byte *>(attribute[1]);
|
|
}
|
|
config.floorVariants = atoi(GHIDRA_CAST<char *>(valueText));
|
|
}
|
|
else {
|
|
pcVar5 = "fullimage";
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
isLess = isJoinedPathAlive < (byte)*pcVar5;
|
|
if (isJoinedPathAlive != *pcVar5) {
|
|
LAB_009331b0:
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_009331b5;
|
|
}
|
|
if (isJoinedPathAlive == 0) break;
|
|
isJoinedPathAlive = strCursor[1];
|
|
isLess = isJoinedPathAlive < (byte)pcVar5[1];
|
|
if (isJoinedPathAlive != pcVar5[1]) goto LAB_009331b0;
|
|
strCursor = strCursor + 2;
|
|
pcVar5 = pcVar5 + 2;
|
|
} while (isJoinedPathAlive != 0);
|
|
freeSize = 0;
|
|
LAB_009331b5:
|
|
if (freeSize == 0) {
|
|
attrValue._buf[0] = '\0';
|
|
attrValue._buf[1] = '\0';
|
|
attrValue._buf[2] = '\0';
|
|
attrValue._buf[3] = '\0';
|
|
attrValue._size = 0;
|
|
attrValue._capacity = 0xf;
|
|
valueText = &g_xmlNullStr;
|
|
if (GHIDRA_CAST<byte *>(attribute[1]) != GHIDRA_CAST<byte *>(0x0)) {
|
|
valueText = GHIDRA_CAST<byte *>(attribute[1]);
|
|
}
|
|
strCursor = valueText;
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
strCursor = strCursor + 1;
|
|
} while (isJoinedPathAlive != 0);
|
|
(GHIDRA_CAST<std::string *>((attrValue._buf)))->std::string::assign(valueText,
|
|
GHIDRA_INT(strCursor) - GHIDRA_INT((valueText + 1)));
|
|
if (attrValue._size == 0) {
|
|
LAB_009332c2:
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config.unk1)) + 0x0))) = 0;
|
|
}
|
|
else {
|
|
psVar4 = &attrValue;
|
|
if (0xf < attrValue._capacity) {
|
|
psVar4 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<std_string *>(attrValue._buf))) + 0x0)));
|
|
}
|
|
if (attrValue._size == 4) {
|
|
if ((*GHIDRA_CAST<int *>(psVar4->_buf) == 0x65757274) ||
|
|
((((isJoinedPathAlive = (byte)*GHIDRA_CAST<int *>(psVar4->_buf), isLess = isJoinedPathAlive < 0x74,
|
|
isJoinedPathAlive == 0x74 &&
|
|
(isLess = (byte)psVar4->_buf[1] < 0x72,
|
|
psVar4->_buf[1] == 0x72)) &&
|
|
(isLess = (byte)psVar4->_buf[2] < 0x75,
|
|
psVar4->_buf[2] == 0x75)) &&
|
|
(isLess = (byte)psVar4->_buf[3] < 0x65,
|
|
psVar4->_buf[3] == 0x65)))) {
|
|
freeSize = 0;
|
|
}
|
|
else {
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
}
|
|
if (freeSize != 0) goto LAB_0093325c;
|
|
}
|
|
else {
|
|
LAB_0093325c:
|
|
psVar4 = &attrValue;
|
|
if (0xf < attrValue._capacity) {
|
|
psVar4 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<std_string *>(attrValue._buf))) + 0x0)));
|
|
}
|
|
if (attrValue._size == 4) {
|
|
if ((*GHIDRA_CAST<int *>(psVar4->_buf) == 0x65757254) ||
|
|
(((isJoinedPathAlive = (byte)*GHIDRA_CAST<int *>(psVar4->_buf), isLess = isJoinedPathAlive < 0x54,
|
|
isJoinedPathAlive == 0x54 &&
|
|
(isLess = (byte)psVar4->_buf[1] < 0x72,
|
|
psVar4->_buf[1] == 0x72)) &&
|
|
((isLess = (byte)psVar4->_buf[2] < 0x75,
|
|
psVar4->_buf[2] == 0x75 &&
|
|
(isLess = (byte)psVar4->_buf[3] < 0x65,
|
|
psVar4->_buf[3] == 0x65)))))) {
|
|
freeSize = 0;
|
|
}
|
|
else {
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
}
|
|
if (freeSize == 0) goto LAB_009332b9;
|
|
}
|
|
psVar4 = &attrValue;
|
|
if (0xf < attrValue._capacity) {
|
|
psVar4 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<std_string *>(attrValue._buf))) + 0x0)));
|
|
}
|
|
iVar3 = atoi(psVar4->_buf);
|
|
if (iVar3 == 0) goto LAB_009332c2;
|
|
}
|
|
LAB_009332b9:
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config.unk1)) + 0x0))) = 1;
|
|
}
|
|
if (0xf < attrValue._capacity) {
|
|
freeSize = attrValue._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)attrValue._buf)) + 0x0)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(attrValue._buf)) + 0x0))) + -4);
|
|
freeSize = attrValue._capacity + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(attrValue._buf)) + 0x0))) - GHIDRA_INT(freeBlock)) - 4U)
|
|
goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
}
|
|
else {
|
|
pcVar5 = "props";
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
isLess = isJoinedPathAlive < (byte)*pcVar5;
|
|
if (isJoinedPathAlive != *pcVar5) {
|
|
LAB_00933337:
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_0093333c;
|
|
}
|
|
if (isJoinedPathAlive == 0) break;
|
|
isJoinedPathAlive = strCursor[1];
|
|
isLess = isJoinedPathAlive < (byte)pcVar5[1];
|
|
if (isJoinedPathAlive != pcVar5[1]) goto LAB_00933337;
|
|
strCursor = strCursor + 2;
|
|
pcVar5 = pcVar5 + 2;
|
|
} while (isJoinedPathAlive != 0);
|
|
freeSize = 0;
|
|
LAB_0093333c:
|
|
if (freeSize == 0) {
|
|
valueText = GHIDRA_CAST<byte *>(attribute[1]);
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
if (*strCursor == 0) {
|
|
attrValue._buf[0] = '\0';
|
|
attrValue._buf[1] = '\0';
|
|
attrValue._buf[2] = '\0';
|
|
attrValue._buf[3] = '\0';
|
|
psVar4 = &attrValue;
|
|
attrValue._capacity = 0xf;
|
|
cleanupFlags = cleanupFlags | 2;
|
|
attrValue._size = 0;
|
|
}
|
|
else {
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
valueText = strCursor;
|
|
do {
|
|
isJoinedPathAlive = *valueText;
|
|
valueText = valueText + 1;
|
|
} while (isJoinedPathAlive != 0);
|
|
psVar4 = GHIDRA_CAST<std_string *>((valueText + -GHIDRA_INT((strCursor + 1))));
|
|
if (GHIDRA_CAST<std_string *>((0x7fffffff - gridGfxRoot._size)) < psVar4)
|
|
goto LAB_00934421;
|
|
rootText = &gridGfxRoot;
|
|
if (0xf < gridGfxRoot._capacity) {
|
|
rootText = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<std_string *>(gridGfxRoot._buf))) + 0x0)));
|
|
}
|
|
(GHIDRA_CAST<std::string *>((joinedPath._buf)))->std::string::concat(GHIDRA_INT(this),psVar4,
|
|
GHIDRA_CAST<byte *>(rootText),gridGfxRoot._size,strCursor,
|
|
GHIDRA_UINT(psVar4));
|
|
psVar4 = &joinedPath;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x11;
|
|
isJoinedPathAlive = true;
|
|
}
|
|
(GHIDRA_CAST<std::string *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x78))))))->std::string::_Tidy_deallocate();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x78))) = psVar4->_buf[0];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x79))) = psVar4->_buf[1];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x7a))) = psVar4->_buf[2];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x7b))) = psVar4->_buf[3];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x7c))) = psVar4->_buf[4];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x7d))) = psVar4->_buf[5];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x7e))) = psVar4->_buf[6];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x7f))) = psVar4->_buf[7];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x80))) = psVar4->_buf[8];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x81))) = psVar4->_buf[9];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x82))) = psVar4->_buf[10];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x83))) = psVar4->_buf[0xb];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x84))) = psVar4->_buf[0xc];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x85))) = psVar4->_buf[0xd];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x86))) = psVar4->_buf[0xe];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x87))) = psVar4->_buf[0xf];
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x88))) = psVar4->_size;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x8c))) = psVar4->_capacity;
|
|
psVar4->_size = 0;
|
|
psVar4->_capacity = 0xf;
|
|
psVar4->_buf[0] = '\0';
|
|
if (((cleanupFlags & 2) != 0) &&
|
|
(cleanupFlags = cleanupFlags & 0xfffffffd,
|
|
0xf < attrValue._capacity)) {
|
|
freeSize = attrValue._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)attrValue._buf)) + 0x0)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(attrValue._buf)) + 0x0))) + -4);
|
|
freeSize = attrValue._capacity + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(attrValue._buf)) + 0x0))) - GHIDRA_INT(freeBlock)) - 4U)
|
|
goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x10;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))) = 0;
|
|
if ((isJoinedPathAlive) &&
|
|
(isJoinedPathAlive = false, 0xf < joinedPath._capacity)) {
|
|
freeSize = joinedPath._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)joinedPath._buf)) + 0x0)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(joinedPath._buf)) + 0x0))) + -4);
|
|
freeSize = joinedPath._capacity + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(joinedPath._buf)) + 0x0))) - GHIDRA_INT(freeBlock)) - 4U)
|
|
goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
}
|
|
else {
|
|
pcVar5 = "rocks";
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
isLess = isJoinedPathAlive < (byte)*pcVar5;
|
|
if (isJoinedPathAlive != *pcVar5) {
|
|
LAB_009334f4:
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_009334f9;
|
|
}
|
|
if (isJoinedPathAlive == 0) break;
|
|
isJoinedPathAlive = strCursor[1];
|
|
isLess = isJoinedPathAlive < (byte)pcVar5[1];
|
|
if (isJoinedPathAlive != pcVar5[1]) goto LAB_009334f4;
|
|
strCursor = strCursor + 2;
|
|
pcVar5 = pcVar5 + 2;
|
|
} while (isJoinedPathAlive != 0);
|
|
freeSize = 0;
|
|
LAB_009334f9:
|
|
if (freeSize == 0) {
|
|
valueText = GHIDRA_CAST<byte *>(attribute[1]);
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
if (*strCursor == 0) {
|
|
attrValue._buf[0] = '\0';
|
|
attrValue._buf[1] = '\0';
|
|
attrValue._buf[2] = '\0';
|
|
attrValue._buf[3] = '\0';
|
|
psVar4 = &attrValue;
|
|
attrValue._capacity = 0xf;
|
|
cleanupFlags = cleanupFlags | 8;
|
|
attrValue._size = 0;
|
|
}
|
|
else {
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
valueText = strCursor;
|
|
do {
|
|
isJoinedPathAlive = *valueText;
|
|
valueText = valueText + 1;
|
|
} while (isJoinedPathAlive != 0);
|
|
psVar4 = GHIDRA_CAST<std_string *>((valueText + -GHIDRA_INT((strCursor + 1))));
|
|
if (GHIDRA_CAST<std_string *>((0x7fffffff - gridGfxRoot._size)) < psVar4)
|
|
goto LAB_00934421;
|
|
rootText = &gridGfxRoot;
|
|
if (0xf < gridGfxRoot._capacity) {
|
|
rootText = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<std_string *>(gridGfxRoot._buf))) + 0x0)));
|
|
}
|
|
(GHIDRA_CAST<std::string *>((joinedPath._buf)))->std::string::concat(GHIDRA_INT(this),psVar4,
|
|
GHIDRA_CAST<byte *>(rootText),gridGfxRoot._size,strCursor
|
|
,GHIDRA_UINT(psVar4));
|
|
psVar4 = &joinedPath;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x12;
|
|
cleanupFlags = cleanupFlags | 0x200004;
|
|
}
|
|
(GHIDRA_CAST<std::string *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x90))))))->std::string::_Tidy_deallocate();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x90))) = psVar4->_buf[0];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x91))) = psVar4->_buf[1];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x92))) = psVar4->_buf[2];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x93))) = psVar4->_buf[3];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x94))) = psVar4->_buf[4];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x95))) = psVar4->_buf[5];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x96))) = psVar4->_buf[6];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x97))) = psVar4->_buf[7];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x98))) = psVar4->_buf[8];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x99))) = psVar4->_buf[9];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x9a))) = psVar4->_buf[10];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x9b))) = psVar4->_buf[0xb];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x9c))) = psVar4->_buf[0xc];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x9d))) = psVar4->_buf[0xd];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x9e))) = psVar4->_buf[0xe];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x9f))) = psVar4->_buf[0xf];
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0xa0))) = psVar4->_size;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0xa4))) = psVar4->_capacity;
|
|
psVar4->_size = 0;
|
|
psVar4->_capacity = 0xf;
|
|
psVar4->_buf[0] = '\0';
|
|
if (((cleanupFlags & 8) != 0) &&
|
|
(cleanupFlags = cleanupFlags & 0xfffffff7,
|
|
0xf < attrValue._capacity)) {
|
|
freeSize = attrValue._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)attrValue._buf)) + 0x0)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(attrValue._buf)) + 0x0))) + -4);
|
|
freeSize = attrValue._capacity + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(attrValue._buf)) + 0x0))) - GHIDRA_INT(freeBlock)) - 4U)
|
|
goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x10;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))) = 0;
|
|
if (((cleanupFlags & 4) != 0) &&
|
|
(cleanupFlags = cleanupFlags & 0xfffffffb,
|
|
0xf < joinedPath._capacity)) {
|
|
freeSize = joinedPath._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)joinedPath._buf)) + 0x0)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(joinedPath._buf)) + 0x0))) + -4);
|
|
freeSize = joinedPath._capacity + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(joinedPath._buf)) + 0x0))) - GHIDRA_INT(freeBlock)) - 4U)
|
|
goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
}
|
|
else {
|
|
attrNameCursor = &DAT_00b68fb8;
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
isLess = isJoinedPathAlive < *attrNameCursor;
|
|
if (isJoinedPathAlive != *attrNameCursor) {
|
|
LAB_009336b0:
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_009336b5;
|
|
}
|
|
if (isJoinedPathAlive == 0) break;
|
|
isJoinedPathAlive = strCursor[1];
|
|
isLess = isJoinedPathAlive < attrNameCursor[1];
|
|
if (isJoinedPathAlive != attrNameCursor[1]) goto LAB_009336b0;
|
|
strCursor = strCursor + 2;
|
|
attrNameCursor = attrNameCursor + 2;
|
|
} while (isJoinedPathAlive != 0);
|
|
freeSize = 0;
|
|
LAB_009336b5:
|
|
if (freeSize == 0) {
|
|
valueText = GHIDRA_CAST<byte *>(attribute[1]);
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
if (*strCursor == 0) {
|
|
attrValue._buf[0] = '\0';
|
|
attrValue._buf[1] = '\0';
|
|
attrValue._buf[2] = '\0';
|
|
attrValue._buf[3] = '\0';
|
|
psVar4 = &attrValue;
|
|
attrValue._capacity = 0xf;
|
|
cleanupFlags = cleanupFlags | 0x20;
|
|
attrValue._size = 0;
|
|
}
|
|
else {
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
valueText = strCursor;
|
|
do {
|
|
isJoinedPathAlive = *valueText;
|
|
valueText = valueText + 1;
|
|
} while (isJoinedPathAlive != 0);
|
|
psVar4 = GHIDRA_CAST<std_string *>((valueText + -GHIDRA_INT((strCursor + 1))));
|
|
if (GHIDRA_CAST<std_string *>((0x7fffffff - gridGfxRoot._size)) < psVar4)
|
|
goto LAB_00934421;
|
|
rootText = &gridGfxRoot;
|
|
if (0xf < gridGfxRoot._capacity) {
|
|
rootText = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<std_string *>(gridGfxRoot._buf))) + 0x0)));
|
|
}
|
|
(GHIDRA_CAST<std::string *>((joinedPath._buf)))->std::string::concat(GHIDRA_INT(this),psVar4,
|
|
GHIDRA_CAST<byte *>(rootText),gridGfxRoot._size,
|
|
strCursor,GHIDRA_UINT(psVar4));
|
|
psVar4 = &joinedPath;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x13;
|
|
cleanupFlags = cleanupFlags | 0x400010;
|
|
}
|
|
(GHIDRA_CAST<std::string *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xa8))))))->std::string::_Tidy_deallocate();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xa8))) = psVar4->_buf[0];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xa9))) = psVar4->_buf[1];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xaa))) = psVar4->_buf[2];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xab))) = psVar4->_buf[3];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xac))) = psVar4->_buf[4];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xad))) = psVar4->_buf[5];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xae))) = psVar4->_buf[6];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xaf))) = psVar4->_buf[7];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xb0))) = psVar4->_buf[8];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xb1))) = psVar4->_buf[9];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xb2))) = psVar4->_buf[10];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xb3))) = psVar4->_buf[0xb];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xb4))) = psVar4->_buf[0xc];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xb5))) = psVar4->_buf[0xd];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xb6))) = psVar4->_buf[0xe];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xb7))) = psVar4->_buf[0xf];
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0xb8))) = psVar4->_size;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0xbc))) = psVar4->_capacity;
|
|
psVar4->_size = 0;
|
|
psVar4->_capacity = 0xf;
|
|
psVar4->_buf[0] = '\0';
|
|
if (((cleanupFlags & 0x20) != 0) &&
|
|
(cleanupFlags = cleanupFlags & 0xffffffdf,
|
|
0xf < attrValue._capacity)) {
|
|
freeSize = attrValue._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)attrValue._buf)) + 0x0)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(attrValue._buf)) + 0x0))) + -4);
|
|
freeSize = attrValue._capacity + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(attrValue._buf)) + 0x0))) - GHIDRA_INT(freeBlock)) - 4U)
|
|
goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x10;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))) = 0;
|
|
if ((cleanupFlags & 0x10) != 0) {
|
|
cleanupFlags = cleanupFlags & 0xffffffef;
|
|
LAB_00933f46:
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))) = 0;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x10;
|
|
(GHIDRA_CAST<std::string *>((joinedPath._buf)))->std::string::_Tidy_deallocate();
|
|
}
|
|
}
|
|
else {
|
|
pcVar5 = "waterpit";
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
isLess = isJoinedPathAlive < (byte)*pcVar5;
|
|
if (isJoinedPathAlive != *pcVar5) {
|
|
LAB_00933820:
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_00933825;
|
|
}
|
|
if (isJoinedPathAlive == 0) break;
|
|
isJoinedPathAlive = strCursor[1];
|
|
isLess = isJoinedPathAlive < (byte)pcVar5[1];
|
|
if (isJoinedPathAlive != pcVar5[1]) goto LAB_00933820;
|
|
strCursor = strCursor + 2;
|
|
pcVar5 = pcVar5 + 2;
|
|
} while (isJoinedPathAlive != 0);
|
|
freeSize = 0;
|
|
LAB_00933825:
|
|
if (freeSize == 0) {
|
|
valueText = GHIDRA_CAST<byte *>(attribute[1]);
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
if (*strCursor == 0) {
|
|
attrValue._buf[0] = '\0';
|
|
attrValue._buf[1] = '\0';
|
|
attrValue._buf[2] = '\0';
|
|
attrValue._buf[3] = '\0';
|
|
attrValue._size = 0;
|
|
attrValue._capacity = 0xf;
|
|
(GHIDRA_CAST<std::string *>((attrValue._buf)))->std::string::assign(&s_empty,0);
|
|
psVar4 = &attrValue;
|
|
}
|
|
else {
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
valueText = strCursor;
|
|
do {
|
|
isJoinedPathAlive = *valueText;
|
|
valueText = valueText + 1;
|
|
} while (isJoinedPathAlive != 0);
|
|
psVar4 = GHIDRA_CAST<std_string *>((valueText + -GHIDRA_INT((strCursor + 1))));
|
|
if (GHIDRA_CAST<std_string *>((0x7fffffff - gridGfxRoot._size)) < psVar4)
|
|
goto LAB_00934421;
|
|
rootText = &gridGfxRoot;
|
|
if (0xf < gridGfxRoot._capacity) {
|
|
rootText = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<std_string *>(gridGfxRoot._buf))) + 0x0)));
|
|
}
|
|
(GHIDRA_CAST<std::string *>((joinedPath._buf)))->std::string::concat(GHIDRA_INT(this),psVar4,
|
|
GHIDRA_CAST<byte *>(rootText),gridGfxRoot._size,
|
|
strCursor,GHIDRA_UINT(psVar4));
|
|
psVar4 = &joinedPath;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x14;
|
|
cleanupFlags = cleanupFlags | 0x800040;
|
|
}
|
|
(GHIDRA_CAST<std::string *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xc0))))))->std::string::_Tidy_deallocate();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xc0))) = psVar4->_buf[0];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xc1))) = psVar4->_buf[1];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xc2))) = psVar4->_buf[2];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xc3))) = psVar4->_buf[3];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xc4))) = psVar4->_buf[4];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xc5))) = psVar4->_buf[5];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xc6))) = psVar4->_buf[6];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xc7))) = psVar4->_buf[7];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xc8))) = psVar4->_buf[8];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xc9))) = psVar4->_buf[9];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xca))) = psVar4->_buf[10];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xcb))) = psVar4->_buf[0xb];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xcc))) = psVar4->_buf[0xc];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xcd))) = psVar4->_buf[0xd];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xce))) = psVar4->_buf[0xe];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xcf))) = psVar4->_buf[0xf];
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0xd0))) = psVar4->_size;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0xd4))) = psVar4->_capacity;
|
|
psVar4->_size = 0;
|
|
psVar4->_capacity = 0xf;
|
|
psVar4->_buf[0] = '\0';
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x10;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))) = 0;
|
|
if ((cleanupFlags & 0x40) != 0) {
|
|
cleanupFlags = cleanupFlags & 0xffffffbf;
|
|
goto LAB_00933f46;
|
|
}
|
|
}
|
|
else {
|
|
pcVar5 = "bridge";
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
isLess = isJoinedPathAlive < (byte)*pcVar5;
|
|
if (isJoinedPathAlive != *pcVar5) {
|
|
LAB_009339a2:
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_009339a7;
|
|
}
|
|
if (isJoinedPathAlive == 0) break;
|
|
isJoinedPathAlive = strCursor[1];
|
|
isLess = isJoinedPathAlive < (byte)pcVar5[1];
|
|
if (isJoinedPathAlive != pcVar5[1]) goto LAB_009339a2;
|
|
strCursor = strCursor + 2;
|
|
pcVar5 = pcVar5 + 2;
|
|
} while (isJoinedPathAlive != 0);
|
|
freeSize = 0;
|
|
LAB_009339a7:
|
|
if (freeSize == 0) {
|
|
valueText = GHIDRA_CAST<byte *>(attribute[1]);
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
if (*strCursor == 0) {
|
|
attrValue._buf[0] = '\0';
|
|
attrValue._buf[1] = '\0';
|
|
attrValue._buf[2] = '\0';
|
|
attrValue._buf[3] = '\0';
|
|
attrValue._size = 0;
|
|
attrValue._capacity = 0xf;
|
|
(GHIDRA_CAST<std::string *>((attrValue._buf)))->std::string::assign(&s_empty,0);
|
|
psVar4 = &attrValue;
|
|
cleanupFlags = cleanupFlags | 0x200;
|
|
}
|
|
else {
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
valueText = strCursor;
|
|
do {
|
|
isJoinedPathAlive = *valueText;
|
|
valueText = valueText + 1;
|
|
} while (isJoinedPathAlive != 0);
|
|
psVar4 = GHIDRA_CAST<std_string *>((valueText + -GHIDRA_INT((strCursor + 1))))
|
|
;
|
|
if (GHIDRA_CAST<std_string *>((0x7fffffff - gridGfxRoot._size)) <
|
|
psVar4) goto LAB_00934421;
|
|
rootText = &gridGfxRoot;
|
|
if (0xf < gridGfxRoot._capacity) {
|
|
rootText = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<std_string *>(gridGfxRoot._buf))) + 0x0)));
|
|
}
|
|
(GHIDRA_CAST<std::string *>((joinedPath._buf)))->std::string::concat(GHIDRA_INT(this),psVar4,
|
|
GHIDRA_CAST<byte *>(rootText),gridGfxRoot._size,
|
|
strCursor,GHIDRA_UINT(psVar4));
|
|
psVar4 = &joinedPath;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x15;
|
|
cleanupFlags = cleanupFlags | 0x1000100;
|
|
}
|
|
(GHIDRA_CAST<std::string *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xd8))))))->std::string::_Tidy_deallocate();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xd8))) = psVar4->_buf[0];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xd9))) = psVar4->_buf[1];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xda))) = psVar4->_buf[2];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xdb))) = psVar4->_buf[3];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xdc))) = psVar4->_buf[4];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xdd))) = psVar4->_buf[5];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xde))) = psVar4->_buf[6];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xdf))) = psVar4->_buf[7];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xe0))) = psVar4->_buf[8];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xe1))) = psVar4->_buf[9];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xe2))) = psVar4->_buf[10];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xe3))) = psVar4->_buf[0xb];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xe4))) = psVar4->_buf[0xc];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xe5))) = psVar4->_buf[0xd];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xe6))) = psVar4->_buf[0xe];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xe7))) = psVar4->_buf[0xf];
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0xe8))) = psVar4->_size;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0xec))) = psVar4->_capacity;
|
|
psVar4->_size = 0;
|
|
psVar4->_capacity = 0xf;
|
|
psVar4->_buf[0] = '\0';
|
|
if (((cleanupFlags & 0x200) != 0) &&
|
|
(cleanupFlags = cleanupFlags & 0xfffffdff,
|
|
0xf < attrValue._capacity)) {
|
|
freeSize = attrValue._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)attrValue._buf)) + 0x0)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(attrValue._buf)) + 0x0))) + -4);
|
|
freeSize = attrValue._capacity + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(attrValue._buf)) + 0x0))) - GHIDRA_INT(freeBlock)) - 4U)
|
|
goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x10;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))) = 0;
|
|
if ((cleanupFlags & 0x100) != 0) {
|
|
cleanupFlags = cleanupFlags & 0xfffffeff;
|
|
goto LAB_00933f46;
|
|
}
|
|
}
|
|
else {
|
|
attrNameCursor = &DAT_00b6cb48;
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
isLess = isJoinedPathAlive < *attrNameCursor;
|
|
if (isJoinedPathAlive != *attrNameCursor) {
|
|
LAB_00933b30:
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_00933b35;
|
|
}
|
|
if (isJoinedPathAlive == 0) break;
|
|
isJoinedPathAlive = strCursor[1];
|
|
isLess = isJoinedPathAlive < attrNameCursor[1];
|
|
if (isJoinedPathAlive != attrNameCursor[1]) goto LAB_00933b30;
|
|
strCursor = strCursor + 2;
|
|
attrNameCursor = attrNameCursor + 2;
|
|
} while (isJoinedPathAlive != 0);
|
|
freeSize = 0;
|
|
LAB_00933b35:
|
|
if (freeSize == 0) {
|
|
valueText = GHIDRA_CAST<byte *>(attribute[1]);
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
if (*strCursor == 0) {
|
|
attrValue._buf[0] = '\0';
|
|
attrValue._buf[1] = '\0';
|
|
attrValue._buf[2] = '\0';
|
|
attrValue._buf[3] = '\0';
|
|
attrValue._size = 0;
|
|
attrValue._capacity = 0xf;
|
|
(GHIDRA_CAST<std::string *>((attrValue._buf)))->std::string::assign(&s_empty,0);
|
|
psVar4 = &attrValue;
|
|
cleanupFlags = cleanupFlags | 0x800;
|
|
}
|
|
else {
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
valueText = strCursor;
|
|
do {
|
|
isJoinedPathAlive = *valueText;
|
|
valueText = valueText + 1;
|
|
} while (isJoinedPathAlive != 0);
|
|
psVar4 = (std_string *)
|
|
(valueText + -GHIDRA_INT((strCursor + 1)));
|
|
if (GHIDRA_CAST<std_string *>((0x7fffffff - gridGfxRoot._size)) <
|
|
psVar4) goto LAB_00934421;
|
|
rootText = &gridGfxRoot;
|
|
if (0xf < gridGfxRoot._capacity) {
|
|
rootText = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<std_string *>(gridGfxRoot._buf))) + 0x0)));
|
|
}
|
|
(GHIDRA_CAST<std::string *>((joinedPath._buf)))->std::string::concat(GHIDRA_INT(this),psVar4,
|
|
GHIDRA_CAST<byte *>(rootText),gridGfxRoot._size,
|
|
strCursor,GHIDRA_UINT(psVar4));
|
|
psVar4 = &joinedPath;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x16;
|
|
cleanupFlags = cleanupFlags | 0x2000400;
|
|
}
|
|
(GHIDRA_CAST<std::string *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xf0))))))->std::string::_Tidy_deallocate();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xf0))) = psVar4->_buf[0];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xf1))) = psVar4->_buf[1];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xf2))) = psVar4->_buf[2];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xf3))) = psVar4->_buf[3];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xf4))) = psVar4->_buf[4];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xf5))) = psVar4->_buf[5];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xf6))) = psVar4->_buf[6];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xf7))) = psVar4->_buf[7];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xf8))) = psVar4->_buf[8];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xf9))) = psVar4->_buf[9];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xfa))) = psVar4->_buf[10];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xfb))) = psVar4->_buf[0xb];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xfc))) = psVar4->_buf[0xc];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xfd))) = psVar4->_buf[0xd];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xfe))) = psVar4->_buf[0xe];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0xff))) = psVar4->_buf[0xf];
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x100))) = psVar4->_size;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x104))) = psVar4->_capacity;
|
|
psVar4->_size = 0;
|
|
psVar4->_capacity = 0xf;
|
|
psVar4->_buf[0] = '\0';
|
|
if (((cleanupFlags & 0x800) != 0) &&
|
|
(cleanupFlags = cleanupFlags & 0xfffff7ff,
|
|
0xf < attrValue._capacity)) {
|
|
freeSize = attrValue._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)attrValue._buf)) + 0x0)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(attrValue._buf)) + 0x0))) + -4);
|
|
freeSize = attrValue._capacity + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(attrValue._buf)) + 0x0))) - GHIDRA_INT(freeBlock)) -
|
|
4U) goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x10;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))) = 0;
|
|
if ((cleanupFlags & 0x400) != 0) {
|
|
cleanupFlags = cleanupFlags & 0xfffffbff;
|
|
goto LAB_00933f46;
|
|
}
|
|
}
|
|
else {
|
|
pcVar5 = "holeinwall";
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
isLess = isJoinedPathAlive < (byte)*pcVar5;
|
|
if (isJoinedPathAlive != *pcVar5) {
|
|
LAB_00933cc0:
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_00933cc5;
|
|
}
|
|
if (isJoinedPathAlive == 0) break;
|
|
isJoinedPathAlive = strCursor[1];
|
|
isLess = isJoinedPathAlive < (byte)pcVar5[1];
|
|
if (isJoinedPathAlive != pcVar5[1]) goto LAB_00933cc0;
|
|
strCursor = strCursor + 2;
|
|
pcVar5 = pcVar5 + 2;
|
|
} while (isJoinedPathAlive != 0);
|
|
freeSize = 0;
|
|
LAB_00933cc5:
|
|
if (freeSize == 0) {
|
|
valueText = GHIDRA_CAST<byte *>(attribute[1]);
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
if (*strCursor == 0) {
|
|
attrValue._buf[0] = '\0';
|
|
attrValue._buf[1] = '\0';
|
|
attrValue._buf[2] = '\0';
|
|
attrValue._buf[3] = '\0';
|
|
attrValue._size = 0;
|
|
attrValue._capacity = 0xf;
|
|
(GHIDRA_CAST<std::string *>((attrValue._buf)))->std::string::assign(&s_empty,0);
|
|
psVar4 = &attrValue;
|
|
cleanupFlags = cleanupFlags | 0x2000;
|
|
}
|
|
else {
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
valueText = strCursor;
|
|
do {
|
|
isJoinedPathAlive = *valueText;
|
|
valueText = valueText + 1;
|
|
} while (isJoinedPathAlive != 0);
|
|
psVar4 = (std_string *)
|
|
(valueText + -GHIDRA_INT((strCursor + 1)));
|
|
if (GHIDRA_CAST<std_string *>((0x7fffffff - gridGfxRoot._size)) <
|
|
psVar4) goto LAB_00934421;
|
|
rootText = &gridGfxRoot;
|
|
if (0xf < gridGfxRoot._capacity) {
|
|
rootText = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<std_string *>(gridGfxRoot._buf))) + 0x0)));
|
|
}
|
|
(GHIDRA_CAST<std::string *>((joinedPath._buf)))->std::string::concat(GHIDRA_INT(this),psVar4,
|
|
GHIDRA_CAST<byte *>(rootText),gridGfxRoot._size
|
|
,strCursor,GHIDRA_UINT(psVar4));
|
|
psVar4 = &joinedPath;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x17;
|
|
cleanupFlags = cleanupFlags | 0x4001000;
|
|
}
|
|
(GHIDRA_CAST<std::string *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x108))))))->std::string::_Tidy_deallocate();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x108))) = psVar4->_buf[0];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x109))) = psVar4->_buf[1];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x10a))) = psVar4->_buf[2];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x10b))) = psVar4->_buf[3];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x10c))) = psVar4->_buf[4];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x10d))) = psVar4->_buf[5];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x10e))) = psVar4->_buf[6];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x10f))) = psVar4->_buf[7];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x110))) = psVar4->_buf[8];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x111))) = psVar4->_buf[9];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x112))) = psVar4->_buf[10];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x113))) = psVar4->_buf[0xb];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x114))) = psVar4->_buf[0xc];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x115))) = psVar4->_buf[0xd];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x116))) = psVar4->_buf[0xe];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x117))) = psVar4->_buf[0xf];
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x118))) = psVar4->_size;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x11c))) = psVar4->_capacity;
|
|
psVar4->_size = 0;
|
|
psVar4->_capacity = 0xf;
|
|
psVar4->_buf[0] = '\0';
|
|
if (((cleanupFlags & 0x2000) != 0) &&
|
|
(cleanupFlags = cleanupFlags & 0xffffdfff,
|
|
0xf < attrValue._capacity)) {
|
|
freeSize = attrValue._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)attrValue._buf)) + 0x0)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(attrValue._buf)) + 0x0))) + -4);
|
|
freeSize = attrValue._capacity + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(attrValue._buf)) + 0x0))) - GHIDRA_INT(freeBlock)) -
|
|
4U) goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x10;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))) = 0;
|
|
if ((cleanupFlags & 0x1000) != 0) {
|
|
cleanupFlags = cleanupFlags & 0xffffefff;
|
|
goto LAB_00933f46;
|
|
}
|
|
}
|
|
else {
|
|
pcVar5 = "spikes";
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
isLess = isJoinedPathAlive < (byte)*pcVar5;
|
|
if (isJoinedPathAlive != *pcVar5) {
|
|
LAB_00933e50:
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_00933e55;
|
|
}
|
|
if (isJoinedPathAlive == 0) break;
|
|
isJoinedPathAlive = strCursor[1];
|
|
isLess = isJoinedPathAlive < (byte)pcVar5[1];
|
|
if (isJoinedPathAlive != pcVar5[1]) goto LAB_00933e50;
|
|
strCursor = strCursor + 2;
|
|
pcVar5 = pcVar5 + 2;
|
|
} while (isJoinedPathAlive != 0);
|
|
freeSize = 0;
|
|
LAB_00933e55:
|
|
if (freeSize == 0) {
|
|
valueText = GHIDRA_CAST<byte *>(attribute[1]);
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
if (*strCursor == 0) {
|
|
attrValue._buf[0] = '\0';
|
|
attrValue._buf[1] = '\0';
|
|
attrValue._buf[2] = '\0';
|
|
attrValue._buf[3] = '\0';
|
|
attrValue._size = 0;
|
|
attrValue._capacity = 0xf;
|
|
(GHIDRA_CAST<std::string *>((attrValue._buf)))->std::string::assign(&s_empty,0);
|
|
psVar4 = &attrValue;
|
|
cleanupFlags = cleanupFlags | 0x8000;
|
|
}
|
|
else {
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
psVar4 = GHIDRA_CAST<std_string *>(FUN_00421620(strCursor));
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x18;
|
|
cleanupFlags = cleanupFlags | 0x4000;
|
|
}
|
|
FUN_004215a0(psVar4);
|
|
if (((cleanupFlags & 0x8000) != 0) &&
|
|
(cleanupFlags = cleanupFlags & 0xffff7fff,
|
|
0xf < attrValue._capacity)) {
|
|
freeSize = attrValue._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)attrValue._buf)) + 0x0)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(attrValue._buf)) + 0x0))) + -4);
|
|
freeSize = attrValue._capacity + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(attrValue._buf)) + 0x0))) - GHIDRA_INT(freeBlock))
|
|
- 4U) goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x10;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))) = 0;
|
|
if ((cleanupFlags & 0x4000) != 0) {
|
|
cleanupFlags = cleanupFlags & 0xffffbfff;
|
|
goto LAB_00933f46;
|
|
}
|
|
}
|
|
else {
|
|
pcVar5 = "waterpitsmode";
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
isLess = isJoinedPathAlive < (byte)*pcVar5;
|
|
if (isJoinedPathAlive != *pcVar5) {
|
|
LAB_00933f94:
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_00933f99;
|
|
}
|
|
if (isJoinedPathAlive == 0) break;
|
|
isJoinedPathAlive = strCursor[1];
|
|
isLess = isJoinedPathAlive < (byte)pcVar5[1];
|
|
if (isJoinedPathAlive != pcVar5[1]) goto LAB_00933f94;
|
|
strCursor = strCursor + 2;
|
|
pcVar5 = pcVar5 + 2;
|
|
} while (isJoinedPathAlive != 0);
|
|
freeSize = 0;
|
|
LAB_00933f99:
|
|
if (freeSize == 0) {
|
|
valueText = &g_xmlNullStr;
|
|
if (GHIDRA_CAST<byte *>(attribute[1]) != GHIDRA_CAST<byte *>(0x0)) {
|
|
valueText = GHIDRA_CAST<byte *>(attribute[1]);
|
|
}
|
|
iVar3 = atoi(GHIDRA_CAST<char *>(valueText));
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config.waterPitsMode)) + 0x0))) = (undefined1)iVar3;
|
|
}
|
|
else {
|
|
pcVar5 = "reversewatergfx";
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<byte *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
isLess = isJoinedPathAlive < (byte)*pcVar5;
|
|
if (isJoinedPathAlive != *pcVar5) {
|
|
LAB_00933ff4:
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_00933ff9;
|
|
}
|
|
if (isJoinedPathAlive == 0) break;
|
|
isJoinedPathAlive = strCursor[1];
|
|
isLess = isJoinedPathAlive < (byte)pcVar5[1];
|
|
if (isJoinedPathAlive != pcVar5[1]) goto LAB_00933ff4;
|
|
strCursor = strCursor + 2;
|
|
pcVar5 = pcVar5 + 2;
|
|
} while (isJoinedPathAlive != 0);
|
|
freeSize = 0;
|
|
LAB_00933ff9:
|
|
if (freeSize == 0) {
|
|
valueText = &g_xmlNullStr;
|
|
if (GHIDRA_CAST<byte *>(attribute[1]) != GHIDRA_CAST<byte *>(0x0)) {
|
|
valueText = GHIDRA_CAST<byte *>(attribute[1]);
|
|
}
|
|
std::string::string_from_cstr
|
|
(joinedPath._buf,valueText);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config.waterPitsMode)) + 0x1))) =
|
|
string_to_bool(&joinedPath);
|
|
(GHIDRA_CAST<std::string *>((joinedPath._buf)))->std::string::_Tidy_deallocate();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} while ((attribute[4] != 0) &&
|
|
(attribute = GHIDRA_CAST<undefined4 *>(attribute[6]), attribute != GHIDRA_CAST<undefined4 *>(0x0)));
|
|
}
|
|
if (config.backdropId - 1U < 0x3e) {
|
|
BackdropConfig::operator_assign
|
|
(GHIDRA_CAST<BackdropConfig *>((this + config.backdropId * 0x4f + 0x55)),&config);
|
|
}
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 4;
|
|
(GHIDRA_CAST<std::string *>((&(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(config)) + 0x120))))))->std::string::_Tidy_deallocate();
|
|
if (0xf < (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_UINT(config))) + 0x11c)))) {
|
|
freeSize = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x11c))) + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)config)) + 0x108)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x108))) + -4);
|
|
freeSize = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x11c))) + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x108))) - GHIDRA_INT(freeBlock)) - 4U) goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
if (0xf < (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_UINT(config))) + 0x104)))) {
|
|
freeSize = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x104))) + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)config)) + 0xf0)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0xf0))) + -4);
|
|
freeSize = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x104))) + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0xf0))) - GHIDRA_INT(freeBlock)) - 4U) goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
if (0xf < (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_UINT(config))) + 0xec)))) {
|
|
freeSize = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0xec))) + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)config)) + 0xd8)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0xd8))) + -4);
|
|
freeSize = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0xec))) + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0xd8))) - GHIDRA_INT(freeBlock)) - 4U) goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
if (0xf < (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_UINT(config))) + 0xd4)))) {
|
|
freeSize = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0xd4))) + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)config)) + 0xc0)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0xc0))) + -4);
|
|
freeSize = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0xd4))) + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0xc0))) - GHIDRA_INT(freeBlock)) - 4U) goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
if (0xf < (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_UINT(config))) + 0xbc)))) {
|
|
freeSize = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0xbc))) + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)config)) + 0xa8)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0xa8))) + -4);
|
|
freeSize = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0xbc))) + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0xa8))) - GHIDRA_INT(freeBlock)) - 4U) goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
if (0xf < (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_UINT(config))) + 0xa4)))) {
|
|
freeSize = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0xa4))) + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)config)) + 0x90)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x90))) + -4);
|
|
freeSize = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0xa4))) + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x90))) - GHIDRA_INT(freeBlock)) - 4U) goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
if (0xf < (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_UINT(config))) + 0x8c)))) {
|
|
freeSize = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x8c))) + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)config)) + 0x78)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x78))) + -4);
|
|
freeSize = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x8c))) + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x78))) - GHIDRA_INT(freeBlock)) - 4U) goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
if (0xf < (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_UINT(config))) + 0x60)))) {
|
|
freeSize = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x60))) + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)config)) + 0x4c)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x4c))) + -4);
|
|
freeSize = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x60))) + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x4c))) - GHIDRA_INT(freeBlock)) - 4U) goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
if (0xf < (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_UINT(config))) + 0x48)))) {
|
|
freeSize = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x48))) + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)config)) + 0x34)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x34))) + -4);
|
|
freeSize = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x48))) + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x34))) - GHIDRA_INT(freeBlock)) - 4U) goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
if (0xf < (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_UINT(config))) + 0x30)))) {
|
|
freeSize = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x30))) + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)config)) + 0x1c)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x1c))) + -4);
|
|
freeSize = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x30))) + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x1c))) - GHIDRA_INT(freeBlock)) - 4U) goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
if (0xf < (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_UINT(config))) + 0x18)))) {
|
|
freeSize = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x18))) + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)config)) + 0x4)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x4))) + -4);
|
|
freeSize = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x18))) + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(config)) + 0x4))) - GHIDRA_INT(freeBlock)) - 4U) goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
iVar3 = config.backdropId;
|
|
config.backdropId = defaultConfig.backdropId;
|
|
}
|
|
config.backdropId = iVar3;
|
|
(GHIDRA_CAST<BackdropConfig *>((&defaultConfig)))->BackdropConfig::~BackdropConfig();
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 2;
|
|
if (0xf < effectsGfxRoot._capacity) {
|
|
freeSize = effectsGfxRoot._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)effectsGfxRoot._buf)) + 0x0)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(effectsGfxRoot._buf)) + 0x0))) + -4);
|
|
freeSize = effectsGfxRoot._capacity + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(effectsGfxRoot._buf)) + 0x0))) - GHIDRA_INT(freeBlock)) - 4U) goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 1;
|
|
if (0xf < gridGfxRoot._capacity) {
|
|
freeSize = gridGfxRoot._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)gridGfxRoot._buf)) + 0x0)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(gridGfxRoot._buf)) + 0x0))) + -4);
|
|
freeSize = gridGfxRoot._capacity + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(gridGfxRoot._buf)) + 0x0))) - GHIDRA_INT(freeBlock)) - 4U) goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0;
|
|
if (0xf < gfxRoot._capacity) {
|
|
freeSize = gfxRoot._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((void *)gfxRoot._buf)) + 0x0)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(gfxRoot._buf)) + 0x0))) + -4);
|
|
freeSize = gfxRoot._capacity + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(gfxRoot._buf)) + 0x0))) - GHIDRA_INT(freeBlock)) - 4U) {
|
|
LAB_009343c2:
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
local_14 = 0x19;
|
|
(GHIDRA_CAST<xml_memory_pool *>((xmlMemoryPool)))->xml_memory_pool::clear();
|
|
local_14 = 0x1a;
|
|
tracked_alloc(1,text,0);
|
|
isJoinedPathAlive = 1;
|
|
}
|
|
ExceptionList = local_1c;
|
|
return isJoinedPathAlive;
|
|
}
|
|
|
|
// 00934770
|
|
void Backdrop::PreRenderControls()
|
|
{
|
|
code *pcVar1;
|
|
Backdrop BVar2;
|
|
Backdrop BVar3;
|
|
byte isAnimChanged;
|
|
char cVar4;
|
|
std_string *anim;
|
|
float *nullFrame;
|
|
ANM2 *sprite;
|
|
int *piVar5;
|
|
int iconCount;
|
|
AnimationState *lastLayer;
|
|
void *pvVar6;
|
|
uint uVar7;
|
|
uint *ptr;
|
|
ColorMod *spriteColor;
|
|
int glyphCount;
|
|
float fVar8;
|
|
float fVar9;
|
|
Vector glyphPos;
|
|
void *offsetsBegin;
|
|
undefined4 local_94;
|
|
int offsetsCapacityEnd;
|
|
int device;
|
|
int *deviceRefCount;
|
|
Vector controlsPos;
|
|
uint rowOffset;
|
|
void *local_78;
|
|
int framesEnd;
|
|
int framesCapacityEnd;
|
|
EntityConfig_Player *local_6c;
|
|
EntityConfig_Player *local_68;
|
|
Backdrop jitterSeed;
|
|
int controllerIndex;
|
|
uint *local_5c;
|
|
void *framesBegin;
|
|
float cursorX;
|
|
float local_50;
|
|
uint *iconRow;
|
|
int row;
|
|
int playerType;
|
|
ANM2 *controlsSprite;
|
|
void *displayName [4];
|
|
uint displayNameSize;
|
|
uint displayNameCapacity;
|
|
uint local_24;
|
|
undefined1 *puStack_20;
|
|
void *local_1c;
|
|
undefined1 *puStack_18;
|
|
void *local_14;
|
|
Backdrop colorComponent;
|
|
Game *game;
|
|
|
|
puStack_20 = GHIDRA_CAST<undefined1 *>((displayName + 0xe));
|
|
local_14 = (void *)0xffffffff;
|
|
puStack_18 = &LAB_00b0b138;
|
|
local_1c = ExceptionList;
|
|
local_24 = __security_cookie ^ GHIDRA_UINT((displayName + 0xb));
|
|
ExceptionList = &local_1c;
|
|
sprite = GHIDRA_CAST<ANM2 *>((this + 0x1414));
|
|
playerType = g_manager->_startPlayerType;
|
|
controlsSprite = sprite;
|
|
if (g_manager->_netplayManager == *GHIDRA_CAST<NetplayManager *>((g_manager + 1))) {
|
|
puStack_20 = GHIDRA_CAST<undefined1 *>((displayName + 0xe));
|
|
}
|
|
else {
|
|
FUN_0090b070(local_24);
|
|
glyphCount = FUN_004253d0();
|
|
playerType = *GHIDRA_CAST<int *>((glyphCount + 0x13c0));
|
|
}
|
|
if (playerType < 0x29) {
|
|
isAnimChanged = (GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::SetAnimation(GHIDRA_CAST<byte *>("Controls"),1);
|
|
if ((isAnimChanged != 0) && (this[0x1421] != (Backdrop)0x0)) {
|
|
fVar8 = (float)playerType;
|
|
goto LAB_0093493f;
|
|
}
|
|
}
|
|
else {
|
|
pvVar6 = (g_manager->_entityConfig)._players._begin;
|
|
if (((playerType < (GHIDRA_INT((g_manager->_entityConfig)._players._end) - GHIDRA_INT(pvVar6)) / 0x148) &&
|
|
(local_6c = GHIDRA_CAST<EntityConfig_Player *>((playerType * 0x148 + GHIDRA_INT(pvVar6))),
|
|
local_6c != GHIDRA_CAST<EntityConfig_Player *>(0x0))) &&
|
|
(sprite = local_6c->_moddedControlsANM2, sprite != GHIDRA_CAST<ANM2 *>(0x0))) {
|
|
anim = EntityConfig_Player::GetDisplayName
|
|
(local_6c,GHIDRA_CAST<std_string *>(displayName),(void *)playerType);
|
|
local_14 = (void *)0x0;
|
|
if (0xf < anim->_capacity) {
|
|
anim = *GHIDRA_CAST<std_string **>(anim->_buf);
|
|
}
|
|
isAnimChanged = (GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::SetAnimation(GHIDRA_CAST<byte *>(anim),1);
|
|
if (((isAnimChanged != 0) && ((sprite->_animState)._animData != (void *)0x0)) &&
|
|
((GHIDRA_CAST<AnimationState *>((&sprite->_animState)))->AnimationState::SetFrameFloat(0.0),
|
|
(sprite->_animState)._animData != (void *)0x0)) {
|
|
(sprite->_animState)._isPlaying = 0;
|
|
}
|
|
local_14 = (void *)0xffffffff;
|
|
if (0xf < displayNameCapacity) {
|
|
uVar7 = displayNameCapacity + 1;
|
|
pvVar6 = displayName[0];
|
|
if (0xfff < uVar7) {
|
|
pvVar6 = *(void **)(GHIDRA_INT(displayName[0]) + -4);
|
|
uVar7 = displayNameCapacity + 0x24;
|
|
if (0x1f < GHIDRA_UINT((GHIDRA_INT(displayName[0]) + (-4 - GHIDRA_INT(pvVar6))))) {
|
|
LAB_009348c4:
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(pvVar6,uVar7);
|
|
}
|
|
displayNameSize = 0;
|
|
displayNameCapacity = 0xf;
|
|
displayName[0] = (void *)(GHIDRA_UINT(displayName[0]) & 0xffffff00);
|
|
sprite = local_6c->_moddedControlsANM2;
|
|
if (sprite != GHIDRA_CAST<ANM2 *>(0x0)) {
|
|
controlsSprite = sprite;
|
|
goto LAB_00934952;
|
|
}
|
|
}
|
|
sprite = GHIDRA_CAST<ANM2 *>((this + 0x1414));
|
|
isAnimChanged = (GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::SetAnimation(GHIDRA_CAST<byte *>("Controls"),1);
|
|
if ((isAnimChanged != 0) && (this[0x1421] != (Backdrop)0x0)) {
|
|
fVar8 = 0.0;
|
|
LAB_0093493f:
|
|
sprite = GHIDRA_CAST<ANM2 *>((this + 0x1414));
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((this + 0x1420)))))->AnimationState::SetFrameFloat(fVar8);
|
|
if (this[0x1421] != (Backdrop)0x0) {
|
|
*GHIDRA_CAST<undefined1 *>((this + 0x1425)) = 0;
|
|
}
|
|
}
|
|
}
|
|
LAB_00934952:
|
|
spriteColor = &sprite->_color;
|
|
controlsPos.y = (float)this[0x13c7] + 91.0;
|
|
controlsPos.x = ((float)this[0x13c8] + (float)this[0x13c6]) * 0.5;
|
|
fVar8 = 1.0;
|
|
if (this[0x54] == (Backdrop)0x3) {
|
|
fVar8 = 0.6;
|
|
fVar9 = 0.7;
|
|
}
|
|
else {
|
|
fVar9 = 1.0;
|
|
}
|
|
spriteColor->_tint[0] = fVar9;
|
|
(sprite->_color)._tint[1] = fVar8;
|
|
(sprite->_color)._tint[2] = fVar8;
|
|
(sprite->_color)._tint[3] = 1.0;
|
|
if (controlsSprite->_loaded != 0) {
|
|
if (controlsSprite->_overlayRenderFirst == 0) {
|
|
AnimationState::Render(&controlsSprite->_animState,&controlsPos,&g_vectorZero,&g_vectorZero);
|
|
lastLayer = &controlsSprite->_overlayAnimState;
|
|
}
|
|
else {
|
|
AnimationState::Render
|
|
(&controlsSprite->_overlayAnimState,&controlsPos,&g_vectorZero,&g_vectorZero);
|
|
lastLayer = &controlsSprite->_animState;
|
|
}
|
|
AnimationState::Render(lastLayer,&controlsPos,&g_vectorZero,&g_vectorZero);
|
|
}
|
|
if (GHIDRA_CAST<ColorMod *>((this + 0x1483)) != spriteColor) {
|
|
BVar2 = *GHIDRA_CAST<Backdrop *>(((sprite->_color)._tint + 1));
|
|
BVar3 = *GHIDRA_CAST<Backdrop *>(((sprite->_color)._tint + 2));
|
|
colorComponent = *GHIDRA_CAST<Backdrop *>(((sprite->_color)._tint + 3));
|
|
this[0x1483] = (Backdrop)spriteColor->_tint[0];
|
|
this[0x1484] = BVar2;
|
|
this[0x1485] = BVar3;
|
|
this[0x1486] = colorComponent;
|
|
BVar2 = *GHIDRA_CAST<Backdrop *>(((sprite->_color)._colorize + 1));
|
|
BVar3 = *GHIDRA_CAST<Backdrop *>(((sprite->_color)._colorize + 2));
|
|
colorComponent = *GHIDRA_CAST<Backdrop *>(((sprite->_color)._colorize + 3));
|
|
this[0x1487] = (Backdrop)(sprite->_color)._colorize[0];
|
|
this[0x1488] = BVar2;
|
|
this[0x1489] = BVar3;
|
|
this[0x148a] = colorComponent;
|
|
*GHIDRA_CAST<undefined8 *>((this + 0x148b)) = *GHIDRA_CAST<undefined8 *>((sprite->_color)._offset);
|
|
this[0x148d] = *GHIDRA_CAST<Backdrop *>(((sprite->_color)._offset + 2));
|
|
}
|
|
game = g_game;
|
|
piVar5 = (g_game->_playerManager)._playerList._begin;
|
|
if (GHIDRA_INT((g_game->_playerManager)._playerList._end) - GHIDRA_INT(piVar5) >> 2 == 0) {
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<byte *>("(GHIDRA_CAST<PlayerManager *>(()))->PlayerManager::GetPlayer() : There are no players! \n"));
|
|
piVar5 = (game->_playerManager)._playerList._begin;
|
|
}
|
|
controllerIndex = *GHIDRA_CAST<int *>((*piVar5 + 0x1618));
|
|
if (g_manager->_netplayManager == *GHIDRA_CAST<NetplayManager *>((g_manager + 1))) {
|
|
LAB_00934aa5:
|
|
if (controllerIndex == 0) {
|
|
isAnimChanged = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0x1459)))))->ANM2::SetAnimation(GHIDRA_CAST<byte *>("Keyboard"),1);
|
|
if (((isAnimChanged != 0) && (this[0x1466] != (Backdrop)0x0)) &&
|
|
((GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((this + 0x1465)))))->AnimationState::SetFrameFloat(0.0),
|
|
this[0x1466] != (Backdrop)0x0)) {
|
|
*GHIDRA_CAST<undefined1 *>((this + 0x146a)) = 0;
|
|
}
|
|
goto LAB_00934be2;
|
|
}
|
|
}
|
|
else {
|
|
glyphCount = FUN_0090b070();
|
|
if (*GHIDRA_CAST<int *>((glyphCount + 0x378)) != 0) {
|
|
controllerIndex = *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>((glyphCount + 0x378)) + 0xc));
|
|
goto LAB_00934aa5;
|
|
}
|
|
controllerIndex = -0x21524111;
|
|
}
|
|
(GHIDRA_CAST<InputManager *>((&PTR_vftable_00c57b18)))->InputManager::get_device(&device,controllerIndex);
|
|
local_14 = (void *)0x1;
|
|
if (((device == 0) ||
|
|
(glyphCount = __RTDynamicCast(device,0,&KAGE::Input::InputDeviceBase::RTTI_Type_Descriptor,
|
|
&KAGE::Input::InputDeviceGamepad::RTTI_Type_Descriptor,0),
|
|
glyphCount == 0)) ||
|
|
((glyphCount = __RTDynamicCast(device,0,&KAGE::Input::InputDeviceBase::RTTI_Type_Descriptor,
|
|
&KAGE::Input::InputDeviceGamepad::RTTI_Type_Descriptor,0),
|
|
(*GHIDRA_CAST<byte *>((glyphCount + 8)) & 0x20) != 0 || (*GHIDRA_CAST<int *>((glyphCount + 900)) != 0)))) {
|
|
local_14 = (void *)0x2;
|
|
if (deviceRefCount == GHIDRA_CAST<int *>(0x0)) {
|
|
ExceptionList = local_1c;
|
|
return;
|
|
}
|
|
cVar4 = (**(code **)(*deviceRefCount + 0xc))();
|
|
if (cVar4 == '\0') {
|
|
ExceptionList = local_1c;
|
|
return;
|
|
}
|
|
if (g_inputDeviceRelease == (void *)0x0) {
|
|
ExceptionList = local_1c;
|
|
return;
|
|
}
|
|
(*g_inputDeviceRelease)(&device);
|
|
ExceptionList = local_1c;
|
|
return;
|
|
}
|
|
isAnimChanged = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0x1459)))))->ANM2::SetAnimation(&DAT_00b7b76c,1);
|
|
if (((isAnimChanged != 0) && (this[0x1466] != (Backdrop)0x0)) &&
|
|
((GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((this + 0x1465)))))->AnimationState::SetFrameFloat(0.0),
|
|
this[0x1466] != (Backdrop)0x0)) {
|
|
*GHIDRA_CAST<undefined1 *>((this + 0x146a)) = 0;
|
|
}
|
|
local_14 = (void *)0x3;
|
|
if (((deviceRefCount != GHIDRA_CAST<int *>(0x0)) &&
|
|
(cVar4 = (**(code **)(*deviceRefCount + 0xc))(), cVar4 != '\0')) &&
|
|
(g_inputDeviceRelease != (void *)0x0)) {
|
|
(*g_inputDeviceRelease)(&device);
|
|
}
|
|
local_14 = (void *)0xffffffff;
|
|
LAB_00934be2:
|
|
iconCount = 8;
|
|
jitterSeed = this[0x13ca];
|
|
local_6c = GHIDRA_CAST<EntityConfig_Player *>(&DAT_00000008);
|
|
if (playerType == 0x13) {
|
|
if ((g_manager->_optionsConfig)._jacobEsauControls == 1) {
|
|
iconCount = GHIDRA_INT(&DAT_00000009);
|
|
}
|
|
local_6c = GHIDRA_CAST<EntityConfig_Player *>(iconCount);
|
|
}
|
|
row = 0;
|
|
iconRow = &DAT_00b7baa0;
|
|
rowOffset = 0;
|
|
sprite = controlsSprite;
|
|
do {
|
|
uVar7 = rowOffset;
|
|
if ((sprite->_animState)._animData != (void *)0x0) {
|
|
nullFrame = (GHIDRA_CAST<AnimationState *>((&sprite->_animState)))->AnimationState::GetNullFrameById(row);
|
|
if ((nullFrame != GHIDRA_CAST<float *>(0x0)) && (*GHIDRA_CAST<char *>((nullFrame + 3)) != '\0')) {
|
|
framesBegin = (void *)0x0;
|
|
framesEnd = 0;
|
|
framesCapacityEnd = 0;
|
|
offsetsBegin = (void *)0x0;
|
|
local_94 = 0;
|
|
offsetsCapacityEnd = 0;
|
|
local_14 = (void *)0x5;
|
|
local_50 = 0.0;
|
|
cursorX = 0.0;
|
|
local_68 = GHIDRA_CAST<EntityConfig_Player *>(0x0);
|
|
local_5c = iconRow;
|
|
do {
|
|
uVar7 = *local_5c;
|
|
if (uVar7 == 0xffffffff) break;
|
|
local_78 = framesBegin;
|
|
if (((playerType == 0x13) && ((g_manager->_optionsConfig)._jacobEsauControls == 1)) &&
|
|
(uVar7 == 10)) {
|
|
cursorX = cursorX - 4.0;
|
|
render_control_icon(this,0xb,(byte)(framesEnd - GHIDRA_INT(framesBegin) >> 2),controllerIndex,
|
|
&local_50,&cursorX,&local_78,&offsetsBegin);
|
|
uVar7 = 9;
|
|
glyphCount = framesEnd - GHIDRA_INT(local_78);
|
|
}
|
|
else {
|
|
glyphCount = framesEnd - GHIDRA_INT(framesBegin);
|
|
}
|
|
render_control_icon(this,uVar7,(byte)(glyphCount >> 2),controllerIndex,&local_50,&cursorX,
|
|
&local_78,&offsetsBegin);
|
|
local_68 = GHIDRA_CAST<EntityConfig_Player *>((GHIDRA_INT(&local_68->_id) + 1));
|
|
local_5c = local_5c + 1;
|
|
framesBegin = local_78;
|
|
} while (local_68 < local_6c);
|
|
glyphCount = framesEnd;
|
|
local_50 = 0.0;
|
|
local_5c = offsetsBegin;
|
|
local_78 = framesBegin;
|
|
if (framesEnd - GHIDRA_INT(framesBegin) >> 2 != 0) {
|
|
do {
|
|
local_68 = GHIDRA_CAST<EntityConfig_Player *>((controlsPos.y + nullFrame[1]));
|
|
if (jitterSeed == (Backdrop)0x0) {
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<byte *>("RNG Seed is zero!\n"));
|
|
pcVar1 = (code *)swi(3);
|
|
(*pcVar1)();
|
|
return;
|
|
}
|
|
uVar7 = GHIDRA_UINT(jitterSeed) >> 5 ^ GHIDRA_UINT(jitterSeed);
|
|
uVar7 = uVar7 << 0xf ^ uVar7;
|
|
jitterSeed = (Backdrop)(uVar7 >> 0x11 ^ uVar7);
|
|
glyphPos.y = (float)local_68 + (float)GHIDRA_INT((GHIDRA_UINT(jitterSeed) % 3 - 1));
|
|
glyphPos.x = cursorX + *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(local_5c) + GHIDRA_INT(local_50) * 4)) +
|
|
controlsPos.x + *nullFrame;
|
|
if (this[0x1466] != (Backdrop)0x0) {
|
|
AnimationState::SetFrameFloat
|
|
(GHIDRA_CAST<AnimationState *>((this + 0x1465)),
|
|
(float)*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(framesBegin) + GHIDRA_INT(local_50) * 4)));
|
|
}
|
|
if ((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(this[0x149b])) + 0x1))) != '\0') {
|
|
if (*GHIDRA_CAST<char *>((this + 0x1475)) == '\0') {
|
|
AnimationState::Render
|
|
(GHIDRA_CAST<AnimationState *>((this + 0x1465)),&glyphPos,&g_vectorZero,&g_vectorZero);
|
|
lastLayer = GHIDRA_CAST<AnimationState *>((this + 0x146d));
|
|
}
|
|
else {
|
|
AnimationState::Render
|
|
(GHIDRA_CAST<AnimationState *>((this + 0x146d)),&glyphPos,&g_vectorZero,&g_vectorZero);
|
|
lastLayer = GHIDRA_CAST<AnimationState *>((this + 0x1465));
|
|
}
|
|
AnimationState::Render(lastLayer,&glyphPos,&g_vectorZero,&g_vectorZero);
|
|
}
|
|
local_50 = (float)(GHIDRA_INT(local_50) + 1);
|
|
} while (GHIDRA_UINT(local_50) < GHIDRA_UINT((glyphCount - GHIDRA_INT(framesBegin) >> 2)));
|
|
}
|
|
local_14 = (void *)CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),4);
|
|
if (local_5c != (void *)0x0) {
|
|
uVar7 = (offsetsCapacityEnd - GHIDRA_INT(local_5c) >> 2) * 4;
|
|
ptr = local_5c;
|
|
if (0xfff < uVar7) {
|
|
ptr = *GHIDRA_CAST<uint **>((GHIDRA_CAST<char *>(local_5c) + -4));
|
|
uVar7 = uVar7 + 0x23;
|
|
if (0x1f < GHIDRA_UINT((GHIDRA_INT(local_5c) + (-4 - GHIDRA_INT(ptr))))) goto LAB_009348c4;
|
|
}
|
|
operator_delete(ptr,uVar7);
|
|
offsetsBegin = (void *)0x0;
|
|
local_94 = 0;
|
|
offsetsCapacityEnd = 0;
|
|
}
|
|
local_14 = (void *)0xffffffff;
|
|
if (framesBegin != (void *)0x0) {
|
|
uVar7 = framesCapacityEnd - GHIDRA_INT(framesBegin) & 0xfffffffc;
|
|
pvVar6 = framesBegin;
|
|
if (0xfff < uVar7) {
|
|
pvVar6 = *(void **)(GHIDRA_CAST<char *>(framesBegin) + -4);
|
|
uVar7 = uVar7 + 0x23;
|
|
if (0x1f < GHIDRA_UINT((GHIDRA_INT(framesBegin) + (-4 - GHIDRA_INT(pvVar6))))) goto LAB_009348c4;
|
|
}
|
|
operator_delete(pvVar6,uVar7);
|
|
local_78 = (void *)0x0;
|
|
framesEnd = 0;
|
|
framesCapacityEnd = 0;
|
|
}
|
|
uVar7 = rowOffset;
|
|
}
|
|
sprite = controlsSprite;
|
|
}
|
|
rowOffset = uVar7 + 0x14;
|
|
row = row + 1;
|
|
iconRow = iconRow + 5;
|
|
if (0x9f < rowOffset) {
|
|
ExceptionList = local_1c;
|
|
return;
|
|
}
|
|
} while( true );
|
|
}
|
|
|
|
// 00935270
|
|
uint Backdrop::get_random_floor_variant()
|
|
{
|
|
Backdrop BVar1;
|
|
int iVar2;
|
|
uint uVar3;
|
|
Backdrop max;
|
|
RNG rng;
|
|
undefined4 local_8;
|
|
|
|
local_8 = __security_cookie ^ GHIDRA_INT(register0x00000010) - 4U;
|
|
BVar1 = this[0x54];
|
|
if (BVar1 == (Backdrop)0x2d) {
|
|
if ((*GHIDRA_CAST<uint *>((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 4)) + 0x44)) & 0x1000) != 0) {
|
|
uVar3 = (GHIDRA_CAST<RNG *>((GHIDRA_CAST<RNG *>((this + 0x13ca)))))->RNG::RandomInt(GHIDRA_INT(this[0xe53]) - 1);
|
|
return uVar3;
|
|
}
|
|
}
|
|
else {
|
|
if ((BVar1 == (Backdrop)0x2e) || (BVar1 == (Backdrop)0x3b)) {
|
|
if ((*GHIDRA_CAST<uint *>((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 4)) + 0x44)) & 0x1000) != 0) {
|
|
return 1;
|
|
}
|
|
max = this[GHIDRA_INT(BVar1) * 0x4f + 0x70];
|
|
goto LAB_00935378;
|
|
}
|
|
if ((((BVar1 == (Backdrop)0x21) || (BVar1 == (Backdrop)0x28)) &&
|
|
(iVar2 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 4)), iVar2 != 0)) &&
|
|
((iVar2 = *GHIDRA_CAST<int *>((iVar2 + 0x10)), iVar2 != 0 && (*GHIDRA_CAST<int *>((iVar2 + 0x48)) != 1)))) {
|
|
uVar3 = (GHIDRA_CAST<RNG *>((GHIDRA_CAST<RNG *>((this + 0x13ca)))))->RNG::RandomInt(GHIDRA_INT(this[GHIDRA_INT(BVar1) * 0x4f + 0x70]) - 1);
|
|
return uVar3;
|
|
}
|
|
}
|
|
max = this[GHIDRA_INT(BVar1) * 0x4f + 0x70];
|
|
if (BVar1 != (Backdrop)0x2f) {
|
|
uVar3 = (GHIDRA_CAST<RNG *>((GHIDRA_CAST<RNG *>((this + 0x13ca)))))->RNG::RandomInt(GHIDRA_UINT(max));
|
|
return uVar3;
|
|
}
|
|
LAB_00935378:
|
|
rng._seed = *GHIDRA_CAST<int *>((this + 0x13ce));
|
|
rng._shift3 = 0x1b;
|
|
rng._shift1 = 4;
|
|
rng._shift2 = 3;
|
|
uVar3 = (GHIDRA_CAST<RNG *>((&rng)))->RNG::RandomInt(GHIDRA_UINT(max));
|
|
return uVar3;
|
|
}
|
|
|
|
// 009353b0
|
|
void Backdrop::render_ashpit_ash()
|
|
{
|
|
Backdrop BVar1;
|
|
int roomConfigData;
|
|
char isLastRef;
|
|
uint uVar3;
|
|
int *loadedImage;
|
|
Backdrop *in_ECX;
|
|
undefined1 auStackY_ec [128];
|
|
void *pvVar4;
|
|
int *targetRefCount;
|
|
Backdrop *targetRefCount_00;
|
|
int *floorImage_00;
|
|
int *floorImageRefCount_00;
|
|
Backdrop *floorImageRefCount_01;
|
|
int *in_stack_ffffffac;
|
|
int *piVar5;
|
|
undefined1 auStack_4a [2];
|
|
int nFloorImage;
|
|
int *nFloorImageRefCount;
|
|
int ashImage;
|
|
int *ashImageRefCount;
|
|
int floorImage;
|
|
int *floorImageRefCount;
|
|
int lFloorImage;
|
|
int *local_1c;
|
|
undefined1 *local_18;
|
|
undefined1 *local_14;
|
|
void *local_10;
|
|
undefined1 *puStack_c;
|
|
undefined4 local_8;
|
|
int roomConfigData;
|
|
int roomShape;
|
|
|
|
local_8 = 0xffffffff;
|
|
puStack_c = &LAB_00b0b1e5;
|
|
local_10 = ExceptionList;
|
|
ExceptionList = &local_10;
|
|
uVar3 = get_random_floor_variant(in_ECX);
|
|
BVar1 = in_ECX[0x54];
|
|
if (((BVar1 != (Backdrop)0x2e) && (BVar1 != (Backdrop)0x3b)) ||
|
|
((*GHIDRA_CAST<uint *>((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 4)) + 0x44)) & 0x1000) == 0)) {
|
|
if (((BVar1 == (Backdrop)0x34) || (BVar1 == (Backdrop)0x35)) || (BVar1 == (Backdrop)0x36)) {
|
|
(GHIDRA_CAST<KAGE_Graphics *>((&DAT_00c798e0)))->KAGE_Graphics::SetRenderTarget((void *)*in_ECX,0);
|
|
(GHIDRA_CAST<RenderTarget *>((&DAT_00c798e0)))->RenderTarget::Clear();
|
|
DAT_00c33910 = 0;
|
|
(GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>((in_ECX + 0xf)))))->Sprite::RenderLayer(0,&g_vectorZero,&g_vectorZero,&g_vectorZero);
|
|
DAT_00c33910 = 1;
|
|
_glfw_context_reset();
|
|
ExceptionList = local_10;
|
|
return;
|
|
}
|
|
piVar5 = GHIDRA_CAST<int *>(0x9355d5);
|
|
uVar3 = get_random_floor_variant(in_ECX);
|
|
local_1c = GHIDRA_CAST<int *>((auStack_4a + -10));
|
|
floorImageRefCount_01 = in_ECX + 0xd;
|
|
loadedImage = GHIDRA_CAST<int *>(0x9355ea);
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((auStack_4a + -10)))->KAGE::SmartPointer::operator_assign(floorImageRefCount_01);
|
|
local_18 = auStackY_ec + 0x90;
|
|
local_8 = 10;
|
|
targetRefCount_00 = in_ECX + 9;
|
|
pvVar4 = (void *)0x935602;
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((auStackY_ec + 0x90)))->KAGE::SmartPointer::operator_assign(targetRefCount_00);
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),0xb);
|
|
(GHIDRA_CAST<shared_ptr *>((auStackY_ec + 0x88)))->shared_ptr::assign(in_ECX);
|
|
local_8 = 0xffffffff;
|
|
render_floor_to_target
|
|
(in_ECX,uVar3,GHIDRA_CAST<RNG *>((in_ECX + 0x13ca)),pvVar4,GHIDRA_CAST<int *>(targetRefCount_00),loadedImage,
|
|
GHIDRA_CAST<int *>(floorImageRefCount_01),in_stack_ffffffac,piVar5);
|
|
ExceptionList = local_10;
|
|
return;
|
|
}
|
|
Manager::LoadImage(&ashImage,GHIDRA_CAST<byte *>("gfx/backdrop/04x_ashpit_ash.png"));
|
|
loadedImage = GHIDRA_CAST<int *>(0x0);
|
|
local_8 = 0;
|
|
piVar5 = GHIDRA_CAST<int *>(0x935430);
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((&floorImage)))->KAGE::SmartPointer::SmartPointer((void *)0x0);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 1;
|
|
roomConfigData = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 4));
|
|
roomConfigData = *GHIDRA_CAST<int *>((roomConfigData + 0x10));
|
|
roomShape = *GHIDRA_CAST<int *>((roomConfigData + 0x48));
|
|
if (roomShape - 9U < 4) {
|
|
loadedImage = Manager::LoadImage(&lFloorImage,GHIDRA_CAST<byte *>("gfx/backdrop/04x_ashpit_ash_Lfloor.png"));
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 2;
|
|
piVar5 = GHIDRA_CAST<int *>(0x93546b);
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((&floorImage)))->KAGE::SmartPointer::operator_assign(loadedImage);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 3;
|
|
if (local_1c == GHIDRA_CAST<int *>(0x0)) goto LAB_009354f2;
|
|
loadedImage = GHIDRA_CAST<int *>(0x93547d);
|
|
isLastRef = (**(code **)(*local_1c + 0xc))();
|
|
if ((isLastRef == '\0') || (g_imageReleaseFn == (void *)0x0)) goto LAB_009354f2;
|
|
loadedImage = &lFloorImage;
|
|
}
|
|
else {
|
|
if (((roomConfigData == 0) || (roomConfigData == 0)) ||
|
|
((roomShape != 2 && (((roomShape != 3 && (roomShape != 5)) && (roomShape != 7))))))
|
|
goto LAB_009354f2;
|
|
loadedImage = Manager::LoadImage(&nFloorImage,GHIDRA_CAST<byte *>("gfx/backdrop/04x_ashpit_ash_Nfloor.png"));
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 4;
|
|
piVar5 = GHIDRA_CAST<int *>(0x9354c6);
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((&floorImage)))->KAGE::SmartPointer::operator_assign(loadedImage);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 5;
|
|
if (nFloorImageRefCount == GHIDRA_CAST<int *>(0x0)) goto LAB_009354f2;
|
|
loadedImage = GHIDRA_CAST<int *>(0x9354d8);
|
|
isLastRef = (**(code **)(*nFloorImageRefCount + 0xc))();
|
|
if ((isLastRef == '\0') || (g_imageReleaseFn == (void *)0x0)) goto LAB_009354f2;
|
|
loadedImage = &nFloorImage;
|
|
}
|
|
piVar5 = GHIDRA_CAST<int *>(0x9354eb);
|
|
(*g_imageReleaseFn)();
|
|
LAB_009354f2:
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 1;
|
|
local_14 = auStack_4a + -10;
|
|
floorImageRefCount_00 = &floorImage;
|
|
floorImage_00 = GHIDRA_CAST<int *>(0x935503);
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((auStack_4a + -10)))->KAGE::SmartPointer::operator_assign(floorImageRefCount_00);
|
|
local_18 = auStackY_ec + 0x90;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 6;
|
|
targetRefCount = &ashImage;
|
|
pvVar4 = (void *)0x935518;
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((auStackY_ec + 0x90)))->KAGE::SmartPointer::operator_assign(targetRefCount);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 7;
|
|
(GHIDRA_CAST<shared_ptr *>((auStackY_ec + 0x88)))->shared_ptr::assign(in_ECX);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 1;
|
|
render_floor_to_target
|
|
(in_ECX,uVar3,GHIDRA_CAST<RNG *>((in_ECX + 0x13ca)),pvVar4,targetRefCount,floorImage_00,
|
|
floorImageRefCount_00,piVar5,loadedImage);
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((&ashImage)))->KAGE::SmartPointer::reset((void *)0x0);
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((&floorImage)))->KAGE::SmartPointer::reset((void *)0x0);
|
|
local_8 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),8);
|
|
if (((floorImageRefCount != GHIDRA_CAST<int *>(0x0)) &&
|
|
(isLastRef = (**(code **)(*floorImageRefCount + 0xc))(), isLastRef != '\0')) &&
|
|
(g_imageReleaseFn != (void *)0x0)) {
|
|
(*g_imageReleaseFn)();
|
|
}
|
|
local_8 = 9;
|
|
if (((ashImageRefCount == GHIDRA_CAST<int *>(0x0)) ||
|
|
(isLastRef = (**(code **)(*ashImageRefCount + 0xc))(), isLastRef == '\0')) ||
|
|
(g_imageReleaseFn == (void *)0x0)) {
|
|
ExceptionList = local_10;
|
|
return;
|
|
}
|
|
(*g_imageReleaseFn)();
|
|
ExceptionList = local_10;
|
|
return;
|
|
}
|
|
|
|
// 00937420
|
|
void Backdrop::pre_render_walls()
|
|
{
|
|
byte isFlipX;
|
|
uint uVar1;
|
|
Entity *spawnedEffect;
|
|
byte isPreAscentMomRoom;
|
|
Backdrop BVar2;
|
|
float *quad;
|
|
float *chosenSrcRect;
|
|
Backdrop *in_ECX;
|
|
int iVar3;
|
|
RNG *rng;
|
|
KColor *color;
|
|
KColor *color_00;
|
|
KColor *extraout_ECX;
|
|
KColor *color_01;
|
|
KColor *extraout_ECX_00;
|
|
KColor *color_02;
|
|
KColor *extraout_ECX_01;
|
|
KColor *color_03;
|
|
KColor *color_04;
|
|
KColor *color_05;
|
|
KColor *color_06;
|
|
KColor *color_07;
|
|
KColor *color_08;
|
|
uint secondVariant;
|
|
KColor *color_09;
|
|
KColor *color_10;
|
|
Backdrop *pBVar4;
|
|
int *extraout_EDX;
|
|
ushort uVar7;
|
|
int *piVar5;
|
|
ushort extraout_var;
|
|
ushort extraout_var_00;
|
|
Backdrop *pBVar6;
|
|
int iVar8;
|
|
code *pcVar9;
|
|
float *dstBuf;
|
|
float fVar10;
|
|
void *pvVar11;
|
|
float fVar12;
|
|
float left;
|
|
float right;
|
|
undefined4 uVar13;
|
|
TypeDescriptor *pTVar14;
|
|
TypeDescriptor *pTVar15;
|
|
undefined4 uVar16;
|
|
KColor *color_11;
|
|
float afStack_8f8 [28];
|
|
float afStack_888 [28];
|
|
float afStack_818 [28];
|
|
float afStack_7a8 [28];
|
|
float afStack_738 [28];
|
|
float afStack_6c8 [28];
|
|
float afStack_658 [28];
|
|
float afStack_5e8 [28];
|
|
float afStack_578 [28];
|
|
float afStack_508 [28];
|
|
float afStack_498 [28];
|
|
float gridQuad [28];
|
|
float drawQuad [29];
|
|
float srcRectE;
|
|
float fStack_340;
|
|
float fStack_33c;
|
|
float fStack_338;
|
|
float fStack_334;
|
|
float fStack_330;
|
|
float fStack_32c;
|
|
float fStack_328;
|
|
undefined1 uStack_324;
|
|
float quadBuf [28];
|
|
float cornerSrcRect;
|
|
float local_2ac;
|
|
float local_2a8;
|
|
float local_2a4;
|
|
float local_2a0;
|
|
float local_29c;
|
|
float local_298;
|
|
float local_294;
|
|
undefined1 local_290;
|
|
int shapeMaxY;
|
|
int shapeMinY;
|
|
int shapeMinX;
|
|
float srcRectB;
|
|
int *piStack_27c;
|
|
float fStack_278;
|
|
int *piStack_274;
|
|
float local_270;
|
|
int *piStack_26c;
|
|
float fStack_268;
|
|
int *piStack_264;
|
|
uint local_260;
|
|
Vector local_25c;
|
|
RNG *wallRng;
|
|
float srcRectA;
|
|
int *local_24c;
|
|
float local_248;
|
|
int *local_244;
|
|
float local_240;
|
|
int *local_23c;
|
|
float local_238;
|
|
int *local_234;
|
|
uint local_230;
|
|
float fStack_22c;
|
|
float fStack_228;
|
|
float fStack_224;
|
|
float srcRectC;
|
|
float fStack_21c;
|
|
float fStack_218;
|
|
float fStack_214;
|
|
float fStack_210;
|
|
float fStack_20c;
|
|
float fStack_208;
|
|
float fStack_204;
|
|
undefined1 uStack_200;
|
|
int local_1fc;
|
|
int gridHeight;
|
|
float srcRectD;
|
|
float fStack_1f0;
|
|
float fStack_1ec;
|
|
float fStack_1e8;
|
|
KColor local_1e4;
|
|
int gridWidth;
|
|
float local_1cc;
|
|
float local_1c8;
|
|
int roomShape;
|
|
uint segmentIndex;
|
|
float local_1bc;
|
|
float local_1b8;
|
|
float local_1b4;
|
|
int *local_1b0;
|
|
float local_1ac;
|
|
Backdrop local_1a8;
|
|
Backdrop *local_1a4;
|
|
BackdropConfig config;
|
|
char tintColor [8];
|
|
float fStack_58;
|
|
int *piStack_54;
|
|
float local_50;
|
|
int *piStack_4c;
|
|
float fStack_48;
|
|
int *piStack_44;
|
|
float local_40;
|
|
int *local_3c;
|
|
undefined4 local_38;
|
|
undefined1 local_34 [12];
|
|
float local_28;
|
|
uint local_24;
|
|
undefined1 *puStack_20;
|
|
void *local_1c;
|
|
undefined1 *puStack_18;
|
|
undefined4 local_14;
|
|
Game *game;
|
|
bool isHorizontalNarrow;
|
|
Backdrop room;
|
|
int secondVariantRow;
|
|
|
|
puStack_20 = local_34 + 0x30;
|
|
local_14 = 0xffffffff;
|
|
puStack_18 = &LAB_00b0b280;
|
|
local_1c = ExceptionList;
|
|
local_24 = __security_cookie ^ GHIDRA_UINT((local_34 + 0x24));
|
|
if (in_ECX[GHIDRA_INT(in_ECX[0x54]) * 0x4f + 0x6e] == (Backdrop)0x0) {
|
|
return;
|
|
}
|
|
ExceptionList = &local_1c;
|
|
local_1a4 = in_ECX;
|
|
BackdropConfig::copy_constructor
|
|
(&config,GHIDRA_CAST<BackdropConfig *>((in_ECX + GHIDRA_INT(in_ECX[0x54]) * 0x4f + 0x55)));
|
|
local_14 = 0;
|
|
iVar3 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 4));
|
|
if ((iVar3 == 0) || (iVar3 = *GHIDRA_CAST<int *>((iVar3 + 0x10)), iVar3 == 0)) {
|
|
iVar3 = 1;
|
|
}
|
|
else {
|
|
iVar3 = *GHIDRA_CAST<int *>((iVar3 + 0x48));
|
|
}
|
|
roomShape = iVar3;
|
|
(GHIDRA_CAST<KAGE_Graphics *>((&DAT_00c798e0)))->KAGE_Graphics::SetRenderTarget((void *)in_ECX[2],0);
|
|
iVar3 = iVar3 * 0x20;
|
|
shapeMinX = *GHIDRA_CAST<int *>((&DAT_00c35b80 + iVar3));
|
|
shapeMinY = *GHIDRA_CAST<int *>((&DAT_00c35b84 + iVar3));
|
|
local_1fc = *GHIDRA_CAST<int *>((&DAT_00c35b88 + iVar3));
|
|
shapeMaxY = *GHIDRA_CAST<int *>((&DAT_00c35b8c + iVar3));
|
|
local_1e4._green = *GHIDRA_CAST<float *>((&DAT_00c35b90 + iVar3));
|
|
local_1e4._blue = *GHIDRA_CAST<float *>((&DAT_00c35b94 + iVar3));
|
|
local_1e4._alpha = *GHIDRA_CAST<float *>((&DAT_00c35b98 + iVar3));
|
|
local_1e4._unk = *GHIDRA_CAST<int *>((&DAT_00c35b9c + iVar3));
|
|
(GHIDRA_CAST<RenderTarget *>((&DAT_00c798e0)))->RenderTarget::Clear();
|
|
room = in_ECX[0x54];
|
|
if ((room == (Backdrop)0x0) || ((char)config.unk1 != '\0')) goto LAB_0093b1df;
|
|
local_1cc = 4.2039e-45;
|
|
if (room == (Backdrop)0x14) {
|
|
local_1a8 = (Backdrop)g_game->_room;
|
|
room = (Backdrop)0x14;
|
|
if ((GHIDRA_CAST<std_vector *>(&(GHIDRA_CAST<Room *>(local_1a8))->_roomType))->_begin != (void *)0x2) {
|
|
isPreAscentMomRoom = (GHIDRA_CAST<Game *>((g_game)))->Game::IsGreedMode();
|
|
room = in_ECX[0x54];
|
|
if (isPreAscentMomRoom == 0) goto LAB_009375f3;
|
|
}
|
|
switch(*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(local_1a8) + 0x7068))) {
|
|
default:
|
|
config.wallVariants = 1;
|
|
break;
|
|
case 2:
|
|
local_1cc = 5.60519e-45;
|
|
break;
|
|
case 3:
|
|
local_1cc = 4.2039e-45;
|
|
break;
|
|
case 4:
|
|
local_1cc = 2.8026e-45;
|
|
break;
|
|
case 5:
|
|
local_1cc = 1.4013e-45;
|
|
}
|
|
pBVar4 = in_ECX + GHIDRA_INT(room) * 0x4f + 0x6e;
|
|
LAB_009375b6:
|
|
room = *pBVar4;
|
|
rng = GHIDRA_CAST<RNG *>((in_ECX + 0x13ca));
|
|
LAB_0093767c:
|
|
local_1ac = (float)(GHIDRA_CAST<RNG *>((rng)))->RNG::RandomInt(GHIDRA_UINT(room));
|
|
}
|
|
else {
|
|
LAB_009375f3:
|
|
local_1a8 = (Backdrop)(in_ECX + GHIDRA_INT(room) * 0x4f);
|
|
if ((room != (Backdrop)0x2e) && (room != (Backdrop)0x3b)) {
|
|
pBVar4 = GHIDRA_CAST<Backdrop *>(((GHIDRA_CAST<Room *>(local_1a8))->_gridEntities + 0x65));
|
|
if (room != (Backdrop)0x2f) goto LAB_009375b6;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_34)) + 0x0))) = in_ECX[0x13ce];
|
|
room = *pBVar4;
|
|
LAB_0093766c:
|
|
local_28 = 3.78351e-44;
|
|
rng = GHIDRA_CAST<RNG *>(local_34);
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_34)) + 0x4))) = 4;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_34)) + 0x8))) = 3;
|
|
goto LAB_0093767c;
|
|
}
|
|
if ((*GHIDRA_CAST<uint *>((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 4)) + 0x44)) & 0x1000) == 0) {
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_34)) + 0x0))) = in_ECX[0x13ce];
|
|
room = *GHIDRA_CAST<Backdrop *>(((GHIDRA_CAST<Room *>(local_1a8))->_gridEntities + 0x65));
|
|
goto LAB_0093766c;
|
|
}
|
|
local_1ac = 1.4013e-45;
|
|
}
|
|
iVar3 = config.wallVariants;
|
|
room = in_ECX[0x54];
|
|
if (room == (Backdrop)0x1) {
|
|
if (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 8)) == 5) {
|
|
config.wallVariants = 1;
|
|
pvVar11 = g_game->_room;
|
|
local_1ac = (float)iVar3;
|
|
local_1a8 = *GHIDRA_CAST<Backdrop *>((GHIDRA_CAST<char *>(pvVar11) + 0x14));
|
|
local_1b8 = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(pvVar11) + 0x18));
|
|
local_1b4 = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(pvVar11) + 0x1c));
|
|
local_1bc = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(pvVar11) + 0x20));
|
|
if (0 < *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(pvVar11) + 0x10)) * *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(pvVar11) + 0xc))) {
|
|
iVar3 = 0;
|
|
do {
|
|
room = in_ECX[0x13ca];
|
|
if (room == (Backdrop)0x0) {
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<byte *>("RNG Seed is zero!\n"));
|
|
room = in_ECX[0x13ca];
|
|
if (room == (Backdrop)0x0) {
|
|
pcVar9 = (code *)swi(3);
|
|
(*pcVar9)();
|
|
return;
|
|
}
|
|
}
|
|
uVar1 = GHIDRA_UINT(room) >> (SUB41(in_ECX[0x13cb],0) & 0x1f) ^ GHIDRA_UINT(room);
|
|
uVar1 = uVar1 << (SUB41(in_ECX[0x13cc],0) & 0x1f) ^ uVar1;
|
|
room = (Backdrop)(uVar1 >> (SUB41(in_ECX[0x13cd],0) & 0x1f) ^ uVar1);
|
|
in_ECX[0x13ca] = room;
|
|
if ((GHIDRA_UINT(room) & 1) != 0) {
|
|
iVar8 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 0xc));
|
|
local_25c.x = (float)(iVar3 % iVar8) * 40.0 + 40.0;
|
|
local_25c.y = (float)(iVar3 / iVar8) * 40.0 + 120.0;
|
|
fVar10 = local_25c.y;
|
|
if (local_25c.y <= local_1b8 + 20.0) {
|
|
fVar10 = local_1b8 + 20.0;
|
|
}
|
|
if (local_1bc - 20.0 <= fVar10) {
|
|
fVar10 = local_1bc - 20.0;
|
|
}
|
|
fVar12 = local_25c.x;
|
|
if (local_25c.x <= (float)local_1a8 + 20.0) {
|
|
fVar12 = (float)local_1a8 + 20.0;
|
|
}
|
|
if (local_1b4 - 20.0 <= fVar12) {
|
|
fVar12 = local_1b4 - 20.0;
|
|
}
|
|
if ((fVar12 == local_25c.x) && (fVar10 == local_25c.y)) {
|
|
uVar1 = Random();
|
|
uVar16 = 0;
|
|
pTVar15 = &IsaacRepentancePlus::Entity_Effect::RTTI_Type_Descriptor;
|
|
pTVar14 = &IsaacRepentancePlus::Entity::RTTI_Type_Descriptor;
|
|
uVar13 = 0;
|
|
spawnedEffect =
|
|
(GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,7,&local_25c,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,uVar1);
|
|
local_1b0 = GHIDRA_CAST<int *>(__RTDynamicCast(spawnedEffect,uVar13,pTVar14,pTVar15,uVar16));
|
|
room = in_ECX[0x13ca];
|
|
if (room == (Backdrop)0x0) {
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<byte *>("RNG Seed is zero!\n"));
|
|
room = in_ECX[0x13ca];
|
|
if (room == (Backdrop)0x0) {
|
|
pcVar9 = (code *)swi(3);
|
|
(*pcVar9)();
|
|
return;
|
|
}
|
|
}
|
|
uVar1 = GHIDRA_UINT(room) >> (SUB41(in_ECX[0x13cb],0) & 0x1f) ^ GHIDRA_UINT(room);
|
|
uVar1 = uVar1 << (SUB41(in_ECX[0x13cc],0) & 0x1f) ^ uVar1;
|
|
room = (Backdrop)(uVar1 >> (SUB41(in_ECX[0x13cd],0) & 0x1f) ^ uVar1);
|
|
in_ECX[0x13ca] = room;
|
|
fVar12 = (float)((double)GHIDRA_INT(room) + __uint_to_double_fixup[-(GHIDRA_INT(room) >> 0x1f)]) *
|
|
2.3283062e-10 * 2.5 + 0.5;
|
|
fVar10 = fVar12 * g_vectorOne.x;
|
|
local_1b0[0x3a] = GHIDRA_INT((fVar12 * g_vectorOne.y));
|
|
local_1b0[0x39] = GHIDRA_INT(fVar10);
|
|
(**(code **)(*local_1b0 + 0xc))();
|
|
}
|
|
}
|
|
iVar3 = iVar3 + 1;
|
|
} while (iVar3 < *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 0x10)) * *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 0xc)));
|
|
room = in_ECX[0x54];
|
|
goto LAB_00937981;
|
|
}
|
|
}
|
|
LAB_009379ce:
|
|
isPreAscentMomRoom = (GHIDRA_CAST<Room *>((g_game->_room)))->Room::is_pre_ascent_mom_room();
|
|
if ((isPreAscentMomRoom == 0) ||
|
|
(isPreAscentMomRoom = (GHIDRA_CAST<Level *>((GHIDRA_CAST<Level *>(g_game))))->Level::IsAscent(), isPreAscentMomRoom != 0))
|
|
goto LAB_00937cb8;
|
|
}
|
|
else {
|
|
LAB_00937981:
|
|
if (room == (Backdrop)0x2d) {
|
|
if ((*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(g_game->_room) + 0x7460)) != g_vectorZero.x) ||
|
|
(*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(g_game->_room) + 0x7464)) != g_vectorZero.y)) {
|
|
local_1ac = (float)config.walls;
|
|
}
|
|
goto LAB_009379ce;
|
|
}
|
|
if ((room != (Backdrop)0x1e) && (room != (Backdrop)0x27)) goto LAB_009379ce;
|
|
}
|
|
local_1a8 = (Backdrop)g_game->_room;
|
|
local_1b4 = (float)((GHIDRA_CAST<Room *>(local_1a8))->_gridHeight * (GHIDRA_CAST<Room *>(local_1a8))->_gridWidth);
|
|
Room::GetCenterPos(&local_25c);
|
|
room = local_1a8;
|
|
local_1b8 = 0.0;
|
|
if (0 < GHIDRA_INT(local_1b4)) {
|
|
do {
|
|
fVar10 = (float)(GHIDRA_INT(local_1b8) % *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(room) + 0xc))) * 40.0 + 40.0;
|
|
local_28 = (float)(GHIDRA_INT(local_1b8) / *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(room) + 0xc))) * 40.0 + 120.0;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_34)) + 0x8))) = fVar10;
|
|
local_1b0 = GHIDRA_CAST<int *>((local_28 - local_25c.y));
|
|
local_1c8 = (fVar10 - local_25c.x) * 0.6;
|
|
iVar3 = (GHIDRA_CAST<Room *>((GHIDRA_CAST<Room *>(room))))->Room::GetRoomShape();
|
|
if ((iVar3 == 2) ||
|
|
(((*(void **)(GHIDRA_CAST<char *>(room) + 4) != (void *)0x0 &&
|
|
(iVar3 = *GHIDRA_CAST<int *>((GHIDRA_INT(*(void **)(GHIDRA_CAST<char *>(room) + 4)) + 0x10)), iVar3 != 0)) &&
|
|
(*GHIDRA_CAST<int *>((iVar3 + 0x48)) == 7)))) {
|
|
local_1b0 = GHIDRA_CAST<int *>(((float)local_1b0 + (float)local_1b0));
|
|
}
|
|
iVar3 = (GHIDRA_CAST<Room *>((GHIDRA_CAST<Room *>(room))))->Room::GetRoomShape();
|
|
if ((iVar3 == 3) ||
|
|
(((*(void **)(GHIDRA_CAST<char *>(room) + 4) != (void *)0x0 &&
|
|
(iVar3 = *GHIDRA_CAST<int *>((GHIDRA_INT(*(void **)(GHIDRA_CAST<char *>(room) + 4)) + 0x10)), iVar3 != 0)) &&
|
|
(*GHIDRA_CAST<int *>((iVar3 + 0x48)) == 5)))) {
|
|
local_1c8 = local_1c8 + local_1c8;
|
|
}
|
|
BVar2 = in_ECX[0x13ca];
|
|
if (BVar2 == (Backdrop)0x0) {
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<byte *>("RNG Seed is zero!\n"));
|
|
BVar2 = in_ECX[0x13ca];
|
|
if (BVar2 == (Backdrop)0x0) {
|
|
pcVar9 = (code *)swi(3);
|
|
(*pcVar9)();
|
|
return;
|
|
}
|
|
}
|
|
uVar1 = GHIDRA_UINT(BVar2) >> (SUB41(in_ECX[0x13cb],0) & 0x1f) ^ GHIDRA_UINT(BVar2);
|
|
uVar1 = uVar1 << (SUB41(in_ECX[0x13cc],0) & 0x1f) ^ uVar1;
|
|
BVar2 = (Backdrop)(uVar1 >> (SUB41(in_ECX[0x13cd],0) & 0x1f) ^ uVar1);
|
|
in_ECX[0x13ca] = BVar2;
|
|
if (((GHIDRA_UINT(BVar2) & 1) != 0) &&
|
|
(fVar10 = sqrtf((float)local_1b0 * (float)local_1b0 + local_1c8 * local_1c8),
|
|
fVar10 < 100.0)) {
|
|
uVar1 = Random();
|
|
local_1a8 = (Backdrop)
|
|
(GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,7,GHIDRA_CAST<Vector *>((local_34 + 8)),&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0
|
|
,uVar1);
|
|
BVar2 = in_ECX[0x13ca];
|
|
if (BVar2 == (Backdrop)0x0) {
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<byte *>("RNG Seed is zero!\n"));
|
|
BVar2 = in_ECX[0x13ca];
|
|
if (BVar2 == (Backdrop)0x0) {
|
|
pcVar9 = (code *)swi(3);
|
|
(*pcVar9)();
|
|
return;
|
|
}
|
|
}
|
|
uVar1 = GHIDRA_UINT(BVar2) >> (SUB41(in_ECX[0x13cb],0) & 0x1f) ^ GHIDRA_UINT(BVar2);
|
|
uVar1 = uVar1 << (SUB41(in_ECX[0x13cc],0) & 0x1f) ^ uVar1;
|
|
BVar2 = (Backdrop)(uVar1 >> (SUB41(in_ECX[0x13cd],0) & 0x1f) ^ uVar1);
|
|
in_ECX[0x13ca] = BVar2;
|
|
pvVar11 = (void *)((float)((double)GHIDRA_INT(BVar2) +
|
|
__uint_to_double_fixup[-(GHIDRA_INT(BVar2) >> 0x1f)]) * 2.3283062e-10 *
|
|
2.5 + 0.5);
|
|
(GHIDRA_CAST<Vector *>(((void **)(GHIDRA_INT(local_1a8) + 0x24) + 0x30)))->x = (float)pvVar11;
|
|
((void **)(GHIDRA_INT(local_1a8) + 0x24))[0x31] = pvVar11;
|
|
if (in_ECX[0x54] == (Backdrop)0x27) {
|
|
local_40 = 0.0;
|
|
local_50 = 0.0;
|
|
piStack_4c = GHIDRA_CAST<int *>(0x0);
|
|
fStack_48 = 0.0;
|
|
piStack_44 = GHIDRA_CAST<int *>(0x0);
|
|
local_3c = GHIDRA_CAST<int *>(0x0);
|
|
local_38 = 0;
|
|
builtin_strncpy(tintColor,"333?333?",8);
|
|
fStack_58 = (float)0x3f333333;
|
|
piStack_54 = GHIDRA_CAST<int *>(0x3f800000);
|
|
(**(code **)(*GHIDRA_CAST<int *>(local_1a8) + 0x3c))(tintColor,0xffffffff,0xff,0,1);
|
|
}
|
|
(**(code **)(*GHIDRA_CAST<int *>(local_1a8) + 0xc))();
|
|
}
|
|
local_1b8 = (float)(GHIDRA_INT(local_1b8) + 1);
|
|
} while (GHIDRA_INT(local_1b8) < GHIDRA_INT(local_1b4));
|
|
}
|
|
LAB_00937cb8:
|
|
gridWidth = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 0xc));
|
|
gridHeight = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 0x10));
|
|
rng = GHIDRA_CAST<RNG *>((in_ECX + 0x13ca));
|
|
local_2a0 = 468.0;
|
|
cornerSrcRect = 468.0;
|
|
local_298 = 520.0;
|
|
local_2a8 = 520.0;
|
|
local_290 = 1;
|
|
local_2ac = (float)(GHIDRA_INT(local_1ac) * 2) * 26.0;
|
|
segmentIndex = 0;
|
|
local_29c = (float)(GHIDRA_INT(local_1ac) * 2 + 2) * 26.0;
|
|
local_2a4 = local_2ac;
|
|
local_294 = local_29c;
|
|
wallRng = rng;
|
|
do {
|
|
room = (Backdrop)rng->_seed;
|
|
if (room == (Backdrop)0x0) {
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<byte *>("RNG Seed is zero!\n"));
|
|
room = in_ECX[0x13ca];
|
|
rng = GHIDRA_CAST<RNG *>((in_ECX + 0x13ca));
|
|
if (room == (Backdrop)0x0) {
|
|
pcVar9 = (code *)swi(3);
|
|
(*pcVar9)();
|
|
return;
|
|
}
|
|
}
|
|
uVar1 = GHIDRA_UINT(room) >> ((byte)rng->_shift1 & 0x1f) ^ GHIDRA_UINT(room);
|
|
uVar1 = uVar1 << (SUB41(in_ECX[0x13cc],0) & 0x1f) ^ uVar1;
|
|
room = (Backdrop)(uVar1 >> (SUB41(in_ECX[0x13cd],0) & 0x1f) ^ uVar1);
|
|
in_ECX[0x13ca] = room;
|
|
if (GHIDRA_UINT(room) % GHIDRA_UINT(local_1cc) == 0) {
|
|
local_1b8 = (float)config.wallVariants;
|
|
if (room == (Backdrop)0x0) {
|
|
local_1a8 = room;
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<byte *>("RNG Seed is zero!\n"));
|
|
room = in_ECX[0x13ca];
|
|
if (room == (Backdrop)0x0) {
|
|
pcVar9 = (code *)swi(3);
|
|
(*pcVar9)();
|
|
return;
|
|
}
|
|
}
|
|
uVar1 = GHIDRA_UINT(room) >> (SUB41(in_ECX[0x13cb],0) & 0x1f) ^ GHIDRA_UINT(room);
|
|
uVar1 = uVar1 << (SUB41(in_ECX[0x13cc],0) & 0x1f) ^ uVar1;
|
|
room = (Backdrop)(uVar1 >> (SUB41(in_ECX[0x13cd],0) & 0x1f) ^ uVar1);
|
|
in_ECX[0x13ca] = room;
|
|
if (local_1b8 == 0.0) {
|
|
local_1a8 = (Backdrop)(GHIDRA_INT(local_1ac) * config.wallVariants);
|
|
}
|
|
else {
|
|
local_1a8 = (Backdrop)(GHIDRA_INT(local_1ac) * config.wallVariants + GHIDRA_UINT(room) % GHIDRA_UINT(local_1b8));
|
|
}
|
|
}
|
|
else {
|
|
local_1a8 = (Backdrop)(GHIDRA_INT(local_1ac) * config.wallVariants);
|
|
}
|
|
fVar12 = 26.0;
|
|
local_260 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_260)) + 0x1))),1);
|
|
local_240 = 0.0;
|
|
srcRectA = 0.0;
|
|
local_244 = GHIDRA_CAST<int *>(0x0);
|
|
iVar3 = (GHIDRA_UINT(local_1a8) >> 1) * 6;
|
|
local_24c = GHIDRA_CAST<int *>(0x0);
|
|
local_238 = 1.0;
|
|
local_248 = 1.0;
|
|
iVar8 = (GHIDRA_UINT(local_1a8) & 1) * 9;
|
|
local_234 = GHIDRA_CAST<int *>(0x3f800000);
|
|
local_23c = GHIDRA_CAST<int *>(0x3f800000);
|
|
local_230 = local_230 & 0xffffff00;
|
|
local_1e4._unk = 0;
|
|
fStack_278 = (float)(iVar8 + 2) * 26.0;
|
|
piStack_26c = GHIDRA_CAST<int *>(((float)(iVar3 + 2) * 26.0));
|
|
srcRectB = (float)iVar8 * 26.0;
|
|
piStack_27c = GHIDRA_CAST<int *>(((float)iVar3 * 26.0));
|
|
local_1e4._red = 1.0;
|
|
local_1e4._green = 1.0;
|
|
local_1e4._blue = 1.0;
|
|
local_1e4._alpha = 1.0;
|
|
piStack_274 = piStack_27c;
|
|
local_270 = srcRectB;
|
|
fStack_268 = fStack_278;
|
|
piStack_264 = piStack_26c;
|
|
local_1c8 = fStack_278;
|
|
local_1b0 = piStack_26c;
|
|
(GHIDRA_CAST<ColorQuad *>((drawQuad)))->ColorQuad::ColorQuad(&local_1e4);
|
|
srcRectA = srcRectB;
|
|
local_24c = piStack_27c;
|
|
local_248 = fStack_278;
|
|
local_244 = piStack_274;
|
|
local_230 = local_260;
|
|
local_240 = local_270;
|
|
local_23c = piStack_26c;
|
|
local_238 = fStack_268;
|
|
local_234 = piStack_264;
|
|
(GHIDRA_CAST<KColor *>((&local_1e4)))->KColor::SetFromARGB(0xffffffff);
|
|
fVar10 = 52.0;
|
|
render_quad_set_uniform_color
|
|
(quadBuf,(float)in_ECX[0x13c6] - 52.0,(float)in_ECX[0x13c7] - 52.0,
|
|
(float)in_ECX[0x13c6] + 0.0,(float)in_ECX[0x13c7] + 0.0,color);
|
|
uVar1 = segmentIndex;
|
|
chosenSrcRect = quadBuf;
|
|
dstBuf = drawQuad;
|
|
for (iVar3 = 0x1c; pBVar4 = local_1a4, iVar3 != 0; iVar3 = iVar3 + -1) {
|
|
*dstBuf = *chosenSrcRect;
|
|
chosenSrcRect = chosenSrcRect + 1;
|
|
dstBuf = dstBuf + 1;
|
|
}
|
|
if (roomShape == 9) {
|
|
if (uVar1 == 0) {
|
|
local_1e4._red = 1.0;
|
|
local_1e4._green = 1.0;
|
|
local_1e4._blue = 1.0;
|
|
local_1e4._alpha = 1.0;
|
|
local_1e4._unk = uVar1;
|
|
render_quad_set_uniform_color
|
|
(quadBuf,(float)local_1a4[0x13c6] + 286.0,(float)local_1a4[0x13c7] - fVar10,
|
|
(float)local_1a4[0x13c6] + 338.0,(float)local_1a4[0x13c7] + 0.0,&local_1e4);
|
|
chosenSrcRect = quadBuf;
|
|
dstBuf = drawQuad;
|
|
for (iVar3 = 0x1c; pBVar4 = local_1a4, iVar3 != 0; iVar3 = iVar3 + -1) {
|
|
*dstBuf = *chosenSrcRect;
|
|
chosenSrcRect = chosenSrcRect + 1;
|
|
dstBuf = dstBuf + 1;
|
|
}
|
|
(**(code **)(*GHIDRA_CAST<int *>(local_1a4[9]) + 0x14))(&srcRectA,drawQuad,g_drawRectUnset);
|
|
color_11 = &local_1e4;
|
|
room = pBVar4[0x13c7];
|
|
BVar2 = pBVar4[0x13c6];
|
|
local_1e4._red = 1.0;
|
|
local_1e4._green = 1.0;
|
|
local_1e4._blue = 1.0;
|
|
local_1e4._alpha = 1.0;
|
|
local_1e4._unk = 0;
|
|
fVar10 = (float)room + 182.0;
|
|
fVar12 = (float)room + 130.0;
|
|
left = (float)BVar2 - 52.0;
|
|
right = (float)BVar2 + 0.0;
|
|
LAB_00938a7a:
|
|
render_quad_set_uniform_color(quadBuf,left,fVar12,right,fVar10,color_11);
|
|
chosenSrcRect = quadBuf;
|
|
dstBuf = drawQuad;
|
|
for (iVar3 = 0x1c; iVar3 != 0; iVar3 = iVar3 + -1) {
|
|
*dstBuf = *chosenSrcRect;
|
|
chosenSrcRect = chosenSrcRect + 1;
|
|
dstBuf = dstBuf + 1;
|
|
}
|
|
}
|
|
}
|
|
else if (roomShape == 10) {
|
|
if (uVar1 == 1) {
|
|
(GHIDRA_CAST<KColor *>((&local_1e4)))->KColor::SetFromARGB(0xffffffff);
|
|
render_quad_set_uniform_color
|
|
(quadBuf,(float)pBVar4[0x13c6] + 338.0,(float)pBVar4[0x13c7] - fVar10,
|
|
(float)pBVar4[0x13c6] + 390.0,(float)pBVar4[0x13c7] + 0.0,color_00);
|
|
chosenSrcRect = quadBuf;
|
|
dstBuf = drawQuad;
|
|
for (iVar3 = 0x1c; pBVar4 = local_1a4, iVar3 != 0; iVar3 = iVar3 + -1) {
|
|
*dstBuf = *chosenSrcRect;
|
|
chosenSrcRect = chosenSrcRect + 1;
|
|
dstBuf = dstBuf + 1;
|
|
}
|
|
(**(code **)(*GHIDRA_CAST<int *>(local_1a4[9]) + 0x14))(&srcRectA,drawQuad,g_drawRectUnset);
|
|
iVar3 = gridWidth;
|
|
(GHIDRA_CAST<KColor *>((&local_1e4)))->KColor::SetFromARGB(0xffffffff);
|
|
fVar10 = (float)pBVar4[0x13c7] + 182.0;
|
|
fVar12 = (float)pBVar4[0x13c7] + 130.0;
|
|
color_11 = extraout_ECX;
|
|
LAB_00938a65:
|
|
left = (float)(iVar3 + -2) * 26.0 + (float)pBVar4[0x13c6];
|
|
right = (float)gridWidth * 26.0 + (float)pBVar4[0x13c6];
|
|
goto LAB_00938a7a;
|
|
}
|
|
}
|
|
else if (roomShape == 0xb) {
|
|
if (uVar1 == 2) {
|
|
iVar3 = gridHeight + -2;
|
|
(GHIDRA_CAST<KColor *>((&local_1e4)))->KColor::SetFromARGB(0xffffffff);
|
|
render_quad_set_uniform_color
|
|
(quadBuf,(float)pBVar4[0x13c6] + 286.0,
|
|
(float)iVar3 * fVar12 + (float)pBVar4[0x13c7],(float)pBVar4[0x13c6] + 338.0,
|
|
(float)gridHeight * fVar12 + (float)pBVar4[0x13c7],color_01);
|
|
chosenSrcRect = quadBuf;
|
|
dstBuf = drawQuad;
|
|
for (iVar3 = 0x1c; pBVar4 = local_1a4, iVar3 != 0; iVar3 = iVar3 + -1) {
|
|
*dstBuf = *chosenSrcRect;
|
|
chosenSrcRect = chosenSrcRect + 1;
|
|
dstBuf = dstBuf + 1;
|
|
}
|
|
(**(code **)(*GHIDRA_CAST<int *>(local_1a4[9]) + 0x14))(&srcRectA,drawQuad,g_drawRectUnset);
|
|
(GHIDRA_CAST<KColor *>((&local_1e4)))->KColor::SetFromARGB(0xffffffff);
|
|
room = pBVar4[0x13c7];
|
|
BVar2 = pBVar4[0x13c6];
|
|
fVar10 = (float)room + 234.0;
|
|
fVar12 = (float)room + 182.0;
|
|
left = (float)BVar2 - 52.0;
|
|
right = (float)BVar2 + 0.0;
|
|
color_11 = extraout_ECX_00;
|
|
goto LAB_00938a7a;
|
|
}
|
|
}
|
|
else if (roomShape == 0xc) {
|
|
if (uVar1 == 3) {
|
|
iVar3 = gridHeight + -2;
|
|
(GHIDRA_CAST<KColor *>((&local_1e4)))->KColor::SetFromARGB(0xffffffff);
|
|
render_quad_set_uniform_color
|
|
(quadBuf,(float)pBVar4[0x13c6] + 338.0,
|
|
(float)iVar3 * fVar12 + (float)pBVar4[0x13c7],(float)pBVar4[0x13c6] + 390.0,
|
|
(float)gridHeight * fVar12 + (float)pBVar4[0x13c7],color_02);
|
|
chosenSrcRect = quadBuf;
|
|
dstBuf = drawQuad;
|
|
for (iVar3 = 0x1c; pBVar4 = local_1a4, iVar3 != 0; iVar3 = iVar3 + -1) {
|
|
*dstBuf = *chosenSrcRect;
|
|
chosenSrcRect = chosenSrcRect + 1;
|
|
dstBuf = dstBuf + 1;
|
|
}
|
|
(**(code **)(*GHIDRA_CAST<int *>(local_1a4[9]) + 0x14))(&srcRectA,drawQuad,g_drawRectUnset);
|
|
iVar3 = gridWidth;
|
|
(GHIDRA_CAST<KColor *>((&local_1e4)))->KColor::SetFromARGB(0xffffffff);
|
|
fVar10 = (float)pBVar4[0x13c7] + 234.0;
|
|
fVar12 = (float)pBVar4[0x13c7] + 182.0;
|
|
color_11 = extraout_ECX_01;
|
|
goto LAB_00938a65;
|
|
}
|
|
}
|
|
else if ((((roomShape == 2) || (roomShape == 3)) || (roomShape == 7)) || (roomShape == 5)) {
|
|
/* WARNING: Could not recover jumptable at 0x009387a6. Too many branches */
|
|
/* WARNING: Treating indirect jump as call */
|
|
(*(code *)(&PTR_LAB_0093b46c)[uVar1])();
|
|
return;
|
|
}
|
|
in_ECX = local_1a4;
|
|
iVar3 = roomShape;
|
|
(**(code **)(*GHIDRA_CAST<int *>(local_1a4[9]) + 0x14))(&srcRectA,drawQuad,g_drawRectUnset);
|
|
if ((segmentIndex == 2) || (segmentIndex == 3)) {
|
|
isPreAscentMomRoom = 1;
|
|
}
|
|
else {
|
|
isPreAscentMomRoom = 0;
|
|
}
|
|
if ((segmentIndex == 1) || (segmentIndex == 3)) {
|
|
isFlipX = 1;
|
|
}
|
|
else {
|
|
isFlipX = 0;
|
|
}
|
|
spawn_wall_details(in_ECX,0,0,GHIDRA_INT(local_1ac),GHIDRA_INT(local_1a8),drawQuad,isFlipX,isPreAscentMomRoom)
|
|
;
|
|
segmentIndex = segmentIndex + 1;
|
|
if (3 < segmentIndex) break;
|
|
rng = GHIDRA_CAST<RNG *>((in_ECX + 0x13ca));
|
|
} while( true );
|
|
segmentIndex = 0;
|
|
do {
|
|
fVar10 = local_1cc;
|
|
rng = wallRng;
|
|
local_1b0 = GHIDRA_CAST<int *>(0x0);
|
|
local_1bc = 0.0;
|
|
if (iVar3 == 9) {
|
|
local_1b0 = GHIDRA_CAST<int *>(0x7);
|
|
LAB_00938ba7:
|
|
uVar1 = (GHIDRA_CAST<RNG *>((wallRng)))->RNG::RandomInt(GHIDRA_UINT(local_1cc));
|
|
if (uVar1 == 0) {
|
|
local_1c8 = (float)(GHIDRA_CAST<RNG *>((rng)))->RNG::RandomInt(config.wallVariants);
|
|
}
|
|
else {
|
|
local_1c8 = 0.0;
|
|
}
|
|
uVar1 = (GHIDRA_CAST<RNG *>((rng)))->RNG::RandomInt(GHIDRA_UINT(fVar10));
|
|
if (uVar1 == 0) {
|
|
local_1b4 = (float)(GHIDRA_CAST<RNG *>((rng)))->RNG::RandomInt(config.wallVariants);
|
|
}
|
|
else {
|
|
local_1b4 = 0.0;
|
|
}
|
|
fVar10 = 26.0;
|
|
uVar1 = GHIDRA_INT(local_1c8) + GHIDRA_INT(local_1ac) * config.wallVariants;
|
|
uStack_200 = 1;
|
|
iVar3 = segmentIndex + (uVar1 & 1) * 9;
|
|
secondVariantRow = (uVar1 >> 1) * 6;
|
|
uVar1 = GHIDRA_INT(local_1b4) + GHIDRA_INT(local_1ac) * config.wallVariants;
|
|
iVar8 = segmentIndex + (uVar1 & 1) * 9;
|
|
fStack_224 = (float)((uVar1 >> 1) * 6);
|
|
srcRectC = (float)(iVar3 + 2) * 26.0;
|
|
fStack_21c = (float)secondVariantRow * 26.0;
|
|
fStack_218 = (float)(iVar3 + 3) * 26.0;
|
|
fStack_20c = (float)(secondVariantRow + 2) * 26.0;
|
|
fStack_214 = fStack_21c;
|
|
fStack_210 = srcRectC;
|
|
fStack_208 = fStack_218;
|
|
fStack_204 = fStack_20c;
|
|
(GHIDRA_CAST<KColor *>((&local_1e4)))->KColor::SetFromARGB(0xffffffff);
|
|
iVar3 = segmentIndex + 2;
|
|
local_1a8 = (Backdrop)((float)GHIDRA_INT((segmentIndex + 1)) * fVar10);
|
|
local_1b8 = (float)GHIDRA_INT(segmentIndex) * fVar10;
|
|
render_quad_set_uniform_color
|
|
(afStack_498,local_1b8 + (float)local_1a4[0x13c6],
|
|
(float)(GHIDRA_INT(local_1b0) + -2) * fVar10 + (float)local_1a4[0x13c7],
|
|
(float)local_1a4[0x13c6] + (float)local_1a8,
|
|
(float)GHIDRA_INT(local_1b0) * fVar10 + (float)local_1a4[0x13c7],&local_1e4);
|
|
(**(code **)(*GHIDRA_CAST<int *>(local_1a4[9]) + 0x14))(&srcRectC,afStack_498,g_drawRectUnset);
|
|
spawn_wall_details(local_1a4,iVar3,0,GHIDRA_INT(local_1ac),GHIDRA_INT(local_1c8),afStack_498,0,0);
|
|
iVar3 = gridHeight + (GHIDRA_INT(local_1bc) - 2U);
|
|
(GHIDRA_CAST<KColor *>((&local_1e4)))->KColor::SetFromARGB(0xffffffff);
|
|
fVar10 = 26.0;
|
|
render_quad_set_uniform_color
|
|
(afStack_508,(float)local_1a4[0x13c6] + local_1b8,
|
|
(float)iVar3 * 26.0 + (float)local_1a4[0x13c7],
|
|
(float)local_1a4[0x13c6] + (float)local_1a8,
|
|
(float)(iVar3 + 2) * 26.0 + (float)local_1a4[0x13c7],color_03);
|
|
local_260 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_260)) + 0x1))),1);
|
|
srcRectB = (float)(iVar8 + 2) * fVar10;
|
|
piStack_27c = GHIDRA_CAST<int *>(((float)(GHIDRA_INT(fStack_224) + 2) * fVar10));
|
|
fStack_278 = (float)(iVar8 + 3) * fVar10;
|
|
piStack_26c = GHIDRA_CAST<int *>(((float)GHIDRA_INT(fStack_224) * fVar10));
|
|
piStack_274 = piStack_27c;
|
|
local_270 = srcRectB;
|
|
fStack_268 = fStack_278;
|
|
piStack_264 = piStack_26c;
|
|
(**(code **)(*GHIDRA_CAST<int *>(local_1a4[9]) + 0x14))(&srcRectB,afStack_508,g_drawRectUnset);
|
|
in_ECX = local_1a4;
|
|
spawn_wall_details(local_1a4,segmentIndex + 2,0,GHIDRA_INT(local_1ac),GHIDRA_INT(local_1b4),afStack_508,0,1)
|
|
;
|
|
iVar3 = roomShape;
|
|
}
|
|
else {
|
|
if (iVar3 == 0xb) {
|
|
local_1bc = -NAN;
|
|
goto LAB_00938ba7;
|
|
}
|
|
if ((iVar3 == 2) || (iVar3 == 7)) {
|
|
local_1b0 = GHIDRA_CAST<int *>(0x2);
|
|
local_1bc = -NAN;
|
|
goto LAB_00938ba7;
|
|
}
|
|
if (((iVar3 != 3) && (iVar3 != 5)) ||
|
|
((shapeMinX + -1 <= GHIDRA_INT(segmentIndex) && (GHIDRA_INT(segmentIndex) <= local_1fc + -1))))
|
|
goto LAB_00938ba7;
|
|
}
|
|
segmentIndex = segmentIndex + 1;
|
|
} while (GHIDRA_INT(segmentIndex) < 7);
|
|
local_1b0 = GHIDRA_CAST<int *>(0x7);
|
|
uVar1 = gridWidth + -8;
|
|
segmentIndex = uVar1;
|
|
if (7 < GHIDRA_INT(uVar1)) {
|
|
do {
|
|
fVar10 = local_1cc;
|
|
rng = wallRng;
|
|
local_1b4 = 0.0;
|
|
local_1c8 = 0.0;
|
|
if (iVar3 == 9) {
|
|
if (local_1b0 < 0xd) {
|
|
LAB_00938f84:
|
|
local_1b4 = 9.80909e-45;
|
|
}
|
|
LAB_00938ff9:
|
|
uVar1 = (GHIDRA_CAST<RNG *>((wallRng)))->RNG::RandomInt(GHIDRA_UINT(local_1cc));
|
|
if (uVar1 == 0) {
|
|
local_1bc = (float)(GHIDRA_CAST<RNG *>((rng)))->RNG::RandomInt(config.wallVariants);
|
|
}
|
|
else {
|
|
local_1bc = 0.0;
|
|
}
|
|
uVar1 = (GHIDRA_CAST<RNG *>((rng)))->RNG::RandomInt(GHIDRA_UINT(fVar10));
|
|
if (uVar1 == 0) {
|
|
local_1b8 = (float)(GHIDRA_CAST<RNG *>((rng)))->RNG::RandomInt(config.wallVariants);
|
|
}
|
|
else {
|
|
local_1b8 = 0.0;
|
|
}
|
|
fVar10 = 26.0;
|
|
secondVariant = GHIDRA_UINT(local_1b0) & 1;
|
|
uVar1 = GHIDRA_INT(local_1bc) + GHIDRA_INT(local_1ac) * config.wallVariants;
|
|
local_260 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_260)) + 0x1))),1);
|
|
iVar3 = secondVariant + (uVar1 & 1) * 9;
|
|
iVar8 = (uVar1 >> 1) * 6;
|
|
uVar1 = GHIDRA_INT(local_1b8) + GHIDRA_INT(local_1ac) * config.wallVariants;
|
|
local_1a8 = (Backdrop)((uVar1 >> 1) * 6);
|
|
srcRectB = (float)(iVar3 + 7) * 26.0;
|
|
fStack_22c = (float)(secondVariant + (uVar1 & 1) * 9 + 7);
|
|
piStack_27c = GHIDRA_CAST<int *>(((float)iVar8 * 26.0));
|
|
fStack_278 = (float)(iVar3 + 8) * 26.0;
|
|
piStack_26c = GHIDRA_CAST<int *>(((float)(iVar8 + 2) * 26.0));
|
|
piStack_274 = piStack_27c;
|
|
local_270 = srcRectB;
|
|
fStack_268 = fStack_278;
|
|
piStack_264 = piStack_26c;
|
|
(GHIDRA_CAST<KColor *>((&local_1e4)))->KColor::SetFromARGB(0xffffffff);
|
|
pBVar4 = local_1a4;
|
|
fStack_224 = (float)GHIDRA_INT((GHIDRA_INT(local_1b0) + 1)) * fVar10;
|
|
fStack_228 = (float)GHIDRA_INT(local_1b0) * fVar10;
|
|
render_quad_set_uniform_color
|
|
(afStack_578,fStack_228 + (float)local_1a4[0x13c6],
|
|
(float)GHIDRA_INT((GHIDRA_INT(local_1b4) - 2)) * fVar10 + (float)local_1a4[0x13c7],
|
|
(float)local_1a4[0x13c6] + fStack_224,
|
|
(float)GHIDRA_INT(local_1b4) * fVar10 + (float)local_1a4[0x13c7],&local_1e4);
|
|
(**(code **)(*GHIDRA_CAST<int *>(pBVar4[9]) + 0x14))(&srcRectB,afStack_578,g_drawRectUnset);
|
|
spawn_wall_details(pBVar4,secondVariant + 7,0,GHIDRA_INT(local_1ac),GHIDRA_INT(local_1bc),afStack_578,0,0)
|
|
;
|
|
iVar3 = gridHeight + (GHIDRA_INT(local_1c8) - 2U);
|
|
(GHIDRA_CAST<KColor *>((&local_1e4)))->KColor::SetFromARGB(0xffffffff);
|
|
fVar10 = 26.0;
|
|
render_quad_set_uniform_color
|
|
(afStack_7a8,(float)local_1a4[0x13c6] + fStack_228,
|
|
(float)iVar3 * 26.0 + (float)local_1a4[0x13c7],
|
|
(float)local_1a4[0x13c6] + fStack_224,
|
|
(float)(iVar3 + 2) * 26.0 + (float)local_1a4[0x13c7],color_04);
|
|
local_1e4._green = (float)GHIDRA_INT(local_1a8) * fVar10;
|
|
srcRectD = (float)GHIDRA_INT(fStack_22c) * fVar10;
|
|
fStack_1f0 = (float)GHIDRA_INT((GHIDRA_INT(local_1a8) + 2)) * fVar10;
|
|
fStack_1ec = (float)(GHIDRA_INT(fStack_22c) + 1) * fVar10;
|
|
local_1e4._unk = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_1e4._unk)) + 0x1))),1);
|
|
fStack_1e8 = fStack_1f0;
|
|
local_1e4._red = srcRectD;
|
|
local_1e4._blue = fStack_1ec;
|
|
local_1e4._alpha = local_1e4._green;
|
|
(**(code **)(*GHIDRA_CAST<int *>(local_1a4[9]) + 0x14))(&srcRectD,afStack_7a8,g_drawRectUnset);
|
|
in_ECX = local_1a4;
|
|
spawn_wall_details(local_1a4,secondVariant + 7,0,GHIDRA_INT(local_1ac),GHIDRA_INT(local_1b8),afStack_7a8,0
|
|
,1);
|
|
uVar1 = segmentIndex;
|
|
iVar3 = roomShape;
|
|
}
|
|
else {
|
|
if (iVar3 == 10) {
|
|
if (0xc < local_1b0) goto LAB_00938f84;
|
|
goto LAB_00938ff9;
|
|
}
|
|
if (iVar3 == 0xb) {
|
|
if (local_1b0 < 0xd) {
|
|
LAB_00938fa6:
|
|
local_1c8 = -NAN;
|
|
}
|
|
goto LAB_00938ff9;
|
|
}
|
|
if (iVar3 == 0xc) {
|
|
if (0xc < local_1b0) goto LAB_00938fa6;
|
|
goto LAB_00938ff9;
|
|
}
|
|
if ((iVar3 == 2) || (iVar3 == 7)) {
|
|
local_1b4 = 2.8026e-45;
|
|
local_1c8 = -NAN;
|
|
goto LAB_00938ff9;
|
|
}
|
|
if (((iVar3 != 3) && (iVar3 != 5)) ||
|
|
((shapeMinX + -1 <= GHIDRA_INT(local_1b0) && (GHIDRA_INT(local_1b0) <= local_1fc + -1))))
|
|
goto LAB_00938ff9;
|
|
}
|
|
local_1b0 = GHIDRA_CAST<int *>((GHIDRA_INT(local_1b0) + 1));
|
|
} while (GHIDRA_INT(local_1b0) < GHIDRA_INT(uVar1));
|
|
}
|
|
if (GHIDRA_INT(uVar1) < gridWidth + -2) {
|
|
local_1b0 = GHIDRA_CAST<int *>(0x7);
|
|
local_1a8 = (Backdrop)uVar1;
|
|
do {
|
|
fVar10 = local_1cc;
|
|
rng = wallRng;
|
|
local_1a8 = (Backdrop)(GHIDRA_INT(local_1a8) + 1);
|
|
local_1b8 = 0.0;
|
|
local_1bc = 0.0;
|
|
if (iVar3 == 10) {
|
|
if (0xc < GHIDRA_INT(uVar1)) {
|
|
local_1b8 = 9.80909e-45;
|
|
}
|
|
LAB_00939431:
|
|
uVar1 = (GHIDRA_CAST<RNG *>((wallRng)))->RNG::RandomInt(GHIDRA_UINT(local_1cc));
|
|
if (uVar1 == 0) {
|
|
local_1b4 = (float)(GHIDRA_CAST<RNG *>((rng)))->RNG::RandomInt(config.wallVariants);
|
|
}
|
|
else {
|
|
local_1b4 = 0.0;
|
|
}
|
|
uVar1 = (GHIDRA_CAST<RNG *>((rng)))->RNG::RandomInt(GHIDRA_UINT(fVar10));
|
|
if (uVar1 == 0) {
|
|
local_1c8 = (float)(GHIDRA_CAST<RNG *>((rng)))->RNG::RandomInt(config.wallVariants);
|
|
}
|
|
else {
|
|
local_1c8 = 0.0;
|
|
}
|
|
uVar1 = GHIDRA_INT(local_1b4) + GHIDRA_INT(local_1ac) * config.wallVariants;
|
|
iVar3 = (uVar1 >> 1) * 6;
|
|
iVar8 = gridWidth + -1 + ((uVar1 & 1) * 9 - segmentIndex);
|
|
uVar1 = GHIDRA_INT(local_1c8) + GHIDRA_INT(local_1ac) * config.wallVariants;
|
|
local_25c.y = (float)((uVar1 >> 1) * 6);
|
|
fStack_224 = (float)(((uVar1 & 1) * 9 - segmentIndex) + gridWidth + -1);
|
|
(GHIDRA_CAST<KColor *>((&local_1e4)))->KColor::SetFromARGB(0xffffffff);
|
|
fVar10 = 26.0;
|
|
fStack_22c = (float)GHIDRA_INT(local_1a8) * 26.0;
|
|
fStack_228 = (float)GHIDRA_INT(segmentIndex) * 26.0;
|
|
render_quad_set_uniform_color
|
|
(afStack_5e8,fStack_228 + (float)local_1a4[0x13c6],
|
|
(float)GHIDRA_INT((GHIDRA_INT(local_1b8) - 2)) * 26.0 + (float)local_1a4[0x13c7],
|
|
(float)local_1a4[0x13c6] + fStack_22c,
|
|
(float)GHIDRA_INT(local_1b8) * 26.0 + (float)local_1a4[0x13c7],color_05);
|
|
srcRectD = (float)(iVar8 + 1) * fVar10;
|
|
fStack_1f0 = (float)iVar3 * fVar10;
|
|
fStack_1ec = (float)iVar8 * fVar10;
|
|
local_1e4._green = (float)(iVar3 + 2) * fVar10;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_1e4._unk)) + 0x0))) = 1;
|
|
fStack_1e8 = fStack_1f0;
|
|
local_1e4._red = srcRectD;
|
|
local_1e4._blue = fStack_1ec;
|
|
local_1e4._alpha = local_1e4._green;
|
|
(**(code **)(*GHIDRA_CAST<int *>(local_1a4[9]) + 0x14))(&srcRectD,afStack_5e8,g_drawRectUnset);
|
|
pBVar4 = local_1a4;
|
|
spawn_wall_details(local_1a4,GHIDRA_INT(local_1b0),0,GHIDRA_INT(local_1ac),GHIDRA_INT(local_1b4),afStack_5e8,1,0)
|
|
;
|
|
iVar3 = gridHeight + (GHIDRA_INT(local_1bc) - 2U);
|
|
(GHIDRA_CAST<KColor *>((&local_1e4)))->KColor::SetFromARGB(0xffffffff);
|
|
fVar10 = 26.0;
|
|
render_quad_set_uniform_color
|
|
(afStack_658,(float)pBVar4[0x13c6] + fStack_228,
|
|
(float)iVar3 * 26.0 + (float)pBVar4[0x13c7],(float)pBVar4[0x13c6] + fStack_22c,
|
|
(float)(iVar3 + 2) * 26.0 + (float)pBVar4[0x13c7],color_06);
|
|
srcRectD = (float)(GHIDRA_INT(fStack_224) + 1) * fVar10;
|
|
fStack_1f0 = (float)(GHIDRA_INT(local_25c.y) + 2) * fVar10;
|
|
fStack_1ec = (float)GHIDRA_INT(fStack_224) * fVar10;
|
|
local_1e4._green = (float)GHIDRA_INT(local_25c.y) * fVar10;
|
|
local_1e4._unk = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_1e4._unk)) + 0x1))),1);
|
|
fStack_1e8 = fStack_1f0;
|
|
local_1e4._red = srcRectD;
|
|
local_1e4._blue = fStack_1ec;
|
|
local_1e4._alpha = local_1e4._green;
|
|
(**(code **)(*GHIDRA_CAST<int *>(pBVar4[9]) + 0x14))(&srcRectD,afStack_658,g_drawRectUnset);
|
|
spawn_wall_details(local_1a4,GHIDRA_INT(local_1b0),0,GHIDRA_INT(local_1ac),GHIDRA_INT(local_1c8),afStack_658,1,1)
|
|
;
|
|
uVar1 = segmentIndex;
|
|
iVar3 = roomShape;
|
|
}
|
|
else {
|
|
if (iVar3 == 0xc) {
|
|
if (0xc < GHIDRA_INT(uVar1)) {
|
|
local_1bc = -NAN;
|
|
}
|
|
goto LAB_00939431;
|
|
}
|
|
if ((iVar3 == 2) || (iVar3 == 7)) {
|
|
local_1b8 = 2.8026e-45;
|
|
local_1bc = -NAN;
|
|
goto LAB_00939431;
|
|
}
|
|
if (((iVar3 != 3) && (iVar3 != 5)) ||
|
|
((shapeMinX + -1 <= GHIDRA_INT(uVar1) && (GHIDRA_INT(uVar1) <= local_1fc + -1)))) goto LAB_00939431;
|
|
}
|
|
uVar1 = uVar1 + 1;
|
|
local_1b0 = GHIDRA_CAST<int *>((GHIDRA_INT(local_1b0) - 1));
|
|
in_ECX = local_1a4;
|
|
segmentIndex = uVar1;
|
|
} while (GHIDRA_INT(uVar1) < gridWidth + -2);
|
|
}
|
|
local_1fc = 0;
|
|
do {
|
|
fVar10 = local_1cc;
|
|
rng = wallRng;
|
|
local_1a8 = (Backdrop)0x0;
|
|
local_1b4 = 0.0;
|
|
if (iVar3 == 9) {
|
|
local_1a8 = (Backdrop)0xd;
|
|
LAB_00939868:
|
|
uVar1 = (GHIDRA_CAST<RNG *>((wallRng)))->RNG::RandomInt(GHIDRA_UINT(local_1cc));
|
|
if (uVar1 == 0) {
|
|
local_1b8 = (float)(GHIDRA_CAST<RNG *>((rng)))->RNG::RandomInt(config.wallVariants);
|
|
}
|
|
else {
|
|
local_1b8 = 0.0;
|
|
}
|
|
uVar1 = (GHIDRA_CAST<RNG *>((rng)))->RNG::RandomInt(GHIDRA_UINT(fVar10));
|
|
if (uVar1 == 0) {
|
|
local_1bc = (float)(GHIDRA_CAST<RNG *>((rng)))->RNG::RandomInt(config.wallVariants);
|
|
}
|
|
else {
|
|
local_1bc = 0.0;
|
|
}
|
|
fVar10 = 26.0;
|
|
uVar1 = GHIDRA_INT(local_1b8) + GHIDRA_INT(local_1ac) * config.wallVariants;
|
|
uStack_324 = 1;
|
|
iVar3 = local_1fc + ((uVar1 >> 1) * 3 + 1) * 2;
|
|
iVar8 = (uVar1 & 1) * 9;
|
|
uVar1 = GHIDRA_INT(local_1bc) + GHIDRA_INT(local_1ac) * config.wallVariants;
|
|
fStack_228 = (float)(local_1fc + 2 + (uVar1 >> 1) * 6);
|
|
secondVariantRow = (uVar1 & 1) * 9;
|
|
srcRectE = (float)iVar8 * 26.0;
|
|
fStack_340 = (float)iVar3 * 26.0;
|
|
fStack_33c = (float)(iVar8 + 2) * 26.0;
|
|
fStack_330 = (float)(iVar3 + 1) * 26.0;
|
|
fStack_338 = fStack_340;
|
|
fStack_334 = srcRectE;
|
|
fStack_32c = fStack_33c;
|
|
fStack_328 = fStack_330;
|
|
(GHIDRA_CAST<KColor *>((&local_1e4)))->KColor::SetFromARGB(0xffffffff);
|
|
iVar3 = local_1fc + 2;
|
|
local_25c.y = (float)(local_1fc + 1) * fVar10;
|
|
fStack_22c = (float)local_1fc * fVar10;
|
|
render_quad_set_uniform_color
|
|
(afStack_6c8,(float)(GHIDRA_INT(local_1a8) + -2) * fVar10 + (float)local_1a4[0x13c6],
|
|
fStack_22c + (float)local_1a4[0x13c7],
|
|
(float)GHIDRA_INT(local_1a8) * fVar10 + (float)local_1a4[0x13c6],
|
|
(float)local_1a4[0x13c7] + local_25c.y,&local_1e4);
|
|
(**(code **)(*GHIDRA_CAST<int *>(local_1a4[9]) + 0x14))(&srcRectE,afStack_6c8,g_drawRectUnset);
|
|
spawn_wall_details(local_1a4,0,iVar3,GHIDRA_INT(local_1ac),GHIDRA_INT(local_1b8),afStack_6c8,0,0);
|
|
iVar3 = gridWidth + (GHIDRA_INT(local_1b4) - 2U);
|
|
(GHIDRA_CAST<KColor *>((&local_1e4)))->KColor::SetFromARGB(0xffffffff);
|
|
fVar10 = 26.0;
|
|
render_quad_set_uniform_color
|
|
(afStack_738,(float)iVar3 * 26.0 + (float)local_1a4[0x13c6],
|
|
(float)local_1a4[0x13c7] + fStack_22c,
|
|
(float)(iVar3 + 2) * 26.0 + (float)local_1a4[0x13c6],
|
|
(float)local_1a4[0x13c7] + local_25c.y,color_07);
|
|
fStack_1ec = (float)secondVariantRow * fVar10;
|
|
local_1e4._unk = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_1e4._unk)) + 0x1))),1);
|
|
srcRectD = (float)(secondVariantRow + 2) * fVar10;
|
|
fStack_1f0 = (float)GHIDRA_INT(fStack_228) * fVar10;
|
|
local_1e4._green = (float)(GHIDRA_INT(fStack_228) + 1) * fVar10;
|
|
fStack_1e8 = fStack_1f0;
|
|
local_1e4._red = srcRectD;
|
|
local_1e4._blue = fStack_1ec;
|
|
local_1e4._alpha = local_1e4._green;
|
|
(**(code **)(*GHIDRA_CAST<int *>(local_1a4[9]) + 0x14))(&srcRectD,afStack_738,g_drawRectUnset);
|
|
in_ECX = local_1a4;
|
|
spawn_wall_details(local_1a4,0,local_1fc + 2,GHIDRA_INT(local_1ac),GHIDRA_INT(local_1bc),afStack_738,1,0);
|
|
iVar3 = roomShape;
|
|
}
|
|
else {
|
|
if (iVar3 == 10) {
|
|
local_1b4 = -NAN;
|
|
goto LAB_00939868;
|
|
}
|
|
if ((iVar3 == 3) || (iVar3 == 5)) {
|
|
local_1a8 = (Backdrop)0x4;
|
|
local_1b4 = -NAN;
|
|
goto LAB_00939868;
|
|
}
|
|
if (((iVar3 != 2) && (iVar3 != 7)) ||
|
|
((shapeMinY + -1 <= local_1fc && (local_1fc <= shapeMaxY + -1)))) goto LAB_00939868;
|
|
}
|
|
local_1fc = local_1fc + 1;
|
|
} while (local_1fc < 4);
|
|
local_1b0 = GHIDRA_CAST<int *>(&DAT_00000004);
|
|
uVar1 = gridHeight + -5;
|
|
segmentIndex = uVar1;
|
|
if (4 < GHIDRA_INT(uVar1)) {
|
|
do {
|
|
fVar10 = local_1cc;
|
|
rng = wallRng;
|
|
local_1a8 = (Backdrop)0x0;
|
|
local_1b4 = 0.0;
|
|
if (iVar3 == 9) {
|
|
if (local_1b0 < &DAT_00000007) {
|
|
LAB_00939c37:
|
|
local_1a8 = (Backdrop)0xd;
|
|
}
|
|
LAB_00939cac:
|
|
uVar1 = (GHIDRA_CAST<RNG *>((wallRng)))->RNG::RandomInt(GHIDRA_UINT(local_1cc));
|
|
if (uVar1 == 0) {
|
|
local_1b8 = (float)(GHIDRA_CAST<RNG *>((rng)))->RNG::RandomInt(config.wallVariants);
|
|
}
|
|
else {
|
|
local_1b8 = 0.0;
|
|
}
|
|
uVar1 = (GHIDRA_CAST<RNG *>((rng)))->RNG::RandomInt(GHIDRA_UINT(fVar10));
|
|
if (uVar1 == 0) {
|
|
local_1bc = (float)(GHIDRA_CAST<RNG *>((rng)))->RNG::RandomInt(config.wallVariants);
|
|
}
|
|
else {
|
|
local_1bc = 0.0;
|
|
}
|
|
fVar10 = 26.0;
|
|
secondVariant = GHIDRA_UINT(local_1b0) & 1;
|
|
uVar1 = GHIDRA_INT(local_1b8) + GHIDRA_INT(local_1ac) * config.wallVariants;
|
|
local_38 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_38)) + 0x1))),1);
|
|
iVar3 = secondVariant + ((uVar1 >> 1) * 3 + 2) * 2;
|
|
iVar8 = (uVar1 & 1) * 9;
|
|
uVar1 = GHIDRA_INT(local_1bc) + GHIDRA_INT(local_1ac) * config.wallVariants;
|
|
fStack_58 = (float)iVar8 * 26.0;
|
|
fStack_224 = (float)(secondVariant + ((uVar1 >> 1) * 3 + 2) * 2);
|
|
fStack_228 = (float)((uVar1 & 1) * 9);
|
|
piStack_54 = GHIDRA_CAST<int *>(((float)iVar3 * 26.0));
|
|
local_50 = (float)(iVar8 + 2) * 26.0;
|
|
piStack_44 = GHIDRA_CAST<int *>(((float)(iVar3 + 1) * 26.0));
|
|
piStack_4c = piStack_54;
|
|
fStack_48 = fStack_58;
|
|
local_40 = local_50;
|
|
local_3c = piStack_44;
|
|
(GHIDRA_CAST<KColor *>((&local_1e4)))->KColor::SetFromARGB(0xffffffff);
|
|
pBVar4 = local_1a4;
|
|
local_25c.y = (float)GHIDRA_INT((GHIDRA_INT(local_1b0) + 1)) * fVar10;
|
|
fStack_22c = (float)GHIDRA_INT(local_1b0) * fVar10;
|
|
render_quad_set_uniform_color
|
|
(afStack_8f8,(float)(GHIDRA_INT(local_1a8) + -2) * fVar10 + (float)local_1a4[0x13c6],
|
|
fStack_22c + (float)local_1a4[0x13c7],
|
|
(float)GHIDRA_INT(local_1a8) * fVar10 + (float)local_1a4[0x13c6],
|
|
(float)local_1a4[0x13c7] + local_25c.y,&local_1e4);
|
|
(**(code **)(*GHIDRA_CAST<int *>(pBVar4[9]) + 0x14))(&fStack_58,afStack_8f8,g_drawRectUnset);
|
|
spawn_wall_details(pBVar4,0,secondVariant + 4,GHIDRA_INT(local_1ac),GHIDRA_INT(local_1b8),afStack_8f8,0,0)
|
|
;
|
|
iVar3 = gridWidth + (GHIDRA_INT(local_1b4) - 2U);
|
|
(GHIDRA_CAST<KColor *>((&local_1e4)))->KColor::SetFromARGB(0xffffffff);
|
|
fVar10 = 26.0;
|
|
render_quad_set_uniform_color
|
|
(afStack_818,(float)iVar3 * 26.0 + (float)local_1a4[0x13c6],
|
|
(float)local_1a4[0x13c7] + fStack_22c,
|
|
(float)(iVar3 + 2) * 26.0 + (float)local_1a4[0x13c6],
|
|
(float)local_1a4[0x13c7] + local_25c.y,color_08);
|
|
local_1e4._unk = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_1e4._unk)) + 0x1))),1);
|
|
srcRectD = (float)(GHIDRA_INT(fStack_228) + 2) * fVar10;
|
|
fStack_1f0 = (float)GHIDRA_INT(fStack_224) * fVar10;
|
|
fStack_1ec = (float)GHIDRA_INT(fStack_228) * fVar10;
|
|
local_1e4._green = (float)(GHIDRA_INT(fStack_224) + 1) * fVar10;
|
|
fStack_1e8 = fStack_1f0;
|
|
local_1e4._red = srcRectD;
|
|
local_1e4._blue = fStack_1ec;
|
|
local_1e4._alpha = local_1e4._green;
|
|
(**(code **)(*GHIDRA_CAST<int *>(local_1a4[9]) + 0x14))(&srcRectD,afStack_818,g_drawRectUnset);
|
|
in_ECX = local_1a4;
|
|
spawn_wall_details(local_1a4,0,secondVariant + 4,GHIDRA_INT(local_1ac),GHIDRA_INT(local_1bc),afStack_818,1
|
|
,0);
|
|
uVar1 = segmentIndex;
|
|
iVar3 = roomShape;
|
|
}
|
|
else {
|
|
if (iVar3 == 0xb) {
|
|
if (&DAT_00000006 < local_1b0) goto LAB_00939c37;
|
|
goto LAB_00939cac;
|
|
}
|
|
if (iVar3 == 10) {
|
|
if (local_1b0 < &DAT_00000007) {
|
|
LAB_00939c59:
|
|
local_1b4 = -NAN;
|
|
}
|
|
goto LAB_00939cac;
|
|
}
|
|
if (iVar3 == 0xc) {
|
|
if (&DAT_00000006 < local_1b0) goto LAB_00939c59;
|
|
goto LAB_00939cac;
|
|
}
|
|
if ((iVar3 == 3) || (iVar3 == 5)) {
|
|
local_1a8 = (Backdrop)0x4;
|
|
local_1b4 = -NAN;
|
|
goto LAB_00939cac;
|
|
}
|
|
if (((iVar3 != 2) && (iVar3 != 7)) ||
|
|
((shapeMinY + -1 <= GHIDRA_INT(local_1b0) && (GHIDRA_INT(local_1b0) <= shapeMaxY + -1))))
|
|
goto LAB_00939cac;
|
|
}
|
|
local_1b0 = GHIDRA_CAST<int *>((GHIDRA_INT(local_1b0) + 1));
|
|
} while (GHIDRA_INT(local_1b0) < GHIDRA_INT(uVar1));
|
|
}
|
|
if (GHIDRA_INT(uVar1) < gridHeight + -2) {
|
|
local_1c8 = (float)(uVar1 + 1);
|
|
local_1b0 = GHIDRA_CAST<int *>(&DAT_00000004);
|
|
do {
|
|
fVar10 = local_1cc;
|
|
rng = wallRng;
|
|
local_1a8 = (Backdrop)0x0;
|
|
local_1b4 = 0.0;
|
|
if (iVar3 == 9) {
|
|
if (GHIDRA_INT(uVar1) < 7) {
|
|
LAB_0093a067:
|
|
local_1a8 = (Backdrop)0xd;
|
|
}
|
|
LAB_0093a0dc:
|
|
uVar1 = (GHIDRA_CAST<RNG *>((wallRng)))->RNG::RandomInt(GHIDRA_UINT(local_1cc));
|
|
if (uVar1 == 0) {
|
|
local_1b8 = (float)(GHIDRA_CAST<RNG *>((rng)))->RNG::RandomInt(config.wallVariants);
|
|
}
|
|
else {
|
|
local_1b8 = 0.0;
|
|
}
|
|
uVar1 = (GHIDRA_CAST<RNG *>((rng)))->RNG::RandomInt(GHIDRA_UINT(fVar10));
|
|
if (uVar1 == 0) {
|
|
local_1bc = (float)(GHIDRA_CAST<RNG *>((rng)))->RNG::RandomInt(config.wallVariants);
|
|
}
|
|
else {
|
|
local_1bc = 0.0;
|
|
}
|
|
uVar1 = GHIDRA_INT(local_1b8) + GHIDRA_INT(local_1ac) * config.wallVariants;
|
|
iVar3 = (uVar1 & 1) * 9;
|
|
secondVariant = GHIDRA_INT(local_1bc) + GHIDRA_INT(local_1ac) * config.wallVariants;
|
|
iVar8 = gridHeight + -1 + ((uVar1 >> 1) * 6 - segmentIndex);
|
|
fStack_224 = (float)(((secondVariant >> 1) * 6 - segmentIndex) + gridHeight + -1);
|
|
fStack_228 = (float)((secondVariant & 1) * 9);
|
|
(GHIDRA_CAST<KColor *>((&local_1e4)))->KColor::SetFromARGB(0xffffffff);
|
|
fVar10 = 26.0;
|
|
local_25c.y = (float)GHIDRA_INT(local_1c8) * 26.0;
|
|
fStack_22c = (float)GHIDRA_INT(segmentIndex) * 26.0;
|
|
render_quad_set_uniform_color
|
|
(afStack_888,(float)(GHIDRA_INT(local_1a8) + -2) * 26.0 + (float)local_1a4[0x13c6],
|
|
fStack_22c + (float)local_1a4[0x13c7],
|
|
(float)GHIDRA_INT(local_1a8) * 26.0 + (float)local_1a4[0x13c6],
|
|
(float)local_1a4[0x13c7] + local_25c.y,color_09);
|
|
srcRectD = (float)iVar3 * fVar10;
|
|
fStack_1f0 = (float)(iVar8 + 1) * fVar10;
|
|
fStack_1ec = (float)(iVar3 + 2) * fVar10;
|
|
local_1e4._green = (float)iVar8 * fVar10;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_1e4._unk)) + 0x0))) = 1;
|
|
fStack_1e8 = fStack_1f0;
|
|
local_1e4._red = srcRectD;
|
|
local_1e4._blue = fStack_1ec;
|
|
local_1e4._alpha = local_1e4._green;
|
|
(**(code **)(*GHIDRA_CAST<int *>(local_1a4[9]) + 0x14))(&srcRectD,afStack_888,g_drawRectUnset);
|
|
pBVar4 = local_1a4;
|
|
spawn_wall_details(local_1a4,0,GHIDRA_INT(local_1b0),GHIDRA_INT(local_1ac),GHIDRA_INT(local_1b8),afStack_888,0,1)
|
|
;
|
|
iVar3 = gridWidth + (GHIDRA_INT(local_1b4) - 2U);
|
|
(GHIDRA_CAST<KColor *>((&local_1e4)))->KColor::SetFromARGB(0xffffffff);
|
|
fVar10 = 26.0;
|
|
render_quad_set_uniform_color
|
|
(quadBuf,(float)iVar3 * 26.0 + (float)pBVar4[0x13c6],
|
|
(float)pBVar4[0x13c7] + fStack_22c,
|
|
(float)(iVar3 + 2) * 26.0 + (float)pBVar4[0x13c6],
|
|
(float)pBVar4[0x13c7] + local_25c.y,color_10);
|
|
local_1e4._unk = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_1e4._unk)) + 0x1))),1);
|
|
srcRectD = (float)(GHIDRA_INT(fStack_228) + 2) * fVar10;
|
|
fStack_1f0 = (float)(GHIDRA_INT(fStack_224) + 1) * fVar10;
|
|
fStack_1ec = (float)GHIDRA_INT(fStack_228) * fVar10;
|
|
local_1e4._green = (float)GHIDRA_INT(fStack_224) * fVar10;
|
|
fStack_1e8 = fStack_1f0;
|
|
local_1e4._red = srcRectD;
|
|
local_1e4._blue = fStack_1ec;
|
|
local_1e4._alpha = local_1e4._green;
|
|
(**(code **)(*GHIDRA_CAST<int *>(pBVar4[9]) + 0x14))(&srcRectD,quadBuf,g_drawRectUnset);
|
|
spawn_wall_details(local_1a4,0,GHIDRA_INT(local_1b0),GHIDRA_INT(local_1ac),GHIDRA_INT(local_1bc),quadBuf,1,1);
|
|
uVar1 = segmentIndex;
|
|
iVar3 = roomShape;
|
|
}
|
|
else {
|
|
if (iVar3 == 0xb) {
|
|
if (6 < GHIDRA_INT(uVar1)) goto LAB_0093a067;
|
|
goto LAB_0093a0dc;
|
|
}
|
|
if (iVar3 == 10) {
|
|
if (GHIDRA_INT(uVar1) < 7) {
|
|
LAB_0093a089:
|
|
local_1b4 = -NAN;
|
|
}
|
|
goto LAB_0093a0dc;
|
|
}
|
|
if (iVar3 == 0xc) {
|
|
if (6 < GHIDRA_INT(uVar1)) goto LAB_0093a089;
|
|
goto LAB_0093a0dc;
|
|
}
|
|
if ((iVar3 == 3) || (iVar3 == 5)) {
|
|
local_1a8 = (Backdrop)0x4;
|
|
local_1b4 = -NAN;
|
|
goto LAB_0093a0dc;
|
|
}
|
|
if (((iVar3 != 2) && (iVar3 != 7)) ||
|
|
((shapeMinY + -1 <= GHIDRA_INT(uVar1) && (GHIDRA_INT(uVar1) <= shapeMaxY + -1)))) goto LAB_0093a0dc;
|
|
}
|
|
uVar1 = uVar1 + 1;
|
|
local_1c8 = (float)(GHIDRA_INT(local_1c8) + 1);
|
|
local_1b0 = GHIDRA_CAST<int *>((GHIDRA_INT(local_1b0) + -1));
|
|
in_ECX = local_1a4;
|
|
segmentIndex = uVar1;
|
|
} while (GHIDRA_INT(uVar1) < gridHeight + -2);
|
|
}
|
|
if (iVar3 == 9) {
|
|
pcVar9 = *(code **)(*GHIDRA_CAST<int *>(in_ECX[9]) + 0x14);
|
|
pvVar11 = render_grid_rect(local_1a4,gridQuad,0xb,5,2,2);
|
|
chosenSrcRect = &cornerSrcRect;
|
|
LAB_0093a644:
|
|
(*pcVar9)(chosenSrcRect,pvVar11,g_drawRectUnset);
|
|
piVar5 = extraout_EDX;
|
|
iVar3 = roomShape;
|
|
}
|
|
else {
|
|
if (iVar3 == 10) {
|
|
pcVar9 = *(code **)(*GHIDRA_CAST<int *>(in_ECX[9]) + 0x14);
|
|
pvVar11 = render_grid_rect(local_1a4,gridQuad,0xd,5,2,2);
|
|
local_1e4._red = local_2a8;
|
|
fStack_1e8 = local_2ac;
|
|
local_1e4._blue = local_2a0;
|
|
local_1e4._green = local_294;
|
|
LAB_0093a621:
|
|
chosenSrcRect = &srcRectD;
|
|
local_1e4._unk = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_1e4._unk)) + 0x1))),1);
|
|
srcRectD = local_1e4._red;
|
|
fStack_1f0 = fStack_1e8;
|
|
fStack_1ec = local_1e4._blue;
|
|
local_1e4._alpha = local_1e4._green;
|
|
goto LAB_0093a644;
|
|
}
|
|
if (iVar3 == 0xb) {
|
|
pcVar9 = *(code **)(*GHIDRA_CAST<int *>(in_ECX[9]) + 0x14);
|
|
pvVar11 = render_grid_rect(local_1a4,gridQuad,0xb,7,2,2);
|
|
local_1e4._red = cornerSrcRect;
|
|
local_1e4._blue = local_298;
|
|
LAB_0093a609:
|
|
local_1e4._green = local_2a4;
|
|
fStack_1e8 = local_29c;
|
|
goto LAB_0093a621;
|
|
}
|
|
piVar5 = local_1b0;
|
|
if (iVar3 == 0xc) {
|
|
pcVar9 = *(code **)(*GHIDRA_CAST<int *>(in_ECX[9]) + 0x14);
|
|
pvVar11 = render_grid_rect(local_1a4,gridQuad,0xd,7,2,2);
|
|
local_1e4._red = local_2a8;
|
|
local_1e4._blue = local_2a0;
|
|
goto LAB_0093a609;
|
|
}
|
|
}
|
|
game = g_game;
|
|
uVar7 = (ushort)(GHIDRA_UINT(piVar5) >> 0x10);
|
|
if ((g_game->_stage == 10) && (g_game->_stageType == 1)) {
|
|
grid_rect_to_quad(&srcRectB,0,2,2,1);
|
|
grid_rect_to_quad(&fStack_58,0,2,2,2);
|
|
srcRectC = *quad;
|
|
fStack_21c = quad[5];
|
|
fStack_218 = quad[6];
|
|
fStack_20c = quad[3];
|
|
uStack_200 = 1;
|
|
fStack_214 = fStack_21c;
|
|
fStack_210 = srcRectC;
|
|
fStack_208 = fStack_218;
|
|
fStack_204 = fStack_20c;
|
|
grid_rect_to_quad(&srcRectA,2,0,1,2);
|
|
FUN_0081fae0(&DAT_00c35b80 +
|
|
*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(game->_room) + 4)) + 0x10)) + 0x48)) * 0x20);
|
|
if ((iVar3 == 2) || (((iVar3 == 7 || (iVar3 == 3)) || (iVar3 == 5)))) {
|
|
pcVar9 = *(code **)(*GHIDRA_CAST<int *>(local_1a4[9]) + 0x14);
|
|
pvVar11 = render_grid_rect(local_1a4,gridQuad,GHIDRA_INT(fStack_1f0) + -3,GHIDRA_INT(fStack_1ec) + -1,2,1);
|
|
(*pcVar9)(&srcRectB,pvVar11,g_drawRectUnset);
|
|
pcVar9 = *(code **)(*GHIDRA_CAST<int *>(local_1a4[9]) + 0x14);
|
|
pvVar11 = render_grid_rect(local_1a4,gridQuad,GHIDRA_INT(fStack_1f0) + -3,GHIDRA_INT(local_1e4._red) + -2,2,
|
|
2);
|
|
(*pcVar9)(&srcRectC,pvVar11,g_drawRectUnset);
|
|
pcVar9 = *(code **)(*GHIDRA_CAST<int *>(local_1a4[9]) + 0x14);
|
|
pvVar11 = render_grid_rect(local_1a4,gridQuad,GHIDRA_INT(fStack_1e8),GHIDRA_INT(fStack_1ec) + -1,2,1);
|
|
fStack_48 = fStack_278;
|
|
fStack_58 = fStack_278;
|
|
piStack_4c = piStack_27c;
|
|
piStack_54 = piStack_27c;
|
|
local_40 = local_270;
|
|
local_50 = local_270;
|
|
local_3c = piStack_264;
|
|
piStack_44 = piStack_264;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_38)) + 0x0))) = 1;
|
|
(*pcVar9)(&fStack_58,pvVar11,g_drawRectUnset);
|
|
pcVar9 = *(code **)(*GHIDRA_CAST<int *>(local_1a4[9]) + 0x14);
|
|
pvVar11 = render_grid_rect(local_1a4,gridQuad,GHIDRA_INT(fStack_1e8),GHIDRA_INT(local_1e4._red) + -2,2,2);
|
|
fStack_48 = fStack_218;
|
|
fStack_58 = fStack_218;
|
|
piStack_4c = GHIDRA_CAST<int *>(fStack_21c);
|
|
piStack_54 = GHIDRA_CAST<int *>(fStack_21c);
|
|
local_40 = fStack_210;
|
|
local_50 = fStack_210;
|
|
local_3c = GHIDRA_CAST<int *>(fStack_204);
|
|
piStack_44 = GHIDRA_CAST<int *>(fStack_204);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_38)) + 0x0))) = 1;
|
|
(*pcVar9)(&fStack_58,pvVar11,g_drawRectUnset);
|
|
pcVar9 = *(code **)(*GHIDRA_CAST<int *>(local_1a4[9]) + 0x14);
|
|
pvVar11 = render_grid_rect(local_1a4,gridQuad,GHIDRA_INT(fStack_1f0) + -1,GHIDRA_INT(fStack_1ec) + -3,1,2);
|
|
(*pcVar9)(&srcRectA,pvVar11,g_drawRectUnset);
|
|
pcVar9 = *(code **)(*GHIDRA_CAST<int *>(local_1a4[9]) + 0x14);
|
|
pvVar11 = render_grid_rect(local_1a4,gridQuad,GHIDRA_INT(fStack_1f0) + -1,GHIDRA_INT(local_1e4._red),1,2);
|
|
fStack_48 = srcRectA;
|
|
fStack_58 = srcRectA;
|
|
piStack_4c = local_23c;
|
|
piStack_54 = local_23c;
|
|
local_40 = local_238;
|
|
local_50 = local_238;
|
|
local_3c = local_244;
|
|
piStack_44 = local_244;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_38)) + 0x0))) = 1;
|
|
(*pcVar9)(&fStack_58,pvVar11,g_drawRectUnset);
|
|
pcVar9 = *(code **)(*GHIDRA_CAST<int *>(local_1a4[9]) + 0x14);
|
|
pvVar11 = render_grid_rect(local_1a4,gridQuad,GHIDRA_INT(fStack_1e8) + -1,GHIDRA_INT(fStack_1ec) + -3,1,2);
|
|
fStack_48 = local_248;
|
|
fStack_58 = local_248;
|
|
piStack_4c = local_24c;
|
|
piStack_54 = local_24c;
|
|
local_40 = local_240;
|
|
local_50 = local_240;
|
|
local_3c = local_234;
|
|
piStack_44 = local_234;
|
|
local_38 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_38)) + 0x1))),1);
|
|
(*pcVar9)(&fStack_58,pvVar11,g_drawRectUnset);
|
|
pcVar9 = *(code **)(*GHIDRA_CAST<int *>(local_1a4[9]) + 0x14);
|
|
chosenSrcRect = gridQuad;
|
|
fVar12 = local_1e4._red;
|
|
fVar10 = fStack_1e8;
|
|
LAB_0093ad9b:
|
|
pvVar11 = render_grid_rect(local_1a4,chosenSrcRect,GHIDRA_INT(fVar10) + -1,GHIDRA_INT(fVar12),1,2);
|
|
fStack_48 = local_248;
|
|
local_40 = local_240;
|
|
LAB_0093adcd:
|
|
piStack_44 = local_244;
|
|
piStack_4c = local_23c;
|
|
LAB_0093addf:
|
|
local_38 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_38)) + 0x1))),1);
|
|
chosenSrcRect = &fStack_58;
|
|
fStack_58 = fStack_48;
|
|
piStack_54 = piStack_4c;
|
|
local_50 = local_40;
|
|
local_3c = piStack_44;
|
|
}
|
|
else {
|
|
if (iVar3 == 0xb) {
|
|
pcVar9 = *(code **)(*GHIDRA_CAST<int *>(local_1a4[9]) + 0x14);
|
|
pvVar11 = render_grid_rect(local_1a4,gridQuad,GHIDRA_INT(fStack_1f0) + -3,GHIDRA_INT(local_1e4._red) + -1,
|
|
2,1);
|
|
fStack_48 = srcRectB;
|
|
fStack_58 = srcRectB;
|
|
piStack_4c = piStack_26c;
|
|
piStack_54 = piStack_26c;
|
|
local_40 = fStack_268;
|
|
local_50 = fStack_268;
|
|
local_3c = piStack_274;
|
|
piStack_44 = piStack_274;
|
|
local_38 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_38)) + 0x1))),1);
|
|
(*pcVar9)(&fStack_58,pvVar11,g_drawRectUnset);
|
|
pcVar9 = *(code **)(*GHIDRA_CAST<int *>(local_1a4[9]) + 0x14);
|
|
pvVar11 = render_grid_rect(local_1a4,quadBuf,GHIDRA_INT(local_1e4._green) + -1,local_1e4._unk,1,2);
|
|
fStack_48 = srcRectA;
|
|
local_40 = local_238;
|
|
goto LAB_0093adcd;
|
|
}
|
|
if (iVar3 == 0xc) {
|
|
pcVar9 = *(code **)(*GHIDRA_CAST<int *>(local_1a4[9]) + 0x14);
|
|
pvVar11 = render_grid_rect(local_1a4,gridQuad,GHIDRA_INT(fStack_1e8),GHIDRA_INT(local_1e4._red) + -1,2,1);
|
|
fStack_48 = fStack_278;
|
|
fStack_58 = fStack_278;
|
|
piStack_4c = piStack_26c;
|
|
piStack_54 = piStack_26c;
|
|
local_40 = local_270;
|
|
local_50 = local_270;
|
|
local_3c = piStack_274;
|
|
piStack_44 = piStack_274;
|
|
local_38 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_38)) + 0x1))),1);
|
|
(*pcVar9)(&fStack_58,pvVar11,g_drawRectUnset);
|
|
pcVar9 = *(code **)(*GHIDRA_CAST<int *>(local_1a4[9]) + 0x14);
|
|
chosenSrcRect = quadBuf;
|
|
fVar12 = (float)local_1e4._unk;
|
|
fVar10 = local_1e4._alpha;
|
|
goto LAB_0093ad9b;
|
|
}
|
|
if (iVar3 != 9) {
|
|
uVar7 = extraout_var;
|
|
if (iVar3 != 10) goto LAB_0093adfb;
|
|
pcVar9 = *(code **)(*GHIDRA_CAST<int *>(local_1a4[9]) + 0x14);
|
|
pvVar11 = render_grid_rect(local_1a4,gridQuad,GHIDRA_INT(fStack_1e8) + -1,GHIDRA_INT(fStack_1ec) + -3,1,2)
|
|
;
|
|
fStack_48 = local_248;
|
|
fStack_58 = local_248;
|
|
piStack_4c = local_24c;
|
|
piStack_54 = local_24c;
|
|
local_40 = local_240;
|
|
local_50 = local_240;
|
|
local_3c = local_234;
|
|
piStack_44 = local_234;
|
|
local_38 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_38)) + 0x1))),1);
|
|
(*pcVar9)(&fStack_58,pvVar11,g_drawRectUnset);
|
|
pcVar9 = *(code **)(*GHIDRA_CAST<int *>(local_1a4[9]) + 0x14);
|
|
pvVar11 = render_grid_rect(local_1a4,quadBuf,GHIDRA_INT(local_1e4._alpha),GHIDRA_INT(local_1e4._blue) + -1
|
|
,2,1);
|
|
fStack_48 = fStack_278;
|
|
piStack_4c = piStack_27c;
|
|
local_40 = local_270;
|
|
piStack_44 = piStack_264;
|
|
goto LAB_0093addf;
|
|
}
|
|
pcVar9 = *(code **)(*GHIDRA_CAST<int *>(local_1a4[9]) + 0x14);
|
|
pvVar11 = render_grid_rect(local_1a4,gridQuad,GHIDRA_INT(fStack_1f0) + -1,GHIDRA_INT(fStack_1ec) + -3,1,2);
|
|
(*pcVar9)(&srcRectA,pvVar11,g_drawRectUnset);
|
|
pcVar9 = *(code **)(*GHIDRA_CAST<int *>(local_1a4[9]) + 0x14);
|
|
pvVar11 = render_grid_rect(local_1a4,quadBuf,GHIDRA_INT(local_1e4._green) + -3,
|
|
GHIDRA_INT(local_1e4._blue) + -1,2,1);
|
|
chosenSrcRect = &srcRectB;
|
|
}
|
|
(*pcVar9)(chosenSrcRect,pvVar11,g_drawRectUnset);
|
|
uVar7 = extraout_var_00;
|
|
}
|
|
LAB_0093adfb:
|
|
pBVar4 = local_1a4;
|
|
iVar3 = roomShape;
|
|
if ((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_1a4[0x1411])) + 0x1))) == '\0') goto LAB_0093b1df;
|
|
DAT_00c33910 = 0;
|
|
local_1b8 = -NAN;
|
|
local_1a8 = (Backdrop)0xfffffffe;
|
|
if ((roomShape == 2) || (roomShape == 7)) {
|
|
isHorizontalNarrow = true;
|
|
}
|
|
else {
|
|
isHorizontalNarrow = false;
|
|
}
|
|
if ((roomShape == 3) || (roomShape == 5)) {
|
|
gridWidth = gridWidth + -4;
|
|
iVar8 = GHIDRA_UINT(uVar7) << 0x10;
|
|
local_1b8 = 2.8026e-45;
|
|
}
|
|
else {
|
|
iVar8 = CONCAT22(uVar7,0x100);
|
|
if (isHorizontalNarrow) {
|
|
gridHeight = gridHeight + -2;
|
|
local_1a8 = (Backdrop)0x0;
|
|
}
|
|
}
|
|
room = local_1a4[0x54];
|
|
if (((room == (Backdrop)0x1f) || (room == (Backdrop)0x2d)) && (local_1ac == 1.4013e-45)) {
|
|
LAB_0093aecd:
|
|
fVar10 = 0.18;
|
|
local_1cc = 0.18;
|
|
if (((room == (Backdrop)0x2e) || (room == (Backdrop)0x3b)) && (local_1ac == 2.8026e-45)) {
|
|
fVar10 = 0.45;
|
|
local_1cc = 0.45;
|
|
}
|
|
rng = GHIDRA_CAST<RNG *>((local_1a4 + 0x13ca));
|
|
local_1ac = (float)(CONCAT31((int3)(GHIDRA_UINT(local_1ac) >> 8),isHorizontalNarrow) ^ 1);
|
|
isPreAscentMomRoom = (byte)(GHIDRA_UINT(iVar8) >> 8);
|
|
pBVar6 = GHIDRA_CAST<Backdrop *>(CONCAT31((int3)(GHIDRA_UINT(iVar8) >> 8),isPreAscentMomRoom));
|
|
local_1bc = (float)(GHIDRA_INT(local_1a8) + 7);
|
|
local_1b4 = (float)GHIDRA_INT(local_1a8) * 26.0;
|
|
local_28 = local_1b4 + (float)local_1a4[0x13c7];
|
|
local_1c8 = (float)(GHIDRA_INT(local_1b8) + 0xd);
|
|
local_1a8 = (Backdrop)((float)GHIDRA_INT(local_1b8) * 26.0);
|
|
if (roomShape == 9) {
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_34)) + 0x8))) = (float)GHIDRA_INT(local_1c8) * 26.0 + (float)local_1a4[0x13c6];
|
|
local_1a4 = pBVar6;
|
|
render_wall_detail(pBVar4,rng,GHIDRA_CAST<Vector *>((local_34 + 8)),0,0,isPreAscentMomRoom,
|
|
SUB41(local_1ac,0),fVar10);
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_34)) + 0x8))) = (float)local_1a8 + (float)pBVar4[0x13c6];
|
|
local_28 = (float)GHIDRA_INT(local_1bc) * 26.0 + (float)pBVar4[0x13c7];
|
|
render_wall_detail(pBVar4,GHIDRA_CAST<RNG *>((pBVar4 + 0x13ca)),GHIDRA_CAST<Vector *>((local_34 + 8)),0,0,
|
|
(byte)local_1a4,SUB41(local_1ac,0),local_1cc);
|
|
room = pBVar4[0x13c6];
|
|
local_28 = local_1b4 + (float)pBVar4[0x13c7];
|
|
local_1b0 = GHIDRA_CAST<int *>(((float)gridWidth * 26.0));
|
|
LAB_0093b050:
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_34)) + 0x8))) = (float)local_1b0 + (float)room;
|
|
render_wall_detail(pBVar4,GHIDRA_CAST<RNG *>((pBVar4 + 0x13ca)),GHIDRA_CAST<Vector *>((local_34 + 8)),1,0,
|
|
(byte)local_1a4,SUB41(local_1ac,0),local_1cc);
|
|
room = pBVar4[0x13c6];
|
|
local_1b4 = (float)(gridHeight - 7);
|
|
local_1b8 = (float)gridHeight * 26.0;
|
|
local_28 = local_1b8 + (float)pBVar4[0x13c7];
|
|
if (iVar3 != 0xb) goto LAB_0093b34e;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_34)) + 0x8))) = (float)GHIDRA_INT(local_1c8) * 26.0 + (float)room;
|
|
render_wall_detail(pBVar4,GHIDRA_CAST<RNG *>((pBVar4 + 0x13ca)),GHIDRA_CAST<Vector *>((local_34 + 8)),0,1,
|
|
(byte)local_1a4,SUB41(local_1ac,0),local_1cc);
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_34)) + 0x8))) = (float)local_1a8 + (float)pBVar4[0x13c6];
|
|
local_28 = (float)GHIDRA_INT(local_1b4) * 26.0 + (float)pBVar4[0x13c7];
|
|
render_wall_detail(pBVar4,GHIDRA_CAST<RNG *>((pBVar4 + 0x13ca)),GHIDRA_CAST<Vector *>((local_34 + 8)),0,1,
|
|
(byte)local_1a4,SUB41(local_1ac,0),local_1cc);
|
|
room = pBVar4[0x13c6];
|
|
local_28 = local_1b8 + (float)pBVar4[0x13c7];
|
|
LAB_0093b198:
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_34)) + 0x8))) = (float)local_1b0 + (float)room;
|
|
}
|
|
else {
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_34)) + 0x8))) = (float)local_1a8 + (float)local_1a4[0x13c6];
|
|
local_1a4 = pBVar6;
|
|
render_wall_detail(pBVar4,rng,GHIDRA_CAST<Vector *>((local_34 + 8)),0,0,isPreAscentMomRoom,
|
|
SUB41(local_1ac,0),fVar10);
|
|
room = pBVar4[0x13c6];
|
|
local_28 = local_1b4 + (float)pBVar4[0x13c7];
|
|
local_1b0 = GHIDRA_CAST<int *>(((float)gridWidth * 26.0));
|
|
if (iVar3 != 10) goto LAB_0093b050;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_34)) + 0x8))) = (float)(gridWidth + -0xd) * 26.0 + (float)room;
|
|
render_wall_detail(pBVar4,GHIDRA_CAST<RNG *>((pBVar4 + 0x13ca)),GHIDRA_CAST<Vector *>((local_34 + 8)),1,0,
|
|
(byte)local_1a4,SUB41(local_1ac,0),local_1cc);
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_34)) + 0x8))) = (float)local_1b0 + (float)pBVar4[0x13c6];
|
|
local_28 = (float)GHIDRA_INT(local_1bc) * 26.0 + (float)pBVar4[0x13c7];
|
|
render_wall_detail(pBVar4,GHIDRA_CAST<RNG *>((pBVar4 + 0x13ca)),GHIDRA_CAST<Vector *>((local_34 + 8)),1,0,
|
|
(byte)local_1a4,SUB41(local_1ac,0),local_1cc);
|
|
room = pBVar4[0x13c6];
|
|
local_1b4 = (float)(gridHeight - 7);
|
|
local_1b8 = (float)gridHeight * 26.0;
|
|
local_28 = local_1b8 + (float)pBVar4[0x13c7];
|
|
LAB_0093b34e:
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_34)) + 0x8))) = (float)local_1a8 + (float)room;
|
|
render_wall_detail(pBVar4,GHIDRA_CAST<RNG *>((pBVar4 + 0x13ca)),GHIDRA_CAST<Vector *>((local_34 + 8)),0,1,
|
|
(byte)local_1a4,SUB41(local_1ac,0),local_1cc);
|
|
room = pBVar4[0x13c6];
|
|
local_28 = local_1b8 + (float)pBVar4[0x13c7];
|
|
if (iVar3 != 0xc) goto LAB_0093b198;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_34)) + 0x8))) = (float)(gridWidth + -0xd) * 26.0 + (float)room;
|
|
render_wall_detail(pBVar4,GHIDRA_CAST<RNG *>((pBVar4 + 0x13ca)),GHIDRA_CAST<Vector *>((local_34 + 8)),1,1,
|
|
(byte)local_1a4,SUB41(local_1ac,0),local_1cc);
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_34)) + 0x8))) = (float)local_1b0 + (float)pBVar4[0x13c6];
|
|
local_28 = (float)GHIDRA_INT(local_1b4) * 26.0 + (float)pBVar4[0x13c7];
|
|
}
|
|
render_wall_detail(pBVar4,GHIDRA_CAST<RNG *>((pBVar4 + 0x13ca)),GHIDRA_CAST<Vector *>((local_34 + 8)),1,1,(byte)local_1a4,
|
|
SUB41(local_1ac,0),local_1cc);
|
|
}
|
|
else {
|
|
if ((room == (Backdrop)0x20) || (room == (Backdrop)0x3a)) {
|
|
if (local_1ac != 0.0) goto LAB_0093b1d8;
|
|
goto LAB_0093aecd;
|
|
}
|
|
if ((room == (Backdrop)0x2e) || (room == (Backdrop)0x3b)) {
|
|
if (local_1ac != 1.4013e-45) goto LAB_0093aecd;
|
|
}
|
|
else if ((room == (Backdrop)0x2a) || (room == (Backdrop)0x2f)) goto LAB_0093aecd;
|
|
}
|
|
LAB_0093b1d8:
|
|
DAT_00c33910 = 1;
|
|
LAB_0093b1df:
|
|
_glfw_context_reset(1);
|
|
(GHIDRA_CAST<BackdropConfig *>((&config)))->BackdropConfig::~BackdropConfig();
|
|
ExceptionList = local_1c;
|
|
return;
|
|
}
|
|
|
|
// 0093b620
|
|
void Backdrop::spawn_detail_effects(void *backdrop, Vector *offset, byte isFlipX, byte isFlipY)
|
|
{
|
|
ANM2 *pAVar1;
|
|
float *nullFrame;
|
|
uint seed;
|
|
Entity *detail;
|
|
uint nullIdx;
|
|
Vector spawnPos;
|
|
qword flags;
|
|
uint *flagsHighPtr;
|
|
uint nullCount;
|
|
int vtable;
|
|
|
|
nullCount = *GHIDRA_CAST<uint *>((GHIDRA_CAST<char *>(backdrop) + 0x88));
|
|
nullIdx = 0;
|
|
if (nullCount != 0) {
|
|
do {
|
|
if (((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(backdrop) + 0x34)) != 0) &&
|
|
(nullFrame = AnimationState::GetNullFrameById
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_INT(backdrop) + 0x30)),nullIdx),
|
|
nullFrame != GHIDRA_CAST<float *>(0x0))) && (*GHIDRA_CAST<char *>((nullFrame + 3)) != '\0')) {
|
|
spawnPos.x = *nullFrame / 0.65;
|
|
spawnPos.y = nullFrame[1] / 0.65;
|
|
if (isFlipX != 0) {
|
|
spawnPos.x = -spawnPos.x;
|
|
}
|
|
spawnPos.x = spawnPos.x + offset->x;
|
|
if (isFlipY != 0) {
|
|
spawnPos.y = -spawnPos.y;
|
|
}
|
|
spawnPos.y = spawnPos.y + offset->y;
|
|
seed = Random();
|
|
detail = (GHIDRA_CAST<Game *>((g_game)))->Game::SpawnEx(1000,0x79,&spawnPos,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,seed,0);
|
|
flags = detail->_flags;
|
|
vtable = *GHIDRA_CAST<int *>(detail);
|
|
flagsHighPtr = GHIDRA_CAST<uint *>((GHIDRA_INT(&detail->_flags) + 4));
|
|
*flagsHighPtr = *flagsHighPtr | 0x40;
|
|
*GHIDRA_CAST<int *>(&detail->_flags) = GHIDRA_INT(flags);
|
|
detail->_renderZOffset = 0x40000000;
|
|
pAVar1 = &detail[1]._sprite;
|
|
(pAVar1->_animDefaultName)._buf[8] = '\0';
|
|
(pAVar1->_animDefaultName)._buf[9] = '\0';
|
|
(pAVar1->_animDefaultName)._buf[10] = '@';
|
|
(pAVar1->_animDefaultName)._buf[0xb] = '@';
|
|
(**(code **)(vtable + 0x3c))(nullFrame + 6,0xffffffff,0xff,0,1);
|
|
(detail->_sprite)._scale.x = nullFrame[4];
|
|
(detail->_sprite)._scale.y = nullFrame[5];
|
|
}
|
|
nullIdx = nullIdx + 1;
|
|
} while (nullIdx < nullCount);
|
|
}
|
|
return;
|
|
}
|
|
|
|
// 0093d960
|
|
void Backdrop::Init(uint backdropId, byte LoadGraphics)
|
|
{
|
|
Game *game;
|
|
int roomHeight;
|
|
|
|
if ((GHIDRA_INT(backdropId) < 0) || (0x3e < GHIDRA_INT(backdropId))) {
|
|
backdropId = 1;
|
|
}
|
|
this[0x54] = (Backdrop)backdropId;
|
|
game = g_game;
|
|
this[0x13c6] = (Backdrop)0x42500000;
|
|
this[0x13c7] = (Backdrop)0x42500000;
|
|
roomHeight = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(game->_room) + 0x10));
|
|
this[0x13c8] = (Backdrop)((float)(*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(game->_room) + 0xc)) + -2) * 26.0 + 52.0);
|
|
this[0x13c9] = (Backdrop)((float)(roomHeight + -2) * 26.0 + 52.0);
|
|
if (LoadGraphics != 0) {
|
|
load_details(this);
|
|
}
|
|
return;
|
|
}
|
|
|
|
// 0093da00
|
|
void Backdrop::load_details()
|
|
{
|
|
int iVar1;
|
|
int iVar2;
|
|
byte bVar3;
|
|
undefined4 *renderTargetEntry;
|
|
LayerState *layer;
|
|
void *loadedImage;
|
|
byte *pbVar4;
|
|
int newBlendMode1;
|
|
Backdrop BVar5;
|
|
char *freeBlock;
|
|
std_string *detailsPath;
|
|
Backdrop BVar6;
|
|
uint uVar7;
|
|
Game *game;
|
|
bool isLess;
|
|
int iVar8;
|
|
Vector local_80;
|
|
byte isLayerVisible;
|
|
undefined1 imageRef [4];
|
|
Backdrop local_70;
|
|
std_string gehennaPath;
|
|
std_string imagePath;
|
|
std_string tmpString;
|
|
uint stackCookie;
|
|
undefined1 *puStack_20;
|
|
void *local_1c;
|
|
undefined1 *puStack_18;
|
|
undefined4 local_14;
|
|
int savedBlendMode2;
|
|
char strChar;
|
|
|
|
puStack_20 = imageRef + 0x70;
|
|
local_14 = 0xffffffff;
|
|
puStack_18 = &LAB_00b0b3e5;
|
|
local_1c = ExceptionList;
|
|
stackCookie = __security_cookie ^ GHIDRA_UINT((imageRef + 100));
|
|
ExceptionList = &local_1c;
|
|
*GHIDRA_CAST<undefined1 *>((this + 8)) = 0;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0xf)))))->ANM2::Reset();
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0x13cf)))))->ANM2::Reset();
|
|
if ((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(this[0x1456])) + 0x1))) == '\0') {
|
|
tmpString._size = 0;
|
|
tmpString._capacity = 0xf;
|
|
tmpString._buf[0] = '\0';
|
|
tmpString._buf[1] = '\0';
|
|
tmpString._buf[2] = '\0';
|
|
tmpString._buf[3] = '\0';
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) = std::_Allocate(0x20);
|
|
tmpString._size = 0x1a;
|
|
tmpString._capacity = 0x1f;
|
|
builtin_strncpy((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpString._buf))) + 0x0))),"gfx/backdrop/controls.anm2",0x1b);
|
|
local_14 = 0;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0x1414)))))->ANM2::Load(&tmpString,1);
|
|
local_14 = 0xffffffff;
|
|
if (0xf < tmpString._capacity) {
|
|
uVar7 = tmpString._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpString._buf))) + 0x0)));
|
|
if (0xfff < uVar7) {
|
|
freeBlock = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + -4));
|
|
uVar7 = tmpString._capacity + 0x24;
|
|
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBlock))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(freeBlock,uVar7);
|
|
}
|
|
}
|
|
if ((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(this[0x149b])) + 0x1))) == '\0') {
|
|
tmpString._size = 0;
|
|
tmpString._capacity = 0xf;
|
|
tmpString._buf[0] = '\0';
|
|
tmpString._buf[1] = '\0';
|
|
tmpString._buf[2] = '\0';
|
|
tmpString._buf[3] = '\0';
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) = std::_Allocate(0x30);
|
|
tmpString._size = 0x22;
|
|
tmpString._capacity = 0x2f;
|
|
builtin_strncpy((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpString._buf))) + 0x0))),"gfx/backdrop/controls_buttons.anm2",0x23);
|
|
local_14 = 1;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0x1459)))))->ANM2::Load(&tmpString,1);
|
|
local_14 = 0xffffffff;
|
|
if (0xf < tmpString._capacity) {
|
|
uVar7 = tmpString._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpString._buf))) + 0x0)));
|
|
if (0xfff < uVar7) {
|
|
freeBlock = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + -4));
|
|
uVar7 = tmpString._capacity + 0x24;
|
|
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBlock))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(freeBlock,uVar7);
|
|
}
|
|
}
|
|
local_80.x = 0.0;
|
|
local_80.y = 0.0;
|
|
std::vector::resize(&local_80);
|
|
renderTargetEntry = std::deque::back();
|
|
if (GHIDRA_CAST<byte *>((renderTargetEntry + 1)) != GHIDRA_CAST<byte *>(0x0)) {
|
|
*GHIDRA_CAST<byte *>((renderTargetEntry + 1)) = (byte)(g_graphicsManager_flags >> 5) & 1;
|
|
}
|
|
*renderTargetEntry = g_graphicsManager_renderTarget;
|
|
if (this[0xb] != (Backdrop)0x0) {
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((this + 0xb)))->KAGE::SmartPointer::reset((void *)0x0);
|
|
}
|
|
BVar5 = this[0x54];
|
|
if ((BVar5 == (Backdrop)0x1a) || (BVar5 == (Backdrop)0x12)) {
|
|
BVar5 = (Backdrop)(this + GHIDRA_INT(BVar5) * 0x4f + 0x56);
|
|
if (0xf < GHIDRA_UINT(*GHIDRA_CAST<Backdrop *>((GHIDRA_CAST<char *>(BVar5) + 0x14)))) {
|
|
BVar5 = *GHIDRA_CAST<Backdrop *>(BVar5);
|
|
}
|
|
tmpString._size = 0;
|
|
tmpString._capacity = 0xf;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) = GHIDRA_CAST<char *>(0x0);
|
|
BVar6 = BVar5;
|
|
do {
|
|
strChar = *GHIDRA_CAST<char *>(BVar6);
|
|
BVar6 = (Backdrop)(GHIDRA_INT(BVar6) + 1);
|
|
} while (strChar != '\0');
|
|
(GHIDRA_CAST<std::string *>((tmpString._buf)))->std::string::assign(GHIDRA_CAST<byte *>(BVar5),GHIDRA_INT(BVar6) - GHIDRA_INT((GHIDRA_INT(BVar5) + 1)));
|
|
local_14 = 2;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0xf)))))->ANM2::Load(&tmpString,1);
|
|
local_14 = 0xffffffff;
|
|
if (0xf < tmpString._capacity) {
|
|
uVar7 = tmpString._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpString._buf))) + 0x0)));
|
|
if (0xfff < uVar7) {
|
|
freeBlock = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + -4));
|
|
uVar7 = tmpString._capacity + 0x24;
|
|
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBlock)))))
|
|
goto LAB_0093e16c;
|
|
}
|
|
operator_delete(freeBlock,uVar7);
|
|
}
|
|
if (this[0x54] != (Backdrop)0x12) goto LAB_0093e713;
|
|
(GHIDRA_CAST<KAGE_Graphics *>((&DAT_00c798e0)))->KAGE_Graphics::SetRenderTarget((void *)*this,0);
|
|
(GHIDRA_CAST<RenderTarget *>((&DAT_00c798e0)))->RenderTarget::Clear();
|
|
tmpString._size = g_graphicsManager_blendMode[3];
|
|
savedBlendMode2 = g_graphicsManager_blendMode[2];
|
|
iVar8 = g_graphicsManager_blendMode[0];
|
|
local_70 = (Backdrop)g_graphicsManager_blendMode[4];
|
|
newBlendMode1 = 1;
|
|
if ((g_graphicsManager_flags & 4) == 0) {
|
|
newBlendMode1 = 6;
|
|
}
|
|
g_graphicsManager_blendMode[0] = 0;
|
|
iVar1 = g_graphicsManager_blendMode[0];
|
|
g_graphicsManager_blendMode[2] = 7;
|
|
iVar2 = g_graphicsManager_blendMode[2];
|
|
g_graphicsManager_blendMode[3] = 1;
|
|
g_graphicsManager_blendMode[4] = 7;
|
|
BVar5 = this[0x1c];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[0])) + 0x0))) = (undefined1)iVar8;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[0])) + 0x1))) = SUB41(iVar8,1);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[0])) + 0x2))) = SUB41(iVar8,2);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[0])) + 0x3))) = SUB41(iVar8,3);
|
|
tmpString._buf[4] = (undefined1)g_graphicsManager_blendMode[0];
|
|
tmpString._buf[5] = (*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[0])) + 0x1)));
|
|
tmpString._buf[6] = (*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[0])) + 0x2)));
|
|
tmpString._buf[7] = (*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[0])) + 0x3)));
|
|
tmpString._buf[8] = (undefined1)g_graphicsManager_blendMode[1];
|
|
tmpString._buf[9] = (*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[1])) + 0x1)));
|
|
tmpString._buf[10] = (*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[1])) + 0x2)));
|
|
tmpString._buf[0xb] = (*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[1])) + 0x3)));
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[2])) + 0x0))) = (undefined1)savedBlendMode2;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[2])) + 0x1))) = SUB41(savedBlendMode2,1);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[2])) + 0x2))) = SUB41(savedBlendMode2,2);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[2])) + 0x3))) = SUB41(savedBlendMode2,3);
|
|
tmpString._buf[0xc] = (undefined1)g_graphicsManager_blendMode[2];
|
|
tmpString._buf[0xd] = (*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[2])) + 0x1)));
|
|
tmpString._buf[0xe] = (*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[2])) + 0x2)));
|
|
tmpString._buf[0xf] = (*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[2])) + 0x3)));
|
|
g_graphicsManager_blendMode[0] = iVar1;
|
|
g_graphicsManager_blendMode[1] = newBlendMode1;
|
|
g_graphicsManager_blendMode[2] = iVar2;
|
|
if (BVar5 == (Backdrop)0x0) {
|
|
LAB_0093e5fc:
|
|
bVar3 = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0xf)))))->ANM2::SetAnimation(s_Idle2,1);
|
|
if (bVar3 != 0) {
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((this + 0x1b)))))->AnimationState::Rewind();
|
|
*GHIDRA_CAST<undefined1 *>((this + 0x20)) = 1;
|
|
}
|
|
}
|
|
else {
|
|
if (0xf < *GHIDRA_CAST<uint *>((GHIDRA_CAST<char *>(BVar5) + 0x14))) {
|
|
BVar5 = *GHIDRA_CAST<Backdrop *>(BVar5);
|
|
}
|
|
pbVar4 = s_Idle2;
|
|
do {
|
|
bVar3 = *GHIDRA_CAST<byte *>(BVar5);
|
|
isLess = bVar3 < *pbVar4;
|
|
if (bVar3 != *pbVar4) {
|
|
LAB_0093e5e4:
|
|
uVar7 = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_0093e5e9;
|
|
}
|
|
if (bVar3 == 0) break;
|
|
bVar3 = *GHIDRA_CAST<byte *>((GHIDRA_CAST<char *>(BVar5) + 1));
|
|
isLess = bVar3 < pbVar4[1];
|
|
if (bVar3 != pbVar4[1]) goto LAB_0093e5e4;
|
|
BVar5 = (Backdrop)(GHIDRA_INT(BVar5) + 2);
|
|
pbVar4 = pbVar4 + 2;
|
|
} while (bVar3 != 0);
|
|
uVar7 = 0;
|
|
LAB_0093e5e9:
|
|
if ((uVar7 != 0) ||
|
|
((*GHIDRA_CAST<char *>((GHIDRA_INT(this[0x1c]) + 0x34)) != '\0' && (*GHIDRA_CAST<char *>((this + 0x20)) == '\0'))))
|
|
goto LAB_0093e5fc;
|
|
}
|
|
g_graphicsManager_flags = g_graphicsManager_flags & 0xfffffffd;
|
|
local_80.y = DAT_00c35e74 + (float)this[0x13c7];
|
|
local_80.x = DAT_00c35e70 + (float)this[0x13c6];
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0xf)))))->ANM2::Render(&local_80,&g_vectorZero,&g_vectorZero);
|
|
g_graphicsManager_flags = g_graphicsManager_flags | 2;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[0])) + 0x0))) = tmpString._buf[4];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[0])) + 0x1))) = tmpString._buf[5];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[0])) + 0x2))) = tmpString._buf[6];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[0])) + 0x3))) = tmpString._buf[7];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[1])) + 0x0))) = tmpString._buf[8];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[1])) + 0x1))) = tmpString._buf[9];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[1])) + 0x2))) = tmpString._buf[10];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[1])) + 0x3))) = tmpString._buf[0xb];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[2])) + 0x0))) = tmpString._buf[0xc];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[2])) + 0x1))) = tmpString._buf[0xd];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[2])) + 0x2))) = tmpString._buf[0xe];
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[2])) + 0x3))) = tmpString._buf[0xf];
|
|
g_graphicsManager_blendMode[3] = tmpString._size;
|
|
g_graphicsManager_blendMode[4] = GHIDRA_INT(local_70);
|
|
_glfw_context_reset(1);
|
|
BVar5 = this[0x1c];
|
|
if (BVar5 != (Backdrop)0x0) {
|
|
BVar6 = BVar5;
|
|
if (0xf < *GHIDRA_CAST<uint *>((GHIDRA_CAST<char *>(BVar5) + 0x14))) {
|
|
BVar6 = *GHIDRA_CAST<Backdrop *>(BVar5);
|
|
}
|
|
pbVar4 = &DAT_00b601c4;
|
|
do {
|
|
bVar3 = *GHIDRA_CAST<byte *>(BVar6);
|
|
isLess = bVar3 < *pbVar4;
|
|
if (bVar3 != *pbVar4) {
|
|
LAB_0093e6e2:
|
|
uVar7 = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_0093e6e7;
|
|
}
|
|
if (bVar3 == 0) break;
|
|
bVar3 = *GHIDRA_CAST<byte *>((GHIDRA_CAST<char *>(BVar6) + 1));
|
|
isLess = bVar3 < pbVar4[1];
|
|
if (bVar3 != pbVar4[1]) goto LAB_0093e6e2;
|
|
BVar6 = (Backdrop)(GHIDRA_INT(BVar6) + 2);
|
|
pbVar4 = pbVar4 + 2;
|
|
} while (bVar3 != 0);
|
|
uVar7 = 0;
|
|
LAB_0093e6e7:
|
|
if ((uVar7 == 0) && ((*GHIDRA_CAST<byte *>((GHIDRA_CAST<char *>(BVar5) + 0x34)) == 0 || (*GHIDRA_CAST<char *>((this + 0x20)) != '\0'))))
|
|
goto LAB_0093e713;
|
|
}
|
|
bVar3 = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0xf)))))->ANM2::SetAnimation(&DAT_00b601c4,1);
|
|
if (bVar3 != 0) {
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((this + 0x1b)))))->AnimationState::Rewind();
|
|
*GHIDRA_CAST<undefined1 *>((this + 0x20)) = 1;
|
|
}
|
|
goto LAB_0093e713;
|
|
}
|
|
if (BVar5 == (Backdrop)0x23) {
|
|
BVar5 = (Backdrop)(this + 0xb23);
|
|
if (0xf < GHIDRA_UINT(this[0xb28])) {
|
|
BVar5 = *GHIDRA_CAST<Backdrop *>(BVar5);
|
|
}
|
|
(GHIDRA_CAST<std::string *>((tmpString._buf)))->std::string::string_from_cstr(GHIDRA_CAST<byte *>(BVar5));
|
|
local_14 = 3;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0xf)))))->ANM2::Load(&tmpString,1);
|
|
local_14 = 0xffffffff;
|
|
if (0xf < tmpString._capacity) {
|
|
uVar7 = tmpString._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpString._buf))) + 0x0)));
|
|
if (0xfff < uVar7) {
|
|
freeBlock = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + -4));
|
|
uVar7 = tmpString._capacity + 0x24;
|
|
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBlock))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(freeBlock,uVar7);
|
|
}
|
|
bVar3 = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0xf)))))->ANM2::SetAnimation(s_Idle,1);
|
|
if (((bVar3 != 0) && (this[0x1c] != (Backdrop)0x0)) &&
|
|
((GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((this + 0x1b)))))->AnimationState::SetFrameFloat(0.0),
|
|
this[0x1c] != (Backdrop)0x0)) {
|
|
*GHIDRA_CAST<undefined1 *>((this + 0x20)) = 0;
|
|
}
|
|
iVar8 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 4));
|
|
if ((iVar8 == 0) || (iVar8 = *GHIDRA_CAST<int *>((iVar8 + 0x10)), iVar8 == 0)) {
|
|
local_70 = (Backdrop)0x1;
|
|
}
|
|
else {
|
|
local_70 = *GHIDRA_CAST<Backdrop *>((iVar8 + 0x48));
|
|
}
|
|
BVar5 = (Backdrop)0x0;
|
|
if (this[0x2f] != (Backdrop)0x0) {
|
|
do {
|
|
BVar6 = (Backdrop)(GHIDRA_INT(BVar5) + 1);
|
|
isLayerVisible = BVar6 == local_70;
|
|
layer = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0xf)))))->ANM2::GetLayer(GHIDRA_CAST<byte *>(BVar5));
|
|
layer->_visible = isLayerVisible;
|
|
BVar5 = BVar6;
|
|
} while (GHIDRA_UINT(BVar6) < GHIDRA_UINT(this[0x2f]));
|
|
}
|
|
goto LAB_0093e713;
|
|
}
|
|
if ((BVar5 == (Backdrop)0x34) || (BVar5 == (Backdrop)0x35)) {
|
|
BVar5 = (Backdrop)(this + GHIDRA_INT(BVar5) * 0x4f + 0x56);
|
|
if (0xf < *GHIDRA_CAST<uint *>((GHIDRA_CAST<char *>(BVar5) + 0x14))) {
|
|
BVar5 = *GHIDRA_CAST<Backdrop *>(BVar5);
|
|
}
|
|
(GHIDRA_CAST<std::string *>((tmpString._buf)))->std::string::string_from_cstr(GHIDRA_CAST<byte *>(BVar5));
|
|
local_14 = 4;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0xf)))))->ANM2::Load(&tmpString,1);
|
|
local_14 = 0xffffffff;
|
|
if (0xf < tmpString._capacity) {
|
|
uVar7 = tmpString._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpString._buf))) + 0x0)));
|
|
if (0xfff < uVar7) {
|
|
freeBlock = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + -4));
|
|
uVar7 = tmpString._capacity + 0x24;
|
|
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBlock)))))
|
|
goto LAB_0093e16c;
|
|
}
|
|
operator_delete(freeBlock,uVar7);
|
|
}
|
|
tmpString._size = 0;
|
|
tmpString._capacity = 0xf;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) & 0xffffff00;
|
|
iVar8 = *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 4)) + 0x10)) + 0x10)) + -10;
|
|
LAB_0093ddb8:
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0xf)))))->ANM2::SetFrame(GHIDRA_CAST<std_string *>(s_Idle),iVar8);
|
|
g_graphicsManager_flags = g_graphicsManager_flags & 0xfffffffd;
|
|
render_ashpit_ash();
|
|
g_graphicsManager_flags = g_graphicsManager_flags | 2;
|
|
goto LAB_0093e713;
|
|
}
|
|
if (BVar5 == (Backdrop)0x36) {
|
|
BVar5 = (Backdrop)(this + 0x1100);
|
|
if (0xf < GHIDRA_UINT(this[0x1105])) {
|
|
BVar5 = *GHIDRA_CAST<Backdrop *>(BVar5);
|
|
}
|
|
(GHIDRA_CAST<std::string *>((tmpString._buf)))->std::string::string_from_cstr(GHIDRA_CAST<byte *>(BVar5));
|
|
local_14 = 5;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0xf)))))->ANM2::Load(&tmpString,1);
|
|
local_14 = 0xffffffff;
|
|
if (0xf < tmpString._capacity) {
|
|
uVar7 = tmpString._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpString._buf))) + 0x0)));
|
|
if (0xfff < uVar7) {
|
|
freeBlock = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + -4));
|
|
uVar7 = tmpString._capacity + 0x24;
|
|
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBlock))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(freeBlock,uVar7);
|
|
}
|
|
iVar8 = 0;
|
|
goto LAB_0093ddb8;
|
|
}
|
|
(GHIDRA_CAST<std::string *>((imagePath._buf)))->std::string::string(this + GHIDRA_INT(BVar5) * 0x4f + 0x56);
|
|
local_14 = 6;
|
|
if (imagePath._size != 0) {
|
|
detailsPath = &imagePath;
|
|
if (0xf < imagePath._capacity) {
|
|
detailsPath = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<std_string *>(imagePath._buf))) + 0x0)));
|
|
}
|
|
loadedImage = Manager::LoadImage(&local_80,GHIDRA_CAST<byte *>(detailsPath));
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 7;
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((this + 9)))->KAGE::SmartPointer::operator_assign(loadedImage);
|
|
local_14 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),6);
|
|
FUN_0040c440();
|
|
}
|
|
BVar5 = this[0x54];
|
|
if (this[GHIDRA_INT(BVar5) * 0x4f + 0x60] != (Backdrop)0x0) {
|
|
BVar5 = (Backdrop)(this + GHIDRA_INT(BVar5) * 0x4f + 0x5c);
|
|
if (0xf < *GHIDRA_CAST<uint *>((GHIDRA_CAST<char *>(BVar5) + 0x14))) {
|
|
BVar5 = *GHIDRA_CAST<Backdrop *>(BVar5);
|
|
}
|
|
loadedImage = Manager::LoadImage(imageRef,GHIDRA_CAST<byte *>(BVar5));
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 8;
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((this + 0xb)))->KAGE::SmartPointer::operator_assign(loadedImage);
|
|
local_14 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),6);
|
|
FUN_0040c440();
|
|
FUN_00a123f0(0,0);
|
|
BVar5 = this[0x54];
|
|
}
|
|
game = g_game;
|
|
if ((*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room->_descriptor) + 0x10)) + 0x48)) - 9U < 4) &&
|
|
(this[GHIDRA_INT(BVar5) * 0x4f + 0x66] != (Backdrop)0x0)) {
|
|
BVar5 = (Backdrop)(this + GHIDRA_INT(BVar5) * 0x4f + 0x62);
|
|
if (0xf < *GHIDRA_CAST<uint *>((GHIDRA_CAST<char *>(BVar5) + 0x14))) {
|
|
BVar5 = *GHIDRA_CAST<Backdrop *>(BVar5);
|
|
}
|
|
loadedImage = Manager::LoadImage(imageRef,GHIDRA_CAST<byte *>(BVar5));
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 9;
|
|
LAB_0093df32:
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((this + 0xd)))->KAGE::SmartPointer::operator_assign(loadedImage);
|
|
local_14 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),6);
|
|
FUN_0040c440();
|
|
game = g_game;
|
|
}
|
|
else {
|
|
local_70 = (Backdrop)(GHIDRA_INT(BVar5) * 0x13c);
|
|
if ((*GHIDRA_CAST<int *>((GHIDRA_CAST<byte *>((GHIDRA_INT(local_70) + 0x1b0)) + GHIDRA_INT(this))) != 0) &&
|
|
((((iVar8 = (GHIDRA_CAST<Room *>((g_game->_room)))->Room::GetRoomShape(), iVar8 == 2 || (iVar8 == 3)) || (iVar8 == 5))
|
|
|| (iVar8 == 7)))) {
|
|
pbVar4 = GHIDRA_CAST<byte *>((GHIDRA_INT(local_70) + 0x1a0)) + GHIDRA_INT(this);
|
|
if (0xf < *GHIDRA_CAST<uint *>((pbVar4 + 0x14))) {
|
|
pbVar4 = *GHIDRA_CAST<byte **>(pbVar4);
|
|
}
|
|
loadedImage = Manager::LoadImage(imageRef,pbVar4);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 10;
|
|
goto LAB_0093df32;
|
|
}
|
|
}
|
|
BVar5 = this[0x54];
|
|
switch(BVar5) {
|
|
case (Backdrop)0x1f:
|
|
tmpString._size = 0;
|
|
tmpString._capacity = 0xf;
|
|
tmpString._buf[0] = '\0';
|
|
tmpString._buf[1] = '\0';
|
|
tmpString._buf[2] = '\0';
|
|
tmpString._buf[3] = '\0';
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) = std::_Allocate(0x30);
|
|
tmpString._size = 0x24;
|
|
tmpString._capacity = 0x2f;
|
|
builtin_strncpy((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpString._buf))) + 0x0))),"gfx/backdrop/01x_downpour_pipes.anm2",0x25);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xb;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0x13cf)))))->ANM2::Load(&tmpString,1);
|
|
local_14 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),6);
|
|
if (0xf < tmpString._capacity) {
|
|
uVar7 = tmpString._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpString._buf))) + 0x0)));
|
|
if (0xfff < uVar7) {
|
|
freeBlock = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + -4));
|
|
uVar7 = tmpString._capacity + 0x24;
|
|
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBlock))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(freeBlock,uVar7);
|
|
}
|
|
local_70 = (Backdrop)(this + 0x13d5);
|
|
if (0xf < GHIDRA_UINT(this[0x13da])) {
|
|
local_70 = *GHIDRA_CAST<Backdrop *>(local_70);
|
|
}
|
|
BVar5 = this[0x13dc];
|
|
if (BVar5 != (Backdrop)0x0) {
|
|
if (0xf < *GHIDRA_CAST<uint *>((GHIDRA_CAST<char *>(BVar5) + 0x14))) {
|
|
BVar5 = *GHIDRA_CAST<Backdrop *>(BVar5);
|
|
}
|
|
BVar6 = local_70;
|
|
do {
|
|
bVar3 = *GHIDRA_CAST<byte *>(BVar5);
|
|
isLess = bVar3 < *GHIDRA_CAST<byte *>(BVar6);
|
|
if (bVar3 != *GHIDRA_CAST<byte *>(BVar6)) goto LAB_0093e060;
|
|
if (bVar3 == 0) break;
|
|
bVar3 = *GHIDRA_CAST<byte *>((GHIDRA_CAST<char *>(BVar5) + 1));
|
|
isLess = bVar3 < *GHIDRA_CAST<byte *>((GHIDRA_CAST<char *>(BVar6) + 1));
|
|
if (bVar3 != *GHIDRA_CAST<byte *>((GHIDRA_CAST<char *>(BVar6) + 1))) goto LAB_0093e060;
|
|
BVar5 = (Backdrop)(GHIDRA_INT(BVar5) + 2);
|
|
BVar6 = (Backdrop)(GHIDRA_INT(BVar6) + 2);
|
|
} while (bVar3 != 0);
|
|
LAB_0093e05c:
|
|
uVar7 = 0;
|
|
LAB_0093e065:
|
|
if ((uVar7 == 0) &&
|
|
((*GHIDRA_CAST<char *>((GHIDRA_INT(this[0x13dc]) + 0x34)) == '\0' || (*GHIDRA_CAST<char *>((this + 0x13e0)) != '\0'))))
|
|
goto switchD_0093df66_caseD_21;
|
|
}
|
|
break;
|
|
case (Backdrop)0x20:
|
|
case (Backdrop)0x3a:
|
|
if (((*GHIDRA_CAST<uint *>((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(game->_room) + 4)) + 0x44)) >> 9 & 1) == 0) &&
|
|
(BVar5 != (Backdrop)0x3a)) {
|
|
tmpString._size = 0;
|
|
tmpString._capacity = 0xf;
|
|
tmpString._buf[0] = '\0';
|
|
tmpString._buf[1] = '\0';
|
|
tmpString._buf[2] = '\0';
|
|
tmpString._buf[3] = '\0';
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) = std::_Allocate(0x30);
|
|
tmpString._size = 0x23;
|
|
builtin_strncpy((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpString._buf))) + 0x0))),"gfx/backdrop/03x_mines_details.anm2",0x24);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xd;
|
|
}
|
|
else {
|
|
tmpString._size = 0;
|
|
tmpString._capacity = 0xf;
|
|
tmpString._buf[0] = '\0';
|
|
tmpString._buf[1] = '\0';
|
|
tmpString._buf[2] = '\0';
|
|
tmpString._buf[3] = '\0';
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) = std::_Allocate(0x30);
|
|
tmpString._size = 0x28;
|
|
builtin_strncpy((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpString._buf))) + 0x0))),"gfx/backdrop/03x_mines_details_dark.anm2",0x29);
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xc;
|
|
}
|
|
tmpString._capacity = 0x2f;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0x13cf)))))->ANM2::Load(&tmpString,1);
|
|
local_14 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),6);
|
|
if (0xf < tmpString._capacity) {
|
|
uVar7 = tmpString._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpString._buf))) + 0x0)));
|
|
if (0xfff < uVar7) {
|
|
freeBlock = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + -4));
|
|
uVar7 = tmpString._capacity + 0x24;
|
|
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBlock))))) {
|
|
LAB_0093e16c:
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(freeBlock,uVar7);
|
|
}
|
|
local_70 = (Backdrop)(this + 0x13d5);
|
|
if (0xf < GHIDRA_UINT(this[0x13da])) {
|
|
local_70 = *GHIDRA_CAST<Backdrop *>(local_70);
|
|
}
|
|
BVar5 = this[0x13dc];
|
|
if (BVar5 != (Backdrop)0x0) {
|
|
if (0xf < *GHIDRA_CAST<uint *>((GHIDRA_CAST<char *>(BVar5) + 0x14))) {
|
|
BVar5 = *GHIDRA_CAST<Backdrop *>(BVar5);
|
|
}
|
|
BVar6 = local_70;
|
|
do {
|
|
bVar3 = *GHIDRA_CAST<byte *>(BVar5);
|
|
isLess = bVar3 < *GHIDRA_CAST<byte *>(BVar6);
|
|
if (bVar3 != *GHIDRA_CAST<byte *>(BVar6)) goto LAB_0093e060;
|
|
if (bVar3 == 0) goto LAB_0093e05c;
|
|
bVar3 = *GHIDRA_CAST<byte *>((GHIDRA_CAST<char *>(BVar5) + 1));
|
|
isLess = bVar3 < *GHIDRA_CAST<byte *>((GHIDRA_CAST<char *>(BVar6) + 1));
|
|
if (bVar3 != *GHIDRA_CAST<byte *>((GHIDRA_CAST<char *>(BVar6) + 1))) goto LAB_0093e060;
|
|
BVar5 = (Backdrop)(GHIDRA_INT(BVar5) + 2);
|
|
BVar6 = (Backdrop)(GHIDRA_INT(BVar6) + 2);
|
|
} while (bVar3 != 0);
|
|
uVar7 = 0;
|
|
goto LAB_0093e065;
|
|
}
|
|
break;
|
|
default:
|
|
goto switchD_0093df66_caseD_21;
|
|
case (Backdrop)0x2a:
|
|
(GHIDRA_CAST<std::string *>((tmpString._buf)))->std::string::string_from_cstr(GHIDRA_CAST<byte *>("gfx/backdrop/05x_mausoleum_chains.anm2"));
|
|
local_14 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),0x10);
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0x13cf)))))->ANM2::Load(&tmpString,1);
|
|
detailsPath = &tmpString;
|
|
goto LAB_0093e391;
|
|
case (Backdrop)0x2e:
|
|
case (Backdrop)0x3b:
|
|
if (((*GHIDRA_CAST<uint *>((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(game->_room) + 4)) + 0x44)) >> 9 & 1) == 0) &&
|
|
(BVar5 != (Backdrop)0x3b)) {
|
|
(GHIDRA_CAST<std::string *>((tmpString._buf)))->std::string::string_from_cstr(GHIDRA_CAST<byte *>("gfx/backdrop/04x_ashpit_details.anm2"));
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xf;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0x13cf)))))->ANM2::Load(&tmpString,1);
|
|
local_14 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),6);
|
|
(GHIDRA_CAST<std::string *>((tmpString._buf)))->std::string::_Tidy_deallocate();
|
|
}
|
|
else {
|
|
tmpString._size = 0;
|
|
tmpString._capacity = 0xf;
|
|
tmpString._buf[0] = '\0';
|
|
tmpString._buf[1] = '\0';
|
|
tmpString._buf[2] = '\0';
|
|
tmpString._buf[3] = '\0';
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) = std::_Allocate(0x30);
|
|
tmpString._size = 0x29;
|
|
tmpString._capacity = 0x2f;
|
|
builtin_strncpy((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpString._buf))) + 0x0))),"gfx/backdrop/04x_ashpit_details_dark.anm2",0x2a)
|
|
;
|
|
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xe;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0x13cf)))))->ANM2::Load(&tmpString,1);
|
|
local_14 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),6);
|
|
if (0xf < tmpString._capacity) {
|
|
uVar7 = tmpString._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpString._buf))) + 0x0)));
|
|
if (0xfff < uVar7) {
|
|
freeBlock = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + -4));
|
|
uVar7 = tmpString._capacity + 0x24;
|
|
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBlock)))))
|
|
goto LAB_0093e16c;
|
|
}
|
|
operator_delete(freeBlock,uVar7);
|
|
}
|
|
}
|
|
goto LAB_0093e3a0;
|
|
case (Backdrop)0x2f:
|
|
(GHIDRA_CAST<std::string *>((gehennaPath._buf)))->std::string::string_from_cstr(GHIDRA_CAST<byte *>("gfx/backdrop/06x_gehenna_details.anm2"));
|
|
local_14 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),0x11);
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0x13cf)))))->ANM2::Load(&gehennaPath,1);
|
|
detailsPath = &gehennaPath;
|
|
LAB_0093e391:
|
|
local_14 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),6);
|
|
(GHIDRA_CAST<std::string *>((detailsPath->_buf)))->std::string::_Tidy_deallocate();
|
|
LAB_0093e3a0:
|
|
(GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>((this + 0x13cf)))))->Sprite::Play(GHIDRA_CAST<std_string *>((this + 0x13d5)),0);
|
|
goto switchD_0093df66_caseD_21;
|
|
}
|
|
bVar3 = (GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0x13cf)))))->ANM2::SetAnimation(GHIDRA_CAST<byte *>(local_70),1);
|
|
if (bVar3 != 0) {
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((this + 0x13db)))))->AnimationState::Rewind();
|
|
*GHIDRA_CAST<undefined1 *>((this + 0x13e0)) = 1;
|
|
}
|
|
switchD_0093df66_caseD_21:
|
|
if (this[9] != (Backdrop)0x0) {
|
|
g_graphicsManager_flags = g_graphicsManager_flags & 0xfffffffd;
|
|
render_ashpit_ash();
|
|
pre_render_walls();
|
|
g_graphicsManager_flags = g_graphicsManager_flags | 2;
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((this + 9)))->KAGE::SmartPointer::reset((void *)0x0);
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((this + 0xd)))->KAGE::SmartPointer::reset((void *)0x0);
|
|
}
|
|
local_14 = 0xffffffff;
|
|
(GHIDRA_CAST<std::string *>((imagePath._buf)))->std::string::_Tidy_deallocate();
|
|
LAB_0093e713:
|
|
pop_render_target();
|
|
ExceptionList = local_1c;
|
|
return;
|
|
LAB_0093e060:
|
|
uVar7 = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_0093e065;
|
|
}
|
|
|
|
// 0093e770
|
|
void Backdrop::render_wall_borders(Vector *roomTopLeft, Vector *roomSize)
|
|
{
|
|
int iVar1;
|
|
float top;
|
|
float rightQuad [4];
|
|
float local_1dc;
|
|
undefined1 topQuad [20];
|
|
float local_168;
|
|
float local_160;
|
|
undefined1 leftQuad [8];
|
|
float local_104;
|
|
float local_f4;
|
|
undefined1 sharedQuad [4];
|
|
float local_98;
|
|
float local_90;
|
|
KColor local_28;
|
|
Vector cornerSize;
|
|
Vector cornerPos;
|
|
|
|
top = 0.0;
|
|
local_28._red = 0.0;
|
|
local_28._green = 0.0;
|
|
local_28._blue = 0.0;
|
|
local_28._alpha = 1.0;
|
|
local_28._unk = 0;
|
|
render_quad_set_uniform_color(leftQuad,0.0,0.0,roomTopLeft->x,g_screenHeight,&local_28);
|
|
render_quad_set_uniform_color
|
|
(topQuad,roomTopLeft->x,top,roomTopLeft->x + roomSize->x,roomTopLeft->y,&local_28);
|
|
render_quad_set_uniform_color
|
|
(rightQuad,roomTopLeft->x + roomSize->x,top,g_screenWidth,g_screenHeight,&local_28);
|
|
render_quad_set_uniform_color
|
|
(sharedQuad,roomTopLeft->x,roomTopLeft->y + roomSize->y,roomTopLeft->x + roomSize->x,
|
|
g_screenHeight,&local_28);
|
|
iVar1 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 4));
|
|
if ((iVar1 == 0) || (iVar1 = *GHIDRA_CAST<int *>((iVar1 + 0x10)), iVar1 == 0)) {
|
|
iVar1 = 1;
|
|
}
|
|
else {
|
|
iVar1 = *GHIDRA_CAST<int *>((iVar1 + 0x48));
|
|
if ((iVar1 == 2) || (iVar1 == 7)) {
|
|
local_168 = local_160 + 52.0;
|
|
local_98 = local_90 - 52.0;
|
|
local_160 = local_168;
|
|
local_90 = local_98;
|
|
}
|
|
else if ((iVar1 == 3) || (iVar1 == 5)) {
|
|
local_104 = local_f4 + 104.0;
|
|
rightQuad[0] = rightQuad[0] - 104.0;
|
|
local_1dc = rightQuad[0];
|
|
local_f4 = local_104;
|
|
}
|
|
}
|
|
render_color_shader_pass(leftQuad);
|
|
render_color_shader_pass(topQuad);
|
|
render_color_shader_pass(rightQuad);
|
|
render_color_shader_pass(sharedQuad);
|
|
cornerSize.x = 364.0;
|
|
cornerSize.y = 208.0;
|
|
if (iVar1 != 9) {
|
|
if (iVar1 == 10) {
|
|
cornerPos.x = roomSize->x * 0.5 + roomTopLeft->x + 26.0;
|
|
cornerPos.y = roomTopLeft->y;
|
|
}
|
|
else {
|
|
if (iVar1 == 0xb) {
|
|
cornerPos.x = roomTopLeft->x;
|
|
}
|
|
else {
|
|
if (iVar1 != 0xc) {
|
|
return;
|
|
}
|
|
cornerPos.x = roomSize->x * 0.5 + roomTopLeft->x + 26.0;
|
|
}
|
|
cornerPos.y = roomSize->y * 0.5 + roomTopLeft->y + 26.0;
|
|
}
|
|
roomTopLeft = &cornerPos;
|
|
}
|
|
render_quad_set_rect(sharedQuad,roomTopLeft,&cornerSize,&local_28);
|
|
render_color_shader_pass(sharedQuad);
|
|
return;
|
|
}
|
|
|
|
// 0093ea00
|
|
void Backdrop::RenderFloor(Vector *param_1, ColorMod param_2)
|
|
{
|
|
byte bVar1;
|
|
byte *curAnimName;
|
|
uint uVar2;
|
|
ColorMod *color;
|
|
undefined *shader;
|
|
undefined4 *in_ECX;
|
|
AnimationState *otherAnimState;
|
|
undefined4 *extraout_ECX;
|
|
undefined4 *unused;
|
|
byte *unused_00;
|
|
KColor *color_00;
|
|
undefined4 *extraout_ECX_00;
|
|
undefined4 *extraout_ECX_01;
|
|
undefined4 *extraout_ECX_02;
|
|
KColor *color_01;
|
|
undefined4 *extraout_ECX_03;
|
|
bool isLess;
|
|
float fVar3;
|
|
float fVar4;
|
|
float fVar5;
|
|
undefined1 auStackY_1dc [128];
|
|
Vector *pVVar6;
|
|
void *imageRefCount;
|
|
KColor *imageRefCount_00;
|
|
undefined1 auStack_148 [12];
|
|
Vector local_13c;
|
|
Vector local_134;
|
|
float tileX;
|
|
Vector *renderOffset;
|
|
float tileY;
|
|
int savedBlendMode4;
|
|
int savedBlendMode0;
|
|
int savedBlendMode1;
|
|
int savedBlendMode2;
|
|
int savedBlendMode3;
|
|
KColor white;
|
|
undefined1 quad [36];
|
|
undefined1 renderQuad [112];
|
|
Color defaultColor;
|
|
uint local_14;
|
|
int backdropType;
|
|
|
|
local_14 = __security_cookie ^ GHIDRA_UINT(auStack_148);
|
|
renderOffset = param_1;
|
|
savedBlendMode0 = g_graphicsManager_blendMode[0];
|
|
savedBlendMode1 = g_graphicsManager_blendMode[1];
|
|
savedBlendMode2 = g_graphicsManager_blendMode[2];
|
|
savedBlendMode3 = g_graphicsManager_blendMode[3];
|
|
savedBlendMode4 = g_graphicsManager_blendMode[4];
|
|
if (in_ECX[0x54] == 0x1c) {
|
|
g_graphicsManager_blendMode[1] = 1;
|
|
if (((byte)g_graphicsManager_flags & 4) == 0) {
|
|
g_graphicsManager_blendMode[1] = 6;
|
|
}
|
|
g_graphicsManager_blendMode[2] = 7;
|
|
g_graphicsManager_blendMode[4] = 7;
|
|
unused = GHIDRA_CAST<undefined4 *>(&DAT_00000006);
|
|
}
|
|
else {
|
|
g_graphicsManager_blendMode[1] = 1;
|
|
g_graphicsManager_blendMode[2] = 0;
|
|
g_graphicsManager_blendMode[4] = 0;
|
|
unused = in_ECX;
|
|
}
|
|
g_graphicsManager_blendMode[3] = 1;
|
|
g_graphicsManager_blendMode[0] = 0;
|
|
backdropType = in_ECX[0x54];
|
|
if (backdropType == 0x1a) {
|
|
fVar4 = (float)in_ECX[0x13c9];
|
|
fVar3 = (float)in_ECX[0x13c7];
|
|
tileX = (float)in_ECX[0x13c6];
|
|
DAT_00c33910 = 0;
|
|
tileY = fVar3;
|
|
if (fVar3 < fVar4 - 0.001) {
|
|
fVar5 = (float)in_ECX[0x13c8];
|
|
do {
|
|
local_13c.x = (tileX - fVar5) + 100.0;
|
|
if (local_13c.x <= 0.0) {
|
|
local_13c.x = 0.0;
|
|
}
|
|
local_13c.y = (fVar3 - fVar4) + 100.0;
|
|
if (local_13c.y <= 0.0) {
|
|
local_13c.y = 0.0;
|
|
}
|
|
local_134.x = tileX + param_1->x;
|
|
local_134.y = fVar3 + param_1->y;
|
|
if (*GHIDRA_CAST<char *>((GHIDRA_CAST<char *>(in_ECX) + 0x145)) != '\0') {
|
|
if (*GHIDRA_CAST<char *>((in_ECX + 0x2b)) == '\0') {
|
|
AnimationState::Render
|
|
(GHIDRA_CAST<AnimationState *>((in_ECX + 0x1b)),&local_134,&g_vectorZero,&local_13c);
|
|
otherAnimState = GHIDRA_CAST<AnimationState *>((in_ECX + 0x23));
|
|
}
|
|
else {
|
|
AnimationState::Render
|
|
(GHIDRA_CAST<AnimationState *>((in_ECX + 0x23)),&local_134,&g_vectorZero,&local_13c);
|
|
otherAnimState = GHIDRA_CAST<AnimationState *>((in_ECX + 0x1b));
|
|
}
|
|
AnimationState::Render(otherAnimState,&local_134,&g_vectorZero,&local_13c);
|
|
unused = extraout_ECX;
|
|
param_1 = renderOffset;
|
|
fVar3 = tileY;
|
|
}
|
|
fVar5 = (float)in_ECX[0x13c8];
|
|
tileX = tileX + 100.0;
|
|
if (fVar5 - 0.001 < tileX) {
|
|
tileX = (float)in_ECX[0x13c6];
|
|
fVar3 = fVar3 + 100.0;
|
|
tileY = fVar3;
|
|
}
|
|
fVar4 = (float)in_ECX[0x13c9];
|
|
} while (fVar3 < fVar4 - 0.001);
|
|
DAT_00c33910 = 1;
|
|
goto LAB_0093ef9f;
|
|
}
|
|
}
|
|
else {
|
|
if (backdropType != 0x12) {
|
|
if (backdropType == 0x23) {
|
|
DAT_00c33910 = 0;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((in_ECX + 0xf)))))->ANM2::Render(param_1,&g_vectorZero,&g_vectorZero);
|
|
DAT_00c33910 = 1;
|
|
unused = extraout_ECX_02;
|
|
}
|
|
else {
|
|
shader = &g_shaders;
|
|
if ((DAT_00c7911c & 1) == 0) {
|
|
shader = g_currentShader;
|
|
}
|
|
local_13c.x = 52.0;
|
|
local_13c.y = 52.0;
|
|
local_134.x = ((float)in_ECX[0x13c8] - (float)in_ECX[0x13c6]) + 0.0;
|
|
local_134.y = ((float)in_ECX[0x13c9] - (float)in_ECX[0x13c7]) + 26.0;
|
|
g_currentShader = shader;
|
|
quad_set_rect(quad,&local_13c,&local_134,GHIDRA_INT(unused));
|
|
(GHIDRA_CAST<KColor *>((&white)))->KColor::SetFromARGB(0xffffffff);
|
|
local_13c.x = param_1->x + 52.0;
|
|
pVVar6 = &local_134;
|
|
local_13c.y = param_1->y + 52.0;
|
|
imageRefCount_00 = color_01;
|
|
render_quad_set_rect(renderQuad,&local_13c,pVVar6,color_01);
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((auStackY_1dc + 0x84)))->KAGE::SmartPointer::operator_assign(in_ECX);
|
|
apply_sprite_shader_params(¶m_2,1,pVVar6,imageRefCount_00);
|
|
(**(code **)(*GHIDRA_CAST<int *>(*in_ECX) + 0x14))(quad);
|
|
unused = extraout_ECX_03;
|
|
}
|
|
goto LAB_0093ef9f;
|
|
}
|
|
DAT_00c33910 = 0;
|
|
if ((in_ECX[0x1c] != 0) && (*GHIDRA_CAST<char *>((in_ECX + 0x20)) == '\0')) {
|
|
curAnimName = GHIDRA_CAST<byte *>(in_ECX[0x1c]);
|
|
if (0xf < *GHIDRA_CAST<uint *>((curAnimName + 0x14))) {
|
|
curAnimName = *GHIDRA_CAST<byte **>(curAnimName);
|
|
}
|
|
unused_00 = s_Idle2;
|
|
do {
|
|
bVar1 = *curAnimName;
|
|
isLess = bVar1 < *unused_00;
|
|
if (bVar1 != *unused_00) {
|
|
LAB_0093eca2:
|
|
uVar2 = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_0093eca7;
|
|
}
|
|
if (bVar1 == 0) break;
|
|
bVar1 = curAnimName[1];
|
|
isLess = bVar1 < unused_00[1];
|
|
if (bVar1 != unused_00[1]) goto LAB_0093eca2;
|
|
curAnimName = curAnimName + 2;
|
|
unused_00 = unused_00 + 2;
|
|
} while (bVar1 != 0);
|
|
uVar2 = 0;
|
|
LAB_0093eca7:
|
|
if (uVar2 == 0) {
|
|
shader = &g_shaders;
|
|
if ((DAT_00c7911c & 1) == 0) {
|
|
shader = g_currentShader;
|
|
}
|
|
fVar5 = g_vectorOne.x * 26.0 * 0.5;
|
|
fVar4 = 52.0;
|
|
fVar3 = g_vectorOne.y * 26.0 * 0.5;
|
|
local_134.x = fVar5 + fVar5 + ((float)in_ECX[0x13c8] - (float)in_ECX[0x13c6]);
|
|
local_134.y = ((float)in_ECX[0x13c9] - (float)in_ECX[0x13c7]) + fVar3 + fVar3;
|
|
local_13c.x = (52.0 - fVar5) + DAT_00c35e70;
|
|
local_13c.y = (52.0 - fVar3) + DAT_00c35e74;
|
|
g_currentShader = shader;
|
|
quad_set_rect(quad,&local_13c,&local_134,GHIDRA_INT(unused_00));
|
|
(GHIDRA_CAST<KColor *>((&white)))->KColor::SetFromARGB(0xffffffff);
|
|
pVVar6 = &local_134;
|
|
local_13c.x = ((param_1->x + fVar4) - fVar5) + DAT_00c35e70;
|
|
local_13c.y = ((param_1->y + fVar4) - fVar3) + DAT_00c35e74;
|
|
render_quad_set_rect(renderQuad,&local_13c,pVVar6,color_00);
|
|
imageRefCount = (void *)0x93ede7;
|
|
(GHIDRA_CAST<Color *>((&defaultColor)))->Color::Color();
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((auStackY_1dc + 0x84)))->KAGE::SmartPointer::operator_assign(in_ECX);
|
|
apply_sprite_shader_params(color,1,pVVar6,imageRefCount);
|
|
(**(code **)(*GHIDRA_CAST<int *>(*in_ECX) + 0x14))(quad);
|
|
DAT_00c33910 = 1;
|
|
unused = extraout_ECX_00;
|
|
goto LAB_0093ef9f;
|
|
}
|
|
}
|
|
local_134.x = param_1->x + (float)in_ECX[0x13c6] + DAT_00c35e70;
|
|
local_134.y = param_1->y + (float)in_ECX[0x13c7] + DAT_00c35e74;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((in_ECX + 0xf)))))->ANM2::Render(&local_134,&g_vectorZero,&g_vectorZero);
|
|
unused = extraout_ECX_01;
|
|
}
|
|
DAT_00c33910 = 1;
|
|
LAB_0093ef9f:
|
|
g_graphicsManager_blendMode[0] = savedBlendMode0;
|
|
g_graphicsManager_blendMode[1] = savedBlendMode1;
|
|
g_graphicsManager_blendMode[2] = savedBlendMode2;
|
|
g_graphicsManager_blendMode[3] = savedBlendMode3;
|
|
g_graphicsManager_blendMode[4] = savedBlendMode4;
|
|
shader_cache_find(GHIDRA_INT(unused));
|
|
return;
|
|
}
|
|
|
|
// 0093f000
|
|
void Backdrop::render_floor_surface(float *param_1, ColorMod param_2)
|
|
{
|
|
int iVar1;
|
|
int iVar2;
|
|
undefined *shader;
|
|
int in_ECX;
|
|
KColor *color;
|
|
int unusedArg;
|
|
float margin;
|
|
undefined1 auStackY_180 [128];
|
|
Vector *size;
|
|
KColor *imageRefCount;
|
|
Vector surfaceSize;
|
|
Vector drawPos;
|
|
undefined4 local_d4;
|
|
undefined4 local_d0;
|
|
float local_cc;
|
|
undefined4 local_c8;
|
|
undefined4 local_c4;
|
|
float local_c0;
|
|
float local_bc;
|
|
float local_b8;
|
|
int local_b4;
|
|
int local_b0;
|
|
int iStack_ac;
|
|
int iStack_a8;
|
|
int iStack_a4;
|
|
KColor quadColor;
|
|
undefined1 local_80 [124];
|
|
|
|
iVar1 = g_graphicsManager_blendMode[4];
|
|
iVar2 = 1;
|
|
margin = 52.0;
|
|
local_b0 = g_graphicsManager_blendMode[0];
|
|
iStack_ac = g_graphicsManager_blendMode[1];
|
|
iStack_a8 = g_graphicsManager_blendMode[2];
|
|
iStack_a4 = g_graphicsManager_blendMode[3];
|
|
g_graphicsManager_blendMode[0] = 0;
|
|
if (((byte)g_graphicsManager_flags & 4) == 0) {
|
|
iVar2 = 6;
|
|
}
|
|
g_graphicsManager_blendMode[2] = 7;
|
|
shader = &g_shaders;
|
|
if ((DAT_00c7911c & 1) == 0) {
|
|
shader = g_currentShader;
|
|
}
|
|
g_graphicsManager_blendMode[3] = 1;
|
|
g_graphicsManager_blendMode[4] = 7;
|
|
local_c4 = 0x42500000;
|
|
local_c8 = 0x42500000;
|
|
surfaceSize.x = (*GHIDRA_CAST<float *>((in_ECX + 0x4f20)) - *GHIDRA_CAST<float *>((in_ECX + 0x4f18))) + 0.0;
|
|
surfaceSize.y = (*GHIDRA_CAST<float *>((in_ECX + 0x4f24)) - *GHIDRA_CAST<float *>((in_ECX + 0x4f1c))) + 26.0;
|
|
local_d4 = 0x42500000;
|
|
local_d0 = 0x42500000;
|
|
local_b4 = CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_b4)) + 0x1))),1);
|
|
local_cc = surfaceSize.x + 52.0;
|
|
local_c0 = surfaceSize.y + 52.0;
|
|
g_currentShader = shader;
|
|
g_graphicsManager_blendMode[1] = iVar2;
|
|
local_bc = local_cc;
|
|
local_b8 = local_c0;
|
|
(GHIDRA_CAST<KColor *>((&quadColor)))->KColor::SetFromARGB(0xffffffff);
|
|
drawPos.x = *param_1 + margin;
|
|
drawPos.y = param_1[1] + margin;
|
|
size = &surfaceSize;
|
|
imageRefCount = color;
|
|
render_quad_set_rect(local_80,&drawPos,size,color);
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((auStackY_180 + 0x88)))->KAGE::SmartPointer::operator_assign(GHIDRA_CAST<undefined4 *>((in_ECX + 0x10)));
|
|
apply_sprite_shader_params(¶m_2,1,size,imageRefCount);
|
|
(**(code **)(**GHIDRA_CAST<int **>((in_ECX + 0x10)) + 0x14))(&local_d4);
|
|
g_graphicsManager_blendMode[0] = GHIDRA_INT(local_bc);
|
|
g_graphicsManager_blendMode[1] = GHIDRA_INT(local_b8);
|
|
g_graphicsManager_blendMode[2] = local_b4;
|
|
g_graphicsManager_blendMode[3] = local_b0;
|
|
g_graphicsManager_blendMode[4] = iVar1;
|
|
shader_cache_find(unusedArg);
|
|
return;
|
|
}
|
|
|
|
// 0093f1d0
|
|
void Backdrop::RenderWalls(Vector *renderOffset, ColorMod color)
|
|
{
|
|
undefined4 uVar1;
|
|
float *extraout_EAX;
|
|
undefined4 *extraout_EAX_00;
|
|
Vector *position;
|
|
undefined4 *extraout_EAX_01;
|
|
float *extraout_EAX_02;
|
|
undefined4 *extraout_EAX_03;
|
|
float *extraout_EAX_04;
|
|
undefined4 *extraout_EAX_05;
|
|
float *extraout_EAX_06;
|
|
undefined4 *extraout_EAX_07;
|
|
Backdrop BVar2;
|
|
int extraout_ECX;
|
|
KColor *color_00;
|
|
int extraout_ECX_00;
|
|
KColor *color_01;
|
|
int extraout_ECX_01;
|
|
KColor *color_02;
|
|
int extraout_ECX_02;
|
|
KColor *color_03;
|
|
int extraout_ECX_03;
|
|
KColor *color_04;
|
|
KColor *color_05;
|
|
KColor *color_06;
|
|
KColor *color_07;
|
|
KColor *color_08;
|
|
KColor *color_09;
|
|
KColor *color_10;
|
|
KColor *color_11;
|
|
int iVar3;
|
|
KColor *color_12;
|
|
KColor *extraout_ECX_04;
|
|
KColor *color_13;
|
|
KColor *color_14;
|
|
KColor *color_15;
|
|
KColor *extraout_ECX_05;
|
|
KColor *color_16;
|
|
KColor *color_17;
|
|
KColor *color_18;
|
|
KColor *color_19;
|
|
int extraout_ECX_06;
|
|
Backdrop BVar4;
|
|
Backdrop *unaff_ESI;
|
|
undefined4 *puVar5;
|
|
Backdrop **ppBVar6;
|
|
Backdrop BVar7;
|
|
float fVar8;
|
|
Backdrop *pBVar9;
|
|
Backdrop *pBVar10;
|
|
float fVar11;
|
|
Backdrop *pBVar12;
|
|
undefined1 auVar13 [4];
|
|
Vector aVStackY_610 [128];
|
|
Vector *pVVar14;
|
|
KColor *color_20;
|
|
float *pfVar15;
|
|
void *imageRefCount;
|
|
float *pfVar16;
|
|
float *pfVar17;
|
|
Backdrop animation;
|
|
undefined1 auStack_1d8 [8];
|
|
undefined1 local_1d0 [4];
|
|
undefined1 local_1cc [16];
|
|
Backdrop *pBStack_1bc;
|
|
Backdrop *pBStack_1b8;
|
|
Backdrop *pBStack_1b4;
|
|
Backdrop *pBStack_1b0;
|
|
Backdrop *pBStack_1ac;
|
|
float fStack_1a8;
|
|
Backdrop *pBStack_1a4;
|
|
Backdrop *pBStack_1a0;
|
|
Backdrop *pBStack_19c;
|
|
Backdrop *pBStack_198;
|
|
Backdrop *pBStack_194;
|
|
Backdrop *pBStack_190;
|
|
Vector *pVStack_18c;
|
|
Backdrop *local_188;
|
|
Backdrop *local_184;
|
|
Backdrop *local_180;
|
|
Vector *local_17c;
|
|
Backdrop *local_178;
|
|
Backdrop *local_174;
|
|
Backdrop *local_170;
|
|
Backdrop *local_16c;
|
|
Backdrop *local_168;
|
|
Vector local_164;
|
|
Backdrop *pBStack_15c;
|
|
Vector VStack_158;
|
|
Backdrop *pBStack_150;
|
|
Vector VStack_14c;
|
|
Backdrop *local_144;
|
|
Vector local_140;
|
|
Vector *local_138;
|
|
Backdrop *local_134 [5];
|
|
Vector local_120 [2];
|
|
undefined1 wallQuad [108];
|
|
undefined1 auStack_a4 [4];
|
|
int savedBlendMode;
|
|
int savedBlendMode1;
|
|
int iStack_98;
|
|
int savedBlendMode3;
|
|
undefined1 auStack_8c [136];
|
|
|
|
local_138 = renderOffset;
|
|
if (this[0xb] != (Backdrop)0x0) {
|
|
RenderWater(this,renderOffset);
|
|
}
|
|
BVar7 = this[0x54];
|
|
if (BVar7 == (Backdrop)0x12) {
|
|
fVar11 = g_vectorOne.x * 26.0 * 0.5;
|
|
fVar8 = g_vectorOne.y * 26.0 * 0.5;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = fVar11 + fVar11 + ((float)this[0x13c8] - (float)this[0x13c6]);
|
|
local_1d0 = (undefined1 [4])(((float)this[0x13c9] - (float)this[0x13c7]) + fVar8 + fVar8);
|
|
local_120[0].x = ((renderOffset->x + 52.0) - fVar11) + DAT_00c35e70;
|
|
local_120[0].y = ((renderOffset->y + 52.0) - fVar8) + DAT_00c35e74;
|
|
render_wall_borders(local_120,GHIDRA_CAST<Vector *>((auStack_1d8 + 4)));
|
|
return;
|
|
}
|
|
if (BVar7 == (Backdrop)0x23) {
|
|
DAT_00c33910 = 0;
|
|
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((this + 0xf)))))->ANM2::Render(renderOffset,&g_vectorZero,&g_vectorZero);
|
|
DAT_00c33910 = 1;
|
|
return;
|
|
}
|
|
if (((BVar7 == (Backdrop)0x34) || (BVar7 == (Backdrop)0x35)) || (BVar7 == (Backdrop)0x36)) {
|
|
BVar7 = (Backdrop)0x1;
|
|
DAT_00c33910 = 0;
|
|
if (1 < GHIDRA_UINT(this[0x2f])) {
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) = 8.40779e-44;
|
|
do {
|
|
if ((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(this[0x51])) + 0x1))) != '\0') {
|
|
if (*GHIDRA_CAST<char *>((this + 0x2b)) == '\0') {
|
|
BVar4 = this[0x1c];
|
|
if (((BVar4 != (Backdrop)0x0) && (-1 < GHIDRA_INT(BVar7))) &&
|
|
((GHIDRA_INT(BVar7) < *GHIDRA_CAST<int *>((GHIDRA_INT(this[0x1b]) + 0x80)) &&
|
|
(iVar3 = *GHIDRA_CAST<int *>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) + GHIDRA_INT(BVar4))), -1 < iVar3)))) {
|
|
AnimationLayer::RenderFrame
|
|
(GHIDRA_CAST<AnimationLayer *>((iVar3 * 0x10 + *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(BVar4) + 0x18)))),local_138,
|
|
*GHIDRA_CAST<int *>((GHIDRA_INT(this[0x1d]) + iVar3 * 4)),&g_vectorZero,&g_vectorZero,
|
|
GHIDRA_CAST<ANM2 *>(this[0x1b]));
|
|
}
|
|
BVar4 = this[0x24];
|
|
if (((BVar4 != (Backdrop)0x0) && (-1 < GHIDRA_INT(BVar7))) &&
|
|
((GHIDRA_INT(BVar7) < *GHIDRA_CAST<int *>((GHIDRA_INT(this[0x23]) + 0x80)) &&
|
|
(iVar3 = *GHIDRA_CAST<int *>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) + GHIDRA_INT(BVar4))), -1 < iVar3)))) {
|
|
animation = this[0x23];
|
|
BVar2 = this[0x25];
|
|
goto LAB_00940ce6;
|
|
}
|
|
}
|
|
else {
|
|
BVar4 = this[0x24];
|
|
if ((((BVar4 != (Backdrop)0x0) && (-1 < GHIDRA_INT(BVar7))) &&
|
|
(GHIDRA_INT(BVar7) < *GHIDRA_CAST<int *>((GHIDRA_INT(this[0x23]) + 0x80)))) &&
|
|
(iVar3 = *GHIDRA_CAST<int *>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) + GHIDRA_INT(BVar4))), -1 < iVar3)) {
|
|
AnimationLayer::RenderFrame
|
|
(GHIDRA_CAST<AnimationLayer *>((iVar3 * 0x10 + *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(BVar4) + 0x18)))),local_138,
|
|
*GHIDRA_CAST<int *>((GHIDRA_INT(this[0x25]) + iVar3 * 4)),&g_vectorZero,&g_vectorZero,
|
|
GHIDRA_CAST<ANM2 *>(this[0x23]));
|
|
}
|
|
BVar4 = this[0x1c];
|
|
if (((BVar4 != (Backdrop)0x0) && (-1 < GHIDRA_INT(BVar7))) &&
|
|
((GHIDRA_INT(BVar7) < *GHIDRA_CAST<int *>((GHIDRA_INT(this[0x1b]) + 0x80)) &&
|
|
(iVar3 = *GHIDRA_CAST<int *>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) + GHIDRA_INT(BVar4))), -1 < iVar3)))) {
|
|
animation = this[0x1b];
|
|
BVar2 = this[0x1d];
|
|
LAB_00940ce6:
|
|
AnimationLayer::RenderFrame
|
|
(GHIDRA_CAST<AnimationLayer *>((iVar3 * 0x10 + *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(BVar4) + 0x18)))),local_138,
|
|
*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(BVar2) + iVar3 * 4)),&g_vectorZero,&g_vectorZero,
|
|
GHIDRA_CAST<ANM2 *>(animation));
|
|
}
|
|
}
|
|
}
|
|
BVar7 = (Backdrop)(GHIDRA_INT(BVar7) + 1);
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) + 4;
|
|
} while (GHIDRA_UINT(BVar7) < GHIDRA_UINT(this[0x2f]));
|
|
}
|
|
DAT_00c33910 = 1;
|
|
return;
|
|
}
|
|
if (this[GHIDRA_INT(BVar7) * 0x4f + 0x6e] == (Backdrop)0x0) {
|
|
return;
|
|
}
|
|
savedBlendMode = g_graphicsManager_blendMode[0];
|
|
savedBlendMode1 = g_graphicsManager_blendMode[1];
|
|
iStack_98 = g_graphicsManager_blendMode[2];
|
|
savedBlendMode3 = g_graphicsManager_blendMode[3];
|
|
local_120[0].x = (float)g_graphicsManager_blendMode[4];
|
|
set_blend_mode(&DAT_00c798e0,1);
|
|
local_134[0] = GHIDRA_CAST<Backdrop *>(((float)this[0x13c8] - (float)this[0x13c6]));
|
|
local_184 = GHIDRA_CAST<Backdrop *>(((float)this[0x13c9] - (float)this[0x13c7]));
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = (GHIDRA_CAST<Room *>((g_game->_room)))->Room::GetRoomShape();
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = g_vectorOne.x * 52.0 + g_vectorOne.x * 52.0 + (float)local_134[0];
|
|
local_1d0 = (undefined1 [4])(g_vectorOne.y * 52.0 + g_vectorOne.y * 52.0 + (float)local_184);
|
|
pVVar14 = renderOffset;
|
|
render_wall_borders(renderOffset,GHIDRA_CAST<Vector *>((auStack_1d8 + 4)));
|
|
imageRefCount = (void *)0x93f3f1;
|
|
FUN_00682260();
|
|
pBVar10 = this + 2;
|
|
local_188 = pBVar10;
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((auStack_1d8 + -0x10)))->KAGE::SmartPointer::operator_assign(pBVar10);
|
|
apply_sprite_shader_params(&color,1,pVVar14,imageRefCount);
|
|
uVar1 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0)));
|
|
if (*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 4)) + 0x10)) + 0x48)) - 9U < 4) {
|
|
if (((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x0))) == GHIDRA_CAST<Backdrop *>(0xa)) ||
|
|
((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x0))) == GHIDRA_CAST<Backdrop *>(0xc))) {
|
|
pBVar10 = GHIDRA_CAST<Backdrop *>(((float)local_184 + 104.0));
|
|
local_170 = GHIDRA_CAST<Backdrop *>(0x0);
|
|
local_180 = GHIDRA_CAST<Backdrop *>(0x0);
|
|
local_174 = GHIDRA_CAST<Backdrop *>(0x0);
|
|
local_17c = GHIDRA_CAST<Vector *>(0x0);
|
|
local_168 = GHIDRA_CAST<Backdrop *>(0x42500000);
|
|
local_178 = GHIDRA_CAST<Backdrop *>(0x42500000);
|
|
local_164.y = (float)CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_164.y)) + 0x1))),1);
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) = pBVar10;
|
|
local_16c = pBVar10;
|
|
local_164.x = (float)pBVar10;
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>((local_1cc + 0xc)))))->KColor::SetFromARGB(0xffffffff);
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = GHIDRA_CAST<Backdrop *>(0x42500000);
|
|
local_1d0 = (undefined1 [4])pBVar10;
|
|
render_quad_set_rect(wallQuad,renderOffset,GHIDRA_CAST<Vector *>((auStack_1d8 + 4)),color_00);
|
|
(**(code **)(*GHIDRA_CAST<int *>(*local_188) + 0x14))();
|
|
iVar3 = extraout_ECX_00;
|
|
}
|
|
else {
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) = (float)local_184 + 104.0;
|
|
iVar3 = extraout_ECX;
|
|
}
|
|
fVar8 = 0.0;
|
|
if ((GHIDRA_CAST<Backdrop *>(uVar1) == GHIDRA_CAST<Backdrop *>(&DAT_00000009)) ||
|
|
(GHIDRA_CAST<Backdrop *>(uVar1) == GHIDRA_CAST<Backdrop *>(&DAT_0000000b))) {
|
|
local_174 = GHIDRA_CAST<Backdrop *>(0x0);
|
|
pBVar9 = GHIDRA_CAST<Backdrop *>(((float)local_134[0] + 52.0));
|
|
local_178 = GHIDRA_CAST<Backdrop *>(((float)local_134[0] + 104.0));
|
|
local_17c = GHIDRA_CAST<Vector *>(0x0);
|
|
local_164.y = (float)CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_164.y)) + 0x1))),1);
|
|
pBVar10 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x8)));
|
|
local_180 = pBVar9;
|
|
local_170 = pBVar9;
|
|
local_16c = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x8)));
|
|
local_168 = local_178;
|
|
local_164.x = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((float)local_1cc)) + 0x8)));
|
|
local_144 = pBVar9;
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>((local_1cc + 0xc)))))->KColor::SetFromARGB(0xffffffff);
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = GHIDRA_CAST<Backdrop *>(0x42500000);
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = (float)pBVar9 + renderOffset->x;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = renderOffset->y + fVar8;
|
|
local_1d0 = (undefined1 [4])pBVar10;
|
|
render_quad_set_rect(wallQuad,GHIDRA_CAST<Vector *>(local_1cc),GHIDRA_CAST<Vector *>((auStack_1d8 + 4)),color_01);
|
|
(**(code **)(*GHIDRA_CAST<int *>(*local_188) + 0x14))();
|
|
iVar3 = extraout_ECX_01;
|
|
if (GHIDRA_CAST<Backdrop *>(uVar1) != GHIDRA_CAST<Backdrop *>(&DAT_0000000b)) goto LAB_0093f60b;
|
|
LAB_0093f61d:
|
|
local_170 = GHIDRA_CAST<Backdrop *>(0x42500000);
|
|
local_180 = GHIDRA_CAST<Backdrop *>(0x42500000);
|
|
local_174 = GHIDRA_CAST<Backdrop *>(0x0);
|
|
local_17c = GHIDRA_CAST<Vector *>(0x0);
|
|
local_164.x = 52.0;
|
|
local_16c = GHIDRA_CAST<Backdrop *>(0x42500000);
|
|
local_164.y = (float)CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_164.y)) + 0x1))),1);
|
|
local_178 = local_144;
|
|
local_168 = local_144;
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>((local_1cc + 0xc)))))->KColor::SetFromARGB(0xffffffff);
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = local_134[0];
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = renderOffset->x + 52.0;
|
|
local_1d0 = (undefined1 [4])0x42500000;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = renderOffset->y + 0.0;
|
|
render_quad_set_rect(wallQuad,GHIDRA_CAST<Vector *>(local_1cc),GHIDRA_CAST<Vector *>((auStack_1d8 + 4)),color_02);
|
|
(**(code **)(*GHIDRA_CAST<int *>(*local_188) + 0x14))();
|
|
iVar3 = extraout_ECX_02;
|
|
}
|
|
else {
|
|
local_144 = GHIDRA_CAST<Backdrop *>(((float)local_134[0] + 52.0));
|
|
LAB_0093f60b:
|
|
if (GHIDRA_CAST<Backdrop *>(uVar1) == GHIDRA_CAST<Backdrop *>(0xc)) goto LAB_0093f61d;
|
|
}
|
|
if ((GHIDRA_CAST<Backdrop *>(uVar1) == GHIDRA_CAST<Backdrop *>(&DAT_00000009)) || (GHIDRA_CAST<Backdrop *>(uVar1) == GHIDRA_CAST<Backdrop *>(0xa)))
|
|
{
|
|
pBVar10 = GHIDRA_CAST<Backdrop *>(((float)local_184 + 52.0));
|
|
local_170 = GHIDRA_CAST<Backdrop *>(0x42500000);
|
|
local_180 = GHIDRA_CAST<Backdrop *>(0x42500000);
|
|
local_164.x = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((float)local_1cc)) + 0x8)));
|
|
local_16c = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x8)));
|
|
local_164.y = (float)CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_164.y)) + 0x1))),1);
|
|
local_17c = GHIDRA_CAST<Vector *>(pBVar10);
|
|
local_178 = local_144;
|
|
local_174 = pBVar10;
|
|
local_168 = local_144;
|
|
local_134[3] = pBVar10;
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>((local_1cc + 0xc)))))->KColor::SetFromARGB(0xffffffff);
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = local_134[0];
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = renderOffset->x + 52.0;
|
|
local_1d0 = (undefined1 [4])0x42500000;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = (float)pBVar10 + renderOffset->y;
|
|
render_quad_set_rect(wallQuad,GHIDRA_CAST<Vector *>(local_1cc),GHIDRA_CAST<Vector *>((auStack_1d8 + 4)),color_03);
|
|
(**(code **)(*GHIDRA_CAST<int *>(*local_188) + 0x14))();
|
|
if (GHIDRA_CAST<Backdrop *>(uVar1) == GHIDRA_CAST<Backdrop *>(&DAT_00000009)) {
|
|
fVar8 = (float)local_184 * 0.5;
|
|
local_170 = GHIDRA_CAST<Backdrop *>(0x0);
|
|
local_180 = GHIDRA_CAST<Backdrop *>(0x0);
|
|
local_168 = GHIDRA_CAST<Backdrop *>(0x42500000);
|
|
local_178 = GHIDRA_CAST<Backdrop *>(0x42500000);
|
|
local_164.x = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((float)local_1cc)) + 0x8)));
|
|
local_16c = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x8)));
|
|
local_164.y = (float)CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_164.y)) + 0x1))),1);
|
|
local_184 = GHIDRA_CAST<Backdrop *>(fVar8);
|
|
local_17c = GHIDRA_CAST<Vector *>(fVar8);
|
|
local_174 = GHIDRA_CAST<Backdrop *>(fVar8);
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>((local_1cc + 0xc)))))->KColor::SetFromARGB(0xffffffff);
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = 52.0;
|
|
local_1d0 = (undefined1 [4])(fVar8 + 104.0);
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = renderOffset->x + 0.0;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = fVar8 + renderOffset->y;
|
|
render_quad_set_rect(wallQuad,GHIDRA_CAST<Vector *>(local_1cc),GHIDRA_CAST<Vector *>((auStack_1d8 + 4)),color_04);
|
|
(**(code **)(*GHIDRA_CAST<int *>(*local_188) + 0x14))();
|
|
pBVar10 = GHIDRA_CAST<Backdrop *>((local_140.x * 0.5));
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0xc))) = 0.0;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = 0.0;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) = (float)pBVar10 + 52.0;
|
|
pBStack_1ac = GHIDRA_CAST<Backdrop *>(CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(pBStack_1ac)) + 0x1))),1));
|
|
local_188 = GHIDRA_CAST<Backdrop *>(0x0);
|
|
local_180 = GHIDRA_CAST<Backdrop *>(0x0);
|
|
local_16c = pBStack_1ac;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = pBVar10;
|
|
pBStack_1bc = pBVar10;
|
|
pBStack_1b8 = unaff_ESI;
|
|
pBStack_1b4 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x8)));
|
|
pBStack_1b0 = unaff_ESI;
|
|
pVStack_18c = GHIDRA_CAST<Vector *>(pBVar10);
|
|
local_184 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x8)));
|
|
local_17c = GHIDRA_CAST<Vector *>(pBVar10);
|
|
local_174 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x8)));
|
|
local_170 = unaff_ESI;
|
|
local_140.x = (float)pBVar10;
|
|
local_134[0] = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x8)));
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>(local_1cc))))->KColor::SetFromARGB(0xffffffff);
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x0))) = (float)pBVar10 + renderOffset->x;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = renderOffset->y + 0.0;
|
|
render_quad_set_rect(auStack_8c,GHIDRA_CAST<Vector *>(auStack_1d8),GHIDRA_CAST<Vector *>((auStack_1d8 + -8)),color_05)
|
|
;
|
|
pfVar15 = extraout_EAX;
|
|
pfVar17 = &local_120[0].y;
|
|
for (iVar3 = 0x1c; iVar3 != 0; iVar3 = iVar3 + -1) {
|
|
*pfVar17 = *pfVar15;
|
|
pfVar15 = pfVar15 + 1;
|
|
pfVar17 = pfVar17 + 1;
|
|
}
|
|
(**(code **)(*GHIDRA_CAST<int *>(*pBStack_194) + 0x14))();
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) = (float)pBStack_19c + 52.0;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x0))) = 52.0;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = pBStack_19c;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = pBStack_19c;
|
|
local_1d0 = (undefined1 [4])local_140.x;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = 52.0;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0xc))) = local_140.x;
|
|
pBStack_198 = GHIDRA_CAST<Backdrop *>(0x42500000);
|
|
pBStack_194 = pBStack_19c;
|
|
pBStack_190 = GHIDRA_CAST<Backdrop *>(local_140.x);
|
|
pVStack_18c = GHIDRA_CAST<Vector *>(pBStack_19c);
|
|
pBStack_1b8 = GHIDRA_CAST<Backdrop *>(CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(pBStack_1b8)) + 0x1))),1));
|
|
local_188 = GHIDRA_CAST<Backdrop *>(0x42500000);
|
|
local_180 = GHIDRA_CAST<Backdrop *>(local_140.x);
|
|
local_178 = pBStack_1b8;
|
|
pBStack_1bc = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x8)));
|
|
local_184 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x8)));
|
|
local_17c = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Vector *>(local_1cc))) + 0x8)));
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>(auStack_1d8))))->KColor::SetFromARGB(0xffffffff);
|
|
render_quad_set_rect
|
|
(&iStack_98,GHIDRA_CAST<Vector *>((auStack_1d8 + -0xc)),GHIDRA_CAST<Vector *>((auStack_1d8 + -0x14)),
|
|
color_06);
|
|
puVar5 = extraout_EAX_00;
|
|
ppBVar6 = local_134 + 3;
|
|
for (iVar3 = 0x1c; iVar3 != 0; iVar3 = iVar3 + -1) {
|
|
*ppBVar6 = GHIDRA_CAST<Backdrop *>(*puVar5);
|
|
puVar5 = puVar5 + 1;
|
|
ppBVar6 = ppBVar6 + 1;
|
|
}
|
|
(**(code **)(*GHIDRA_CAST<int *>(*pBStack_1a0) + 0x14))(&pBStack_198,local_134 + 3,g_drawRectUnset);
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = VStack_14c.x;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x0))) = GHIDRA_CAST<Backdrop *>(0x0);
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = local_168;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = GHIDRA_CAST<Backdrop *>(0x42500000);
|
|
local_1d0 = (undefined1 [4])0x42500000;
|
|
local_1cc[8] = 1;
|
|
pBStack_1a4 = GHIDRA_CAST<Backdrop *>(VStack_14c.x);
|
|
pBStack_1a0 = GHIDRA_CAST<Backdrop *>(0x0);
|
|
pBStack_19c = local_168;
|
|
pBStack_198 = GHIDRA_CAST<Backdrop *>(0x0);
|
|
pBStack_194 = GHIDRA_CAST<Backdrop *>(VStack_14c.x);
|
|
pBStack_190 = GHIDRA_CAST<Backdrop *>(0x42500000);
|
|
pVStack_18c = GHIDRA_CAST<Vector *>(local_168);
|
|
local_188 = GHIDRA_CAST<Backdrop *>(0x42500000);
|
|
local_184 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x8)));
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>((auStack_1d8 + -0xc)))))->KColor::SetFromARGB(0xffffffff);
|
|
}
|
|
else {
|
|
if (GHIDRA_CAST<Backdrop *>(uVar1) != GHIDRA_CAST<Backdrop *>(0xa)) {
|
|
iVar3 = extraout_ECX_03;
|
|
goto LAB_0093ff6f;
|
|
}
|
|
local_178 = GHIDRA_CAST<Backdrop *>(((float)local_134[0] + 104.0));
|
|
fVar8 = (float)local_184 * 0.5;
|
|
local_170 = local_144;
|
|
local_180 = local_144;
|
|
local_164.x = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((float)local_1cc)) + 0x8)));
|
|
local_16c = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x8)));
|
|
local_164.y = (float)CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_164.y)) + 0x1))),1);
|
|
pBVar10 = local_144;
|
|
local_184 = GHIDRA_CAST<Backdrop *>(fVar8);
|
|
local_17c = GHIDRA_CAST<Vector *>(fVar8);
|
|
local_174 = GHIDRA_CAST<Backdrop *>(fVar8);
|
|
local_168 = local_178;
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>((local_1cc + 0xc)))))->KColor::SetFromARGB(0xffffffff);
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = 52.0;
|
|
local_1d0 = (undefined1 [4])(fVar8 + 104.0);
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = (float)pBVar10 + renderOffset->x;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = fVar8 + renderOffset->y;
|
|
render_quad_set_rect(wallQuad,GHIDRA_CAST<Vector *>(local_1cc),GHIDRA_CAST<Vector *>((auStack_1d8 + 4)),color_07);
|
|
(**(code **)(*GHIDRA_CAST<int *>(*local_188) + 0x14))();
|
|
local_140.x = local_140.x * 0.5;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0xc))) = 0.0;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = 0.0;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) = local_140.x + 104.0;
|
|
pBVar10 = GHIDRA_CAST<Backdrop *>((local_140.x + 52.0));
|
|
pBStack_1ac = GHIDRA_CAST<Backdrop *>(CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(pBStack_1ac)) + 0x1))),1));
|
|
local_188 = GHIDRA_CAST<Backdrop *>(0x0);
|
|
local_180 = GHIDRA_CAST<Backdrop *>(0x0);
|
|
local_16c = pBStack_1ac;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = pBVar10;
|
|
pBStack_1bc = pBVar10;
|
|
pBStack_1b8 = unaff_ESI;
|
|
pBStack_1b4 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x8)));
|
|
pBStack_1b0 = unaff_ESI;
|
|
pVStack_18c = GHIDRA_CAST<Vector *>(pBVar10);
|
|
local_184 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x8)));
|
|
local_17c = GHIDRA_CAST<Vector *>(pBVar10);
|
|
local_174 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x8)));
|
|
local_170 = unaff_ESI;
|
|
local_134[0] = pBVar10;
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>(local_1cc))))->KColor::SetFromARGB(0xffffffff);
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x0))) = (float)pBVar10 + renderOffset->x;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = renderOffset->y + 0.0;
|
|
render_quad_set_rect(auStack_8c,GHIDRA_CAST<Vector *>(auStack_1d8),GHIDRA_CAST<Vector *>((auStack_1d8 + -8)),color_08)
|
|
;
|
|
pfVar15 = extraout_EAX_02;
|
|
pfVar17 = &local_120[0].y;
|
|
for (iVar3 = 0x1c; iVar3 != 0; iVar3 = iVar3 + -1) {
|
|
*pfVar17 = *pfVar15;
|
|
pfVar15 = pfVar15 + 1;
|
|
pfVar17 = pfVar17 + 1;
|
|
}
|
|
(**(code **)(*GHIDRA_CAST<int *>(*pBStack_194) + 0x14))();
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) = (float)pBStack_19c + 52.0;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x0))) = local_140.x;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = pBStack_19c;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = pBStack_19c;
|
|
local_1d0 = (undefined1 [4])pBStack_15c;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = local_140.x;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0xc))) = pBStack_15c;
|
|
pBStack_198 = GHIDRA_CAST<Backdrop *>(local_140.x);
|
|
pBStack_194 = pBStack_19c;
|
|
pBStack_190 = pBStack_15c;
|
|
pVStack_18c = GHIDRA_CAST<Vector *>(pBStack_19c);
|
|
pBStack_1b8 = GHIDRA_CAST<Backdrop *>(CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(pBStack_1b8)) + 0x1))),1));
|
|
local_188 = GHIDRA_CAST<Backdrop *>(local_140.x);
|
|
local_180 = pBStack_15c;
|
|
local_178 = pBStack_1b8;
|
|
pBStack_1bc = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x8)));
|
|
local_184 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x8)));
|
|
local_17c = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Vector *>(local_1cc))) + 0x8)));
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>(auStack_1d8))))->KColor::SetFromARGB(0xffffffff);
|
|
render_quad_set_rect
|
|
(&iStack_98,GHIDRA_CAST<Vector *>((auStack_1d8 + -0xc)),GHIDRA_CAST<Vector *>((auStack_1d8 + -0x14)),
|
|
color_09);
|
|
puVar5 = extraout_EAX_03;
|
|
ppBVar6 = local_134 + 3;
|
|
for (iVar3 = 0x1c; iVar3 != 0; iVar3 = iVar3 + -1) {
|
|
*ppBVar6 = GHIDRA_CAST<Backdrop *>(*puVar5);
|
|
puVar5 = puVar5 + 1;
|
|
ppBVar6 = ppBVar6 + 1;
|
|
}
|
|
(**(code **)(*GHIDRA_CAST<int *>(*pBStack_1a0) + 0x14))(&pBStack_198,local_134 + 3,g_drawRectUnset);
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = GHIDRA_CAST<Backdrop *>(0x42500000);
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x0))) = GHIDRA_CAST<Backdrop *>(0x0);
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = VStack_14c.x;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = GHIDRA_CAST<Backdrop *>(0x42500000);
|
|
local_1d0 = (undefined1 [4])0x42500000;
|
|
pBStack_1a4 = GHIDRA_CAST<Backdrop *>(0x42500000);
|
|
pBStack_1a0 = GHIDRA_CAST<Backdrop *>(0x0);
|
|
pBStack_19c = GHIDRA_CAST<Backdrop *>(VStack_14c.x);
|
|
pBStack_198 = GHIDRA_CAST<Backdrop *>(0x0);
|
|
local_1cc[8] = 1;
|
|
pBStack_194 = GHIDRA_CAST<Backdrop *>(0x42500000);
|
|
pBStack_190 = GHIDRA_CAST<Backdrop *>(0x42500000);
|
|
pVStack_18c = GHIDRA_CAST<Vector *>(VStack_14c.x);
|
|
local_188 = GHIDRA_CAST<Backdrop *>(0x42500000);
|
|
local_184 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x8)));
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>((auStack_1d8 + -0xc)))))->KColor::SetFromARGB(0xffffffff);
|
|
}
|
|
color_20 = GHIDRA_CAST<KColor *>((auStack_1d8 + -0xc));
|
|
pVVar14 = aVStackY_610 + 0x83;
|
|
position = GHIDRA_CAST<Vector *>((auStack_1d8 + -0x18));
|
|
}
|
|
else {
|
|
local_134[3] = GHIDRA_CAST<Backdrop *>(((float)local_184 + 52.0));
|
|
LAB_0093ff6f:
|
|
if (GHIDRA_CAST<Backdrop *>(uVar1) == GHIDRA_CAST<Backdrop *>(&DAT_0000000b)) {
|
|
pBVar10 = GHIDRA_CAST<Backdrop *>(((float)local_134[0] * 0.5));
|
|
fVar8 = (float)local_184 * 0.5;
|
|
local_164.y = (float)CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_164.y)) + 0x1))),1);
|
|
local_178 = GHIDRA_CAST<Backdrop *>(((float)pBVar10 + 52.0));
|
|
local_164.x = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((float)local_1cc)) + 0x8)));
|
|
local_16c = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x8)));
|
|
local_184 = GHIDRA_CAST<Backdrop *>(fVar8);
|
|
local_180 = pBVar10;
|
|
local_17c = GHIDRA_CAST<Vector *>(fVar8);
|
|
local_174 = GHIDRA_CAST<Backdrop *>(fVar8);
|
|
local_170 = pBVar10;
|
|
local_168 = local_178;
|
|
local_134[0] = pBVar10;
|
|
local_134[2] = local_178;
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>((local_1cc + 0xc)))))->KColor::SetFromARGB(0xffffffff);
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = 52.0;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = fVar8 + 104.0;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = (float)pBVar10 + renderOffset->x;
|
|
local_1d0 = (undefined1 [4])(fVar8 + renderOffset->y);
|
|
render_quad_set_rect(wallQuad,GHIDRA_CAST<Vector *>((auStack_1d8 + 4)),GHIDRA_CAST<Vector *>(local_1cc),color_10);
|
|
(**(code **)(*GHIDRA_CAST<int *>(*local_188) + 0x14))();
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = 0.0;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0xc))) = 0.0;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = 0.0;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) = 52.0;
|
|
pBStack_1bc = GHIDRA_CAST<Backdrop *>(0x0);
|
|
pBStack_1b4 = GHIDRA_CAST<Backdrop *>(0x42500000);
|
|
pBStack_1b0 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(auStack_1d8))) + 0x4)));
|
|
pBStack_1b8 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(auStack_1d8))) + 0x4)));
|
|
pVStack_18c = GHIDRA_CAST<Vector *>(0x0);
|
|
local_188 = GHIDRA_CAST<Backdrop *>(0x0);
|
|
local_184 = GHIDRA_CAST<Backdrop *>(0x42500000);
|
|
local_180 = GHIDRA_CAST<Backdrop *>(0x0);
|
|
pBStack_1ac = GHIDRA_CAST<Backdrop *>(CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(pBStack_1ac)) + 0x1))),1));
|
|
local_17c = GHIDRA_CAST<Vector *>(0x0);
|
|
local_178 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(auStack_1d8))) + 0x4)));
|
|
local_174 = GHIDRA_CAST<Backdrop *>(0x42500000);
|
|
local_170 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(auStack_1d8))) + 0x4)));
|
|
local_16c = pBStack_1ac;
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>(local_1cc))))->KColor::SetFromARGB(0xffffffff);
|
|
VStack_14c.x = renderOffset->x + 0.0;
|
|
pBVar10 = GHIDRA_CAST<Backdrop *>(0x42500000);
|
|
VStack_14c.y = renderOffset->y + 0.0;
|
|
render_quad_set_rect(auStack_8c,&VStack_14c,GHIDRA_CAST<Vector *>((auStack_1d8 + -8)),color_11);
|
|
pfVar15 = extraout_EAX_04;
|
|
pfVar17 = &local_120[0].y;
|
|
for (iVar3 = 0x1c; iVar3 != 0; iVar3 = iVar3 + -1) {
|
|
*pfVar17 = *pfVar15;
|
|
pfVar15 = pfVar15 + 1;
|
|
pfVar17 = pfVar17 + 1;
|
|
}
|
|
(**(code **)(*GHIDRA_CAST<int *>(*pBStack_194) + 0x14))();
|
|
fVar8 = (float)pBStack_19c + 52.0;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0xc))) = local_144;
|
|
local_1d0 = (undefined1 [4])local_144;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x0))) = 52.0;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = 52.0;
|
|
pBStack_198 = GHIDRA_CAST<Backdrop *>(0x42500000);
|
|
pBStack_190 = local_144;
|
|
pBStack_1b8 = GHIDRA_CAST<Backdrop *>(CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(pBStack_1b8)) + 0x1))),1));
|
|
local_188 = GHIDRA_CAST<Backdrop *>(0x42500000);
|
|
local_180 = local_144;
|
|
local_178 = pBStack_1b8;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = fVar8;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = fVar8;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) = pBVar10;
|
|
pBStack_1bc = pBVar10;
|
|
pBStack_194 = GHIDRA_CAST<Backdrop *>(fVar8);
|
|
pVStack_18c = GHIDRA_CAST<Vector *>(fVar8);
|
|
local_184 = pBVar10;
|
|
local_17c = GHIDRA_CAST<Vector *>(pBVar10);
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>(auStack_1d8))))->KColor::SetFromARGB(0xffffffff);
|
|
VStack_158.x = VStack_14c.x;
|
|
VStack_158.y = 52.0;
|
|
pBVar10 = GHIDRA_CAST<Backdrop *>((fVar8 + (float)pBStack_150[1]));
|
|
render_quad_set_rect(&iStack_98,GHIDRA_CAST<Vector *>((auStack_1d8 + -0x14)),&VStack_158,color_12);
|
|
puVar5 = extraout_EAX_05;
|
|
ppBVar6 = local_134 + 3;
|
|
for (iVar3 = 0x1c; iVar3 != 0; iVar3 = iVar3 + -1) {
|
|
*ppBVar6 = GHIDRA_CAST<Backdrop *>(*puVar5);
|
|
puVar5 = puVar5 + 1;
|
|
ppBVar6 = ppBVar6 + 1;
|
|
}
|
|
(**(code **)(*GHIDRA_CAST<int *>(*pBStack_1a0) + 0x14))(&pBStack_198,local_134 + 3,g_drawRectUnset);
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = pBStack_150;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x0))) = VStack_14c.x;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = local_168;
|
|
local_1cc[8] = 1;
|
|
pBStack_1a4 = pBStack_150;
|
|
pBStack_1a0 = GHIDRA_CAST<Backdrop *>(VStack_14c.x);
|
|
pBStack_19c = local_168;
|
|
pBStack_198 = GHIDRA_CAST<Backdrop *>(VStack_14c.x);
|
|
pBStack_194 = pBStack_150;
|
|
pVStack_18c = GHIDRA_CAST<Vector *>(local_168);
|
|
local_184 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x8)));
|
|
local_1d0 = (undefined1 [4])pBVar10;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = pBVar10;
|
|
pBStack_190 = pBVar10;
|
|
local_188 = pBVar10;
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>((auStack_1d8 + -0xc)))))->KColor::SetFromARGB(0xffffffff);
|
|
local_164.x = VStack_158.x;
|
|
local_164.y = 52.0;
|
|
pVVar14 = &local_164;
|
|
position = aVStackY_610 + 0x83;
|
|
color_20 = extraout_ECX_04;
|
|
}
|
|
else {
|
|
if (GHIDRA_CAST<Backdrop *>(uVar1) != GHIDRA_CAST<Backdrop *>(0xc)) goto LAB_00940b5f;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = (float)local_134[0] * 0.5;
|
|
fVar8 = (float)local_184 * 0.5;
|
|
local_164.y = (float)CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_164.y)) + 0x1))),1);
|
|
local_178 = GHIDRA_CAST<Backdrop *>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((float)local_1cc)) + 0x0))) + 104.0));
|
|
pBVar10 = GHIDRA_CAST<Backdrop *>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((float)local_1cc)) + 0x0))) + 52.0));
|
|
local_164.x = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((float)local_1cc)) + 0x8)));
|
|
local_16c = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x8)));
|
|
local_184 = GHIDRA_CAST<Backdrop *>(fVar8);
|
|
local_180 = pBVar10;
|
|
local_17c = GHIDRA_CAST<Vector *>(fVar8);
|
|
local_174 = GHIDRA_CAST<Backdrop *>(fVar8);
|
|
local_170 = pBVar10;
|
|
local_168 = local_178;
|
|
local_134[2] = pBVar10;
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>((local_1cc + 0xc)))))->KColor::SetFromARGB(0xffffffff);
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = 52.0;
|
|
local_1d0 = (undefined1 [4])(fVar8 + 104.0);
|
|
local_140.x = (float)pBVar10 + renderOffset->x;
|
|
local_140.y = fVar8 + renderOffset->y;
|
|
render_quad_set_rect(wallQuad,&local_140,GHIDRA_CAST<Vector *>((auStack_1d8 + 4)),color_13);
|
|
pfVar16 = g_drawRectUnset;
|
|
(**(code **)(*GHIDRA_CAST<int *>(*local_188) + 0x14))();
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) = local_140.x + 104.0;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = pBStack_150;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0xc))) = 0.0;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = 0.0;
|
|
pBStack_1bc = pBStack_150;
|
|
pVStack_18c = GHIDRA_CAST<Vector *>(pBStack_150);
|
|
local_188 = GHIDRA_CAST<Backdrop *>(0x0);
|
|
local_180 = GHIDRA_CAST<Backdrop *>(0x0);
|
|
pBStack_1ac = GHIDRA_CAST<Backdrop *>(CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(pBStack_1ac)) + 0x1))),1));
|
|
local_17c = GHIDRA_CAST<Vector *>(pBStack_150);
|
|
local_16c = pBStack_1ac;
|
|
pBVar10 = unaff_ESI;
|
|
pBVar9 = pBStack_150;
|
|
pBStack_1b8 = unaff_ESI;
|
|
pBStack_1b4 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x8)));
|
|
pBStack_1b0 = unaff_ESI;
|
|
local_184 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x8)));
|
|
local_174 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x8)));
|
|
local_170 = unaff_ESI;
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>(local_1cc))))->KColor::SetFromARGB(0xffffffff);
|
|
VStack_14c.x = 52.0;
|
|
local_140.x = (float)pBVar9 + renderOffset->x;
|
|
local_140.y = renderOffset->y + 0.0;
|
|
VStack_14c.y = (float)pBVar10;
|
|
render_quad_set_rect(auStack_8c,&local_140,&VStack_14c,color_14);
|
|
pBVar10 = GHIDRA_CAST<Backdrop *>(&local_120[0].y);
|
|
pfVar15 = extraout_EAX_06;
|
|
pfVar17 = &local_120[0].y;
|
|
for (iVar3 = 0x1c; iVar3 != 0; iVar3 = iVar3 + -1) {
|
|
*pfVar17 = *pfVar15;
|
|
pfVar15 = pfVar15 + 1;
|
|
pfVar17 = pfVar17 + 1;
|
|
}
|
|
pfVar15 = g_drawRectUnset;
|
|
(**(code **)(*GHIDRA_CAST<int *>(*pBStack_194) + 0x14))();
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0xc))) = local_144;
|
|
local_1d0 = (undefined1 [4])local_144;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x0))) = 52.0;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = local_140.x;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = local_140.x;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = 52.0;
|
|
pBStack_198 = GHIDRA_CAST<Backdrop *>(0x42500000);
|
|
pBStack_194 = GHIDRA_CAST<Backdrop *>(local_140.x);
|
|
pBStack_190 = local_144;
|
|
pVStack_18c = GHIDRA_CAST<Vector *>(local_140.x);
|
|
pBStack_1b8 = GHIDRA_CAST<Backdrop *>(CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(pBStack_1b8)) + 0x1))),1));
|
|
local_188 = GHIDRA_CAST<Backdrop *>(0x42500000);
|
|
local_180 = local_144;
|
|
local_178 = pBStack_1b8;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) = unaff_ESI;
|
|
pBStack_1bc = unaff_ESI;
|
|
local_17c = GHIDRA_CAST<Vector *>(unaff_ESI);
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>(auStack_1d8))))->KColor::SetFromARGB(0xffffffff);
|
|
VStack_158.y = 52.0;
|
|
local_140.y = local_140.x + (float)pBStack_150[1];
|
|
local_140.x = (float)*pBStack_150 + 52.0;
|
|
VStack_158.x = (float)pfVar16;
|
|
render_quad_set_rect(&iStack_98,&local_140,&VStack_158,color_15);
|
|
puVar5 = extraout_EAX_07;
|
|
ppBVar6 = local_134 + 3;
|
|
for (iVar3 = 0x1c; iVar3 != 0; iVar3 = iVar3 + -1) {
|
|
*ppBVar6 = GHIDRA_CAST<Backdrop *>(*puVar5);
|
|
puVar5 = puVar5 + 1;
|
|
ppBVar6 = ppBVar6 + 1;
|
|
}
|
|
(**(code **)(*GHIDRA_CAST<int *>(*pBStack_1a0) + 0x14))(&pBStack_198,local_134 + 3,g_drawRectUnset);
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x0))) = fStack_1a8 + 52.0;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = pBStack_150;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = local_168;
|
|
pBStack_1a4 = pBStack_150;
|
|
pBStack_19c = local_168;
|
|
local_1cc[8] = 1;
|
|
pBStack_194 = pBStack_150;
|
|
pVStack_18c = GHIDRA_CAST<Vector *>(local_168);
|
|
local_184 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x8)));
|
|
local_1d0 = (undefined1 [4])pBVar10;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = pBVar10;
|
|
pBStack_1a0 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(auStack_1d8))) + 0x0)));
|
|
pBStack_198 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(auStack_1d8))) + 0x0)));
|
|
pBStack_190 = pBVar10;
|
|
local_188 = pBVar10;
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>((auStack_1d8 + -0xc)))))->KColor::SetFromARGB(0xffffffff);
|
|
local_164.y = 52.0;
|
|
pVVar14 = &local_164;
|
|
position = aVStackY_610 + 0x83;
|
|
color_20 = extraout_ECX_05;
|
|
local_164.x = (float)pfVar15;
|
|
}
|
|
}
|
|
render_quad_set_rect(auStack_a4,position,pVVar14,color_20);
|
|
puVar5 = extraout_EAX_01;
|
|
ppBVar6 = local_134;
|
|
for (iVar3 = 0x1c; iVar3 != 0; iVar3 = iVar3 + -1) {
|
|
*ppBVar6 = GHIDRA_CAST<Backdrop *>(*puVar5);
|
|
puVar5 = puVar5 + 1;
|
|
ppBVar6 = ppBVar6 + 1;
|
|
}
|
|
BVar7 = *pBStack_1ac;
|
|
}
|
|
else {
|
|
local_144 = GHIDRA_CAST<Backdrop *>(g_vectorZero.x);
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) = g_vectorZero.y;
|
|
if (((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x0))) == GHIDRA_CAST<Backdrop *>(0x2)) ||
|
|
((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x0))) == GHIDRA_CAST<Backdrop *>(&DAT_00000007))) {
|
|
local_144 = GHIDRA_CAST<Backdrop *>(0x0);
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) = GHIDRA_CAST<Backdrop *>(0x42500000);
|
|
local_184 = GHIDRA_CAST<Backdrop *>(((float)local_184 - 104.0));
|
|
}
|
|
else if (((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x0))) == GHIDRA_CAST<Backdrop *>(0x3)) ||
|
|
((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x0))) == GHIDRA_CAST<Backdrop *>(&DAT_00000005))) {
|
|
local_144 = GHIDRA_CAST<Backdrop *>(0x42d00000);
|
|
local_134[0] = GHIDRA_CAST<Backdrop *>(((float)local_134[0] - 208.0));
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) = GHIDRA_CAST<Backdrop *>(0x0);
|
|
}
|
|
fVar8 = (float)local_184 + 104.0;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = (float)local_144 + 52.0;
|
|
local_16c = GHIDRA_CAST<Backdrop *>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&((float)local_1cc)) + 0x8))) + fVar8));
|
|
local_164.y = (float)CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_164.y)) + 0x1))),1);
|
|
pBVar9 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x8)));
|
|
pBVar12 = local_144;
|
|
local_180 = local_144;
|
|
local_17c = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Vector *>(local_1cc))) + 0x8)));
|
|
local_178 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x0)));
|
|
local_174 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x8)));
|
|
local_170 = local_144;
|
|
local_168 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Backdrop *>(local_1cc))) + 0x0)));
|
|
local_164.x = (float)local_16c;
|
|
local_138 = GHIDRA_CAST<Vector *>(fVar8);
|
|
local_134[3] = local_16c;
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>((local_1cc + 0xc)))))->KColor::SetFromARGB(0xffffffff);
|
|
local_140.x = 52.0;
|
|
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = (float)pBVar12 + renderOffset->x;
|
|
local_1d0 = (undefined1 [4])((float)pBVar9 + renderOffset->y);
|
|
local_140.y = fVar8;
|
|
render_quad_set_rect(wallQuad,GHIDRA_CAST<Vector *>((auStack_1d8 + 4)),&local_140,color_16);
|
|
pfVar17 = g_drawRectUnset;
|
|
(**(code **)(*GHIDRA_CAST<int *>(*pBVar10) + 0x14))();
|
|
local_180 = GHIDRA_CAST<Backdrop *>(local_1d0);
|
|
local_184 = GHIDRA_CAST<Backdrop *>((local_140.x + 104.0 + (float)pBStack_150));
|
|
local_188 = GHIDRA_CAST<Backdrop *>(local_1d0);
|
|
pVStack_18c = GHIDRA_CAST<Vector *>(((float)pBStack_150 + local_140.x + 52.0));
|
|
local_16c = GHIDRA_CAST<Backdrop *>(CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_16c)) + 0x1))),1));
|
|
local_170 = local_134[0];
|
|
local_178 = local_134[0];
|
|
auVar13 = local_1d0;
|
|
local_17c = pVStack_18c;
|
|
local_174 = local_184;
|
|
local_138 = pVStack_18c;
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>(local_1cc))))->KColor::SetFromARGB(0xffffffff);
|
|
VStack_14c.y = (float)local_144;
|
|
VStack_14c.x = 52.0;
|
|
fVar8 = renderOffset->y + 0.0 + (float)auVar13;
|
|
render_quad_set_rect(&local_120[0].y,GHIDRA_CAST<Vector *>((auStack_1d8 + -8)),&VStack_14c,color_17);
|
|
pfVar15 = g_drawRectUnset;
|
|
(**(code **)(*GHIDRA_CAST<int *>(*pBVar10) + 0x14))();
|
|
local_184 = GHIDRA_CAST<Backdrop *>((fVar8 + 52.0));
|
|
local_180 = local_144;
|
|
pBStack_190 = local_144;
|
|
local_178 = GHIDRA_CAST<Backdrop *>(CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_178)) + 0x1))),1));
|
|
pBStack_198 = GHIDRA_CAST<Backdrop *>(pfVar17);
|
|
pBStack_194 = GHIDRA_CAST<Backdrop *>(fVar8);
|
|
pVStack_18c = GHIDRA_CAST<Vector *>(fVar8);
|
|
local_188 = GHIDRA_CAST<Backdrop *>(pfVar17);
|
|
local_17c = GHIDRA_CAST<Vector *>(local_184);
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>(auStack_1d8))))->KColor::SetFromARGB(0xffffffff);
|
|
VStack_158.x = VStack_14c.x;
|
|
VStack_158.y = 52.0;
|
|
fVar8 = renderOffset->y + 0.0 + fVar8;
|
|
render_quad_set_rect(local_134 + 3,GHIDRA_CAST<Vector *>((auStack_1d8 + -0x14)),&VStack_158,color_18);
|
|
(**(code **)(*GHIDRA_CAST<int *>(*pBVar10) + 0x14))(&pBStack_198,local_134 + 3,g_drawRectUnset);
|
|
pBStack_1a0 = GHIDRA_CAST<Backdrop *>((fVar8 + fStack_1a8 + 52.0));
|
|
local_184 = GHIDRA_CAST<Backdrop *>(CONCAT31((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_184)) + 0x1))),1));
|
|
pVStack_18c = GHIDRA_CAST<Vector *>(pBStack_150);
|
|
pBStack_19c = pBStack_150;
|
|
local_188 = GHIDRA_CAST<Backdrop *>(VStack_14c.x);
|
|
pBStack_190 = GHIDRA_CAST<Backdrop *>(VStack_14c.x);
|
|
pBStack_1a4 = GHIDRA_CAST<Backdrop *>(pfVar15);
|
|
pBStack_198 = pBStack_1a0;
|
|
pBStack_194 = GHIDRA_CAST<Backdrop *>(pfVar15);
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>((auStack_1d8 + -0xc)))))->KColor::SetFromARGB(0xffffffff);
|
|
local_164.x = VStack_158.x;
|
|
local_164.y = 52.0;
|
|
render_quad_set_rect(local_134,aVStackY_610 + 0x83,&local_164,color_19);
|
|
BVar7 = *pBVar10;
|
|
}
|
|
(**(code **)(*GHIDRA_CAST<int *>(BVar7) + 0x14))(&pBStack_1a4,local_134,g_drawRectUnset);
|
|
iVar3 = extraout_ECX_06;
|
|
LAB_00940b5f:
|
|
g_graphicsManager_blendMode[0] = savedBlendMode;
|
|
g_graphicsManager_blendMode[1] = savedBlendMode1;
|
|
g_graphicsManager_blendMode[2] = iStack_98;
|
|
g_graphicsManager_blendMode[3] = savedBlendMode3;
|
|
g_graphicsManager_blendMode[4] = GHIDRA_INT(local_120[0].x);
|
|
shader_cache_find(iVar3);
|
|
return;
|
|
}
|
|
|
|
// 00940d30
|
|
void Backdrop::RenderWater(Vector *renderOffset)
|
|
{
|
|
int iVar1;
|
|
float *vertexField;
|
|
int savedBlendMode0;
|
|
KColor *color;
|
|
int vertexLeft;
|
|
KColor *color_00;
|
|
KColor *color_01;
|
|
KColor *color_02;
|
|
KColor *color_03;
|
|
KColor *color_04;
|
|
KColor *color_05;
|
|
KColor *color_06;
|
|
KColor *color_07;
|
|
KColor *color_08;
|
|
KColor *color_09;
|
|
KColor *color_10;
|
|
KColor *color_11;
|
|
KColor *color_12;
|
|
KColor *color_13;
|
|
KColor *color_14;
|
|
KColor *color_15;
|
|
KColor *color_16;
|
|
KColor *color_17;
|
|
KColor *extraout_ECX;
|
|
float fVar3;
|
|
float fVar4;
|
|
float fVar5;
|
|
float fVar6;
|
|
float fVar7;
|
|
KColor *color_18;
|
|
undefined1 quadSource [116];
|
|
int savedBlendMode4;
|
|
KColor quadColor;
|
|
Vector local_7c;
|
|
Vector local_74;
|
|
Vector local_6c;
|
|
Vector local_64;
|
|
float local_5c;
|
|
DestinationQuad uvQuad;
|
|
undefined1 local_38;
|
|
Vector local_34;
|
|
Vector local_2c;
|
|
Vector local_24;
|
|
float local_1c;
|
|
float uvRight;
|
|
float uvLeft;
|
|
void *room;
|
|
int savedBlendMode0;
|
|
int savedBlendMode1;
|
|
int savedBlendMode2;
|
|
int savedBlendMode3;
|
|
|
|
savedBlendMode4 = g_graphicsManager_blendMode[4];
|
|
savedBlendMode3 = g_graphicsManager_blendMode[3];
|
|
savedBlendMode2 = g_graphicsManager_blendMode[2];
|
|
savedBlendMode1 = g_graphicsManager_blendMode[1];
|
|
savedBlendMode0 = g_graphicsManager_blendMode[0];
|
|
g_graphicsManager_blendMode[4] = 0;
|
|
g_graphicsManager_blendMode[0] = 0;
|
|
g_graphicsManager_blendMode[1] = 1;
|
|
g_graphicsManager_blendMode[2] = 0;
|
|
g_graphicsManager_blendMode[3] = 1;
|
|
uvQuad._topLeft.x = (float)g_game->_frameCount * 0.5;
|
|
if ((*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(this[GHIDRA_INT(this[0x54]) * 0x4f + 0xa3])) + 0x1))) != '\0') {
|
|
uvQuad._topLeft.x = uvQuad._topLeft.x * -1.0;
|
|
}
|
|
room = g_game->_room;
|
|
fVar7 = 104.0;
|
|
fVar6 = 182.0;
|
|
fVar3 = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(room) + 0x10));
|
|
local_7c.y = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(room) + 0xc));
|
|
local_6c.y = (float)this;
|
|
local_24.y = fVar3;
|
|
if ((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(room) + 4)) == 0) ||
|
|
(savedBlendMode0 = *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(room) + 4)) + 0x10)), savedBlendMode0 == 0)) {
|
|
savedBlendMode0 = 1;
|
|
LAB_0094130a:
|
|
fVar5 = 52.0;
|
|
local_5c = (float)(GHIDRA_INT(fVar3) + -2);
|
|
uvQuad._topRight.y = 0.0;
|
|
uvQuad._topLeft.y = 0.0;
|
|
local_38 = 1;
|
|
uvQuad._bottomLeft.y = (float)GHIDRA_INT(local_5c) * 26.0;
|
|
uvQuad._topRight.x = 52.0 - uvQuad._topLeft.x;
|
|
uvQuad._topLeft.x = -uvQuad._topLeft.x;
|
|
uvQuad._bottomLeft.x = uvQuad._topLeft.x;
|
|
uvQuad._bottomRight.x = uvQuad._topRight.x;
|
|
uvQuad._bottomRight.y = uvQuad._bottomLeft.y;
|
|
uvRight = uvQuad._topRight.x;
|
|
uvLeft = uvQuad._topLeft.x;
|
|
(GHIDRA_CAST<KColor *>((&quadColor)))->KColor::SetFromARGB(0xffffffff);
|
|
fVar7 = renderOffset->x;
|
|
fVar4 = fVar7 + fVar5;
|
|
fVar6 = (float)GHIDRA_INT(fVar3) * 26.0 + renderOffset->y;
|
|
fVar5 = renderOffset->y + fVar5;
|
|
LAB_009413ab:
|
|
local_1c = (float)GHIDRA_INT(fVar3);
|
|
render_quad_set_uniform_color(quadSource,fVar7,fVar5,fVar4,fVar6,&quadColor);
|
|
FUN_009426b0(&uvQuad,quadSource);
|
|
LAB_009413db:
|
|
if (savedBlendMode0 != 10) {
|
|
if (savedBlendMode0 != 0xc) {
|
|
if ((savedBlendMode0 == 2) || (savedBlendMode0 == 7)) {
|
|
uvQuad._bottomLeft.x = uvRight;
|
|
uvQuad._topLeft.x = uvRight;
|
|
uvQuad._topRight.y = 0.0;
|
|
uvQuad._topLeft.y = 0.0;
|
|
uvQuad._bottomRight.x = uvLeft;
|
|
uvQuad._topRight.x = uvLeft;
|
|
uvQuad._bottomRight.y = 78.0;
|
|
uvQuad._bottomLeft.y = 78.0;
|
|
local_38 = 1;
|
|
(GHIDRA_CAST<KColor *>((&quadColor)))->KColor::SetFromARGB(0xffffffff);
|
|
local_74.y = (float)GHIDRA_INT(local_7c.y);
|
|
render_quad_set_uniform_color
|
|
(quadSource,local_74.y * 26.0 + renderOffset->x,renderOffset->y + 104.0,
|
|
(float)(GHIDRA_INT(local_7c.y) + 2) * 26.0 + renderOffset->x,renderOffset->y + 182.0,
|
|
color_10);
|
|
FUN_009426b0(&uvQuad,quadSource);
|
|
local_5c = local_1c * 26.0;
|
|
}
|
|
else {
|
|
if ((savedBlendMode0 != 3) && (savedBlendMode0 != 5)) goto LAB_00941941;
|
|
fVar3 = 26.0;
|
|
uvQuad._topRight.y = 0.0;
|
|
uvQuad._topLeft.y = 0.0;
|
|
local_38 = 1;
|
|
uvQuad._bottomLeft.x = uvRight;
|
|
uvQuad._bottomLeft.y = (float)GHIDRA_INT(local_5c) * 26.0;
|
|
uvQuad._topLeft.x = uvRight;
|
|
uvQuad._bottomRight.x = uvLeft;
|
|
uvQuad._topRight.x = uvLeft;
|
|
fVar7 = local_1c;
|
|
uvQuad._bottomRight.y = uvQuad._bottomLeft.y;
|
|
(GHIDRA_CAST<KColor *>((&quadColor)))->KColor::SetFromARGB(0xffffffff);
|
|
local_5c = fVar7 * fVar3;
|
|
render_quad_set_uniform_color
|
|
(quadSource,(float)(GHIDRA_INT(local_7c.y) + -4) * fVar3 + renderOffset->x,
|
|
renderOffset->y + 52.0,(float)(GHIDRA_INT(local_7c.y) + -2) * fVar3 + renderOffset->x,
|
|
local_5c + renderOffset->y,color_09);
|
|
FUN_009426b0(&uvQuad,quadSource);
|
|
local_74.y = (float)GHIDRA_INT(local_7c.y);
|
|
}
|
|
goto LAB_00941bd2;
|
|
}
|
|
uvQuad._bottomLeft.x = uvRight;
|
|
uvQuad._topLeft.x = uvRight;
|
|
uvQuad._topRight.y = 0.0;
|
|
uvQuad._topLeft.y = 0.0;
|
|
uvQuad._bottomRight.x = uvLeft;
|
|
uvQuad._topRight.x = uvLeft;
|
|
uvQuad._bottomRight.y = 234.0;
|
|
uvQuad._bottomLeft.y = 234.0;
|
|
local_38 = 1;
|
|
(GHIDRA_CAST<KColor *>((&quadColor)))->KColor::SetFromARGB(0xffffffff);
|
|
local_74.y = (float)GHIDRA_INT(local_7c.y);
|
|
local_24.y = (float)(GHIDRA_INT(local_7c.y) + 2) * 26.0;
|
|
local_2c.y = local_74.y * 26.0;
|
|
render_quad_set_uniform_color
|
|
(quadSource,local_2c.y + renderOffset->x,renderOffset->y + 52.0,
|
|
renderOffset->x + local_24.y,renderOffset->y + 234.0,&quadColor);
|
|
FUN_009426b0(&uvQuad,quadSource);
|
|
uvQuad._topRight.y = 234.0;
|
|
uvQuad._topLeft.y = 234.0;
|
|
local_38 = 1;
|
|
uvQuad._bottomLeft.x = uvRight;
|
|
uvQuad._bottomLeft.y = (float)GHIDRA_INT(local_5c) * 26.0;
|
|
uvQuad._topLeft.x = uvRight;
|
|
uvQuad._bottomRight.x = uvLeft;
|
|
uvQuad._topRight.x = uvLeft;
|
|
uvQuad._bottomRight.y = uvQuad._bottomLeft.y;
|
|
(GHIDRA_CAST<KColor *>((&quadColor)))->KColor::SetFromARGB(0xffffffff);
|
|
local_5c = local_1c * 26.0;
|
|
render_quad_set_uniform_color
|
|
(quadSource,(local_2c.y + renderOffset->x) - 338.0,renderOffset->y + 234.0,
|
|
(renderOffset->x + local_24.y) - 338.0,local_5c + renderOffset->y,color_07);
|
|
FUN_009426b0(&uvQuad,quadSource);
|
|
fVar7 = local_74.y;
|
|
LAB_00941e21:
|
|
local_64.x = uvRight;
|
|
local_24.y = (float)(2 - GHIDRA_INT(local_7c.y));
|
|
local_34.x = uvRight;
|
|
local_34.y = 0.0;
|
|
local_74.y = 0.0;
|
|
local_2c.x = uvLeft;
|
|
local_64.y = (float)GHIDRA_INT(local_24.y) * 26.0;
|
|
local_74.x = uvLeft;
|
|
local_2c.y = local_64.y;
|
|
DestinationQuad::DestinationQuad(&uvQuad,&local_74,&local_2c,&local_34,&local_64);
|
|
local_38 = 1;
|
|
(GHIDRA_CAST<KColor *>((&quadColor)))->KColor::SetFromARGB(0xffffffff);
|
|
fVar3 = renderOffset->y;
|
|
local_74.y = fVar7 * 26.0;
|
|
fVar7 = fVar3 + 52.0;
|
|
LAB_00942022:
|
|
render_quad_set_uniform_color
|
|
(quadSource,renderOffset->x + 52.0,fVar3,renderOffset->x + local_74.y,fVar7,
|
|
&quadColor);
|
|
FUN_009426b0(&uvQuad,quadSource);
|
|
goto LAB_00942072;
|
|
}
|
|
uvQuad._bottomLeft.x = uvRight;
|
|
uvQuad._topLeft.x = uvRight;
|
|
uvQuad._topRight.y = 0.0;
|
|
uvQuad._topLeft.y = 0.0;
|
|
uvQuad._bottomRight.x = uvLeft;
|
|
uvQuad._topRight.x = uvLeft;
|
|
uvQuad._bottomRight.y = 182.0;
|
|
uvQuad._bottomLeft.y = 182.0;
|
|
local_38 = 1;
|
|
(GHIDRA_CAST<KColor *>((&quadColor)))->KColor::SetFromARGB(0xffffffff);
|
|
local_74.y = (float)GHIDRA_INT(local_7c.y) * 26.0;
|
|
local_24.y = (float)(GHIDRA_INT(local_7c.y) + 2) * 26.0;
|
|
render_quad_set_uniform_color
|
|
(quadSource,(local_74.y + renderOffset->x) - 338.0,renderOffset->y + 52.0,
|
|
(renderOffset->x + local_24.y) - 338.0,renderOffset->y + 182.0,&quadColor);
|
|
fVar7 = local_6c.y;
|
|
savedBlendMode0 = (**(code **)(*GHIDRA_CAST<int *>(*GHIDRA_CAST<Backdrop *>((GHIDRA_CAST<char *>(local_6c.y) + 0x2c))) + 0x14))
|
|
(&uvQuad,quadSource,g_drawRectUnset);
|
|
if (savedBlendMode0 != 0) {
|
|
vertexField = GHIDRA_CAST<float *>((savedBlendMode0 + 8));
|
|
savedBlendMode0 = 4;
|
|
do {
|
|
*vertexField = *vertexField + 0.04 + 0.04 + 0.04 + 0.04;
|
|
vertexField = vertexField + 9;
|
|
savedBlendMode0 = savedBlendMode0 + -1;
|
|
} while (savedBlendMode0 != 0);
|
|
}
|
|
uvQuad._topRight.y = 182.0;
|
|
uvQuad._topLeft.y = 182.0;
|
|
local_38 = 1;
|
|
uvQuad._bottomLeft.x = uvRight;
|
|
uvQuad._bottomLeft.y = (float)GHIDRA_INT(local_5c) * 26.0;
|
|
uvQuad._topLeft.x = uvRight;
|
|
uvQuad._bottomRight.x = uvLeft;
|
|
uvQuad._topRight.x = uvLeft;
|
|
uvQuad._bottomRight.y = uvQuad._bottomLeft.y;
|
|
(GHIDRA_CAST<KColor *>((&quadColor)))->KColor::SetFromARGB(0xffffffff);
|
|
local_5c = local_1c * 26.0;
|
|
render_quad_set_uniform_color
|
|
(quadSource,local_74.y + renderOffset->x,renderOffset->y + 182.0,
|
|
renderOffset->x + local_24.y,renderOffset->y + local_5c,color_04);
|
|
savedBlendMode0 = (**(code **)(*GHIDRA_CAST<int *>(*GHIDRA_CAST<Backdrop *>((GHIDRA_CAST<char *>(fVar7) + 0x2c))) + 0x14))
|
|
(&uvQuad,quadSource,g_drawRectUnset);
|
|
if (savedBlendMode0 != 0) {
|
|
vertexField = GHIDRA_CAST<float *>((savedBlendMode0 + 8));
|
|
savedBlendMode0 = 4;
|
|
do {
|
|
*vertexField = *vertexField + 0.04 + 0.04 + 0.04 + 0.04;
|
|
vertexField = vertexField + 9;
|
|
savedBlendMode0 = savedBlendMode0 + -1;
|
|
} while (savedBlendMode0 != 0);
|
|
}
|
|
local_2c.x = uvRight;
|
|
local_2c.y = -390.0;
|
|
local_24.x = uvRight;
|
|
local_24.y = 0.0;
|
|
local_6c.x = uvLeft;
|
|
local_6c.y = -390.0;
|
|
local_34.x = uvLeft;
|
|
local_34.y = 0.0;
|
|
DestinationQuad::DestinationQuad(&uvQuad,&local_34,&local_6c,&local_24,&local_2c);
|
|
local_38 = 1;
|
|
(GHIDRA_CAST<KColor *>((&quadColor)))->KColor::SetFromARGB(0xffffffff);
|
|
render_quad_set_uniform_color
|
|
(quadSource,renderOffset->x + 52.0,renderOffset->y,renderOffset->x + 390.0,
|
|
renderOffset->y + 52.0,color_05);
|
|
FUN_009426b0(&uvQuad,quadSource);
|
|
local_34.x = uvRight;
|
|
local_24.y = (float)(2 - GHIDRA_INT(local_7c.y));
|
|
local_2c.x = uvRight;
|
|
local_2c.y = 15.0;
|
|
local_6c.y = 15.0;
|
|
local_7c.x = uvLeft;
|
|
local_7c.y = (float)GHIDRA_INT(local_24.y) * 26.0;
|
|
local_6c.x = uvLeft;
|
|
local_34.y = local_7c.y;
|
|
DestinationQuad::DestinationQuad(&uvQuad,&local_6c,&local_7c,&local_2c,&local_34);
|
|
local_38 = 1;
|
|
(GHIDRA_CAST<KColor *>((&quadColor)))->KColor::SetFromARGB(0xffffffff);
|
|
render_quad_set_uniform_color
|
|
(quadSource,renderOffset->x + 390.0,renderOffset->y + 182.0,
|
|
renderOffset->x + local_74.y,renderOffset->y + 52.0 + 182.0,color_06);
|
|
FUN_009426b0(&uvQuad,quadSource);
|
|
}
|
|
else {
|
|
savedBlendMode0 = *GHIDRA_CAST<int *>((savedBlendMode0 + 0x48));
|
|
if (savedBlendMode0 == 9) {
|
|
fVar7 = 52.0;
|
|
uvQuad._topRight.y = 0.0;
|
|
uvQuad._topRight.x = 52.0 - uvQuad._topLeft.x;
|
|
uvQuad._topLeft.y = 0.0;
|
|
uvQuad._bottomRight.y = 182.0;
|
|
uvQuad._topLeft.x = -uvQuad._topLeft.x;
|
|
uvQuad._bottomLeft.y = 182.0;
|
|
local_38 = 1;
|
|
uvQuad._bottomLeft.x = uvQuad._topLeft.x;
|
|
uvQuad._bottomRight.x = uvQuad._topRight.x;
|
|
uvRight = uvQuad._topRight.x;
|
|
uvLeft = uvQuad._topLeft.x;
|
|
(GHIDRA_CAST<KColor *>((&quadColor)))->KColor::SetFromARGB(0xffffffff);
|
|
render_quad_set_uniform_color
|
|
(quadSource,renderOffset->x + 338.0,renderOffset->y + fVar7,
|
|
renderOffset->x + fVar7 + 338.0,renderOffset->y + fVar6,color);
|
|
iVar1 = (**(code **)(*GHIDRA_CAST<int *>(*GHIDRA_CAST<Backdrop *>((GHIDRA_CAST<char *>(local_6c.y) + 0x2c))) + 0x14))
|
|
(&uvQuad,quadSource,g_drawRectUnset);
|
|
if (iVar1 != 0) {
|
|
vertexLeft = 4;
|
|
vertexField = GHIDRA_CAST<float *>((iVar1 + 8));
|
|
do {
|
|
*vertexField = *vertexField + 0.04 + 0.04 + 0.04 + 0.04;
|
|
vertexField = vertexField + 9;
|
|
vertexLeft = vertexLeft + -1;
|
|
} while (vertexLeft != 0);
|
|
}
|
|
local_5c = (float)(GHIDRA_INT(local_24.y) + -2);
|
|
uvQuad._bottomLeft.x = uvLeft;
|
|
uvQuad._topLeft.x = uvLeft;
|
|
uvQuad._topRight.y = 182.0;
|
|
uvQuad._topLeft.y = 182.0;
|
|
uvQuad._bottomRight.x = uvRight;
|
|
uvQuad._bottomLeft.y = (float)GHIDRA_INT(local_5c) * 26.0;
|
|
local_38 = 1;
|
|
uvQuad._topRight.x = uvRight;
|
|
uvQuad._bottomRight.y = uvQuad._bottomLeft.y;
|
|
(GHIDRA_CAST<KColor *>((&quadColor)))->KColor::SetFromARGB(0xffffffff);
|
|
local_1c = (float)GHIDRA_INT(local_24.y);
|
|
render_quad_set_uniform_color
|
|
(quadSource,renderOffset->x,renderOffset->y + 182.0,renderOffset->x + 52.0,
|
|
local_1c * 26.0 + renderOffset->y,color_00);
|
|
iVar1 = (**(code **)(*GHIDRA_CAST<int *>(*GHIDRA_CAST<Backdrop *>((GHIDRA_CAST<char *>(local_6c.y) + 0x2c))) + 0x14))
|
|
(&uvQuad,quadSource,g_drawRectUnset);
|
|
if (iVar1 != 0) {
|
|
vertexField = GHIDRA_CAST<float *>((iVar1 + 8));
|
|
iVar1 = 4;
|
|
do {
|
|
*vertexField = *vertexField + 0.04 + 0.04 + 0.04 + 0.04;
|
|
vertexField = vertexField + 9;
|
|
iVar1 = iVar1 + -1;
|
|
} while (iVar1 != 0);
|
|
}
|
|
}
|
|
else {
|
|
if (savedBlendMode0 != 0xb) {
|
|
if ((savedBlendMode0 != 2) && (savedBlendMode0 != 7)) {
|
|
if ((savedBlendMode0 != 3) && (savedBlendMode0 != 5)) goto LAB_0094130a;
|
|
local_5c = (float)(GHIDRA_INT(fVar3) + -2);
|
|
uvQuad._topRight.x = 52.0 - uvQuad._topLeft.x;
|
|
uvQuad._topRight.y = 0.0;
|
|
uvQuad._topLeft.y = 0.0;
|
|
uvQuad._bottomLeft.y = (float)GHIDRA_INT(local_5c) * 26.0;
|
|
local_38 = 1;
|
|
uvQuad._topLeft.x = -uvQuad._topLeft.x;
|
|
uvQuad._bottomLeft.x = uvQuad._topLeft.x;
|
|
uvQuad._bottomRight.x = uvQuad._topRight.x;
|
|
uvQuad._bottomRight.y = uvQuad._bottomLeft.y;
|
|
uvRight = uvQuad._topRight.x;
|
|
uvLeft = uvQuad._topLeft.x;
|
|
(GHIDRA_CAST<KColor *>((&quadColor)))->KColor::SetFromARGB(0xffffffff);
|
|
fVar4 = renderOffset->x + 156.0;
|
|
fVar7 = renderOffset->x + fVar7;
|
|
fVar6 = (float)GHIDRA_INT(fVar3) * 26.0 + renderOffset->y;
|
|
fVar5 = renderOffset->y + 52.0;
|
|
goto LAB_009413ab;
|
|
}
|
|
uvQuad._topRight.x = 52.0 - uvQuad._topLeft.x;
|
|
uvQuad._topRight.y = 0.0;
|
|
uvQuad._topLeft.y = 0.0;
|
|
uvQuad._topLeft.x = -uvQuad._topLeft.x;
|
|
uvQuad._bottomRight.y = 78.0;
|
|
uvQuad._bottomLeft.y = 78.0;
|
|
local_38 = 1;
|
|
uvQuad._bottomLeft.x = uvQuad._topLeft.x;
|
|
uvQuad._bottomRight.x = uvQuad._topRight.x;
|
|
uvRight = uvQuad._topRight.x;
|
|
uvLeft = uvQuad._topLeft.x;
|
|
(GHIDRA_CAST<KColor *>((&quadColor)))->KColor::SetFromARGB(0xffffffff);
|
|
render_quad_set_uniform_color
|
|
(quadSource,renderOffset->x,renderOffset->y + fVar7,renderOffset->x + 52.0,
|
|
renderOffset->y + fVar6,color_03);
|
|
FUN_009426b0(&uvQuad,quadSource);
|
|
local_5c = (float)(GHIDRA_INT(local_24.y) + -2);
|
|
local_1c = (float)GHIDRA_INT(local_24.y);
|
|
goto LAB_009413db;
|
|
}
|
|
fVar7 = 52.0;
|
|
uvQuad._topRight.y = 0.0;
|
|
uvQuad._topRight.x = 52.0 - uvQuad._topLeft.x;
|
|
uvQuad._topLeft.y = 0.0;
|
|
uvQuad._bottomRight.y = 234.0;
|
|
uvQuad._topLeft.x = -uvQuad._topLeft.x;
|
|
uvQuad._bottomLeft.y = 234.0;
|
|
local_38 = 1;
|
|
uvQuad._bottomLeft.x = uvQuad._topLeft.x;
|
|
uvQuad._bottomRight.x = uvQuad._topRight.x;
|
|
uvRight = uvQuad._topRight.x;
|
|
uvLeft = uvQuad._topLeft.x;
|
|
(GHIDRA_CAST<KColor *>((&quadColor)))->KColor::SetFromARGB(0xffffffff);
|
|
render_quad_set_uniform_color
|
|
(quadSource,renderOffset->x,renderOffset->y + fVar7,renderOffset->x + fVar7,
|
|
renderOffset->y + 234.0,color_01);
|
|
FUN_009426b0(&uvQuad,quadSource);
|
|
local_5c = (float)(GHIDRA_INT(local_24.y) + -2);
|
|
uvQuad._bottomLeft.x = uvLeft;
|
|
uvQuad._topLeft.x = uvLeft;
|
|
uvQuad._topRight.y = 234.0;
|
|
uvQuad._topLeft.y = 234.0;
|
|
uvQuad._bottomRight.x = uvRight;
|
|
uvQuad._bottomLeft.y = (float)GHIDRA_INT(local_5c) * 26.0;
|
|
local_38 = 1;
|
|
uvQuad._topRight.x = uvRight;
|
|
uvQuad._bottomRight.y = uvQuad._bottomLeft.y;
|
|
(GHIDRA_CAST<KColor *>((&quadColor)))->KColor::SetFromARGB(0xffffffff);
|
|
local_1c = (float)GHIDRA_INT(local_24.y);
|
|
render_quad_set_uniform_color
|
|
(quadSource,renderOffset->x + 338.0,renderOffset->y + 234.0,
|
|
renderOffset->x + 52.0 + 338.0,local_1c * 26.0 + renderOffset->y,color_02);
|
|
FUN_009426b0(&uvQuad,quadSource);
|
|
}
|
|
LAB_00941941:
|
|
fVar7 = 26.0;
|
|
uvQuad._topRight.y = 0.0;
|
|
uvQuad._topLeft.y = 0.0;
|
|
local_38 = 1;
|
|
uvQuad._bottomLeft.x = uvRight;
|
|
uvQuad._bottomLeft.y = (float)GHIDRA_INT(local_5c) * 26.0;
|
|
uvQuad._topLeft.x = uvRight;
|
|
uvQuad._bottomRight.x = uvLeft;
|
|
uvQuad._topRight.x = uvLeft;
|
|
uvQuad._bottomRight.y = uvQuad._bottomLeft.y;
|
|
(GHIDRA_CAST<KColor *>((&quadColor)))->KColor::SetFromARGB(0xffffffff);
|
|
local_5c = local_1c * fVar7;
|
|
local_74.y = (float)GHIDRA_INT(local_7c.y);
|
|
render_quad_set_uniform_color
|
|
(quadSource,local_74.y * fVar7 + renderOffset->x,renderOffset->y + 52.0,
|
|
(float)(GHIDRA_INT(local_7c.y) + 2) * fVar7 + renderOffset->x,local_5c + renderOffset->y,
|
|
color_08);
|
|
FUN_009426b0(&uvQuad,quadSource);
|
|
LAB_00941bd2:
|
|
fVar7 = local_74.y;
|
|
fVar3 = 26.0;
|
|
local_2c.y = local_74.y;
|
|
if (savedBlendMode0 != 9) {
|
|
if ((savedBlendMode0 == 2) || (savedBlendMode0 == 7)) {
|
|
local_24.y = (float)(2 - GHIDRA_INT(local_7c.y));
|
|
local_64.x = uvRight;
|
|
local_34.x = uvRight;
|
|
local_34.y = 0.0;
|
|
local_74.y = 0.0;
|
|
local_2c.x = uvLeft;
|
|
local_64.y = (float)GHIDRA_INT(local_24.y) * 26.0;
|
|
local_74.x = uvLeft;
|
|
local_2c.y = local_64.y;
|
|
DestinationQuad::DestinationQuad(&uvQuad,&local_74,&local_2c,&local_34,&local_64);
|
|
local_38 = 1;
|
|
(GHIDRA_CAST<KColor *>((&quadColor)))->KColor::SetFromARGB(0xffffffff);
|
|
local_74.y = fVar7 * fVar3;
|
|
fVar7 = renderOffset->y + 104.0;
|
|
fVar3 = renderOffset->y + 52.0;
|
|
goto LAB_00942022;
|
|
}
|
|
if ((savedBlendMode0 != 3) && (savedBlendMode0 != 5)) goto LAB_00941e21;
|
|
local_64.x = uvRight;
|
|
local_34.x = uvRight;
|
|
local_64.y = -130.0;
|
|
local_34.y = 0.0;
|
|
local_24.x = uvLeft;
|
|
local_24.y = -130.0;
|
|
local_74.x = uvLeft;
|
|
local_74.y = 0.0;
|
|
DestinationQuad::DestinationQuad(&uvQuad,&local_74,&local_24,&local_34,&local_64);
|
|
local_38 = 1;
|
|
(GHIDRA_CAST<KColor *>((&quadColor)))->KColor::SetFromARGB(0xffffffff);
|
|
render_quad_set_uniform_color
|
|
(quadSource,renderOffset->x + 156.0,renderOffset->y,
|
|
(float)(GHIDRA_INT(local_7c.y) + -4) * fVar3 + renderOffset->x,renderOffset->y + 52.0,
|
|
color_13);
|
|
FUN_009426b0(&uvQuad,quadSource);
|
|
local_24.y = (float)(2 - GHIDRA_INT(local_7c.y));
|
|
local_74.y = local_2c.y * 26.0;
|
|
LAB_00942072:
|
|
fVar7 = 26.0;
|
|
if (savedBlendMode0 == 0xb) {
|
|
local_64.x = uvLeft;
|
|
local_64.y = -338.0;
|
|
local_34.x = uvLeft;
|
|
local_34.y = 0.0;
|
|
local_2c.x = uvRight;
|
|
local_2c.y = -338.0;
|
|
local_7c.x = uvRight;
|
|
local_7c.y = 0.0;
|
|
fVar3 = local_5c;
|
|
DestinationQuad::DestinationQuad(&uvQuad,&local_7c,&local_2c,&local_34,&local_64);
|
|
local_38 = 1;
|
|
(GHIDRA_CAST<KColor *>((&quadColor)))->KColor::SetFromARGB(0xffffffff);
|
|
local_1c = (local_1c + 2.0) * fVar7;
|
|
render_quad_set_uniform_color
|
|
(quadSource,renderOffset->x + 52.0,(fVar3 + renderOffset->y) - 182.0,
|
|
renderOffset->x + 338.0,(renderOffset->y + local_1c) - 182.0,color_14);
|
|
fVar7 = local_6c.y;
|
|
savedBlendMode0 = (**(code **)(*GHIDRA_CAST<int *>(*GHIDRA_CAST<Backdrop *>((GHIDRA_CAST<char *>(local_6c.y) + 0x2c))) + 0x14))
|
|
(&uvQuad,quadSource,g_drawRectUnset);
|
|
if (savedBlendMode0 != 0) {
|
|
vertexField = GHIDRA_CAST<float *>((savedBlendMode0 + 8));
|
|
savedBlendMode0 = 4;
|
|
do {
|
|
*vertexField = *vertexField + 0.04 + 0.04 + 0.04 + 0.04;
|
|
vertexField = vertexField + 9;
|
|
savedBlendMode0 = savedBlendMode0 + -1;
|
|
} while (savedBlendMode0 != 0);
|
|
}
|
|
local_64.y = (float)GHIDRA_INT(local_24.y);
|
|
local_34.y = 13.0;
|
|
local_24.y = 13.0;
|
|
local_64.x = uvLeft;
|
|
local_64.y = local_64.y * 26.0;
|
|
local_34.x = uvLeft;
|
|
local_2c.x = uvRight;
|
|
local_24.x = uvRight;
|
|
local_2c.y = local_64.y;
|
|
DestinationQuad::DestinationQuad(&uvQuad,&local_24,&local_2c,&local_34,&local_64);
|
|
local_38 = 1;
|
|
(GHIDRA_CAST<KColor *>((&quadColor)))->KColor::SetFromARGB(0xffffffff);
|
|
render_quad_set_uniform_color
|
|
(quadSource,renderOffset->x + 338.0,local_5c + renderOffset->y,
|
|
renderOffset->x + local_74.y,renderOffset->y + local_1c,color_15);
|
|
savedBlendMode0 = (**(code **)(*GHIDRA_CAST<int *>(*GHIDRA_CAST<Backdrop *>((GHIDRA_CAST<char *>(fVar7) + 0x2c))) + 0x14))
|
|
(&uvQuad,quadSource,g_drawRectUnset);
|
|
if (savedBlendMode0 == 0) {
|
|
g_graphicsManager_blendMode[0] = savedBlendMode0;
|
|
g_graphicsManager_blendMode[1] = savedBlendMode1;
|
|
g_graphicsManager_blendMode[2] = savedBlendMode2;
|
|
g_graphicsManager_blendMode[3] = savedBlendMode3;
|
|
g_graphicsManager_blendMode[4] = savedBlendMode4;
|
|
return;
|
|
}
|
|
vertexField = GHIDRA_CAST<float *>((savedBlendMode0 + 8));
|
|
savedBlendMode0 = 4;
|
|
do {
|
|
*vertexField = *vertexField + 0.04 + 0.04 + 0.04 + 0.04;
|
|
vertexField = vertexField + 9;
|
|
savedBlendMode0 = savedBlendMode0 + -1;
|
|
} while (savedBlendMode0 != 0);
|
|
g_graphicsManager_blendMode[0] = savedBlendMode0;
|
|
g_graphicsManager_blendMode[1] = savedBlendMode1;
|
|
g_graphicsManager_blendMode[2] = savedBlendMode2;
|
|
g_graphicsManager_blendMode[3] = savedBlendMode3;
|
|
g_graphicsManager_blendMode[4] = savedBlendMode4;
|
|
return;
|
|
}
|
|
if (savedBlendMode0 == 0xc) {
|
|
local_64.x = uvLeft;
|
|
local_64.y = -390.0;
|
|
local_34.x = uvLeft;
|
|
local_34.y = 0.0;
|
|
local_2c.x = uvRight;
|
|
local_2c.y = -390.0;
|
|
local_7c.x = uvRight;
|
|
local_7c.y = 0.0;
|
|
fVar3 = local_5c;
|
|
DestinationQuad::DestinationQuad(&uvQuad,&local_7c,&local_2c,&local_34,&local_64);
|
|
local_38 = 1;
|
|
(GHIDRA_CAST<KColor *>((&quadColor)))->KColor::SetFromARGB(0xffffffff);
|
|
local_1c = (local_1c + 2.0) * fVar7;
|
|
render_quad_set_uniform_color
|
|
(quadSource,renderOffset->x + 52.0,fVar3 + renderOffset->y,renderOffset->x + 390.0
|
|
,renderOffset->y + local_1c,color_16);
|
|
FUN_009426b0(&uvQuad,quadSource);
|
|
local_64.y = (float)GHIDRA_INT(local_24.y);
|
|
local_34.y = 15.0;
|
|
local_24.y = 15.0;
|
|
local_64.x = uvLeft;
|
|
local_64.y = local_64.y * 26.0;
|
|
local_34.x = uvLeft;
|
|
local_2c.x = uvRight;
|
|
local_24.x = uvRight;
|
|
local_2c.y = local_64.y;
|
|
DestinationQuad::DestinationQuad(&uvQuad,&local_24,&local_2c,&local_34,&local_64);
|
|
local_38 = 1;
|
|
(GHIDRA_CAST<KColor *>((&quadColor)))->KColor::SetFromARGB(0xffffffff);
|
|
fVar3 = (renderOffset->y + local_1c) - 182.0;
|
|
fVar5 = renderOffset->x + local_74.y;
|
|
fVar4 = renderOffset->x + 390.0;
|
|
fVar6 = (renderOffset->y + local_5c) - 182.0;
|
|
LAB_00942641:
|
|
color_18 = &quadColor;
|
|
}
|
|
else {
|
|
if ((savedBlendMode0 == 2) || (savedBlendMode0 == 7)) {
|
|
local_64.y = (float)GHIDRA_INT(local_24.y);
|
|
local_34.y = 0.0;
|
|
local_24.y = 0.0;
|
|
local_64.x = uvLeft;
|
|
local_64.y = local_64.y * 26.0;
|
|
local_34.x = uvLeft;
|
|
local_2c.x = uvRight;
|
|
local_24.x = uvRight;
|
|
fVar3 = local_5c;
|
|
fVar5 = local_74.y;
|
|
local_2c.y = local_64.y;
|
|
DestinationQuad::DestinationQuad(&uvQuad,&local_24,&local_2c,&local_34,&local_64);
|
|
local_38 = 1;
|
|
(GHIDRA_CAST<KColor *>((&quadColor)))->KColor::SetFromARGB(0xffffffff);
|
|
fVar4 = renderOffset->x + 52.0;
|
|
fVar5 = renderOffset->x + fVar5;
|
|
fVar3 = renderOffset->y + fVar3;
|
|
fVar6 = (local_1c - 2.0) * fVar7 + renderOffset->y;
|
|
goto LAB_00942641;
|
|
}
|
|
if ((savedBlendMode0 != 3) && (savedBlendMode0 != 5)) goto LAB_00942444;
|
|
local_64.x = uvLeft;
|
|
local_34.x = uvLeft;
|
|
local_64.y = -130.0;
|
|
local_34.y = 0.0;
|
|
local_2c.x = uvRight;
|
|
local_2c.y = -130.0;
|
|
local_24.x = uvRight;
|
|
local_24.y = 0.0;
|
|
fVar6 = local_5c;
|
|
DestinationQuad::DestinationQuad(&uvQuad,&local_24,&local_2c,&local_34,&local_64);
|
|
local_38 = 1;
|
|
(GHIDRA_CAST<KColor *>((&quadColor)))->KColor::SetFromARGB(0xffffffff);
|
|
fVar3 = (local_1c + 2.0) * fVar7 + renderOffset->y;
|
|
fVar6 = renderOffset->y + fVar6;
|
|
fVar5 = (float)(GHIDRA_INT(local_7c.y) + -4) * fVar7 + renderOffset->x;
|
|
fVar4 = renderOffset->x + 156.0;
|
|
color_18 = extraout_ECX;
|
|
}
|
|
render_quad_set_uniform_color(quadSource,fVar4,fVar6,fVar5,fVar3,color_18);
|
|
goto LAB_00942659;
|
|
}
|
|
local_34.x = uvRight;
|
|
local_34.y = -338.0;
|
|
local_2c.x = uvRight;
|
|
local_2c.y = 0.0;
|
|
local_24.x = uvLeft;
|
|
local_24.y = -338.0;
|
|
local_64.x = uvLeft;
|
|
local_64.y = 0.0;
|
|
DestinationQuad::DestinationQuad(&uvQuad,&local_64,&local_24,&local_2c,&local_34);
|
|
local_38 = 1;
|
|
(GHIDRA_CAST<KColor *>((&quadColor)))->KColor::SetFromARGB(0xffffffff);
|
|
render_quad_set_uniform_color
|
|
(quadSource,renderOffset->x + 52.0,renderOffset->y + 182.0,renderOffset->x + 338.0,
|
|
renderOffset->y + 52.0 + 182.0,color_11);
|
|
fVar7 = local_6c.y;
|
|
savedBlendMode0 = (**(code **)(*GHIDRA_CAST<int *>(*GHIDRA_CAST<Backdrop *>((GHIDRA_CAST<char *>(local_6c.y) + 0x2c))) + 0x14))
|
|
(&uvQuad,quadSource,g_drawRectUnset);
|
|
if (savedBlendMode0 != 0) {
|
|
vertexField = GHIDRA_CAST<float *>((savedBlendMode0 + 8));
|
|
savedBlendMode0 = 4;
|
|
do {
|
|
*vertexField = *vertexField + 0.04 + 0.04 + 0.04 + 0.04;
|
|
vertexField = vertexField + 9;
|
|
savedBlendMode0 = savedBlendMode0 + -1;
|
|
} while (savedBlendMode0 != 0);
|
|
}
|
|
local_64.x = uvRight;
|
|
local_24.y = (float)(2 - GHIDRA_INT(local_7c.y));
|
|
local_34.x = uvRight;
|
|
local_34.y = -338.0;
|
|
local_7c.y = -338.0;
|
|
local_2c.x = uvLeft;
|
|
local_64.y = (float)GHIDRA_INT(local_24.y) * 26.0;
|
|
local_7c.x = uvLeft;
|
|
local_2c.y = local_64.y;
|
|
DestinationQuad::DestinationQuad(&uvQuad,&local_7c,&local_2c,&local_34,&local_64);
|
|
local_38 = 1;
|
|
(GHIDRA_CAST<KColor *>((&quadColor)))->KColor::SetFromARGB(0xffffffff);
|
|
local_74.y = local_74.y * 26.0;
|
|
render_quad_set_uniform_color
|
|
(quadSource,renderOffset->x + 338.0,renderOffset->y,renderOffset->x + local_74.y,
|
|
renderOffset->y + 52.0,color_12);
|
|
savedBlendMode0 = (**(code **)(*GHIDRA_CAST<int *>(*GHIDRA_CAST<Backdrop *>((GHIDRA_CAST<char *>(fVar7) + 0x2c))) + 0x14))
|
|
(&uvQuad,quadSource,g_drawRectUnset);
|
|
if (savedBlendMode0 != 0) {
|
|
vertexField = GHIDRA_CAST<float *>((savedBlendMode0 + 8));
|
|
savedBlendMode0 = 4;
|
|
do {
|
|
*vertexField = *vertexField + 0.04 + 0.04 + 0.04 + 0.04;
|
|
vertexField = vertexField + 9;
|
|
savedBlendMode0 = savedBlendMode0 + -1;
|
|
} while (savedBlendMode0 != 0);
|
|
}
|
|
}
|
|
LAB_00942444:
|
|
local_64.y = (float)GHIDRA_INT(local_24.y);
|
|
local_34.y = 0.0;
|
|
local_24.y = 0.0;
|
|
local_64.x = uvLeft;
|
|
local_64.y = local_64.y * 26.0;
|
|
local_34.x = uvLeft;
|
|
local_2c.x = uvRight;
|
|
local_24.x = uvRight;
|
|
fVar7 = local_5c;
|
|
local_2c.y = local_64.y;
|
|
DestinationQuad::DestinationQuad(&uvQuad,&local_24,&local_2c,&local_34,&local_64);
|
|
local_38 = 1;
|
|
(GHIDRA_CAST<KColor *>((&quadColor)))->KColor::SetFromARGB(0xffffffff);
|
|
render_quad_set_uniform_color
|
|
(quadSource,renderOffset->x + 52.0,renderOffset->y + fVar7,renderOffset->x + local_74.y,
|
|
(local_1c + 2.0) * 26.0 + renderOffset->y,color_17);
|
|
LAB_00942659:
|
|
FUN_009426b0(&uvQuad,quadSource);
|
|
g_graphicsManager_blendMode[0] = savedBlendMode0;
|
|
g_graphicsManager_blendMode[1] = savedBlendMode1;
|
|
g_graphicsManager_blendMode[2] = savedBlendMode2;
|
|
g_graphicsManager_blendMode[3] = savedBlendMode3;
|
|
g_graphicsManager_blendMode[4] = savedBlendMode4;
|
|
return;
|
|
}
|