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

72 lines
3.6 KiB
C++

#include "classes.h"
// 009ef9a0
uint8_t RichTextSpan::try_merge(void *other)
{
int *ownStyle;
int *otherStyle;
uint32_t bytesLeft;
bool isMore;
uint32_t *otherLength;
if (*GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(this) + 0x34)) == *GHIDRA_CAST<float *>((GHIDRA_CAST<char *>(other) + 0x34))) {
otherStyle = GHIDRA_CAST<int *>((GHIDRA_INT(other) + 0x20));
bytesLeft = 0xc;
ownStyle = GHIDRA_CAST<int *>((GHIDRA_INT(this) + 0x20));
do {
if (*ownStyle != *otherStyle) {
return 0;
}
ownStyle = ownStyle + 1;
otherStyle = otherStyle + 1;
isMore = 3 < bytesLeft;
bytesLeft = bytesLeft - 4;
} while (isMore);
if ((*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x38)) == *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(other) + 0x38))) &&
(*GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(this) + 0x3c)) == *GHIDRA_CAST<int *>((GHIDRA_CAST<char *>(other) + 0x3c)))) {
otherLength = GHIDRA_CAST<uint32_t *>((GHIDRA_INT(other) + 0x10));
if (0xf < *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(other) + 0x14))) {
other = *(void **)other;
}
this->msvc::string::append(other,*otherLength);
return 1;
}
}
return 0;
}
// 009f1ef0
void RichTextSpan::move_construct(void *dest, void *source)
{
uint32_t uVar1;
uint32_t uVar2;
uint32_t uVar3;
*GHIDRA_CAST<uint32_t *>(dest) = 0;
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(dest) + 0x10)) = 0;
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(dest) + 0x14)) = 0;
uVar1 = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(source) + 4));
uVar2 = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(source) + 8));
uVar3 = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(source) + 0xc));
*GHIDRA_CAST<uint32_t *>(dest) = *GHIDRA_CAST<uint32_t *>(source);
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(dest) + 4)) = uVar1;
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(dest) + 8)) = uVar2;
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(dest) + 0xc)) = uVar3;
*GHIDRA_CAST<uint64_t *>((GHIDRA_CAST<char *>(dest) + 0x10)) = *GHIDRA_CAST<uint64_t *>((GHIDRA_CAST<char *>(source) + 0x10));
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(source) + 0x10)) = 0;
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(source) + 0x14)) = 0xf;
*GHIDRA_CAST<uint8_t *>(source) = 0;
uVar1 = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(source) + 0x1c));
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(dest) + 0x18)) = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(source) + 0x18));
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(dest) + 0x1c)) = uVar1;
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(dest) + 0x20)) = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(source) + 0x20));
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(dest) + 0x24)) = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(source) + 0x24));
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(dest) + 0x28)) = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(source) + 0x28));
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(dest) + 0x2c)) = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(source) + 0x2c));
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(dest) + 0x30)) = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(source) + 0x30));
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(dest) + 0x34)) = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(source) + 0x34));
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(dest) + 0x38)) = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(source) + 0x38));
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(dest) + 0x3c)) = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(source) + 0x3c));
return;
}