Reconstruction layout: generated-src/ (generated) and src/ (curated), CMake, the first takeover: RNG

The decompiled C++ tree moves to generated-src/ (classes.h, C++20); src/ is for code written by hand. A curated function
defines the generated declaration and starts its comment with its address, and source_tree.py stops emitting that body.
src/rng.cpp takes over RNG (SetSeed, the constructor, Next, RandomInt, RandomFloat, Shuffle) with the shift table read
from the exe as a constexpr array; src/log.h names KAGE_LogMessage's levels (1 INFO, 2 NET, 4 WARN, 8 ERROR, 16 ASSERT,
from its prefix jump table). CMakeLists.txt builds src/*.cpp against generated-src/classes.h (clean with -Wall -Wextra).
structs.hpp and headers.py are retired: scripts/merge_fields.py writes the merged field list, classes.h checks the layout.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-11-19 21:10:23 -05:00
1 parent 2ff2d5d87f
commit 3ce74c6e2d
331 files changed
+485 -7835

No files matched your search

+448
View File
@@ -0,0 +1,448 @@
#include "classes.h"
// 00424310
ChallengeParams::ChallengeParams()
{
void *mapHead;
void *local_10;
undefined1 *puStack_c;
undefined4 local_8;
puStack_c = &LAB_00af192d;
local_10 = ExceptionList;
ExceptionList = &local_10;
*GHIDRA_CAST<undefined4 *>(this) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x10)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x14)) = 0xf;
*GHIDRA_CAST<undefined1 *>(this) = 0;
local_8 = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x18)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x1c)) = 0;
mapHead = operator_new(0x14);
*(void **)mapHead = mapHead;
*(void **)(GHIDRA_CAST<char *>(mapHead) + 4) = mapHead;
*(void **)(GHIDRA_CAST<char *>(mapHead) + 8) = mapHead;
*GHIDRA_CAST<undefined2 *>((GHIDRA_CAST<char *>(mapHead) + 0xc)) = 0x101;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x18)) = mapHead;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x20)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x24)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x28)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x2c)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x30)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x34)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x48)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x4c)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x50)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x8c)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x90)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x94)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x98)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x9c)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0xa0)) = 0;
this->ChallengeParam::Reset();
ExceptionList = local_10;
return;
}
// 009584b0
void ChallengeParams::operator_assign_move(char *param_1)
{
int *tree;
char *pcVar1;
int treeHead;
undefined4 uVar3;
undefined4 uVar4;
undefined4 uVar5;
char *in_ECX;
char *pcVar6;
if (in_ECX != param_1) {
(GHIDRA_CAST<std::string *>((in_ECX)))->std::string::_Tidy_deallocate();
uVar3 = *GHIDRA_CAST<undefined4 *>((param_1 + 4));
uVar4 = *GHIDRA_CAST<undefined4 *>((param_1 + 8));
uVar5 = *GHIDRA_CAST<undefined4 *>((param_1 + 0xc));
*GHIDRA_CAST<undefined4 *>(in_ECX) = *GHIDRA_CAST<undefined4 *>(param_1);
*GHIDRA_CAST<undefined4 *>((in_ECX + 4)) = uVar3;
*GHIDRA_CAST<undefined4 *>((in_ECX + 8)) = uVar4;
*GHIDRA_CAST<undefined4 *>((in_ECX + 0xc)) = uVar5;
*GHIDRA_CAST<undefined8 *>((in_ECX + 0x10)) = *GHIDRA_CAST<undefined8 *>((param_1 + 0x10));
param_1[0x10] = '\0';
param_1[0x11] = '\0';
param_1[0x12] = '\0';
param_1[0x13] = '\0';
param_1[0x14] = '\x0f';
param_1[0x15] = '\0';
param_1[0x16] = '\0';
param_1[0x17] = '\0';
*param_1 = '\0';
}
tree = GHIDRA_CAST<int *>((in_ECX + 0x18));
if (tree != GHIDRA_CAST<int *>((param_1 + 0x18))) {
treeHead = *tree;
FID_conflict__Erase_tree<fuzzer::fuzzer_allocator<std::_Tree_node<fuzzer::TracePC::PCTableEntry_const*,void*>_>_>
(tree,(fuzzer_allocator<std::_Tree_node<unsigned_int,void*>_> *)tree,
*(_Tree_node<unsigned_int,void*> **)(treeHead + 4));
*GHIDRA_CAST<int *>((treeHead + 4)) = treeHead;
*GHIDRA_CAST<int *>(treeHead) = treeHead;
*GHIDRA_CAST<int *>((treeHead + 8)) = treeHead;
in_ECX[0x1c] = '\0';
in_ECX[0x1d] = '\0';
in_ECX[0x1e] = '\0';
in_ECX[0x1f] = '\0';
uVar3 = *GHIDRA_CAST<undefined4 *>((in_ECX + 0x18));
*GHIDRA_CAST<undefined4 *>((in_ECX + 0x18)) = *GHIDRA_CAST<undefined4 *>((param_1 + 0x18));
*GHIDRA_CAST<undefined4 *>((param_1 + 0x18)) = uVar3;
uVar3 = *GHIDRA_CAST<undefined4 *>((in_ECX + 0x1c));
*GHIDRA_CAST<undefined4 *>((in_ECX + 0x1c)) = *GHIDRA_CAST<undefined4 *>((param_1 + 0x1c));
*GHIDRA_CAST<undefined4 *>((param_1 + 0x1c)) = uVar3;
}
pcVar1 = param_1 + 0x20;
if (in_ECX + 0x20 != pcVar1) {
FID_conflict__Tidy(in_ECX + 0x20);
*GHIDRA_CAST<undefined4 *>((in_ECX + 0x20)) = *GHIDRA_CAST<undefined4 *>(pcVar1);
*GHIDRA_CAST<undefined4 *>((in_ECX + 0x24)) = *GHIDRA_CAST<undefined4 *>((param_1 + 0x24));
*GHIDRA_CAST<undefined4 *>((in_ECX + 0x28)) = *GHIDRA_CAST<undefined4 *>((param_1 + 0x28));
pcVar1[0] = '\0';
pcVar1[1] = '\0';
pcVar1[2] = '\0';
pcVar1[3] = '\0';
param_1[0x24] = '\0';
param_1[0x25] = '\0';
param_1[0x26] = '\0';
param_1[0x27] = '\0';
param_1[0x28] = '\0';
param_1[0x29] = '\0';
param_1[0x2a] = '\0';
param_1[0x2b] = '\0';
}
pcVar1 = param_1 + 0x2c;
if (in_ECX + 0x2c != pcVar1) {
FID_conflict__Tidy(in_ECX + 0x2c);
*GHIDRA_CAST<undefined4 *>((in_ECX + 0x2c)) = *GHIDRA_CAST<undefined4 *>(pcVar1);
*GHIDRA_CAST<undefined4 *>((in_ECX + 0x30)) = *GHIDRA_CAST<undefined4 *>((param_1 + 0x30));
*GHIDRA_CAST<undefined4 *>((in_ECX + 0x34)) = *GHIDRA_CAST<undefined4 *>((param_1 + 0x34));
pcVar1[0] = '\0';
pcVar1[1] = '\0';
pcVar1[2] = '\0';
pcVar1[3] = '\0';
param_1[0x30] = '\0';
param_1[0x31] = '\0';
param_1[0x32] = '\0';
param_1[0x33] = '\0';
param_1[0x34] = '\0';
param_1[0x35] = '\0';
param_1[0x36] = '\0';
param_1[0x37] = '\0';
}
pcVar1 = param_1 + 0x48;
*GHIDRA_CAST<undefined4 *>((in_ECX + 0x38)) = *GHIDRA_CAST<undefined4 *>((param_1 + 0x38));
*GHIDRA_CAST<undefined4 *>((in_ECX + 0x3c)) = *GHIDRA_CAST<undefined4 *>((param_1 + 0x3c));
*GHIDRA_CAST<undefined4 *>((in_ECX + 0x40)) = *GHIDRA_CAST<undefined4 *>((param_1 + 0x40));
*GHIDRA_CAST<undefined4 *>((in_ECX + 0x44)) = *GHIDRA_CAST<undefined4 *>((param_1 + 0x44));
if (in_ECX + 0x48 != pcVar1) {
FID_conflict__Tidy(in_ECX + 0x48);
*GHIDRA_CAST<undefined4 *>((in_ECX + 0x48)) = *GHIDRA_CAST<undefined4 *>(pcVar1);
*GHIDRA_CAST<undefined4 *>((in_ECX + 0x4c)) = *GHIDRA_CAST<undefined4 *>((param_1 + 0x4c));
*GHIDRA_CAST<undefined4 *>((in_ECX + 0x50)) = *GHIDRA_CAST<undefined4 *>((param_1 + 0x50));
pcVar1[0] = '\0';
pcVar1[1] = '\0';
pcVar1[2] = '\0';
pcVar1[3] = '\0';
param_1[0x4c] = '\0';
param_1[0x4d] = '\0';
param_1[0x4e] = '\0';
param_1[0x4f] = '\0';
param_1[0x50] = '\0';
param_1[0x51] = '\0';
param_1[0x52] = '\0';
param_1[0x53] = '\0';
}
pcVar1 = param_1 + 0x8c;
*GHIDRA_CAST<undefined4 *>((in_ECX + 0x54)) = *GHIDRA_CAST<undefined4 *>((param_1 + 0x54));
*GHIDRA_CAST<undefined4 *>((in_ECX + 0x58)) = *GHIDRA_CAST<undefined4 *>((param_1 + 0x58));
*GHIDRA_CAST<undefined4 *>((in_ECX + 0x5c)) = *GHIDRA_CAST<undefined4 *>((param_1 + 0x5c));
*GHIDRA_CAST<undefined4 *>((in_ECX + 0x60)) = *GHIDRA_CAST<undefined4 *>((param_1 + 0x60));
*GHIDRA_CAST<undefined4 *>((in_ECX + 100)) = *GHIDRA_CAST<undefined4 *>((param_1 + 100));
*GHIDRA_CAST<undefined4 *>((in_ECX + 0x68)) = *GHIDRA_CAST<undefined4 *>((param_1 + 0x68));
in_ECX[0x6c] = param_1[0x6c];
*GHIDRA_CAST<undefined4 *>((in_ECX + 0x70)) = *GHIDRA_CAST<undefined4 *>((param_1 + 0x70));
in_ECX[0x74] = param_1[0x74];
*GHIDRA_CAST<undefined4 *>((in_ECX + 0x78)) = *GHIDRA_CAST<undefined4 *>((param_1 + 0x78));
in_ECX[0x7c] = param_1[0x7c];
in_ECX[0x7d] = param_1[0x7d];
in_ECX[0x7e] = param_1[0x7e];
in_ECX[0x7f] = param_1[0x7f];
*GHIDRA_CAST<undefined4 *>((in_ECX + 0x80)) = *GHIDRA_CAST<undefined4 *>((param_1 + 0x80));
*GHIDRA_CAST<undefined4 *>((in_ECX + 0x84)) = *GHIDRA_CAST<undefined4 *>((param_1 + 0x84));
*GHIDRA_CAST<undefined4 *>((in_ECX + 0x88)) = *GHIDRA_CAST<undefined4 *>((param_1 + 0x88));
if (in_ECX + 0x8c != pcVar1) {
FID_conflict__Tidy(in_ECX + 0x8c);
*GHIDRA_CAST<undefined4 *>((in_ECX + 0x8c)) = *GHIDRA_CAST<undefined4 *>(pcVar1);
*GHIDRA_CAST<undefined4 *>((in_ECX + 0x90)) = *GHIDRA_CAST<undefined4 *>((param_1 + 0x90));
*GHIDRA_CAST<undefined4 *>((in_ECX + 0x94)) = *GHIDRA_CAST<undefined4 *>((param_1 + 0x94));
pcVar1[0] = '\0';
pcVar1[1] = '\0';
pcVar1[2] = '\0';
pcVar1[3] = '\0';
param_1[0x90] = '\0';
param_1[0x91] = '\0';
param_1[0x92] = '\0';
param_1[0x93] = '\0';
param_1[0x94] = '\0';
param_1[0x95] = '\0';
param_1[0x96] = '\0';
param_1[0x97] = '\0';
}
pcVar6 = param_1 + 0x98;
pcVar1 = in_ECX + 0x98;
if (pcVar1 != pcVar6) {
FID_conflict__Tidy(pcVar1);
*GHIDRA_CAST<undefined4 *>(pcVar1) = *GHIDRA_CAST<undefined4 *>(pcVar6);
*GHIDRA_CAST<undefined4 *>((in_ECX + 0x9c)) = *GHIDRA_CAST<undefined4 *>((param_1 + 0x9c));
*GHIDRA_CAST<undefined4 *>((in_ECX + 0xa0)) = *GHIDRA_CAST<undefined4 *>((param_1 + 0xa0));
pcVar6[0] = '\0';
pcVar6[1] = '\0';
pcVar6[2] = '\0';
pcVar6[3] = '\0';
param_1[0x9c] = '\0';
param_1[0x9d] = '\0';
param_1[0x9e] = '\0';
param_1[0x9f] = '\0';
param_1[0xa0] = '\0';
param_1[0xa1] = '\0';
param_1[0xa2] = '\0';
param_1[0xa3] = '\0';
}
return;
}
// 0095c050
void * ChallengeParams::copy_constructor(ChallengeParam *other)
{
void *pvVar1;
size_t srcBytes;
uint uVar2;
void *pvVar3;
void *local_10;
undefined1 *puStack_c;
undefined4 local_8;
undefined4 *roomset;
local_8 = 0xffffffff;
puStack_c = &LAB_00b0c54f;
local_10 = ExceptionList;
ExceptionList = &local_10;
this->std::string::string(other);
local_8 = 0;
roomset = GHIDRA_CAST<undefined4 *>((GHIDRA_INT(this) + 0x18));
*roomset = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x1c)) = 0;
pvVar1 = operator_new(0x14);
*(void **)pvVar1 = pvVar1;
*(void **)(GHIDRA_CAST<char *>(pvVar1) + 4) = pvVar1;
*(void **)(GHIDRA_CAST<char *>(pvVar1) + 8) = pvVar1;
*GHIDRA_CAST<undefined2 *>((GHIDRA_CAST<char *>(pvVar1) + 0xc)) = 0x101;
*roomset = pvVar1;
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 1;
std_set_uint_copy(roomset,&other->_roomset,GHIDRA_INT(other));
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 2;
std::vector<int>::copy_constructor(&other->_collectibleList);
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 3;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x2c)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x30)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x34)) = 0;
pvVar1 = (other->_trinketList)._begin;
pvVar3 = (other->_trinketList)._end;
if (pvVar1 != pvVar3) {
srcBytes = GHIDRA_INT(pvVar3) - GHIDRA_INT(pvVar1);
uVar2 = GHIDRA_INT(srcBytes) >> 2;
if (0x3fffffff < uVar2) goto LAB_0095c2fe;
uVar2 = uVar2 * 4;
pvVar3 = std::_Allocate(uVar2);
*(void **)(GHIDRA_CAST<char *>(this) + 0x2c) = pvVar3;
*(void **)(GHIDRA_CAST<char *>(this) + 0x30) = pvVar3;
*(void **)(GHIDRA_CAST<char *>(this) + 0x34) = (void *)(GHIDRA_INT(pvVar3) + uVar2);
pvVar3 = *(void **)(GHIDRA_CAST<char *>(this) + 0x2c);
memmove(pvVar3,pvVar1,srcBytes);
*(void **)(GHIDRA_CAST<char *>(this) + 0x30) = (void *)(uVar2 + GHIDRA_INT(pvVar3));
}
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 4;
*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x38)) = other->_startingPill;
*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x3c)) = other->_startingCard;
*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x40)) = other->_endStage;
*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x44)) = other->_playerType;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x48)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x4c)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x50)) = 0;
pvVar1 = (other->_achievementList)._begin;
pvVar3 = (other->_achievementList)._end;
if (pvVar1 != pvVar3) {
srcBytes = GHIDRA_INT(pvVar3) - GHIDRA_INT(pvVar1);
uVar2 = GHIDRA_INT(srcBytes) >> 2;
if (0x3fffffff < uVar2) goto LAB_0095c2fe;
uVar2 = uVar2 * 4;
pvVar3 = std::_Allocate(uVar2);
*(void **)(GHIDRA_CAST<char *>(this) + 0x48) = pvVar3;
*(void **)(GHIDRA_CAST<char *>(this) + 0x4c) = pvVar3;
*(void **)(GHIDRA_CAST<char *>(this) + 0x50) = (void *)(GHIDRA_INT(pvVar3) + uVar2);
pvVar3 = *(void **)(GHIDRA_CAST<char *>(this) + 0x48);
memmove(pvVar3,pvVar1,srcBytes);
*(void **)(GHIDRA_CAST<char *>(this) + 0x4c) = (void *)(uVar2 + GHIDRA_INT(pvVar3));
}
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 5;
*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x54)) = other->_soulHearts;
*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x58)) = other->_blackHearts;
*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x5c)) = other->_hearts;
*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x60)) = other->_maxHearts;
*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 100)) = other->_coins;
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x68)) = other->_addDamage;
*GHIDRA_CAST<byte *>((GHIDRA_CAST<char *>(this) + 0x6c)) = other->_canShoot;
*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x70)) = other->_difficulty;
*GHIDRA_CAST<byte *>((GHIDRA_CAST<char *>(this) + 0x74)) = other->_isMegaSatan;
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x78)) = other->_minFireRate;
*GHIDRA_CAST<byte *>((GHIDRA_CAST<char *>(this) + 0x7c)) = other->_maxDamage;
*GHIDRA_CAST<byte *>((GHIDRA_CAST<char *>(this) + 0x7d)) = other->_minShotSpeed;
*GHIDRA_CAST<byte *>((GHIDRA_CAST<char *>(this) + 0x7e)) = other->_bigRange;
*GHIDRA_CAST<byte *>((GHIDRA_CAST<char *>(this) + 0x7f)) = other->_isPathTypeSet;
*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x80)) = other->_pathType;
*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x84)) = other->_getCurse;
*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x88)) = other->_curseFilter;
std::vector<int>::copy_constructor(&other->_collectibleTwinList);
(*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 6;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x98)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x9c)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0xa0)) = 0;
pvVar1 = (other->_seedEffects)._begin;
pvVar3 = (other->_seedEffects)._end;
if (pvVar1 != pvVar3) {
srcBytes = GHIDRA_INT(pvVar3) - GHIDRA_INT(pvVar1);
uVar2 = GHIDRA_INT(srcBytes) >> 2;
if (0x3fffffff < uVar2) {
LAB_0095c2fe:
/* WARNING: Subroutine does not return */
FUN_0040cee0();
}
uVar2 = uVar2 * 4;
pvVar3 = std::_Allocate(uVar2);
*(void **)(GHIDRA_CAST<char *>(this) + 0x98) = pvVar3;
*(void **)(GHIDRA_CAST<char *>(this) + 0x9c) = pvVar3;
*(void **)(GHIDRA_CAST<char *>(this) + 0xa0) = (void *)(GHIDRA_INT(pvVar3) + uVar2);
pvVar3 = *(void **)(GHIDRA_CAST<char *>(this) + 0x98);
memmove(pvVar3,pvVar1,srcBytes);
*(void **)(GHIDRA_CAST<char *>(this) + 0x9c) = (void *)(GHIDRA_INT(pvVar3) + uVar2);
}
ExceptionList = local_10;
return this;
}
// 0095c6a0
ChallengeParams::ChallengeParams(void *other)
{
undefined4 uVar1;
undefined4 uVar2;
undefined4 uVar3;
void *treeHead;
void *local_10;
undefined1 *puStack_c;
undefined4 local_8;
puStack_c = &LAB_00b0ac3d;
local_10 = ExceptionList;
ExceptionList = &local_10;
*GHIDRA_CAST<undefined4 *>(this) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x10)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x14)) = 0;
uVar1 = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 4));
uVar2 = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 8));
uVar3 = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0xc));
*GHIDRA_CAST<undefined4 *>(this) = *GHIDRA_CAST<undefined4 *>(other);
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 4)) = uVar1;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 8)) = uVar2;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0xc)) = uVar3;
*GHIDRA_CAST<undefined8 *>((GHIDRA_CAST<char *>(this) + 0x10)) = *GHIDRA_CAST<undefined8 *>((GHIDRA_CAST<char *>(other) + 0x10));
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x10)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x14)) = 0xf;
*GHIDRA_CAST<undefined1 *>(other) = 0;
local_8 = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x18)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x1c)) = 0;
treeHead = operator_new(0x14);
*(void **)treeHead = treeHead;
*(void **)(GHIDRA_CAST<char *>(treeHead) + 4) = treeHead;
*(void **)(GHIDRA_CAST<char *>(treeHead) + 8) = treeHead;
*GHIDRA_CAST<undefined2 *>((GHIDRA_CAST<char *>(treeHead) + 0xc)) = 0x101;
*(void **)(GHIDRA_CAST<char *>(this) + 0x18) = treeHead;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x18)) = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x18));
*(void **)(GHIDRA_CAST<char *>(other) + 0x18) = treeHead;
uVar1 = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x1c));
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x1c)) = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x1c));
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x1c)) = uVar1;
uVar1 = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x28));
uVar2 = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x24));
uVar3 = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x20));
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x28)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x24)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x20)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x20)) = uVar3;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x24)) = uVar2;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x28)) = uVar1;
uVar1 = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x34));
uVar2 = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x30));
uVar3 = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x2c));
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x34)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x30)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x2c)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x2c)) = uVar3;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x30)) = uVar2;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x34)) = uVar1;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x38)) = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x38));
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x3c)) = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x3c));
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x40)) = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x40));
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x44)) = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x44));
uVar1 = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x48));
uVar2 = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x50));
uVar3 = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x4c));
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x50)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x4c)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x48)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x48)) = uVar1;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x4c)) = uVar3;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x50)) = uVar2;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x54)) = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x54));
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x58)) = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x58));
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x5c)) = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x5c));
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x60)) = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x60));
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 100)) = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 100));
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x68)) = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x68));
*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(this) + 0x6c)) = *GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(other) + 0x6c));
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x70)) = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x70));
*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(this) + 0x74)) = *GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(other) + 0x74));
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x78)) = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x78));
*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(this) + 0x7c)) = *GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(other) + 0x7c));
*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(this) + 0x7d)) = *GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(other) + 0x7d));
*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(this) + 0x7e)) = *GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(other) + 0x7e));
*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(this) + 0x7f)) = *GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(other) + 0x7f));
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x80)) = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x80));
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x84)) = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x84));
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x88)) = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x88));
uVar1 = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x94));
uVar2 = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x90));
uVar3 = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x8c));
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x94)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x90)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x8c)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x8c)) = uVar3;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x90)) = uVar2;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x94)) = uVar1;
uVar1 = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x98));
uVar2 = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0xa0));
uVar3 = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x9c));
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0xa0)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x9c)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(other) + 0x98)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x98)) = uVar1;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x9c)) = uVar3;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0xa0)) = uVar2;
ExceptionList = local_10;
return;
}