#include "classes.h" // 00926020 PersistentGameData_Bestiary * PersistentGameData_Bestiary::constructor() { PersistentGameData_Bestiary mapHead; void *local_10; undefined1 *puStack_c; undefined4 local_8; local_8 = 0xffffffff; puStack_c = &LAB_00b0a863; local_10 = ExceptionList; ExceptionList = &local_10; *this = (PersistentGameData_Bestiary)0x0; this[1] = (PersistentGameData_Bestiary)0x0; mapHead = (PersistentGameData_Bestiary)operator_new(0x18); *GHIDRA_CAST(mapHead) = mapHead; *GHIDRA_CAST((GHIDRA_CAST(mapHead) + 4)) = mapHead; *GHIDRA_CAST((GHIDRA_CAST(mapHead) + 8)) = mapHead; *GHIDRA_CAST((GHIDRA_CAST(mapHead) + 0xc)) = 0x101; *this = mapHead; local_8 = 0; this[2] = (PersistentGameData_Bestiary)0x0; this[3] = (PersistentGameData_Bestiary)0x0; mapHead = (PersistentGameData_Bestiary)operator_new(0x18); *GHIDRA_CAST(mapHead) = mapHead; *GHIDRA_CAST((GHIDRA_CAST(mapHead) + 4)) = mapHead; *GHIDRA_CAST((GHIDRA_CAST(mapHead) + 8)) = mapHead; *GHIDRA_CAST((GHIDRA_CAST(mapHead) + 0xc)) = 0x101; this[2] = mapHead; (*GHIDRA_CAST((GHIDRA_CAST(&(local_8)) + 0x0))) = 1; this[4] = (PersistentGameData_Bestiary)0x0; this[5] = (PersistentGameData_Bestiary)0x0; mapHead = (PersistentGameData_Bestiary)operator_new(0x18); *GHIDRA_CAST(mapHead) = mapHead; *GHIDRA_CAST((GHIDRA_CAST(mapHead) + 4)) = mapHead; *GHIDRA_CAST((GHIDRA_CAST(mapHead) + 8)) = mapHead; *GHIDRA_CAST((GHIDRA_CAST(mapHead) + 0xc)) = 0x101; this[4] = mapHead; local_8 = CONCAT31((*GHIDRA_CAST((GHIDRA_CAST(&(local_8)) + 0x1))),2); this[6] = (PersistentGameData_Bestiary)0x0; this[7] = (PersistentGameData_Bestiary)0x0; mapHead = (PersistentGameData_Bestiary)operator_new(0x18); *GHIDRA_CAST(mapHead) = mapHead; *GHIDRA_CAST((GHIDRA_CAST(mapHead) + 4)) = mapHead; *GHIDRA_CAST((GHIDRA_CAST(mapHead) + 8)) = mapHead; *GHIDRA_CAST((GHIDRA_CAST(mapHead) + 0xc)) = 0x101; this[6] = mapHead; ExceptionList = local_10; return this; } // 00926120 PersistentGameData_Bestiary::~PersistentGameData_Bestiary() { PersistentGameData_Bestiary *encounterMap; encounterMap = this + 6; FID_conflict__Erase_tree_>_> (encounterMap,(fuzzer_allocator_> *)encounterMap, *(_Tree_node **)(GHIDRA_INT(this[6]) + 4)); operator_delete((void *)*encounterMap,0x18); encounterMap = this + 4; FID_conflict__Erase_tree_>_> (encounterMap,(fuzzer_allocator_> *)encounterMap, *(_Tree_node **)(GHIDRA_INT(this[4]) + 4)); operator_delete((void *)*encounterMap,0x18); encounterMap = this + 2; FID_conflict__Erase_tree_>_> (encounterMap,(fuzzer_allocator_> *)encounterMap, *(_Tree_node **)(GHIDRA_INT(this[2]) + 4)); operator_delete((void *)*encounterMap,0x18); FID_conflict__Erase_tree_>_> (this,(fuzzer_allocator_> *)this, *(_Tree_node **)(GHIDRA_INT(*this) + 4)); operator_delete((void *)*this,0x18); return; }