--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>
81 lines
4.1 KiB
C++
81 lines
4.1 KiB
C++
#include "classes.h"
|
|
|
|
// 00926020
|
|
PersistentGameData_Bestiary * PersistentGameData_Bestiary::constructor()
|
|
{
|
|
void *mapHead;
|
|
void *local_10;
|
|
uint8_t *puStack_c;
|
|
uint32_t local_8;
|
|
|
|
local_8 = 0xffffffff;
|
|
puStack_c = &LAB_00b0a863;
|
|
local_10 = ExceptionList;
|
|
ExceptionList = &local_10;
|
|
*GHIDRA_CAST<uint32_t *>(this) = 0;
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[1])) + 0x1)))) = 0;
|
|
mapHead = operator_new(0x18);
|
|
*(void **)mapHead = mapHead;
|
|
*(void **)(GHIDRA_CAST<char *>(mapHead) + 4) = mapHead;
|
|
*(void **)(GHIDRA_CAST<char *>(mapHead) + 8) = mapHead;
|
|
*GHIDRA_CAST<uint16_t *>((GHIDRA_CAST<char *>(mapHead) + 0xc)) = 0x101;
|
|
*(void **)this = mapHead;
|
|
local_8 = 0;
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[2])) + 0x2)))) = 0;
|
|
*GHIDRA_CAST<uint32_t *>((this + 4)) = 0;
|
|
mapHead = operator_new(0x18);
|
|
*(void **)mapHead = mapHead;
|
|
*(void **)(GHIDRA_CAST<char *>(mapHead) + 4) = mapHead;
|
|
*(void **)(GHIDRA_CAST<char *>(mapHead) + 8) = mapHead;
|
|
*GHIDRA_CAST<uint16_t *>((GHIDRA_CAST<char *>(mapHead) + 0xc)) = 0x101;
|
|
*(void **)&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[2])) + 0x2))) = mapHead;
|
|
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 1;
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[5])) + 0x1)))) = 0;
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[6])) + 0x2)))) = 0;
|
|
mapHead = operator_new(0x18);
|
|
*(void **)mapHead = mapHead;
|
|
*(void **)(GHIDRA_CAST<char *>(mapHead) + 4) = mapHead;
|
|
*(void **)(GHIDRA_CAST<char *>(mapHead) + 8) = mapHead;
|
|
*GHIDRA_CAST<uint16_t *>((GHIDRA_CAST<char *>(mapHead) + 0xc)) = 0x101;
|
|
*(void **)&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[5])) + 0x1))) = mapHead;
|
|
local_8 = CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),2);
|
|
*GHIDRA_CAST<uint32_t *>((this + 8)) = 0;
|
|
*GHIDRA_CAST<uint32_t *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[9])) + 0x1)))) = 0;
|
|
mapHead = operator_new(0x18);
|
|
*(void **)mapHead = mapHead;
|
|
*(void **)(GHIDRA_CAST<char *>(mapHead) + 4) = mapHead;
|
|
*(void **)(GHIDRA_CAST<char *>(mapHead) + 8) = mapHead;
|
|
*GHIDRA_CAST<uint16_t *>((GHIDRA_CAST<char *>(mapHead) + 0xc)) = 0x101;
|
|
*(void **)(this + 8) = mapHead;
|
|
ExceptionList = local_10;
|
|
return this;
|
|
}
|
|
|
|
// 00926120
|
|
PersistentGameData_Bestiary::~PersistentGameData_Bestiary()
|
|
{
|
|
PersistentGameData_Bestiary *this_00;
|
|
uint8_t *puVar1;
|
|
|
|
this_00 = this + 8;
|
|
FID_conflict__Erase_tree<fuzzer::fuzzer_allocator<msvc::_Tree_node<fuzzer::TracePC::PCTableEntry_const*,void*>_>_>
|
|
(this_00,(fuzzer_allocator<msvc::_Tree_node<unsigned_int,void*>_> *)this_00,
|
|
*(_Tree_node<unsigned_int,void*> **)(*GHIDRA_CAST<int *>((this + 8)) + 4));
|
|
operator_delete(*(void **)this_00,0x18);
|
|
puVar1 = &(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[5])) + 0x1)));
|
|
FID_conflict__Erase_tree<fuzzer::fuzzer_allocator<msvc::_Tree_node<fuzzer::TracePC::PCTableEntry_const*,void*>_>_>
|
|
(puVar1,(fuzzer_allocator<msvc::_Tree_node<unsigned_int,void*>_> *)puVar1,
|
|
*(_Tree_node<unsigned_int,void*> **)(*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[5])) + 0x1)))) + 4));
|
|
operator_delete(*(void **)puVar1,0x18);
|
|
puVar1 = &(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[2])) + 0x2)));
|
|
FID_conflict__Erase_tree<fuzzer::fuzzer_allocator<msvc::_Tree_node<fuzzer::TracePC::PCTableEntry_const*,void*>_>_>
|
|
(puVar1,(fuzzer_allocator<msvc::_Tree_node<unsigned_int,void*>_> *)puVar1,
|
|
*(_Tree_node<unsigned_int,void*> **)(*GHIDRA_CAST<int *>(&(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(this[2])) + 0x2)))) + 4));
|
|
operator_delete(*(void **)puVar1,0x18);
|
|
FID_conflict__Erase_tree<fuzzer::fuzzer_allocator<msvc::_Tree_node<fuzzer::TracePC::PCTableEntry_const*,void*>_>_>
|
|
(this,(fuzzer_allocator<msvc::_Tree_node<unsigned_int,void*>_> *)this,
|
|
*(_Tree_node<unsigned_int,void*> **)(*GHIDRA_CAST<int *>(this) + 4));
|
|
operator_delete(*(void **)this,0x18);
|
|
return;
|
|
}
|