- anm2.h/.cpp take over ANM2, AnimationState, LayerState, AnmCache and the frame data. They read Anm2Ed's JSON documents with simdjson and play them as the game does (interpolation baked at load). src/anm2/ and msvc.h are retired. - font, formatted_text, string_table and rich_text take over the text classes. FormattedText::parse is still bit-exact against its assembly. - options_config and challenge_params take over OptionsConfig, ChallengeParams and the .ini helpers. The tests include Save's exact bytes. - platform.h/.cpp and main.cpp run IsaacMain on SDL3: the window and GL context open, and the run stops at the first built-in shader (FUN_00a13fa0). - source_tree.py: a taken-over parent stays bytes, taken-over methods are not re-emitted as a namespace, and every address in a (a, b, c to d) list on a comment counts as taken over. - log.h: reconstruction_missing() for a taken-over class's methods that are not written yet. 206 functions taken over, boot path 89/615. The full build waits for wave B: item_config, entity_config and mod_manager still use the old APIs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
6855 lines
367 KiB
C++
6855 lines
367 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 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a5d])) + 0x1)))),
|
|
(float)y * 26.0 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a5e])) + 0x2)))),
|
|
(float)(width + x) * 26.0 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a5d])) + 0x1)))),
|
|
(float)(height + y) * 26.0 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a5e])) + 0x2)))),color);
|
|
return outQuad;
|
|
}
|
|
|
|
// 009321c0
|
|
void Backdrop::constructor()
|
|
{
|
|
char isLastRef;
|
|
void *renderTarget;
|
|
uint32_t extraout_ECX;
|
|
KColor *clearColor;
|
|
KColor *clearColor_00;
|
|
KColor *clearColor_01;
|
|
KColor *clearColor_02;
|
|
KColor clearColorValue;
|
|
uint8_t newTarget [4];
|
|
int *newTargetRefCount;
|
|
Backdrop *local_14;
|
|
void *local_10;
|
|
uint8_t *puStack_c;
|
|
uint32_t 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);
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[5])) + 0x1)))) = 0;
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[6])) + 0x2)))) = 0;
|
|
*GHIDRA_CAST<uint32_t *>((this + 8)) = 0;
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[9])) + 0x1)))) = 0;
|
|
*GHIDRA_CAST<uint32_t *>((this + 0xc)) = 0;
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0xd])) + 0x1)))) = 0;
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 4;
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0xe])) + 0x2))))))->KAGE::SmartPointer::SmartPointer((void *)0x0);
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x11])) + 0x1)))) = 0;
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x12])) + 0x2)))) = 0;
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 6;
|
|
ANM2::constructor(GHIDRA_CAST<ANM2 *>((this + 0x14)));
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 7;
|
|
_eh_vector_constructor_iterator_
|
|
(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x71])) + 0x1))),0x13c,0x3f,BackdropConfig::constructor,
|
|
BackdropConfig::~BackdropConfig);
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 8;
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a5e])) + 0x2)))) = 0;
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a5d])) + 0x1)))) = 0;
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a61])) + 0x1)))) = 0;
|
|
*GHIDRA_CAST<uint32_t *>((this + 0x1a60)) = 0;
|
|
*GHIDRA_CAST<uint64_t *>((this + 0x1a64)) = 0x900000005;
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a62])) + 0x2)))) = 0xaa17414f;
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a66])) + 0x2)))) = 7;
|
|
ANM2::constructor(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a69])) + 0x1)))));
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 9;
|
|
ANM2::constructor(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1ac5])) + 0x1)))));
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 10;
|
|
ANM2::constructor(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b21])) + 0x1)))));
|
|
(*GHIDRA_CAST<uint8_t *>((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<uint8_t *>("Floor Surface"),clearColor);
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0xc;
|
|
this->shared_ptr::operator_assign(renderTarget);
|
|
(*GHIDRA_CAST<uint8_t *>((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<uint8_t *>((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<uint8_t *>("Wall Surface"),clearColor_00);
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0xe;
|
|
(GHIDRA_CAST<shared_ptr *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[2])) + 0x2))))))->shared_ptr::operator_assign(renderTarget);
|
|
(*GHIDRA_CAST<uint8_t *>((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<uint8_t *>((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<uint8_t *>("Floor Surface 2"),clearColor_01);
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x10;
|
|
(GHIDRA_CAST<shared_ptr *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[5])) + 0x1))))))->shared_ptr::operator_assign(renderTarget);
|
|
(*GHIDRA_CAST<uint8_t *>((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<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0xb;
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[10])) + 0x2))) = 0;
|
|
(GHIDRA_CAST<KColor *>((&clearColorValue)))->KColor::SetFromARGB(0);
|
|
renderTarget = KAGE_Graphics::create_render_target
|
|
(newTarget,0x30c,0x1d4,GHIDRA_CAST<uint8_t *>("Temp Backdrop Surface"),clearColor_02);
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 0x12;
|
|
(GHIDRA_CAST<shared_ptr *>((this + 8)))->shared_ptr::operator_assign(renderTarget);
|
|
local_8 = CONCAT31((*GHIDRA_CAST<uint8_t *>((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);
|
|
}
|
|
}
|
|
*GHIDRA_CAST<uint32_t *>((this + 0x1a68)) = 0x11111111;
|
|
*GHIDRA_CAST<uint64_t *>((this + 0x1a64)) = 0x900000005;
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a66])) + 0x2)))) = 7;
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a62])) + 0x2)))) = 0x11111111;
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a5d])) + 0x1)))) = g_vectorZero.x;
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a5e])) + 0x2)))) = g_vectorZero.y;
|
|
*GHIDRA_CAST<float *>((this + 0x1a60)) = g_vectorZero.x;
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a61])) + 0x1)))) = g_vectorZero.y;
|
|
ExceptionList = local_10;
|
|
return;
|
|
}
|
|
|
|
// 00932570
|
|
void Backdrop::destructor()
|
|
{
|
|
char isLastReference;
|
|
uint32_t extraout_ECX;
|
|
uint32_t extraout_ECX_00;
|
|
void *local_10;
|
|
uint8_t *puStack_c;
|
|
uint32_t 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 *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0xe])) + 0x2))))))->KAGE::SmartPointer::reset((void *)0x0);
|
|
local_8 = 0;
|
|
ANM2::Reset(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b21])) + 0x1)))));
|
|
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>((this + 0x1b3c)));
|
|
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b31])) + 0x1)))));
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b29])) + 0x1))))))->msvc::string::_Tidy_deallocate();
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b21])) + 0x1))))))->msvc::string::_Tidy_deallocate();
|
|
local_8 = 1;
|
|
ANM2::Reset(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1ac5])) + 0x1)))));
|
|
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>((this + 0x1ae0)));
|
|
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1ad5])) + 0x1)))));
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1acd])) + 0x1))))))->msvc::string::_Tidy_deallocate();
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1ac5])) + 0x1))))))->msvc::string::_Tidy_deallocate();
|
|
local_8 = 2;
|
|
ANM2::Reset(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a69])) + 0x1)))));
|
|
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>((this + 0x1a84)));
|
|
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a79])) + 0x1)))));
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a71])) + 0x1))))))->msvc::string::_Tidy_deallocate();
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a69])) + 0x1))))))->msvc::string::_Tidy_deallocate();
|
|
local_8 = 0xffffffff;
|
|
_eh_vector_destructor_iterator_(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x71])) + 0x1))),0x13c,0x3f,BackdropConfig::~BackdropConfig);
|
|
local_8 = 3;
|
|
ANM2::Reset(GHIDRA_CAST<ANM2 *>((this + 0x14)));
|
|
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x2e])) + 0x2)))));
|
|
AnimationState::~AnimationState(GHIDRA_CAST<AnimationState *>((this + 0x24)));
|
|
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>((this + 0x1c)))))->msvc::string::_Tidy_deallocate();
|
|
(GHIDRA_CAST<msvc::string *>((GHIDRA_CAST<char *>((this + 0x14)))))->msvc::string::_Tidy_deallocate();
|
|
local_8 = 4;
|
|
if (*GHIDRA_CAST<int **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x12])) + 0x2)))) != GHIDRA_CAST<int *>(0x0)) {
|
|
isLastReference = (**(code **)(**GHIDRA_CAST<int **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x12])) + 0x2)))) + 0xc))();
|
|
if ((isLastReference != '\0') && (g_imageReleaseFn != (void *)0x0)) {
|
|
(*g_imageReleaseFn)(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x11])) + 0x1))));
|
|
}
|
|
}
|
|
local_8 = 5;
|
|
if (*GHIDRA_CAST<int **>((this + 0x10)) != GHIDRA_CAST<int *>(0x0)) {
|
|
isLastReference = (**(code **)(**GHIDRA_CAST<int **>((this + 0x10)) + 0xc))();
|
|
if ((isLastReference != '\0') && (g_imageReleaseFn != (void *)0x0)) {
|
|
(*g_imageReleaseFn)(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0xe])) + 0x2))));
|
|
}
|
|
}
|
|
local_8 = 6;
|
|
if (*GHIDRA_CAST<int **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0xd])) + 0x1)))) != GHIDRA_CAST<int *>(0x0)) {
|
|
isLastReference = (**(code **)(**GHIDRA_CAST<int **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0xd])) + 0x1)))) + 0xc))();
|
|
if ((isLastReference != '\0') && (g_imageReleaseFn != (void *)0x0)) {
|
|
(*g_imageReleaseFn)(this + 0xc);
|
|
}
|
|
}
|
|
local_8 = 7;
|
|
if (*GHIDRA_CAST<int **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[9])) + 0x1)))) != GHIDRA_CAST<int *>(0x0)) {
|
|
isLastReference = (**(code **)(**GHIDRA_CAST<int **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[9])) + 0x1)))) + 0xc))();
|
|
if ((isLastReference != '\0') && (g_renderTargetReleaseFn != (void *)0x0)) {
|
|
(*g_renderTargetReleaseFn)(this + 8);
|
|
}
|
|
}
|
|
local_8 = 8;
|
|
if (*GHIDRA_CAST<int **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[6])) + 0x2)))) != GHIDRA_CAST<int *>(0x0)) {
|
|
isLastReference = (**(code **)(**GHIDRA_CAST<int **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[6])) + 0x2)))) + 0xc))();
|
|
if ((isLastReference != '\0') && (g_renderTargetReleaseFn != (void *)0x0)) {
|
|
(*g_renderTargetReleaseFn)(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[5])) + 0x1))));
|
|
}
|
|
}
|
|
local_8 = 9;
|
|
if (*GHIDRA_CAST<int **>((this + 4)) != GHIDRA_CAST<int *>(0x0)) {
|
|
isLastReference = (**(code **)(**GHIDRA_CAST<int **>((this + 4)) + 0xc))();
|
|
if ((isLastReference != '\0') && (g_renderTargetReleaseFn != (void *)0x0)) {
|
|
(*g_renderTargetReleaseFn)(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[2])) + 0x2))));
|
|
}
|
|
}
|
|
local_8 = 10;
|
|
if (*GHIDRA_CAST<int **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x1)))) != GHIDRA_CAST<int *>(0x0)) {
|
|
isLastReference = (**(code **)(**GHIDRA_CAST<int **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x1)))) + 0xc))();
|
|
if ((isLastReference != '\0') && (g_renderTargetReleaseFn != (void *)0x0)) {
|
|
(*g_renderTargetReleaseFn)(this);
|
|
}
|
|
}
|
|
ExceptionList = local_10;
|
|
return;
|
|
}
|
|
|
|
// 00932810
|
|
uint8_t Backdrop::LoadConfig(uint8_t *xmlPath)
|
|
{
|
|
uint8_t isJoinedPathAlive;
|
|
int *file;
|
|
int iVar2;
|
|
uint8_t *text;
|
|
void *rootAttribute;
|
|
int iVar3;
|
|
std_string *rootText;
|
|
uint8_t *strCursor;
|
|
uint8_t *attrNameCursor;
|
|
uint32_t appendLength;
|
|
std_string *psVar4;
|
|
uint8_t *valueText;
|
|
void *freeBlock;
|
|
uint32_t freeSize;
|
|
bool isLess;
|
|
char *pcVar5;
|
|
uint32_t *attribute;
|
|
uint32_t cleanupFlags;
|
|
BackdropConfig config;
|
|
uint8_t xmlDoc [48];
|
|
uint8_t xmlMemoryPool [65560];
|
|
BackdropConfig defaultConfig;
|
|
std_string effectsGfxRoot;
|
|
std_string gfxRoot;
|
|
std_string gridGfxRoot;
|
|
std_string joinedPath;
|
|
std_string attrValue;
|
|
void *local_1c;
|
|
uint8_t *puStack_18;
|
|
uint32_t 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 = (uint8_t)valueText;
|
|
freeBlock = (GHIDRA_CAST<xml_node *>((xmlDoc)))->xml_node::first_node(GHIDRA_CAST<uint8_t *>("backdrops"),GHIDRA_INT(pcVar5),isJoinedPathAlive);
|
|
if (freeBlock == (void *)0x0) {
|
|
pcVar5 = "Could not find root node \'backdrops\' in %s\n";
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("Could not find root node \'backdrops\' in %s\n"));
|
|
isJoinedPathAlive = (uint8_t)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<uint8_t **>((GHIDRA_CAST<char *>(rootAttribute) + 4)) != GHIDRA_CAST<uint8_t *>(0x0)) {
|
|
valueText = *GHIDRA_CAST<uint8_t **>((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<msvc::string *>((gfxRoot._buf)))->msvc::string::assign(valueText,freeSize);
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 1;
|
|
rootAttribute =
|
|
(GHIDRA_CAST<xml_node *>((freeBlock)))->xml_node::first_attribute(GHIDRA_CAST<uint8_t *>("gridgfxroot"),GHIDRA_UINT(valueText),(uint8_t)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<uint8_t **>((GHIDRA_CAST<char *>(rootAttribute) + 4)) != GHIDRA_CAST<uint8_t *>(0x0)) {
|
|
valueText = *GHIDRA_CAST<uint8_t **>((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<msvc::string *>((gridGfxRoot._buf)))->msvc::string::assign(valueText,freeSize);
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 2;
|
|
rootAttribute =
|
|
xml_node::first_attribute
|
|
(freeBlock,GHIDRA_CAST<uint8_t *>("effectsgfxroot"),GHIDRA_UINT(valueText),(uint8_t)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<uint8_t **>((GHIDRA_CAST<char *>(rootAttribute) + 4)) != GHIDRA_CAST<uint8_t *>(0x0)) {
|
|
valueText = *GHIDRA_CAST<uint8_t **>((GHIDRA_CAST<char *>(rootAttribute) + 4));
|
|
}
|
|
strCursor = valueText;
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
strCursor = strCursor + 1;
|
|
} while (isJoinedPathAlive != 0);
|
|
(GHIDRA_CAST<msvc::string *>((effectsGfxRoot._buf)))->msvc::string::assign(valueText,GHIDRA_INT(strCursor) - GHIDRA_INT((valueText + 1)));
|
|
(GHIDRA_CAST<BackdropConfig *>((&defaultConfig)))->BackdropConfig::constructor();
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 4;
|
|
defaultConfig.backdropId = 0;
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0x78))))))->msvc::string::assign(GHIDRA_CAST<uint8_t *>("gfx/grid/props_01_basement.anm2"),0x1f);
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0x90))))))->msvc::string::assign(GHIDRA_CAST<uint8_t *>("gfx/grid/rocks_basement.png"),0x1b);
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0xa8))))))->msvc::string::assign(GHIDRA_CAST<uint8_t *>("gfx/grid/grid_pit.png"),0x15);
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0xc0))))))->msvc::string::assign(GHIDRA_CAST<uint8_t *>("gfx/grid/grid_pit_water.png"),0x1b);
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0xd8))))))->msvc::string::assign(GHIDRA_CAST<uint8_t *>("gfx/grid/grid_bridge.png"),0x18);
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0xf0))))))->msvc::string::assign(GHIDRA_CAST<uint8_t *>("gfx/grid/door_01_normaldoor.png"),0x1f);
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0x108))))))->msvc::string::assign(GHIDRA_CAST<uint8_t *>("gfx/grid/door_08_holeinwall.png"),0x1f);
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0x120))))))->msvc::string::assign(GHIDRA_CAST<uint8_t *>("gfx/grid/grid_spikes.png"),0x18);
|
|
(GHIDRA_CAST<BackdropConfig *>((GHIDRA_CAST<BackdropConfig *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x71])) + 0x1)))))))->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<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x4))))))->msvc::string::string(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0x4))));
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 5;
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x1c))))))->msvc::string::string(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0x1c))));
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 6;
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x34))))))->msvc::string::string(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0x34))));
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 7;
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x4c))))))->msvc::string::string(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0x4c))));
|
|
(*GHIDRA_CAST<uint8_t *>((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<uint8_t *>((GHIDRA_CAST<char *>(&(config.unk1)) + 0x0))) = (uint8_t)defaultConfig.unk1;
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x78))))))->msvc::string::string(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0x78))));
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 9;
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x90))))))->msvc::string::string(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0x90))));
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 10;
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xa8))))))->msvc::string::string(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0xa8))));
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xb;
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xc0))))))->msvc::string::string(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0xc0))));
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xc;
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xd8))))))->msvc::string::string(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0xd8))));
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xd;
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xf0))))))->msvc::string::string(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0xf0))));
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xe;
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x108))))))->msvc::string::string(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0x108))));
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xf;
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x120))))))->msvc::string::string(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(defaultConfig)) + 0x120))));
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config.waterPitsMode)) + 0x0))) = (uint8_t)defaultConfig.waterPitsMode;
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config.waterPitsMode)) + 0x1))) = (*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(defaultConfig.waterPitsMode)) + 0x1)));
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x10;
|
|
attribute = *GHIDRA_CAST<uint32_t **>((iVar2 + 0x20));
|
|
if (attribute != GHIDRA_CAST<uint32_t *>(0x0)) {
|
|
do {
|
|
valueText = GHIDRA_CAST<uint8_t *>(*attribute);
|
|
attrNameCursor = s_id;
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<uint8_t *>(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<uint8_t *>(attribute[1]) != GHIDRA_CAST<uint8_t *>(0x0)) {
|
|
valueText = GHIDRA_CAST<uint8_t *>(attribute[1]);
|
|
}
|
|
config.backdropId = atoi(GHIDRA_CAST<char *>(valueText));
|
|
}
|
|
else {
|
|
attrNameCursor = &DAT_00b66fec;
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<uint8_t *>(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<uint8_t *>(attribute[1]) != GHIDRA_CAST<uint8_t *>(0x0)) {
|
|
valueText = GHIDRA_CAST<uint8_t *>(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 */
|
|
msvc::string::_Xlen();
|
|
}
|
|
psVar4 = &gfxRoot;
|
|
if (0xf < gfxRoot._capacity) {
|
|
psVar4 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<std_string *>(gfxRoot._buf))) + 0x0)));
|
|
}
|
|
(GHIDRA_CAST<msvc::string *>((joinedPath._buf)))->msvc::string::concat(GHIDRA_INT(this),GHIDRA_CAST<std_string *>(appendLength),
|
|
GHIDRA_CAST<uint8_t *>(psVar4),gfxRoot._size,valueText,appendLength);
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x4))))))->msvc::string::_Tidy_deallocate();
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x4))) = joinedPath._buf[0];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x5))) = joinedPath._buf[1];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x6))) = joinedPath._buf[2];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x7))) = joinedPath._buf[3];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x8))) = joinedPath._buf[4];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x9))) = joinedPath._buf[5];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xa))) = joinedPath._buf[6];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xb))) = joinedPath._buf[7];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xc))) = joinedPath._buf[8];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xd))) = joinedPath._buf[9];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xe))) = joinedPath._buf[10];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xf))) = joinedPath._buf[0xb];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x10))) = joinedPath._buf[0xc];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x11))) = joinedPath._buf[0xd];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x12))) = joinedPath._buf[0xe];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x13))) = joinedPath._buf[0xf];
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x14))) = joinedPath._size;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x18))) = joinedPath._capacity;
|
|
}
|
|
else {
|
|
attrNameCursor = &DAT_00b7b60c;
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<uint8_t *>(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<uint8_t *>(attribute[1]) != GHIDRA_CAST<uint8_t *>(0x0)) {
|
|
valueText = GHIDRA_CAST<uint8_t *>(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<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<std_string *>(gfxRoot._buf))) + 0x0)));
|
|
}
|
|
(GHIDRA_CAST<msvc::string *>((joinedPath._buf)))->msvc::string::concat(GHIDRA_INT(this),psVar4,GHIDRA_CAST<uint8_t *>(rootText),gfxRoot._size,
|
|
valueText,GHIDRA_UINT(psVar4));
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x34))))))->msvc::string::_Tidy_deallocate();
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x34))) = joinedPath._buf[0];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x35))) = joinedPath._buf[1];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x36))) = joinedPath._buf[2];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x37))) = joinedPath._buf[3];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x38))) = joinedPath._buf[4];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x39))) = joinedPath._buf[5];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x3a))) = joinedPath._buf[6];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x3b))) = joinedPath._buf[7];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x3c))) = joinedPath._buf[8];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x3d))) = joinedPath._buf[9];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x3e))) = joinedPath._buf[10];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x3f))) = joinedPath._buf[0xb];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x40))) = joinedPath._buf[0xc];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x41))) = joinedPath._buf[0xd];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x42))) = joinedPath._buf[0xe];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x43))) = joinedPath._buf[0xf];
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x44))) = joinedPath._size;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x48))) = joinedPath._capacity;
|
|
}
|
|
else {
|
|
attrNameCursor = &DAT_00b7b600;
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<uint8_t *>(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<uint8_t *>(attribute[1]) != GHIDRA_CAST<uint8_t *>(0x0)) {
|
|
valueText = GHIDRA_CAST<uint8_t *>(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<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<std_string *>(gfxRoot._buf))) + 0x0)));
|
|
}
|
|
(GHIDRA_CAST<msvc::string *>((joinedPath._buf)))->msvc::string::concat(GHIDRA_INT(this),psVar4,GHIDRA_CAST<uint8_t *>(rootText),
|
|
gfxRoot._size,valueText,GHIDRA_UINT(psVar4));
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x4c))))))->msvc::string::_Tidy_deallocate();
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x4c))) = joinedPath._buf[0];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x4d))) = joinedPath._buf[1];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x4e))) = joinedPath._buf[2];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x4f))) = joinedPath._buf[3];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x50))) = joinedPath._buf[4];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x51))) = joinedPath._buf[5];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x52))) = joinedPath._buf[6];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x53))) = joinedPath._buf[7];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x54))) = joinedPath._buf[8];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x55))) = joinedPath._buf[9];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x56))) = joinedPath._buf[10];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x57))) = joinedPath._buf[0xb];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x58))) = joinedPath._buf[0xc];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x59))) = joinedPath._buf[0xd];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x5a))) = joinedPath._buf[0xe];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x5b))) = joinedPath._buf[0xf];
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x5c))) = joinedPath._size;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x60))) = joinedPath._capacity;
|
|
}
|
|
else {
|
|
pcVar5 = "watergfx";
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<uint8_t *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
isLess = isJoinedPathAlive < (uint8_t)*pcVar5;
|
|
if (isJoinedPathAlive != *pcVar5) {
|
|
LAB_00932f64:
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_00932f69;
|
|
}
|
|
if (isJoinedPathAlive == 0) break;
|
|
isJoinedPathAlive = strCursor[1];
|
|
isLess = isJoinedPathAlive < (uint8_t)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<uint8_t *>(attribute[1]) != GHIDRA_CAST<uint8_t *>(0x0)) {
|
|
valueText = GHIDRA_CAST<uint8_t *>(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<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<std_string *>(gfxRoot._buf))) + 0x0)));
|
|
}
|
|
(GHIDRA_CAST<msvc::string *>((joinedPath._buf)))->msvc::string::concat(GHIDRA_INT(this),psVar4,GHIDRA_CAST<uint8_t *>(rootText),
|
|
gfxRoot._size,valueText,GHIDRA_UINT(psVar4));
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x1c))))))->msvc::string::_Tidy_deallocate();
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x1c))) = joinedPath._buf[0];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x1d))) = joinedPath._buf[1];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x1e))) = joinedPath._buf[2];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x1f))) = joinedPath._buf[3];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x20))) = joinedPath._buf[4];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x21))) = joinedPath._buf[5];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x22))) = joinedPath._buf[6];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x23))) = joinedPath._buf[7];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x24))) = joinedPath._buf[8];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x25))) = joinedPath._buf[9];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x26))) = joinedPath._buf[10];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x27))) = joinedPath._buf[0xb];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x28))) = joinedPath._buf[0xc];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x29))) = joinedPath._buf[0xd];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x2a))) = joinedPath._buf[0xe];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x2b))) = joinedPath._buf[0xf];
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x2c))) = joinedPath._size;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x30))) = joinedPath._capacity;
|
|
}
|
|
else {
|
|
pcVar5 = "walls";
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<uint8_t *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
isLess = isJoinedPathAlive < (uint8_t)*pcVar5;
|
|
if (isJoinedPathAlive != *pcVar5) {
|
|
LAB_00933030:
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_00933035;
|
|
}
|
|
if (isJoinedPathAlive == 0) break;
|
|
isJoinedPathAlive = strCursor[1];
|
|
isLess = isJoinedPathAlive < (uint8_t)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<uint8_t *>(attribute[1]) != GHIDRA_CAST<uint8_t *>(0x0)) {
|
|
valueText = GHIDRA_CAST<uint8_t *>(attribute[1]);
|
|
}
|
|
config.walls = atoi(GHIDRA_CAST<char *>(valueText));
|
|
}
|
|
else {
|
|
pcVar5 = "wallvariants";
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<uint8_t *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
isLess = isJoinedPathAlive < (uint8_t)*pcVar5;
|
|
if (isJoinedPathAlive != *pcVar5) {
|
|
LAB_00933090:
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_00933095;
|
|
}
|
|
if (isJoinedPathAlive == 0) break;
|
|
isJoinedPathAlive = strCursor[1];
|
|
isLess = isJoinedPathAlive < (uint8_t)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<uint8_t *>(attribute[1]) != GHIDRA_CAST<uint8_t *>(0x0)) {
|
|
valueText = GHIDRA_CAST<uint8_t *>(attribute[1]);
|
|
}
|
|
config.wallVariants = atoi(GHIDRA_CAST<char *>(valueText));
|
|
}
|
|
else {
|
|
pcVar5 = "floors";
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<uint8_t *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
isLess = isJoinedPathAlive < (uint8_t)*pcVar5;
|
|
if (isJoinedPathAlive != *pcVar5) {
|
|
LAB_009330f0:
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_009330f5;
|
|
}
|
|
if (isJoinedPathAlive == 0) break;
|
|
isJoinedPathAlive = strCursor[1];
|
|
isLess = isJoinedPathAlive < (uint8_t)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<uint8_t *>(attribute[1]) != GHIDRA_CAST<uint8_t *>(0x0)) {
|
|
valueText = GHIDRA_CAST<uint8_t *>(attribute[1]);
|
|
}
|
|
config.floors = atoi(GHIDRA_CAST<char *>(valueText));
|
|
}
|
|
else {
|
|
pcVar5 = "floorvariants";
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<uint8_t *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
isLess = isJoinedPathAlive < (uint8_t)*pcVar5;
|
|
if (isJoinedPathAlive != *pcVar5) {
|
|
LAB_00933150:
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_00933155;
|
|
}
|
|
if (isJoinedPathAlive == 0) break;
|
|
isJoinedPathAlive = strCursor[1];
|
|
isLess = isJoinedPathAlive < (uint8_t)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<uint8_t *>(attribute[1]) != GHIDRA_CAST<uint8_t *>(0x0)) {
|
|
valueText = GHIDRA_CAST<uint8_t *>(attribute[1]);
|
|
}
|
|
config.floorVariants = atoi(GHIDRA_CAST<char *>(valueText));
|
|
}
|
|
else {
|
|
pcVar5 = "fullimage";
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<uint8_t *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
isLess = isJoinedPathAlive < (uint8_t)*pcVar5;
|
|
if (isJoinedPathAlive != *pcVar5) {
|
|
LAB_009331b0:
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_009331b5;
|
|
}
|
|
if (isJoinedPathAlive == 0) break;
|
|
isJoinedPathAlive = strCursor[1];
|
|
isLess = isJoinedPathAlive < (uint8_t)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<uint8_t *>(attribute[1]) != GHIDRA_CAST<uint8_t *>(0x0)) {
|
|
valueText = GHIDRA_CAST<uint8_t *>(attribute[1]);
|
|
}
|
|
strCursor = valueText;
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
strCursor = strCursor + 1;
|
|
} while (isJoinedPathAlive != 0);
|
|
(GHIDRA_CAST<msvc::string *>((attrValue._buf)))->msvc::string::assign(valueText,
|
|
GHIDRA_INT(strCursor) - GHIDRA_INT((valueText + 1)));
|
|
if (attrValue._size == 0) {
|
|
LAB_009332c2:
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config.unk1)) + 0x0))) = 0;
|
|
}
|
|
else {
|
|
psVar4 = &attrValue;
|
|
if (0xf < attrValue._capacity) {
|
|
psVar4 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<std_string *>(attrValue._buf))) + 0x0)));
|
|
}
|
|
if (attrValue._size == 4) {
|
|
if ((*GHIDRA_CAST<int *>(psVar4->_buf) == 0x65757274) ||
|
|
((((isJoinedPathAlive = (uint8_t)*GHIDRA_CAST<int *>(psVar4->_buf), isLess = isJoinedPathAlive < 0x74,
|
|
isJoinedPathAlive == 0x74 &&
|
|
(isLess = (uint8_t)psVar4->_buf[1] < 0x72,
|
|
psVar4->_buf[1] == 0x72)) &&
|
|
(isLess = (uint8_t)psVar4->_buf[2] < 0x75,
|
|
psVar4->_buf[2] == 0x75)) &&
|
|
(isLess = (uint8_t)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<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<std_string *>(attrValue._buf))) + 0x0)));
|
|
}
|
|
if (attrValue._size == 4) {
|
|
if ((*GHIDRA_CAST<int *>(psVar4->_buf) == 0x65757254) ||
|
|
(((isJoinedPathAlive = (uint8_t)*GHIDRA_CAST<int *>(psVar4->_buf), isLess = isJoinedPathAlive < 0x54,
|
|
isJoinedPathAlive == 0x54 &&
|
|
(isLess = (uint8_t)psVar4->_buf[1] < 0x72,
|
|
psVar4->_buf[1] == 0x72)) &&
|
|
((isLess = (uint8_t)psVar4->_buf[2] < 0x75,
|
|
psVar4->_buf[2] == 0x75 &&
|
|
(isLess = (uint8_t)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<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<std_string *>(attrValue._buf))) + 0x0)));
|
|
}
|
|
iVar3 = atoi(psVar4->_buf);
|
|
if (iVar3 == 0) goto LAB_009332c2;
|
|
}
|
|
LAB_009332b9:
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config.unk1)) + 0x0))) = 1;
|
|
}
|
|
if (0xf < attrValue._capacity) {
|
|
freeSize = attrValue._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((void *)attrValue._buf)) + 0x0)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(attrValue._buf)) + 0x0))) + -4);
|
|
freeSize = attrValue._capacity + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<uint32_t *>((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<uint8_t *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
isLess = isJoinedPathAlive < (uint8_t)*pcVar5;
|
|
if (isJoinedPathAlive != *pcVar5) {
|
|
LAB_00933337:
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_0093333c;
|
|
}
|
|
if (isJoinedPathAlive == 0) break;
|
|
isJoinedPathAlive = strCursor[1];
|
|
isLess = isJoinedPathAlive < (uint8_t)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<uint8_t *>(attribute[1]);
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<uint8_t *>(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<uint8_t *>(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<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<std_string *>(gridGfxRoot._buf))) + 0x0)));
|
|
}
|
|
(GHIDRA_CAST<msvc::string *>((joinedPath._buf)))->msvc::string::concat(GHIDRA_INT(this),psVar4,
|
|
GHIDRA_CAST<uint8_t *>(rootText),gridGfxRoot._size,strCursor,
|
|
GHIDRA_UINT(psVar4));
|
|
psVar4 = &joinedPath;
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x11;
|
|
isJoinedPathAlive = true;
|
|
}
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x78))))))->msvc::string::_Tidy_deallocate();
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x78))) = psVar4->_buf[0];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x79))) = psVar4->_buf[1];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x7a))) = psVar4->_buf[2];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x7b))) = psVar4->_buf[3];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x7c))) = psVar4->_buf[4];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x7d))) = psVar4->_buf[5];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x7e))) = psVar4->_buf[6];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x7f))) = psVar4->_buf[7];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x80))) = psVar4->_buf[8];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x81))) = psVar4->_buf[9];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x82))) = psVar4->_buf[10];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x83))) = psVar4->_buf[0xb];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x84))) = psVar4->_buf[0xc];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x85))) = psVar4->_buf[0xd];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x86))) = psVar4->_buf[0xe];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x87))) = psVar4->_buf[0xf];
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x88))) = psVar4->_size;
|
|
(*GHIDRA_CAST<uint32_t *>((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<uint32_t *>((GHIDRA_CAST<char *>(&((void *)attrValue._buf)) + 0x0)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(attrValue._buf)) + 0x0))) + -4);
|
|
freeSize = attrValue._capacity + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(attrValue._buf)) + 0x0))) - GHIDRA_INT(freeBlock)) - 4U)
|
|
goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x10;
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))) = 0;
|
|
if ((isJoinedPathAlive) &&
|
|
(isJoinedPathAlive = false, 0xf < joinedPath._capacity)) {
|
|
freeSize = joinedPath._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((void *)joinedPath._buf)) + 0x0)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(joinedPath._buf)) + 0x0))) + -4);
|
|
freeSize = joinedPath._capacity + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<uint32_t *>((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<uint8_t *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
isLess = isJoinedPathAlive < (uint8_t)*pcVar5;
|
|
if (isJoinedPathAlive != *pcVar5) {
|
|
LAB_009334f4:
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_009334f9;
|
|
}
|
|
if (isJoinedPathAlive == 0) break;
|
|
isJoinedPathAlive = strCursor[1];
|
|
isLess = isJoinedPathAlive < (uint8_t)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<uint8_t *>(attribute[1]);
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<uint8_t *>(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<uint8_t *>(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<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<std_string *>(gridGfxRoot._buf))) + 0x0)));
|
|
}
|
|
(GHIDRA_CAST<msvc::string *>((joinedPath._buf)))->msvc::string::concat(GHIDRA_INT(this),psVar4,
|
|
GHIDRA_CAST<uint8_t *>(rootText),gridGfxRoot._size,strCursor
|
|
,GHIDRA_UINT(psVar4));
|
|
psVar4 = &joinedPath;
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x12;
|
|
cleanupFlags = cleanupFlags | 0x200004;
|
|
}
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x90))))))->msvc::string::_Tidy_deallocate();
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x90))) = psVar4->_buf[0];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x91))) = psVar4->_buf[1];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x92))) = psVar4->_buf[2];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x93))) = psVar4->_buf[3];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x94))) = psVar4->_buf[4];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x95))) = psVar4->_buf[5];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x96))) = psVar4->_buf[6];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x97))) = psVar4->_buf[7];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x98))) = psVar4->_buf[8];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x99))) = psVar4->_buf[9];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x9a))) = psVar4->_buf[10];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x9b))) = psVar4->_buf[0xb];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x9c))) = psVar4->_buf[0xc];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x9d))) = psVar4->_buf[0xd];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x9e))) = psVar4->_buf[0xe];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x9f))) = psVar4->_buf[0xf];
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0xa0))) = psVar4->_size;
|
|
(*GHIDRA_CAST<uint32_t *>((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<uint32_t *>((GHIDRA_CAST<char *>(&((void *)attrValue._buf)) + 0x0)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(attrValue._buf)) + 0x0))) + -4);
|
|
freeSize = attrValue._capacity + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(attrValue._buf)) + 0x0))) - GHIDRA_INT(freeBlock)) - 4U)
|
|
goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x10;
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))) = 0;
|
|
if (((cleanupFlags & 4) != 0) &&
|
|
(cleanupFlags = cleanupFlags & 0xfffffffb,
|
|
0xf < joinedPath._capacity)) {
|
|
freeSize = joinedPath._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((void *)joinedPath._buf)) + 0x0)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(joinedPath._buf)) + 0x0))) + -4);
|
|
freeSize = joinedPath._capacity + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<uint32_t *>((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<uint8_t *>(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<uint8_t *>(attribute[1]);
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<uint8_t *>(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<uint8_t *>(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<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<std_string *>(gridGfxRoot._buf))) + 0x0)));
|
|
}
|
|
(GHIDRA_CAST<msvc::string *>((joinedPath._buf)))->msvc::string::concat(GHIDRA_INT(this),psVar4,
|
|
GHIDRA_CAST<uint8_t *>(rootText),gridGfxRoot._size,
|
|
strCursor,GHIDRA_UINT(psVar4));
|
|
psVar4 = &joinedPath;
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x13;
|
|
cleanupFlags = cleanupFlags | 0x400010;
|
|
}
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xa8))))))->msvc::string::_Tidy_deallocate();
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xa8))) = psVar4->_buf[0];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xa9))) = psVar4->_buf[1];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xaa))) = psVar4->_buf[2];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xab))) = psVar4->_buf[3];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xac))) = psVar4->_buf[4];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xad))) = psVar4->_buf[5];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xae))) = psVar4->_buf[6];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xaf))) = psVar4->_buf[7];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xb0))) = psVar4->_buf[8];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xb1))) = psVar4->_buf[9];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xb2))) = psVar4->_buf[10];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xb3))) = psVar4->_buf[0xb];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xb4))) = psVar4->_buf[0xc];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xb5))) = psVar4->_buf[0xd];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xb6))) = psVar4->_buf[0xe];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xb7))) = psVar4->_buf[0xf];
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0xb8))) = psVar4->_size;
|
|
(*GHIDRA_CAST<uint32_t *>((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<uint32_t *>((GHIDRA_CAST<char *>(&((void *)attrValue._buf)) + 0x0)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(attrValue._buf)) + 0x0))) + -4);
|
|
freeSize = attrValue._capacity + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(attrValue._buf)) + 0x0))) - GHIDRA_INT(freeBlock)) - 4U)
|
|
goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x10;
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))) = 0;
|
|
if ((cleanupFlags & 0x10) != 0) {
|
|
cleanupFlags = cleanupFlags & 0xffffffef;
|
|
LAB_00933f46:
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))) = 0;
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x10;
|
|
(GHIDRA_CAST<msvc::string *>((joinedPath._buf)))->msvc::string::_Tidy_deallocate();
|
|
}
|
|
}
|
|
else {
|
|
pcVar5 = "waterpit";
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<uint8_t *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
isLess = isJoinedPathAlive < (uint8_t)*pcVar5;
|
|
if (isJoinedPathAlive != *pcVar5) {
|
|
LAB_00933820:
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_00933825;
|
|
}
|
|
if (isJoinedPathAlive == 0) break;
|
|
isJoinedPathAlive = strCursor[1];
|
|
isLess = isJoinedPathAlive < (uint8_t)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<uint8_t *>(attribute[1]);
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<uint8_t *>(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<msvc::string *>((attrValue._buf)))->msvc::string::assign(&s_empty,0);
|
|
psVar4 = &attrValue;
|
|
}
|
|
else {
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<uint8_t *>(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<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<std_string *>(gridGfxRoot._buf))) + 0x0)));
|
|
}
|
|
(GHIDRA_CAST<msvc::string *>((joinedPath._buf)))->msvc::string::concat(GHIDRA_INT(this),psVar4,
|
|
GHIDRA_CAST<uint8_t *>(rootText),gridGfxRoot._size,
|
|
strCursor,GHIDRA_UINT(psVar4));
|
|
psVar4 = &joinedPath;
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x14;
|
|
cleanupFlags = cleanupFlags | 0x800040;
|
|
}
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xc0))))))->msvc::string::_Tidy_deallocate();
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xc0))) = psVar4->_buf[0];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xc1))) = psVar4->_buf[1];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xc2))) = psVar4->_buf[2];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xc3))) = psVar4->_buf[3];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xc4))) = psVar4->_buf[4];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xc5))) = psVar4->_buf[5];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xc6))) = psVar4->_buf[6];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xc7))) = psVar4->_buf[7];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xc8))) = psVar4->_buf[8];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xc9))) = psVar4->_buf[9];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xca))) = psVar4->_buf[10];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xcb))) = psVar4->_buf[0xb];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xcc))) = psVar4->_buf[0xc];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xcd))) = psVar4->_buf[0xd];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xce))) = psVar4->_buf[0xe];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xcf))) = psVar4->_buf[0xf];
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0xd0))) = psVar4->_size;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0xd4))) = psVar4->_capacity;
|
|
psVar4->_size = 0;
|
|
psVar4->_capacity = 0xf;
|
|
psVar4->_buf[0] = '\0';
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x10;
|
|
(*GHIDRA_CAST<uint8_t *>((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<uint8_t *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
isLess = isJoinedPathAlive < (uint8_t)*pcVar5;
|
|
if (isJoinedPathAlive != *pcVar5) {
|
|
LAB_009339a2:
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_009339a7;
|
|
}
|
|
if (isJoinedPathAlive == 0) break;
|
|
isJoinedPathAlive = strCursor[1];
|
|
isLess = isJoinedPathAlive < (uint8_t)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<uint8_t *>(attribute[1]);
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<uint8_t *>(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<msvc::string *>((attrValue._buf)))->msvc::string::assign(&s_empty,0);
|
|
psVar4 = &attrValue;
|
|
cleanupFlags = cleanupFlags | 0x200;
|
|
}
|
|
else {
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<uint8_t *>(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<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<std_string *>(gridGfxRoot._buf))) + 0x0)));
|
|
}
|
|
(GHIDRA_CAST<msvc::string *>((joinedPath._buf)))->msvc::string::concat(GHIDRA_INT(this),psVar4,
|
|
GHIDRA_CAST<uint8_t *>(rootText),gridGfxRoot._size,
|
|
strCursor,GHIDRA_UINT(psVar4));
|
|
psVar4 = &joinedPath;
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x15;
|
|
cleanupFlags = cleanupFlags | 0x1000100;
|
|
}
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xd8))))))->msvc::string::_Tidy_deallocate();
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xd8))) = psVar4->_buf[0];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xd9))) = psVar4->_buf[1];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xda))) = psVar4->_buf[2];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xdb))) = psVar4->_buf[3];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xdc))) = psVar4->_buf[4];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xdd))) = psVar4->_buf[5];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xde))) = psVar4->_buf[6];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xdf))) = psVar4->_buf[7];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xe0))) = psVar4->_buf[8];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xe1))) = psVar4->_buf[9];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xe2))) = psVar4->_buf[10];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xe3))) = psVar4->_buf[0xb];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xe4))) = psVar4->_buf[0xc];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xe5))) = psVar4->_buf[0xd];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xe6))) = psVar4->_buf[0xe];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xe7))) = psVar4->_buf[0xf];
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0xe8))) = psVar4->_size;
|
|
(*GHIDRA_CAST<uint32_t *>((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<uint32_t *>((GHIDRA_CAST<char *>(&((void *)attrValue._buf)) + 0x0)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(attrValue._buf)) + 0x0))) + -4);
|
|
freeSize = attrValue._capacity + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(attrValue._buf)) + 0x0))) - GHIDRA_INT(freeBlock)) - 4U)
|
|
goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x10;
|
|
(*GHIDRA_CAST<uint8_t *>((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<uint8_t *>(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<uint8_t *>(attribute[1]);
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<uint8_t *>(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<msvc::string *>((attrValue._buf)))->msvc::string::assign(&s_empty,0);
|
|
psVar4 = &attrValue;
|
|
cleanupFlags = cleanupFlags | 0x800;
|
|
}
|
|
else {
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<uint8_t *>(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<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<std_string *>(gridGfxRoot._buf))) + 0x0)));
|
|
}
|
|
(GHIDRA_CAST<msvc::string *>((joinedPath._buf)))->msvc::string::concat(GHIDRA_INT(this),psVar4,
|
|
GHIDRA_CAST<uint8_t *>(rootText),gridGfxRoot._size,
|
|
strCursor,GHIDRA_UINT(psVar4));
|
|
psVar4 = &joinedPath;
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x16;
|
|
cleanupFlags = cleanupFlags | 0x2000400;
|
|
}
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xf0))))))->msvc::string::_Tidy_deallocate();
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xf0))) = psVar4->_buf[0];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xf1))) = psVar4->_buf[1];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xf2))) = psVar4->_buf[2];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xf3))) = psVar4->_buf[3];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xf4))) = psVar4->_buf[4];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xf5))) = psVar4->_buf[5];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xf6))) = psVar4->_buf[6];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xf7))) = psVar4->_buf[7];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xf8))) = psVar4->_buf[8];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xf9))) = psVar4->_buf[9];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xfa))) = psVar4->_buf[10];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xfb))) = psVar4->_buf[0xb];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xfc))) = psVar4->_buf[0xc];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xfd))) = psVar4->_buf[0xd];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xfe))) = psVar4->_buf[0xe];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0xff))) = psVar4->_buf[0xf];
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x100))) = psVar4->_size;
|
|
(*GHIDRA_CAST<uint32_t *>((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<uint32_t *>((GHIDRA_CAST<char *>(&((void *)attrValue._buf)) + 0x0)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(attrValue._buf)) + 0x0))) + -4);
|
|
freeSize = attrValue._capacity + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(attrValue._buf)) + 0x0))) - GHIDRA_INT(freeBlock)) -
|
|
4U) goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x10;
|
|
(*GHIDRA_CAST<uint8_t *>((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<uint8_t *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
isLess = isJoinedPathAlive < (uint8_t)*pcVar5;
|
|
if (isJoinedPathAlive != *pcVar5) {
|
|
LAB_00933cc0:
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_00933cc5;
|
|
}
|
|
if (isJoinedPathAlive == 0) break;
|
|
isJoinedPathAlive = strCursor[1];
|
|
isLess = isJoinedPathAlive < (uint8_t)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<uint8_t *>(attribute[1]);
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<uint8_t *>(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<msvc::string *>((attrValue._buf)))->msvc::string::assign(&s_empty,0);
|
|
psVar4 = &attrValue;
|
|
cleanupFlags = cleanupFlags | 0x2000;
|
|
}
|
|
else {
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<uint8_t *>(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<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<std_string *>(gridGfxRoot._buf))) + 0x0)));
|
|
}
|
|
(GHIDRA_CAST<msvc::string *>((joinedPath._buf)))->msvc::string::concat(GHIDRA_INT(this),psVar4,
|
|
GHIDRA_CAST<uint8_t *>(rootText),gridGfxRoot._size
|
|
,strCursor,GHIDRA_UINT(psVar4));
|
|
psVar4 = &joinedPath;
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x17;
|
|
cleanupFlags = cleanupFlags | 0x4001000;
|
|
}
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x108))))))->msvc::string::_Tidy_deallocate();
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x108))) = psVar4->_buf[0];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x109))) = psVar4->_buf[1];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x10a))) = psVar4->_buf[2];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x10b))) = psVar4->_buf[3];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x10c))) = psVar4->_buf[4];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x10d))) = psVar4->_buf[5];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x10e))) = psVar4->_buf[6];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x10f))) = psVar4->_buf[7];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x110))) = psVar4->_buf[8];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x111))) = psVar4->_buf[9];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x112))) = psVar4->_buf[10];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x113))) = psVar4->_buf[0xb];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x114))) = psVar4->_buf[0xc];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x115))) = psVar4->_buf[0xd];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x116))) = psVar4->_buf[0xe];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x117))) = psVar4->_buf[0xf];
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x118))) = psVar4->_size;
|
|
(*GHIDRA_CAST<uint32_t *>((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<uint32_t *>((GHIDRA_CAST<char *>(&((void *)attrValue._buf)) + 0x0)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(attrValue._buf)) + 0x0))) + -4);
|
|
freeSize = attrValue._capacity + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(attrValue._buf)) + 0x0))) - GHIDRA_INT(freeBlock)) -
|
|
4U) goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x10;
|
|
(*GHIDRA_CAST<uint8_t *>((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<uint8_t *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
isLess = isJoinedPathAlive < (uint8_t)*pcVar5;
|
|
if (isJoinedPathAlive != *pcVar5) {
|
|
LAB_00933e50:
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_00933e55;
|
|
}
|
|
if (isJoinedPathAlive == 0) break;
|
|
isJoinedPathAlive = strCursor[1];
|
|
isLess = isJoinedPathAlive < (uint8_t)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<uint8_t *>(attribute[1]);
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<uint8_t *>(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<msvc::string *>((attrValue._buf)))->msvc::string::assign(&s_empty,0);
|
|
psVar4 = &attrValue;
|
|
cleanupFlags = cleanupFlags | 0x8000;
|
|
}
|
|
else {
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<uint8_t *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
psVar4 = GHIDRA_CAST<std_string *>(FUN_00421620(strCursor));
|
|
(*GHIDRA_CAST<uint8_t *>((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<uint32_t *>((GHIDRA_CAST<char *>(&((void *)attrValue._buf)) + 0x0)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(attrValue._buf)) + 0x0))) + -4);
|
|
freeSize = attrValue._capacity + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(attrValue._buf)) + 0x0))) - GHIDRA_INT(freeBlock))
|
|
- 4U) goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0x10;
|
|
(*GHIDRA_CAST<uint8_t *>((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<uint8_t *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
isLess = isJoinedPathAlive < (uint8_t)*pcVar5;
|
|
if (isJoinedPathAlive != *pcVar5) {
|
|
LAB_00933f94:
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_00933f99;
|
|
}
|
|
if (isJoinedPathAlive == 0) break;
|
|
isJoinedPathAlive = strCursor[1];
|
|
isLess = isJoinedPathAlive < (uint8_t)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<uint8_t *>(attribute[1]) != GHIDRA_CAST<uint8_t *>(0x0)) {
|
|
valueText = GHIDRA_CAST<uint8_t *>(attribute[1]);
|
|
}
|
|
iVar3 = atoi(GHIDRA_CAST<char *>(valueText));
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config.waterPitsMode)) + 0x0))) = (uint8_t)iVar3;
|
|
}
|
|
else {
|
|
pcVar5 = "reversewatergfx";
|
|
strCursor = &g_xmlNullStr;
|
|
if (valueText != GHIDRA_CAST<uint8_t *>(0x0)) {
|
|
strCursor = valueText;
|
|
}
|
|
do {
|
|
isJoinedPathAlive = *strCursor;
|
|
isLess = isJoinedPathAlive < (uint8_t)*pcVar5;
|
|
if (isJoinedPathAlive != *pcVar5) {
|
|
LAB_00933ff4:
|
|
freeSize = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_00933ff9;
|
|
}
|
|
if (isJoinedPathAlive == 0) break;
|
|
isJoinedPathAlive = strCursor[1];
|
|
isLess = isJoinedPathAlive < (uint8_t)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<uint8_t *>(attribute[1]) != GHIDRA_CAST<uint8_t *>(0x0)) {
|
|
valueText = GHIDRA_CAST<uint8_t *>(attribute[1]);
|
|
}
|
|
msvc::string::string_from_cstr
|
|
(joinedPath._buf,valueText);
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config.waterPitsMode)) + 0x1))) =
|
|
string_to_bool(&joinedPath);
|
|
(GHIDRA_CAST<msvc::string *>((joinedPath._buf)))->msvc::string::_Tidy_deallocate();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} while ((attribute[4] != 0) &&
|
|
(attribute = GHIDRA_CAST<uint32_t *>(attribute[6]), attribute != GHIDRA_CAST<uint32_t *>(0x0)));
|
|
}
|
|
if (config.backdropId - 1U < 0x3e) {
|
|
BackdropConfig::operator_assign
|
|
(GHIDRA_CAST<BackdropConfig *>((GHIDRA_INT(this) + config.backdropId * 0x13c + 0x154)),&config);
|
|
}
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 4;
|
|
(GHIDRA_CAST<msvc::string *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(config)) + 0x120))))))->msvc::string::_Tidy_deallocate();
|
|
if (0xf < (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_UINT(config))) + 0x11c)))) {
|
|
freeSize = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x11c))) + 1;
|
|
freeBlock = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((void *)config)) + 0x108)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x108))) + -4);
|
|
freeSize = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x11c))) + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x108))) - GHIDRA_INT(freeBlock)) - 4U) goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
if (0xf < (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_UINT(config))) + 0x104)))) {
|
|
freeSize = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x104))) + 1;
|
|
freeBlock = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((void *)config)) + 0xf0)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0xf0))) + -4);
|
|
freeSize = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x104))) + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0xf0))) - GHIDRA_INT(freeBlock)) - 4U) goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
if (0xf < (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_UINT(config))) + 0xec)))) {
|
|
freeSize = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0xec))) + 1;
|
|
freeBlock = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((void *)config)) + 0xd8)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0xd8))) + -4);
|
|
freeSize = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0xec))) + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0xd8))) - GHIDRA_INT(freeBlock)) - 4U) goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
if (0xf < (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_UINT(config))) + 0xd4)))) {
|
|
freeSize = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0xd4))) + 1;
|
|
freeBlock = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((void *)config)) + 0xc0)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0xc0))) + -4);
|
|
freeSize = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0xd4))) + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0xc0))) - GHIDRA_INT(freeBlock)) - 4U) goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
if (0xf < (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_UINT(config))) + 0xbc)))) {
|
|
freeSize = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0xbc))) + 1;
|
|
freeBlock = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((void *)config)) + 0xa8)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0xa8))) + -4);
|
|
freeSize = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0xbc))) + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0xa8))) - GHIDRA_INT(freeBlock)) - 4U) goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
if (0xf < (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_UINT(config))) + 0xa4)))) {
|
|
freeSize = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0xa4))) + 1;
|
|
freeBlock = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((void *)config)) + 0x90)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x90))) + -4);
|
|
freeSize = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0xa4))) + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x90))) - GHIDRA_INT(freeBlock)) - 4U) goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
if (0xf < (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_UINT(config))) + 0x8c)))) {
|
|
freeSize = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x8c))) + 1;
|
|
freeBlock = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((void *)config)) + 0x78)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x78))) + -4);
|
|
freeSize = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x8c))) + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x78))) - GHIDRA_INT(freeBlock)) - 4U) goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
if (0xf < (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_UINT(config))) + 0x60)))) {
|
|
freeSize = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x60))) + 1;
|
|
freeBlock = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((void *)config)) + 0x4c)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x4c))) + -4);
|
|
freeSize = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x60))) + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x4c))) - GHIDRA_INT(freeBlock)) - 4U) goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
if (0xf < (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_UINT(config))) + 0x48)))) {
|
|
freeSize = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x48))) + 1;
|
|
freeBlock = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((void *)config)) + 0x34)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x34))) + -4);
|
|
freeSize = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x48))) + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x34))) - GHIDRA_INT(freeBlock)) - 4U) goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
if (0xf < (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_UINT(config))) + 0x30)))) {
|
|
freeSize = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x30))) + 1;
|
|
freeBlock = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((void *)config)) + 0x1c)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x1c))) + -4);
|
|
freeSize = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x30))) + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x1c))) - GHIDRA_INT(freeBlock)) - 4U) goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
if (0xf < (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_UINT(config))) + 0x18)))) {
|
|
freeSize = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x18))) + 1;
|
|
freeBlock = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((void *)config)) + 0x4)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x4))) + -4);
|
|
freeSize = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(config)) + 0x18))) + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<uint32_t *>((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<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 2;
|
|
if (0xf < effectsGfxRoot._capacity) {
|
|
freeSize = effectsGfxRoot._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((void *)effectsGfxRoot._buf)) + 0x0)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(effectsGfxRoot._buf)) + 0x0))) + -4);
|
|
freeSize = effectsGfxRoot._capacity + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(effectsGfxRoot._buf)) + 0x0))) - GHIDRA_INT(freeBlock)) - 4U) goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 1;
|
|
if (0xf < gridGfxRoot._capacity) {
|
|
freeSize = gridGfxRoot._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((void *)gridGfxRoot._buf)) + 0x0)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(gridGfxRoot._buf)) + 0x0))) + -4);
|
|
freeSize = gridGfxRoot._capacity + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(gridGfxRoot._buf)) + 0x0))) - GHIDRA_INT(freeBlock)) - 4U) goto LAB_009343c2;
|
|
}
|
|
operator_delete(freeBlock,freeSize);
|
|
}
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0;
|
|
if (0xf < gfxRoot._capacity) {
|
|
freeSize = gfxRoot._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((void *)gfxRoot._buf)) + 0x0)));
|
|
if (0xfff < freeSize) {
|
|
freeBlock = *(void **)((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(gfxRoot._buf)) + 0x0))) + -4);
|
|
freeSize = gfxRoot._capacity + 0x24;
|
|
if (0x1f < ((*GHIDRA_CAST<uint32_t *>((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()
|
|
{
|
|
ANM2 *this_00;
|
|
code *pcVar1;
|
|
uint8_t isAnimChanged;
|
|
char cVar2;
|
|
std_string *anim;
|
|
float *nullFrame;
|
|
void *sprite;
|
|
int *piVar3;
|
|
int iconCount;
|
|
AnimationState *lastLayer;
|
|
uint32_t uVar4;
|
|
uint32_t *ptr;
|
|
int glyphCount;
|
|
uint32_t uVar5;
|
|
float frame;
|
|
uint32_t uVar6;
|
|
Vector glyphPos;
|
|
void *offsetsBegin;
|
|
uint32_t local_94;
|
|
int offsetsCapacityEnd;
|
|
int device;
|
|
int *deviceRefCount;
|
|
Vector controlsPos;
|
|
uint32_t rowOffset;
|
|
void *local_78;
|
|
int framesEnd;
|
|
int framesCapacityEnd;
|
|
EntityConfig_Player *local_6c;
|
|
EntityConfig_Player *local_68;
|
|
uint32_t jitterSeed;
|
|
int controllerIndex;
|
|
uint32_t *local_5c;
|
|
void *framesBegin;
|
|
float cursorX;
|
|
float local_50;
|
|
uint32_t *iconRow;
|
|
int row;
|
|
int playerType;
|
|
void *controlsSprite;
|
|
void *displayName [4];
|
|
uint32_t displayNameSize;
|
|
uint32_t displayNameCapacity;
|
|
uint32_t local_24;
|
|
uint8_t *puStack_20;
|
|
void *local_1c;
|
|
uint8_t *puStack_18;
|
|
void *local_14;
|
|
uint32_t colorComponent;
|
|
Game *game;
|
|
|
|
puStack_20 = GHIDRA_CAST<uint8_t *>((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<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1ac5])) + 0x1)));
|
|
playerType = g_manager->_startPlayerType;
|
|
controlsSprite = sprite;
|
|
if (g_manager->_netplayManager == *GHIDRA_CAST<int *>((g_manager + 1))) {
|
|
puStack_20 = GHIDRA_CAST<uint8_t *>((displayName + 0xe));
|
|
}
|
|
else {
|
|
FUN_0090b070(local_24);
|
|
glyphCount = FUN_004253d0();
|
|
playerType = *GHIDRA_CAST<int *>((glyphCount + 0x13c0));
|
|
}
|
|
if (playerType < 0x29) {
|
|
isAnimChanged = ANM2::SetAnimation(sprite,GHIDRA_CAST<uint8_t *>("Controls"),1);
|
|
if ((isAnimChanged != 0) && (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1ad6])) + 0x2)))) != 0)) {
|
|
frame = (float)playerType;
|
|
goto LAB_0093493f;
|
|
}
|
|
}
|
|
else {
|
|
sprite = (g_manager->_entityConfig)._players._begin;
|
|
if (((playerType < (GHIDRA_INT((g_manager->_entityConfig)._players._end) - GHIDRA_INT(sprite)) / 0x148) &&
|
|
(local_6c = GHIDRA_CAST<EntityConfig_Player *>((playerType * 0x148 + GHIDRA_INT(sprite))),
|
|
local_6c != GHIDRA_CAST<EntityConfig_Player *>(0x0))) &&
|
|
(this_00 = local_6c->_moddedControlsANM2, this_00 != 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 = ANM2::SetAnimation(this_00,GHIDRA_CAST<uint8_t *>(anim),1);
|
|
if (((isAnimChanged != 0) && ((this_00->_animState)._animData != (void *)0x0)) &&
|
|
(AnimationState::SetFrameFloat(&this_00->_animState,0.0),
|
|
(this_00->_animState)._animData != (void *)0x0)) {
|
|
(this_00->_animState)._isPlaying = 0;
|
|
}
|
|
local_14 = (void *)0xffffffff;
|
|
if (0xf < displayNameCapacity) {
|
|
uVar4 = displayNameCapacity + 1;
|
|
sprite = displayName[0];
|
|
if (0xfff < uVar4) {
|
|
sprite = *(void **)(GHIDRA_INT(displayName[0]) + -4);
|
|
uVar4 = displayNameCapacity + 0x24;
|
|
if (0x1f < GHIDRA_UINT((GHIDRA_INT(displayName[0]) + (-4 - GHIDRA_INT(sprite))))) {
|
|
LAB_009348c4:
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(sprite,uVar4);
|
|
}
|
|
displayNameSize = 0;
|
|
displayNameCapacity = 0xf;
|
|
displayName[0] = (void *)(GHIDRA_UINT(displayName[0]) & 0xffffff00);
|
|
sprite = local_6c->_moddedControlsANM2;
|
|
if (sprite != (void *)0x0) {
|
|
controlsSprite = sprite;
|
|
goto LAB_00934952;
|
|
}
|
|
}
|
|
sprite = &(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1ac5])) + 0x1)));
|
|
isAnimChanged = ANM2::SetAnimation(sprite,GHIDRA_CAST<uint8_t *>("Controls"),1);
|
|
if ((isAnimChanged != 0) && (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1ad6])) + 0x2)))) != 0)) {
|
|
frame = 0.0;
|
|
LAB_0093493f:
|
|
sprite = &(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1ac5])) + 0x1)));
|
|
AnimationState::SetFrameFloat(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1ad5])) + 0x1)))),frame);
|
|
if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1ad6])) + 0x2)))) != 0) {
|
|
*GHIDRA_CAST<uint8_t *>((this + 0x1adc)) = 0;
|
|
}
|
|
}
|
|
}
|
|
LAB_00934952:
|
|
glyphCount = GHIDRA_INT(sprite) + 0xa8;
|
|
controlsPos.y = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a5e])) + 0x2)))) + 91.0;
|
|
controlsPos.x = (*GHIDRA_CAST<float *>((this + 0x1a60)) + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a5d])) + 0x1))))) * 0.5;
|
|
uVar5 = 0x3f800000;
|
|
if (*GHIDRA_CAST<int *>((this + 0x70)) == 3) {
|
|
uVar5 = 0x3f19999a;
|
|
uVar6 = 0x3f333333;
|
|
}
|
|
else {
|
|
uVar6 = 0x3f800000;
|
|
}
|
|
*GHIDRA_CAST<uint32_t *>(glyphCount) = uVar6;
|
|
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(sprite) + 0xac)) = uVar5;
|
|
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(sprite) + 0xb0)) = uVar5;
|
|
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(sprite) + 0xb4)) = 0x3f800000;
|
|
if (*GHIDRA_CAST<char *>((GHIDRA_CAST<char *>(controlsSprite) + 0x109)) != '\0') {
|
|
if (*GHIDRA_CAST<char *>((GHIDRA_CAST<char *>(controlsSprite) + 0x70)) == '\0') {
|
|
AnimationState::Render
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_INT(controlsSprite) + 0x30)),&controlsPos,&g_vectorZero,
|
|
&g_vectorZero);
|
|
lastLayer = GHIDRA_CAST<AnimationState *>((GHIDRA_INT(controlsSprite) + 0x50));
|
|
}
|
|
else {
|
|
AnimationState::Render
|
|
(GHIDRA_CAST<AnimationState *>((GHIDRA_INT(controlsSprite) + 0x50)),&controlsPos,&g_vectorZero,
|
|
&g_vectorZero);
|
|
lastLayer = GHIDRA_CAST<AnimationState *>((GHIDRA_INT(controlsSprite) + 0x30));
|
|
}
|
|
AnimationState::Render(lastLayer,&controlsPos,&g_vectorZero,&g_vectorZero);
|
|
}
|
|
if (&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b59])) + 0x1))) != GHIDRA_CAST<uint8_t *>(glyphCount)) {
|
|
uVar5 = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(sprite) + 0xac));
|
|
uVar6 = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(sprite) + 0xb0));
|
|
colorComponent = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(sprite) + 0xb4));
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b59])) + 0x1)))) = *GHIDRA_CAST<uint32_t *>(glyphCount);
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b5a])) + 0x2)))) = uVar5;
|
|
*GHIDRA_CAST<uint32_t *>((this + 0x1b5c)) = uVar6;
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b5d])) + 0x1)))) = colorComponent;
|
|
uVar5 = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(sprite) + 0xbc));
|
|
uVar6 = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(sprite) + 0xc0));
|
|
colorComponent = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(sprite) + 0xc4));
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b5e])) + 0x2)))) = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(sprite) + 0xb8));
|
|
*GHIDRA_CAST<uint32_t *>((this + 0x1b60)) = uVar5;
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b61])) + 0x1)))) = uVar6;
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b62])) + 0x2)))) = colorComponent;
|
|
*GHIDRA_CAST<uint64_t *>((this + 0x1b64)) = *GHIDRA_CAST<uint64_t *>((GHIDRA_CAST<char *>(sprite) + 200));
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b66])) + 0x2)))) = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(sprite) + 0xd0));
|
|
}
|
|
game = g_game;
|
|
piVar3 = (g_game->_playerManager)._playerList._begin;
|
|
if (GHIDRA_INT((g_game->_playerManager)._playerList._end) - GHIDRA_INT(piVar3) >> 2 == 0) {
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("(GHIDRA_CAST<PlayerManager *>(()))->PlayerManager::GetPlayer() : There are no players! \n"));
|
|
piVar3 = (game->_playerManager)._playerList._begin;
|
|
}
|
|
controllerIndex = *GHIDRA_CAST<int *>((*piVar3 + 0x1618));
|
|
if (g_manager->_netplayManager == *GHIDRA_CAST<int *>((g_manager + 1))) {
|
|
LAB_00934aa5:
|
|
if (controllerIndex == 0) {
|
|
isAnimChanged = ANM2::SetAnimation(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b21])) + 0x1)))),GHIDRA_CAST<uint8_t *>("Keyboard"),1);
|
|
if (((isAnimChanged != 0) && (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b32])) + 0x2)))) != 0)) &&
|
|
(AnimationState::SetFrameFloat(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b31])) + 0x1)))),0.0),
|
|
*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b32])) + 0x2)))) != 0)) {
|
|
*GHIDRA_CAST<uint8_t *>((this + 0x1b38)) = 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<uint8_t *>((glyphCount + 8)) & 0x20) != 0 || (*GHIDRA_CAST<int *>((glyphCount + 900)) != 0)))) {
|
|
local_14 = (void *)0x2;
|
|
if (deviceRefCount == GHIDRA_CAST<int *>(0x0)) {
|
|
ExceptionList = local_1c;
|
|
return;
|
|
}
|
|
cVar2 = (**(code **)(*deviceRefCount + 0xc))();
|
|
if (cVar2 == '\0') {
|
|
ExceptionList = local_1c;
|
|
return;
|
|
}
|
|
if (g_inputDeviceRelease == (void *)0x0) {
|
|
ExceptionList = local_1c;
|
|
return;
|
|
}
|
|
(*g_inputDeviceRelease)(&device);
|
|
ExceptionList = local_1c;
|
|
return;
|
|
}
|
|
isAnimChanged = ANM2::SetAnimation(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b21])) + 0x1)))),&DAT_00b7b76c,1);
|
|
if (((isAnimChanged != 0) && (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b32])) + 0x2)))) != 0)) &&
|
|
(AnimationState::SetFrameFloat(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b31])) + 0x1)))),0.0),
|
|
*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b32])) + 0x2)))) != 0)) {
|
|
*GHIDRA_CAST<uint8_t *>((this + 0x1b38)) = 0;
|
|
}
|
|
local_14 = (void *)0x3;
|
|
if (((deviceRefCount != GHIDRA_CAST<int *>(0x0)) &&
|
|
(cVar2 = (**(code **)(*deviceRefCount + 0xc))(), cVar2 != '\0')) &&
|
|
(g_inputDeviceRelease != (void *)0x0)) {
|
|
(*g_inputDeviceRelease)(&device);
|
|
}
|
|
local_14 = (void *)0xffffffff;
|
|
LAB_00934be2:
|
|
iconCount = 8;
|
|
jitterSeed = *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a62])) + 0x2))));
|
|
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 {
|
|
uVar4 = rowOffset;
|
|
if (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(sprite) + 0x34)) != 0) {
|
|
nullFrame = AnimationState::GetNullFrameById(GHIDRA_CAST<AnimationState *>((GHIDRA_INT(sprite) + 0x30)),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 {
|
|
uVar4 = *local_5c;
|
|
if (uVar4 == 0xffffffff) break;
|
|
local_78 = framesBegin;
|
|
if (((playerType == 0x13) && ((g_manager->_optionsConfig)._jacobEsauControls == 1)) &&
|
|
(uVar4 == 10)) {
|
|
cursorX = cursorX - 4.0;
|
|
render_control_icon(this,0xb,(uint8_t)(framesEnd - GHIDRA_INT(framesBegin) >> 2),controllerIndex,
|
|
&local_50,&cursorX,&local_78,&offsetsBegin);
|
|
uVar4 = 9;
|
|
glyphCount = framesEnd - GHIDRA_INT(local_78);
|
|
}
|
|
else {
|
|
glyphCount = framesEnd - GHIDRA_INT(framesBegin);
|
|
}
|
|
render_control_icon(this,uVar4,(uint8_t)(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 == 0) {
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("RNG Seed is zero!\n"));
|
|
pcVar1 = (code *)swi(3);
|
|
(*pcVar1)();
|
|
return;
|
|
}
|
|
jitterSeed = jitterSeed >> 5 ^ jitterSeed;
|
|
jitterSeed = jitterSeed << 0xf ^ jitterSeed;
|
|
jitterSeed = jitterSeed >> 0x11 ^ jitterSeed;
|
|
glyphPos.y = (float)local_68 + (float)GHIDRA_INT((jitterSeed % 3 - 1));
|
|
glyphPos.x = cursorX + *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(local_5c) + GHIDRA_INT(local_50) * 4)) +
|
|
controlsPos.x + *nullFrame;
|
|
if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b32])) + 0x2)))) != 0) {
|
|
AnimationState::SetFrameFloat
|
|
(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b31])) + 0x1)))),
|
|
(float)*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(framesBegin) + GHIDRA_INT(local_50) * 4)));
|
|
}
|
|
if ((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b79])) + 0x2))) != '\0') {
|
|
if ((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b46])) + 0x2))) == '\0') {
|
|
AnimationState::Render
|
|
(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b31])) + 0x1)))),&glyphPos,&g_vectorZero,
|
|
&g_vectorZero);
|
|
lastLayer = GHIDRA_CAST<AnimationState *>((this + 0x1b3c));
|
|
}
|
|
else {
|
|
AnimationState::Render
|
|
(GHIDRA_CAST<AnimationState *>((this + 0x1b3c)),&glyphPos,&g_vectorZero,&g_vectorZero);
|
|
lastLayer = GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b31])) + 0x1))));
|
|
}
|
|
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<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),4);
|
|
if (local_5c != (void *)0x0) {
|
|
uVar4 = (offsetsCapacityEnd - GHIDRA_INT(local_5c) >> 2) * 4;
|
|
ptr = local_5c;
|
|
if (0xfff < uVar4) {
|
|
ptr = *GHIDRA_CAST<uint32_t **>((GHIDRA_CAST<char *>(local_5c) + -4));
|
|
uVar4 = uVar4 + 0x23;
|
|
if (0x1f < GHIDRA_UINT((GHIDRA_INT(local_5c) + (-4 - GHIDRA_INT(ptr))))) goto LAB_009348c4;
|
|
}
|
|
operator_delete(ptr,uVar4);
|
|
offsetsBegin = (void *)0x0;
|
|
local_94 = 0;
|
|
offsetsCapacityEnd = 0;
|
|
}
|
|
local_14 = (void *)0xffffffff;
|
|
if (framesBegin != (void *)0x0) {
|
|
uVar4 = framesCapacityEnd - GHIDRA_INT(framesBegin) & 0xfffffffc;
|
|
sprite = framesBegin;
|
|
if (0xfff < uVar4) {
|
|
sprite = *(void **)(GHIDRA_CAST<char *>(framesBegin) + -4);
|
|
uVar4 = uVar4 + 0x23;
|
|
if (0x1f < GHIDRA_UINT((GHIDRA_INT(framesBegin) + (-4 - GHIDRA_INT(sprite))))) goto LAB_009348c4;
|
|
}
|
|
operator_delete(sprite,uVar4);
|
|
local_78 = (void *)0x0;
|
|
framesEnd = 0;
|
|
framesCapacityEnd = 0;
|
|
}
|
|
uVar4 = rowOffset;
|
|
}
|
|
sprite = controlsSprite;
|
|
}
|
|
rowOffset = uVar4 + 0x14;
|
|
row = row + 1;
|
|
iconRow = iconRow + 5;
|
|
if (0x9f < rowOffset) {
|
|
ExceptionList = local_1c;
|
|
return;
|
|
}
|
|
} while( true );
|
|
}
|
|
|
|
// 00935270
|
|
uint32_t Backdrop::get_random_floor_variant()
|
|
{
|
|
int backdropType;
|
|
uint32_t uVar2;
|
|
RNG rng;
|
|
uint32_t local_8;
|
|
int temp_5f022e4712;
|
|
|
|
local_8 = __security_cookie ^ GHIDRA_INT(register0x00000010) - 4U;
|
|
temp_5f022e4712 = *GHIDRA_CAST<int *>((this + 0x70));
|
|
if (temp_5f022e4712 == 0x2d) {
|
|
if ((*GHIDRA_CAST<uint32_t *>((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 4)) + 0x44)) & 0x1000) != 0) {
|
|
uVar2 = (GHIDRA_CAST<RNG *>((GHIDRA_CAST<RNG *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a62])) + 0x2)))))))->RNG::RandomInt(*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1319])) + 0x1)))) - 1);
|
|
return uVar2;
|
|
}
|
|
}
|
|
else {
|
|
if ((temp_5f022e4712 == 0x2e) || (temp_5f022e4712 == 0x3b)) {
|
|
if ((*GHIDRA_CAST<uint32_t *>((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 4)) + 0x44)) & 0x1000) != 0) {
|
|
return 1;
|
|
}
|
|
uVar2 = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(this) + temp_5f022e4712 * 0x13c + 0x1c0));
|
|
goto LAB_00935378;
|
|
}
|
|
if ((((temp_5f022e4712 == 0x21) || (temp_5f022e4712 == 0x28)) &&
|
|
(backdropType = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 4)), backdropType != 0)) &&
|
|
((backdropType = *GHIDRA_CAST<int *>((backdropType + 0x10)), backdropType != 0 && (*GHIDRA_CAST<int *>((backdropType + 0x48)) != 1)))) {
|
|
uVar2 = (GHIDRA_CAST<RNG *>((GHIDRA_CAST<RNG *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a62])) + 0x2)))))))->RNG::RandomInt(*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + temp_5f022e4712 * 0x13c + 0x1c0)) - 1);
|
|
return uVar2;
|
|
}
|
|
}
|
|
uVar2 = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(this) + temp_5f022e4712 * 0x13c + 0x1c0));
|
|
if (temp_5f022e4712 != 0x2f) {
|
|
uVar2 = (GHIDRA_CAST<RNG *>((GHIDRA_CAST<RNG *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a62])) + 0x2)))))))->RNG::RandomInt(uVar2);
|
|
return uVar2;
|
|
}
|
|
LAB_00935378:
|
|
rng._seed = *GHIDRA_CAST<int *>((this + 0x1a68));
|
|
rng._shift3 = 0x1b;
|
|
rng._shift1 = 4;
|
|
rng._shift2 = 3;
|
|
uVar2 = (GHIDRA_CAST<RNG *>((&rng)))->RNG::RandomInt(uVar2);
|
|
return uVar2;
|
|
}
|
|
|
|
// 009353b0
|
|
void Backdrop::render_ashpit_ash()
|
|
{
|
|
int iVar1;
|
|
char isLastRef;
|
|
uint32_t uVar2;
|
|
int *loadedImage;
|
|
Backdrop *in_ECX;
|
|
uint8_t auStackY_ec [128];
|
|
void *pvVar3;
|
|
int *targetRefCount;
|
|
Backdrop *targetRefCount_00;
|
|
int *floorImage_00;
|
|
int *in_stack_ffffffac;
|
|
int *piVar4;
|
|
int *piVar5;
|
|
uint8_t auStack_4a [2];
|
|
int nFloorImage;
|
|
int *nFloorImageRefCount;
|
|
int ashImage;
|
|
int *ashImageRefCount;
|
|
int floorImage;
|
|
int *floorImageRefCount;
|
|
int lFloorImage;
|
|
int *local_1c;
|
|
uint8_t *local_18;
|
|
uint8_t *local_14;
|
|
void *local_10;
|
|
uint8_t *puStack_c;
|
|
uint32_t local_8;
|
|
int roomConfigData;
|
|
int roomShape;
|
|
|
|
local_8 = 0xffffffff;
|
|
puStack_c = &LAB_00b0b1e5;
|
|
local_10 = ExceptionList;
|
|
ExceptionList = &local_10;
|
|
uVar2 = get_random_floor_variant(in_ECX);
|
|
iVar1 = *GHIDRA_CAST<int *>((in_ECX + 0x70));
|
|
if (((iVar1 != 0x2e) && (iVar1 != 0x3b)) ||
|
|
((*GHIDRA_CAST<uint32_t *>((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 4)) + 0x44)) & 0x1000) == 0)) {
|
|
if (((iVar1 == 0x34) || (iVar1 == 0x35)) || (iVar1 == 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 + 0x14)))))->Sprite::RenderLayer(0,&g_vectorZero,&g_vectorZero,&g_vectorZero);
|
|
DAT_00c33910 = 1;
|
|
_glfw_context_reset();
|
|
ExceptionList = local_10;
|
|
return;
|
|
}
|
|
piVar5 = GHIDRA_CAST<int *>(0x9355d5);
|
|
uVar2 = get_random_floor_variant(in_ECX);
|
|
local_1c = GHIDRA_CAST<int *>((auStack_4a + -10));
|
|
loadedImage = GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x11])) + 0x1))));
|
|
piVar4 = GHIDRA_CAST<int *>(0x9355ea);
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((auStack_4a + -10)))->KAGE::SmartPointer::operator_assign(loadedImage);
|
|
local_18 = auStackY_ec + 0x90;
|
|
local_8 = 10;
|
|
targetRefCount_00 = in_ECX + 0xc;
|
|
pvVar3 = (void *)0x935602;
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((auStackY_ec + 0x90)))->KAGE::SmartPointer::operator_assign(targetRefCount_00);
|
|
local_8 = CONCAT31((*GHIDRA_CAST<uint8_t *>((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,uVar2,GHIDRA_CAST<RNG *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a62])) + 0x2)))),pvVar3,GHIDRA_CAST<int *>(targetRefCount_00),piVar4,
|
|
loadedImage,in_stack_ffffffac,piVar5);
|
|
ExceptionList = local_10;
|
|
return;
|
|
}
|
|
Manager::LoadImage(&ashImage,GHIDRA_CAST<uint8_t *>("gfx/backdrop/04x_ashpit_ash.png"));
|
|
loadedImage = GHIDRA_CAST<int *>(0x0);
|
|
local_8 = 0;
|
|
piVar4 = GHIDRA_CAST<int *>(0x935430);
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((&floorImage)))->KAGE::SmartPointer::SmartPointer((void *)0x0);
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 1;
|
|
iVar1 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 4));
|
|
roomConfigData = *GHIDRA_CAST<int *>((iVar1 + 0x10));
|
|
roomShape = *GHIDRA_CAST<int *>((roomConfigData + 0x48));
|
|
if (roomShape - 9U < 4) {
|
|
loadedImage = Manager::LoadImage(&lFloorImage,GHIDRA_CAST<uint8_t *>("gfx/backdrop/04x_ashpit_ash_Lfloor.png"));
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 2;
|
|
piVar4 = GHIDRA_CAST<int *>(0x93546b);
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((&floorImage)))->KAGE::SmartPointer::operator_assign(loadedImage);
|
|
(*GHIDRA_CAST<uint8_t *>((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 (((iVar1 == 0) || (roomConfigData == 0)) ||
|
|
((roomShape != 2 && (((roomShape != 3 && (roomShape != 5)) && (roomShape != 7))))))
|
|
goto LAB_009354f2;
|
|
loadedImage = Manager::LoadImage(&nFloorImage,GHIDRA_CAST<uint8_t *>("gfx/backdrop/04x_ashpit_ash_Nfloor.png"));
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 4;
|
|
piVar4 = GHIDRA_CAST<int *>(0x9354c6);
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((&floorImage)))->KAGE::SmartPointer::operator_assign(loadedImage);
|
|
(*GHIDRA_CAST<uint8_t *>((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;
|
|
}
|
|
piVar4 = GHIDRA_CAST<int *>(0x9354eb);
|
|
(*g_imageReleaseFn)();
|
|
LAB_009354f2:
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 1;
|
|
local_14 = auStack_4a + -10;
|
|
piVar5 = &floorImage;
|
|
floorImage_00 = GHIDRA_CAST<int *>(0x935503);
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((auStack_4a + -10)))->KAGE::SmartPointer::operator_assign(piVar5);
|
|
local_18 = auStackY_ec + 0x90;
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 6;
|
|
targetRefCount = &ashImage;
|
|
pvVar3 = (void *)0x935518;
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((auStackY_ec + 0x90)))->KAGE::SmartPointer::operator_assign(targetRefCount);
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 7;
|
|
(GHIDRA_CAST<shared_ptr *>((auStackY_ec + 0x88)))->shared_ptr::assign(in_ECX);
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 1;
|
|
render_floor_to_target
|
|
(in_ECX,uVar2,GHIDRA_CAST<RNG *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a62])) + 0x2)))),pvVar3,targetRefCount,floorImage_00,
|
|
piVar5,piVar4,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<uint8_t *>((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()
|
|
{
|
|
Backdrop *pBVar1;
|
|
uint8_t isPreAscentMomRoom;
|
|
uint8_t isFlipX;
|
|
uint32_t uVar2;
|
|
Entity *spawnedEffect;
|
|
float *quad;
|
|
float *chosenSrcRect;
|
|
Backdrop *in_ECX;
|
|
int iVar3;
|
|
RNG *pRVar4;
|
|
uint32_t *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;
|
|
uint32_t secondVariant;
|
|
KColor *color_09;
|
|
KColor *color_10;
|
|
ColorMod *pCVar5;
|
|
int *extraout_EDX;
|
|
uint16_t uVar8;
|
|
int *piVar6;
|
|
uint16_t extraout_var;
|
|
uint16_t extraout_var_00;
|
|
Backdrop *pBVar7;
|
|
int iVar9;
|
|
code *pcVar10;
|
|
float *dstBuf;
|
|
Backdrop *pBVar11;
|
|
float fVar12;
|
|
void *pvVar13;
|
|
float fVar14;
|
|
float left;
|
|
float fVar15;
|
|
uint32_t uVar16;
|
|
TypeDescriptor *pTVar17;
|
|
TypeDescriptor *pTVar18;
|
|
uint32_t uVar19;
|
|
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;
|
|
uint8_t 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;
|
|
uint8_t 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;
|
|
uint32_t 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;
|
|
uint32_t 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;
|
|
uint8_t 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;
|
|
uint32_t segmentIndex;
|
|
float local_1bc;
|
|
float local_1b8;
|
|
float local_1b4;
|
|
int *local_1b0;
|
|
float local_1ac;
|
|
Room *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;
|
|
uint32_t local_38;
|
|
uint8_t local_34 [12];
|
|
float local_28;
|
|
uint32_t local_24;
|
|
uint8_t *puStack_20;
|
|
void *local_1c;
|
|
uint8_t *puStack_18;
|
|
uint32_t local_14;
|
|
Game *game;
|
|
bool isHorizontalNarrow;
|
|
Room *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 (*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>((in_ECX + 0x70)) * 0x13c + 0x1b8 + GHIDRA_INT(in_ECX))) == 0) {
|
|
return;
|
|
}
|
|
ExceptionList = &local_1c;
|
|
local_1a4 = in_ECX;
|
|
BackdropConfig::copy_constructor
|
|
(&config,GHIDRA_CAST<BackdropConfig *>((*GHIDRA_CAST<int *>((in_ECX + 0x70)) * 0x13c + 0x154 + GHIDRA_INT(in_ECX))));
|
|
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 **)&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[2])) + 0x2))),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();
|
|
iVar3 = *GHIDRA_CAST<int *>((in_ECX + 0x70));
|
|
if ((iVar3 == 0) || ((char)config.unk1 != '\0')) goto LAB_0093b1df;
|
|
local_1cc = 4.2039e-45;
|
|
if (iVar3 == 0x14) {
|
|
local_1a8 = g_game->_room;
|
|
iVar3 = 0x14;
|
|
if (local_1a8->_roomType != 2) {
|
|
isPreAscentMomRoom = (GHIDRA_CAST<Game *>((g_game)))->Game::IsGreedMode();
|
|
iVar3 = *GHIDRA_CAST<int *>((in_ECX + 0x70));
|
|
if (isPreAscentMomRoom == 0) goto LAB_009375f3;
|
|
}
|
|
switch(local_1a8->_shopLevel) {
|
|
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;
|
|
}
|
|
pCVar5 = GHIDRA_CAST<ColorMod *>((GHIDRA_INT(in_ECX) + iVar3 * 0x13c + 0x1b8));
|
|
LAB_009375b6:
|
|
fVar12 = pCVar5->_tint[0];
|
|
pRVar4 = GHIDRA_CAST<RNG *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a62])) + 0x2))));
|
|
LAB_0093767c:
|
|
local_1ac = (float)(GHIDRA_CAST<RNG *>((pRVar4)))->RNG::RandomInt(GHIDRA_UINT(fVar12));
|
|
}
|
|
else {
|
|
LAB_009375f3:
|
|
local_1a8 = GHIDRA_CAST<Room *>((iVar3 * 0x13c + GHIDRA_INT(in_ECX)));
|
|
if ((iVar3 != 0x2e) && (iVar3 != 0x3b)) {
|
|
pCVar5 = GHIDRA_CAST<ColorMod *>((local_1a8->_gridEntities + 0x65));
|
|
if (iVar3 != 0x2f) goto LAB_009375b6;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_34)) + 0x0))) = *GHIDRA_CAST<uint32_t *>((in_ECX + 0x1a68));
|
|
fVar12 = pCVar5->_tint[0];
|
|
LAB_0093766c:
|
|
local_28 = 3.78351e-44;
|
|
pRVar4 = GHIDRA_CAST<RNG *>(local_34);
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_34)) + 0x4))) = 4;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_34)) + 0x8))) = 3;
|
|
goto LAB_0093767c;
|
|
}
|
|
if ((*GHIDRA_CAST<uint32_t *>((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 4)) + 0x44)) & 0x1000) == 0) {
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_34)) + 0x0))) = *GHIDRA_CAST<uint32_t *>((in_ECX + 0x1a68));
|
|
fVar12 = (GHIDRA_CAST<ColorMod *>((local_1a8->_gridEntities + 0x65)))->_tint[0];
|
|
goto LAB_0093766c;
|
|
}
|
|
local_1ac = 1.4013e-45;
|
|
}
|
|
iVar9 = config.wallVariants;
|
|
iVar3 = *GHIDRA_CAST<int *>((in_ECX + 0x70));
|
|
if (iVar3 == 1) {
|
|
if (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 8)) == 5) {
|
|
config.wallVariants = 1;
|
|
pvVar13 = g_game->_room;
|
|
local_1ac = (float)iVar9;
|
|
local_1a8 = *GHIDRA_CAST<Room **>((GHIDRA_CAST<char *>(pvVar13) + 0x14));
|
|
local_1b8 = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(pvVar13) + 0x18));
|
|
local_1b4 = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(pvVar13) + 0x1c));
|
|
local_1bc = *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(pvVar13) + 0x20));
|
|
if (0 < *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(pvVar13) + 0x10)) * *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(pvVar13) + 0xc))) {
|
|
iVar3 = 0;
|
|
do {
|
|
uVar2 = *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a62])) + 0x2))));
|
|
if (uVar2 == 0) {
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("RNG Seed is zero!\n"));
|
|
uVar2 = *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a62])) + 0x2))));
|
|
if (uVar2 == 0) {
|
|
pcVar10 = (code *)swi(3);
|
|
(*pcVar10)();
|
|
return;
|
|
}
|
|
}
|
|
uVar2 = uVar2 >> ((uint8_t)*GHIDRA_CAST<uint32_t *>((in_ECX + 0x1a64)) & 0x1f) ^ uVar2;
|
|
uVar2 = uVar2 << ((uint8_t)*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a65])) + 0x1)))) & 0x1f) ^ uVar2;
|
|
uVar2 = uVar2 >> ((uint8_t)*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a66])) + 0x2)))) & 0x1f) ^ uVar2;
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a62])) + 0x2)))) = uVar2;
|
|
if ((uVar2 & 1) != 0) {
|
|
iVar9 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 0xc));
|
|
local_25c.x = (float)(iVar3 % iVar9) * 40.0 + 40.0;
|
|
local_25c.y = (float)(iVar3 / iVar9) * 40.0 + 120.0;
|
|
fVar12 = local_25c.y;
|
|
if (local_25c.y <= local_1b8 + 20.0) {
|
|
fVar12 = local_1b8 + 20.0;
|
|
}
|
|
if (local_1bc - 20.0 <= fVar12) {
|
|
fVar12 = local_1bc - 20.0;
|
|
}
|
|
fVar14 = local_25c.x;
|
|
if (local_25c.x <= (float)local_1a8 + 20.0) {
|
|
fVar14 = (float)local_1a8 + 20.0;
|
|
}
|
|
if (local_1b4 - 20.0 <= fVar14) {
|
|
fVar14 = local_1b4 - 20.0;
|
|
}
|
|
if ((fVar14 == local_25c.x) && (fVar12 == local_25c.y)) {
|
|
uVar2 = Random();
|
|
uVar19 = 0;
|
|
pTVar18 = &IsaacRepentancePlus::Entity_Effect::RTTI_Type_Descriptor;
|
|
pTVar17 = &IsaacRepentancePlus::Entity::RTTI_Type_Descriptor;
|
|
uVar16 = 0;
|
|
spawnedEffect =
|
|
(GHIDRA_CAST<Game *>((g_game)))->Game::Spawn(1000,7,&local_25c,&g_vectorZero,GHIDRA_CAST<Entity *>(0x0),0,uVar2);
|
|
local_1b0 = GHIDRA_CAST<int *>(__RTDynamicCast(spawnedEffect,uVar16,pTVar17,pTVar18,uVar19));
|
|
uVar2 = *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a62])) + 0x2))));
|
|
if (uVar2 == 0) {
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("RNG Seed is zero!\n"));
|
|
uVar2 = *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a62])) + 0x2))));
|
|
if (uVar2 == 0) {
|
|
pcVar10 = (code *)swi(3);
|
|
(*pcVar10)();
|
|
return;
|
|
}
|
|
}
|
|
uVar2 = uVar2 >> ((uint8_t)*GHIDRA_CAST<uint32_t *>((in_ECX + 0x1a64)) & 0x1f) ^ uVar2;
|
|
uVar2 = uVar2 << ((uint8_t)*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a65])) + 0x1)))) & 0x1f) ^ uVar2;
|
|
uVar2 = uVar2 >> ((uint8_t)*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a66])) + 0x2)))) & 0x1f) ^ uVar2;
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a62])) + 0x2)))) = uVar2;
|
|
fVar14 = (float)((double)GHIDRA_INT(uVar2) + __uint_to_double_fixup[-(GHIDRA_INT(uVar2) >> 0x1f)]) *
|
|
2.3283062e-10 * 2.5 + 0.5;
|
|
fVar12 = fVar14 * g_vectorOne.x;
|
|
local_1b0[0x3a] = GHIDRA_INT((fVar14 * g_vectorOne.y));
|
|
local_1b0[0x39] = GHIDRA_INT(fVar12);
|
|
(**(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)));
|
|
iVar3 = *GHIDRA_CAST<int *>((in_ECX + 0x70));
|
|
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 (iVar3 == 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 ((iVar3 != 0x1e) && (iVar3 != 0x27)) goto LAB_009379ce;
|
|
}
|
|
local_1a8 = g_game->_room;
|
|
local_1b4 = (float)(local_1a8->_gridHeight * local_1a8->_gridWidth);
|
|
Room::GetCenterPos(&local_25c);
|
|
room = local_1a8;
|
|
local_1b8 = 0.0;
|
|
if (0 < GHIDRA_INT(local_1b4)) {
|
|
do {
|
|
fVar12 = (float)(GHIDRA_INT(local_1b8) % room->_gridWidth) * 40.0 + 40.0;
|
|
local_28 = (float)(GHIDRA_INT(local_1b8) / room->_gridWidth) * 40.0 + 120.0;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_34)) + 0x8))) = fVar12;
|
|
local_1b0 = GHIDRA_CAST<int *>((local_28 - local_25c.y));
|
|
local_1c8 = (fVar12 - local_25c.x) * 0.6;
|
|
iVar3 = (GHIDRA_CAST<Room *>((room)))->Room::GetRoomShape();
|
|
if ((iVar3 == 2) ||
|
|
(((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((room)) + 0x4)))) != 0 &&
|
|
(iVar3 = *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((room)) + 0x4)))) + 0x10)), iVar3 != 0)) &&
|
|
(*GHIDRA_CAST<int *>((iVar3 + 0x48)) == 7)))) {
|
|
local_1b0 = GHIDRA_CAST<int *>(((float)local_1b0 + (float)local_1b0));
|
|
}
|
|
iVar3 = (GHIDRA_CAST<Room *>((room)))->Room::GetRoomShape();
|
|
if ((iVar3 == 3) ||
|
|
(((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((room)) + 0x4)))) != 0 &&
|
|
(iVar3 = *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((room)) + 0x4)))) + 0x10)), iVar3 != 0)) &&
|
|
(*GHIDRA_CAST<int *>((iVar3 + 0x48)) == 5)))) {
|
|
local_1c8 = local_1c8 + local_1c8;
|
|
}
|
|
uVar2 = *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a62])) + 0x2))));
|
|
if (uVar2 == 0) {
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("RNG Seed is zero!\n"));
|
|
uVar2 = *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a62])) + 0x2))));
|
|
if (uVar2 == 0) {
|
|
pcVar10 = (code *)swi(3);
|
|
(*pcVar10)();
|
|
return;
|
|
}
|
|
}
|
|
uVar2 = uVar2 >> ((uint8_t)*GHIDRA_CAST<uint32_t *>((in_ECX + 0x1a64)) & 0x1f) ^ uVar2;
|
|
uVar2 = uVar2 << ((uint8_t)*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a65])) + 0x1)))) & 0x1f) ^ uVar2;
|
|
uVar2 = uVar2 >> ((uint8_t)*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a66])) + 0x2)))) & 0x1f) ^ uVar2;
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a62])) + 0x2)))) = uVar2;
|
|
if (((uVar2 & 1) != 0) &&
|
|
(fVar12 = sqrtf((float)local_1b0 * (float)local_1b0 + local_1c8 * local_1c8),
|
|
fVar12 < 100.0)) {
|
|
uVar2 = Random();
|
|
local_1a8 = GHIDRA_CAST<Room *>((GHIDRA_CAST<Game *>((g_game)))->Game)::Spawn(1000,7,GHIDRA_CAST<Vector *>((local_34 + 8)),&g_vectorZero,
|
|
GHIDRA_CAST<Entity *>(0x0),0,uVar2);
|
|
uVar2 = *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a62])) + 0x2))));
|
|
if (uVar2 == 0) {
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("RNG Seed is zero!\n"));
|
|
uVar2 = *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a62])) + 0x2))));
|
|
if (uVar2 == 0) {
|
|
pcVar10 = (code *)swi(3);
|
|
(*pcVar10)();
|
|
return;
|
|
}
|
|
}
|
|
uVar2 = uVar2 >> ((uint8_t)*GHIDRA_CAST<uint32_t *>((in_ECX + 0x1a64)) & 0x1f) ^ uVar2;
|
|
uVar2 = uVar2 << ((uint8_t)*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a65])) + 0x1)))) & 0x1f) ^ uVar2;
|
|
uVar2 = uVar2 >> ((uint8_t)*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a66])) + 0x2)))) & 0x1f) ^ uVar2;
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a62])) + 0x2)))) = uVar2;
|
|
pvVar13 = (void *)((float)((double)GHIDRA_INT(uVar2) +
|
|
__uint_to_double_fixup[-(GHIDRA_INT(uVar2) >> 0x1f)]) * 2.3283062e-10 *
|
|
2.5 + 0.5);
|
|
(GHIDRA_CAST<Vector *>((local_1a8->_gridEntities + 0x30)))->x = (float)pvVar13;
|
|
local_1a8->_gridEntities[0x31] = pvVar13;
|
|
if (*GHIDRA_CAST<int *>((in_ECX + 0x70)) == 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<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a62])) + 0x2))));
|
|
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 = GHIDRA_CAST<RNG *>(rng);
|
|
do {
|
|
uVar2 = *rng;
|
|
if (uVar2 == 0) {
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("RNG Seed is zero!\n"));
|
|
uVar2 = *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a62])) + 0x2))));
|
|
rng = GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a62])) + 0x2))));
|
|
if (uVar2 == 0) {
|
|
pcVar10 = (code *)swi(3);
|
|
(*pcVar10)();
|
|
return;
|
|
}
|
|
}
|
|
uVar2 = uVar2 >> ((uint8_t)rng[1] & 0x1f) ^ uVar2;
|
|
uVar2 = uVar2 << ((uint8_t)*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a65])) + 0x1)))) & 0x1f) ^ uVar2;
|
|
uVar2 = uVar2 >> ((uint8_t)*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a66])) + 0x2)))) & 0x1f) ^ uVar2;
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a62])) + 0x2)))) = uVar2;
|
|
if (uVar2 % GHIDRA_UINT(local_1cc) == 0) {
|
|
local_1b8 = (float)config.wallVariants;
|
|
if (uVar2 == 0) {
|
|
local_1a8 = GHIDRA_CAST<Room *>(uVar2);
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("RNG Seed is zero!\n"));
|
|
uVar2 = *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a62])) + 0x2))));
|
|
if (uVar2 == 0) {
|
|
pcVar10 = (code *)swi(3);
|
|
(*pcVar10)();
|
|
return;
|
|
}
|
|
}
|
|
uVar2 = uVar2 >> ((uint8_t)*GHIDRA_CAST<uint32_t *>((in_ECX + 0x1a64)) & 0x1f) ^ uVar2;
|
|
uVar2 = uVar2 << ((uint8_t)*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a65])) + 0x1)))) & 0x1f) ^ uVar2;
|
|
uVar2 = uVar2 >> ((uint8_t)*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a66])) + 0x2)))) & 0x1f) ^ uVar2;
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a62])) + 0x2)))) = uVar2;
|
|
if (local_1b8 == 0.0) {
|
|
local_1a8 = GHIDRA_CAST<Room *>((GHIDRA_INT(local_1ac) * config.wallVariants));
|
|
}
|
|
else {
|
|
local_1a8 = GHIDRA_CAST<Room *>((GHIDRA_INT(local_1ac) * config.wallVariants + uVar2 % GHIDRA_UINT(local_1b8)));
|
|
}
|
|
}
|
|
else {
|
|
local_1a8 = GHIDRA_CAST<Room *>((GHIDRA_INT(local_1ac) * config.wallVariants));
|
|
}
|
|
fVar14 = 26.0;
|
|
local_260 = CONCAT31((*GHIDRA_CAST<uint8_t *>((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;
|
|
iVar9 = (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)(iVar9 + 2) * 26.0;
|
|
piStack_26c = GHIDRA_CAST<int *>(((float)(iVar3 + 2) * 26.0));
|
|
srcRectB = (float)iVar9 * 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);
|
|
fVar12 = 52.0;
|
|
render_quad_set_uniform_color
|
|
(quadBuf,*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a5d])) + 0x1)))) - 52.0,
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a5e])) + 0x2)))) - 52.0,*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a5d])) + 0x1)))) + 0.0,
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a5e])) + 0x2)))) + 0.0,color);
|
|
uVar2 = segmentIndex;
|
|
chosenSrcRect = quadBuf;
|
|
dstBuf = drawQuad;
|
|
for (iVar3 = 0x1c; pBVar11 = local_1a4, iVar3 != 0; iVar3 = iVar3 + -1) {
|
|
*dstBuf = *chosenSrcRect;
|
|
chosenSrcRect = chosenSrcRect + 1;
|
|
dstBuf = dstBuf + 1;
|
|
}
|
|
if (roomShape == 9) {
|
|
if (uVar2 == 0) {
|
|
local_1e4._red = 1.0;
|
|
local_1e4._green = 1.0;
|
|
local_1e4._blue = 1.0;
|
|
local_1e4._alpha = 1.0;
|
|
local_1e4._unk = uVar2;
|
|
render_quad_set_uniform_color
|
|
(quadBuf,*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5d])) + 0x1)))) + 286.0,
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5e])) + 0x2)))) - fVar12,
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5d])) + 0x1)))) + 338.0,
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5e])) + 0x2)))) + 0.0,&local_1e4);
|
|
chosenSrcRect = quadBuf;
|
|
dstBuf = drawQuad;
|
|
for (iVar3 = 0x1c; pBVar11 = local_1a4, iVar3 != 0; iVar3 = iVar3 + -1) {
|
|
*dstBuf = *chosenSrcRect;
|
|
chosenSrcRect = chosenSrcRect + 1;
|
|
dstBuf = dstBuf + 1;
|
|
}
|
|
(**(code **)(**GHIDRA_CAST<int **>((local_1a4 + 0xc)) + 0x14))(&srcRectA,drawQuad,g_drawRectUnset);
|
|
color_11 = &local_1e4;
|
|
fVar12 = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5e])) + 0x2))));
|
|
fVar15 = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5d])) + 0x1))));
|
|
local_1e4._red = 1.0;
|
|
local_1e4._green = 1.0;
|
|
local_1e4._blue = 1.0;
|
|
local_1e4._alpha = 1.0;
|
|
local_1e4._unk = 0;
|
|
fVar14 = fVar12 + 182.0;
|
|
fVar12 = fVar12 + 130.0;
|
|
left = fVar15 - 52.0;
|
|
fVar15 = fVar15 + 0.0;
|
|
LAB_00938a7a:
|
|
render_quad_set_uniform_color(quadBuf,left,fVar12,fVar15,fVar14,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 (uVar2 == 1) {
|
|
(GHIDRA_CAST<KColor *>((&local_1e4)))->KColor::SetFromARGB(0xffffffff);
|
|
render_quad_set_uniform_color
|
|
(quadBuf,*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5d])) + 0x1)))) + 338.0,
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5e])) + 0x2)))) - fVar12,
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5d])) + 0x1)))) + 390.0,
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5e])) + 0x2)))) + 0.0,color_00);
|
|
chosenSrcRect = quadBuf;
|
|
dstBuf = drawQuad;
|
|
for (iVar3 = 0x1c; pBVar11 = local_1a4, iVar3 != 0; iVar3 = iVar3 + -1) {
|
|
*dstBuf = *chosenSrcRect;
|
|
chosenSrcRect = chosenSrcRect + 1;
|
|
dstBuf = dstBuf + 1;
|
|
}
|
|
(**(code **)(**GHIDRA_CAST<int **>((local_1a4 + 0xc)) + 0x14))(&srcRectA,drawQuad,g_drawRectUnset);
|
|
iVar3 = gridWidth;
|
|
(GHIDRA_CAST<KColor *>((&local_1e4)))->KColor::SetFromARGB(0xffffffff);
|
|
fVar14 = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5e])) + 0x2)))) + 182.0;
|
|
fVar12 = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5e])) + 0x2)))) + 130.0;
|
|
color_11 = extraout_ECX;
|
|
LAB_00938a65:
|
|
left = (float)(iVar3 + -2) * 26.0 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5d])) + 0x1))));
|
|
fVar15 = (float)gridWidth * 26.0 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5d])) + 0x1))));
|
|
goto LAB_00938a7a;
|
|
}
|
|
}
|
|
else if (roomShape == 0xb) {
|
|
if (uVar2 == 2) {
|
|
iVar3 = gridHeight + -2;
|
|
(GHIDRA_CAST<KColor *>((&local_1e4)))->KColor::SetFromARGB(0xffffffff);
|
|
render_quad_set_uniform_color
|
|
(quadBuf,*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5d])) + 0x1)))) + 286.0,
|
|
(float)iVar3 * fVar14 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5e])) + 0x2)))),
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5d])) + 0x1)))) + 338.0,
|
|
(float)gridHeight * fVar14 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5e])) + 0x2)))),color_01);
|
|
chosenSrcRect = quadBuf;
|
|
dstBuf = drawQuad;
|
|
for (iVar3 = 0x1c; pBVar11 = local_1a4, iVar3 != 0; iVar3 = iVar3 + -1) {
|
|
*dstBuf = *chosenSrcRect;
|
|
chosenSrcRect = chosenSrcRect + 1;
|
|
dstBuf = dstBuf + 1;
|
|
}
|
|
(**(code **)(**GHIDRA_CAST<int **>((local_1a4 + 0xc)) + 0x14))(&srcRectA,drawQuad,g_drawRectUnset);
|
|
(GHIDRA_CAST<KColor *>((&local_1e4)))->KColor::SetFromARGB(0xffffffff);
|
|
fVar12 = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5e])) + 0x2))));
|
|
fVar15 = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5d])) + 0x1))));
|
|
fVar14 = fVar12 + 234.0;
|
|
fVar12 = fVar12 + 182.0;
|
|
left = fVar15 - 52.0;
|
|
fVar15 = fVar15 + 0.0;
|
|
color_11 = extraout_ECX_00;
|
|
goto LAB_00938a7a;
|
|
}
|
|
}
|
|
else if (roomShape == 0xc) {
|
|
if (uVar2 == 3) {
|
|
iVar3 = gridHeight + -2;
|
|
(GHIDRA_CAST<KColor *>((&local_1e4)))->KColor::SetFromARGB(0xffffffff);
|
|
render_quad_set_uniform_color
|
|
(quadBuf,*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5d])) + 0x1)))) + 338.0,
|
|
(float)iVar3 * fVar14 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5e])) + 0x2)))),
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5d])) + 0x1)))) + 390.0,
|
|
(float)gridHeight * fVar14 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5e])) + 0x2)))),color_02);
|
|
chosenSrcRect = quadBuf;
|
|
dstBuf = drawQuad;
|
|
for (iVar3 = 0x1c; pBVar11 = local_1a4, iVar3 != 0; iVar3 = iVar3 + -1) {
|
|
*dstBuf = *chosenSrcRect;
|
|
chosenSrcRect = chosenSrcRect + 1;
|
|
dstBuf = dstBuf + 1;
|
|
}
|
|
(**(code **)(**GHIDRA_CAST<int **>((local_1a4 + 0xc)) + 0x14))(&srcRectA,drawQuad,g_drawRectUnset);
|
|
iVar3 = gridWidth;
|
|
(GHIDRA_CAST<KColor *>((&local_1e4)))->KColor::SetFromARGB(0xffffffff);
|
|
fVar14 = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5e])) + 0x2)))) + 234.0;
|
|
fVar12 = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5e])) + 0x2)))) + 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)[uVar2])();
|
|
return;
|
|
}
|
|
in_ECX = local_1a4;
|
|
iVar3 = roomShape;
|
|
(**(code **)(**GHIDRA_CAST<int **>((local_1a4 + 0xc)) + 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<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(in_ECX[0x1a62])) + 0x2))));
|
|
} while( true );
|
|
segmentIndex = 0;
|
|
do {
|
|
fVar12 = local_1cc;
|
|
pRVar4 = wallRng;
|
|
local_1b0 = GHIDRA_CAST<int *>(0x0);
|
|
local_1bc = 0.0;
|
|
if (iVar3 == 9) {
|
|
local_1b0 = GHIDRA_CAST<int *>(0x7);
|
|
LAB_00938ba7:
|
|
uVar2 = (GHIDRA_CAST<RNG *>((wallRng)))->RNG::RandomInt(GHIDRA_UINT(local_1cc));
|
|
if (uVar2 == 0) {
|
|
local_1c8 = (float)(GHIDRA_CAST<RNG *>((pRVar4)))->RNG::RandomInt(config.wallVariants);
|
|
}
|
|
else {
|
|
local_1c8 = 0.0;
|
|
}
|
|
uVar2 = (GHIDRA_CAST<RNG *>((pRVar4)))->RNG::RandomInt(GHIDRA_UINT(fVar12));
|
|
if (uVar2 == 0) {
|
|
local_1b4 = (float)(GHIDRA_CAST<RNG *>((pRVar4)))->RNG::RandomInt(config.wallVariants);
|
|
}
|
|
else {
|
|
local_1b4 = 0.0;
|
|
}
|
|
fVar12 = 26.0;
|
|
uVar2 = GHIDRA_INT(local_1c8) + GHIDRA_INT(local_1ac) * config.wallVariants;
|
|
uStack_200 = 1;
|
|
iVar3 = segmentIndex + (uVar2 & 1) * 9;
|
|
secondVariantRow = (uVar2 >> 1) * 6;
|
|
uVar2 = GHIDRA_INT(local_1b4) + GHIDRA_INT(local_1ac) * config.wallVariants;
|
|
iVar9 = segmentIndex + (uVar2 & 1) * 9;
|
|
fStack_224 = (float)((uVar2 >> 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 = GHIDRA_CAST<Room *>(((float)GHIDRA_INT((segmentIndex + 1)) * fVar12));
|
|
local_1b8 = (float)GHIDRA_INT(segmentIndex) * fVar12;
|
|
render_quad_set_uniform_color
|
|
(afStack_498,local_1b8 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5d])) + 0x1)))),
|
|
(float)(GHIDRA_INT(local_1b0) + -2) * fVar12 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5e])) + 0x2)))),
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5d])) + 0x1)))) + (float)local_1a8,
|
|
(float)GHIDRA_INT(local_1b0) * fVar12 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5e])) + 0x2)))),&local_1e4)
|
|
;
|
|
(**(code **)(**GHIDRA_CAST<int **>((local_1a4 + 0xc)) + 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);
|
|
fVar12 = 26.0;
|
|
render_quad_set_uniform_color
|
|
(afStack_508,*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5d])) + 0x1)))) + local_1b8,
|
|
(float)iVar3 * 26.0 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5e])) + 0x2)))),
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5d])) + 0x1)))) + (float)local_1a8,
|
|
(float)(iVar3 + 2) * 26.0 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5e])) + 0x2)))),color_03);
|
|
local_260 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_260)) + 0x1))),1);
|
|
srcRectB = (float)(iVar9 + 2) * fVar12;
|
|
piStack_27c = GHIDRA_CAST<int *>(((float)(GHIDRA_INT(fStack_224) + 2) * fVar12));
|
|
fStack_278 = (float)(iVar9 + 3) * fVar12;
|
|
piStack_26c = GHIDRA_CAST<int *>(((float)GHIDRA_INT(fStack_224) * fVar12));
|
|
piStack_274 = piStack_27c;
|
|
local_270 = srcRectB;
|
|
fStack_268 = fStack_278;
|
|
piStack_264 = piStack_26c;
|
|
(**(code **)(**GHIDRA_CAST<int **>((local_1a4 + 0xc)) + 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);
|
|
uVar2 = gridWidth + -8;
|
|
segmentIndex = uVar2;
|
|
if (7 < GHIDRA_INT(uVar2)) {
|
|
do {
|
|
fVar12 = local_1cc;
|
|
pRVar4 = 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:
|
|
uVar2 = (GHIDRA_CAST<RNG *>((wallRng)))->RNG::RandomInt(GHIDRA_UINT(local_1cc));
|
|
if (uVar2 == 0) {
|
|
local_1bc = (float)(GHIDRA_CAST<RNG *>((pRVar4)))->RNG::RandomInt(config.wallVariants);
|
|
}
|
|
else {
|
|
local_1bc = 0.0;
|
|
}
|
|
uVar2 = (GHIDRA_CAST<RNG *>((pRVar4)))->RNG::RandomInt(GHIDRA_UINT(fVar12));
|
|
if (uVar2 == 0) {
|
|
local_1b8 = (float)(GHIDRA_CAST<RNG *>((pRVar4)))->RNG::RandomInt(config.wallVariants);
|
|
}
|
|
else {
|
|
local_1b8 = 0.0;
|
|
}
|
|
fVar12 = 26.0;
|
|
secondVariant = GHIDRA_UINT(local_1b0) & 1;
|
|
uVar2 = GHIDRA_INT(local_1bc) + GHIDRA_INT(local_1ac) * config.wallVariants;
|
|
local_260 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_260)) + 0x1))),1);
|
|
iVar3 = secondVariant + (uVar2 & 1) * 9;
|
|
iVar9 = (uVar2 >> 1) * 6;
|
|
uVar2 = GHIDRA_INT(local_1b8) + GHIDRA_INT(local_1ac) * config.wallVariants;
|
|
local_1a8 = GHIDRA_CAST<Room *>(((uVar2 >> 1) * 6));
|
|
srcRectB = (float)(iVar3 + 7) * 26.0;
|
|
fStack_22c = (float)(secondVariant + (uVar2 & 1) * 9 + 7);
|
|
piStack_27c = GHIDRA_CAST<int *>(((float)iVar9 * 26.0));
|
|
fStack_278 = (float)(iVar3 + 8) * 26.0;
|
|
piStack_26c = GHIDRA_CAST<int *>(((float)(iVar9 + 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);
|
|
pBVar11 = local_1a4;
|
|
fStack_224 = (float)GHIDRA_INT((GHIDRA_INT(local_1b0) + 1)) * fVar12;
|
|
fStack_228 = (float)GHIDRA_INT(local_1b0) * fVar12;
|
|
render_quad_set_uniform_color
|
|
(afStack_578,fStack_228 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5d])) + 0x1)))),
|
|
(float)GHIDRA_INT((GHIDRA_INT(local_1b4) - 2)) * fVar12 +
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5e])) + 0x2)))),
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5d])) + 0x1)))) + fStack_224,
|
|
(float)GHIDRA_INT(local_1b4) * fVar12 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5e])) + 0x2)))),
|
|
&local_1e4);
|
|
(**(code **)(**GHIDRA_CAST<int **>((pBVar11 + 0xc)) + 0x14))(&srcRectB,afStack_578,g_drawRectUnset);
|
|
spawn_wall_details(pBVar11,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);
|
|
fVar12 = 26.0;
|
|
render_quad_set_uniform_color
|
|
(afStack_7a8,*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5d])) + 0x1)))) + fStack_228,
|
|
(float)iVar3 * 26.0 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5e])) + 0x2)))),
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5d])) + 0x1)))) + fStack_224,
|
|
(float)(iVar3 + 2) * 26.0 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5e])) + 0x2)))),color_04);
|
|
local_1e4._green = (float)GHIDRA_INT(local_1a8) * fVar12;
|
|
srcRectD = (float)GHIDRA_INT(fStack_22c) * fVar12;
|
|
fStack_1f0 = (float)GHIDRA_INT(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((local_1a8)) + 0x2)))) * fVar12;
|
|
fStack_1ec = (float)(GHIDRA_INT(fStack_22c) + 1) * fVar12;
|
|
local_1e4._unk = CONCAT31((*GHIDRA_CAST<uint8_t *>((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 + 0xc)) + 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);
|
|
uVar2 = 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(uVar2));
|
|
}
|
|
if (GHIDRA_INT(uVar2) < gridWidth + -2) {
|
|
local_1b0 = GHIDRA_CAST<int *>(0x7);
|
|
local_1a8 = GHIDRA_CAST<Room *>(uVar2);
|
|
do {
|
|
fVar12 = local_1cc;
|
|
pRVar4 = wallRng;
|
|
local_1a8 = GHIDRA_CAST<Room *>((GHIDRA_INT(local_1a8) + 1));
|
|
local_1b8 = 0.0;
|
|
local_1bc = 0.0;
|
|
if (iVar3 == 10) {
|
|
if (0xc < GHIDRA_INT(uVar2)) {
|
|
local_1b8 = 9.80909e-45;
|
|
}
|
|
LAB_00939431:
|
|
uVar2 = (GHIDRA_CAST<RNG *>((wallRng)))->RNG::RandomInt(GHIDRA_UINT(local_1cc));
|
|
if (uVar2 == 0) {
|
|
local_1b4 = (float)(GHIDRA_CAST<RNG *>((pRVar4)))->RNG::RandomInt(config.wallVariants);
|
|
}
|
|
else {
|
|
local_1b4 = 0.0;
|
|
}
|
|
uVar2 = (GHIDRA_CAST<RNG *>((pRVar4)))->RNG::RandomInt(GHIDRA_UINT(fVar12));
|
|
if (uVar2 == 0) {
|
|
local_1c8 = (float)(GHIDRA_CAST<RNG *>((pRVar4)))->RNG::RandomInt(config.wallVariants);
|
|
}
|
|
else {
|
|
local_1c8 = 0.0;
|
|
}
|
|
uVar2 = GHIDRA_INT(local_1b4) + GHIDRA_INT(local_1ac) * config.wallVariants;
|
|
iVar3 = (uVar2 >> 1) * 6;
|
|
iVar9 = gridWidth + -1 + ((uVar2 & 1) * 9 - segmentIndex);
|
|
uVar2 = GHIDRA_INT(local_1c8) + GHIDRA_INT(local_1ac) * config.wallVariants;
|
|
local_25c.y = (float)((uVar2 >> 1) * 6);
|
|
fStack_224 = (float)(((uVar2 & 1) * 9 - segmentIndex) + gridWidth + -1);
|
|
(GHIDRA_CAST<KColor *>((&local_1e4)))->KColor::SetFromARGB(0xffffffff);
|
|
fVar12 = 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 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5d])) + 0x1)))),
|
|
(float)GHIDRA_INT((GHIDRA_INT(local_1b8) - 2)) * 26.0 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5e])) + 0x2)))),
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5d])) + 0x1)))) + fStack_22c,
|
|
(float)GHIDRA_INT(local_1b8) * 26.0 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5e])) + 0x2)))),color_05);
|
|
srcRectD = (float)(iVar9 + 1) * fVar12;
|
|
fStack_1f0 = (float)iVar3 * fVar12;
|
|
fStack_1ec = (float)iVar9 * fVar12;
|
|
local_1e4._green = (float)(iVar3 + 2) * fVar12;
|
|
(*GHIDRA_CAST<uint8_t *>((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 + 0xc)) + 0x14))(&srcRectD,afStack_5e8,g_drawRectUnset);
|
|
pBVar11 = 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);
|
|
fVar12 = 26.0;
|
|
render_quad_set_uniform_color
|
|
(afStack_658,*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5d])) + 0x1)))) + fStack_228,
|
|
(float)iVar3 * 26.0 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5e])) + 0x2)))),
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5d])) + 0x1)))) + fStack_22c,
|
|
(float)(iVar3 + 2) * 26.0 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5e])) + 0x2)))),color_06);
|
|
srcRectD = (float)(GHIDRA_INT(fStack_224) + 1) * fVar12;
|
|
fStack_1f0 = (float)(GHIDRA_INT(local_25c.y) + 2) * fVar12;
|
|
fStack_1ec = (float)GHIDRA_INT(fStack_224) * fVar12;
|
|
local_1e4._green = (float)GHIDRA_INT(local_25c.y) * fVar12;
|
|
local_1e4._unk = CONCAT31((*GHIDRA_CAST<uint8_t *>((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 **>((pBVar11 + 0xc)) + 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)
|
|
;
|
|
uVar2 = segmentIndex;
|
|
iVar3 = roomShape;
|
|
}
|
|
else {
|
|
if (iVar3 == 0xc) {
|
|
if (0xc < GHIDRA_INT(uVar2)) {
|
|
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(uVar2) && (GHIDRA_INT(uVar2) <= local_1fc + -1)))) goto LAB_00939431;
|
|
}
|
|
uVar2 = uVar2 + 1;
|
|
local_1b0 = GHIDRA_CAST<int *>((GHIDRA_INT(local_1b0) - 1));
|
|
in_ECX = local_1a4;
|
|
segmentIndex = uVar2;
|
|
} while (GHIDRA_INT(uVar2) < gridWidth + -2);
|
|
}
|
|
local_1fc = 0;
|
|
do {
|
|
fVar12 = local_1cc;
|
|
pRVar4 = wallRng;
|
|
local_1a8 = GHIDRA_CAST<Room *>(0x0);
|
|
local_1b4 = 0.0;
|
|
if (iVar3 == 9) {
|
|
local_1a8 = GHIDRA_CAST<Room *>(0xd);
|
|
LAB_00939868:
|
|
uVar2 = (GHIDRA_CAST<RNG *>((wallRng)))->RNG::RandomInt(GHIDRA_UINT(local_1cc));
|
|
if (uVar2 == 0) {
|
|
local_1b8 = (float)(GHIDRA_CAST<RNG *>((pRVar4)))->RNG::RandomInt(config.wallVariants);
|
|
}
|
|
else {
|
|
local_1b8 = 0.0;
|
|
}
|
|
uVar2 = (GHIDRA_CAST<RNG *>((pRVar4)))->RNG::RandomInt(GHIDRA_UINT(fVar12));
|
|
if (uVar2 == 0) {
|
|
local_1bc = (float)(GHIDRA_CAST<RNG *>((pRVar4)))->RNG::RandomInt(config.wallVariants);
|
|
}
|
|
else {
|
|
local_1bc = 0.0;
|
|
}
|
|
fVar12 = 26.0;
|
|
uVar2 = GHIDRA_INT(local_1b8) + GHIDRA_INT(local_1ac) * config.wallVariants;
|
|
uStack_324 = 1;
|
|
iVar3 = local_1fc + ((uVar2 >> 1) * 3 + 1) * 2;
|
|
iVar9 = (uVar2 & 1) * 9;
|
|
uVar2 = GHIDRA_INT(local_1bc) + GHIDRA_INT(local_1ac) * config.wallVariants;
|
|
fStack_228 = (float)(local_1fc + 2 + (uVar2 >> 1) * 6);
|
|
secondVariantRow = (uVar2 & 1) * 9;
|
|
srcRectE = (float)iVar9 * 26.0;
|
|
fStack_340 = (float)iVar3 * 26.0;
|
|
fStack_33c = (float)(iVar9 + 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) * fVar12;
|
|
fStack_22c = (float)local_1fc * fVar12;
|
|
render_quad_set_uniform_color
|
|
(afStack_6c8,
|
|
(float)(GHIDRA_INT(local_1a8) + -2) * fVar12 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5d])) + 0x1)))),
|
|
fStack_22c + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5e])) + 0x2)))),
|
|
(float)GHIDRA_INT(local_1a8) * fVar12 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5d])) + 0x1)))),
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5e])) + 0x2)))) + local_25c.y,&local_1e4);
|
|
(**(code **)(**GHIDRA_CAST<int **>((local_1a4 + 0xc)) + 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);
|
|
fVar12 = 26.0;
|
|
render_quad_set_uniform_color
|
|
(afStack_738,(float)iVar3 * 26.0 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5d])) + 0x1)))),
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5e])) + 0x2)))) + fStack_22c,
|
|
(float)(iVar3 + 2) * 26.0 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5d])) + 0x1)))),
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5e])) + 0x2)))) + local_25c.y,color_07);
|
|
fStack_1ec = (float)secondVariantRow * fVar12;
|
|
local_1e4._unk = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1e4._unk)) + 0x1))),1);
|
|
srcRectD = (float)(secondVariantRow + 2) * fVar12;
|
|
fStack_1f0 = (float)GHIDRA_INT(fStack_228) * fVar12;
|
|
local_1e4._green = (float)(GHIDRA_INT(fStack_228) + 1) * fVar12;
|
|
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 + 0xc)) + 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 = GHIDRA_CAST<Room *>(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);
|
|
uVar2 = gridHeight + -5;
|
|
segmentIndex = uVar2;
|
|
if (4 < GHIDRA_INT(uVar2)) {
|
|
do {
|
|
fVar12 = local_1cc;
|
|
pRVar4 = wallRng;
|
|
local_1a8 = GHIDRA_CAST<Room *>(0x0);
|
|
local_1b4 = 0.0;
|
|
if (iVar3 == 9) {
|
|
if (local_1b0 < &DAT_00000007) {
|
|
LAB_00939c37:
|
|
local_1a8 = GHIDRA_CAST<Room *>(0xd);
|
|
}
|
|
LAB_00939cac:
|
|
uVar2 = (GHIDRA_CAST<RNG *>((wallRng)))->RNG::RandomInt(GHIDRA_UINT(local_1cc));
|
|
if (uVar2 == 0) {
|
|
local_1b8 = (float)(GHIDRA_CAST<RNG *>((pRVar4)))->RNG::RandomInt(config.wallVariants);
|
|
}
|
|
else {
|
|
local_1b8 = 0.0;
|
|
}
|
|
uVar2 = (GHIDRA_CAST<RNG *>((pRVar4)))->RNG::RandomInt(GHIDRA_UINT(fVar12));
|
|
if (uVar2 == 0) {
|
|
local_1bc = (float)(GHIDRA_CAST<RNG *>((pRVar4)))->RNG::RandomInt(config.wallVariants);
|
|
}
|
|
else {
|
|
local_1bc = 0.0;
|
|
}
|
|
fVar12 = 26.0;
|
|
secondVariant = GHIDRA_UINT(local_1b0) & 1;
|
|
uVar2 = GHIDRA_INT(local_1b8) + GHIDRA_INT(local_1ac) * config.wallVariants;
|
|
local_38 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_38)) + 0x1))),1);
|
|
iVar3 = secondVariant + ((uVar2 >> 1) * 3 + 2) * 2;
|
|
iVar9 = (uVar2 & 1) * 9;
|
|
uVar2 = GHIDRA_INT(local_1bc) + GHIDRA_INT(local_1ac) * config.wallVariants;
|
|
fStack_58 = (float)iVar9 * 26.0;
|
|
fStack_224 = (float)(secondVariant + ((uVar2 >> 1) * 3 + 2) * 2);
|
|
fStack_228 = (float)((uVar2 & 1) * 9);
|
|
piStack_54 = GHIDRA_CAST<int *>(((float)iVar3 * 26.0));
|
|
local_50 = (float)(iVar9 + 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);
|
|
pBVar11 = local_1a4;
|
|
local_25c.y = (float)GHIDRA_INT((GHIDRA_INT(local_1b0) + 1)) * fVar12;
|
|
fStack_22c = (float)GHIDRA_INT(local_1b0) * fVar12;
|
|
render_quad_set_uniform_color
|
|
(afStack_8f8,
|
|
(float)(GHIDRA_INT(local_1a8) + -2) * fVar12 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5d])) + 0x1)))),
|
|
fStack_22c + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5e])) + 0x2)))),
|
|
(float)GHIDRA_INT(local_1a8) * fVar12 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5d])) + 0x1)))),
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5e])) + 0x2)))) + local_25c.y,&local_1e4);
|
|
(**(code **)(**GHIDRA_CAST<int **>((pBVar11 + 0xc)) + 0x14))(&fStack_58,afStack_8f8,g_drawRectUnset);
|
|
spawn_wall_details(pBVar11,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);
|
|
fVar12 = 26.0;
|
|
render_quad_set_uniform_color
|
|
(afStack_818,(float)iVar3 * 26.0 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5d])) + 0x1)))),
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5e])) + 0x2)))) + fStack_22c,
|
|
(float)(iVar3 + 2) * 26.0 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5d])) + 0x1)))),
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5e])) + 0x2)))) + local_25c.y,color_08);
|
|
local_1e4._unk = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1e4._unk)) + 0x1))),1);
|
|
srcRectD = (float)(GHIDRA_INT(fStack_228) + 2) * fVar12;
|
|
fStack_1f0 = (float)GHIDRA_INT(fStack_224) * fVar12;
|
|
fStack_1ec = (float)GHIDRA_INT(fStack_228) * fVar12;
|
|
local_1e4._green = (float)(GHIDRA_INT(fStack_224) + 1) * fVar12;
|
|
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 + 0xc)) + 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);
|
|
uVar2 = 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 = GHIDRA_CAST<Room *>(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(uVar2));
|
|
}
|
|
if (GHIDRA_INT(uVar2) < gridHeight + -2) {
|
|
local_1c8 = (float)(uVar2 + 1);
|
|
local_1b0 = GHIDRA_CAST<int *>(&DAT_00000004);
|
|
do {
|
|
fVar12 = local_1cc;
|
|
pRVar4 = wallRng;
|
|
local_1a8 = GHIDRA_CAST<Room *>(0x0);
|
|
local_1b4 = 0.0;
|
|
if (iVar3 == 9) {
|
|
if (GHIDRA_INT(uVar2) < 7) {
|
|
LAB_0093a067:
|
|
local_1a8 = GHIDRA_CAST<Room *>(0xd);
|
|
}
|
|
LAB_0093a0dc:
|
|
uVar2 = (GHIDRA_CAST<RNG *>((wallRng)))->RNG::RandomInt(GHIDRA_UINT(local_1cc));
|
|
if (uVar2 == 0) {
|
|
local_1b8 = (float)(GHIDRA_CAST<RNG *>((pRVar4)))->RNG::RandomInt(config.wallVariants);
|
|
}
|
|
else {
|
|
local_1b8 = 0.0;
|
|
}
|
|
uVar2 = (GHIDRA_CAST<RNG *>((pRVar4)))->RNG::RandomInt(GHIDRA_UINT(fVar12));
|
|
if (uVar2 == 0) {
|
|
local_1bc = (float)(GHIDRA_CAST<RNG *>((pRVar4)))->RNG::RandomInt(config.wallVariants);
|
|
}
|
|
else {
|
|
local_1bc = 0.0;
|
|
}
|
|
uVar2 = GHIDRA_INT(local_1b8) + GHIDRA_INT(local_1ac) * config.wallVariants;
|
|
iVar3 = (uVar2 & 1) * 9;
|
|
secondVariant = GHIDRA_INT(local_1bc) + GHIDRA_INT(local_1ac) * config.wallVariants;
|
|
iVar9 = gridHeight + -1 + ((uVar2 >> 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);
|
|
fVar12 = 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 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5d])) + 0x1)))),
|
|
fStack_22c + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5e])) + 0x2)))),
|
|
(float)GHIDRA_INT(local_1a8) * 26.0 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5d])) + 0x1)))),
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5e])) + 0x2)))) + local_25c.y,color_09);
|
|
srcRectD = (float)iVar3 * fVar12;
|
|
fStack_1f0 = (float)(iVar9 + 1) * fVar12;
|
|
fStack_1ec = (float)(iVar3 + 2) * fVar12;
|
|
local_1e4._green = (float)iVar9 * fVar12;
|
|
(*GHIDRA_CAST<uint8_t *>((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 + 0xc)) + 0x14))(&srcRectD,afStack_888,g_drawRectUnset);
|
|
pBVar11 = 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);
|
|
fVar12 = 26.0;
|
|
render_quad_set_uniform_color
|
|
(quadBuf,(float)iVar3 * 26.0 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5d])) + 0x1)))),
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5e])) + 0x2)))) + fStack_22c,
|
|
(float)(iVar3 + 2) * 26.0 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5d])) + 0x1)))),
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5e])) + 0x2)))) + local_25c.y,color_10);
|
|
local_1e4._unk = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1e4._unk)) + 0x1))),1);
|
|
srcRectD = (float)(GHIDRA_INT(fStack_228) + 2) * fVar12;
|
|
fStack_1f0 = (float)(GHIDRA_INT(fStack_224) + 1) * fVar12;
|
|
fStack_1ec = (float)GHIDRA_INT(fStack_228) * fVar12;
|
|
local_1e4._green = (float)GHIDRA_INT(fStack_224) * fVar12;
|
|
fStack_1e8 = fStack_1f0;
|
|
local_1e4._red = srcRectD;
|
|
local_1e4._blue = fStack_1ec;
|
|
local_1e4._alpha = local_1e4._green;
|
|
(**(code **)(**GHIDRA_CAST<int **>((pBVar11 + 0xc)) + 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);
|
|
uVar2 = segmentIndex;
|
|
iVar3 = roomShape;
|
|
}
|
|
else {
|
|
if (iVar3 == 0xb) {
|
|
if (6 < GHIDRA_INT(uVar2)) goto LAB_0093a067;
|
|
goto LAB_0093a0dc;
|
|
}
|
|
if (iVar3 == 10) {
|
|
if (GHIDRA_INT(uVar2) < 7) {
|
|
LAB_0093a089:
|
|
local_1b4 = -NAN;
|
|
}
|
|
goto LAB_0093a0dc;
|
|
}
|
|
if (iVar3 == 0xc) {
|
|
if (6 < GHIDRA_INT(uVar2)) goto LAB_0093a089;
|
|
goto LAB_0093a0dc;
|
|
}
|
|
if ((iVar3 == 3) || (iVar3 == 5)) {
|
|
local_1a8 = GHIDRA_CAST<Room *>(0x4);
|
|
local_1b4 = -NAN;
|
|
goto LAB_0093a0dc;
|
|
}
|
|
if (((iVar3 != 2) && (iVar3 != 7)) ||
|
|
((shapeMinY + -1 <= GHIDRA_INT(uVar2) && (GHIDRA_INT(uVar2) <= shapeMaxY + -1)))) goto LAB_0093a0dc;
|
|
}
|
|
uVar2 = uVar2 + 1;
|
|
local_1c8 = (float)(GHIDRA_INT(local_1c8) + 1);
|
|
local_1b0 = GHIDRA_CAST<int *>((GHIDRA_INT(local_1b0) + -1));
|
|
in_ECX = local_1a4;
|
|
segmentIndex = uVar2;
|
|
} while (GHIDRA_INT(uVar2) < gridHeight + -2);
|
|
}
|
|
if (iVar3 == 9) {
|
|
pcVar10 = *(code **)(**GHIDRA_CAST<int **>((in_ECX + 0xc)) + 0x14);
|
|
pvVar13 = render_grid_rect(local_1a4,gridQuad,0xb,5,2,2);
|
|
chosenSrcRect = &cornerSrcRect;
|
|
LAB_0093a644:
|
|
(*pcVar10)(chosenSrcRect,pvVar13,g_drawRectUnset);
|
|
piVar6 = extraout_EDX;
|
|
iVar3 = roomShape;
|
|
}
|
|
else {
|
|
if (iVar3 == 10) {
|
|
pcVar10 = *(code **)(**GHIDRA_CAST<int **>((in_ECX + 0xc)) + 0x14);
|
|
pvVar13 = 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<uint8_t *>((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) {
|
|
pcVar10 = *(code **)(**GHIDRA_CAST<int **>((in_ECX + 0xc)) + 0x14);
|
|
pvVar13 = 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;
|
|
}
|
|
piVar6 = local_1b0;
|
|
if (iVar3 == 0xc) {
|
|
pcVar10 = *(code **)(**GHIDRA_CAST<int **>((in_ECX + 0xc)) + 0x14);
|
|
pvVar13 = 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;
|
|
uVar8 = (uint16_t)(GHIDRA_UINT(piVar6) >> 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)))) {
|
|
pcVar10 = *(code **)(**GHIDRA_CAST<int **>((local_1a4 + 0xc)) + 0x14);
|
|
pvVar13 = render_grid_rect(local_1a4,gridQuad,GHIDRA_INT(fStack_1f0) + -3,GHIDRA_INT(fStack_1ec) + -1,2,1);
|
|
(*pcVar10)(&srcRectB,pvVar13,g_drawRectUnset);
|
|
pcVar10 = *(code **)(**GHIDRA_CAST<int **>((local_1a4 + 0xc)) + 0x14);
|
|
pvVar13 = render_grid_rect(local_1a4,gridQuad,GHIDRA_INT(fStack_1f0) + -3,GHIDRA_INT(local_1e4._red) + -2,2,
|
|
2);
|
|
(*pcVar10)(&srcRectC,pvVar13,g_drawRectUnset);
|
|
pcVar10 = *(code **)(**GHIDRA_CAST<int **>((local_1a4 + 0xc)) + 0x14);
|
|
pvVar13 = 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<uint8_t *>((GHIDRA_CAST<char *>(&(local_38)) + 0x0))) = 1;
|
|
(*pcVar10)(&fStack_58,pvVar13,g_drawRectUnset);
|
|
pcVar10 = *(code **)(**GHIDRA_CAST<int **>((local_1a4 + 0xc)) + 0x14);
|
|
pvVar13 = 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<uint8_t *>((GHIDRA_CAST<char *>(&(local_38)) + 0x0))) = 1;
|
|
(*pcVar10)(&fStack_58,pvVar13,g_drawRectUnset);
|
|
pcVar10 = *(code **)(**GHIDRA_CAST<int **>((local_1a4 + 0xc)) + 0x14);
|
|
pvVar13 = render_grid_rect(local_1a4,gridQuad,GHIDRA_INT(fStack_1f0) + -1,GHIDRA_INT(fStack_1ec) + -3,1,2);
|
|
(*pcVar10)(&srcRectA,pvVar13,g_drawRectUnset);
|
|
pcVar10 = *(code **)(**GHIDRA_CAST<int **>((local_1a4 + 0xc)) + 0x14);
|
|
pvVar13 = 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<uint8_t *>((GHIDRA_CAST<char *>(&(local_38)) + 0x0))) = 1;
|
|
(*pcVar10)(&fStack_58,pvVar13,g_drawRectUnset);
|
|
pcVar10 = *(code **)(**GHIDRA_CAST<int **>((local_1a4 + 0xc)) + 0x14);
|
|
pvVar13 = 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<uint8_t *>((GHIDRA_CAST<char *>(&(local_38)) + 0x1))),1);
|
|
(*pcVar10)(&fStack_58,pvVar13,g_drawRectUnset);
|
|
pcVar10 = *(code **)(**GHIDRA_CAST<int **>((local_1a4 + 0xc)) + 0x14);
|
|
chosenSrcRect = gridQuad;
|
|
fVar14 = local_1e4._red;
|
|
fVar12 = fStack_1e8;
|
|
LAB_0093ad9b:
|
|
pvVar13 = render_grid_rect(local_1a4,chosenSrcRect,GHIDRA_INT(fVar12) + -1,GHIDRA_INT(fVar14),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<uint8_t *>((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) {
|
|
pcVar10 = *(code **)(**GHIDRA_CAST<int **>((local_1a4 + 0xc)) + 0x14);
|
|
pvVar13 = 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<uint8_t *>((GHIDRA_CAST<char *>(&(local_38)) + 0x1))),1);
|
|
(*pcVar10)(&fStack_58,pvVar13,g_drawRectUnset);
|
|
pcVar10 = *(code **)(**GHIDRA_CAST<int **>((local_1a4 + 0xc)) + 0x14);
|
|
pvVar13 = 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) {
|
|
pcVar10 = *(code **)(**GHIDRA_CAST<int **>((local_1a4 + 0xc)) + 0x14);
|
|
pvVar13 = 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<uint8_t *>((GHIDRA_CAST<char *>(&(local_38)) + 0x1))),1);
|
|
(*pcVar10)(&fStack_58,pvVar13,g_drawRectUnset);
|
|
pcVar10 = *(code **)(**GHIDRA_CAST<int **>((local_1a4 + 0xc)) + 0x14);
|
|
chosenSrcRect = quadBuf;
|
|
fVar14 = (float)local_1e4._unk;
|
|
fVar12 = local_1e4._alpha;
|
|
goto LAB_0093ad9b;
|
|
}
|
|
if (iVar3 != 9) {
|
|
uVar8 = extraout_var;
|
|
if (iVar3 != 10) goto LAB_0093adfb;
|
|
pcVar10 = *(code **)(**GHIDRA_CAST<int **>((local_1a4 + 0xc)) + 0x14);
|
|
pvVar13 = 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<uint8_t *>((GHIDRA_CAST<char *>(&(local_38)) + 0x1))),1);
|
|
(*pcVar10)(&fStack_58,pvVar13,g_drawRectUnset);
|
|
pcVar10 = *(code **)(**GHIDRA_CAST<int **>((local_1a4 + 0xc)) + 0x14);
|
|
pvVar13 = 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;
|
|
}
|
|
pcVar10 = *(code **)(**GHIDRA_CAST<int **>((local_1a4 + 0xc)) + 0x14);
|
|
pvVar13 = render_grid_rect(local_1a4,gridQuad,GHIDRA_INT(fStack_1f0) + -1,GHIDRA_INT(fStack_1ec) + -3,1,2);
|
|
(*pcVar10)(&srcRectA,pvVar13,g_drawRectUnset);
|
|
pcVar10 = *(code **)(**GHIDRA_CAST<int **>((local_1a4 + 0xc)) + 0x14);
|
|
pvVar13 = render_grid_rect(local_1a4,quadBuf,GHIDRA_INT(local_1e4._green) + -3,
|
|
GHIDRA_INT(local_1e4._blue) + -1,2,1);
|
|
chosenSrcRect = &srcRectB;
|
|
}
|
|
(*pcVar10)(chosenSrcRect,pvVar13,g_drawRectUnset);
|
|
uVar8 = extraout_var_00;
|
|
}
|
|
LAB_0093adfb:
|
|
pBVar11 = local_1a4;
|
|
iVar3 = roomShape;
|
|
if ((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1ac1])) + 0x2))) == '\0') goto LAB_0093b1df;
|
|
DAT_00c33910 = 0;
|
|
local_1b8 = -NAN;
|
|
local_1a8 = GHIDRA_CAST<Room *>(0xfffffffe);
|
|
if ((roomShape == 2) || (roomShape == 7)) {
|
|
isHorizontalNarrow = true;
|
|
}
|
|
else {
|
|
isHorizontalNarrow = false;
|
|
}
|
|
if ((roomShape == 3) || (roomShape == 5)) {
|
|
gridWidth = gridWidth + -4;
|
|
iVar9 = GHIDRA_UINT(uVar8) << 0x10;
|
|
local_1b8 = 2.8026e-45;
|
|
}
|
|
else {
|
|
iVar9 = CONCAT22(uVar8,0x100);
|
|
if (isHorizontalNarrow) {
|
|
gridHeight = gridHeight + -2;
|
|
local_1a8 = GHIDRA_CAST<Room *>(0x0);
|
|
}
|
|
}
|
|
secondVariantRow = *GHIDRA_CAST<int *>((local_1a4 + 0x70));
|
|
if (((secondVariantRow == 0x1f) || (secondVariantRow == 0x2d)) && (local_1ac == 1.4013e-45)) {
|
|
LAB_0093aecd:
|
|
fVar12 = 0.18;
|
|
local_1cc = 0.18;
|
|
if (((secondVariantRow == 0x2e) || (secondVariantRow == 0x3b)) && (local_1ac == 2.8026e-45)) {
|
|
fVar12 = 0.45;
|
|
local_1cc = 0.45;
|
|
}
|
|
pBVar1 = local_1a4 + 0x1a62;
|
|
local_1ac = (float)(CONCAT31((int3)(GHIDRA_UINT(local_1ac) >> 8),isHorizontalNarrow) ^ 1);
|
|
isPreAscentMomRoom = (uint8_t)(GHIDRA_UINT(iVar9) >> 8);
|
|
pBVar7 = GHIDRA_CAST<Backdrop *>(CONCAT31((int3)(GHIDRA_UINT(iVar9) >> 8),isPreAscentMomRoom));
|
|
local_1bc = (float)(GHIDRA_INT(local_1a8) + 7);
|
|
local_1b4 = (float)GHIDRA_INT(local_1a8) * 26.0;
|
|
local_28 = local_1b4 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5e])) + 0x2))));
|
|
local_1c8 = (float)(GHIDRA_INT(local_1b8) + 0xd);
|
|
local_1a8 = GHIDRA_CAST<Room *>(((float)GHIDRA_INT(local_1b8) * 26.0));
|
|
if (roomShape == 9) {
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_34)) + 0x8))) = (float)GHIDRA_INT(local_1c8) * 26.0 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5d])) + 0x1))));
|
|
local_1a4 = pBVar7;
|
|
render_wall_detail(pBVar11,GHIDRA_CAST<RNG *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((pBVar1)) + 0x2)))),GHIDRA_CAST<Vector *>((local_34 + 8)),0,0,
|
|
isPreAscentMomRoom,SUB41(local_1ac,0),fVar12);
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_34)) + 0x8))) = (float)local_1a8 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5d])) + 0x1))));
|
|
local_28 = (float)GHIDRA_INT(local_1bc) * 26.0 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5e])) + 0x2))));
|
|
render_wall_detail(pBVar11,GHIDRA_CAST<RNG *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a62])) + 0x2)))),GHIDRA_CAST<Vector *>((local_34 + 8)),0,0,
|
|
(uint8_t)local_1a4,SUB41(local_1ac,0),local_1cc);
|
|
fVar12 = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5d])) + 0x1))));
|
|
local_28 = local_1b4 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5e])) + 0x2))));
|
|
local_1b0 = GHIDRA_CAST<int *>(((float)gridWidth * 26.0));
|
|
LAB_0093b050:
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_34)) + 0x8))) = (float)local_1b0 + fVar12;
|
|
render_wall_detail(pBVar11,GHIDRA_CAST<RNG *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a62])) + 0x2)))),GHIDRA_CAST<Vector *>((local_34 + 8)),1,0,
|
|
(uint8_t)local_1a4,SUB41(local_1ac,0),local_1cc);
|
|
fVar12 = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5d])) + 0x1))));
|
|
local_1b4 = (float)(gridHeight - 7);
|
|
local_1b8 = (float)gridHeight * 26.0;
|
|
local_28 = local_1b8 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5e])) + 0x2))));
|
|
if (iVar3 != 0xb) goto LAB_0093b34e;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_34)) + 0x8))) = (float)GHIDRA_INT(local_1c8) * 26.0 + fVar12;
|
|
render_wall_detail(pBVar11,GHIDRA_CAST<RNG *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a62])) + 0x2)))),GHIDRA_CAST<Vector *>((local_34 + 8)),0,1,
|
|
(uint8_t)local_1a4,SUB41(local_1ac,0),local_1cc);
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_34)) + 0x8))) = (float)local_1a8 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5d])) + 0x1))));
|
|
local_28 = (float)GHIDRA_INT(local_1b4) * 26.0 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5e])) + 0x2))));
|
|
render_wall_detail(pBVar11,GHIDRA_CAST<RNG *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a62])) + 0x2)))),GHIDRA_CAST<Vector *>((local_34 + 8)),0,1,
|
|
(uint8_t)local_1a4,SUB41(local_1ac,0),local_1cc);
|
|
fVar12 = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5d])) + 0x1))));
|
|
local_28 = local_1b8 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5e])) + 0x2))));
|
|
LAB_0093b198:
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_34)) + 0x8))) = (float)local_1b0 + fVar12;
|
|
}
|
|
else {
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_34)) + 0x8))) = (float)local_1a8 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_1a4[0x1a5d])) + 0x1))));
|
|
local_1a4 = pBVar7;
|
|
render_wall_detail(pBVar11,GHIDRA_CAST<RNG *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((pBVar1)) + 0x2)))),GHIDRA_CAST<Vector *>((local_34 + 8)),0,0,
|
|
isPreAscentMomRoom,SUB41(local_1ac,0),fVar12);
|
|
fVar12 = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5d])) + 0x1))));
|
|
local_28 = local_1b4 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5e])) + 0x2))));
|
|
local_1b0 = GHIDRA_CAST<int *>(((float)gridWidth * 26.0));
|
|
if (iVar3 != 10) goto LAB_0093b050;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_34)) + 0x8))) = (float)(gridWidth + -0xd) * 26.0 + fVar12;
|
|
render_wall_detail(pBVar11,GHIDRA_CAST<RNG *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a62])) + 0x2)))),GHIDRA_CAST<Vector *>((local_34 + 8)),1,0,
|
|
(uint8_t)local_1a4,SUB41(local_1ac,0),local_1cc);
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_34)) + 0x8))) = (float)local_1b0 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5d])) + 0x1))));
|
|
local_28 = (float)GHIDRA_INT(local_1bc) * 26.0 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5e])) + 0x2))));
|
|
render_wall_detail(pBVar11,GHIDRA_CAST<RNG *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a62])) + 0x2)))),GHIDRA_CAST<Vector *>((local_34 + 8)),1,0,
|
|
(uint8_t)local_1a4,SUB41(local_1ac,0),local_1cc);
|
|
fVar12 = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5d])) + 0x1))));
|
|
local_1b4 = (float)(gridHeight - 7);
|
|
local_1b8 = (float)gridHeight * 26.0;
|
|
local_28 = local_1b8 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5e])) + 0x2))));
|
|
LAB_0093b34e:
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_34)) + 0x8))) = (float)local_1a8 + fVar12;
|
|
render_wall_detail(pBVar11,GHIDRA_CAST<RNG *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a62])) + 0x2)))),GHIDRA_CAST<Vector *>((local_34 + 8)),0,1,
|
|
(uint8_t)local_1a4,SUB41(local_1ac,0),local_1cc);
|
|
fVar12 = *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5d])) + 0x1))));
|
|
local_28 = local_1b8 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5e])) + 0x2))));
|
|
if (iVar3 != 0xc) goto LAB_0093b198;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_34)) + 0x8))) = (float)(gridWidth + -0xd) * 26.0 + fVar12;
|
|
render_wall_detail(pBVar11,GHIDRA_CAST<RNG *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a62])) + 0x2)))),GHIDRA_CAST<Vector *>((local_34 + 8)),1,1,
|
|
(uint8_t)local_1a4,SUB41(local_1ac,0),local_1cc);
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_34)) + 0x8))) = (float)local_1b0 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5d])) + 0x1))));
|
|
local_28 = (float)GHIDRA_INT(local_1b4) * 26.0 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a5e])) + 0x2))));
|
|
}
|
|
render_wall_detail(pBVar11,GHIDRA_CAST<RNG *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pBVar11[0x1a62])) + 0x2)))),GHIDRA_CAST<Vector *>((local_34 + 8)),1,1,
|
|
(uint8_t)local_1a4,SUB41(local_1ac,0),local_1cc);
|
|
}
|
|
else {
|
|
if ((secondVariantRow == 0x20) || (secondVariantRow == 0x3a)) {
|
|
if (local_1ac != 0.0) goto LAB_0093b1d8;
|
|
goto LAB_0093aecd;
|
|
}
|
|
if ((secondVariantRow == 0x2e) || (secondVariantRow == 0x3b)) {
|
|
if (local_1ac != 1.4013e-45) goto LAB_0093aecd;
|
|
}
|
|
else if ((secondVariantRow == 0x2a) || (secondVariantRow == 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, uint8_t isFlipX, uint8_t isFlipY)
|
|
{
|
|
ANM2 *pAVar1;
|
|
float *nullFrame;
|
|
uint32_t seed;
|
|
Entity *detail;
|
|
uint32_t nullIdx;
|
|
Vector spawnPos;
|
|
uint64_t flags;
|
|
uint32_t *flagsHighPtr;
|
|
uint32_t nullCount;
|
|
int vtable;
|
|
|
|
nullCount = *GHIDRA_CAST<uint32_t *>((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<uint32_t *>((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(uint32_t backdropId, uint8_t LoadGraphics)
|
|
{
|
|
Game *game;
|
|
int roomHeight;
|
|
|
|
if ((GHIDRA_INT(backdropId) < 0) || (0x3e < GHIDRA_INT(backdropId))) {
|
|
backdropId = 1;
|
|
}
|
|
*GHIDRA_CAST<uint32_t *>((this + 0x70)) = backdropId;
|
|
game = g_game;
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a5d])) + 0x1)))) = 0x42500000;
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a5e])) + 0x2)))) = 0x42500000;
|
|
roomHeight = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(game->_room) + 0x10));
|
|
*GHIDRA_CAST<float *>((this + 0x1a60)) = (float)(*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(game->_room) + 0xc)) + -2) * 26.0 + 52.0;
|
|
*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a61])) + 0x1)))) = (float)(roomHeight + -2) * 26.0 + 52.0;
|
|
if (LoadGraphics != 0) {
|
|
load_details(this);
|
|
}
|
|
return;
|
|
}
|
|
|
|
// 0093da00
|
|
void Backdrop::load_details()
|
|
{
|
|
int iVar1;
|
|
int iVar2;
|
|
uint32_t *renderTargetEntry;
|
|
LayerState *layer;
|
|
void *loadedImage;
|
|
uint8_t *pbVar3;
|
|
int newBlendMode1;
|
|
char *freeBlock;
|
|
std_string *detailsPath;
|
|
uint8_t *pbVar4;
|
|
uint8_t *pbVar5;
|
|
uint32_t uVar6;
|
|
Game *game;
|
|
bool isLess;
|
|
int iVar7;
|
|
Vector local_80;
|
|
uint8_t isLayerVisible;
|
|
uint8_t imageRef [4];
|
|
uint8_t *local_70;
|
|
std_string gehennaPath;
|
|
std_string imagePath;
|
|
std_string tmpString;
|
|
uint32_t stackCookie;
|
|
uint8_t *puStack_20;
|
|
void *local_1c;
|
|
uint8_t *puStack_18;
|
|
uint32_t local_14;
|
|
int savedBlendMode2;
|
|
uint8_t 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<uint8_t *>((GHIDRA_CAST<char *>(&(this[10])) + 0x2))) = 0;
|
|
ANM2::Reset(GHIDRA_CAST<ANM2 *>((this + 0x14)));
|
|
ANM2::Reset(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a69])) + 0x1)))));
|
|
if ((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b1d])) + 0x2))) == '\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<uint32_t *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) = msvc::_Allocate(0x20);
|
|
tmpString._size = 0x1a;
|
|
tmpString._capacity = 0x1f;
|
|
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpString._buf))) + 0x0))),"gfx/backdrop/controls.anm2",0x1b);
|
|
local_14 = 0;
|
|
ANM2::Load(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1ac5])) + 0x1)))),&tmpString,1);
|
|
local_14 = 0xffffffff;
|
|
if (0xf < tmpString._capacity) {
|
|
uVar6 = tmpString._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpString._buf))) + 0x0)));
|
|
if (0xfff < uVar6) {
|
|
freeBlock = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + -4));
|
|
uVar6 = tmpString._capacity + 0x24;
|
|
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBlock))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(freeBlock,uVar6);
|
|
}
|
|
}
|
|
if ((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b79])) + 0x2))) == '\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<uint32_t *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) = msvc::_Allocate(0x30);
|
|
tmpString._size = 0x22;
|
|
tmpString._capacity = 0x2f;
|
|
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpString._buf))) + 0x0))),"gfx/backdrop/controls_buttons.anm2",0x23);
|
|
local_14 = 1;
|
|
ANM2::Load(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1b21])) + 0x1)))),&tmpString,1);
|
|
local_14 = 0xffffffff;
|
|
if (0xf < tmpString._capacity) {
|
|
uVar6 = tmpString._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpString._buf))) + 0x0)));
|
|
if (0xfff < uVar6) {
|
|
freeBlock = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + -4));
|
|
uVar6 = tmpString._capacity + 0x24;
|
|
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBlock))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(freeBlock,uVar6);
|
|
}
|
|
}
|
|
local_80.x = 0.0;
|
|
local_80.y = 0.0;
|
|
msvc::vector::resize(&local_80);
|
|
renderTargetEntry = msvc::deque::back();
|
|
if (GHIDRA_CAST<uint8_t *>((renderTargetEntry + 1)) != GHIDRA_CAST<uint8_t *>(0x0)) {
|
|
*GHIDRA_CAST<uint8_t *>((renderTargetEntry + 1)) = (uint8_t)(g_graphicsManager_flags >> 5) & 1;
|
|
}
|
|
*renderTargetEntry = g_graphicsManager_renderTarget;
|
|
if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0xe])) + 0x2)))) != 0) {
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0xe])) + 0x2))))))->KAGE::SmartPointer::reset((void *)0x0);
|
|
}
|
|
iVar7 = *GHIDRA_CAST<int *>((this + 0x70));
|
|
if ((iVar7 == 0x1a) || (iVar7 == 0x12)) {
|
|
pbVar3 = GHIDRA_CAST<uint8_t *>((GHIDRA_INT(this) + iVar7 * 0x13c + 0x158));
|
|
if (0xf < *GHIDRA_CAST<uint32_t *>((pbVar3 + 0x14))) {
|
|
pbVar3 = *GHIDRA_CAST<uint8_t **>(pbVar3);
|
|
}
|
|
tmpString._size = 0;
|
|
tmpString._capacity = 0xf;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) = GHIDRA_CAST<char *>(0x0);
|
|
pbVar4 = pbVar3;
|
|
do {
|
|
strChar = *pbVar4;
|
|
pbVar4 = pbVar4 + 1;
|
|
} while (strChar != 0);
|
|
(GHIDRA_CAST<msvc::string *>((tmpString._buf)))->msvc::string::assign(pbVar3,GHIDRA_INT(pbVar4) - GHIDRA_INT((pbVar3 + 1)));
|
|
local_14 = 2;
|
|
ANM2::Load(GHIDRA_CAST<ANM2 *>((this + 0x14)),&tmpString,1);
|
|
local_14 = 0xffffffff;
|
|
if (0xf < tmpString._capacity) {
|
|
uVar6 = tmpString._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpString._buf))) + 0x0)));
|
|
if (0xfff < uVar6) {
|
|
freeBlock = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + -4));
|
|
uVar6 = tmpString._capacity + 0x24;
|
|
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBlock)))))
|
|
goto LAB_0093e16c;
|
|
}
|
|
operator_delete(freeBlock,uVar6);
|
|
}
|
|
if (*GHIDRA_CAST<int *>((this + 0x70)) != 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];
|
|
iVar7 = g_graphicsManager_blendMode[0];
|
|
local_70 = GHIDRA_CAST<uint8_t *>(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;
|
|
pbVar3 = *GHIDRA_CAST<uint8_t **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x25])) + 0x1))));
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[0])) + 0x0))) = (uint8_t)iVar7;
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[0])) + 0x1))) = SUB41(iVar7,1);
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[0])) + 0x2))) = SUB41(iVar7,2);
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[0])) + 0x3))) = SUB41(iVar7,3);
|
|
tmpString._buf[4] = (uint8_t)g_graphicsManager_blendMode[0];
|
|
tmpString._buf[5] = (*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[0])) + 0x1)));
|
|
tmpString._buf[6] = (*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[0])) + 0x2)));
|
|
tmpString._buf[7] = (*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[0])) + 0x3)));
|
|
tmpString._buf[8] = (uint8_t)g_graphicsManager_blendMode[1];
|
|
tmpString._buf[9] = (*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[1])) + 0x1)));
|
|
tmpString._buf[10] = (*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[1])) + 0x2)));
|
|
tmpString._buf[0xb] = (*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[1])) + 0x3)));
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[2])) + 0x0))) = (uint8_t)savedBlendMode2;
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[2])) + 0x1))) = SUB41(savedBlendMode2,1);
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[2])) + 0x2))) = SUB41(savedBlendMode2,2);
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[2])) + 0x3))) = SUB41(savedBlendMode2,3);
|
|
tmpString._buf[0xc] = (uint8_t)g_graphicsManager_blendMode[2];
|
|
tmpString._buf[0xd] = (*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[2])) + 0x1)));
|
|
tmpString._buf[0xe] = (*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[2])) + 0x2)));
|
|
tmpString._buf[0xf] = (*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[2])) + 0x3)));
|
|
g_graphicsManager_blendMode[0] = iVar1;
|
|
g_graphicsManager_blendMode[1] = newBlendMode1;
|
|
g_graphicsManager_blendMode[2] = iVar2;
|
|
if (pbVar3 == GHIDRA_CAST<uint8_t *>(0x0)) {
|
|
LAB_0093e5fc:
|
|
strChar = ANM2::SetAnimation(GHIDRA_CAST<ANM2 *>((this + 0x14)),s_Idle2,1);
|
|
if (strChar != 0) {
|
|
AnimationState::Rewind(GHIDRA_CAST<AnimationState *>((this + 0x24)));
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x2a])) + 0x2))) = 1;
|
|
}
|
|
}
|
|
else {
|
|
if (0xf < *GHIDRA_CAST<uint32_t *>((pbVar3 + 0x14))) {
|
|
pbVar3 = *GHIDRA_CAST<uint8_t **>(pbVar3);
|
|
}
|
|
pbVar4 = s_Idle2;
|
|
do {
|
|
strChar = *pbVar3;
|
|
isLess = strChar < *pbVar4;
|
|
if (strChar != *pbVar4) {
|
|
LAB_0093e5e4:
|
|
uVar6 = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_0093e5e9;
|
|
}
|
|
if (strChar == 0) break;
|
|
strChar = pbVar3[1];
|
|
isLess = strChar < pbVar4[1];
|
|
if (strChar != pbVar4[1]) goto LAB_0093e5e4;
|
|
pbVar3 = pbVar3 + 2;
|
|
pbVar4 = pbVar4 + 2;
|
|
} while (strChar != 0);
|
|
uVar6 = 0;
|
|
LAB_0093e5e9:
|
|
if ((uVar6 != 0) ||
|
|
((*GHIDRA_CAST<char *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x25])) + 0x1)))) + 0x34)) != '\0' && ((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x2a])) + 0x2))) == '\0')
|
|
))) goto LAB_0093e5fc;
|
|
}
|
|
g_graphicsManager_flags = g_graphicsManager_flags & 0xfffffffd;
|
|
local_80.y = DAT_00c35e74 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a5e])) + 0x2))));
|
|
local_80.x = DAT_00c35e70 + *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a5d])) + 0x1))));
|
|
ANM2::Render(GHIDRA_CAST<ANM2 *>((this + 0x14)),&local_80,&g_vectorZero,&g_vectorZero);
|
|
g_graphicsManager_flags = g_graphicsManager_flags | 2;
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[0])) + 0x0))) = tmpString._buf[4];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[0])) + 0x1))) = tmpString._buf[5];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[0])) + 0x2))) = tmpString._buf[6];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[0])) + 0x3))) = tmpString._buf[7];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[1])) + 0x0))) = tmpString._buf[8];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[1])) + 0x1))) = tmpString._buf[9];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[1])) + 0x2))) = tmpString._buf[10];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[1])) + 0x3))) = tmpString._buf[0xb];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[2])) + 0x0))) = tmpString._buf[0xc];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[2])) + 0x1))) = tmpString._buf[0xd];
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(g_graphicsManager_blendMode[2])) + 0x2))) = tmpString._buf[0xe];
|
|
(*GHIDRA_CAST<uint8_t *>((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);
|
|
pbVar3 = *GHIDRA_CAST<uint8_t **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x25])) + 0x1))));
|
|
if (pbVar3 != GHIDRA_CAST<uint8_t *>(0x0)) {
|
|
pbVar4 = pbVar3;
|
|
if (0xf < *GHIDRA_CAST<uint32_t *>((pbVar3 + 0x14))) {
|
|
pbVar4 = *GHIDRA_CAST<uint8_t **>(pbVar3);
|
|
}
|
|
pbVar5 = &DAT_00b601c4;
|
|
do {
|
|
strChar = *pbVar4;
|
|
isLess = strChar < *pbVar5;
|
|
if (strChar != *pbVar5) {
|
|
LAB_0093e6e2:
|
|
uVar6 = -GHIDRA_UINT(isLess) | 1;
|
|
goto LAB_0093e6e7;
|
|
}
|
|
if (strChar == 0) break;
|
|
strChar = pbVar4[1];
|
|
isLess = strChar < pbVar5[1];
|
|
if (strChar != pbVar5[1]) goto LAB_0093e6e2;
|
|
pbVar4 = pbVar4 + 2;
|
|
pbVar5 = pbVar5 + 2;
|
|
} while (strChar != 0);
|
|
uVar6 = 0;
|
|
LAB_0093e6e7:
|
|
if ((uVar6 == 0) && ((pbVar3[0x34] == 0 || ((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x2a])) + 0x2))) != '\0'))))
|
|
goto LAB_0093e713;
|
|
}
|
|
strChar = ANM2::SetAnimation(GHIDRA_CAST<ANM2 *>((this + 0x14)),&DAT_00b601c4,1);
|
|
if (strChar != 0) {
|
|
AnimationState::Rewind(GHIDRA_CAST<AnimationState *>((this + 0x24)));
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x2a])) + 0x2))) = 1;
|
|
}
|
|
goto LAB_0093e713;
|
|
}
|
|
if (iVar7 == 0x23) {
|
|
pbVar3 = &(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0xed9])) + 0x1)));
|
|
if (0xf < *GHIDRA_CAST<uint32_t *>((this + 0xee0))) {
|
|
pbVar3 = *GHIDRA_CAST<uint8_t **>(pbVar3);
|
|
}
|
|
(GHIDRA_CAST<msvc::string *>((tmpString._buf)))->msvc::string::string_from_cstr(pbVar3);
|
|
local_14 = 3;
|
|
ANM2::Load(GHIDRA_CAST<ANM2 *>((this + 0x14)),&tmpString,1);
|
|
local_14 = 0xffffffff;
|
|
if (0xf < tmpString._capacity) {
|
|
uVar6 = tmpString._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpString._buf))) + 0x0)));
|
|
if (0xfff < uVar6) {
|
|
freeBlock = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + -4));
|
|
uVar6 = tmpString._capacity + 0x24;
|
|
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBlock))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(freeBlock,uVar6);
|
|
}
|
|
strChar = ANM2::SetAnimation(GHIDRA_CAST<ANM2 *>((this + 0x14)),s_Idle,1);
|
|
if (((strChar != 0) && (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x25])) + 0x1)))) != 0)) &&
|
|
(AnimationState::SetFrameFloat(GHIDRA_CAST<AnimationState *>((this + 0x24)),0.0),
|
|
*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x25])) + 0x1)))) != 0)) {
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x2a])) + 0x2))) = 0;
|
|
}
|
|
iVar7 = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 4));
|
|
if ((iVar7 == 0) || (iVar7 = *GHIDRA_CAST<int *>((iVar7 + 0x10)), iVar7 == 0)) {
|
|
local_70 = GHIDRA_CAST<uint8_t *>(0x1);
|
|
}
|
|
else {
|
|
local_70 = *GHIDRA_CAST<uint8_t **>((iVar7 + 0x48));
|
|
}
|
|
pbVar3 = GHIDRA_CAST<uint8_t *>(0x0);
|
|
if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x3e])) + 0x2)))) != 0) {
|
|
do {
|
|
pbVar4 = pbVar3 + 1;
|
|
isLayerVisible = pbVar4 == local_70;
|
|
layer = ANM2::GetLayer(GHIDRA_CAST<ANM2 *>((this + 0x14)),pbVar3);
|
|
layer->_visible = isLayerVisible;
|
|
pbVar3 = pbVar4;
|
|
} while (pbVar4 < *GHIDRA_CAST<uint8_t **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x3e])) + 0x2)))));
|
|
}
|
|
goto LAB_0093e713;
|
|
}
|
|
if ((iVar7 == 0x34) || (iVar7 == 0x35)) {
|
|
pbVar3 = GHIDRA_CAST<uint8_t *>((iVar7 * 0x13c + 0x158 + GHIDRA_INT(this)));
|
|
if (0xf < *GHIDRA_CAST<uint32_t *>((pbVar3 + 0x14))) {
|
|
pbVar3 = *GHIDRA_CAST<uint8_t **>(pbVar3);
|
|
}
|
|
(GHIDRA_CAST<msvc::string *>((tmpString._buf)))->msvc::string::string_from_cstr(pbVar3);
|
|
local_14 = 4;
|
|
ANM2::Load(GHIDRA_CAST<ANM2 *>((this + 0x14)),&tmpString,1);
|
|
local_14 = 0xffffffff;
|
|
if (0xf < tmpString._capacity) {
|
|
uVar6 = tmpString._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpString._buf))) + 0x0)));
|
|
if (0xfff < uVar6) {
|
|
freeBlock = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + -4));
|
|
uVar6 = tmpString._capacity + 0x24;
|
|
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBlock)))))
|
|
goto LAB_0093e16c;
|
|
}
|
|
operator_delete(freeBlock,uVar6);
|
|
}
|
|
tmpString._size = 0;
|
|
tmpString._capacity = 0xf;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) & 0xffffff00;
|
|
iVar7 = *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(g_game->_room) + 4)) + 0x10)) + 0x10)) + -10;
|
|
LAB_0093ddb8:
|
|
ANM2::SetFrame(GHIDRA_CAST<ANM2 *>((this + 0x14)),GHIDRA_CAST<std_string *>(s_Idle),iVar7);
|
|
g_graphicsManager_flags = g_graphicsManager_flags & 0xfffffffd;
|
|
render_ashpit_ash();
|
|
g_graphicsManager_flags = g_graphicsManager_flags | 2;
|
|
goto LAB_0093e713;
|
|
}
|
|
if (iVar7 == 0x36) {
|
|
pbVar3 = &(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x16aa])) + 0x2)));
|
|
if (0xf < *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x16b1])) + 0x1))))) {
|
|
pbVar3 = *GHIDRA_CAST<uint8_t **>(pbVar3);
|
|
}
|
|
(GHIDRA_CAST<msvc::string *>((tmpString._buf)))->msvc::string::string_from_cstr(pbVar3);
|
|
local_14 = 5;
|
|
ANM2::Load(GHIDRA_CAST<ANM2 *>((this + 0x14)),&tmpString,1);
|
|
local_14 = 0xffffffff;
|
|
if (0xf < tmpString._capacity) {
|
|
uVar6 = tmpString._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpString._buf))) + 0x0)));
|
|
if (0xfff < uVar6) {
|
|
freeBlock = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + -4));
|
|
uVar6 = tmpString._capacity + 0x24;
|
|
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBlock))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(freeBlock,uVar6);
|
|
}
|
|
iVar7 = 0;
|
|
goto LAB_0093ddb8;
|
|
}
|
|
(GHIDRA_CAST<msvc::string *>((imagePath._buf)))->msvc::string::string((void *)(iVar7 * 0x13c + 0x158 + GHIDRA_INT(this)));
|
|
local_14 = 6;
|
|
if (imagePath._size != 0) {
|
|
detailsPath = &imagePath;
|
|
if (0xf < imagePath._capacity) {
|
|
detailsPath = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<std_string *>(imagePath._buf))) + 0x0)));
|
|
}
|
|
loadedImage = Manager::LoadImage(&local_80,GHIDRA_CAST<uint8_t *>(detailsPath));
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 7;
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((this + 0xc)))->KAGE::SmartPointer::operator_assign(loadedImage);
|
|
local_14 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),6);
|
|
TexturePtr::release();
|
|
}
|
|
iVar7 = *GHIDRA_CAST<int *>((this + 0x70));
|
|
if (*GHIDRA_CAST<int *>((iVar7 * 0x13c + 0x180 + GHIDRA_INT(this))) != 0) {
|
|
pbVar3 = GHIDRA_CAST<uint8_t *>((iVar7 * 0x13c + 0x170 + GHIDRA_INT(this)));
|
|
if (0xf < *GHIDRA_CAST<uint32_t *>((pbVar3 + 0x14))) {
|
|
pbVar3 = *GHIDRA_CAST<uint8_t **>(pbVar3);
|
|
}
|
|
loadedImage = Manager::LoadImage(imageRef,pbVar3);
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 8;
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0xe])) + 0x2))))))->KAGE::SmartPointer::operator_assign(loadedImage);
|
|
local_14 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),6);
|
|
TexturePtr::release();
|
|
FUN_00a123f0(0,0);
|
|
iVar7 = *GHIDRA_CAST<int *>((this + 0x70));
|
|
}
|
|
game = g_game;
|
|
if ((*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>((g_game->_room)) + 0x4)))) + 0x10)) + 0x48)) - 9U < 4) &&
|
|
(*GHIDRA_CAST<int *>((iVar7 * 0x13c + 0x198 + GHIDRA_INT(this))) != 0)) {
|
|
pbVar3 = GHIDRA_CAST<uint8_t *>((iVar7 * 0x13c + 0x188 + GHIDRA_INT(this)));
|
|
if (0xf < *GHIDRA_CAST<uint32_t *>((pbVar3 + 0x14))) {
|
|
pbVar3 = *GHIDRA_CAST<uint8_t **>(pbVar3);
|
|
}
|
|
loadedImage = Manager::LoadImage(imageRef,pbVar3);
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 9;
|
|
LAB_0093df32:
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x11])) + 0x1))))))->KAGE::SmartPointer::operator_assign(loadedImage);
|
|
local_14 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),6);
|
|
TexturePtr::release();
|
|
game = g_game;
|
|
}
|
|
else {
|
|
local_70 = GHIDRA_CAST<uint8_t *>((iVar7 * 0x13c));
|
|
if ((*GHIDRA_CAST<int *>((local_70 + 0x1b0 + GHIDRA_INT(this))) != 0) &&
|
|
((((iVar7 = (GHIDRA_CAST<Room *>((g_game->_room)))->Room::GetRoomShape(), iVar7 == 2 || (iVar7 == 3)) || (iVar7 == 5))
|
|
|| (iVar7 == 7)))) {
|
|
pbVar3 = local_70 + 0x1a0 + GHIDRA_INT(this);
|
|
if (0xf < *GHIDRA_CAST<uint32_t *>((pbVar3 + 0x14))) {
|
|
pbVar3 = *GHIDRA_CAST<uint8_t **>(pbVar3);
|
|
}
|
|
loadedImage = Manager::LoadImage(imageRef,pbVar3);
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 10;
|
|
goto LAB_0093df32;
|
|
}
|
|
}
|
|
iVar7 = *GHIDRA_CAST<int *>((this + 0x70));
|
|
switch(iVar7) {
|
|
case 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<uint32_t *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) = msvc::_Allocate(0x30);
|
|
tmpString._size = 0x24;
|
|
tmpString._capacity = 0x2f;
|
|
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpString._buf))) + 0x0))),"gfx/backdrop/01x_downpour_pipes.anm2",0x25);
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xb;
|
|
ANM2::Load(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a69])) + 0x1)))),&tmpString,1);
|
|
local_14 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),6);
|
|
if (0xf < tmpString._capacity) {
|
|
uVar6 = tmpString._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpString._buf))) + 0x0)));
|
|
if (0xfff < uVar6) {
|
|
freeBlock = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + -4));
|
|
uVar6 = tmpString._capacity + 0x24;
|
|
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBlock))))) {
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(freeBlock,uVar6);
|
|
}
|
|
local_70 = &(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a71])) + 0x1)));
|
|
if (0xf < *GHIDRA_CAST<uint32_t *>((this + 0x1a78))) {
|
|
local_70 = *GHIDRA_CAST<uint8_t **>(local_70);
|
|
}
|
|
pbVar3 = *GHIDRA_CAST<uint8_t **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a7a])) + 0x2))));
|
|
if (pbVar3 != GHIDRA_CAST<uint8_t *>(0x0)) {
|
|
if (0xf < *GHIDRA_CAST<uint32_t *>((pbVar3 + 0x14))) {
|
|
pbVar3 = *GHIDRA_CAST<uint8_t **>(pbVar3);
|
|
}
|
|
pbVar4 = local_70;
|
|
do {
|
|
strChar = *pbVar3;
|
|
isLess = strChar < *pbVar4;
|
|
if (strChar != *pbVar4) goto LAB_0093e060;
|
|
if (strChar == 0) break;
|
|
strChar = pbVar3[1];
|
|
isLess = strChar < pbVar4[1];
|
|
if (strChar != pbVar4[1]) goto LAB_0093e060;
|
|
pbVar3 = pbVar3 + 2;
|
|
pbVar4 = pbVar4 + 2;
|
|
} while (strChar != 0);
|
|
LAB_0093e05c:
|
|
uVar6 = 0;
|
|
LAB_0093e065:
|
|
if ((uVar6 == 0) &&
|
|
((*GHIDRA_CAST<char *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a7a])) + 0x2)))) + 0x34)) == '\0' ||
|
|
(*GHIDRA_CAST<char *>((this + 0x1a80)) != '\0')))) goto switchD_0093df66_caseD_21;
|
|
}
|
|
break;
|
|
case 0x20:
|
|
case 0x3a:
|
|
if (((*GHIDRA_CAST<uint32_t *>((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(game->_room) + 4)) + 0x44)) >> 9 & 1) == 0) && (iVar7 != 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<uint32_t *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) = msvc::_Allocate(0x30);
|
|
tmpString._size = 0x23;
|
|
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpString._buf))) + 0x0))),"gfx/backdrop/03x_mines_details.anm2",0x24);
|
|
(*GHIDRA_CAST<uint8_t *>((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<uint32_t *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) = msvc::_Allocate(0x30);
|
|
tmpString._size = 0x28;
|
|
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpString._buf))) + 0x0))),"gfx/backdrop/03x_mines_details_dark.anm2",0x29);
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xc;
|
|
}
|
|
tmpString._capacity = 0x2f;
|
|
ANM2::Load(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a69])) + 0x1)))),&tmpString,1);
|
|
local_14 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),6);
|
|
if (0xf < tmpString._capacity) {
|
|
uVar6 = tmpString._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpString._buf))) + 0x0)));
|
|
if (0xfff < uVar6) {
|
|
freeBlock = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + -4));
|
|
uVar6 = tmpString._capacity + 0x24;
|
|
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBlock))))) {
|
|
LAB_0093e16c:
|
|
/* WARNING: Subroutine does not return */
|
|
_invalid_parameter_noinfo_noreturn();
|
|
}
|
|
}
|
|
operator_delete(freeBlock,uVar6);
|
|
}
|
|
local_70 = &(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a71])) + 0x1)));
|
|
if (0xf < *GHIDRA_CAST<uint32_t *>((this + 0x1a78))) {
|
|
local_70 = *GHIDRA_CAST<uint8_t **>(local_70);
|
|
}
|
|
pbVar3 = *GHIDRA_CAST<uint8_t **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a7a])) + 0x2))));
|
|
if (pbVar3 != GHIDRA_CAST<uint8_t *>(0x0)) {
|
|
if (0xf < *GHIDRA_CAST<uint32_t *>((pbVar3 + 0x14))) {
|
|
pbVar3 = *GHIDRA_CAST<uint8_t **>(pbVar3);
|
|
}
|
|
pbVar4 = local_70;
|
|
do {
|
|
strChar = *pbVar3;
|
|
isLess = strChar < *pbVar4;
|
|
if (strChar != *pbVar4) goto LAB_0093e060;
|
|
if (strChar == 0) goto LAB_0093e05c;
|
|
strChar = pbVar3[1];
|
|
isLess = strChar < pbVar4[1];
|
|
if (strChar != pbVar4[1]) goto LAB_0093e060;
|
|
pbVar3 = pbVar3 + 2;
|
|
pbVar4 = pbVar4 + 2;
|
|
} while (strChar != 0);
|
|
uVar6 = 0;
|
|
goto LAB_0093e065;
|
|
}
|
|
break;
|
|
default:
|
|
goto switchD_0093df66_caseD_21;
|
|
case 0x2a:
|
|
(GHIDRA_CAST<msvc::string *>((tmpString._buf)))->msvc::string::string_from_cstr(GHIDRA_CAST<uint8_t *>("gfx/backdrop/05x_mausoleum_chains.anm2"));
|
|
local_14 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),0x10);
|
|
ANM2::Load(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a69])) + 0x1)))),&tmpString,1);
|
|
detailsPath = &tmpString;
|
|
goto LAB_0093e391;
|
|
case 0x2e:
|
|
case 0x3b:
|
|
if (((*GHIDRA_CAST<uint32_t *>((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(game->_room) + 4)) + 0x44)) >> 9 & 1) == 0) && (iVar7 != 0x3b)) {
|
|
(GHIDRA_CAST<msvc::string *>((tmpString._buf)))->msvc::string::string_from_cstr(GHIDRA_CAST<uint8_t *>("gfx/backdrop/04x_ashpit_details.anm2"));
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xf;
|
|
ANM2::Load(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a69])) + 0x1)))),&tmpString,1);
|
|
local_14 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),6);
|
|
(GHIDRA_CAST<msvc::string *>((tmpString._buf)))->msvc::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<uint32_t *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) = msvc::_Allocate(0x30);
|
|
tmpString._size = 0x29;
|
|
tmpString._capacity = 0x2f;
|
|
builtin_strncpy((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpString._buf))) + 0x0))),"gfx/backdrop/04x_ashpit_details_dark.anm2",0x2a)
|
|
;
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x0))) = 0xe;
|
|
ANM2::Load(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a69])) + 0x1)))),&tmpString,1);
|
|
local_14 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),6);
|
|
if (0xf < tmpString._capacity) {
|
|
uVar6 = tmpString._capacity + 1;
|
|
freeBlock = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(tmpString._buf))) + 0x0)));
|
|
if (0xfff < uVar6) {
|
|
freeBlock = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + -4));
|
|
uVar6 = tmpString._capacity + 0x24;
|
|
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(tmpString._buf)) + 0x0))) + (-4 - GHIDRA_INT(freeBlock)))))
|
|
goto LAB_0093e16c;
|
|
}
|
|
operator_delete(freeBlock,uVar6);
|
|
}
|
|
}
|
|
goto LAB_0093e3a0;
|
|
case 0x2f:
|
|
(GHIDRA_CAST<msvc::string *>((gehennaPath._buf)))->msvc::string::string_from_cstr(GHIDRA_CAST<uint8_t *>("gfx/backdrop/06x_gehenna_details.anm2"));
|
|
local_14 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),0x11);
|
|
ANM2::Load(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a69])) + 0x1)))),&gehennaPath,1);
|
|
detailsPath = &gehennaPath;
|
|
LAB_0093e391:
|
|
local_14 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_14)) + 0x1))),6);
|
|
(GHIDRA_CAST<msvc::string *>((detailsPath->_buf)))->msvc::string::_Tidy_deallocate();
|
|
LAB_0093e3a0:
|
|
(GHIDRA_CAST<Sprite *>((GHIDRA_CAST<Sprite *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a69])) + 0x1)))))))->Sprite::Play(GHIDRA_CAST<std_string *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a71])) + 0x1)))),0);
|
|
goto switchD_0093df66_caseD_21;
|
|
}
|
|
strChar = ANM2::SetAnimation(GHIDRA_CAST<ANM2 *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a69])) + 0x1)))),local_70,1);
|
|
if (strChar != 0) {
|
|
AnimationState::Rewind(GHIDRA_CAST<AnimationState *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a79])) + 0x1)))));
|
|
*GHIDRA_CAST<uint8_t *>((this + 0x1a80)) = 1;
|
|
}
|
|
switchD_0093df66_caseD_21:
|
|
if (*GHIDRA_CAST<int *>((this + 0xc)) != 0) {
|
|
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 + 0xc)))->KAGE::SmartPointer::reset((void *)0x0);
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x11])) + 0x1))))))->KAGE::SmartPointer::reset((void *)0x0);
|
|
}
|
|
local_14 = 0xffffffff;
|
|
(GHIDRA_CAST<msvc::string *>((imagePath._buf)))->msvc::string::_Tidy_deallocate();
|
|
LAB_0093e713:
|
|
pop_render_target();
|
|
ExceptionList = local_1c;
|
|
return;
|
|
LAB_0093e060:
|
|
uVar6 = -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;
|
|
uint8_t topQuad [20];
|
|
float local_168;
|
|
float local_160;
|
|
uint8_t leftQuad [8];
|
|
float local_104;
|
|
float local_f4;
|
|
uint8_t 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)
|
|
{
|
|
uint8_t bVar1;
|
|
uint8_t *curAnimName;
|
|
uint32_t uVar2;
|
|
ColorMod *color;
|
|
uint8_t *shader;
|
|
uint32_t *in_ECX;
|
|
AnimationState *otherAnimState;
|
|
uint32_t *extraout_ECX;
|
|
uint32_t *unused;
|
|
uint8_t *unused_00;
|
|
KColor *color_00;
|
|
uint32_t *extraout_ECX_00;
|
|
uint32_t *extraout_ECX_01;
|
|
uint32_t *extraout_ECX_02;
|
|
KColor *color_01;
|
|
uint32_t *extraout_ECX_03;
|
|
bool isLess;
|
|
float fVar3;
|
|
float fVar4;
|
|
float fVar5;
|
|
uint8_t auStackY_1dc [128];
|
|
Vector *pVVar6;
|
|
void *imageRefCount;
|
|
KColor *imageRefCount_00;
|
|
uint8_t 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;
|
|
uint8_t quad [36];
|
|
uint8_t renderQuad [112];
|
|
Color defaultColor;
|
|
uint32_t 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 (((uint8_t)g_graphicsManager_flags & 4) == 0) {
|
|
g_graphicsManager_blendMode[1] = 6;
|
|
}
|
|
g_graphicsManager_blendMode[2] = 7;
|
|
g_graphicsManager_blendMode[4] = 7;
|
|
unused = GHIDRA_CAST<uint32_t *>(&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;
|
|
ANM2::Render(GHIDRA_CAST<ANM2 *>((in_ECX + 0xf)),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<uint8_t *>(in_ECX[0x1c]);
|
|
if (0xf < *GHIDRA_CAST<uint32_t *>((curAnimName + 0x14))) {
|
|
curAnimName = *GHIDRA_CAST<uint8_t **>(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;
|
|
ANM2::Render(GHIDRA_CAST<ANM2 *>((in_ECX + 0xf)),&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;
|
|
uint8_t *shader;
|
|
int in_ECX;
|
|
KColor *color;
|
|
int unusedArg;
|
|
float margin;
|
|
uint8_t auStackY_180 [128];
|
|
Vector *size;
|
|
KColor *imageRefCount;
|
|
Vector surfaceSize;
|
|
Vector drawPos;
|
|
uint32_t local_d4;
|
|
uint32_t local_d0;
|
|
float local_cc;
|
|
uint32_t local_c8;
|
|
uint32_t 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;
|
|
uint8_t 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 (((uint8_t)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<uint8_t *>((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<uint32_t *>((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)
|
|
{
|
|
uint32_t uVar1;
|
|
float *extraout_EAX;
|
|
uint32_t *extraout_EAX_00;
|
|
Vector *position;
|
|
uint32_t *extraout_EAX_01;
|
|
float *extraout_EAX_02;
|
|
uint32_t *extraout_EAX_03;
|
|
float *extraout_EAX_04;
|
|
uint32_t *extraout_EAX_05;
|
|
float *extraout_EAX_06;
|
|
uint32_t *extraout_EAX_07;
|
|
int iVar2;
|
|
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 *piVar4;
|
|
int extraout_ECX_06;
|
|
int iVar5;
|
|
float *unaff_ESI;
|
|
uint8_t *other;
|
|
uint32_t *puVar6;
|
|
float **ppfVar7;
|
|
uint32_t uVar8;
|
|
float fVar9;
|
|
float *pfVar10;
|
|
float fVar11;
|
|
uint8_t auVar12 [4];
|
|
Vector aVStackY_610 [128];
|
|
Vector *pVVar13;
|
|
KColor *color_20;
|
|
float *pfVar14;
|
|
void *imageRefCount;
|
|
float *pfVar15;
|
|
ANM2 *animation;
|
|
float *pfVar16;
|
|
uint8_t auStack_1d8 [8];
|
|
uint8_t local_1d0 [4];
|
|
uint8_t local_1cc [16];
|
|
float *pfStack_1bc;
|
|
float *pfStack_1b8;
|
|
float *pfStack_1b4;
|
|
float *pfStack_1b0;
|
|
float *pfStack_1ac;
|
|
float fStack_1a8;
|
|
float *pfStack_1a4;
|
|
float *pfStack_1a0;
|
|
float *pfStack_19c;
|
|
float *pfStack_198;
|
|
float *pfStack_194;
|
|
float *pfStack_190;
|
|
Vector *pVStack_18c;
|
|
float *local_188;
|
|
float *local_184;
|
|
float *local_180;
|
|
Vector *local_17c;
|
|
float *local_178;
|
|
float *local_174;
|
|
float *local_170;
|
|
float *local_16c;
|
|
float *local_168;
|
|
Vector local_164;
|
|
float *pfStack_15c;
|
|
Vector VStack_158;
|
|
float *pfStack_150;
|
|
Vector VStack_14c;
|
|
float *local_144;
|
|
Vector local_140;
|
|
Vector *local_138;
|
|
float *local_134 [5];
|
|
Vector local_120 [2];
|
|
uint8_t wallQuad [108];
|
|
uint8_t auStack_a4 [4];
|
|
int savedBlendMode;
|
|
int savedBlendMode1;
|
|
int iStack_98;
|
|
int savedBlendMode3;
|
|
uint8_t auStack_8c [136];
|
|
|
|
local_138 = renderOffset;
|
|
if (*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0xe])) + 0x2)))) != 0) {
|
|
RenderWater(this,renderOffset);
|
|
}
|
|
iVar3 = *GHIDRA_CAST<int *>((this + 0x70));
|
|
if (iVar3 == 0x12) {
|
|
fVar11 = g_vectorOne.x * 26.0 * 0.5;
|
|
fVar9 = g_vectorOne.y * 26.0 * 0.5;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) =
|
|
fVar11 + fVar11 + (*GHIDRA_CAST<float *>((this + 0x1a60)) - *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a5d])) + 0x1)))));
|
|
local_1d0 = (uint8_t [4])
|
|
((*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a61])) + 0x1)))) - *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a5e])) + 0x2))))) +
|
|
fVar9 + fVar9);
|
|
local_120[0].x = ((renderOffset->x + 52.0) - fVar11) + DAT_00c35e70;
|
|
local_120[0].y = ((renderOffset->y + 52.0) - fVar9) + DAT_00c35e74;
|
|
render_wall_borders(local_120,GHIDRA_CAST<Vector *>((auStack_1d8 + 4)));
|
|
return;
|
|
}
|
|
if (iVar3 == 0x23) {
|
|
DAT_00c33910 = 0;
|
|
ANM2::Render(GHIDRA_CAST<ANM2 *>((this + 0x14)),renderOffset,&g_vectorZero,&g_vectorZero);
|
|
DAT_00c33910 = 1;
|
|
return;
|
|
}
|
|
if (((iVar3 == 0x34) || (iVar3 == 0x35)) || (iVar3 == 0x36)) {
|
|
uVar8 = 1;
|
|
DAT_00c33910 = 0;
|
|
if (1 < *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x3e])) + 0x2))))) {
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) = 8.40779e-44;
|
|
do {
|
|
if ((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x6c])) + 0x1))) != '\0') {
|
|
if ((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x39])) + 0x1))) == '\0') {
|
|
iVar3 = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x25])) + 0x1))));
|
|
if (((iVar3 != 0) && (-1 < GHIDRA_INT(uVar8))) &&
|
|
((GHIDRA_INT(uVar8) < *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>((this + 0x24)) + 0x80)) &&
|
|
(iVar5 = *GHIDRA_CAST<int *>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) + iVar3)), -1 < iVar5)))) {
|
|
AnimationLayer::RenderFrame
|
|
(GHIDRA_CAST<AnimationLayer *>((iVar5 * 0x10 + *GHIDRA_CAST<int *>((iVar3 + 0x18)))),local_138,
|
|
*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x26])) + 0x2)))) + iVar5 * 4)),&g_vectorZero,
|
|
&g_vectorZero,*GHIDRA_CAST<ANM2 **>((this + 0x24)));
|
|
}
|
|
iVar3 = *GHIDRA_CAST<int *>((this + 0x30));
|
|
if (((iVar3 != 0) && (-1 < GHIDRA_INT(uVar8))) &&
|
|
((GHIDRA_INT(uVar8) < *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x2e])) + 0x2)))) + 0x80)) &&
|
|
(iVar5 = *GHIDRA_CAST<int *>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) + iVar3)), -1 < iVar5)))) {
|
|
animation = *GHIDRA_CAST<ANM2 **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x2e])) + 0x2))));
|
|
iVar2 = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x31])) + 0x1))));
|
|
goto LAB_00940ce6;
|
|
}
|
|
}
|
|
else {
|
|
iVar3 = *GHIDRA_CAST<int *>((this + 0x30));
|
|
if ((((iVar3 != 0) && (-1 < GHIDRA_INT(uVar8))) &&
|
|
(GHIDRA_INT(uVar8) < *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x2e])) + 0x2)))) + 0x80)))) &&
|
|
(iVar5 = *GHIDRA_CAST<int *>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) + iVar3)), -1 < iVar5)) {
|
|
AnimationLayer::RenderFrame
|
|
(GHIDRA_CAST<AnimationLayer *>((iVar5 * 0x10 + *GHIDRA_CAST<int *>((iVar3 + 0x18)))),local_138,
|
|
*GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x31])) + 0x1)))) + iVar5 * 4)),&g_vectorZero,
|
|
&g_vectorZero,*GHIDRA_CAST<ANM2 **>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x2e])) + 0x2)))));
|
|
}
|
|
iVar3 = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x25])) + 0x1))));
|
|
if (((iVar3 != 0) && (-1 < GHIDRA_INT(uVar8))) &&
|
|
((GHIDRA_INT(uVar8) < *GHIDRA_CAST<int *>((*GHIDRA_CAST<int *>((this + 0x24)) + 0x80)) &&
|
|
(iVar5 = *GHIDRA_CAST<int *>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) + iVar3)), -1 < iVar5)))) {
|
|
animation = *GHIDRA_CAST<ANM2 **>((this + 0x24));
|
|
iVar2 = *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x26])) + 0x2))));
|
|
LAB_00940ce6:
|
|
AnimationLayer::RenderFrame
|
|
(GHIDRA_CAST<AnimationLayer *>((iVar5 * 0x10 + *GHIDRA_CAST<int *>((iVar3 + 0x18)))),local_138,
|
|
*GHIDRA_CAST<int *>((iVar2 + iVar5 * 4)),&g_vectorZero,&g_vectorZero,animation);
|
|
}
|
|
}
|
|
}
|
|
uVar8 = uVar8 + 1;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) + 4;
|
|
} while (uVar8 < *GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x3e])) + 0x2)))));
|
|
}
|
|
DAT_00c33910 = 1;
|
|
return;
|
|
}
|
|
if (*GHIDRA_CAST<int *>((iVar3 * 0x13c + 0x1b8 + GHIDRA_INT(this))) == 0) {
|
|
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<float *>((*GHIDRA_CAST<float *>((this + 0x1a60)) - *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a5d])) + 0x1))))));
|
|
local_184 = GHIDRA_CAST<float *>((*GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a61])) + 0x1)))) - *GHIDRA_CAST<float *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[0x1a5e])) + 0x2))))));
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = (GHIDRA_CAST<Room *>((g_game->_room)))->Room::GetRoomShape();
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = g_vectorOne.x * 52.0 + g_vectorOne.x * 52.0 + (float)local_134[0];
|
|
local_1d0 = (uint8_t [4])(g_vectorOne.y * 52.0 + g_vectorOne.y * 52.0 + (float)local_184);
|
|
pVVar13 = renderOffset;
|
|
render_wall_borders(renderOffset,GHIDRA_CAST<Vector *>((auStack_1d8 + 4)));
|
|
imageRefCount = (void *)0x93f3f1;
|
|
FUN_00682260();
|
|
other = &(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[2])) + 0x2)));
|
|
local_188 = GHIDRA_CAST<float *>(other);
|
|
(GHIDRA_CAST<KAGE::SmartPointer *>((auStack_1d8 + -0x10)))->KAGE::SmartPointer::operator_assign(other);
|
|
apply_sprite_shader_params(&color,1,pVVar13,imageRefCount);
|
|
uVar1 = (*GHIDRA_CAST<uint32_t *>((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<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(local_1cc))) + 0x0))) == GHIDRA_CAST<float *>(0xa)) || ((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(local_1cc))) + 0x0))) == GHIDRA_CAST<float *>(0xc))) {
|
|
pfVar10 = GHIDRA_CAST<float *>(((float)local_184 + 104.0));
|
|
local_170 = GHIDRA_CAST<float *>(0x0);
|
|
local_180 = GHIDRA_CAST<float *>(0x0);
|
|
local_174 = GHIDRA_CAST<float *>(0x0);
|
|
local_17c = GHIDRA_CAST<Vector *>(0x0);
|
|
local_168 = GHIDRA_CAST<float *>(0x42500000);
|
|
local_178 = GHIDRA_CAST<float *>(0x42500000);
|
|
local_164.y = (float)CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_164.y)) + 0x1))),1);
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) = pfVar10;
|
|
local_16c = pfVar10;
|
|
local_164.x = (float)pfVar10;
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>((local_1cc + 0xc)))))->KColor::SetFromARGB(0xffffffff);
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = GHIDRA_CAST<float *>(0x42500000);
|
|
local_1d0 = (uint8_t [4])pfVar10;
|
|
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<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) = (float)local_184 + 104.0;
|
|
iVar3 = extraout_ECX;
|
|
}
|
|
fVar9 = 0.0;
|
|
if ((GHIDRA_CAST<uint8_t *>(uVar1) == &DAT_00000009) || (GHIDRA_CAST<uint8_t *>(uVar1) == &DAT_0000000b)) {
|
|
local_174 = GHIDRA_CAST<float *>(0x0);
|
|
pfVar14 = GHIDRA_CAST<float *>(((float)local_134[0] + 52.0));
|
|
local_178 = GHIDRA_CAST<float *>(((float)local_134[0] + 104.0));
|
|
local_17c = GHIDRA_CAST<Vector *>(0x0);
|
|
local_164.y = (float)CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_164.y)) + 0x1))),1);
|
|
pfVar10 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(local_1cc))) + 0x8)));
|
|
local_180 = pfVar14;
|
|
local_170 = pfVar14;
|
|
local_16c = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(local_1cc))) + 0x8)));
|
|
local_168 = local_178;
|
|
local_164.x = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)local_1cc)) + 0x8)));
|
|
local_144 = pfVar14;
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>((local_1cc + 0xc)))))->KColor::SetFromARGB(0xffffffff);
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = GHIDRA_CAST<float *>(0x42500000);
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = (float)pfVar14 + renderOffset->x;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = renderOffset->y + fVar9;
|
|
local_1d0 = (uint8_t [4])pfVar10;
|
|
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<uint8_t *>(uVar1) != &DAT_0000000b) goto LAB_0093f60b;
|
|
LAB_0093f61d:
|
|
local_170 = GHIDRA_CAST<float *>(0x42500000);
|
|
local_180 = GHIDRA_CAST<float *>(0x42500000);
|
|
local_174 = GHIDRA_CAST<float *>(0x0);
|
|
local_17c = GHIDRA_CAST<Vector *>(0x0);
|
|
local_164.x = 52.0;
|
|
local_16c = GHIDRA_CAST<float *>(0x42500000);
|
|
local_164.y = (float)CONCAT31((*GHIDRA_CAST<uint8_t *>((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<uint32_t *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = local_134[0];
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = renderOffset->x + 52.0;
|
|
local_1d0 = (uint8_t [4])0x42500000;
|
|
(*GHIDRA_CAST<uint32_t *>((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<float *>(((float)local_134[0] + 52.0));
|
|
LAB_0093f60b:
|
|
if (GHIDRA_CAST<float *>(uVar1) == GHIDRA_CAST<float *>(0xc)) goto LAB_0093f61d;
|
|
}
|
|
if ((GHIDRA_CAST<uint8_t *>(uVar1) == &DAT_00000009) || (GHIDRA_CAST<float *>(uVar1) == GHIDRA_CAST<float *>(0xa))) {
|
|
pfVar10 = GHIDRA_CAST<float *>(((float)local_184 + 52.0));
|
|
local_170 = GHIDRA_CAST<float *>(0x42500000);
|
|
local_180 = GHIDRA_CAST<float *>(0x42500000);
|
|
local_164.x = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)local_1cc)) + 0x8)));
|
|
local_16c = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(local_1cc))) + 0x8)));
|
|
local_164.y = (float)CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_164.y)) + 0x1))),1);
|
|
local_17c = GHIDRA_CAST<Vector *>(pfVar10);
|
|
local_178 = local_144;
|
|
local_174 = pfVar10;
|
|
local_168 = local_144;
|
|
local_134[3] = pfVar10;
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>((local_1cc + 0xc)))))->KColor::SetFromARGB(0xffffffff);
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = local_134[0];
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = renderOffset->x + 52.0;
|
|
local_1d0 = (uint8_t [4])0x42500000;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = (float)pfVar10 + 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<uint8_t *>(uVar1) == &DAT_00000009) {
|
|
fVar9 = (float)local_184 * 0.5;
|
|
local_170 = GHIDRA_CAST<float *>(0x0);
|
|
local_180 = GHIDRA_CAST<float *>(0x0);
|
|
local_168 = GHIDRA_CAST<float *>(0x42500000);
|
|
local_178 = GHIDRA_CAST<float *>(0x42500000);
|
|
local_164.x = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)local_1cc)) + 0x8)));
|
|
local_16c = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(local_1cc))) + 0x8)));
|
|
local_164.y = (float)CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_164.y)) + 0x1))),1);
|
|
local_184 = GHIDRA_CAST<float *>(fVar9);
|
|
local_17c = GHIDRA_CAST<Vector *>(fVar9);
|
|
local_174 = GHIDRA_CAST<float *>(fVar9);
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>((local_1cc + 0xc)))))->KColor::SetFromARGB(0xffffffff);
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = 52.0;
|
|
local_1d0 = (uint8_t [4])(fVar9 + 104.0);
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = renderOffset->x + 0.0;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = fVar9 + 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))();
|
|
pfVar10 = GHIDRA_CAST<float *>((local_140.x * 0.5));
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0xc))) = 0.0;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = 0.0;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) = (float)pfVar10 + 52.0;
|
|
pfStack_1ac = GHIDRA_CAST<float *>(CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pfStack_1ac)) + 0x1))),1));
|
|
local_188 = GHIDRA_CAST<float *>(0x0);
|
|
local_180 = GHIDRA_CAST<float *>(0x0);
|
|
local_16c = pfStack_1ac;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = pfVar10;
|
|
pfStack_1bc = pfVar10;
|
|
pfStack_1b8 = unaff_ESI;
|
|
pfStack_1b4 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(local_1cc))) + 0x8)));
|
|
pfStack_1b0 = unaff_ESI;
|
|
pVStack_18c = GHIDRA_CAST<Vector *>(pfVar10);
|
|
local_184 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(local_1cc))) + 0x8)));
|
|
local_17c = GHIDRA_CAST<Vector *>(pfVar10);
|
|
local_174 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(local_1cc))) + 0x8)));
|
|
local_170 = unaff_ESI;
|
|
local_140.x = (float)pfVar10;
|
|
local_134[0] = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(local_1cc))) + 0x8)));
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>(local_1cc))))->KColor::SetFromARGB(0xffffffff);
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x0))) = (float)pfVar10 + renderOffset->x;
|
|
(*GHIDRA_CAST<uint32_t *>((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)
|
|
;
|
|
pfVar10 = extraout_EAX;
|
|
pfVar14 = &local_120[0].y;
|
|
for (iVar3 = 0x1c; iVar3 != 0; iVar3 = iVar3 + -1) {
|
|
*pfVar14 = *pfVar10;
|
|
pfVar10 = pfVar10 + 1;
|
|
pfVar14 = pfVar14 + 1;
|
|
}
|
|
(**(code **)(*GHIDRA_CAST<int *>(*pfStack_194) + 0x14))();
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) = (float)pfStack_19c + 52.0;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x0))) = 52.0;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = pfStack_19c;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = pfStack_19c;
|
|
local_1d0 = (uint8_t [4])local_140.x;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = 52.0;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0xc))) = local_140.x;
|
|
pfStack_198 = GHIDRA_CAST<float *>(0x42500000);
|
|
pfStack_194 = pfStack_19c;
|
|
pfStack_190 = GHIDRA_CAST<float *>(local_140.x);
|
|
pVStack_18c = GHIDRA_CAST<Vector *>(pfStack_19c);
|
|
pfStack_1b8 = GHIDRA_CAST<float *>(CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pfStack_1b8)) + 0x1))),1));
|
|
local_188 = GHIDRA_CAST<float *>(0x42500000);
|
|
local_180 = GHIDRA_CAST<float *>(local_140.x);
|
|
local_178 = pfStack_1b8;
|
|
pfStack_1bc = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(local_1cc))) + 0x8)));
|
|
local_184 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(local_1cc))) + 0x8)));
|
|
local_17c = (*GHIDRA_CAST<uint32_t *>((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);
|
|
puVar6 = extraout_EAX_00;
|
|
ppfVar7 = local_134 + 3;
|
|
for (iVar3 = 0x1c; iVar3 != 0; iVar3 = iVar3 + -1) {
|
|
*ppfVar7 = GHIDRA_CAST<float *>(*puVar6);
|
|
puVar6 = puVar6 + 1;
|
|
ppfVar7 = ppfVar7 + 1;
|
|
}
|
|
(**(code **)(*GHIDRA_CAST<int *>(*pfStack_1a0) + 0x14))(&pfStack_198,local_134 + 3,g_drawRectUnset);
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = VStack_14c.x;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x0))) = GHIDRA_CAST<float *>(0x0);
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = local_168;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = GHIDRA_CAST<float *>(0x42500000);
|
|
local_1d0 = (uint8_t [4])0x42500000;
|
|
local_1cc[8] = 1;
|
|
pfStack_1a4 = GHIDRA_CAST<float *>(VStack_14c.x);
|
|
pfStack_1a0 = GHIDRA_CAST<float *>(0x0);
|
|
pfStack_19c = local_168;
|
|
pfStack_198 = GHIDRA_CAST<float *>(0x0);
|
|
pfStack_194 = GHIDRA_CAST<float *>(VStack_14c.x);
|
|
pfStack_190 = GHIDRA_CAST<float *>(0x42500000);
|
|
pVStack_18c = GHIDRA_CAST<Vector *>(local_168);
|
|
local_188 = GHIDRA_CAST<float *>(0x42500000);
|
|
local_184 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(local_1cc))) + 0x8)));
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>((auStack_1d8 + -0xc)))))->KColor::SetFromARGB(0xffffffff);
|
|
}
|
|
else {
|
|
if (GHIDRA_CAST<float *>(uVar1) != GHIDRA_CAST<float *>(0xa)) {
|
|
iVar3 = extraout_ECX_03;
|
|
goto LAB_0093ff6f;
|
|
}
|
|
local_178 = GHIDRA_CAST<float *>(((float)local_134[0] + 104.0));
|
|
fVar9 = (float)local_184 * 0.5;
|
|
local_170 = local_144;
|
|
local_180 = local_144;
|
|
local_164.x = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)local_1cc)) + 0x8)));
|
|
local_16c = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(local_1cc))) + 0x8)));
|
|
local_164.y = (float)CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_164.y)) + 0x1))),1);
|
|
pfVar10 = local_144;
|
|
local_184 = GHIDRA_CAST<float *>(fVar9);
|
|
local_17c = GHIDRA_CAST<Vector *>(fVar9);
|
|
local_174 = GHIDRA_CAST<float *>(fVar9);
|
|
local_168 = local_178;
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>((local_1cc + 0xc)))))->KColor::SetFromARGB(0xffffffff);
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = 52.0;
|
|
local_1d0 = (uint8_t [4])(fVar9 + 104.0);
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = (float)pfVar10 + renderOffset->x;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = fVar9 + 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<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0xc))) = 0.0;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = 0.0;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) = local_140.x + 104.0;
|
|
pfVar10 = GHIDRA_CAST<float *>((local_140.x + 52.0));
|
|
pfStack_1ac = GHIDRA_CAST<float *>(CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pfStack_1ac)) + 0x1))),1));
|
|
local_188 = GHIDRA_CAST<float *>(0x0);
|
|
local_180 = GHIDRA_CAST<float *>(0x0);
|
|
local_16c = pfStack_1ac;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = pfVar10;
|
|
pfStack_1bc = pfVar10;
|
|
pfStack_1b8 = unaff_ESI;
|
|
pfStack_1b4 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(local_1cc))) + 0x8)));
|
|
pfStack_1b0 = unaff_ESI;
|
|
pVStack_18c = GHIDRA_CAST<Vector *>(pfVar10);
|
|
local_184 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(local_1cc))) + 0x8)));
|
|
local_17c = GHIDRA_CAST<Vector *>(pfVar10);
|
|
local_174 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(local_1cc))) + 0x8)));
|
|
local_170 = unaff_ESI;
|
|
local_134[0] = pfVar10;
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>(local_1cc))))->KColor::SetFromARGB(0xffffffff);
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x0))) = (float)pfVar10 + renderOffset->x;
|
|
(*GHIDRA_CAST<uint32_t *>((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)
|
|
;
|
|
pfVar10 = extraout_EAX_02;
|
|
pfVar14 = &local_120[0].y;
|
|
for (iVar3 = 0x1c; iVar3 != 0; iVar3 = iVar3 + -1) {
|
|
*pfVar14 = *pfVar10;
|
|
pfVar10 = pfVar10 + 1;
|
|
pfVar14 = pfVar14 + 1;
|
|
}
|
|
(**(code **)(*GHIDRA_CAST<int *>(*pfStack_194) + 0x14))();
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) = (float)pfStack_19c + 52.0;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x0))) = local_140.x;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = pfStack_19c;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = pfStack_19c;
|
|
local_1d0 = (uint8_t [4])pfStack_15c;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = local_140.x;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0xc))) = pfStack_15c;
|
|
pfStack_198 = GHIDRA_CAST<float *>(local_140.x);
|
|
pfStack_194 = pfStack_19c;
|
|
pfStack_190 = pfStack_15c;
|
|
pVStack_18c = GHIDRA_CAST<Vector *>(pfStack_19c);
|
|
pfStack_1b8 = GHIDRA_CAST<float *>(CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pfStack_1b8)) + 0x1))),1));
|
|
local_188 = GHIDRA_CAST<float *>(local_140.x);
|
|
local_180 = pfStack_15c;
|
|
local_178 = pfStack_1b8;
|
|
pfStack_1bc = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(local_1cc))) + 0x8)));
|
|
local_184 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(local_1cc))) + 0x8)));
|
|
local_17c = (*GHIDRA_CAST<uint32_t *>((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);
|
|
puVar6 = extraout_EAX_03;
|
|
ppfVar7 = local_134 + 3;
|
|
for (iVar3 = 0x1c; iVar3 != 0; iVar3 = iVar3 + -1) {
|
|
*ppfVar7 = GHIDRA_CAST<float *>(*puVar6);
|
|
puVar6 = puVar6 + 1;
|
|
ppfVar7 = ppfVar7 + 1;
|
|
}
|
|
(**(code **)(*GHIDRA_CAST<int *>(*pfStack_1a0) + 0x14))(&pfStack_198,local_134 + 3,g_drawRectUnset);
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = GHIDRA_CAST<float *>(0x42500000);
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x0))) = GHIDRA_CAST<float *>(0x0);
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = VStack_14c.x;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = GHIDRA_CAST<float *>(0x42500000);
|
|
local_1d0 = (uint8_t [4])0x42500000;
|
|
pfStack_1a4 = GHIDRA_CAST<float *>(0x42500000);
|
|
pfStack_1a0 = GHIDRA_CAST<float *>(0x0);
|
|
pfStack_19c = GHIDRA_CAST<float *>(VStack_14c.x);
|
|
pfStack_198 = GHIDRA_CAST<float *>(0x0);
|
|
local_1cc[8] = 1;
|
|
pfStack_194 = GHIDRA_CAST<float *>(0x42500000);
|
|
pfStack_190 = GHIDRA_CAST<float *>(0x42500000);
|
|
pVStack_18c = GHIDRA_CAST<Vector *>(VStack_14c.x);
|
|
local_188 = GHIDRA_CAST<float *>(0x42500000);
|
|
local_184 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(local_1cc))) + 0x8)));
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>((auStack_1d8 + -0xc)))))->KColor::SetFromARGB(0xffffffff);
|
|
}
|
|
color_20 = GHIDRA_CAST<KColor *>((auStack_1d8 + -0xc));
|
|
pVVar13 = aVStackY_610 + 0x83;
|
|
position = GHIDRA_CAST<Vector *>((auStack_1d8 + -0x18));
|
|
}
|
|
else {
|
|
local_134[3] = GHIDRA_CAST<float *>(((float)local_184 + 52.0));
|
|
LAB_0093ff6f:
|
|
if (GHIDRA_CAST<uint8_t *>(uVar1) == &DAT_0000000b) {
|
|
pfVar10 = GHIDRA_CAST<float *>(((float)local_134[0] * 0.5));
|
|
fVar9 = (float)local_184 * 0.5;
|
|
local_164.y = (float)CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_164.y)) + 0x1))),1);
|
|
local_178 = GHIDRA_CAST<float *>(((float)pfVar10 + 52.0));
|
|
local_164.x = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)local_1cc)) + 0x8)));
|
|
local_16c = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(local_1cc))) + 0x8)));
|
|
local_184 = GHIDRA_CAST<float *>(fVar9);
|
|
local_180 = pfVar10;
|
|
local_17c = GHIDRA_CAST<Vector *>(fVar9);
|
|
local_174 = GHIDRA_CAST<float *>(fVar9);
|
|
local_170 = pfVar10;
|
|
local_168 = local_178;
|
|
local_134[0] = pfVar10;
|
|
local_134[2] = local_178;
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>((local_1cc + 0xc)))))->KColor::SetFromARGB(0xffffffff);
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = 52.0;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = fVar9 + 104.0;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = (float)pfVar10 + renderOffset->x;
|
|
local_1d0 = (uint8_t [4])(fVar9 + 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<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = 0.0;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0xc))) = 0.0;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = 0.0;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) = 52.0;
|
|
pfStack_1bc = GHIDRA_CAST<float *>(0x0);
|
|
pfStack_1b4 = GHIDRA_CAST<float *>(0x42500000);
|
|
pfStack_1b0 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(auStack_1d8))) + 0x4)));
|
|
pfStack_1b8 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(auStack_1d8))) + 0x4)));
|
|
pVStack_18c = GHIDRA_CAST<Vector *>(0x0);
|
|
local_188 = GHIDRA_CAST<float *>(0x0);
|
|
local_184 = GHIDRA_CAST<float *>(0x42500000);
|
|
local_180 = GHIDRA_CAST<float *>(0x0);
|
|
pfStack_1ac = GHIDRA_CAST<float *>(CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pfStack_1ac)) + 0x1))),1));
|
|
local_17c = GHIDRA_CAST<Vector *>(0x0);
|
|
local_178 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(auStack_1d8))) + 0x4)));
|
|
local_174 = GHIDRA_CAST<float *>(0x42500000);
|
|
local_170 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(auStack_1d8))) + 0x4)));
|
|
local_16c = pfStack_1ac;
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>(local_1cc))))->KColor::SetFromARGB(0xffffffff);
|
|
VStack_14c.x = renderOffset->x + 0.0;
|
|
pfVar16 = GHIDRA_CAST<float *>(0x42500000);
|
|
VStack_14c.y = renderOffset->y + 0.0;
|
|
render_quad_set_rect(auStack_8c,&VStack_14c,GHIDRA_CAST<Vector *>((auStack_1d8 + -8)),color_11);
|
|
pfVar10 = extraout_EAX_04;
|
|
pfVar14 = &local_120[0].y;
|
|
for (iVar3 = 0x1c; iVar3 != 0; iVar3 = iVar3 + -1) {
|
|
*pfVar14 = *pfVar10;
|
|
pfVar10 = pfVar10 + 1;
|
|
pfVar14 = pfVar14 + 1;
|
|
}
|
|
(**(code **)(*GHIDRA_CAST<int *>(*pfStack_194) + 0x14))();
|
|
fVar9 = (float)pfStack_19c + 52.0;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0xc))) = local_144;
|
|
local_1d0 = (uint8_t [4])local_144;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x0))) = 52.0;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = 52.0;
|
|
pfStack_198 = GHIDRA_CAST<float *>(0x42500000);
|
|
pfStack_190 = local_144;
|
|
pfStack_1b8 = GHIDRA_CAST<float *>(CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pfStack_1b8)) + 0x1))),1));
|
|
local_188 = GHIDRA_CAST<float *>(0x42500000);
|
|
local_180 = local_144;
|
|
local_178 = pfStack_1b8;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = fVar9;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = fVar9;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) = pfVar16;
|
|
pfStack_1bc = pfVar16;
|
|
pfStack_194 = GHIDRA_CAST<float *>(fVar9);
|
|
pVStack_18c = GHIDRA_CAST<Vector *>(fVar9);
|
|
local_184 = pfVar16;
|
|
local_17c = GHIDRA_CAST<Vector *>(pfVar16);
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>(auStack_1d8))))->KColor::SetFromARGB(0xffffffff);
|
|
VStack_158.x = VStack_14c.x;
|
|
VStack_158.y = 52.0;
|
|
pfVar10 = GHIDRA_CAST<float *>((fVar9 + pfStack_150[1]));
|
|
render_quad_set_rect(&iStack_98,GHIDRA_CAST<Vector *>((auStack_1d8 + -0x14)),&VStack_158,color_12);
|
|
puVar6 = extraout_EAX_05;
|
|
ppfVar7 = local_134 + 3;
|
|
for (iVar3 = 0x1c; iVar3 != 0; iVar3 = iVar3 + -1) {
|
|
*ppfVar7 = GHIDRA_CAST<float *>(*puVar6);
|
|
puVar6 = puVar6 + 1;
|
|
ppfVar7 = ppfVar7 + 1;
|
|
}
|
|
(**(code **)(*GHIDRA_CAST<int *>(*pfStack_1a0) + 0x14))(&pfStack_198,local_134 + 3,g_drawRectUnset);
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = pfStack_150;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x0))) = VStack_14c.x;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = local_168;
|
|
local_1cc[8] = 1;
|
|
pfStack_1a4 = pfStack_150;
|
|
pfStack_1a0 = GHIDRA_CAST<float *>(VStack_14c.x);
|
|
pfStack_19c = local_168;
|
|
pfStack_198 = GHIDRA_CAST<float *>(VStack_14c.x);
|
|
pfStack_194 = pfStack_150;
|
|
pVStack_18c = GHIDRA_CAST<Vector *>(local_168);
|
|
local_184 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(local_1cc))) + 0x8)));
|
|
local_1d0 = (uint8_t [4])pfVar10;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = pfVar10;
|
|
pfStack_190 = pfVar10;
|
|
local_188 = pfVar10;
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>((auStack_1d8 + -0xc)))))->KColor::SetFromARGB(0xffffffff);
|
|
local_164.x = VStack_158.x;
|
|
local_164.y = 52.0;
|
|
pVVar13 = &local_164;
|
|
position = aVStackY_610 + 0x83;
|
|
color_20 = extraout_ECX_04;
|
|
}
|
|
else {
|
|
if (GHIDRA_CAST<float *>(uVar1) != GHIDRA_CAST<float *>(0xc)) goto LAB_00940b5f;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = (float)local_134[0] * 0.5;
|
|
fVar9 = (float)local_184 * 0.5;
|
|
local_164.y = (float)CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_164.y)) + 0x1))),1);
|
|
local_178 = GHIDRA_CAST<float *>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)local_1cc)) + 0x0))) + 104.0));
|
|
pfVar10 = GHIDRA_CAST<float *>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)local_1cc)) + 0x0))) + 52.0));
|
|
local_164.x = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)local_1cc)) + 0x8)));
|
|
local_16c = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(local_1cc))) + 0x8)));
|
|
local_184 = GHIDRA_CAST<float *>(fVar9);
|
|
local_180 = pfVar10;
|
|
local_17c = GHIDRA_CAST<Vector *>(fVar9);
|
|
local_174 = GHIDRA_CAST<float *>(fVar9);
|
|
local_170 = pfVar10;
|
|
local_168 = local_178;
|
|
local_134[2] = pfVar10;
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>((local_1cc + 0xc)))))->KColor::SetFromARGB(0xffffffff);
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = 52.0;
|
|
local_1d0 = (uint8_t [4])(fVar9 + 104.0);
|
|
local_140.x = (float)pfVar10 + renderOffset->x;
|
|
local_140.y = fVar9 + renderOffset->y;
|
|
render_quad_set_rect(wallQuad,&local_140,GHIDRA_CAST<Vector *>((auStack_1d8 + 4)),color_13);
|
|
pfVar15 = g_drawRectUnset;
|
|
(**(code **)(*GHIDRA_CAST<int *>(*local_188) + 0x14))();
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) = local_140.x + 104.0;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = pfStack_150;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0xc))) = 0.0;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = 0.0;
|
|
pfStack_1bc = pfStack_150;
|
|
pVStack_18c = GHIDRA_CAST<Vector *>(pfStack_150);
|
|
local_188 = GHIDRA_CAST<float *>(0x0);
|
|
local_180 = GHIDRA_CAST<float *>(0x0);
|
|
pfStack_1ac = GHIDRA_CAST<float *>(CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pfStack_1ac)) + 0x1))),1));
|
|
local_17c = GHIDRA_CAST<Vector *>(pfStack_150);
|
|
local_16c = pfStack_1ac;
|
|
pfVar10 = unaff_ESI;
|
|
pfVar14 = pfStack_150;
|
|
pfStack_1b8 = unaff_ESI;
|
|
pfStack_1b4 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(local_1cc))) + 0x8)));
|
|
pfStack_1b0 = unaff_ESI;
|
|
local_184 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(local_1cc))) + 0x8)));
|
|
local_174 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(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)pfVar14 + renderOffset->x;
|
|
local_140.y = renderOffset->y + 0.0;
|
|
VStack_14c.y = (float)pfVar10;
|
|
render_quad_set_rect(auStack_8c,&local_140,&VStack_14c,color_14);
|
|
pfVar10 = &local_120[0].y;
|
|
pfVar14 = extraout_EAX_06;
|
|
pfVar16 = &local_120[0].y;
|
|
for (iVar3 = 0x1c; iVar3 != 0; iVar3 = iVar3 + -1) {
|
|
*pfVar16 = *pfVar14;
|
|
pfVar14 = pfVar14 + 1;
|
|
pfVar16 = pfVar16 + 1;
|
|
}
|
|
pfVar14 = g_drawRectUnset;
|
|
(**(code **)(*GHIDRA_CAST<int *>(*pfStack_194) + 0x14))();
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0xc))) = local_144;
|
|
local_1d0 = (uint8_t [4])local_144;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x0))) = 52.0;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = local_140.x;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = local_140.x;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = 52.0;
|
|
pfStack_198 = GHIDRA_CAST<float *>(0x42500000);
|
|
pfStack_194 = GHIDRA_CAST<float *>(local_140.x);
|
|
pfStack_190 = local_144;
|
|
pVStack_18c = GHIDRA_CAST<Vector *>(local_140.x);
|
|
pfStack_1b8 = GHIDRA_CAST<float *>(CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(pfStack_1b8)) + 0x1))),1));
|
|
local_188 = GHIDRA_CAST<float *>(0x42500000);
|
|
local_180 = local_144;
|
|
local_178 = pfStack_1b8;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) = unaff_ESI;
|
|
pfStack_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 + pfStack_150[1];
|
|
local_140.x = *pfStack_150 + 52.0;
|
|
VStack_158.x = (float)pfVar15;
|
|
render_quad_set_rect(&iStack_98,&local_140,&VStack_158,color_15);
|
|
puVar6 = extraout_EAX_07;
|
|
ppfVar7 = local_134 + 3;
|
|
for (iVar3 = 0x1c; iVar3 != 0; iVar3 = iVar3 + -1) {
|
|
*ppfVar7 = GHIDRA_CAST<float *>(*puVar6);
|
|
puVar6 = puVar6 + 1;
|
|
ppfVar7 = ppfVar7 + 1;
|
|
}
|
|
(**(code **)(*GHIDRA_CAST<int *>(*pfStack_1a0) + 0x14))(&pfStack_198,local_134 + 3,g_drawRectUnset);
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x0))) = fStack_1a8 + 52.0;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = pfStack_150;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = local_168;
|
|
pfStack_1a4 = pfStack_150;
|
|
pfStack_19c = local_168;
|
|
local_1cc[8] = 1;
|
|
pfStack_194 = pfStack_150;
|
|
pVStack_18c = GHIDRA_CAST<Vector *>(local_168);
|
|
local_184 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(local_1cc))) + 0x8)));
|
|
local_1d0 = (uint8_t [4])pfVar10;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x4))) = pfVar10;
|
|
pfStack_1a0 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(auStack_1d8))) + 0x0)));
|
|
pfStack_198 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(auStack_1d8))) + 0x0)));
|
|
pfStack_190 = pfVar10;
|
|
local_188 = pfVar10;
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>((auStack_1d8 + -0xc)))))->KColor::SetFromARGB(0xffffffff);
|
|
local_164.y = 52.0;
|
|
pVVar13 = &local_164;
|
|
position = aVStackY_610 + 0x83;
|
|
color_20 = extraout_ECX_05;
|
|
local_164.x = (float)pfVar14;
|
|
}
|
|
}
|
|
render_quad_set_rect(auStack_a4,position,pVVar13,color_20);
|
|
puVar6 = extraout_EAX_01;
|
|
ppfVar7 = local_134;
|
|
for (iVar3 = 0x1c; iVar3 != 0; iVar3 = iVar3 + -1) {
|
|
*ppfVar7 = GHIDRA_CAST<float *>(*puVar6);
|
|
puVar6 = puVar6 + 1;
|
|
ppfVar7 = ppfVar7 + 1;
|
|
}
|
|
piVar4 = GHIDRA_CAST<int *>(*pfStack_1ac);
|
|
}
|
|
else {
|
|
local_144 = GHIDRA_CAST<float *>(g_vectorZero.x);
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) = g_vectorZero.y;
|
|
if (((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(local_1cc))) + 0x0))) == GHIDRA_CAST<float *>(0x2)) ||
|
|
((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<uint8_t *>(local_1cc))) + 0x0))) == &DAT_00000007)) {
|
|
local_144 = GHIDRA_CAST<float *>(0x0);
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) = GHIDRA_CAST<float *>(0x42500000);
|
|
local_184 = GHIDRA_CAST<float *>(((float)local_184 - 104.0));
|
|
}
|
|
else if (((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(local_1cc))) + 0x0))) == GHIDRA_CAST<float *>(0x3)) ||
|
|
((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<uint8_t *>(local_1cc))) + 0x0))) == &DAT_00000005)) {
|
|
local_144 = GHIDRA_CAST<float *>(0x42d00000);
|
|
local_134[0] = GHIDRA_CAST<float *>(((float)local_134[0] - 208.0));
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x8))) = GHIDRA_CAST<float *>(0x0);
|
|
}
|
|
fVar9 = (float)local_184 + 104.0;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(local_1cc)) + 0x0))) = (float)local_144 + 52.0;
|
|
local_16c = GHIDRA_CAST<float *>(((*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&((float)local_1cc)) + 0x8))) + fVar9));
|
|
local_164.y = (float)CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_164.y)) + 0x1))),1);
|
|
pfVar10 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(local_1cc))) + 0x8)));
|
|
pfVar14 = local_144;
|
|
local_180 = local_144;
|
|
local_17c = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<Vector *>(local_1cc))) + 0x8)));
|
|
local_178 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(local_1cc))) + 0x0)));
|
|
local_174 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(local_1cc))) + 0x8)));
|
|
local_170 = local_144;
|
|
local_168 = (*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<float *>(local_1cc))) + 0x0)));
|
|
local_164.x = (float)local_16c;
|
|
local_138 = GHIDRA_CAST<Vector *>(fVar9);
|
|
local_134[3] = local_16c;
|
|
(GHIDRA_CAST<KColor *>((GHIDRA_CAST<KColor *>((local_1cc + 0xc)))))->KColor::SetFromARGB(0xffffffff);
|
|
local_140.x = 52.0;
|
|
(*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(&(auStack_1d8)) + 0x4))) = (float)pfVar14 + renderOffset->x;
|
|
local_1d0 = (uint8_t [4])((float)pfVar10 + renderOffset->y);
|
|
local_140.y = fVar9;
|
|
render_quad_set_rect(wallQuad,GHIDRA_CAST<Vector *>((auStack_1d8 + 4)),&local_140,color_16);
|
|
pfVar14 = g_drawRectUnset;
|
|
(**(code **)(**GHIDRA_CAST<int **>(other) + 0x14))();
|
|
local_180 = GHIDRA_CAST<float *>(local_1d0);
|
|
local_184 = GHIDRA_CAST<float *>((local_140.x + 104.0 + (float)pfStack_150));
|
|
local_188 = GHIDRA_CAST<float *>(local_1d0);
|
|
pVStack_18c = GHIDRA_CAST<Vector *>(((float)pfStack_150 + local_140.x + 52.0));
|
|
local_16c = GHIDRA_CAST<float *>(CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_16c)) + 0x1))),1));
|
|
local_170 = local_134[0];
|
|
local_178 = local_134[0];
|
|
auVar12 = 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;
|
|
fVar9 = renderOffset->y + 0.0 + (float)auVar12;
|
|
render_quad_set_rect(&local_120[0].y,GHIDRA_CAST<Vector *>((auStack_1d8 + -8)),&VStack_14c,color_17);
|
|
pfVar10 = g_drawRectUnset;
|
|
(**(code **)(**GHIDRA_CAST<int **>(other) + 0x14))();
|
|
local_184 = GHIDRA_CAST<float *>((fVar9 + 52.0));
|
|
local_180 = local_144;
|
|
pfStack_190 = local_144;
|
|
local_178 = GHIDRA_CAST<float *>(CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_178)) + 0x1))),1));
|
|
pfStack_198 = pfVar14;
|
|
pfStack_194 = GHIDRA_CAST<float *>(fVar9);
|
|
pVStack_18c = GHIDRA_CAST<Vector *>(fVar9);
|
|
local_188 = pfVar14;
|
|
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;
|
|
fVar9 = renderOffset->y + 0.0 + fVar9;
|
|
render_quad_set_rect(local_134 + 3,GHIDRA_CAST<Vector *>((auStack_1d8 + -0x14)),&VStack_158,color_18);
|
|
(**(code **)(**GHIDRA_CAST<int **>(other) + 0x14))(&pfStack_198,local_134 + 3,g_drawRectUnset);
|
|
pfStack_1a0 = GHIDRA_CAST<float *>((fVar9 + fStack_1a8 + 52.0));
|
|
local_184 = GHIDRA_CAST<float *>(CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_184)) + 0x1))),1));
|
|
pVStack_18c = GHIDRA_CAST<Vector *>(pfStack_150);
|
|
pfStack_19c = pfStack_150;
|
|
local_188 = GHIDRA_CAST<float *>(VStack_14c.x);
|
|
pfStack_190 = GHIDRA_CAST<float *>(VStack_14c.x);
|
|
pfStack_1a4 = pfVar10;
|
|
pfStack_198 = pfStack_1a0;
|
|
pfStack_194 = pfVar10;
|
|
(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);
|
|
piVar4 = *GHIDRA_CAST<int **>(other);
|
|
}
|
|
(**(code **)(*piVar4 + 0x14))(&pfStack_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;
|
|
uint8_t quadSource [116];
|
|
int savedBlendMode4;
|
|
KColor quadColor;
|
|
Vector local_7c;
|
|
Vector local_74;
|
|
Vector local_6c;
|
|
Vector local_64;
|
|
float local_5c;
|
|
DestinationQuad uvQuad;
|
|
uint8_t 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<char *>((*GHIDRA_CAST<int *>((this + 0x70)) * 0x13c + 0x28d + GHIDRA_INT(this))) != '\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<uint8_t *>((GHIDRA_CAST<char *>(((GHIDRA_CAST<Backdrop *>((GHIDRA_INT(local_6c.y) + 0x2a))))) + 0x2)))) + 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<uint8_t *>((GHIDRA_CAST<char *>(((GHIDRA_CAST<Backdrop *>((GHIDRA_INT(fVar7) + 0x2a))))) + 0x2)))) + 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<uint8_t *>((GHIDRA_CAST<char *>(((GHIDRA_CAST<Backdrop *>((GHIDRA_INT(local_6c.y) + 0x2a))))) + 0x2)))) + 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<uint8_t *>((GHIDRA_CAST<char *>(((GHIDRA_CAST<Backdrop *>((GHIDRA_INT(local_6c.y) + 0x2a))))) + 0x2)))) + 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<uint8_t *>((GHIDRA_CAST<char *>(((GHIDRA_CAST<Backdrop *>((GHIDRA_INT(local_6c.y) + 0x2a))))) + 0x2)))) + 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<uint8_t *>((GHIDRA_CAST<char *>(((GHIDRA_CAST<Backdrop *>((GHIDRA_INT(fVar7) + 0x2a))))) + 0x2)))) + 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<uint8_t *>((GHIDRA_CAST<char *>(((GHIDRA_CAST<Backdrop *>((GHIDRA_INT(local_6c.y) + 0x2a))))) + 0x2)))) + 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<uint8_t *>((GHIDRA_CAST<char *>(((GHIDRA_CAST<Backdrop *>((GHIDRA_INT(fVar7) + 0x2a))))) + 0x2)))) + 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;
|
|
}
|