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

120 lines
4.3 KiB
C++

#include "classes.h"
// 0095fd70
void Cutscene::TemporaryPart::vfunc_1()
{
uint8_t *extraout_EAX;
uint8_t *extraout_EAX_00;
uint8_t *fontPath;
void *ptr;
char *pcVar1;
uint32_t uVar2;
char *terminusPath [4];
uint32_t terminusPathSize;
uint32_t terminusPathCapacity;
void *redirectedPath [4];
uint32_t redirectedPathSize;
uint32_t redirectedPathCapacity;
char *pathText [4];
uint32_t pathTextSize;
uint32_t pathTextCapacity;
uint32_t local_14;
void *local_10;
uint8_t *puStack_c;
char *local_8;
Manager *manager;
manager = g_manager;
local_8 = GHIDRA_CAST<char *>(0xffffffff);
puStack_c = &LAB_00b0c7f5;
local_10 = ExceptionList;
local_14 = __security_cookie ^ GHIDRA_UINT((pathText + 10));
ExceptionList = &local_10;
pathText[0] = msvc::_Allocate(0x20);
pathTextSize = 0x1b;
pathTextCapacity = 0x1f;
builtin_strncpy(pathText[0],"font/TeamMeatFont20Bold.fnt",0x1c);
local_8 = GHIDRA_CAST<char *>(0x0);
ModManager::TryRedirectPath
(GHIDRA_CAST<ModManager *>(&manager->_modManager),GHIDRA_CAST<std_string *>(redirectedPath),GHIDRA_CAST<std_string *>(pathText)
);
(*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x0))) = 1;
fontPath = extraout_EAX;
if (0xf < *GHIDRA_CAST<uint32_t *>((extraout_EAX + 0x14))) {
fontPath = *GHIDRA_CAST<uint8_t **>(extraout_EAX);
}
(GHIDRA_CAST<Font *>((GHIDRA_CAST<Font *>((GHIDRA_INT(this) + 0x40)))))->Font::Load(fontPath,0);
local_8 = GHIDRA_CAST<char *>(((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(GHIDRA_UINT(local_8))) + 0x1))) << 8));
if (0xf < redirectedPathCapacity) {
uVar2 = redirectedPathCapacity + 1;
ptr = redirectedPath[0];
if (0xfff < uVar2) {
ptr = *(void **)(GHIDRA_INT(redirectedPath[0]) + -4);
uVar2 = redirectedPathCapacity + 0x24;
if (0x1f < GHIDRA_UINT((GHIDRA_INT(redirectedPath[0]) + (-4 - GHIDRA_INT(ptr))))) goto LAB_0095fe96;
}
operator_delete(ptr,uVar2);
}
local_8 = GHIDRA_CAST<char *>(0xffffffff);
redirectedPathSize = 0;
redirectedPathCapacity = 0xf;
redirectedPath[0] = (void *)(GHIDRA_UINT(redirectedPath[0]) & 0xffffff00);
if (0xf < pathTextCapacity) {
uVar2 = pathTextCapacity + 1;
pcVar1 = pathText[0];
if (0xfff < uVar2) {
pcVar1 = *GHIDRA_CAST<char **>((pathText[0] + -4));
uVar2 = pathTextCapacity + 0x24;
if (GHIDRA_CAST<char *>(0x1f) < pathText[0] + (-4 - GHIDRA_INT(pcVar1))) {
LAB_0095fe96:
/* WARNING: Subroutine does not return */
_invalid_parameter_noinfo_noreturn();
}
}
operator_delete(pcVar1,uVar2);
}
manager = g_manager;
terminusPath[0] = msvc::_Allocate(0x20);
terminusPathSize = 0x11;
terminusPathCapacity = 0x1f;
builtin_strncpy(terminusPath[0],"font/terminus.fnt",0x12);
local_8 = GHIDRA_CAST<char *>(0x2);
ModManager::TryRedirectPath
(GHIDRA_CAST<ModManager *>(&manager->_modManager),GHIDRA_CAST<std_string *>(pathText),GHIDRA_CAST<std_string *>(terminusPath));
local_8 = GHIDRA_CAST<char *>(CONCAT31((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(&(local_8)) + 0x1))),3));
fontPath = extraout_EAX_00;
if (0xf < *GHIDRA_CAST<uint32_t *>((extraout_EAX_00 + 0x14))) {
fontPath = *GHIDRA_CAST<uint8_t **>(extraout_EAX_00);
}
(GHIDRA_CAST<Font *>((GHIDRA_CAST<Font *>((GHIDRA_INT(this) + 0x8c)))))->Font::Load(fontPath,0);
if (0xf < pathTextCapacity) {
uVar2 = pathTextCapacity + 1;
pcVar1 = pathText[0];
if (0xfff < uVar2) {
pcVar1 = *GHIDRA_CAST<char **>((pathText[0] + -4));
uVar2 = pathTextCapacity + 0x24;
if (GHIDRA_CAST<char *>(0x1f) < pathText[0] + (-4 - GHIDRA_INT(pcVar1))) goto LAB_0095ff7d;
}
operator_delete(pcVar1,uVar2);
}
pathTextSize = 0;
pathTextCapacity = 0xf;
pathText[0] = GHIDRA_CAST<char *>((GHIDRA_UINT(pathText[0]) & 0xffffff00));
if (0xf < terminusPathCapacity) {
uVar2 = terminusPathCapacity + 1;
pcVar1 = terminusPath[0];
if (0xfff < uVar2) {
pcVar1 = *GHIDRA_CAST<char **>((terminusPath[0] + -4));
uVar2 = terminusPathCapacity + 0x24;
if (GHIDRA_CAST<char *>(0x1f) < terminusPath[0] + (-4 - GHIDRA_INT(pcVar1))) {
LAB_0095ff7d:
/* WARNING: Subroutine does not return */
_invalid_parameter_noinfo_noreturn();
}
}
operator_delete(pcVar1,uVar2);
}
ExceptionList = local_10;
return;
}