--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>
35 lines
1.3 KiB
C++
35 lines
1.3 KiB
C++
#include "classes.h"
|
|
|
|
// 007e48b0
|
|
PathNode::PathNode(void *other)
|
|
{
|
|
size_t srcBytes;
|
|
uint32_t uVar1;
|
|
void *buffer;
|
|
void *srcBegin;
|
|
|
|
*GHIDRA_CAST<uint32_t *>(this) = *GHIDRA_CAST<uint32_t *>(other);
|
|
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(this) + 4)) = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(other) + 4));
|
|
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(this) + 8)) = 0;
|
|
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(this) + 0xc)) = 0;
|
|
*GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(this) + 0x10)) = 0;
|
|
srcBegin = *(void **)(GHIDRA_CAST<char *>(other) + 8);
|
|
if (srcBegin != *(void **)(GHIDRA_CAST<char *>(other) + 0xc)) {
|
|
srcBytes = GHIDRA_INT(*(void **)(GHIDRA_CAST<char *>(other) + 0xc)) - GHIDRA_INT(srcBegin);
|
|
uVar1 = GHIDRA_INT(srcBytes) >> 2;
|
|
if (0x3fffffff < uVar1) {
|
|
/* WARNING: Subroutine does not return */
|
|
FUN_0040cee0();
|
|
}
|
|
uVar1 = uVar1 * 4;
|
|
buffer = msvc::_Allocate(uVar1);
|
|
*(void **)(GHIDRA_CAST<char *>(this) + 8) = buffer;
|
|
*(void **)(GHIDRA_CAST<char *>(this) + 0xc) = buffer;
|
|
*(void **)(GHIDRA_CAST<char *>(this) + 0x10) = (void *)(GHIDRA_INT(buffer) + uVar1);
|
|
buffer = *(void **)(GHIDRA_CAST<char *>(this) + 8);
|
|
memmove(buffer,srcBegin,srcBytes);
|
|
*(void **)(GHIDRA_CAST<char *>(this) + 0xc) = (void *)(uVar1 + GHIDRA_INT(buffer));
|
|
}
|
|
return this;
|
|
}
|