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

50 lines
1.6 KiB
C++

#include "classes.h"
// 00828e50
void * RoomSet::GetVariantSet(uint32_t type)
{
uint32_t *variantSet;
uint64_t *allocatedBytes;
uint32_t insertKey;
uint32_t *insertValue;
uint8_t local_14 [8];
int local_c;
uint64_t prevAllocatedBytes;
uint32_t roomType;
_Find_lower_bound<>(local_14,&type);
roomType = type;
if (((*GHIDRA_CAST<char *>((local_c + 0xd)) == '\0') && (*GHIDRA_CAST<uint32_t *>((local_c + 0x10)) <= type)) &&
(local_c != *GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[10])) + 0x2)))))) {
return *(void **)(local_c + 0x14);
}
if (g_mainHeap == (void *)0x0) {
allocatedBytes = &g_allocatedBytesNoHeap;
}
else {
allocatedBytes = GHIDRA_CAST<uint64_t *>((GHIDRA_INT(g_mainHeap) + 0x30));
}
variantSet = malloc(8);
if (variantSet == GHIDRA_CAST<uint32_t *>(0x0)) {
FUN_00a23200(0x7fcb9dd6);
}
else {
prevAllocatedBytes = *allocatedBytes;
*GHIDRA_CAST<uint32_t *>(allocatedBytes) = GHIDRA_UINT(*allocatedBytes) + 8;
*variantSet = 8;
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(allocatedBytes) + 4)) =
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(allocatedBytes) + 4)) + GHIDRA_UINT((0xfffffff7 < GHIDRA_UINT(prevAllocatedBytes)));
variantSet = variantSet + 1;
if (variantSet != GHIDRA_CAST<uint32_t *>(0x0)) {
*variantSet = 0;
goto LAB_00828ec0;
}
}
variantSet = GHIDRA_CAST<uint32_t *>(0x0);
LAB_00828ec0:
insertKey = roomType;
insertValue = variantSet;
msvc::map<unsigned_int_int>::insert(local_14,&insertKey);
return variantSet;
}