Files
isaac-port/generated-src/pause_screen_my_stuff.cpp
T
shweetandClaude Opus 5.5 3ce74c6e2d Reconstruction layout: generated-src/ (generated) and src/ (curated), CMake, the first takeover: RNG
The decompiled C++ tree moves to generated-src/ (classes.h, C++20); src/ is for code written by hand. A curated function
defines the generated declaration and starts its comment with its address, and source_tree.py stops emitting that body.
src/rng.cpp takes over RNG (SetSeed, the constructor, Next, RandomInt, RandomFloat, Shuffle) with the shift table read
from the exe as a constexpr array; src/log.h names KAGE_LogMessage's levels (1 INFO, 2 NET, 4 WARN, 8 ERROR, 16 ASSERT,
from its prefix jump table). CMakeLists.txt builds src/*.cpp against generated-src/classes.h (clean with -Wall -Wextra).
structs.hpp and headers.py are retired: scripts/merge_fields.py writes the merged field list, classes.h checks the layout.

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

385 lines
17 KiB
C++

#include "classes.h"
// 008d2a30
PauseScreen_MyStuff::~PauseScreen_MyStuff()
{
int imageMapOwner;
char isLastRef;
uint uVar2;
void *local_10;
undefined1 *puStack_c;
undefined4 local_8;
int imageMapOwner;
local_8 = 0xffffffff;
puStack_c = &LAB_00b05cd0;
local_10 = ExceptionList;
uVar2 = __security_cookie ^ GHIDRA_INT(register0x00000010) - 4U;
ExceptionList = &local_10;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x1c)) = *GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x18));
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x24)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x28)) = 0;
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x2c)) = 0;
(GHIDRA_CAST<KAGE::SmartPointer *>(((void *)(GHIDRA_INT(this) + 0x640))))->KAGE::SmartPointer::reset((void *)0x0);
imageMapOwner = *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x1e8));
if (imageMapOwner != 0) {
imageMapOwner = *GHIDRA_CAST<int *>((imageMapOwner + 0x120));
std::map<unsigned_int_ImagePtr>::_Erase_tree(imageMapOwner + 0x120,*GHIDRA_CAST<undefined4 *>((imageMapOwner + 4)));
*GHIDRA_CAST<int *>((imageMapOwner + 4)) = imageMapOwner;
*GHIDRA_CAST<int *>(imageMapOwner) = imageMapOwner;
*GHIDRA_CAST<int *>((imageMapOwner + 8)) = imageMapOwner;
*GHIDRA_CAST<undefined4 *>((imageMapOwner + 0x124)) = 0;
}
local_8 = 0;
if (*GHIDRA_CAST<int **>((GHIDRA_CAST<char *>(this) + 0x644)) != GHIDRA_CAST<int *>(0x0)) {
isLastRef = (**(code **)(**GHIDRA_CAST<int **>((GHIDRA_CAST<char *>(this) + 0x644)) + 0xc))(uVar2);
if ((isLastRef != '\0') && (g_imageReleaseFn != (void *)0x0)) {
(*g_imageReleaseFn)((void *)(GHIDRA_INT(this) + 0x640));
}
}
local_8 = 1;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((GHIDRA_INT(this) + 0x52c)))))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0x57c)))))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0x55c)))))->AnimationState::~AnimationState();
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(this) + 0x544)))))->std::string::_Tidy_deallocate();
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(this) + 0x52c)))))->std::string::_Tidy_deallocate();
local_8 = 2;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((GHIDRA_INT(this) + 0x418)))))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0x468)))))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0x448)))))->AnimationState::~AnimationState();
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(this) + 0x430)))))->std::string::_Tidy_deallocate();
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(this) + 0x418)))))->std::string::_Tidy_deallocate();
local_8 = 3;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((GHIDRA_INT(this) + 0x304)))))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0x354)))))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0x334)))))->AnimationState::~AnimationState();
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(this) + 0x31c)))))->std::string::_Tidy_deallocate();
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(this) + 0x304)))))->std::string::_Tidy_deallocate();
local_8 = 4;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((GHIDRA_INT(this) + 0x1f0)))))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0x240)))))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0x220)))))->AnimationState::~AnimationState();
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(this) + 0x208)))))->std::string::_Tidy_deallocate();
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(this) + 0x1f0)))))->std::string::_Tidy_deallocate();
(GHIDRA_CAST<RichText *>(((void *)(GHIDRA_INT(this) + 0x184))))->RichText::~RichText();
local_8 = 5;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((GHIDRA_INT(this) + 100)))))->ANM2::Reset();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0xb4)))))->AnimationState::~AnimationState();
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0x94)))))->AnimationState::~AnimationState();
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(this) + 0x7c)))))->std::string::_Tidy_deallocate();
(GHIDRA_CAST<std::string *>((GHIDRA_CAST<char *>((GHIDRA_INT(this) + 100)))))->std::string::_Tidy_deallocate();
local_8 = 6;
if (*GHIDRA_CAST<int **>((GHIDRA_CAST<char *>(this) + 0x54)) != GHIDRA_CAST<int *>(0x0)) {
isLastRef = (**(code **)(**GHIDRA_CAST<int **>((GHIDRA_CAST<char *>(this) + 0x54)) + 0xc))();
if ((isLastRef != '\0') && (g_imageReleaseFn != (void *)0x0)) {
(*g_imageReleaseFn)(GHIDRA_INT(this) + 0x50);
}
}
local_8 = 7;
if (*GHIDRA_CAST<int **>((GHIDRA_CAST<char *>(this) + 0x40)) != GHIDRA_CAST<int *>(0x0)) {
isLastRef = (**(code **)(**GHIDRA_CAST<int **>((GHIDRA_CAST<char *>(this) + 0x40)) + 0xc))();
if ((isLastRef != '\0') && (g_imageReleaseFn != (void *)0x0)) {
(*g_imageReleaseFn)(GHIDRA_INT(this) + 0x3c);
}
}
FID_conflict__Tidy((void *)(GHIDRA_INT(this) + 0x18));
ExceptionList = local_10;
return;
}
// 008d2ca0
void PauseScreen_MyStuff::Init()
{
byte bVar1;
char isReleased;
byte *curAnim;
LayerState *layer;
void *cursorImage;
byte *pbVar2;
char *pcVar3;
uint uVar4;
byte *pbVar5;
ANM2 *sprite;
bool isLess;
undefined1 imageRef [4];
int *imageRefCount;
void *self;
std_string filePath;
uint local_24;
undefined1 *puStack_20;
void *local_1c;
undefined1 *puStack_18;
undefined4 local_14;
void *selfRef;
puStack_20 = imageRef + 0x44;
local_14 = 0xffffffff;
puStack_18 = &LAB_00b05d25;
local_1c = ExceptionList;
local_24 = __security_cookie ^ GHIDRA_UINT((imageRef + 0x38));
ExceptionList = &local_1c;
self = this;
FUN_008d3250(local_24);
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(filePath._buf)) + 0x0))) = std::_Allocate(0x30);
filePath._size = 0x20;
filePath._capacity = 0x2f;
builtin_strncpy((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(filePath._buf))) + 0x0))),"font/TeamMeatEx/TeamMeatEx12.fnt",0x21);
local_14 = 0;
(GHIDRA_CAST<RichText *>(((void *)(GHIDRA_INT(this) + 0x184))))->RichText::load_font(&filePath);
local_14 = 0xffffffff;
if (0xf < filePath._capacity) {
uVar4 = filePath._capacity + 1;
pcVar3 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(filePath._buf))) + 0x0)));
if (0xfff < uVar4) {
pcVar3 = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(filePath._buf)) + 0x0))) + -4));
uVar4 = filePath._capacity + 0x24;
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(filePath._buf)) + 0x0))) + (-4 - GHIDRA_INT(pcVar3))))) {
/* WARNING: Subroutine does not return */
_invalid_parameter_noinfo_noreturn();
}
}
operator_delete(pcVar3,uVar4);
}
*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(this) + 0x1ec)) = 0x3f666666;
sprite = GHIDRA_CAST<ANM2 *>((GHIDRA_INT(this) + 0x304));
filePath._size = 0;
filePath._capacity = 0xf;
filePath._buf[0] = '\0';
filePath._buf[1] = '\0';
filePath._buf[2] = '\0';
filePath._buf[3] = '\0';
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(filePath._buf)) + 0x0))) = std::_Allocate(0x20);
filePath._size = 0x1f;
filePath._capacity = 0x1f;
builtin_strncpy((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(filePath._buf))) + 0x0))),"gfx/ui/PauseScreen_MyStuff.anm2",0x20);
local_14 = 1;
(GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::Load(&filePath,1);
local_14 = 0xffffffff;
if (0xf < filePath._capacity) {
uVar4 = filePath._capacity + 1;
pcVar3 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(filePath._buf))) + 0x0)));
if (0xfff < uVar4) {
pcVar3 = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(filePath._buf)) + 0x0))) + -4));
uVar4 = filePath._capacity + 0x24;
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(filePath._buf)) + 0x0))) + (-4 - GHIDRA_INT(pcVar3))))) {
/* WARNING: Subroutine does not return */
_invalid_parameter_noinfo_noreturn();
}
}
operator_delete(pcVar3,uVar4);
}
pbVar5 = *GHIDRA_CAST<byte **>((GHIDRA_CAST<char *>(this) + 0x338));
if (pbVar5 == GHIDRA_CAST<byte *>(0x0)) {
LAB_008d2e85:
bVar1 = (GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::SetAnimation(s_Idle,1);
if (bVar1 != 0) {
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(this) + 0x334)))))->AnimationState::Rewind();
*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(this) + 0x348)) = 1;
}
}
else {
curAnim = pbVar5;
if (0xf < *GHIDRA_CAST<uint *>((pbVar5 + 0x14))) {
curAnim = *GHIDRA_CAST<byte **>(pbVar5);
}
pbVar2 = s_Idle;
do {
bVar1 = *curAnim;
isLess = bVar1 < *pbVar2;
if (bVar1 != *pbVar2) {
LAB_008d2e72:
uVar4 = -GHIDRA_UINT(isLess) | 1;
goto LAB_008d2e77;
}
if (bVar1 == 0) break;
bVar1 = curAnim[1];
isLess = bVar1 < pbVar2[1];
if (bVar1 != pbVar2[1]) goto LAB_008d2e72;
curAnim = curAnim + 2;
pbVar2 = pbVar2 + 2;
} while (bVar1 != 0);
uVar4 = 0;
LAB_008d2e77:
if ((uVar4 != 0) || ((pbVar5[0x34] != 0 && (*GHIDRA_CAST<char *>((GHIDRA_CAST<char *>(this) + 0x348)) == '\0'))))
goto LAB_008d2e85;
}
layer = (GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::GetLayer(GHIDRA_CAST<byte *>("Cursor"));
selfRef = self;
sprite = GHIDRA_CAST<ANM2 *>((GHIDRA_INT(self) + 0x418));
filePath._size = 0;
layer->_visible = 0;
filePath._capacity = 0xf;
filePath._buf[0] = '\0';
filePath._buf[1] = '\0';
filePath._buf[2] = '\0';
filePath._buf[3] = '\0';
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(filePath._buf)) + 0x0))) = std::_Allocate(0x20);
filePath._size = 0x18;
filePath._capacity = 0x1f;
builtin_strncpy((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(filePath._buf))) + 0x0))),"gfx/ui/Death Screen.anm2",0x19);
local_14 = 2;
(GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::Load(&filePath,1);
local_14 = 0xffffffff;
if (0xf < filePath._capacity) {
uVar4 = filePath._capacity + 1;
pcVar3 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(filePath._buf))) + 0x0)));
if (0xfff < uVar4) {
pcVar3 = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(filePath._buf)) + 0x0))) + -4));
uVar4 = filePath._capacity + 0x24;
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(filePath._buf)) + 0x0))) + (-4 - GHIDRA_INT(pcVar3))))) {
/* WARNING: Subroutine does not return */
_invalid_parameter_noinfo_noreturn();
}
}
operator_delete(pcVar3,uVar4);
}
pbVar5 = *GHIDRA_CAST<byte **>((GHIDRA_CAST<char *>(selfRef) + 0x44c));
if (pbVar5 == GHIDRA_CAST<byte *>(0x0)) {
LAB_008d2fa5:
bVar1 = (GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::SetAnimation(GHIDRA_CAST<byte *>("Diary"),1);
if (bVar1 != 0) {
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(selfRef) + 0x448)))))->AnimationState::Rewind();
*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(selfRef) + 0x45c)) = 1;
}
}
else {
curAnim = pbVar5;
if (0xf < *GHIDRA_CAST<uint *>((pbVar5 + 0x14))) {
curAnim = *GHIDRA_CAST<byte **>(pbVar5);
}
pcVar3 = "Diary";
do {
bVar1 = *curAnim;
isLess = bVar1 < (byte)*pcVar3;
if (bVar1 != *pcVar3) {
LAB_008d2f92:
uVar4 = -GHIDRA_UINT(isLess) | 1;
goto LAB_008d2f97;
}
if (bVar1 == 0) break;
bVar1 = curAnim[1];
isLess = bVar1 < (byte)pcVar3[1];
if (bVar1 != pcVar3[1]) goto LAB_008d2f92;
curAnim = curAnim + 2;
pcVar3 = pcVar3 + 2;
} while (bVar1 != 0);
uVar4 = 0;
LAB_008d2f97:
if ((uVar4 != 0) || ((pbVar5[0x34] != 0 && (*GHIDRA_CAST<char *>((GHIDRA_CAST<char *>(selfRef) + 0x45c)) == '\0'))))
goto LAB_008d2fa5;
}
pbVar5 = GHIDRA_CAST<byte *>(0x0);
if (*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(self) + 0x498)) != 0) {
do {
layer = (GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::GetLayer(pbVar5);
pbVar5 = pbVar5 + 1;
layer->_visible = 0;
} while (pbVar5 < *GHIDRA_CAST<byte **>((GHIDRA_CAST<char *>(self) + 0x498)));
}
layer = (GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::GetLayer(GHIDRA_CAST<byte *>("Items"));
selfRef = self;
sprite = GHIDRA_CAST<ANM2 *>((GHIDRA_INT(self) + 0x52c));
filePath._size = 0;
layer->_visible = 1;
filePath._capacity = 0xf;
filePath._buf[0] = '\0';
filePath._buf[1] = '\0';
filePath._buf[2] = '\0';
filePath._buf[3] = '\0';
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(filePath._buf)) + 0x0))) = std::_Allocate(0x20);
filePath._size = 0x1b;
filePath._capacity = 0x1f;
builtin_strncpy((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(filePath._buf))) + 0x0))),"gfx/ui/ui_charge_icons.anm2",0x1c);
local_14 = 3;
(GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::Load(&filePath,1);
local_14 = 0xffffffff;
if (0xf < filePath._capacity) {
uVar4 = filePath._capacity + 1;
pcVar3 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(filePath._buf))) + 0x0)));
if (0xfff < uVar4) {
pcVar3 = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(filePath._buf)) + 0x0))) + -4));
uVar4 = filePath._capacity + 0x24;
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(filePath._buf)) + 0x0))) + (-4 - GHIDRA_INT(pcVar3))))) {
/* WARNING: Subroutine does not return */
_invalid_parameter_noinfo_noreturn();
}
}
operator_delete(pcVar3,uVar4);
}
pbVar5 = *GHIDRA_CAST<byte **>((GHIDRA_CAST<char *>(selfRef) + 0x560));
if (pbVar5 != GHIDRA_CAST<byte *>(0x0)) {
curAnim = pbVar5;
if (0xf < *GHIDRA_CAST<uint *>((pbVar5 + 0x14))) {
curAnim = *GHIDRA_CAST<byte **>(pbVar5);
}
pcVar3 = "ChargeIcon";
do {
bVar1 = *curAnim;
isLess = bVar1 < (byte)*pcVar3;
if (bVar1 != *pcVar3) {
LAB_008d30f0:
uVar4 = -GHIDRA_UINT(isLess) | 1;
goto LAB_008d30f5;
}
if (bVar1 == 0) break;
bVar1 = curAnim[1];
isLess = bVar1 < (byte)pcVar3[1];
if (bVar1 != pcVar3[1]) goto LAB_008d30f0;
curAnim = curAnim + 2;
pcVar3 = pcVar3 + 2;
} while (bVar1 != 0);
uVar4 = 0;
LAB_008d30f5:
if ((uVar4 == 0) && ((pbVar5[0x34] == 0 || (*GHIDRA_CAST<char *>((GHIDRA_CAST<char *>(selfRef) + 0x570)) != '\0'))))
goto LAB_008d3121;
}
bVar1 = (GHIDRA_CAST<ANM2 *>((sprite)))->ANM2::SetAnimation(GHIDRA_CAST<byte *>("ChargeIcon"),1);
if (bVar1 != 0) {
(GHIDRA_CAST<AnimationState *>((GHIDRA_CAST<AnimationState *>((GHIDRA_INT(selfRef) + 0x55c)))))->AnimationState::Rewind();
*GHIDRA_CAST<undefined1 *>((GHIDRA_CAST<char *>(selfRef) + 0x570)) = 1;
}
LAB_008d3121:
selfRef = self;
filePath._size = 0;
filePath._capacity = 0xf;
filePath._buf[0] = '\0';
filePath._buf[1] = '\0';
filePath._buf[2] = '\0';
filePath._buf[3] = '\0';
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(filePath._buf)) + 0x0))) = std::_Allocate(0x20);
filePath._size = 0x19;
filePath._capacity = 0x1f;
builtin_strncpy((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(filePath._buf))) + 0x0))),"gfx/ui/minimap_icons.anm2",0x1a);
local_14 = 4;
(GHIDRA_CAST<ANM2 *>((GHIDRA_CAST<ANM2 *>((GHIDRA_INT(selfRef) + 0x1f0)))))->ANM2::Load(&filePath,1);
local_14 = 0xffffffff;
if (0xf < filePath._capacity) {
uVar4 = filePath._capacity + 1;
pcVar3 = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(GHIDRA_CAST<char *>(filePath._buf))) + 0x0)));
if (0xfff < uVar4) {
pcVar3 = *GHIDRA_CAST<char **>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(filePath._buf)) + 0x0))) + -4));
uVar4 = filePath._capacity + 0x24;
if (GHIDRA_CAST<char *>(0x1f) < GHIDRA_CAST<char *>(((*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(filePath._buf)) + 0x0))) + (-4 - GHIDRA_INT(pcVar3))))) {
/* WARNING: Subroutine does not return */
_invalid_parameter_noinfo_noreturn();
}
}
operator_delete(pcVar3,uVar4);
}
filePath._size = 0;
filePath._capacity = 0xf;
(*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(filePath._buf)) + 0x0))) = (*GHIDRA_CAST<undefined4 *>((GHIDRA_CAST<char *>(&(filePath._buf)) + 0x0))) & 0xffffff00;
cursorImage = Manager::LoadImage(imageRef,GHIDRA_CAST<byte *>("gfx/ui/MyStuff_SectionCursor.png"));
local_14 = 5;
(GHIDRA_CAST<KAGE::SmartPointer *>(((void *)(GHIDRA_INT(selfRef) + 0x640))))->KAGE::SmartPointer::operator_assign(cursorImage);
local_14 = 6;
if (imageRefCount != GHIDRA_CAST<int *>(0x0)) {
isReleased = (**(code **)(*imageRefCount + 0xc))();
if ((isReleased != '\0') && (g_imageReleaseFn != (void *)0x0)) {
(*g_imageReleaseFn)(imageRef);
}
}
ExceptionList = local_1c;
return;
}