--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>
56 lines
1.5 KiB
C++
56 lines
1.5 KiB
C++
#include "classes.h"
|
|
|
|
// 00a73100
|
|
void CommandThread::post_command(void *command)
|
|
{
|
|
uint32_t commandCopy [2];
|
|
uint32_t *callbacksEnd;
|
|
uint32_t *callbacksCapacity;
|
|
uint32_t local_28;
|
|
uint32_t local_24;
|
|
uint8_t *callbackEntry;
|
|
int local_1c;
|
|
void *local_10;
|
|
uint8_t *puStack_c;
|
|
uint32_t local_8;
|
|
|
|
local_8 = 0xffffffff;
|
|
puStack_c = &LAB_00b1394d;
|
|
local_10 = ExceptionList;
|
|
ExceptionList = &local_10;
|
|
if ((*GHIDRA_CAST<uint8_t *>((GHIDRA_CAST<char *>(this) + 0x1c)) & 1) == 0) {
|
|
KAGE_LogMessage(0x10,GHIDRA_CAST<uint8_t *>("Command thread is not initialized\n"));
|
|
}
|
|
commandCopy[0] = *GHIDRA_CAST<uint32_t *>(command);
|
|
FUN_00915d70(GHIDRA_INT(command) + 4);
|
|
local_28 = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(command) + 0x10));
|
|
local_24 = *GHIDRA_CAST<uint32_t *>((GHIDRA_CAST<char *>(command) + 0x14));
|
|
local_8 = 0;
|
|
callbackEntry = &LAB_00a733c0;
|
|
local_1c = 0;
|
|
if (callbacksEnd == callbacksCapacity) {
|
|
msvc::vector<8byte>::_Emplace_reallocate(callbacksEnd,&callbackEntry);
|
|
}
|
|
else {
|
|
*callbacksEnd = &LAB_00a733c0;
|
|
callbacksEnd[1] = 0;
|
|
callbacksEnd = callbacksEnd + 2;
|
|
}
|
|
local_1c = GHIDRA_INT(this) >> 0x1f;
|
|
callbackEntry = this;
|
|
if (callbacksEnd == callbacksCapacity) {
|
|
msvc::vector<8byte>::_Emplace_reallocate(callbacksEnd,&callbackEntry);
|
|
}
|
|
else {
|
|
*callbacksEnd = this;
|
|
callbacksEnd[1] = local_1c;
|
|
callbacksEnd = callbacksEnd + 2;
|
|
}
|
|
FUN_00a2a5a0(commandCopy);
|
|
local_28 = 0;
|
|
local_24 = 0;
|
|
msvc::vector<Vector>::_Tidy();
|
|
ExceptionList = local_10;
|
|
return;
|
|
}
|