Files
isaac-port/generated-src/glitched_item_set.cpp
T
shweetandClaude Opus 5.5 9d4d4f5c64 Build 29: zero-length placeholder structs, generated-src with standard types
--check: 938/3256 method bodies compile for x86_64 (28.8%), 32-bit layout asserts hold; boot path 3/626 curated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 21:41:34 -05:00

78 lines
4.2 KiB
C++

#include "classes.h"
// 009e0500
void GlitchedItemSet::recalculate()
{
uint32_t uVar1;
int countArray;
int node;
int *countInfo;
Game *game;
int proceduralItem;
void *proceduralItems;
uVar1 = 0;
if (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x10)) != *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0xc))) {
do {
*GHIDRA_CAST<uint8_t *>((uVar1 + *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0xc)))) = 0;
uVar1 = uVar1 + 1;
} while (uVar1 < GHIDRA_UINT((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x10)) - *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0xc)))));
}
uVar1 = 0;
if (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x1c)) != *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x18))) {
do {
*GHIDRA_CAST<uint8_t *>((uVar1 + *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x18)))) = 0;
uVar1 = uVar1 + 1;
} while (uVar1 < GHIDRA_UINT((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x1c)) - *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x18)))));
}
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(this) + 0x24)) = 0;
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(this) + 0x28)) = 0;
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(this) + 0x2c)) = 0;
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(this) + 0x30)) = 0;
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(this) + 0x34)) = 0;
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(this) + 0x38)) = 0;
game = g_game;
node = **GHIDRA_CAST<int **>((GHIDRA_CAST<char *>(this) + 4));
if (GHIDRA_CAST<int *>(node) != *GHIDRA_CAST<int **>((GHIDRA_CAST<char *>(this) + 4))) {
do {
uVar1 = ~*GHIDRA_CAST<uint32_t *>((node + 0x10));
if (((GHIDRA_INT(*GHIDRA_CAST<uint32_t *>((node + 0x10))) < 0) &&
(proceduralItems = (game->_proceduralItemManager)._proceduralItems._begin,
GHIDRA_INT(uVar1) <
GHIDRA_INT((game->_proceduralItemManager)._proceduralItems._end) - GHIDRA_INT(proceduralItems) >> 2)) &&
(proceduralItem = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(proceduralItems) + uVar1 * 4)), proceduralItem != 0)) {
countInfo = *GHIDRA_CAST<int **>((proceduralItem + 0x10));
if (countInfo != GHIDRA_CAST<int *>(0x0)) {
if (*countInfo == 2) {
countArray = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x18));
}
else {
if (*countInfo == 0) goto LAB_009e05d4;
countArray = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0xc));
}
*GHIDRA_CAST<char *>((countInfo[1] + countArray)) =
*GHIDRA_CAST<char *>((countInfo[1] + countArray)) + *GHIDRA_CAST<char *>((node + 0x14));
}
LAB_009e05d4:
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x24)) =
*GHIDRA_CAST<float *>((proceduralItem + 0x14)) + *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x24));
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x28)) =
*GHIDRA_CAST<float *>((proceduralItem + 0x18)) + *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x28));
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x2c)) =
*GHIDRA_CAST<float *>((proceduralItem + 0x1c)) + *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x2c));
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x30)) =
*GHIDRA_CAST<float *>((proceduralItem + 0x20)) + *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x30));
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x34)) =
*GHIDRA_CAST<float *>((proceduralItem + 0x24)) + *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x34));
*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x38)) =
*GHIDRA_CAST<float *>((proceduralItem + 0x28)) + *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x38));
}
msvc::
_Tree_unchecked_const_iterator<msvc::_Tree_val<msvc::_Tree_simple_types<unsigned_int>_>,msvc::_Iterator_base0>
::operator++((_Tree_unchecked_const_iterator<msvc::_Tree_val<msvc::_Tree_simple_types<unsigned_int>_>,msvc::_Iterator_base0>
*)&node);
} while (node != *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 4)));
}
return;
}