Files
isaac-port/generated-src/wisp_entry.cpp
T
shweetandClaude Opus 5.5 3ce74c6e2d 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>
2026-11-19 21:10:23 -05:00

105 lines
5.9 KiB
C++

#include "classes.h"
// 007227d0
void WispEntry::constructor()
{
undefined4 *subRecordFields;
undefined4 *subRecord;
int subRecordsLeft;
subRecord = GHIDRA_CAST<undefined4 *>((GHIDRA_INT(this) + 0x18));
*GHIDRA_CAST<undefined4 *>(this) = 0x40000000;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 4)) = 0x40400000;
subRecordsLeft = 2;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 8)) = 0x3dcccccd;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0xc)) = 0x3f800000;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x10)) = 0x41f00000;
*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(this) + 0x14)) = 1;
subRecordFields = GHIDRA_CAST<undefined4 *>((GHIDRA_INT(this) + 0x2c));
do {
*subRecord = 0x3f800000;
subRecord = subRecord + 0x12;
subRecordFields[-4] = 0x3f333333;
subRecordFields[-3] = 0;
subRecordFields[-2] = 0x3f800000;
subRecordFields[-1] = 0x3f800000;
*subRecordFields = 0x3f800000;
subRecordFields[1] = 0x3f800000;
subRecordFields[2] = 0;
subRecordFields[3] = 0;
subRecordFields[4] = 0;
subRecordFields[5] = 0;
subRecordFields[6] = 0;
subRecordFields[7] = 0;
subRecordFields[8] = 0;
subRecordFields[9] = 0;
subRecordFields[10] = 0;
subRecordFields[0xb] = 0;
subRecordFields[0xc] = 0;
subRecordsLeft = subRecordsLeft + -1;
subRecordFields = subRecordFields + 0x12;
} while (subRecordsLeft != 0);
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0xa8)) = 0x3dcccccd;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0xac)) = 0x3f800000;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0xb0)) = 0x3f800000;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0xb4)) = 0x3f800000;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0xb8)) = 0x3f800000;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0xbc)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0xc0)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0xc4)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 200)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0xcc)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0xd0)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0xd4)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0xd8)) = 0x3f800000;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0xdc)) = 0x3f800000;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0xe0)) = 0x3f800000;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0xe4)) = 0x3f800000;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0xe8)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0xec)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0xf0)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0xf4)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0xf8)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0xfc)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x100)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x104)) = 0x3f800000;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x108)) = 0x3f800000;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x10c)) = 0x3f800000;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x110)) = 0x3f800000;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x114)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x118)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x11c)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x120)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x124)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x128)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 300)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x130)) = 0x3f800000;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x134)) = 0x3f800000;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x138)) = 0x3f800000;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x13c)) = 0x3f800000;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x140)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x144)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x148)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x14c)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x150)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x154)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x158)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x15c)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x16c)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x170)) = 0xf;
*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(this) + 0x15c)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x174)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x184)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x188)) = 0xf;
*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(this) + 0x174)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x18c)) = 1;
*GHIDRA_CAST<undefined2 *>((GHIDRA_CAST<char *>(this) + 400)) = 1;
*GHIDRA_CAST<undefined1 **>((GHIDRA_CAST<char *>(this) + 0x13c)) = &DAT_bf800000;
*GHIDRA_CAST<undefined1 **>((GHIDRA_CAST<char *>(this) + 0x110)) = &DAT_bf800000;
*GHIDRA_CAST<undefined1 **>((GHIDRA_CAST<char *>(this) + 0x60)) = &DAT_bf800000;
*GHIDRA_CAST<undefined1 **>((GHIDRA_CAST<char *>(this) + 100)) = &DAT_bf800000;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x68)) = 0xffffffff;
*GHIDRA_CAST<undefined1 **>((GHIDRA_CAST<char *>(this) + 0x78)) = &DAT_bf800000;
return;
}