Files
isaac-port/generated-src/entity_save_state_ref.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

40 lines
1.3 KiB
C++

#include "classes.h"
// 006eee10
void EntitySaveStateRef::Set(void *state)
{
char isReleased;
uint32_t uVar1;
ReferenceCountBase *refCount;
void *local_10;
uint8_t *puStack_c;
uint32_t local_8;
local_8 = 0xffffffff;
puStack_c = &LAB_00af0d44;
local_10 = ExceptionList;
uVar1 = __security_cookie ^ GHIDRA_INT(register0x00000010) - 4U;
ExceptionList = &local_10;
refCount = operator_new(0x18);
local_8 = 0;
if (refCount == GHIDRA_CAST<ReferenceCountBase *>(0x0)) {
refCount = GHIDRA_CAST<ReferenceCountBase *>(0x0);
}
else {
(GHIDRA_CAST<ReferenceCountBase *>((refCount)))->ReferenceCountBase::ReferenceCountBase();
*GHIDRA_CAST<uint8_t ***>(refCount) = ReferenceCount<IsaacRepentancePlus::EntitySaveState>::vftable;
*(void **)(refCount + 0x14) = state;
}
local_8 = 0xffffffff;
if (*GHIDRA_CAST<int **>((GHIDRA_CAST<char *>(this) + 4)) != GHIDRA_CAST<int *>(0x0)) {
isReleased = (**(code **)(**GHIDRA_CAST<int **>((GHIDRA_CAST<char *>(this) + 4)) + 0xc))(uVar1);
if ((isReleased != '\0') && (g_entitySaveStateReleaseFn != (void *)0x0)) {
(*g_entitySaveStateReleaseFn)(this);
}
}
*GHIDRA_CAST<ReferenceCountBase **>((GHIDRA_CAST<char *>(this) + 4)) = refCount;
*(void **)this = state;
ExceptionList = local_10;
return;
}