// // LevelEditorLayer::updateColor from 0x1000c3b50 to 0x1000c3c4f (255 bytes) // // 1 xrefs: // > @ 0x100ac3de0 // // 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 12:20:35 +0000 // __int64 __fastcall LevelEditorLayer::updateColor( __int64 a1, __int64 a2, int a3, unsigned __int8 a4, int a5, int a6, char a7, __int64 a8, int a9) { int v11; // edi unsigned __int64 v12; // r15 __int64 v13; // rdx __int64 v14; // rdi __int16 v15; // r12 __int64 result; // rax __int64 v17; // rdi __int64 v18; // rdx __int64 v19; // rsi __int64 v20; // rcx __int64 v21; // r8 __int64 v22; // rcx __int64 v23; // rdx v11 = 0; if ( a3 > 0 ) v11 = a3; v12 = 1101; if ( v11 < 1101 ) v12 = (unsigned int)v11; if ( a8 ) { v13 = 2602; if ( *(_BYTE *)(a8 + 1485) || (v13 = 2605, *(_BYTE *)(a8 + 1486) == 1) ) { v14 = *(_QWORD *)(a1 + 3256); v15 = *(_WORD *)(v14 + v13); *(_BYTE *)(a2 + 2) = *(_BYTE *)(v14 + v13 + 2); *(_WORD *)a2 = v15; } } result = GJBaseGameLayer::updateColor(a1, a2, v12, a4, a5, a6, a7, a8, a9); if ( *(_DWORD *)(a1 + 1972) ) { v17 = *(_QWORD *)(a1 + 14592); v18 = (unsigned int)v12 >> 6; v19 = 1LL << v12; v20 = *(_QWORD *)(v17 + 8 * v18); if ( _bittest64(&v20, v12) == a4 ) { *(_QWORD *)(*(_QWORD *)(a1 + 14616) + 8 * v18) &= ~v19; } else { v21 = v20 & ~v19; v22 = v19 | v20; if ( !a4 ) v22 = v21; v23 = (unsigned int)(8 * v18); *(_QWORD *)(v17 + v23) = v22; *(_QWORD *)(*(_QWORD *)(a1 + 14616) + v23) |= v19; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source