// // LevelEditorLayer::pasteColorState from 0x78d478 to 0x78d548 (208 bytes) // // 3 xrefs: // > CustomizeObjectLayer::onPaste @ 0x983ec4 // > EditorUI::onPasteColor @ 0xbd8cb0 // > @ 0xa7b48 // // This function is hookable on this platform (idp: arm, 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:53:27 +0000 // __int64 __fastcall LevelEditorLayer::pasteColorState(__int64 result, GameObject *this, __int64 a3) { GameObject *v4; // x1 __int64 v5; // x22 unsigned int v6; // w20 __int64 *v7; // x19 __int64 v8; // x20 char *v9; // x21 __int64 v10; // x20 __int64 v11; // x0 __int64 *v12; // x19 __int64 v13; // x20 __int64 v14; // x0 v4 = *(GameObject **)(result + 14120); if ( v4 ) { v5 = result; if ( this ) { GameObject::duplicateColorMode((__int64)this, v4); result = 1; *((_BYTE *)this + 1148) = 1; } else if ( a3 ) { result = *(_QWORD *)(a3 + 56); v6 = *(_DWORD *)result; if ( *(_DWORD *)result ) { v7 = *(__int64 **)(result + 16); result = -8; v8 = 8LL * v6 - 8; v9 = (char *)v7 + v8; if ( v7 <= (__int64 *)((char *)v7 + v8) ) { v10 = *v7; if ( *v7 ) { v11 = *v7; v12 = v7 + 1; result = GameObject::duplicateColorMode(v11, v4); for ( *(_BYTE *)(v10 + 1148) = 1; v9 >= (char *)v12; *(_BYTE *)(v13 + 1148) = 1 ) { v13 = *v12; if ( !*v12 ) break; v14 = *v12++; result = GameObject::duplicateColorMode(v14, *(GameObject **)(v5 + 14120)); } } } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source