Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int __fastcall NoteTaker::userInitiatedNote(NoteTaker *this, const QString *a2, int a3)
- {
- NoteTaker *v3; // r6
- NoteTaker *v4; // r7
- int v5; // r8
- int v6; // r10
- int result; // r0
- const QString *v8; // r1
- int v9; // r2
- int v10; // r2
- int v11; // r2
- unsigned int *v12; // r3
- unsigned int v13; // r2
- unsigned int *v14; // r0
- unsigned int v15; // r3
- unsigned int v16; // r3
- unsigned int *v17; // r3
- unsigned int v18; // r2
- unsigned int v19; // r2
- unsigned int *v20; // r3
- unsigned int v21; // r2
- unsigned int v22; // r2
- int v23; // r2
- int v24; // r3
- int v25; // r0
- unsigned int *v26; // r3
- unsigned int v27; // r2
- unsigned int v28; // r2
- unsigned int *v29; // r3
- unsigned int v30; // r2
- unsigned int *v31; // r0
- unsigned int v32; // r3
- unsigned int v33; // r3
- unsigned int *v34; // r3
- unsigned int v35; // r2
- unsigned int v36; // r2
- unsigned int *v37; // r3
- unsigned int v38; // r2
- unsigned int v39; // r2
- unsigned int *v40; // r3
- unsigned int v41; // r2
- unsigned int v42; // r2
- unsigned int *v43; // r3
- unsigned int v44; // r2
- unsigned int v45; // r2
- unsigned int *v46; // r3
- unsigned int v47; // r2
- unsigned int v48; // r2
- unsigned int *v49; // r3
- unsigned int v50; // r2
- unsigned int v51; // r2
- int v52; // [sp+0h] [bp-58h]
- __int16 v53; // [sp+8h] [bp-50h]
- __int16 v54; // [sp+Ch] [bp-4Ch]
- unsigned int *v55; // [sp+10h] [bp-48h]
- unsigned int *v56; // [sp+14h] [bp-44h]
- unsigned int *v57; // [sp+18h] [bp-40h]
- unsigned int *v58; // [sp+1Ch] [bp-3Ch]
- unsigned int *v59; // [sp+20h] [bp-38h]
- unsigned int *v60; // [sp+24h] [bp-34h]
- v3 = this;
- v4 = a2;
- if ( !QCoreApplication::self || (v5 = QThread::currentThread(this), v5 != QObject::thread(QCoreApplication::self)) )
- {
- v60 = (unsigned int *)QString::fromAscii_helper((QString *)&unk_9F0ADC, (const char *)0xFFFFFFFF, a3);
- Logger::logAssert(
- (Logger *)"QCoreApplication::instance() && QThread::currentThread() == QCoreApplication::instance()->thread()",
- (const char *)&v60,
- (const QString *)"../../../gui/NoteTaker.cpp",
- (const char *)&word_2E,
- v52);
- v26 = v60;
- do
- {
- v27 = __ldrex(v26);
- v28 = v27 - 1;
- }
- while ( __strex(v28, v26) );
- if ( !v28 )
- QString::free(v60);
- }
- DataValue::ConditionalLocker::ConditionalLocker(
- (DataValue::ConditionalLocker *)&v60,
- (const DataValue *)GUI_showroomMode);
- v6 = GUI_showroomMode[41];
- result = DataValue::LockerBase::~LockerBase((DataValue::LockerBase *)&v60);
- if ( !v6 )
- {
- NoteTaker::runNoteProcess(v4, v8, v9);
- v55 = (unsigned int *)QString::fromAscii_helper((QString *)"Report %1", (const char *)0xFFFFFFFF, v10);
- v53 = 32;
- QString::arg((QString *)&v56, (const QString *)&v55, (int)v4, 0);
- DataValue::EventLocker::EventLocker((DataValue::EventLocker *)&v60, (DataValue *)GUI_lastDriveNote);
- if ( !(GUI_lastDriveNote[8] & 0x10) && GUI_lastDriveNote[2] & 0x20 )
- {
- v58 = (unsigned int *)QString::fromAscii_helper(
- (QString *)"Protected data value %1 not set with setProtectedValue",
- (const char *)0xFFFFFFFF,
- v11);
- QObject::objectName((QObject *)&v57);
- v54 = 32;
- QString::arg((QString *)&v59, (const QString *)&v58, (int)&v57, 0);
- Logger::logAssert(
- (Logger *)"setByListenerNoLock() || !isProtected()",
- (const char *)&v59,
- (const QString *)"../../../utils/DataValue.h",
- (const char *)&elf_hash_bucket[113],
- (int)&v54);
- v43 = v59;
- do
- {
- v44 = __ldrex(v43);
- v45 = v44 - 1;
- }
- while ( __strex(v45, v43) );
- if ( !v45 )
- QString::free(v59);
- v46 = v57;
- do
- {
- v47 = __ldrex(v46);
- v48 = v47 - 1;
- }
- while ( __strex(v48, v46) );
- if ( !v48 )
- QString::free(v57);
- v49 = v58;
- do
- {
- v50 = __ldrex(v49);
- v51 = v50 - 1;
- }
- while ( __strex(v51, v49) );
- if ( !v51 )
- QString::free(v58);
- }
- if ( GUI_lastDriveNote[7] & 1 && QString::operator==(&GUI_lastDriveNote[11], &v56) )
- {
- if ( GUI_lastDriveNote[8] & 2 )
- {
- v29 = v56;
- do
- v30 = __ldrex(v29);
- while ( __strex(v30 + 1, v29) );
- v31 = (unsigned int *)GUI_lastDriveNote[13];
- GUI_lastDriveNote[13] = v29;
- do
- {
- v32 = __ldrex(v31);
- v33 = v32 - 1;
- }
- while ( __strex(v33, v31) );
- if ( !v33 )
- QString::free(v31);
- DataValue::revertPendingNoLock((DataValue *)GUI_lastDriveNote);
- }
- }
- else
- {
- v12 = v56;
- do
- v13 = __ldrex(v12);
- while ( __strex(v13 + 1, v12) );
- v14 = (unsigned int *)GUI_lastDriveNote[13];
- GUI_lastDriveNote[13] = v12;
- do
- {
- v15 = __ldrex(v14);
- v16 = v15 - 1;
- }
- while ( __strex(v16, v14) );
- if ( !v16 )
- QString::free(v14);
- DataValue::setPendingValidNoLock((DataValue *)GUI_lastDriveNote, 1);
- }
- DataValue::EventLocker::~EventLocker((DataValue::EventLocker *)&v60);
- v17 = v56;
- do
- {
- v18 = __ldrex(v17);
- v19 = v18 - 1;
- }
- while ( __strex(v19, v17) );
- if ( !v19 )
- QString::free(v56);
- v20 = v55;
- do
- {
- v21 = __ldrex(v20);
- v22 = v21 - 1;
- }
- while ( __strex(v22, v20) );
- if ( !v22 )
- QString::free(v55);
- DataValue::EventLocker::EventLocker((DataValue::EventLocker *)&v60, (DataValue *)&GUI_driveNoteNotification);
- if ( !(*((_DWORD *)&GUI_driveNoteNotification + 8) & 0x10) && *((_DWORD *)&GUI_driveNoteNotification + 2) & 0x20 )
- {
- v58 = (unsigned int *)QString::fromAscii_helper(
- (QString *)"Protected data value %1 not set with setProtectedValue",
- (const char *)0xFFFFFFFF,
- v23);
- QObject::objectName((QObject *)&v57);
- LOWORD(v56) = 32;
- QString::arg((QString *)&v59, (const QString *)&v58, (int)&v57, 0);
- Logger::logAssert(
- (Logger *)"setByListenerNoLock() || !isProtected()",
- (const char *)&v59,
- (const QString *)"../../../utils/DataValue.h",
- (const char *)&elf_hash_bucket[113],
- (int)&v56);
- v34 = v59;
- do
- {
- v35 = __ldrex(v34);
- v36 = v35 - 1;
- }
- while ( __strex(v36, v34) );
- if ( !v36 )
- QString::free(v59);
- v37 = v57;
- do
- {
- v38 = __ldrex(v37);
- v39 = v38 - 1;
- }
- while ( __strex(v39, v37) );
- if ( !v39 )
- QString::free(v57);
- v40 = v58;
- do
- {
- v41 = __ldrex(v40);
- v42 = v41 - 1;
- }
- while ( __strex(v42, v40) );
- if ( !v42 )
- QString::free(v58);
- }
- v24 = *((_DWORD *)&GUI_driveNoteNotification + 7) & 1;
- if ( v24 && *((_BYTE *)&GUI_driveNoteNotification + 41) )
- {
- if ( *((_DWORD *)&GUI_driveNoteNotification + 8) & 2 )
- {
- *((_BYTE *)&GUI_driveNoteNotification + 43) = v24;
- DataValue::revertPendingNoLock((DataValue *)&GUI_driveNoteNotification);
- }
- }
- else
- {
- *((_BYTE *)&GUI_driveNoteNotification + 43) = 1;
- DataValue::setPendingValidNoLock((DataValue *)&GUI_driveNoteNotification, 1);
- }
- DataValue::EventLocker::~EventLocker((DataValue::EventLocker *)&v60);
- v25 = ConfigIntValue::value((ConfigIntValue *)&DriveNoteTimeout);
- result = SingleShotTimer::singleShot((char *)v3 + 12, v25, v3, "1driveNoteTimeout()", 0);
- }
- return result;
- }
RAW Paste Data