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

51 lines
1.2 KiB
C++

#include "classes.h"
// 0040b520
int AnimationData::find_null_index(uint8_t *name)
{
int iVar1;
uint8_t *nameChars;
uint32_t cmpResult;
uint8_t *queryChars;
uint8_t *nullName;
int nullIndex;
bool isLess;
uint8_t ch;
iVar1 = *GHIDRA_CAST<int *>((GHIDRA_INT(&this[2]._layerCount) + 2));
nullIndex = 0;
if (0 < iVar1) {
nullName = *GHIDRA_CAST<uint8_t **>((GHIDRA_INT(&this[2]._animLayers) + 2));
do {
nameChars = nullName;
if (0xf < *GHIDRA_CAST<uint32_t *>((nullName + 0x14))) {
nameChars = *GHIDRA_CAST<uint8_t **>(nullName);
}
queryChars = name;
do {
ch = *nameChars;
isLess = ch < *queryChars;
if (ch != *queryChars) {
LAB_0040b565:
cmpResult = -GHIDRA_UINT(isLess) | 1;
goto LAB_0040b56a;
}
if (ch == 0) break;
ch = nameChars[1];
isLess = ch < queryChars[1];
if (ch != queryChars[1]) goto LAB_0040b565;
nameChars = nameChars + 2;
queryChars = queryChars + 2;
} while (ch != 0);
cmpResult = 0;
LAB_0040b56a:
if (cmpResult == 0) {
return nullIndex;
}
nullIndex = nullIndex + 1;
nullName = nullName + 0x18;
} while (nullIndex < iVar1);
}
return -1;
}