// // GameObject::duplicateColorMode from 0x7715bc to 0x7716b0 (244 bytes) // // 7 xrefs: // > GameObject::duplicateValues @ 0x77186c // > LevelEditorLayer::pasteColorState @ 0x78d4a4 // > LevelEditorLayer::pasteColorState @ 0x78d500 // > LevelEditorLayer::pasteColorState @ 0x78d524 // > LevelEditorLayer::copyObjectState @ 0x792bf4 // > EditorUI::createRockEdges @ 0xb07d90 // > @ 0x6f910 // // 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:13 +0000 // __int64 __fastcall GameObject::duplicateColorMode(__int64 this, GameObject *a2) { __int64 v2; // x3 __int64 v3; // x2 int v4; // w1 int v5; // w5 int *v6; // x4 __int64 v7; // x1 __int64 v8; // x5 int *v9; // x3 int v10; // w1 int v11; // w4 __int64 v12; // x3 v2 = *((_QWORD *)a2 + 137); v3 = *((_QWORD *)a2 + 138); if ( !*(_BYTE *)(this + 1038) || !v3 || *(_QWORD *)(this + 1104) ) goto LABEL_18; v4 = *(_DWORD *)v3; v5 = *(_DWORD *)(v3 + 4); if ( *(_DWORD *)v3 != v5 && v4 ) { v6 = *(int **)(this + 1096); v2 = v3; goto LABEL_7; } if ( v5 ) { v6 = *(int **)(this + 1096); v2 = v3; v4 = *(_DWORD *)(v3 + 4); } else { LABEL_18: v4 = *(_DWORD *)(v2 + 4); v6 = *(int **)(this + 1096); if ( *(_DWORD *)v2 != v4 ) { if ( *(_DWORD *)v2 ) v4 = *(_DWORD *)v2; if ( v4 > 1100 ) goto LABEL_8; goto LABEL_22; } } LABEL_7: if ( v4 > 1100 ) { LABEL_8: v4 = 1101; goto LABEL_9; } LABEL_22: if ( v4 < 0 ) v4 = 0; LABEL_9: *v6 = v4; v7 = *(_QWORD *)(this + 1096); v8 = *(_QWORD *)(v2 + 24); *(_QWORD *)(v7 + 16) = *(_QWORD *)(v2 + 16); *(_QWORD *)(v7 + 24) = v8; if ( v3 ) { v9 = *(int **)(this + 1104); if ( v9 ) { v10 = *(_DWORD *)v3; v11 = *(_DWORD *)(v3 + 4); if ( *(_DWORD *)v3 == v11 || !v10 ) { v10 = *(_DWORD *)(v3 + 4); if ( v11 <= 1100 ) { LABEL_14: if ( v10 < 0 ) v10 = 0; goto LABEL_16; } } else if ( v10 <= 1100 ) { goto LABEL_14; } v10 = 1101; LABEL_16: *v9 = v10; this = *(_QWORD *)(this + 1104); v12 = *(_QWORD *)(v3 + 24); *(_QWORD *)(this + 16) = *(_QWORD *)(v3 + 16); *(_QWORD *)(this + 24) = v12; } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source