// // TouchControlEditLayer::getValue from 0x140453f00 to 0x1404540a0 (416 bytes) // // 2 xrefs: // > @ 0x140795a68 // > @ 0x140927944 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:32:28 +0000 // // Hidden C++ exception states: #wind=1 double __fastcall TouchControlEditLayer::getValue(__int64 a1, int a2) { __int64 v2; // r8 int v3; // r9d __int64 *v4; // r8 double result; // xmm0_8 __int64 v6; // rax __int64 v7; // rcx void *v8; // [rsp+30h] [rbp+8h] v2 = *(_QWORD *)(a1 + 1240); v3 = 0; if ( !v2 ) { v4 = *(__int64 **)(a1 + 1216); if ( v4 == *(__int64 **)(a1 + 1224) ) v2 = 0; else v2 = *v4; } switch ( a2 ) { case 1: if ( !v2 ) goto LABEL_8; *(_QWORD *)&result = COERCE_UNSIGNED_INT((float)(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)(*(_QWORD *)(v2 + 320) + 320LL) + 32LL))(*(_QWORD *)(v2 + 320) + 320LL)); *(float *)&result = *(float *)&result / 255.0; break; case 2: if ( v2 ) (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(v2 + 320) + 168LL))(*(_QWORD *)(v2 + 320)); else LABEL_8: *(_QWORD *)&result = 1065353216; break; case 3: if ( v2 ) v3 = *(unsigned __int8 *)(v2 + 381); *(_QWORD *)&result = COERCE_UNSIGNED_INT((float)v3); break; case 4: if ( v2 ) v3 = *(unsigned __int8 *)(v2 + 382); *(_QWORD *)&result = COERCE_UNSIGNED_INT((float)v3); break; case 5: if ( v2 ) v3 = *(unsigned __int8 *)(v2 + 387); *(_QWORD *)&result = COERCE_UNSIGNED_INT((float)v3); break; case 6: v6 = *(_QWORD *)(a1 + 1008); if ( v6 ) { *(_QWORD *)&result = COERCE_UNSIGNED_INT((float)*(int *)(v6 + 68)); } else { v7 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v8 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v8); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v7 = qword_14090BFD0; } *(_QWORD *)&result = COERCE_UNSIGNED_INT((float)GameManager::getGameVariable(v7, "0113")); } break; case 7: *(_QWORD *)&result = COERCE_UNSIGNED_INT((float)*(unsigned __int8 *)(a1 + 1000)); break; default: result = 0.0; break; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source