# CVE-2026-42983 — dwmcore.dll patch diff

`dwmcore.dll` 10.0.26100.8457 -> 10.0.26100.8655 (ghidriff).

## `TransferVertices<Vertex_UVxN<VertexXYW_ColorDW>_>`  (modified)

```diff
--- TransferVertices<Vertex_UVxN<VertexXYW_ColorDW>_>
+++ TransferVertices<Vertex_UVxN<VertexXYW_ColorDW>_>
@@ -1,226 +1,663 @@
 

-/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

-   guard_dispatch_icall */

 /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* void __cdecl TransferVertices<struct Vertex_UVxN<struct VertexXYW_ColorDW> >(class

+   CCommonTransferParameters<struct Vertex_UVxN<struct VertexXYW_ColorDW> > const & __ptr64,class

+   CMILMatrix const & __ptr64,class CMILMatrix const & __ptr64,bool) */

 

 void __cdecl

 TransferVertices<Vertex_UVxN<VertexXYW_ColorDW>_>

           (CCommonTransferParameters<Vertex_UVxN<VertexXYW_ColorDW>_> *param_1,CMILMatrix *param_2,

           CMILMatrix *param_3,bool param_4)

 

 {

-  CWatermarkStack<float,64,2,10> *this;

-  longlong *plVar1;

-  CSurfaceDrawListBrush *this_00;

-  code *pcVar2;

-  bool bVar3;

-  uint uVar4;

-  long lVar5;

-  int iVar6;

-  longlong lVar7;

-  int *piVar8;

-  uint uVar9;

-  longlong *plVar10;

-  ulonglong uVar11;

-  CDrawingContext *unaff_RBX;

-  longlong unaff_RBP;

-  CDrawListEntryBuilder *unaff_RSI;

-  CMultiPrimitiveDrawListBrush *unaff_RDI;

-  size_t _Size;

-  uint uVar12;

+  float *pfVar1;

+  float *pfVar2;

+  undefined8 *puVar3;

+  char cVar4;

+  undefined1 auVar5 [16];

+  undefined1 auVar6 [16];

+  float fVar7;

+  float fVar8;

+  bool bVar9;

+  undefined4 uVar10;

+  float *pfVar11;

+  float *pfVar12;

+  undefined8 *puVar13;

+  undefined8 *puVar14;

+  longlong lVar15;

+  ulonglong uVar16;

+  uint uVar17;

+  ulonglong uVar18;

+  float *pfVar19;

+  byte bVar20;

+  undefined8 *puVar21;

+  float *pfVar22;

+  CMILMatrix CVar23;

+  int iVar24;

+  float *pfVar25;

   undefined7 in_register_00000089;

-  TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded> *pTVar13;

-  code *unaff_R12;

-  uint uVar14;

-  long *unaff_R13;

-  CDrawingContext *this_01;

-  undefined4 in_XMM5_Da;

-  undefined4 unaff_XMM13_Da;

+  longlong lVar26;

+  float *pfVar27;

+  longlong lVar28;

+  uint uVar29;

+  undefined8 *puVar30;

+  uint uVar31;

+  uint uVar32;

+  float extraout_XMM0_Da;

+  float fVar33;

+  float extraout_XMM0_Da_00;

+  float extraout_XMM0_Db;

+  float fVar35;

+  undefined8 uVar34;

+  float extraout_XMM0_Db_00;

+  undefined4 extraout_XMM0_Dc;

+  undefined4 extraout_XMM0_Dc_00;

+  undefined4 extraout_XMM0_Dc_01;

+  undefined4 extraout_XMM0_Dc_02;

+  undefined4 extraout_XMM0_Dc_03;

+  undefined4 extraout_XMM0_Dc_04;

+  undefined4 extraout_XMM0_Dd;

+  undefined4 extraout_XMM0_Dd_00;

+  undefined4 extraout_XMM0_Dd_01;

+  undefined4 extraout_XMM0_Dd_02;

+  undefined4 extraout_XMM0_Dd_03;

+  undefined4 extraout_XMM0_Dd_04;

+  float fVar36;

+  undefined1 auVar37 [16];

+  undefined1 auVar38 [16];

+  float fVar39;

+  undefined8 uVar40;

+  float fVar41;

+  float fVar42;

+  float fVar43;

+  float fVar44;

+  float fVar45;

+  float fVar46;

+  float fVar47;

+  float fVar48;

+  undefined1 auStack_1b8 [32];

+  uint local_198;

+  undefined8 local_188;

+  undefined8 uStack_180;

+  undefined8 local_178;

+  undefined8 uStack_170;

+  undefined8 local_158;

+  undefined8 uStack_150;

+  undefined4 local_148;

+  CMILMatrix local_138 [88];

+  ulonglong local_e0;

   

-  pTVar13 = (TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded> *)

-            CONCAT71(in_register_00000089,param_4);

-  *(undefined4 *)(unaff_RBP + -100) = unaff_XMM13_Da;

-  *(undefined4 *)(unaff_RBP + -0x60) = in_XMM5_Da;

-  Matrix3x3::Get2DScaleDimensionsWithPerspective

-            ((Matrix3x3 *)param_1,(float *)param_2,(float *)param_3,pTVar13);

-  uVar12 = (uint)pTVar13;

-  this_01 = *(CDrawingContext **)(unaff_RBP + 0x1c0);

-  uVar9 = *(uint *)(unaff_RBP + 0x1e8);

-  _Size = (ulonglong)uVar9 << 3;

-  *(uint *)(unaff_RBP + 0xe0) = uVar9;

-  *(uint *)(unaff_RBP + 0xe4) = uVar9;

-  if ((ulonglong)uVar9 != 0) {

-    if (_Size < 0x29) {

-      param_2 = (CMILMatrix *)(unaff_RBP + 0x1c8);

-      memcpy((void *)(unaff_RBP + 0xb8),param_2,_Size);

-    }

-    else {

-      *(undefined8 *)(unaff_RBP + 0xb8) = 0;

-      *(undefined8 *)(unaff_RBP + 0xc0) = 0;

-      *(undefined8 *)(unaff_RBP + 0xd8) = 0;

-      *(undefined8 *)(unaff_RBP + 200) = 0;

-      *(undefined8 *)(unaff_RBP + 0xd0) = 0;

-      piVar8 = _errno();

-      *piVar8 = 0x22;

-      _invalid_parameter_noinfo();

-      this_01 = *(CDrawingContext **)(unaff_RBP + 0x1c0);

-    }

-  }

-  uVar9 = (uint)_Size;

-  uVar14 = (uint)unaff_R13;

-  *(uint *)(unaff_RBP + 0xec) = uVar14;

-  bVar3 = CDrawingContext::IsWarpFastPathEnabled(this_01);

-  if (((bVar3) && (iVar6 = (**(code **)(**(longlong **)(unaff_RBP + 0x40) + 8))(), iVar6 == 1)) &&

-     (*(int *)(unaff_RBP + 0xec) == (int)unaff_RDI)) {

-    *(undefined1 *)(unaff_RBP + 0x144) = 1;

+  local_e0 = __security_cookie ^ (ulonglong)auStack_1b8;

+  if ((((byte)param_1[0x28] & 1) == 0) && (((byte)param_1[0x38] & 0xf) == 0)) {

+    bVar9 = true;

   }

   else {

-    *(char *)(unaff_RBP + 0x144) = (char)unaff_RDI;

+    bVar9 = false;

   }

-  uVar4 = CBrushDrawListGenerator::GenerateDrawListWorker

-                    ((GenerateDrawListParameters *)(unaff_RBP + 0x30));

-  if ((int)uVar4 < 0) {

-    uVar9 = 0x137;

+  CVar23 = param_3[0x41];

+  if ((char)(((byte)CVar23 & 0xf0) << 2) < '\x01') {

+    if (((byte)CVar23 & 0x20) != 0) goto LAB_0;

+    fVar36 = ABS((ABS(*(float *)(param_3 + 0xc)) * 61440.0 +

+                  ABS(*(float *)(param_3 + 0x1c)) * 61440.0 + ABS(*(float *)(param_3 + 0x3c))) - 1.0

+                );

+    CVar23 = (CMILMatrix)((byte)CVar23 & 0xcf);

+    param_3[0x41] = (CMILMatrix)((fVar36 < 8.138021e-05) * ' ' + 0x10U | (byte)CVar23);

+    if (fVar36 < 8.138021e-05) goto LAB_0;

+  }

+  if (((!NAN(*(float *)(param_3 + 0xc))) && (!NAN(*(float *)(param_3 + 0x1c)))) &&

+     (!NAN(*(float *)(param_3 + 0x3c)))) {

+    if (1.1920929e-06 <= ABS(*(float *)(param_1 + 0x2c) - 1.0)) {

+      if (param_1[0x30] == (CCommonTransferParameters<Vertex_UVxN<VertexXYW_ColorDW>_>)0x0) {

+        VertexTransfer::

+        Transfer<VertexTransfer::CGeneral3DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,1,Vertex_UVxN<VertexXYW_ColorDW>_>

+                  ();

+      }

+      else {

+        VertexTransfer::

+        Transfer<VertexTransfer::CGeneral3DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,2,Vertex_UVxN<VertexXYW_ColorDW>_>

+                  (param_1,param_3,CVar23,CONCAT71(in_register_00000089,param_4));

+      }

+    }

+    else {

+      puVar21 = (undefined8 *)CMILMatrix::ComputeAdjointIgnoreZ(local_138);

+      uVar29 = *(uint *)(param_1 + 0x14);

+      uVar31 = 0;

+      local_178 = puVar21[2];

+      uStack_170 = puVar21[3];

+      local_188 = *puVar21;

+      uStack_180 = puVar21[1];

+      local_158 = puVar21[6];

+      uStack_150 = puVar21[7];

+      if (uVar29 != 0) {

+        local_148._1_1_ = (byte)((uint)*(undefined4 *)(puVar21 + 8) >> 8);

+        bVar20 = local_148._1_1_;

+        local_198 = uVar29;

+        local_148 = *(undefined4 *)(puVar21 + 8);

+        do {

+          CVar23 = param_3[0x41];

+          uVar32 = *(uint *)(param_1 + 0x28);

+          pfVar19 = (float *)((longlong)(int)(uVar31 * *(int *)(param_1 + 0x10)) +

+                             *(longlong *)(param_1 + 8));

+          fVar36 = pfVar19[1];

+          fVar44 = *pfVar19;

+          puVar21 = (undefined8 *)

+                    ((longlong)(int)(uVar31 * *(int *)(param_1 + 0x40)) +

+                    *(longlong *)(param_1 + 0x38));

+          pfVar22 = (float *)((longlong)(int)(uVar31 * *(int *)(param_1 + 0x20)) +

+                             *(longlong *)(param_1 + 0x18));

+          cVar4 = (char)((char)CVar23 << 2) >> 6;

+          if (cVar4 < '\x01') {

+            if (-1 < cVar4) {

+              if (8.138021e-05 <=

+                  ABS((ABS(*(float *)(param_3 + 0x1c)) * 61440.0 +

+                       ABS(*(float *)(param_3 + 0xc)) * 61440.0 + ABS(*(float *)(param_3 + 0x3c))) -

+                      1.0)) {

+                CVar23 = (CMILMatrix)((byte)CVar23 & 0xdf | 0x10);

+                param_3[0x41] = CVar23;

+                goto LAB_1;

+              }

+              CVar23 = (CMILMatrix)((byte)CVar23 | 0x30);

+              param_3[0x41] = CVar23;

+            }

+            fVar39 = 1.0;

+          }

+          else {

+LAB_1:

+            fVar39 = fVar44 * *(float *)(param_3 + 0xc) + fVar36 * *(float *)(param_3 + 0x1c) +

+                     *(float *)(param_3 + 0x3c);

+          }

+          fVar47 = *pfVar22;

+          fVar42 = pfVar22[1];

+          fVar45 = fVar42 * *(float *)(param_3 + 0x10) + fVar47 * *(float *)param_3 +

+                   *(float *)(param_3 + 0x30);

+          fVar46 = fVar42 * *(float *)(param_3 + 0x14) + fVar47 * *(float *)(param_3 + 4) +

+                   *(float *)(param_3 + 0x34);

+          cVar4 = (char)((char)CVar23 << 2) >> 6;

+          if (cVar4 < '\x01') {

+            if (-1 < cVar4) {

+              if (8.138021e-05 <=

+                  ABS((ABS(*(float *)(param_3 + 0xc)) * 61440.0 +

+                       ABS(*(float *)(param_3 + 0x1c)) * 61440.0 + ABS(*(float *)(param_3 + 0x3c)))

+                      - 1.0)) {

+                param_3[0x41] = (CMILMatrix)((byte)CVar23 & 0xdf | 0x10);

+                goto LAB_2;

+              }

+              param_3[0x41] = (CMILMatrix)((byte)CVar23 | 0x30);

+            }

+            fVar47 = 1.0;

+          }

+          else {

+LAB_2:

+            fVar47 = fVar42 * *(float *)(param_3 + 0x1c) + fVar47 * *(float *)(param_3 + 0xc) +

+                     *(float *)(param_3 + 0x3c);

+          }

+          fVar48 = fVar45 / fVar47;

+          fVar33 = fVar46 / fVar47;

+          fVar42 = (fVar36 * *(float *)(param_3 + 0x10) + *(float *)param_3 * fVar44 +

+                   *(float *)(param_3 + 0x30)) / fVar39 - fVar48;

+          fVar44 = (fVar36 * *(float *)(param_3 + 0x14) + fVar44 * *(float *)(param_3 + 4) +

+                   *(float *)(param_3 + 0x34)) / fVar39 - fVar33;

+          fVar36 = fVar44 * fVar44 + fVar42 * fVar42;

+          if (fVar36 < 0.0) {

+            fVar36 = sqrtf(fVar36);

+            uVar29 = local_198;

+          }

+          else {

+            fVar36 = SQRT(fVar36);

+          }

+          lVar15 = 0;

+          fVar39 = 1.0;

+          if (0.0 < fVar36) {

+            fVar39 = pfVar22[2] / fVar36;

+          }

+          fVar48 = fVar42 * fVar39 + fVar48;

+          fVar33 = fVar44 * fVar39 + fVar33;

+          cVar4 = (char)(bVar20 << 2) >> 6;

+          if (cVar4 < '\x01') {

+            if (-1 < cVar4) {

+              if (8.138021e-05 <=

+                  ABS((ABS(uStack_180._4_4_) * 61440.0 + ABS(uStack_170._4_4_) * 61440.0 +

+                      ABS(uStack_150._4_4_)) - 1.0)) {

+                bVar20 = bVar20 & 0xdf | 0x10;

+                goto LAB_3;

+              }

+              bVar20 = bVar20 | 0x30;

+            }

+            fVar36 = 1.0;

+          }

+          else {

+LAB_3:

+            fVar36 = uStack_180._4_4_ * fVar48 + uStack_170._4_4_ * fVar33 + uStack_150._4_4_;

+          }

+          CVar23 = param_3[0x41];

+          fVar44 = ((float)local_188 * fVar48 + (float)local_178 * fVar33 + (float)local_158) /

+                   fVar36;

+          fVar36 = (local_188._4_4_ * fVar48 + local_178._4_4_ * fVar33 + local_158._4_4_) / fVar36;

+          cVar4 = (char)((char)CVar23 << 2) >> 6;

+          if (cVar4 < '\x01') {

+            if (-1 < cVar4) {

+              if (8.138021e-05 <=

+                  ABS((ABS(*(float *)(param_3 + 0xc)) * 61440.0 +

+                       ABS(*(float *)(param_3 + 0x1c)) * 61440.0 + ABS(*(float *)(param_3 + 0x3c)))

+                      - 1.0)) {

+                param_3[0x41] = (CMILMatrix)((byte)CVar23 & 0xdf | 0x10);

+                goto LAB_4;

+              }

+              param_3[0x41] = (CMILMatrix)((byte)CVar23 | 0x30);

+            }

+            fVar42 = 1.0;

+          }

+          else {

+LAB_4:

+            fVar42 = fVar36 * *(float *)(param_3 + 0x1c) + fVar44 * *(float *)(param_3 + 0xc) +

+                     *(float *)(param_3 + 0x3c);

+          }

+          if (fVar42 <= 0.0) {

+            *puVar21 = CONCAT44(fVar46,fVar45);

+            *(float *)(puVar21 + 1) = fVar47;

+          }

+          else {

+            *puVar21 = CONCAT44(fVar44 * *(float *)(param_3 + 4) +

+                                fVar36 * *(float *)(param_3 + 0x14) + *(float *)(param_3 + 0x34),

+                                fVar36 * *(float *)(param_3 + 0x10) + fVar44 * *(float *)param_3 +

+                                *(float *)(param_3 + 0x30));

+            *(float *)(puVar21 + 1) = fVar42;

+          }

+          if ((1.0 < fVar39) && (pfVar22[3] == 0.0)) {

+            fVar39 = 1.0;

+          }

+          uVar17 = 0;

+          if (uVar32 < 3) {

+            if (uVar32 != 0) {

+LAB_5:

+              pfVar25 = pfVar19 + lVar15 * 2 + 5;

+              uVar18 = (ulonglong)(uVar32 - uVar17);

+              do {

+                fVar36 = *(float *)(((longlong)pfVar22 - (longlong)pfVar19) + (longlong)pfVar25);

+                fVar44 = *pfVar25;

+                *(float *)(((longlong)puVar21 - (longlong)pfVar19) + -4 + (longlong)pfVar25) =

+                     (1.0 - fVar39) *

+                     *(float *)(((longlong)pfVar22 - (longlong)pfVar19) + -4 + (longlong)pfVar25) +

+                     fVar39 * pfVar25[-1];

+                *(float *)(((longlong)puVar21 - (longlong)pfVar19) + (longlong)pfVar25) =

+                     (1.0 - fVar39) * fVar36 + fVar39 * fVar44;

+                pfVar25 = pfVar25 + 2;

+                uVar18 = uVar18 - 1;

+              } while (uVar18 != 0);

+            }

+          }

+          else {

+            fVar36 = 1.0 - fVar39;

+            pfVar25 = pfVar19 + 5;

+            lVar26 = (longlong)pfVar22 - (longlong)pfVar19;

+            lVar28 = (longlong)puVar21 - (longlong)pfVar19;

+            uVar17 = (uVar32 - 3) / 3 + 1;

+            uVar18 = (ulonglong)uVar17;

+            lVar15 = uVar18 * 3;

+            uVar17 = uVar17 * 3;

+            do {

+              fVar44 = *(float *)((longlong)pfVar25 + lVar26);

+              fVar47 = *pfVar25;

+              *(float *)(lVar28 + -4 + (longlong)pfVar25) =

+                   fVar36 * *(float *)(lVar26 + -4 + (longlong)pfVar25) + fVar39 * pfVar25[-1];

+              *(float *)((longlong)pfVar25 + lVar28) = fVar36 * fVar44 + fVar39 * fVar47;

+              fVar44 = *(float *)(lVar26 + 8 + (longlong)pfVar25);

+              fVar47 = pfVar25[2];

+              *(float *)(lVar28 + 4 + (longlong)pfVar25) =

+                   fVar36 * *(float *)(lVar26 + 4 + (longlong)pfVar25) + fVar39 * pfVar25[1];

+              *(float *)(lVar28 + 8 + (longlong)pfVar25) = fVar36 * fVar44 + fVar39 * fVar47;

+              fVar44 = *(float *)(lVar26 + 0x10 + (longlong)pfVar25);

+              fVar47 = pfVar25[4];

+              *(float *)((longlong)pfVar25 + lVar28 + 0xc) =

+                   fVar36 * *(float *)((longlong)pfVar25 + lVar26 + 0xc) + fVar39 * pfVar25[3];

+              *(float *)(lVar28 + 0x10 + (longlong)pfVar25) = fVar36 * fVar44 + fVar39 * fVar47;

+              pfVar25 = pfVar25 + 6;

+              uVar18 = uVar18 - 1;

+            } while (uVar18 != 0);

+            if (uVar17 < uVar32) goto LAB_5;

+          }

+          uVar31 = uVar31 + 1;

+          *(float *)((longlong)puVar21 + 0xc) = pfVar19[3];

+        } while (uVar31 < uVar29);

+      }

+    }

+    DAT_6 = DAT_6 + *(int *)(param_1 + 0x14);

+    return;

+  }

 LAB_0:

-    MilInstrumentationCheckHR_MaybeFailFast(0x14,unaff_R13,uVar14,uVar4,uVar9,unaff_R13);

-    CShapePtr::Release((CShapePtr *)(unaff_RBP + 0x58));

-    uVar9 = 0x380;

+  fVar36 = *(float *)param_3;

+  fVar44 = *(float *)(param_3 + 0x14);

+  if (((ABS(fVar36 - fVar44) <= 8.138021e-05) &&

+      (fVar39 = *(float *)(param_3 + 0x10), ABS(*(float *)(param_3 + 4) - -fVar39) <= 8.138021e-05))

+     && (ABS((fVar39 * fVar39 + fVar36 * fVar36) - 1.0) < 8.138021e-05)) {

+    fVar44 = *(float *)(param_1 + 0x2c);

+    if (1.1920929e-06 <= ABS(fVar44 - 1.0)) {

+      if (bVar9) {

+        if (param_1[0x30] == (CCommonTransferParameters<Vertex_UVxN<VertexXYW_ColorDW>_>)0x0) {

+          uVar29 = *(uint *)(param_1 + 0x14);

+          uVar40 = *(undefined8 *)(param_3 + 0x30);

+          uVar31 = 0;

+          uVar18 = (ulonglong)(*(uint *)(param_1 + 0x28) >> 1);

+          if (uVar29 != 0) {

+            do {

+              pfVar22 = (float *)((longlong)(int)(*(int *)(param_1 + 0x10) * uVar31) +

+                                 *(longlong *)(param_1 + 8));

+              fVar47 = pfVar22[3];

+              pfVar19 = (float *)((longlong)(int)((uVar31 + 1) * *(int *)(param_1 + 0x10)) +

+                                 *(longlong *)(param_1 + 8));

+              puVar30 = (undefined8 *)

+                        ((longlong)(int)(*(int *)(param_1 + 0x40) * (uVar31 + 1)) +

+                        *(longlong *)(param_1 + 0x38));

+              auVar37._0_4_ = (int)(((float)((uint)fVar47 & 0xff) + 0.0) * 1.0 * fVar44);

+              auVar37._4_4_ = (int)(((float)((uint)fVar47 & 0xff00) + 0.0) * 0.00390625 * fVar44);

+              auVar37._8_4_ =

+                   (int)(((float)((uint)fVar47 & 0xff0000) + 0.0) * 1.5258789e-05 * fVar44);

+              auVar37._12_4_ =

+                   (int)(((float)(int)((uint)fVar47 & 0xff000000 ^ 0x80000000) + 2.1474836e+09) *

+                         5.9604645e-08 * fVar44);

+              puVar21 = (undefined8 *)

+                        ((longlong)(int)(*(int *)(param_1 + 0x40) * uVar31) +

+                        *(longlong *)(param_1 + 0x38));

+              packssdw(auVar37,auVar37);

+              uVar34 = DirectX::MathInternal::PermuteHelper<228,0,0,0,1>::Permute

+                                 (pfVar22[1] * fVar39 + (float)uVar40 + *pfVar22 * fVar36);

+              *puVar21 = uVar34;

+              *(undefined4 *)(puVar21 + 1) = extraout_XMM0_Dc_03;

+              *(undefined4 *)((longlong)puVar21 + 0xc) = extraout_XMM0_Dd_03;

+              if ((int)uVar18 != 0) {

+                uVar16 = uVar18 & 0xffffffff;

+                puVar3 = puVar21;

+                do {

+                  puVar13 = puVar3 + 2;

+                  puVar14 = (undefined8 *)

+                            (((longlong)pfVar22 - (longlong)puVar21) + (longlong)puVar13);

+                  uVar34 = puVar14[1];

+                  *puVar13 = *puVar14;

+                  puVar3[3] = uVar34;

+                  uVar16 = uVar16 - 1;

+                  puVar3 = puVar13;

+                } while (uVar16 != 0);

+              }

+              fVar47 = pfVar19[3];

+              auVar38._0_4_ = (int)(((float)((uint)fVar47 & 0xff) + 0.0) * 1.0 * fVar44);

+              auVar38._4_4_ = (int)(((float)((uint)fVar47 & 0xff00) + 0.0) * 0.00390625 * fVar44);

+              auVar38._8_4_ =

+                   (int)(((float)((uint)fVar47 & 0xff0000) + 0.0) * 1.5258789e-05 * fVar44);

+              auVar38._12_4_ =

+                   (int)(((float)(int)((uint)fVar47 & 0xff000000 ^ 0x80000000) + 2.1474836e+09) *

+                         5.9604645e-08 * fVar44);

+              packssdw(auVar38,auVar38);

+              uVar34 = DirectX::MathInternal::PermuteHelper<228,0,0,0,1>::Permute

+                                 (pfVar19[1] * fVar39 + (float)uVar40 + *pfVar19 * fVar36);

+              *puVar30 = uVar34;

+              *(undefined4 *)(puVar30 + 1) = extraout_XMM0_Dc_04;

+              *(undefined4 *)((longlong)puVar30 + 0xc) = extraout_XMM0_Dd_04;

+              if ((int)uVar18 != 0) {

+                uVar16 = uVar18 & 0xffffffff;

+                puVar21 = puVar30;

+                do {

+                  puVar14 = puVar21 + 2;

+                  puVar3 = (undefined8 *)

+                           (((longlong)pfVar19 - (longlong)puVar30) + (longlong)puVar14);

+                  uVar34 = puVar3[1];

+                  *puVar14 = *puVar3;

+                  puVar21[3] = uVar34;

+                  uVar16 = uVar16 - 1;

+                  puVar21 = puVar14;

+                } while (uVar16 != 0);

+              }

+              uVar31 = uVar31 + 2;

+            } while (uVar31 < uVar29);

+          }

+        }

+        else {

+          VertexTransfer::

+          SimdTransfer<VertexTransfer::CSimdNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,2,Vertex_UVxN<VertexXYW_ColorDW>_>

+                    (param_1,param_3);

+        }

+      }

+      else if (param_1[0x30] == (CCommonTransferParameters<Vertex_UVxN<VertexXYW_ColorDW>_>)0x0) {

+        VertexTransfer::

+        Transfer<VertexTransfer::CNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,1,Vertex_UVxN<VertexXYW_ColorDW>_>

+                  ();

+      }

+      else {

+        VertexTransfer::

+        Transfer<VertexTransfer::CNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,2,Vertex_UVxN<VertexXYW_ColorDW>_>

+                  (param_1,param_3);

+      }

+    }

+    else if (bVar9) {

+      uVar40 = *(undefined8 *)(param_3 + 0x30);

+      uVar29 = *(uint *)(param_1 + 0x28);

+      uVar31 = *(uint *)(param_1 + 0x14);

+      uVar18 = (ulonglong)(uint)fVar39;

+      uVar32 = 0;

+      if (uVar31 != 0) {

+        do {

+          pfVar22 = (float *)((longlong)(int)(*(int *)(param_1 + 0x10) * uVar32) +

+                             *(longlong *)(param_1 + 8));

+          pfVar19 = (float *)((longlong)(int)((uVar32 + 1) * *(int *)(param_1 + 0x10)) +

+                             *(longlong *)(param_1 + 8));

+          puVar21 = (undefined8 *)

+                    ((longlong)(int)(*(int *)(param_1 + 0x40) * (uVar32 + 1)) +

+                    *(longlong *)(param_1 + 0x38));

+          puVar30 = (undefined8 *)

+                    ((longlong)(int)(*(int *)(param_1 + 0x40) * uVar32) +

+                    *(longlong *)(param_1 + 0x38));

+          uVar34 = DirectX::MathInternal::PermuteHelper<228,0,0,0,1>::Permute

+                             (pfVar22[1] * (float)uVar18 + (float)uVar40 + *pfVar22 * fVar36);

+          *puVar30 = uVar34;

+          *(undefined4 *)(puVar30 + 1) = extraout_XMM0_Dc_01;

+          *(undefined4 *)((longlong)puVar30 + 0xc) = extraout_XMM0_Dd_01;

+          if (uVar29 >> 1 != 0) {

+            uVar16 = (ulonglong)(uVar29 >> 1);

+            puVar3 = puVar30;

+            do {

+              puVar13 = puVar3 + 2;

+              puVar14 = (undefined8 *)(((longlong)pfVar22 - (longlong)puVar30) + (longlong)puVar13);

+              uVar34 = puVar14[1];

+              *puVar13 = *puVar14;

+              puVar3[3] = uVar34;

+              uVar16 = uVar16 - 1;

+              puVar3 = puVar13;

+            } while (uVar16 != 0);

+          }

+          uVar34 = DirectX::MathInternal::PermuteHelper<228,0,0,0,1>::Permute

+                             (pfVar19[1] * (float)uVar18 + (float)uVar40 + *pfVar19 * fVar36);

+          *puVar21 = uVar34;

+          *(undefined4 *)(puVar21 + 1) = extraout_XMM0_Dc_02;

+          *(undefined4 *)((longlong)puVar21 + 0xc) = extraout_XMM0_Dd_02;

+          if (uVar29 >> 1 != 0) {

+            uVar16 = (ulonglong)(uVar29 >> 1);

+            puVar30 = puVar21;

+            do {

+              puVar14 = puVar30 + 2;

+              puVar3 = (undefined8 *)(((longlong)pfVar19 - (longlong)puVar21) + (longlong)puVar14);

+              uVar34 = puVar3[1];

+              *puVar14 = *puVar3;

+              puVar30[3] = uVar34;

+              uVar16 = uVar16 - 1;

+              puVar30 = puVar14;

+            } while (uVar16 != 0);

+          }

+          uVar32 = uVar32 + 2;

+        } while (uVar32 < uVar31);

+      }

+    }

+    else {

+      VertexTransfer::

+      Transfer<VertexTransfer::CNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,0,Vertex_UVxN<VertexXYW_ColorDW>_>

+                (param_1,param_3);

+    }

+    DAT_7 = DAT_7 + *(int *)(param_1 + 0x14);

+    return;

+  }

+  if (1.1920929e-06 <= ABS(*(float *)(param_1 + 0x2c) - 1.0)) {

+    if (bVar9) {

+      if (param_1[0x30] == (CCommonTransferParameters<Vertex_UVxN<VertexXYW_ColorDW>_>)0x0) {

+        VertexTransfer::

+        SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,1,Vertex_UVxN<VertexXYW_ColorDW>_>

+                  ();

+        DAT_8 = DAT_8 + *(int *)(param_1 + 0x14);

+        return;

+      }

+      VertexTransfer::

+      SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,2,Vertex_UVxN<VertexXYW_ColorDW>_>

+                ();

+      DAT_8 = DAT_8 + *(int *)(param_1 + 0x14);

+      return;

+    }

+    if (param_1[0x30] != (CCommonTransferParameters<Vertex_UVxN<VertexXYW_ColorDW>_>)0x0) {

+      VertexTransfer::

+      Transfer<VertexTransfer::CScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,2,Vertex_UVxN<VertexXYW_ColorDW>_>

+                ();

+      DAT_8 = DAT_8 + *(int *)(param_1 + 0x14);

+      return;

+    }

+    VertexTransfer::

+    Transfer<VertexTransfer::CScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,1,Vertex_UVxN<VertexXYW_ColorDW>_>

+              (param_1,param_3);

   }

   else {

-    if (*(CMultiPrimitiveDrawListBrush **)(unaff_RSI + 0x50) != unaff_RDI) {

-      uVar12 = 0;

-      uVar9 = 0;

-      uVar4 = CDrawListEntryBuilder::ExtractBuiltHWPrimitiveEntry

-                        (unaff_RSI,(uint)param_2,(CPrimitiveColor *)0x0,(_D3DCOLORVALUE *)0x0);

-      if ((int)uVar4 < 0) {

-        param_2 = (CMILMatrix *)0x0;

-        uVar9 = 0;

-        uVar12 = uVar4;

-        MilInstrumentationCheckHR_MaybeFailFast(0x14,(long *)0x0,0,uVar4,0x32d,unaff_R13);

-      }

-      plVar10 = *(longlong **)(unaff_RSI + 0x50);

-      *(long **)(unaff_RSI + 0x50) = unaff_R13;

-      if (plVar10 != (longlong *)0x0) {

-        (**(code **)(*plVar10 + 8))();

-      }

-      plVar10 = *(longlong **)(unaff_RSI + 0x58);

-      *(long **)(unaff_RSI + 0x58) = unaff_R13;

-      if (plVar10 != (longlong *)0x0) {

-        (**(code **)(*plVar10 + 8))();

-      }

-      plVar10 = *(longlong **)(unaff_RSI + 0x60);

-      *(long **)(unaff_RSI + 0x60) = unaff_R13;

-      if (plVar10 != (longlong *)0x0) {

-        (**(code **)(*plVar10 + 8))();

-      }

-      plVar10 = *(longlong **)(unaff_RSI + 0x68);

-      *(long **)(unaff_RSI + 0x68) = unaff_R13;

-      if (plVar10 != (longlong *)0x0) {

-        (**(code **)(*plVar10 + 8))();

-      }

-      if ((int)uVar4 < 0) {

-        uVar9 = 0x13c;

-        goto LAB_0;

-      }

-    }

-    CShapePtr::Release((CShapePtr *)(unaff_RBP + 0x58));

-    this = (CWatermarkStack<float,64,2,10> *)(unaff_RBX + 0xc58);

-    if ((*(int *)(unaff_RBX + 0xc60) != *(int *)(unaff_RBX + 0xc64)) ||

-       (uVar4 = CWatermarkStack<float,64,2,10>::Grow

-                          (this,(__uint64)param_2,uVar9,uVar12,(void **)this), -1 < (int)uVar4)) {

-      *(undefined4 *)(*(longlong *)this + (ulonglong)*(uint *)(unaff_RBX + 0xc60) * 4) = 0x3f800000;

-      *(int *)(unaff_RBX + 0xc60) = *(int *)(unaff_RBX + 0xc60) + 1;

-      uVar9 = *(uint *)(unaff_RBX + 0xc6c);

-      if (*(uint *)(unaff_RBX + 0xc6c) <= *(uint *)(unaff_RBX + 0xc60)) {

-        uVar9 = *(uint *)(unaff_RBX + 0xc60);

-      }

-      *(uint *)(unaff_RBX + 0xc6c) = uVar9;

-      lVar5 = CDrawListEntryBuilder::Render(unaff_RSI,unaff_RBX);

-      if (lVar5 < 0) {

-        MilInstrumentationCheckHR_MaybeFailFast(0x14,(long *)0x0,0,lVar5,0x386,unaff_R13);

-      }

-      if (*(int *)(unaff_RBX + 0xc60) != 0) {

-        *(int *)(unaff_RBX + 0xc60) = *(int *)(unaff_RBX + 0xc60) + -1;

-      }

-      goto LAB_1;

-    }

-    wil::details::in1diag3::Return_Hr

-              (*(void **)(unaff_RBP + 0x2f8),0x83,

-               "onecoreuap\\windows\\DWM\\dwmcore\\common\\WatermarkStack.inl",uVar4);

-    uVar9 = 899;

+    if (!bVar9) {

+      VertexTransfer::

+      Transfer<VertexTransfer::CScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,0,Vertex_UVxN<VertexXYW_ColorDW>_>

+                (param_1,param_3);

+      DAT_8 = DAT_8 + *(int *)(param_1 + 0x14);

+      return;

+    }

+    uVar31 = 0;

+    fVar39 = *(float *)(param_3 + 4);

+    fVar47 = *(float *)(param_3 + 0x10);

+    uVar29 = *(uint *)(param_1 + 0x14);

+    uVar40 = *(undefined8 *)(param_3 + 0x30);

+    uVar18 = (ulonglong)(*(uint *)(param_1 + 0x28) >> 1);

+    if (uVar29 != 0) {

+      do {

+        iVar24 = uVar31 + 1;

+        fVar48 = 1.0;

+        pfVar19 = (float *)((longlong)(int)(*(int *)(param_1 + 0x10) * uVar31) +

+                           *(longlong *)(param_1 + 8));

+        pfVar22 = (float *)((longlong)(iVar24 * *(int *)(param_1 + 0x10)) +

+                           *(longlong *)(param_1 + 8));

+        puVar21 = (undefined8 *)

+                  ((longlong)(*(int *)(param_1 + 0x40) * iVar24) + *(longlong *)(param_1 + 0x38));

+        puVar30 = (undefined8 *)

+                  ((longlong)(int)(*(int *)(param_1 + 0x40) * uVar31) +

+                  *(longlong *)(param_1 + 0x38));

+        pfVar25 = (float *)((longlong)(*(int *)(param_1 + 0x20) * iVar24) +

+                           *(longlong *)(param_1 + 0x18));

+        pfVar27 = (float *)((longlong)(int)(*(int *)(param_1 + 0x20) * uVar31) +

+                           *(longlong *)(param_1 + 0x18));

+        fVar42 = *pfVar27;

+        fVar45 = pfVar27[1];

+        fVar46 = pfVar27[2];

+        uVar10 = DirectX::XMVectorPermute<0,1,6,7>(*pfVar19);

+        fVar33 = extraout_XMM0_Da - fVar42;

+        fVar35 = extraout_XMM0_Db - fVar45;

+        fVar41 = fVar35 * fVar47 + fVar33 * fVar36;

+        fVar43 = fVar35 * fVar44 + fVar33 * fVar39;

+        auVar5._4_4_ = -(uint)(fVar43 == 0.0);

+        auVar5._0_4_ = -(uint)(fVar41 == 0.0);

+        auVar5._8_4_ = -(uint)(fVar35 * fVar47 + fVar33 * fVar36 == 0.0);

+        auVar5._12_4_ = -(uint)(fVar35 * fVar44 + fVar33 * fVar39 == 0.0);

+        uVar10 = movmskps(uVar10,auVar5);

+        fVar33 = fVar48;

+        if (((byte)uVar10 & 3) != 3) {

+          fVar33 = (fVar48 / SQRT(fVar41 * fVar41 + fVar43 * fVar43)) * fVar46;

+        }

+        DirectX::MathInternal::PermuteHelper<228,0,0,0,1>::Permute(fVar48);

+        uVar34 = DirectX::XMVectorPermute<0,1,6,7>

+                           (fVar45 * fVar47 + (float)uVar40 + fVar42 * fVar36 + fVar33 * fVar41);

+        *puVar30 = uVar34;

+        *(undefined4 *)(puVar30 + 1) = extraout_XMM0_Dc;

+        *(undefined4 *)((longlong)puVar30 + 0xc) = extraout_XMM0_Dd;

+        if ((1.0 < fVar33) && (pfVar27[3] == 0.0)) {

+          fVar33 = 1.0;

+        }

+        if ((int)uVar18 != 0) {

+          uVar16 = uVar18 & 0xffffffff;

+          pfVar1 = pfVar19;

+          do {

+            pfVar11 = pfVar1 + 4;

+            fVar42 = pfVar1[5];

+            fVar45 = pfVar1[6];

+            fVar46 = pfVar1[7];

+            pfVar1 = (float *)(((longlong)pfVar27 - (longlong)pfVar19) + (longlong)pfVar11);

+            fVar48 = pfVar1[1];

+            fVar35 = pfVar1[2];

+            fVar41 = pfVar1[3];

+            pfVar12 = (float *)(((longlong)pfVar27 - (longlong)pfVar19) + (longlong)pfVar11);

+            fVar43 = pfVar12[1];

+            fVar7 = pfVar12[2];

+            fVar8 = pfVar12[3];

+            pfVar2 = (float *)(((longlong)puVar30 - (longlong)pfVar19) + (longlong)pfVar11);

+            *pfVar2 = (*pfVar11 - *pfVar1) * fVar33 + *pfVar12;

+            pfVar2[1] = (fVar42 - fVar48) * fVar33 + fVar43;

+            pfVar2[2] = (fVar45 - fVar35) * fVar33 + fVar7;

+            pfVar2[3] = (fVar46 - fVar41) * fVar33 + fVar8;

+            uVar16 = uVar16 - 1;

+            pfVar1 = pfVar11;

+          } while (uVar16 != 0);

+        }

+        fVar48 = 1.0;

+        fVar42 = *pfVar25;

+        fVar45 = pfVar25[1];

+        fVar46 = pfVar25[2];

+        uVar10 = DirectX::XMVectorPermute<0,1,6,7>(*pfVar22);

+        fVar33 = extraout_XMM0_Da_00 - fVar42;

+        fVar35 = extraout_XMM0_Db_00 - fVar45;

+        fVar41 = fVar35 * fVar47 + fVar33 * fVar36;

+        fVar43 = fVar35 * fVar44 + fVar33 * fVar39;

+        auVar6._4_4_ = -(uint)(fVar43 == 0.0);

+        auVar6._0_4_ = -(uint)(fVar41 == 0.0);

+        auVar6._8_4_ = -(uint)(fVar35 * fVar47 + fVar33 * fVar36 == 0.0);

+        auVar6._12_4_ = -(uint)(fVar35 * fVar44 + fVar33 * fVar39 == 0.0);

+        uVar10 = movmskps(uVar10,auVar6);

+        fVar33 = fVar48;

+        if (((byte)uVar10 & 3) != 3) {

+          fVar33 = fVar46 * (fVar48 / SQRT(fVar41 * fVar41 + fVar43 * fVar43));

+        }

+        DirectX::MathInternal::PermuteHelper<228,0,0,0,1>::Permute(fVar48);

+        uVar34 = DirectX::XMVectorPermute<0,1,6,7>

+                           (fVar45 * fVar47 + (float)uVar40 + fVar42 * fVar36 + fVar33 * fVar41);

+        *puVar21 = uVar34;

+        *(undefined4 *)(puVar21 + 1) = extraout_XMM0_Dc_00;

+        *(undefined4 *)((longlong)puVar21 + 0xc) = extraout_XMM0_Dd_00;

+        if ((1.0 < fVar33) && (pfVar25[3] == 0.0)) {

+          fVar33 = 1.0;

+        }

+        if ((int)uVar18 != 0) {

+          uVar16 = uVar18 & 0xffffffff;

+          pfVar19 = pfVar22;

+          do {

+            pfVar12 = pfVar19 + 4;

+            fVar42 = pfVar19[5];

+            fVar45 = pfVar19[6];

+            fVar46 = pfVar19[7];

+            pfVar19 = (float *)(((longlong)pfVar25 - (longlong)pfVar22) + (longlong)pfVar12);

+            fVar48 = pfVar19[1];

+            fVar35 = pfVar19[2];

+            fVar41 = pfVar19[3];

+            pfVar27 = (float *)(((longlong)pfVar25 - (longlong)pfVar22) + (longlong)pfVar12);

+            fVar43 = pfVar27[1];

+            fVar7 = pfVar27[2];

+            fVar8 = pfVar27[3];

+            pfVar1 = (float *)(((longlong)puVar21 - (longlong)pfVar22) + (longlong)pfVar12);

+            *pfVar1 = (*pfVar12 - *pfVar19) * fVar33 + *pfVar27;

+            pfVar1[1] = (fVar42 - fVar48) * fVar33 + fVar43;

+            pfVar1[2] = (fVar45 - fVar35) * fVar33 + fVar7;

+            pfVar1[3] = (fVar46 - fVar41) * fVar33 + fVar8;

+            uVar16 = uVar16 - 1;

+            pfVar19 = pfVar12;

+          } while (uVar16 != 0);

+        }

+        uVar31 = uVar31 + 2;

+      } while (uVar31 < uVar29);

+    }

   }

-  MilInstrumentationCheckHR_MaybeFailFast(0x14,(long *)0x0,0,uVar4,uVar9,unaff_R13);

-LAB_1:

-  plVar1 = *(longlong **)(unaff_RSI + 0x78);

-  for (plVar10 = *(longlong **)(unaff_RSI + 0x70); plVar10 != plVar1; plVar10 = plVar10 + 1) {

-    if ((longlong *)*plVar10 != (longlong *)0x0) {

-      (**(code **)(*(longlong *)*plVar10 + 8))();

-      *plVar10 = (longlong)unaff_R13;

-    }

-  }

-  lVar7 = *(longlong *)(unaff_RSI + 0x78) - *(longlong *)(unaff_RSI + 0x70) >> 3;

-  if (lVar7 != 0) {

-    *(longlong *)(unaff_RSI + 0x78) = *(longlong *)(unaff_RSI + 0x78) + lVar7 * -8;

-  }

-  unaff_RSI[0x1188] = (CDrawListEntryBuilder)0x0;

-  plVar10 = *(longlong **)(unaff_RSI + 0x50);

-  *(long **)(unaff_RSI + 0x50) = unaff_R13;

-  if (plVar10 != (longlong *)0x0) {

-    (**(code **)(*plVar10 + 8))();

-  }

-  plVar10 = *(longlong **)(unaff_RSI + 0x58);

-  *(long **)(unaff_RSI + 0x58) = unaff_R13;

-  if (plVar10 != (longlong *)0x0) {

-    (**(code **)(*plVar10 + 8))();

-  }

-  plVar10 = *(longlong **)(unaff_RSI + 0x60);

-  *(long **)(unaff_RSI + 0x60) = unaff_R13;

-  if (plVar10 != (longlong *)0x0) {

-    (**(code **)(*plVar10 + 8))();

-  }

-  plVar10 = *(longlong **)(unaff_RSI + 0x68);

-  *(long **)(unaff_RSI + 0x68) = unaff_R13;

-  if (plVar10 != (longlong *)0x0) {

-    (**(code **)(*plVar10 + 8))();

-  }

-  if (unaff_RDI != (CMultiPrimitiveDrawListBrush *)0x0) {

-    CMultiPrimitiveDrawListBrush::_vector_deleting_destructor_(unaff_RDI,1);

-  }

-  uVar11 = (ulonglong)unaff_R13 & 0xffffffff;

-  *(undefined4 *)(unaff_RBP + 0x1f8) = 0x3f800000;

-  *(undefined4 *)(unaff_RBP + 0x1fc) = 0x3f800000;

-  *(undefined4 *)(unaff_RBP + 0x200) = 0x3f800000;

-  *(undefined4 *)(unaff_RBP + 0x204) = 0x3f800000;

-  *(uint *)(unaff_RBP + 500) = uVar14;

-  if (*(int *)(unaff_RBP + 0x1e8) != 0) {

-    do {

-      this_00 = *(CSurfaceDrawListBrush **)(unaff_RBP + 0x1c8 + uVar11 * 8);

-      *(long **)(unaff_RBP + 0x1c8 + uVar11 * 8) = unaff_R13;

-      if (this_00 != (CSurfaceDrawListBrush *)0x0) {

-        pcVar2 = (code *)**(undefined8 **)this_00;

-        if (pcVar2 == unaff_R12) {

-          CMultiPrimitiveDrawListBrush::_vector_deleting_destructor_

-                    ((CMultiPrimitiveDrawListBrush *)this_00,1);

-        }

-        else if (pcVar2 == CSurfaceDrawListBrush::_vector_deleting_destructor_) {

-          CSurfaceDrawListBrush::_vector_deleting_destructor_(this_00,1);

-        }

-        else if (pcVar2 == CDrawListPrimitive0::_scalar_deleting_destructor_) {

-          CDrawListPrimitive0::_scalar_deleting_destructor_((CDrawListPrimitive0 *)this_00,1);

-        }

-        else {

-          (*pcVar2)();

-        }

-      }

-      uVar9 = (int)uVar11 + 1;

-      uVar11 = (ulonglong)uVar9;

-    } while (uVar9 < *(uint *)(unaff_RBP + 0x1e8));

-  }

-  *(uint *)(unaff_RBP + 0x1e8) = uVar14;

-  func_0x0001801563d0(unaff_RBP + 0x1e0);

-  func_0x0001801563d0(unaff_RBP + 0x1d8);

-  func_0x0001801563d0(unaff_RBP + 0x1d0);

-  func_0x0001801563d0(unaff_RBP + 0x1c8);

+  DAT_8 = DAT_8 + *(int *)(param_1 + 0x14);

   return;

 }
```

## `FUN_1802f3d86`  (modified)

```diff
--- FUN_1802f3d86
+++ FUN_1802f1398
@@ -1,48 +1,48 @@
 

-/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

-   guard_dispatch_icall */

-/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* PDB: Separated code (from the compiler): 1802f1398 - 1802f142d for parent address: 1801e5180 */

 

-int FUN_1802f3d86(longlong *param_1)

+void FUN_1802f1398(void)

 

 {

-  int iVar1;

-  longlong in_RAX;

-  longlong unaff_RBP;

-  void *unaff_RSI;

+  uint uVar1;

+  uint uVar2;

+  uint *unaff_RBX;

+  uint unaff_ESI;

+  wil_details_FeatureStateCache *unaff_RDI;

+  uint uVar3;

+  bool bVar4;

+  int in_stack_00000038;

+  uint in_stack_00000040;

   

-  *(char *)(in_RAX + -0x77) = *(char *)(in_RAX + -0x77) + (char)param_1;

-  if (param_1 != (longlong *)0x0) {

-    (**(code **)(*param_1 + 0x10))();

+  uVar1 = *unaff_RBX;

+  do {

+    uVar3 = uVar1;

+    uVar2 = uVar3 | 0x40000;

+    *unaff_RBX = uVar2;

+    if ((in_stack_00000038 != 0) && ((uVar3 & 2) == 0)) {

+      uVar2 = uVar3 & 0xfffff63e | 0x40000 | in_stack_00000040 & 0x9c1 | 2;

+      *unaff_RBX = uVar2;

+    }

+    if ((uVar3 & 4) == 0) {

+      uVar2 = uVar2 & 0xfffffbff | in_stack_00000040 & 0x400 | 4;

+      *unaff_RBX = uVar2;

+    }

+    LOCK();

+    uVar1 = *(uint *)unaff_RDI;

+    bVar4 = uVar3 == uVar1;

+    if (bVar4) {

+      *(uint *)unaff_RDI = uVar2;

+      uVar1 = uVar3;

+    }

+    UNLOCK();

+  } while (!bVar4);

+  if ((uVar3 & 4) == 0) {

+    wil::details::EnabledStateManager::SubscribeFeatureStateCacheToConfigurationChanges

+              ((EnabledStateManager *)&wil::details::g_enabledStateManager,unaff_RDI,0,unaff_ESI);

   }

-  iVar1 = RoGetActivationFactory(*(undefined8 *)(unaff_RBP + -0x29));

-  if (iVar1 < 0) {

-    MilInstrumentationCheckHR_MaybeFailFast(0x14,(long *)0x0,0,iVar1,0x6e,unaff_RSI);

+  if ((*unaff_RBX & 2) == 0) {

+    *unaff_RBX = *unaff_RBX & 0xfffff63e | in_stack_00000040 & 0x9c1;

   }

-  wil::details::

-  unique_storage<wil::details::resource_policy<HSTRING__*___ptr64,long_(__cdecl*)(HSTRING__*___ptr64),&long___cdecl_WindowsDeleteString(struct_HSTRING__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HSTRING__*___ptr64,HSTRING__*___ptr64,0,std::nullptr_t>_>

-  ::

-  ~unique_storage<wil::details::resource_policy<HSTRING__*___ptr64,long_(__cdecl*)(HSTRING__*___ptr64),&long___cdecl_WindowsDeleteString(struct_HSTRING__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HSTRING__*___ptr64,HSTRING__*___ptr64,0,std::nullptr_t>_>

-            ((unique_storage<wil::details::resource_policy<HSTRING__*___ptr64,long_(__cdecl*)(HSTRING__*___ptr64),&long___cdecl_WindowsDeleteString(struct_HSTRING__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HSTRING__*___ptr64,HSTRING__*___ptr64,0,std::nullptr_t>_>

-              *)(unaff_RBP + -0x29));

-  wil::details::

-  unique_storage<wil::details::resource_policy<HSTRING__*___ptr64,long_(__cdecl*)(HSTRING__*___ptr64),&long___cdecl_WindowsDeleteString(struct_HSTRING__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HSTRING__*___ptr64,HSTRING__*___ptr64,0,std::nullptr_t>_>

-  ::

-  ~unique_storage<wil::details::resource_policy<HSTRING__*___ptr64,long_(__cdecl*)(HSTRING__*___ptr64),&long___cdecl_WindowsDeleteString(struct_HSTRING__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HSTRING__*___ptr64,HSTRING__*___ptr64,0,std::nullptr_t>_>

-            ((unique_storage<wil::details::resource_policy<HSTRING__*___ptr64,long_(__cdecl*)(HSTRING__*___ptr64),&long___cdecl_WindowsDeleteString(struct_HSTRING__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HSTRING__*___ptr64,HSTRING__*___ptr64,0,std::nullptr_t>_>

-              *)(unaff_RBP + -0x21));

-  wil::details::

-  unique_storage<wil::details::resource_policy<HSTRING__*___ptr64,long_(__cdecl*)(HSTRING__*___ptr64),&long___cdecl_WindowsDeleteString(struct_HSTRING__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HSTRING__*___ptr64,HSTRING__*___ptr64,0,std::nullptr_t>_>

-  ::

-  ~unique_storage<wil::details::resource_policy<HSTRING__*___ptr64,long_(__cdecl*)(HSTRING__*___ptr64),&long___cdecl_WindowsDeleteString(struct_HSTRING__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HSTRING__*___ptr64,HSTRING__*___ptr64,0,std::nullptr_t>_>

-            ((unique_storage<wil::details::resource_policy<HSTRING__*___ptr64,long_(__cdecl*)(HSTRING__*___ptr64),&long___cdecl_WindowsDeleteString(struct_HSTRING__*___ptr64),wistd::integral_constant<unsigned___int64,0>,HSTRING__*___ptr64,HSTRING__*___ptr64,0,std::nullptr_t>_>

-              *)(unaff_RBP + -0x11));

-  wil::

-  com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

-  ::

-  ~com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

-            ((com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

-              *)(unaff_RBP + -0x19));

-  return iVar1;

+  return;

 }
```

## `FUN_1802e909c`  (modified)

```diff
--- FUN_1802e909c
+++ FUN_1802e60fe
@@ -1,53 +1,133 @@
 

-void FUN_1802e909c(uint param_1)

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* PDB: Separated code (from the compiler): 1802e60fe - 1802e6187 for parent address: 1800b796c */

+

+byte FUN_1802e60fe(shutdown_aware_object<wil::details::EnabledStateManager> *param_1,

+                  undefined8 param_2,undefined8 param_3,char *param_4)

 

 {

-  char *pcVar1;

-  char cVar2;

-  char *in_RAX;

-  __uint64 _Var3;

-  void *pvVar4;

-  longlong *plVar5;

-  longlong unaff_RBX;

-  longlong unaff_RSI;

-  longlong *unaff_R14;

-  undefined8 uStackX_20;

-  undefined4 in_stack_00000040;

-  undefined4 uStack0000000000000044;

-  undefined4 in_stack_00000048;

-  undefined4 uStack000000000000004c;

-  undefined8 in_stack_00000050;

+  undefined8 uVar1;

+  int iVar2;

+  int iVar3;

+  int *piVar4;

+  undefined8 *puVar5;

+  uint uVar6;

+  uint uVar7;

+  uint uVar8;

+  byte bVar9;

+  uint unaff_EBX;

+  uint uVar10;

+  longlong unaff_RBP;

+  uint unaff_ESI;

+  wil_details_FeatureStateCache *unaff_RDI;

+  wil_VariantReportingKind *unaff_R12;

+  longlong unaff_R14;

+  bool bVar11;

+  uint uVar12;

   

-  *in_RAX = *in_RAX + (char)in_RAX;

-  pcVar1 = in_RAX + -9;

-  cVar2 = *pcVar1;

-  *pcVar1 = *pcVar1 + (char)param_1;

-  out(0x48,(char)in_RAX);

-  _Var3 = (ulonglong)in_RAX & 0xffffffff;

-  if (SCARRY1(cVar2,(char)param_1)) {

-    _Var3 = (__uint64)param_1;

+  do {

+    uVar8 = unaff_EBX;

+    uVar10 = uVar8 | 0x40000;

+    uVar6 = (uint)*(undefined8 *)(unaff_RBP + 0x7f);

+    if ((*(int *)(unaff_RBP + 0x67) != (int)unaff_R12) && ((uVar8 & 2) == 0)) {

+      uVar10 = uVar6 & 0x9c1;

+      param_1 = (shutdown_aware_object<wil::details::EnabledStateManager> *)(ulonglong)uVar10;

+      uVar10 = uVar8 & 0xfffff63e | 0x40000 | uVar10 | 2;

+    }

+    if ((uVar8 & 4) == 0) {

+      param_1 = (shutdown_aware_object<wil::details::EnabledStateManager> *)

+                (ulonglong)(uVar10 & 0xfffffbff);

+      uVar10 = uVar6 & 0x400 | uVar10 & 0xfffffbff | 4;

+    }

+    LOCK();

+    unaff_EBX = *(uint *)unaff_RDI;

+    bVar11 = uVar8 == unaff_EBX;

+    if (bVar11) {

+      *(uint *)unaff_RDI = uVar10;

+      unaff_EBX = uVar8;

+    }

+    UNLOCK();

+  } while (!bVar11);

+  if ((uVar8 & 4) == 0) {

+    param_4 = (char *)(ulonglong)unaff_ESI;

+    param_1 = &wil::details::g_enabledStateManager;

+    wil::details::EnabledStateManager::SubscribeFeatureStateCacheToConfigurationChanges

+              ((EnabledStateManager *)&wil::details::g_enabledStateManager,unaff_RDI,0,unaff_ESI);

   }

-  pvVar4 = operator_new__(_Var3);

-  uStackX_20._0_4_ = SUB84(pvVar4,0);

-  uStackX_20._4_4_ = (undefined4)((ulonglong)pvVar4 >> 0x20);

-  in_stack_00000048 = (undefined4)unaff_RBX;

-  uStack000000000000004c = (undefined4)((ulonglong)unaff_RBX >> 0x20);

-  in_stack_00000040 = (undefined4)uStackX_20;

-  uStack0000000000000044 = uStackX_20._4_4_;

-  in_stack_00000050 = 0;

-  uStackX_20 = pvVar4;

-  std::

-  uninitialized_move<std::move_iterator<CVisualTree_const*___ptr64*___ptr64>,stdext::checked_array_iterator<CVisualTree_const*___ptr64*___ptr64>_>

-            (&uStackX_20,*unaff_R14,unaff_R14[1],&stack0x00000040);

-  plVar5 = (longlong *)*unaff_R14;

-  *unaff_R14 = (longlong)pvVar4;

-  if (plVar5 == unaff_R14 + 3) {

-    plVar5 = (longlong *)0x0;

+  if ((uVar10 & 2) == 0) {

+    uVar10 = *(uint *)(unaff_RBP + 0x7f) & 0x9c1;

+    param_1 = (shutdown_aware_object<wil::details::EnabledStateManager> *)(ulonglong)uVar10;

   }

-  ___V_YAXPEAX_Z(plVar5);

-  unaff_R14[2] = *unaff_R14 + unaff_RSI * 8;

-  unaff_R14[1] = *unaff_R14 + unaff_RBX * 8;

-  FUN_18011b15d();

-  return;

+  bVar9 = (byte)uVar10 & 1;

+  uVar6 = Feature_DWMResourceUsageS0__private_cppFeatureState;

+  if ((Feature_DWMResourceUsageS0__private_cppFeatureState & 4) == 0) {

+    puVar5 = (undefined8 *)

+             wil::details::FeatureImpl<__WilFeatureTraits_Feature_DWMResourceUsageS0>::

+             GetCachedFeatureEnabledState

+                       ((FeatureImpl<__WilFeatureTraits_Feature_DWMResourceUsageS0> *)param_1);

+    uVar1 = *puVar5;

+    *(undefined8 *)(unaff_RBP + 0x67) = uVar1;

+    uVar6 = (uint)uVar1;

+  }

+  *(int *)(unaff_RBP + 0x77) = (int)unaff_R12;

+  *(undefined2 *)(unaff_RBP + 0x7b) = 2;

+  *(undefined4 *)(unaff_RBP + 0x6f) = 3;

+  uVar8 = (bVar9 ^ 1) * 4 + 2;

+  piVar4 = (int *)wil_details_FeatureReporting_RecordUsageInCache

+                            (unaff_RBP + -1,(wil_details_FeatureReportingCache *)(unaff_R14 + 8),

+                             uVar8);

+  iVar2 = *piVar4;

+  uVar7 = piVar4[1];

+  uVar12 = piVar4[2];

+  iVar3 = piVar4[3];

+  uVar1 = *(undefined8 *)(piVar4 + 4);

+  *(int *)(unaff_RBP + -0x29) = iVar2;

+  *(uint *)(unaff_RBP + -0x25) = uVar7;

+  *(uint *)(unaff_RBP + -0x21) = uVar12;

+  *(int *)(unaff_RBP + -0x1d) = iVar3;

+  *(undefined8 *)(unaff_RBP + -9) = uVar1;

+  if (iVar2 != 0) {

+    wil::details::EnabledStateManager::QueueBackgroundUsageReporting

+              ((EnabledStateManager *)&wil::details::g_enabledStateManager,0x2fbb714,

+               (wil_details_FeatureReportingCache *)(unaff_R14 + 8));

+    uVar7 = *(uint *)(unaff_RBP + -0x25);

+    uVar12 = *(uint *)(unaff_RBP + -0x21);

+  }

+  if (uVar7 != 0) {

+    wil::details::WilApi_RecordFeatureUsage(0x2fbb714,uVar12,uVar7,param_4);

+  }

+  iVar2 = *(int *)(unaff_RBP + -9);

+  if (iVar2 == 0) {

+    wil::details::EnabledStateManager::EnsureSubscribedToUsageFlush

+              ((EnabledStateManager *)&wil::details::g_enabledStateManager,

+               <lambda_aa194dc0bf891154933407eb98fb868a>::<lambda_invoker_cdecl>);

+  }

+  if ((uVar6 >> 10 & 1) != 0) {

+    uVar7 = uVar8;

+    if ((uVar6 >> 0xb & 1) != 0) {

+      uVar7 = uVar8 | 0x80000000;

+    }

+    wil::details::WilApi_RecordFeatureUsage(0x2fbb714,uVar7,0,param_4);

+  }

+  if (iVar2 == 0) {

+    if (g_wil_details_realtimeFeatureUsageHook != (code *)0x0) {

+      (*g_wil_details_realtimeFeatureUsageHook)(0x2fbb714,uVar8);

+    }

+    if (g_wil_details_pfnFeatureLoggingHook != (code *)0x0) {

+      if (g_wil_details_pfnFeatureLoggingHook == wil::details::FeatureLoggingHook) {

+        wil::details::FeatureLoggingHook

+                  (0x2fbb714,(FEATURE_LOGGED_TRAITS *)(unaff_RBP + 0x77),(FEATURE_ERROR *)0x0,

+                   (uint)bVar9,(wil_ReportingKind *)(unaff_RBP + 0x6f),unaff_R12,(uchar)unaff_R12,1)

+        ;

+      }

+      else {

+        (*g_wil_details_pfnFeatureLoggingHook)

+                  (0x2fbb714,(FEATURE_LOGGED_TRAITS *)(unaff_RBP + 0x77),0,(uint)bVar9,

+                   unaff_RBP + 0x6f);

+      }

+    }

+  }

+  return (byte)uVar10 & 1;

 }
```

## `CCompositionMagnifierBrush::GetBackdropSourceRect`  (modified)

```diff
--- CCompositionMagnifierBrush::GetBackdropSourceRect
+++ CCompositionMagnifierBrush::GetBackdropSourceRect
@@ -1,2 +1,120 @@
-Failed to decompile dwmcore.dll - .ProgramDB CCompositionMagnifierBrush::GetBackdropSourceRect : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* public: class TMilRect_<float,struct D2D_RECT_F,struct D3D_RECT_F,struct

+   D2D_POINTANDSIZE_F,struct RectUniqueness::NotNeeded> __cdecl

+   CCompositionMagnifierBrush::GetBackdropSourceRect(class CVisualTree const * __ptr64,class

+   TMilRect_<float,struct D2D_RECT_F,struct D3D_RECT_F,struct D2D_POINTANDSIZE_F,struct

+   RectUniqueness::NotNeeded> const & __ptr64)const __ptr64 */

+

+CVisualTree * __thiscall

+CCompositionMagnifierBrush::GetBackdropSourceRect

+          (CCompositionMagnifierBrush *this,CVisualTree *param_1,

+          TMilRect_<float,struct_D2D_RECT_F,struct_D3D_RECT_F,struct_D2D_POINTANDSIZE_F,struct_RectUniqueness::NotNeeded>

+          *param_2)

+

+{

+  float fVar1;

+  float fVar2;

+  float fVar3;

+  float fVar4;

+  longlong lVar5;

+  uint uVar6;

+  char cVar7;

+  bool bVar8;

+  CVisualTree *pCVar9;

+  CVisual *pCVar10;

+  undefined8 uVar11;

+  D2D_POINT_2F *pDVar12;

+  CExcludeVisualReference *this_00;

+  float *in_R9;

+  CExcludeVisualReference *pCVar13;

+  float fVar14;

+  float fVar15;

+  undefined4 uVar16;

+  undefined4 uVar17;

+  float local_res8;

+  float fStackX_c;

+  undefined4 local_res20;

+  undefined4 local_res24;

+  undefined8 local_b8;

+  uint local_b0;

+  longlong local_a8;

+  uint local_a0;

+  undefined4 uStack_9c;

+  

+  fVar1 = in_R9[2];

+  fVar2 = *in_R9;

+  fVar3 = in_R9[3];

+  fVar4 = in_R9[1];

+  fVar14 = (fVar1 - fVar2) / *(float *)(this + 0x68);

+  fVar15 = (fVar3 - fVar4) / *(float *)(this + 0x68);

+  _local_res8 = CONCAT44(fVar15,fVar14);

+  if (this[200] == (CCompositionMagnifierBrush)0x0) {

+    if (this[0xcc] != (CCompositionMagnifierBrush)0x0) {

+      CComposition::GetCursorVisuals(*(CComposition **)(this + 0x18));

+      pCVar9 = CVisualTree::GetRootVisualTree((CVisualTree *)param_2);

+      this_00 = (CExcludeVisualReference *)CONCAT44(uStack_9c,local_a0);

+      pCVar13 = this_00 + local_a8 * 0x20;

+      if (this_00 != pCVar13) {

+        uVar16 = (undefined4)local_a8;

+        uVar17 = (undefined4)((ulonglong)local_a8 >> 0x20);

+        do {

+          pCVar10 = CExcludeVisualReference::GetVisualNoRef(this_00);

+          local_b0 = local_b0 & 0xffffff00;

+          cVar7 = (**(code **)(*(longlong *)pCVar10 + 0x40))(pCVar10,0x32);

+          if (cVar7 == '\0') {

+            if (((*(uint *)(pCVar10 + 0x60) & 0x100) != 0) &&

+               (bVar8 = CVisualTree::_IsInTree(pCVar9,pCVar10,0), bVar8)) {

+              if (pCVar10 == *(CVisual **)(pCVar9 + 0x48)) {

+                pCVar9 = pCVar9 + 0x50;

+              }

+              else {

+                pCVar9 = (CVisualTree *)(pCVar10 + 0x98);

+              }

+              local_b8 = *(undefined8 *)pCVar9;

+              local_b0 = CONCAT31(local_b0._1_3_,1);

+              goto LAB_0;

+            }

+          }

+          else {

+            lVar5 = *(longlong *)(pCVar10 + 0x2c8);

+            uVar6 = local_a0 >> 8;

+            local_a0 = local_a0 & 0xffffff00;

+            if (lVar5 != 0) {

+              uVar17 = *(undefined4 *)(lVar5 + 0xe0);

+              uVar16 = *(undefined4 *)(lVar5 + 0xdc);

+              local_a0 = CONCAT31((int3)uVar6,1);

+            }

+            local_b0 = local_a0;

+            local_b8 = CONCAT44(uVar17,uVar16);

+            if (lVar5 != 0) {

+LAB_0:

+              pDVar12 = (D2D_POINT_2F *)&local_b8;

+              goto LAB_1;

+            }

+          }

+          this_00 = this_00 + 0x20;

+        } while (this_00 != pCVar13);

+      }

+    }

+    local_res8 = ((fVar1 - fVar2) - fVar14) * 0.5 + *in_R9;

+    fStackX_c = ((fVar3 - fVar4) - fVar15) * 0.5 + in_R9[1];

+  }

+  else {

+    local_res20 = *(undefined4 *)(this + 0xc0);

+    pDVar12 = (D2D_POINT_2F *)&local_res20;

+    local_res24 = *(undefined4 *)(this + 0xc4);

+LAB_1:

+    uVar11 = ClampMagnificationRectToClientBounds

+                       ((CVisualTree *)param_2,pDVar12,(D2D_SIZE_F *)&local_res8);

+    local_res8 = (float)uVar11;

+    fStackX_c = (float)((ulonglong)uVar11 >> 0x20);

+  }

+  *(float *)param_1 = local_res8;

+  *(float *)(param_1 + 4) = fStackX_c;

+  *(float *)(param_1 + 8) = local_res8 + fVar14;

+  *(float *)(param_1 + 0xc) = fStackX_c + fVar15;

+  return param_1;

+}

+
```

## `CRenderingBatchCommand::EmitGeometry`  (modified)

```diff
--- CRenderingBatchCommand::EmitGeometry
+++ CRenderingBatchCommand::EmitGeometry
@@ -1,2 +1,799 @@
-Failed to decompile dwmcore.dll - .ProgramDB CRenderingBatchCommand::EmitGeometry : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* public: long __cdecl CRenderingBatchCommand::EmitGeometry(class CD3DBatchExecutionContext *

+   __ptr64,bool)const __ptr64 */

+

+long __thiscall

+CRenderingBatchCommand::EmitGeometry

+          (CRenderingBatchCommand *this,CD3DBatchExecutionContext *param_1,bool param_2)

+

+{

+  CD3DBatchExecutionContext *pCVar1;

+  uint uVar2;

+  short *psVar3;

+  undefined8 *puVar4;

+  float fVar5;

+  uint uVar6;

+  longlong lVar7;

+  longlong lVar8;

+  longlong *plVar9;

+  code *pcVar10;

+  short sVar11;

+  short sVar12;

+  short sVar13;

+  short sVar14;

+  short sVar15;

+  short sVar16;

+  short sVar17;

+  float fVar18;

+  float fVar19;

+  bool bVar20;

+  float fVar21;

+  long lVar22;

+  undefined8 *puVar23;

+  undefined8 *puVar24;

+  short *psVar25;

+  undefined8 *puVar26;

+  float *pfVar27;

+  uint uVar28;

+  int iVar29;

+  uint uVar30;

+  ulonglong uVar31;

+  longlong lVar32;

+  ulonglong uVar33;

+  ulonglong uVar34;

+  short sVar35;

+  int iVar36;

+  ulonglong uVar37;

+  uint uVar38;

+  undefined8 *puVar39;

+  float *pfVar40;

+  ulonglong uVar41;

+  void *pvVar42;

+  int iVar43;

+  uint uVar44;

+  uint uVar45;

+  uint uVar46;

+  undefined8 uVar47;

+  undefined8 extraout_XMM0_Qb;

+  undefined8 extraout_XMM0_Qb_00;

+  float fVar48;

+  float fVar49;

+  float fVar50;

+  float fVar51;

+  float fVar52;

+  void *unaff_retaddr;

+  uint local_res20 [2];

+  undefined8 in_stack_fffffffffffffe08;

+  int *piVar53;

+  longlong lVar54;

+  undefined8 local_1b8;

+  longlong local_1b0;

+  int local_1a8;

+  uint local_1a4;

+  undefined8 local_1a0;

+  int local_198;

+  int local_194;

+  uint local_190;

+  float local_18c;

+  char local_188;

+  ulonglong local_180;

+  int local_178;

+  uint local_174;

+  undefined4 local_168;

+  int local_164 [3];

+  float local_158;

+  float local_154;

+  float local_150;

+  float local_14c;

+  float local_148;

+  float local_144;

+  float local_140;

+  float local_13c;

+  undefined8 local_138;

+  undefined8 uStack_130;

+  float local_128;

+  float fStack_124;

+  undefined4 uStack_120;

+  float fStack_11c;

+  undefined4 local_118;

+  ulonglong local_108;

+  undefined8 local_100;

+  longlong local_f8;

+  undefined8 local_f0;

+  undefined8 uStack_e8;

+  undefined8 local_e0;

+  undefined8 uStack_d8;

+  

+  uVar28 = (uint)((ulonglong)in_stack_fffffffffffffe08 >> 0x20);

+  if (this[0x5c] != (CRenderingBatchCommand)0x0) {

+    EmitWarpFastPathGeometry(this,param_1);

+    return 0;

+  }

+  if (*(int *)this == 4) {

+    lVar22 = CMegaRectBatchCommand::EmitGeometry((CMegaRectBatchCommand *)this,param_1);

+    return lVar22;

+  }

+  if (*(int *)this == 5) {

+    lVar22 = CCpuClipAntialiasBatchCommand::EmitGeometry

+                       ((CCpuClipAntialiasBatchCommand *)this,param_1,param_2);

+    return lVar22;

+  }

+  local_f8 = *(longlong *)(*(longlong *)(this + 8) + 0x10);

+  uVar46 = *(uint *)(local_f8 + 8);

+  if (uVar46 == 0) {

+    return 0;

+  }

+  uVar34 = *(ulonglong *)(local_f8 + 0x30);

+  uVar6 = *(uint *)(local_f8 + 0x14);

+  if ((uVar34 == 0) && ((ulonglong)uVar6 != 0)) {

+    (*(code *)`void_(__cdecl*&___ptr64___cdecl_gsl::details::get_terminate_handler(void))(void)'::

+              __l2::handler)();

+    pcVar10 = (code *)swi(3);

+    lVar22 = (*pcVar10)();

+    return lVar22;

+  }

+  lVar7 = *(longlong *)(param_1 + 0x18);

+  iVar36 = 0x30;

+  if (param_1[0x40] == (CD3DBatchExecutionContext)0x0) {

+    iVar36 = 0x10;

+  }

+  uVar2 = iVar36 + *(int *)(param_1 + 0x44) * 8;

+  if (*(uint *)(lVar7 + 0x38) < uVar2 * uVar46) {

+    CD3DBatchExecutionContext::Flush(param_1,8);

+    uVar38 = CD3DDynamicAppendBuffer::EnsureByteSpace

+                       ((CD3DDynamicAppendBuffer *)(lVar7 + 0x10),uVar2 * uVar46,false);

+    if ((int)uVar38 < 0) {

+      uVar28 = 0x1fa;

+      goto LAB_0;

+    }

+    param_1[0x49] = (CD3DBatchExecutionContext)0x1;

+  }

+  pCVar1 = param_1 + 0x10;

+  local_108 = 0;

+  if (param_1[0x49] != (CD3DBatchExecutionContext)0x0) {

+    param_1[0x49] = (CD3DBatchExecutionContext)0x0;

+    piVar53 = local_164;

+    local_164[0] = 0x30;

+    if (param_1[0x40] == (CD3DBatchExecutionContext)0x0) {

+      local_164[0] = 0x10;

+    }

+    local_168 = 0;

+    local_164[0] = local_164[0] + *(int *)(param_1 + 0x44) * 8;

+    local_100 = *(undefined8 *)(*(longlong *)(param_1 + 0x18) + 0x18);

+    (**(code **)(**(longlong **)pCVar1 + 0x90))

+              (*(longlong **)pCVar1,0,1,&local_100,piVar53,&local_168);

+    uVar28 = (uint)((ulonglong)piVar53 >> 0x20);

+  }

+  if ((*(longlong *)(lVar7 + 0x28) != 0) &&

+     ((uint)(*(int *)(lVar7 + 0x38) - *(int *)(lVar7 + 0x34)) / *(uint *)(lVar7 + 0x30) < uVar46)) {

+    *(uint *)(param_1 + 0x20) = *(uint *)(param_1 + 0x20) | 0x20;

+    lVar32 = *(longlong *)(param_1 + 0x18);

+    if (*(longlong *)(lVar32 + 0x28) != 0) {

+      plVar9 = *(longlong **)(*(longlong *)(lVar32 + 0x10) + 0x230);

+      (**(code **)(*plVar9 + 0x78))(plVar9,*(undefined8 *)(lVar32 + 0x18),0);

+      *(undefined8 *)(lVar32 + 0x28) = 0;

+      *(undefined4 *)(lVar32 + 0x30) = 0;

+      if (param_1[0x4a] == (CD3DBatchExecutionContext)0x0) {

+        plVar9 = *(longlong **)(*(longlong *)(lVar32 + 0x40) + 0x230);

+        (**(code **)(*plVar9 + 0x78))(plVar9,*(undefined8 *)(lVar32 + 0x48),0);

+        *(undefined8 *)(lVar32 + 0x58) = 0;

+        *(undefined4 *)(lVar32 + 0x60) = 0;

+        (**(code **)(**(longlong **)pCVar1 + 0x60))();

+      }

+      else {

+        (**(code **)(**(longlong **)pCVar1 + 0x68))();

+      }

+      *(int *)(param_1 + 0x80) = *(int *)(param_1 + 0x80) + 1;

+      *(undefined8 *)(param_1 + 0x58) = 0;

+      *(undefined4 *)(param_1 + 0x60) = 0;

+    }

+  }

+  if (uVar6 != 0) {

+    lVar32 = *(longlong *)(param_1 + 0x18);

+    if ((ulonglong)*(uint *)(lVar32 + 0x68) < (ulonglong)uVar6 * 2) {

+      CD3DBatchExecutionContext::Flush(param_1,0x10);

+      uVar38 = CD3DDynamicAppendBuffer::EnsureByteSpace

+                         ((CD3DDynamicAppendBuffer *)(lVar32 + 0x40),uVar6 * 2,false);

+      if (-1 < (int)uVar38) {

+        (**(code **)(**(longlong **)(param_1 + 0x10) + 0x98))();

+        goto LAB_1;

+      }

+      uVar28 = 0xbf;

+    }

+    else {

+LAB_1:

+      if (*(longlong *)(lVar32 + 0x58) != 0) {

+        if ((uint)(*(int *)(lVar32 + 0x68) - *(int *)(lVar32 + 100)) / *(uint *)(lVar32 + 0x60) <

+            uVar6) {

+          *(uint *)(param_1 + 0x20) = *(uint *)(param_1 + 0x20) | 0x40;

+          lVar8 = *(longlong *)(param_1 + 0x18);

+          if (*(longlong *)(lVar8 + 0x28) != 0) {

+            plVar9 = *(longlong **)(*(longlong *)(lVar8 + 0x10) + 0x230);

+            (**(code **)(*plVar9 + 0x78))(plVar9,*(undefined8 *)(lVar8 + 0x18),0);

+            *(undefined8 *)(lVar8 + 0x28) = 0;

+            *(undefined4 *)(lVar8 + 0x30) = 0;

+            if (param_1[0x4a] == (CD3DBatchExecutionContext)0x0) {

+              plVar9 = *(longlong **)(*(longlong *)(lVar8 + 0x40) + 0x230);

+              (**(code **)(*plVar9 + 0x78))(plVar9,*(undefined8 *)(lVar8 + 0x48),0);

+              *(undefined8 *)(lVar8 + 0x58) = 0;

+              *(undefined4 *)(lVar8 + 0x60) = 0;

+              plVar9 = *(longlong **)(param_1 + 0x10);

+              (**(code **)(*plVar9 + 0x60))

+                        (plVar9,*(undefined4 *)(param_1 + 0x5c),*(undefined4 *)(param_1 + 0x50),0);

+            }

+            else {

+              (**(code **)(**(longlong **)(param_1 + 0x10) + 0x68))();

+            }

+            *(int *)(param_1 + 0x80) = *(int *)(param_1 + 0x80) + 1;

+            *(undefined8 *)(param_1 + 0x58) = 0;

+            *(undefined4 *)(param_1 + 0x60) = 0;

+          }

+        }

+        if (*(longlong *)(lVar32 + 0x58) != 0) goto LAB_2;

+      }

+      lVar8 = *(longlong *)(lVar32 + 0x40);

+      uVar38 = uVar6;

+      if (uVar6 < 300) {

+        uVar38 = 300;

+      }

+      uVar45 = *(int *)(lVar32 + 0x68) - *(int *)(lVar32 + 100);

+      uVar44 = -*(int *)(lVar32 + 100) & 1;

+      local_f0 = 0;

+      uStack_e8 = 0;

+      uVar30 = uVar44 + uVar38 * 2;

+      if (*(int *)(lVar8 + 0x458) == 0) {

+        lVar54 = (ulonglong)uVar28 << 0x20;

+        uVar38 = (**(code **)(**(longlong **)(lVar8 + 0x230) + 0x70))

+                           (*(longlong **)(lVar8 + 0x230),*(undefined8 *)(lVar32 + 0x48),0,

+                            5 - (uint)(uVar45 < uVar30),lVar54,&local_f0);

+        uVar28 = (uint)((ulonglong)lVar54 >> 0x20);

+        if ((int)uVar38 < 0) {

+          MilInstrumentationCheckHR_MaybeFailFast(0x14,(long *)0x0,0,uVar38,0x9a0,(void *)0x0);

+        }

+      }

+      else {

+        uVar38 = 0x8898008d;

+        MilInstrumentationCheckHR_MaybeFailFast(0x14,(long *)0x0,0,-0x7767ff73,0x99a,(void *)0x0);

+      }

+      if (((*(int *)(lVar8 + 0x458) == 0) &&

+          (((uVar38 == 0x8876017c || (uVar38 == 0x8007000e)) || (uVar38 == 0x887a0005)))) &&

+         (*(int *)(lVar8 + 0x1c0) != 0)) {

+        if (uVar38 != 0x887a0005) {

+LAB_3:

+          CD2DContext::TempDisableHardwareProtection((CD2DContext *)(lVar8 + 0x10));

+          goto LAB_4;

+        }

+        iVar36 = (**(code **)(**(longlong **)(lVar8 + 0x228) + 0x138))();

+        if (iVar36 == -0x7785ffd0) {

+          if (*(int *)(lVar8 + 0x458) == 0) {

+            *(undefined4 *)(lVar8 + 0x458) = 0x887a0030;

+            CD2DContext::TempDisableHardwareProtection((CD2DContext *)(lVar8 + 0x10));

+            goto LAB_4;

+          }

+          goto LAB_3;

+        }

+        if (*(int *)(lVar8 + 0x458) == 0) {

+          *(undefined4 *)(lVar8 + 0x458) = 0x887a0005;

+        }

+LAB_5:

+        if (*(int *)(lVar8 + 0x458) == 0) goto LAB_6;

+        uVar38 = 0x8898008d;

+        pvVar42 = (void *)0x0;

+      }

+      else {

+LAB_4:

+        if ((int)uVar38 < 0) goto LAB_5;

+LAB_6:

+        pvVar42 = (void *)0x0;

+        local_res20[0] = 0;

+        bVar20 = TranslateDXGIorD3DErrorInContext(uVar38,0,(long *)local_res20);

+        if (bVar20) {

+          if (local_res20[0] == 0x8898008d) {

+            if (-1 < (int)uVar38) {

+              uVar38 = 0x8898008d;

+            }

+            if (*(int *)(lVar8 + 0x458) == (int)pvVar42) {

+              *(uint *)(lVar8 + 0x458) = uVar38;

+            }

+          }

+          uVar38 = local_res20[0];

+          if ((int)local_res20[0] < 0) {

+            MilInstrumentationCheckHR_MaybeFailFast(0x14,(long *)0x0,0,local_res20[0],0xae0,pvVar42)

+            ;

+            pvVar42 = (void *)0x0;

+          }

+        }

+        if (-1 < (int)uVar38) {

+          *(undefined8 *)(lVar32 + 0x58) = local_f0;

+          *(undefined4 *)(lVar32 + 0x60) = 2;

+          if (uVar45 < uVar30) {

+            *(int *)(lVar32 + 100) = (int)pvVar42;

+          }

+          else {

+            *(int *)(lVar32 + 100) = *(int *)(lVar32 + 100) + uVar44;

+          }

+          *(uint *)(param_1 + 0x50) = *(uint *)(lVar32 + 100) / *(uint *)(lVar32 + 0x60);

+          goto LAB_2;

+        }

+      }

+      MilInstrumentationCheckHR_MaybeFailFast(0x14,(long *)0x0,0,uVar38,0x6c,pvVar42);

+      uVar28 = 0xcb;

+    }

+    MilInstrumentationCheckHR_MaybeFailFast(0x14,(long *)0x0,0,uVar38,uVar28,(void *)0x0);

+    uVar28 = 0x211;

+    goto LAB_0;

+  }

+LAB_2:

+  if (*(longlong *)(lVar7 + 0x28) != 0) goto LAB_7;

+  lVar32 = *(longlong *)(lVar7 + 0x10);

+  uVar38 = uVar46;

+  if (uVar46 < 100) {

+    uVar38 = 100;

+  }

+  uVar44 = *(int *)(lVar7 + 0x38) - *(int *)(lVar7 + 0x34);

+  uVar30 = (uVar2 - *(uint *)(lVar7 + 0x34) % uVar2) % uVar2;

+  local_e0 = 0;

+  uStack_d8 = 0;

+  uVar45 = uVar2 * uVar38 + uVar30;

+  if (*(int *)(lVar32 + 0x458) == 0) {

+    uVar38 = (**(code **)(**(longlong **)(lVar32 + 0x230) + 0x70))

+                       (*(longlong **)(lVar32 + 0x230),*(undefined8 *)(lVar7 + 0x18),0,

+                        5 - (uint)(uVar44 < uVar45),(ulonglong)uVar28 << 0x20,&local_e0);

+    if ((int)uVar38 < 0) {

+      MilInstrumentationCheckHR_MaybeFailFast(0x14,(long *)0x0,0,uVar38,0x9a0,(void *)0x0);

+    }

+  }

+  else {

+    uVar38 = 0x8898008d;

+    MilInstrumentationCheckHR_MaybeFailFast(0x14,(long *)0x0,0,-0x7767ff73,0x99a,(void *)0x0);

+  }

+  if (((*(int *)(lVar32 + 0x458) == 0) &&

+      (((uVar38 == 0x8876017c || (uVar38 == 0x8007000e)) || (uVar38 == 0x887a0005)))) &&

+     (*(int *)(lVar32 + 0x1c0) != 0)) {

+    if (uVar38 != 0x887a0005) {

+LAB_8:

+      CD2DContext::TempDisableHardwareProtection((CD2DContext *)(lVar32 + 0x10));

+      goto LAB_9;

+    }

+    iVar36 = (**(code **)(**(longlong **)(lVar32 + 0x228) + 0x138))();

+    if (iVar36 == -0x7785ffd0) {

+      if (*(int *)(lVar32 + 0x458) == 0) {

+        *(undefined4 *)(lVar32 + 0x458) = 0x887a0030;

+        CD2DContext::TempDisableHardwareProtection((CD2DContext *)(lVar32 + 0x10));

+        goto LAB_9;

+      }

+      goto LAB_8;

+    }

+    if (*(int *)(lVar32 + 0x458) == 0) {

+      *(undefined4 *)(lVar32 + 0x458) = 0x887a0005;

+    }

+LAB_10:

+    if (*(int *)(lVar32 + 0x458) == 0) goto LAB_11;

+    uVar38 = 0x8898008d;

+  }

+  else {

+LAB_9:

+    if ((int)uVar38 < 0) goto LAB_10;

+LAB_11:

+    local_res20[0] = 0;

+    bVar20 = TranslateDXGIorD3DErrorInContext(uVar38,0,(long *)local_res20);

+    if (bVar20) {

+      if (local_res20[0] == 0x8898008d) {

+        if (-1 < (int)uVar38) {

+          uVar38 = 0x8898008d;

+        }

+        if (*(int *)(lVar32 + 0x458) == 0) {

+          *(uint *)(lVar32 + 0x458) = uVar38;

+        }

+      }

+      uVar38 = local_res20[0];

+      if ((int)local_res20[0] < 0) {

+        MilInstrumentationCheckHR_MaybeFailFast(0x14,(long *)0x0,0,local_res20[0],0xae0,(void *)0x0)

+        ;

+      }

+    }

+    if (-1 < (int)uVar38) {

+      *(uint *)(lVar7 + 0x30) = uVar2;

+      *(undefined8 *)(lVar7 + 0x28) = local_e0;

+      if (uVar44 < uVar45) {

+        *(undefined4 *)(lVar7 + 0x34) = 0;

+      }

+      else {

+        *(int *)(lVar7 + 0x34) = *(int *)(lVar7 + 0x34) + uVar30;

+      }

+      *(uint *)(param_1 + 0x4c) = *(uint *)(lVar7 + 0x34) / *(uint *)(lVar7 + 0x30);

+LAB_7:

+      uVar33 = 0;

+      iVar36 = 0;

+      if (uVar6 != 0) {

+        lVar32 = *(longlong *)(param_1 + 0x18);

+        uVar37 = (ulonglong)*(uint *)(lVar32 + 100) + *(longlong *)(lVar32 + 0x58);

+        *(uint *)(lVar32 + 100) = uVar6 * *(int *)(lVar32 + 0x60) + *(uint *)(lVar32 + 100);

+        sVar35 = *(short *)(param_1 + 0x58) + *(short *)(param_1 + 0x4c);

+        if (uVar6 != 0) {

+          uVar41 = uVar33;

+          if ((0x1f < uVar6) &&

+             ((uVar34 + (ulonglong)(uVar6 - 1) * 2 < uVar37 ||

+              (uVar41 = 0, uVar37 + (ulonglong)(uVar6 - 1) * 2 < uVar34)))) {

+            uVar28 = 0x10;

+            uVar41 = uVar33;

+            do {

+              psVar25 = (short *)(uVar34 + uVar41 * 2);

+              sVar11 = psVar25[1];

+              sVar12 = psVar25[2];

+              sVar13 = psVar25[3];

+              sVar14 = psVar25[4];

+              sVar15 = psVar25[5];

+              sVar16 = psVar25[6];

+              sVar17 = psVar25[7];

+              psVar3 = (short *)(uVar37 + uVar41 * 2);

+              *psVar3 = *psVar25 + sVar35;

+              psVar3[1] = sVar11 + sVar35;

+              psVar3[2] = sVar12 + sVar35;

+              psVar3[3] = sVar13 + sVar35;

+              psVar3[4] = sVar14 + sVar35;

+              psVar3[5] = sVar15 + sVar35;

+              psVar3[6] = sVar16 + sVar35;

+              psVar3[7] = sVar17 + sVar35;

+              uVar38 = (int)uVar41 + 0x20;

+              uVar41 = (ulonglong)uVar38;

+              psVar25 = (short *)(uVar34 + (ulonglong)(uVar28 - 8) * 2);

+              sVar11 = psVar25[1];

+              sVar12 = psVar25[2];

+              sVar13 = psVar25[3];

+              sVar14 = psVar25[4];

+              sVar15 = psVar25[5];

+              sVar16 = psVar25[6];

+              sVar17 = psVar25[7];

+              psVar3 = (short *)(uVar37 + (ulonglong)(uVar28 - 8) * 2);

+              *psVar3 = *psVar25 + sVar35;

+              psVar3[1] = sVar11 + sVar35;

+              psVar3[2] = sVar12 + sVar35;

+              psVar3[3] = sVar13 + sVar35;

+              psVar3[4] = sVar14 + sVar35;

+              psVar3[5] = sVar15 + sVar35;

+              psVar3[6] = sVar16 + sVar35;

+              psVar3[7] = sVar17 + sVar35;

+              psVar25 = (short *)(uVar34 + (ulonglong)uVar28 * 2);

+              sVar11 = psVar25[1];

+              sVar12 = psVar25[2];

+              sVar13 = psVar25[3];

+              sVar14 = psVar25[4];

+              sVar15 = psVar25[5];

+              sVar16 = psVar25[6];

+              sVar17 = psVar25[7];

+              psVar3 = (short *)(uVar37 + (ulonglong)uVar28 * 2);

+              *psVar3 = *psVar25 + sVar35;

+              psVar3[1] = sVar11 + sVar35;

+              psVar3[2] = sVar12 + sVar35;

+              psVar3[3] = sVar13 + sVar35;

+              psVar3[4] = sVar14 + sVar35;

+              psVar3[5] = sVar15 + sVar35;

+              psVar3[6] = sVar16 + sVar35;

+              psVar3[7] = sVar17 + sVar35;

+              uVar2 = uVar28 + 8;

+              uVar28 = uVar28 + 0x20;

+              psVar25 = (short *)(uVar34 + (ulonglong)uVar2 * 2);

+              sVar11 = psVar25[1];

+              sVar12 = psVar25[2];

+              sVar13 = psVar25[3];

+              sVar14 = psVar25[4];

+              sVar15 = psVar25[5];

+              sVar16 = psVar25[6];

+              sVar17 = psVar25[7];

+              psVar3 = (short *)(uVar37 + (ulonglong)uVar2 * 2);

+              *psVar3 = *psVar25 + sVar35;

+              psVar3[1] = sVar11 + sVar35;

+              psVar3[2] = sVar12 + sVar35;

+              psVar3[3] = sVar13 + sVar35;

+              psVar3[4] = sVar14 + sVar35;

+              psVar3[5] = sVar15 + sVar35;

+              psVar3[6] = sVar16 + sVar35;

+              psVar3[7] = sVar17 + sVar35;

+            } while (uVar38 < (uVar6 & 0xffffffe0));

+          }

+          if ((uint)uVar41 < uVar6) {

+            uVar31 = (ulonglong)(uVar6 - (uint)uVar41);

+            psVar25 = (short *)(uVar37 + uVar41 * 2);

+            do {

+              *psVar25 = sVar35 + *(short *)((uVar34 - uVar37) + (longlong)psVar25);

+              psVar25 = psVar25 + 1;

+              uVar31 = uVar31 - 1;

+            } while (uVar31 != 0);

+          }

+        }

+        *(uint *)(param_1 + 0x5c) = *(int *)(param_1 + 0x5c) + uVar6;

+      }

+      *(uint *)(param_1 + 0x58) = *(int *)(param_1 + 0x58) + uVar46;

+      uVar28 = *(uint *)(lVar7 + 0x34);

+      local_118 = 0;

+      *(uint *)(lVar7 + 0x34) = uVar46 * *(int *)(lVar7 + 0x30) + uVar28;

+      local_14c = 1.0 / *(float *)(local_f8 + 0x48);

+      uVar46 = *(uint *)(local_f8 + 8);

+      uVar34 = (ulonglong)uVar46;

+      local_190 = *(uint *)(local_f8 + 0x10);

+      uVar37 = (ulonglong)local_190;

+      uVar41 = (ulonglong)uVar28 + *(longlong *)(lVar7 + 0x28);

+      local_1a0 = *(undefined8 *)(local_f8 + 0x20);

+      local_194 = *(int *)(local_f8 + 0xc);

+      iVar43 = local_190 * 8 + 0x10;

+      lVar7 = *(longlong *)(local_f8 + 0x18);

+      iVar29 = 0x30;

+      if (param_1[0x40] == (CD3DBatchExecutionContext)0x0) {

+        iVar29 = 0x10;

+      }

+      iVar29 = iVar29 + *(int *)(param_1 + 0x44) * 8;

+      local_13c = 1.0 / *(float *)(local_f8 + 0x4c);

+      fVar5 = *(float *)(this + 0x58);

+      local_150 = local_14c * *(float *)(this + 0x18);

+      local_188 = *(char *)(local_f8 + 0x51);

+      fVar49 = local_14c * *(float *)(this + 0x10);

+      local_1b8 = *(undefined8 *)(local_f8 + 0x28);

+      fVar52 = local_14c * *(float *)(this + 0x14);

+      local_14c = local_14c * *(float *)(this + 0x1c);

+      fVar50 = local_13c * *(float *)(this + 0x20);

+      fVar51 = local_13c * *(float *)(this + 0x24);

+      fVar18 = *(float *)(this + 0x40);

+      fVar19 = *(float *)(this + 0x44);

+      uStack_120 = *(undefined4 *)(this + 0x48);

+      fStack_11c = *(float *)(this + 0x4c);

+      local_140 = local_13c * *(float *)(this + 0x28);

+      local_13c = local_13c * *(float *)(this + 0x2c);

+      local_138 = *(undefined8 *)(this + 0x30);

+      uStack_130 = *(undefined8 *)(this + 0x38);

+      local_res20[0] = uVar46;

+      local_1b0 = lVar7;

+      local_1a8 = iVar43;

+      local_1a4 = uVar46;

+      local_198 = iVar43;

+      local_18c = fVar5;

+      local_180 = uVar41;

+      local_178 = iVar29;

+      local_174 = uVar46;

+      local_158 = fVar49;

+      local_154 = fVar52;

+      local_148 = fVar50;

+      local_144 = fVar51;

+      local_128 = fVar18;

+      fStack_124 = fVar19;

+      if (param_1[0x40] != (CD3DBatchExecutionContext)0x0) {

+        TransferVertices<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>

+                  ((CCommonTransferParameters<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_> *)

+                   &local_1b8,(CMILMatrix *)(this + 0x10),(CMILMatrix *)&local_158,param_2);

+      }

+      else if (local_194 == 0) {

+        TransferAliasedVertices

+                  ((CCommonTransferParameters<Vertex_UVxN<VertexXYW_ColorDW>_> *)&local_1b8);

+      }

+      else {

+        if (((local_190 & 1) == 0) && ((uVar41 & 0xf) == 0)) {

+          bVar20 = true;

+        }

+        else {

+          bVar20 = false;

+        }

+        if (ABS((ABS(local_13c) * 61440.0 + ABS(local_14c) * 61440.0 + ABS(fStack_11c)) - 1.0) <

+            8.138021e-05) {

+          local_118 = 0x3000;

+        }

+        else {

+          local_118 = 0x1000;

+          if (((!NAN(local_14c)) && (!NAN(local_13c))) && (!NAN(fStack_11c))) {

+            if (1.1920929e-06 <= ABS(fVar5 - 1.0)) {

+              if (local_188 == '\0') {

+                VertexTransfer::

+                Transfer<VertexTransfer::CGeneral3DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,1,Vertex_UVxN<VertexXYW_ColorDW>_>

+                          ();

+              }

+              else {

+                VertexTransfer::

+                Transfer<VertexTransfer::CGeneral3DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,2,Vertex_UVxN<VertexXYW_ColorDW>_>

+                          (&local_1b8,&local_158);

+              }

+            }

+            else {

+              VertexTransfer::

+              Transfer<VertexTransfer::CGeneral3DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,0,Vertex_UVxN<VertexXYW_ColorDW>_>

+                        ();

+            }

+            DAT_12 = DAT_12 + local_1a4;

+            return 0;

+          }

+        }

+        if (((8.138021e-05 < ABS(fVar49 - fVar51)) || (8.138021e-05 < ABS(fVar52 - -fVar50))) ||

+           (8.138021e-05 <= ABS((fVar50 * fVar50 + fVar49 * fVar49) - 1.0))) {

+          if (ABS(fVar5 - 1.0) < 1.1920929e-06) {

+            if (!bVar20) {

+              VertexTransfer::

+              Transfer<VertexTransfer::CScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,0,Vertex_UVxN<VertexXYW_ColorDW>_>

+                        (&local_1b8,&local_158);

+              DAT_13 = DAT_13 + local_1a4;

+              return 0;

+            }

+            VertexTransfer::

+            SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,0,Vertex_UVxN<VertexXYW_ColorDW>_>

+                      ();

+          }

+          else {

+            if (bVar20) {

+              if (local_188 == '\0') {

+                VertexTransfer::

+                SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,1,Vertex_UVxN<VertexXYW_ColorDW>_>

+                          ();

+                DAT_13 = DAT_13 + local_1a4;

+                return 0;

+              }

+              VertexTransfer::

+              SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,2,Vertex_UVxN<VertexXYW_ColorDW>_>

+                        ();

+              DAT_13 = DAT_13 + local_1a4;

+              return 0;

+            }

+            if (local_188 != '\0') {

+              VertexTransfer::

+              Transfer<VertexTransfer::CScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,2,Vertex_UVxN<VertexXYW_ColorDW>_>

+                        ();

+              DAT_13 = DAT_13 + local_1a4;

+              return 0;

+            }

+            VertexTransfer::

+            Transfer<VertexTransfer::CScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,1,Vertex_UVxN<VertexXYW_ColorDW>_>

+                      (&local_1b8);

+          }

+          DAT_13 = DAT_13 + local_1a4;

+        }

+        else {

+          if (ABS(fVar5 - 1.0) < 1.1920929e-06) {

+            if (bVar20) {

+              uVar34 = (ulonglong)(local_190 >> 1);

+              if (uVar46 != 0) {

+                uVar33 = (ulonglong)((uVar46 - 1 >> 1) + 1);

+                uVar37 = 0;

+                do {

+                  puVar26 = (undefined8 *)((longlong)(int)uVar37 + uVar41);

+                  pfVar27 = (float *)(iVar36 + lVar7);

+                  lVar32 = (iVar43 + iVar36) + lVar7;

+                  puVar39 = (undefined8 *)((longlong)((int)uVar37 + iVar29) + uVar41);

+                  uVar47 = DirectX::MathInternal::PermuteHelper<228,0,0,0,1>::Permute

+                                     (puVar26,lVar32,*pfVar27 * fVar49);

+                  *puVar26 = uVar47;

+                  puVar26[1] = extraout_XMM0_Qb;

+                  if ((int)uVar34 != 0) {

+                    uVar37 = uVar34 & 0xffffffff;

+                    puVar4 = puVar26;

+                    do {

+                      puVar23 = puVar4 + 2;

+                      puVar24 = (undefined8 *)

+                                (((longlong)pfVar27 - (longlong)puVar26) + (longlong)puVar23);

+                      uVar47 = puVar24[1];

+                      *puVar23 = *puVar24;

+                      puVar4[3] = uVar47;

+                      uVar37 = uVar37 - 1;

+                      puVar4 = puVar23;

+                    } while (uVar37 != 0);

+                  }

+                  uVar47 = DirectX::MathInternal::PermuteHelper<228,0,0,0,1>::Permute();

+                  *puVar39 = uVar47;

+                  puVar39[1] = extraout_XMM0_Qb_00;

+                  if ((int)uVar34 != 0) {

+                    uVar37 = uVar34 & 0xffffffff;

+                    puVar26 = puVar39;

+                    do {

+                      puVar24 = puVar26 + 2;

+                      puVar4 = (undefined8 *)((lVar32 - (longlong)puVar39) + (longlong)puVar24);

+                      uVar47 = puVar4[1];

+                      *puVar24 = *puVar4;

+                      puVar26[3] = uVar47;

+                      uVar37 = uVar37 - 1;

+                      puVar26 = puVar24;

+                    } while (uVar37 != 0);

+                  }

+                  iVar36 = iVar36 + iVar43 * 2;

+                  uVar37 = (ulonglong)(uint)((int)local_108 + iVar29 * 2);

+                  uVar33 = uVar33 - 1;

+                  uVar46 = local_res20[0];

+                  local_108 = uVar37;

+                } while (uVar33 != 0);

+              }

+            }

+            else {

+              uVar37 = uVar33;

+              if (uVar46 != 0) {

+                do {

+                  pfVar27 = (float *)((int)uVar33 + lVar7);

+                  pfVar40 = (float *)((longlong)(int)uVar37 + uVar41);

+                  fVar48 = fVar49 * *pfVar27 + fVar50 * pfVar27[1] + fVar18;

+                  *pfVar40 = fVar48;

+                  fVar5 = *pfVar27;

+                  fVar21 = pfVar27[1];

+                  pfVar40[2] = 1.0;

+                  pfVar40[1] = fVar52 * fVar5 + fVar51 * fVar21 + fVar19;

+                  if (local_190 != 0) {

+                    lVar22 = FUN_1802e968a(pfVar40,fVar48,pfVar40 + 4,

+                                           (longlong)pfVar27 - (longlong)pfVar40);

+                    return lVar22;

+                  }

+                  uVar33 = (ulonglong)((int)uVar33 + 0x10);

+                  pfVar40[3] = pfVar27[3];

+                  uVar34 = uVar34 - 1;

+                  uVar37 = (ulonglong)(uint)((int)uVar37 + iVar29);

+                } while (uVar34 != 0);

+              }

+            }

+          }

+          else if (bVar20) {

+            if (local_188 == '\0') {

+              VertexTransfer::

+              SimdTransfer<VertexTransfer::CSimdNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,1,Vertex_UVxN<VertexXYW_ColorDW>_>

+                        ();

+              uVar46 = local_1a4;

+            }

+            else {

+              VertexTransfer::

+              SimdTransfer<VertexTransfer::CSimdNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,2,Vertex_UVxN<VertexXYW_ColorDW>_>

+                        (&local_1b8,&local_158);

+              uVar46 = local_1a4;

+            }

+          }

+          else if (uVar46 != 0) {

+            uVar31 = uVar33;

+            if (local_188 == '\0') {

+              local_188 = 0;

+              do {

+                pfVar27 = (float *)((int)uVar33 + lVar7);

+                pfVar40 = (float *)((longlong)(int)uVar31 + uVar41);

+                *pfVar40 = fVar49 * *pfVar27 + fVar50 * pfVar27[1] + fVar18;

+                fVar21 = *pfVar27;

+                fVar48 = pfVar27[1];

+                pfVar40[2] = 1.0;

+                pfVar40[1] = fVar52 * fVar21 + fVar51 * fVar48 + fVar19;

+                if ((int)uVar37 != 0) {

+                  lVar22 = FUN_1802e96bc(pfVar27,(longlong)pfVar27 - (longlong)pfVar40,uVar37);

+                  return lVar22;

+                }

+                fVar21 = (float)BlendPremultipliedColorDW((ulong)pfVar27[3],fVar5);

+                uVar33 = (ulonglong)(uint)((int)uVar33 + iVar43);

+                pfVar40[3] = fVar21;

+                uVar31 = (ulonglong)(uint)((int)uVar31 + iVar29);

+                uVar34 = uVar34 - 1;

+              } while (uVar34 != 0);

+            }

+            else {

+              do {

+                pfVar27 = (float *)((int)uVar33 + lVar7);

+                pfVar40 = (float *)((longlong)(int)uVar31 + uVar41);

+                *pfVar40 = fVar50 * pfVar27[1] + fVar49 * *pfVar27 + fVar18;

+                fVar21 = *pfVar27;

+                fVar48 = pfVar27[1];

+                pfVar40[2] = 1.0;

+                pfVar40[1] = fVar52 * fVar21 + fVar51 * fVar48 + fVar19;

+                if ((int)uVar37 != 0) {

+                  lVar22 = FUN_1802e96a4(pfVar27,(longlong)pfVar27 - (longlong)pfVar40,uVar37);

+                  return lVar22;

+                }

+                fVar21 = (float)BlendStraightColorDW((ulong)pfVar27[3],fVar5);

+                uVar33 = (ulonglong)(uint)((int)uVar33 + iVar43);

+                pfVar40[3] = fVar21;

+                uVar31 = (ulonglong)(uint)((int)uVar31 + iVar29);

+                uVar34 = uVar34 - 1;

+              } while (uVar34 != 0);

+            }

+          }

+          DAT_14 = DAT_14 + uVar46;

+        }

+      }

+      return 0;

+    }

+  }

+  MilInstrumentationCheckHR_MaybeFailFast(0x14,(long *)0x0,0,uVar38,0x6c,(void *)0x0);

+  uVar28 = 0x218;

+LAB_0:

+  MilInstrumentationCheckHR_MaybeFailFast(0x14,(long *)0x0,0,uVar38,uVar28,(void *)0x0);

+  wil::details::in1diag3::Return_Hr

+            (unaff_retaddr,0xb0,

+             "onecoreuap\\windows\\dwm\\dwmcore\\rendering\\renderingbatchcommand.cpp",uVar38);

+  return uVar38;

+}

+
```

## `CCursorVisual::OnCursorIdChanged`  (modified)

```diff
--- CCursorVisual::OnCursorIdChanged
+++ CCursorVisual::OnCursorIdChanged
@@ -1,2 +1,28 @@
-Failed to decompile dwmcore.dll - .ProgramDB CCursorVisual::OnCursorIdChanged : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* protected: void __cdecl CCursorVisual::OnCursorIdChanged(void) __ptr64 */

+

+void __thiscall CCursorVisual::OnCursorIdChanged(CCursorVisual *this)

+

+{

+  bool bVar1;

+  CComposition *this_00;

+  __uint64 in_R9;

+  

+  wil::com_ptr_t<IMessageConversation,wil::err_returncode_policy>::reset

+            ((com_ptr_t<IMessageConversation,wil::err_returncode_policy> *)(this + 0x2c8));

+  this_00 = *(CComposition **)(this + 0x18);

+  CComposition::GetFrameTargetTime(this_00);

+  bVar1 = CCursorManager::TryClaimCursorState

+                    ((CCursorManager *)this_00,*(__uint64 *)(this + 0x2a8),this,in_R9,

+                     (CCursorState **)(this + 0x2c8));

+  if (bVar1) {

+    CGlobalComposition::RegisterCursorVisual(*(CGlobalComposition **)(this + 0x18),this);

+    this[0x2f0] = (CCursorVisual)0x1;

+  }

+  else if (this[0x2f0] != (CCursorVisual)0x0) {

+    CGlobalComposition::UnregisterCursorVisual(*(CGlobalComposition **)(this + 0x18),this);

+    this[0x2f0] = (CCursorVisual)0x0;

+  }

+  return;

+}

+
```

## `CCursorVisual::CollectOcclusion`  (modified)

```diff
--- CCursorVisual::CollectOcclusion
+++ CCursorVisual::CollectOcclusion
@@ -1,2 +1,15 @@
-Failed to decompile dwmcore.dll - .ProgramDB CCursorVisual::CollectOcclusion : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: virtual long __cdecl CCursorVisual::CollectOcclusion(class COcclusionContext *

+   __ptr64,class COcclusionInfo * __ptr64) __ptr64 */

+

+long __thiscall

+CCursorVisual::CollectOcclusion

+          (CCursorVisual *this,COcclusionContext *param_1,COcclusionInfo *param_2)

+

+{

+  if (*(longlong *)(this + 0x2c8) != 0) {

+    COcclusionContext::CollectCursor(param_1,this);

+  }

+  return 0;

+}

+
```

## `COverlayContext::CheckMultiPlaneOverlaySupport`  (modified)

```diff
--- COverlayContext::CheckMultiPlaneOverlaySupport
+++ COverlayContext::CheckMultiPlaneOverlaySupport
@@ -1,2 +1,452 @@
-Failed to decompile dwmcore.dll - .ProgramDB COverlayContext::CheckMultiPlaneOverlaySupport : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* private: static bool __cdecl COverlayContext::CheckMultiPlaneOverlaySupport(class gsl::span<class

+   COverlayContext * __ptr64,-1> const & __ptr64,class gsl::span<class

+   COverlayContext::OverlayPlaneInfo * __ptr64,-1> const & __ptr64) */

+

+bool __cdecl

+COverlayContext::CheckMultiPlaneOverlaySupport

+          (span<COverlayContext*___ptr64,_1> *param_1,

+          span<COverlayContext::OverlayPlaneInfo*___ptr64,_1> *param_2)

+

+{

+  undefined4 *puVar1;

+  undefined4 uVar2;

+  undefined4 uVar3;

+  undefined4 uVar4;

+  undefined4 uVar5;

+  undefined4 uVar6;

+  undefined4 uVar7;

+  undefined4 uVar8;

+  COverlayContext *pCVar9;

+  longlong lVar10;

+  undefined4 uVar11;

+  undefined4 uVar12;

+  undefined4 uVar13;

+  undefined4 uVar14;

+  undefined4 uVar15;

+  undefined4 uVar16;

+  undefined4 uVar17;

+  undefined4 uVar18;

+  undefined8 uVar19;

+  undefined8 uVar20;

+  undefined8 uVar21;

+  undefined8 uVar22;

+  undefined8 uVar23;

+  bool bVar24;

+  char cVar25;

+  long lVar26;

+  ulonglong uVar27;

+  undefined8 uVar28;

+  IUnknown *this;

+  COverlayContext **ppCVar29;

+  longlong *plVar30;

+  uint uVar31;

+  IOverlayPlaneResource *pIVar32;

+  com_ptr_t<IOverlayPlaneResource,wil::err_returncode_policy> *pcVar33;

+  longlong *plVar34;

+  int iVar35;

+  size_t _Size;

+  void *pvVar36;

+  uint uVar37;

+  undefined8 *puVar38;

+  undefined8 *puVar39;

+  IOverlayPlaneResource *pIVar40;

+  int iVar41;

+  undefined8 *puVar42;

+  undefined1 auStack_218 [32];

+  undefined4 local_1f8;

+  undefined4 local_1f0;

+  undefined4 local_1e8;

+  uint local_1e0;

+  int local_1d8;

+  uint local_1d0;

+  uint local_1c8;

+  undefined4 local_1c0;

+  undefined4 local_1b8;

+  undefined4 local_1b0;

+  undefined4 local_1a8;

+  undefined4 local_1a0;

+  undefined4 local_198;

+  undefined4 local_190;

+  undefined4 local_188;

+  char local_178 [8];

+  IOverlayPlaneResource *local_170;

+  uint local_168;

+  int local_164;

+  uint local_160;

+  uint local_15c;

+  undefined4 local_158;

+  uint local_154;

+  IOverlayPlaneResource *local_150;

+  span<COverlayContext::OverlayPlaneInfo*___ptr64,_1> *local_148;

+  undefined8 *local_140;

+  undefined4 local_138;

+  undefined4 local_134;

+  void *local_130;

+  void *pvStack_128;

+  undefined8 local_120;

+  span<COverlayContext*___ptr64,_1> *local_118;

+  undefined8 local_110;

+  undefined8 uStack_108;

+  undefined8 local_100;

+  com_ptr_t<IOverlayPlaneResource,wil::err_returncode_policy> local_f8 [8];

+  undefined8 *local_f0;

+  undefined8 *local_e8;

+  ulonglong *local_e0;

+  undefined8 local_d8 [16];

+  ulonglong local_58 [4];

+  

+  local_58[0] = __security_cookie ^ (ulonglong)auStack_218;

+  plVar34 = *(longlong **)(param_1 + 8);

+  local_178[0] = '\0';

+  local_168 = 0;

+  plVar30 = plVar34 + *(longlong *)param_1;

+  uVar37 = *(uint *)param_2;

+  for (; plVar34 != plVar30; plVar34 = plVar34 + 1) {

+    uVar31 = uVar37 + 1;

+    if (*(char *)(*plVar34 + 0x4a90) == '\0') {

+      uVar31 = uVar37;

+    }

+    uVar37 = uVar31;

+  }

+  local_120 = 0;

+  local_130 = (void *)0x0;

+  pvStack_128 = (void *)0x0;

+  local_154 = uVar37;

+  local_148 = param_2;

+  local_118 = param_1;

+  if (uVar37 == 0) {

+    pvVar36 = (void *)0x0;

+  }

+  else {

+    std::

+    vector<DWM_CHECK_MULTIPLANE_OVERLAY_SUPPORT_PLANE_INFO,std::allocator<DWM_CHECK_MULTIPLANE_OVERLAY_SUPPORT_PLANE_INFO>_>

+    ::_Buy_nonzero((vector<DWM_CHECK_MULTIPLANE_OVERLAY_SUPPORT_PLANE_INFO,std::allocator<DWM_CHECK_MULTIPLANE_OVERLAY_SUPPORT_PLANE_INFO>_>

+                    *)&local_130,(ulonglong)uVar37);

+    pvVar36 = local_130;

+    _Size = (ulonglong)uVar37 * 0x90;

+    memset(local_130,0,_Size);

+    pvStack_128 = (void *)(_Size + (longlong)pvVar36);

+  }

+  pcVar33 = *(com_ptr_t<IOverlayPlaneResource,wil::err_returncode_policy> **)param_2;

+  local_100 = 0;

+  local_110 = 0;

+  uStack_108 = 0;

+  std::

+  vector<wil::com_ptr_t<IOverlayPlaneResource,wil::err_returncode_policy>,std::allocator<wil::com_ptr_t<IOverlayPlaneResource,wil::err_returncode_policy>_>_>

+  ::reserve((vector<wil::com_ptr_t<IOverlayPlaneResource,wil::err_returncode_policy>,std::allocator<wil::com_ptr_t<IOverlayPlaneResource,wil::err_returncode_policy>_>_>

+             *)&local_110,(__uint64)pcVar33);

+  if ((Microsoft_Windows_Dwm_CoreEnableBits._1_1_ & 2) != 0) {

+    pcVar33 = (com_ptr_t<IOverlayPlaneResource,wil::err_returncode_policy> *)

+              &EVTDESC_OVERLAY_CHECKSUPPORT_Start;

+    McTemplateU0dd_EventWriteTransfer();

+  }

+  puVar42 = *(undefined8 **)(param_1 + 8);

+  local_140 = puVar42 + *(longlong *)param_1;

+  if (puVar42 != local_140) {

+    do {

+      pcVar33 = (com_ptr_t<IOverlayPlaneResource,wil::err_returncode_policy> *)param_2;

+      pCVar9 = (COverlayContext *)*puVar42;

+      iVar35 = 0;

+      local_164 = 0;

+      local_170 = (IOverlayPlaneResource *)(**(code **)(**(longlong **)pCVar9 + 0x118))();

+      local_158 = (**(code **)(*(longlong *)local_170 + 0xe0))(local_170);

+      local_f0 = local_d8;

+      local_e8 = local_d8;

+      local_e0 = local_58;

+      GetContextCandidates

+                (pCVar9,(span<COverlayContext::OverlayPlaneInfo*___ptr64,_1> *)pcVar33,

+                 (vector_facade<COverlayContext::OverlayPlaneInfo*___ptr64,detail::buffer_impl<COverlayContext::OverlayPlaneInfo*___ptr64,16,1,detail::liberal_expansion_policy>_>

+                  *)&local_f0);

+      pIVar32 = (IOverlayPlaneResource *)0x0;

+      iVar41 = 1;

+      if (pCVar9[0x4a90] == (COverlayContext)0x0) {

+        puVar38 = local_e8;

+        puVar39 = local_f0;

+        pIVar40 = local_170;

+        if ((longlong)local_e8 - (longlong)local_f0 == 8) {

+          bVar24 = OverlayPlaneInfo::IsDFlipOnMPO((OverlayPlaneInfo *)*local_f0);

+          iVar41 = 1;

+          pIVar40 = local_170;

+          if (bVar24) {

+            iVar41 = (int)pIVar32;

+          }

+        }

+      }

+      else {

+        uVar27 = (ulonglong)local_168;

+        uVar28 = (**(code **)(*(longlong *)local_170 + 0xc0))();

+        pIVar40 = local_170;

+        *(undefined8 *)((longlong)pvVar36 + uVar27 * 0x90 + 8) = uVar28;

+        *(undefined4 *)((longlong)pvVar36 + uVar27 * 0x90) = 0;

+        uVar2 = *(undefined4 *)(pCVar9 + 0x4a24);

+        uVar3 = *(undefined4 *)(pCVar9 + 0x4a28);

+        uVar4 = *(undefined4 *)(pCVar9 + 0x4a2c);

+        uVar5 = *(undefined4 *)(pCVar9 + 0x4a30);

+        uVar6 = *(undefined4 *)(pCVar9 + 0x4a34);

+        uVar7 = *(undefined4 *)(pCVar9 + 19000);

+        uVar8 = *(undefined4 *)(pCVar9 + 0x4a3c);

+        uVar11 = *(undefined4 *)(pCVar9 + 0x4a40);

+        uVar12 = *(undefined4 *)(pCVar9 + 0x4a44);

+        uVar13 = *(undefined4 *)(pCVar9 + 0x4a48);

+        uVar14 = *(undefined4 *)(pCVar9 + 0x4a4c);

+        uVar15 = *(undefined4 *)(pCVar9 + 0x4a50);

+        uVar16 = *(undefined4 *)(pCVar9 + 0x4a54);

+        uVar17 = *(undefined4 *)(pCVar9 + 0x4a58);

+        uVar18 = *(undefined4 *)(pCVar9 + 0x4a5c);

+        uVar28 = *(undefined8 *)(pCVar9 + 0x4a60);

+        uVar19 = *(undefined8 *)(pCVar9 + 0x4a68);

+        uVar20 = *(undefined8 *)(pCVar9 + 0x4a70);

+        uVar21 = *(undefined8 *)(pCVar9 + 0x4a78);

+        uVar22 = *(undefined8 *)(pCVar9 + 0x4a80);

+        uVar23 = *(undefined8 *)(pCVar9 + 0x4a88);

+        puVar1 = (undefined4 *)((longlong)pvVar36 + uVar27 * 0x90 + 0x18);

+        *puVar1 = *(undefined4 *)(pCVar9 + 0x4a20);

+        puVar1[1] = uVar2;

+        puVar1[2] = uVar3;

+        puVar1[3] = uVar4;

+        puVar1 = (undefined4 *)((longlong)pvVar36 + uVar27 * 0x90 + 0x28);

+        *puVar1 = uVar5;

+        puVar1[1] = uVar6;

+        puVar1[2] = uVar7;

+        puVar1[3] = uVar8;

+        puVar1 = (undefined4 *)((longlong)pvVar36 + uVar27 * 0x90 + 0x38);

+        *puVar1 = uVar11;

+        puVar1[1] = uVar12;

+        puVar1[2] = uVar13;

+        puVar1[3] = uVar14;

+        puVar1 = (undefined4 *)((longlong)pvVar36 + uVar27 * 0x90 + 0x48);

+        *puVar1 = uVar15;

+        puVar1[1] = uVar16;

+        puVar1[2] = uVar17;

+        puVar1[3] = uVar18;

+        puVar38 = (undefined8 *)((longlong)pvVar36 + uVar27 * 0x90 + 0x58);

+        *puVar38 = uVar28;

+        puVar38[1] = uVar19;

+        puVar38 = (undefined8 *)((longlong)pvVar36 + uVar27 * 0x90 + 0x68);

+        *puVar38 = uVar20;

+        puVar38[1] = uVar21;

+        puVar38 = (undefined8 *)((longlong)pvVar36 + uVar27 * 0x90 + 0x78);

+        *puVar38 = uVar22;

+        puVar38[1] = uVar23;

+        *(undefined4 *)((longlong)pvVar36 + uVar27 * 0x90 + 0x10) = local_158;

+        uVar28 = (**(code **)(*(longlong *)local_170 + 0x198))(local_170);

+        *(undefined8 *)((longlong)pvVar36 + uVar27 * 0x90 + 0x88) = uVar28;

+        pIVar32 = (IOverlayPlaneResource *)0x0;

+        local_164 = 1;

+        puVar38 = local_e8;

+        puVar39 = local_f0;

+        iVar35 = 1;

+        iVar41 = 1;

+      }

+      local_15c = (uint)pIVar32;

+      if ((longlong)puVar38 - (longlong)puVar39 >> 3 != 0) {

+        local_160 = local_168 + iVar35;

+        local_170 = pIVar32;

+        do {

+          local_150 = pIVar32;

+          this = (IUnknown *)

+                 (**(code **)(**(longlong **)(puVar39[(longlong)pIVar32] + 0x10) + 0x38))();

+          pIVar32 = local_170;

+          if (this == (IUnknown *)0x0) {

+LAB_0:

+            cVar25 = '\0';

+            wil::

+            com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+            ::

+            ~com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+                      ((com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+                        *)&local_170);

+            detail::

+            vector_facade<COverlayContext::OverlayPlaneInfo*___ptr64,detail::buffer_impl<COverlayContext::OverlayPlaneInfo*___ptr64,16,1,detail::liberal_expansion_policy>_>

+            ::clear((vector_facade<COverlayContext::OverlayPlaneInfo*___ptr64,detail::buffer_impl<COverlayContext::OverlayPlaneInfo*___ptr64,16,1,detail::liberal_expansion_policy>_>

+                     *)&local_f0);

+            detail::expandable_buffer_base<IRenderTarget*___ptr64,4>::

+            ~expandable_buffer_base<IRenderTarget*___ptr64,4>

+                      ((expandable_buffer_base<IRenderTarget*___ptr64,4> *)&local_f0);

+            goto LAB_1;

+          }

+          local_170 = (IOverlayPlaneResource *)0x0;

+          if (pIVar32 != (IOverlayPlaneResource *)0x0) {

+            (**(code **)(*(longlong *)pIVar32 + 0x10))();

+          }

+          lVar26 = IUnknown::QueryInterface<IOverlayPlaneResource>(this,&local_170);

+          if (lVar26 < 0) goto LAB_0;

+          uVar27 = (ulonglong)local_160;

+          *(IOverlayPlaneResource **)((longlong)pvVar36 + uVar27 * 0x90 + 8) = local_170;

+          lVar10 = local_f0[(longlong)local_150];

+          uVar2 = *(undefined4 *)(lVar10 + 0x24);

+          uVar3 = *(undefined4 *)(lVar10 + 0x28);

+          uVar4 = *(undefined4 *)(lVar10 + 0x2c);

+          uVar5 = *(undefined4 *)(lVar10 + 0x30);

+          uVar6 = *(undefined4 *)(lVar10 + 0x34);

+          uVar7 = *(undefined4 *)(lVar10 + 0x38);

+          uVar8 = *(undefined4 *)(lVar10 + 0x3c);

+          uVar11 = *(undefined4 *)(lVar10 + 0x40);

+          uVar12 = *(undefined4 *)(lVar10 + 0x44);

+          uVar13 = *(undefined4 *)(lVar10 + 0x48);

+          uVar14 = *(undefined4 *)(lVar10 + 0x4c);

+          uVar15 = *(undefined4 *)(lVar10 + 0x50);

+          uVar16 = *(undefined4 *)(lVar10 + 0x54);

+          uVar17 = *(undefined4 *)(lVar10 + 0x58);

+          uVar18 = *(undefined4 *)(lVar10 + 0x5c);

+          uVar28 = *(undefined8 *)(lVar10 + 0x60);

+          uVar19 = *(undefined8 *)(lVar10 + 0x68);

+          uVar20 = *(undefined8 *)(lVar10 + 0x70);

+          uVar21 = *(undefined8 *)(lVar10 + 0x78);

+          uVar22 = *(undefined8 *)(lVar10 + 0x80);

+          uVar23 = *(undefined8 *)(lVar10 + 0x88);

+          puVar1 = (undefined4 *)((longlong)pvVar36 + uVar27 * 0x90 + 0x18);

+          *puVar1 = *(undefined4 *)(lVar10 + 0x20);

+          puVar1[1] = uVar2;

+          puVar1[2] = uVar3;

+          puVar1[3] = uVar4;

+          puVar1 = (undefined4 *)((longlong)pvVar36 + uVar27 * 0x90 + 0x28);

+          *puVar1 = uVar5;

+          puVar1[1] = uVar6;

+          puVar1[2] = uVar7;

+          puVar1[3] = uVar8;

+          puVar1 = (undefined4 *)((longlong)pvVar36 + uVar27 * 0x90 + 0x38);

+          *puVar1 = uVar11;

+          puVar1[1] = uVar12;

+          puVar1[2] = uVar13;

+          puVar1[3] = uVar14;

+          puVar1 = (undefined4 *)((longlong)pvVar36 + uVar27 * 0x90 + 0x48);

+          *puVar1 = uVar15;

+          puVar1[1] = uVar16;

+          puVar1[2] = uVar17;

+          puVar1[3] = uVar18;

+          puVar38 = (undefined8 *)((longlong)pvVar36 + uVar27 * 0x90 + 0x58);

+          *puVar38 = uVar28;

+          puVar38[1] = uVar19;

+          puVar38 = (undefined8 *)((longlong)pvVar36 + uVar27 * 0x90 + 0x68);

+          *puVar38 = uVar20;

+          puVar38[1] = uVar21;

+          puVar38 = (undefined8 *)((longlong)pvVar36 + uVar27 * 0x90 + 0x78);

+          *puVar38 = uVar22;

+          puVar38[1] = uVar23;

+          *(uint *)((longlong)pvVar36 + uVar27 * 0x90) = local_15c + iVar41;

+          *(undefined4 *)((longlong)pvVar36 + uVar27 * 0x90 + 0x10) = local_158;

+          uVar28 = (**(code **)(*(longlong *)pIVar40 + 0x198))(pIVar40);

+          pcVar33 = (com_ptr_t<IOverlayPlaneResource,wil::err_returncode_policy> *)&local_170;

+          *(undefined8 *)((longlong)pvVar36 + uVar27 * 0x90 + 0x88) = uVar28;

+          std::

+          vector<wil::com_ptr_t<IOverlayPlaneResource,wil::err_returncode_policy>,std::allocator<wil::com_ptr_t<IOverlayPlaneResource,wil::err_returncode_policy>_>_>

+          ::emplace_back<wil::com_ptr_t<IOverlayPlaneResource,wil::err_returncode_policy>_>

+                    ((vector<wil::com_ptr_t<IOverlayPlaneResource,wil::err_returncode_policy>,std::allocator<wil::com_ptr_t<IOverlayPlaneResource,wil::err_returncode_policy>_>_>

+                      *)&local_110,pcVar33);

+          local_160 = local_160 + 1;

+          iVar35 = local_164 + 1;

+          local_164 = iVar35;

+          wil::

+          com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+          ::

+          ~com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+                    ((com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+                      *)&local_170);

+          local_15c = local_15c + 1;

+          pIVar32 = (IOverlayPlaneResource *)(ulonglong)local_15c;

+          local_150 = pIVar32;

+          if ((IOverlayPlaneResource *)((longlong)local_e8 - (longlong)local_f0 >> 3) <= pIVar32)

+          break;

+          local_170 = (IOverlayPlaneResource *)0x0;

+          puVar39 = local_f0;

+        } while( true );

+      }

+      local_168 = local_168 + iVar35;

+      detail::

+      vector_facade<COverlayContext::OverlayPlaneInfo*___ptr64,detail::buffer_impl<COverlayContext::OverlayPlaneInfo*___ptr64,16,1,detail::liberal_expansion_policy>_>

+      ::clear((vector_facade<COverlayContext::OverlayPlaneInfo*___ptr64,detail::buffer_impl<COverlayContext::OverlayPlaneInfo*___ptr64,16,1,detail::liberal_expansion_policy>_>

+               *)&local_f0);

+      detail::expandable_buffer_base<IRenderTarget*___ptr64,4>::

+      ~expandable_buffer_base<IRenderTarget*___ptr64,4>

+                ((expandable_buffer_base<IRenderTarget*___ptr64,4> *)&local_f0);

+      puVar42 = puVar42 + 1;

+      param_2 = local_148;

+    } while (puVar42 != local_140);

+  }

+  if (((Microsoft_Windows_Dwm_CoreEnableBits._1_1_ & 2) != 0) && (uVar37 != 0)) {

+    local_148 = (span<COverlayContext::OverlayPlaneInfo*___ptr64,_1> *)((longlong)pvVar36 + 0x50);

+    local_140 = (undefined8 *)(ulonglong)uVar37;

+    do {

+      if ((Microsoft_Windows_Dwm_CoreEnableBits._1_1_ & 2) != 0) {

+        local_158 = *(undefined4 *)(local_148 + -0x18);

+        uVar2 = *(undefined4 *)(local_148 + 0x14);

+        uVar3 = *(undefined4 *)local_148;

+        uVar4 = *(undefined4 *)(local_148 + -4);

+        uVar5 = *(undefined4 *)(local_148 + -8);

+        uVar6 = *(undefined4 *)(local_148 + -0xc);

+        uVar7 = *(undefined4 *)(local_148 + -0x10);

+        uVar8 = *(undefined4 *)(local_148 + -0x14);

+        local_15c = *(uint *)(local_148 + -0x1c);

+        local_160 = *(uint *)(local_148 + -0x20);

+        local_164 = *(int *)(local_148 + -0x24);

+        local_168 = *(uint *)(local_148 + -0x28);

+        local_138 = *(undefined4 *)(local_148 + -0x2c);

+        local_134 = *(undefined4 *)(local_148 + -0x30);

+        local_150 = (IOverlayPlaneResource *)

+                    CONCAT44(local_150._4_4_,*(undefined4 *)(local_148 + -0x34));

+        local_170 = (IOverlayPlaneResource *)

+                    CONCAT44(local_170._4_4_,*(undefined4 *)(local_148 + -0x38));

+        pcVar33 = local_f8;

+        (**(code **)(**(longlong **)(local_148 + -0x48) + 0x18))();

+        local_1c0 = local_158;

+        local_1c8 = local_15c;

+        local_1d0 = local_160;

+        local_1d8 = local_164;

+        local_1e0 = local_168;

+        local_1e8 = local_138;

+        local_1f0 = local_134;

+        local_1f8 = local_150._0_4_;

+        local_1b8 = uVar8;

+        local_1b0 = uVar7;

+        local_1a8 = uVar6;

+        local_1a0 = uVar5;

+        local_198 = uVar4;

+        local_190 = uVar3;

+        local_188 = uVar2;

+        McTemplateU0xqddddddddddddqqq_EventWriteTransfer();

+      }

+      local_148 = local_148 + 0x90;

+      local_140 = (undefined8 *)((longlong)local_140 - 1);

+    } while (local_140 != (undefined8 *)0x0);

+    local_140 = (undefined8 *)0x0;

+    param_1 = local_118;

+    uVar37 = local_154;

+  }

+  if (CCommonRegistryData::m_dwOverlayTestMode < 4) {

+    ppCVar29 = gsl::span<COverlayContext*___ptr64,-1>::operator[](param_1,(__uint64)pcVar33);

+    plVar30 = (longlong *)(**(code **)(**(longlong **)*ppCVar29 + 0x118))();

+    cVar25 = (**(code **)(*plVar30 + 0x160))(plVar30,local_130,uVar37,local_178);

+    if ((cVar25 == '\0') && (local_178[0] != '\0')) {

+      plVar34 = *(longlong **)(param_1 + 8);

+      plVar30 = plVar34 + *(longlong *)param_1;

+      for (; plVar34 != plVar30; plVar34 = plVar34 + 1) {

+        *(undefined1 *)(*plVar34 + 0x4c86) = 1;

+      }

+    }

+  }

+  else {

+    cVar25 = '\x01';

+    if (CCommonRegistryData::m_dwOverlayTestMode == 4) {

+      cVar25 = '\x01';

+    }

+  }

+LAB_1:

+  if ((Microsoft_Windows_Dwm_CoreEnableBits._1_1_ & 2) != 0) {

+    McTemplateU0d_EventWriteTransfer();

+  }

+  std::

+  vector<wil::com_ptr_t<CWeakReference<CGdiSpriteBitmap>,wil::err_returncode_policy>,std::allocator<wil::com_ptr_t<CWeakReference<CGdiSpriteBitmap>,wil::err_returncode_policy>_>_>

+  ::_Tidy((vector<wil::com_ptr_t<CWeakReference<CGdiSpriteBitmap>,wil::err_returncode_policy>,std::allocator<wil::com_ptr_t<CWeakReference<CGdiSpriteBitmap>,wil::err_returncode_policy>_>_>

+           *)&local_110);

+  std::

+  vector<DWM_CHECK_MULTIPLANE_OVERLAY_SUPPORT_PLANE_INFO,std::allocator<DWM_CHECK_MULTIPLANE_OVERLAY_SUPPORT_PLANE_INFO>_>

+  ::_Tidy((vector<DWM_CHECK_MULTIPLANE_OVERLAY_SUPPORT_PLANE_INFO,std::allocator<DWM_CHECK_MULTIPLANE_OVERLAY_SUPPORT_PLANE_INFO>_>

+           *)&local_130);

+  return (bool)cVar25;

+}

+
```

## `CSynchronousSuperWetInk::~CSynchronousSuperWetInk`  (modified)

```diff
--- CSynchronousSuperWetInk::~CSynchronousSuperWetInk
+++ CSynchronousSuperWetInk::~CSynchronousSuperWetInk
@@ -1,2 +1,42 @@
-Failed to decompile dwmcore.dll - .ProgramDB CSynchronousSuperWetInk::~CSynchronousSuperWetInk : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* private: virtual __cdecl CSynchronousSuperWetInk::~CSynchronousSuperWetInk(void) __ptr64 */

+

+void __thiscall CSynchronousSuperWetInk::~CSynchronousSuperWetInk(CSynchronousSuperWetInk *this)

+

+{

+  longlong *plVar1;

+  

+  *(undefined ***)this = &_vftable_;

+  CSuperWetInkManager::RemoveSource

+            (*(CSuperWetInkManager **)(*(longlong *)(this + 0x18) + 0x2b8),(CSuperWetSource *)this);

+  if ((Microsoft_Windows_Dwm_CoreEnableBits._2_1_ & 0x10) != 0) {

+    McTemplateU0p_EventWriteTransfer();

+  }

+  std::vector<unsigned_char,std::allocator<unsigned_char>_>::_Tidy

+            ((vector<unsigned_char,std::allocator<unsigned_char>_> *)(this + 0x108));

+  if (*(_Ref_count_base **)(this + 0x100) != (_Ref_count_base *)0x0) {

+    std::_Ref_count_base::_Decref(*(_Ref_count_base **)(this + 0x100));

+  }

+  std::

+  _Tree<std::_Tmap_traits<unsigned___int64,std::shared_ptr<unsigned_char_[0]>,std::less<unsigned___int64>,std::allocator<std::pair<unsigned___int64_const_,std::shared_ptr<unsigned_char_[0]>_>_>,0>_>

+  ::

+  ~_Tree<std::_Tmap_traits<unsigned___int64,std::shared_ptr<unsigned_char_[0]>,std::less<unsigned___int64>,std::allocator<std::pair<unsigned___int64_const_,std::shared_ptr<unsigned_char_[0]>_>_>,0>_>

+            ((_Tree<std::_Tmap_traits<unsigned___int64,std::shared_ptr<unsigned_char_[0]>,std::less<unsigned___int64>,std::allocator<std::pair<unsigned___int64_const_,std::shared_ptr<unsigned_char_[0]>_>_>,0>_>

+              *)(this + 0xe0));

+  std::unique_ptr<CSharedCircularQueue,std::default_delete<CSharedCircularQueue>_>::

+  ~unique_ptr<CSharedCircularQueue,std::default_delete<CSharedCircularQueue>_>

+            ((unique_ptr<CSharedCircularQueue,std::default_delete<CSharedCircularQueue>_> *)

+             (this + 0xd8));

+  plVar1 = *(longlong **)(this + 0xd0);

+  if (plVar1 != (longlong *)0x0) {

+    *(undefined8 *)(this + 0xd0) = 0;

+    (**(code **)(*plVar1 + 0x10))();

+  }

+  CSynchronousSuperWetInkGeneratedT<CSynchronousSuperWetInk,CSuperWetSource>::

+  ~CSynchronousSuperWetInkGeneratedT<CSynchronousSuperWetInk,CSuperWetSource>

+            ((CSynchronousSuperWetInkGeneratedT<CSynchronousSuperWetInk,CSuperWetSource> *)this);

+  return;

+}

+
```

## `CCursorState::UpdateHardwareCursor`  (modified)

```diff
--- CCursorState::UpdateHardwareCursor
+++ CCursorState::UpdateHardwareCursor
@@ -1,2 +1,57 @@
-Failed to decompile dwmcore.dll - .ProgramDB CCursorState::UpdateHardwareCursor : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* private: bool __cdecl CCursorState::UpdateHardwareCursor(class CCursorState::MonitorData *

+   __ptr64,bool) __ptr64 */

+

+bool __thiscall

+CCursorState::UpdateHardwareCursor(CCursorState *this,MonitorData *param_1,bool param_2)

+

+{

+  bool bVar1;

+  MonitorData *this_00;

+  undefined8 local_res8;

+  int local_28 [4];

+  undefined8 local_18;

+  undefined8 uStack_10;

+  

+  local_28[0] = 0;

+  local_28[1] = 0;

+  local_28[2] = 0;

+  local_28[3] = 0;

+  local_18 = 0;

+  uStack_10 = 0;

+  this_00 = (MonitorData *)this;

+  if (*(longlong *)(this + 0xb8) != 0) {

+    local_res8 = *(undefined8 *)(this + 0x38);

+    if ((this[0x58] != (CCursorState)0x0) || (*(longlong *)(param_1 + 0x70) == 0)) {

+      local_res8 = *(undefined8 *)(this + 0xdc);

+    }

+    this_00 = param_1;

+    bVar1 = MonitorData::CalcShapeRects

+                      (param_1,(D2D_POINT_2F *)&local_res8,

+                       (TMilRect_<int,tagRECT,D2D_POINTANDSIZE_L,Mil3DRectL,RectUniqueness::_CMilRectL_>

+                        *)local_28,

+                       (TMilRect_<int,tagRECT,D2D_POINTANDSIZE_L,Mil3DRectL,RectUniqueness::_CMilRectL_>

+                        *)&local_18);

+    if (bVar1) {

+      if ((((*(int *)(param_1 + 0x98) == 1) && (!param_2)) &&

+          (*(int *)(param_1 + 0x8c) == local_28[0])) && (*(int *)(param_1 + 0x90) == local_28[1])) {

+        return true;

+      }

+      bVar1 = SetHardwareShapeAndPosition

+                        (this,param_1,

+                         (TMilRect_<int,tagRECT,D2D_POINTANDSIZE_L,Mil3DRectL,RectUniqueness::_CMilRectL_>

+                          *)local_28,

+                         (TMilRect_<int,tagRECT,D2D_POINTANDSIZE_L,Mil3DRectL,RectUniqueness::_CMilRectL_>

+                          *)&local_18,0,param_2);

+      if (bVar1) {

+        return true;

+      }

+      ForceSoftwareShape(this,param_1);

+      return false;

+    }

+  }

+  HideHardwareShape((CCursorState *)this_00,param_1);

+  *(undefined4 *)(param_1 + 0x98) = 0;

+  return true;

+}

+
```

## `VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>::Transform`  (modified)

```diff
--- VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>::Transform
+++ VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>::Transform
@@ -1,2 +1,104 @@
-Failed to decompile dwmcore.dll - .ProgramDB VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>::Transform : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: void __vectorcall VertexTransfer::CSimdScale2DOperator<struct Vertex_UVxN<struct

+   VertexXYW_ColorDW> >::Transform(struct Vertex_UVxN<struct VertexXYW_ColorDW> const &

+   __ptr64,struct VertexAAFixup_UVxN const & __ptr64,union __m128,union __m128,unsigned int,struct

+   Vertex_UVxN<struct VertexXYW_ColorDW> * __ptr64) __ptr64 */

+

+void __thiscall

+VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>::Transform

+          (CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_> *this,float *param_1,float *param_2

+          ,undefined4 param_4,undefined8 param_5,uint param_6,undefined8 *param_7)

+

+{

+  float *pfVar1;

+  float *pfVar2;

+  float *pfVar3;

+  undefined1 auVar4 [16];

+  float fVar5;

+  float fVar6;

+  float fVar7;

+  float fVar8;

+  float fVar9;

+  float fVar10;

+  undefined4 uVar11;

+  float *pfVar12;

+  ulonglong uVar13;

+  float extraout_XMM0_Da;

+  float fVar14;

+  float extraout_XMM0_Db;

+  float fVar16;

+  undefined8 uVar15;

+  undefined4 extraout_XMM0_Dc;

+  undefined4 extraout_XMM0_Dd;

+  float fVar17;

+  float fVar18;

+  float fVar19;

+  float fVar20;

+  float fVar21;

+  float fVar22;

+  float fVar23;

+  

+  fVar17 = 1.0;

+  fVar18 = *param_2;

+  fVar20 = param_2[1];

+  fVar21 = param_2[2];

+  fVar5 = *(float *)(this + 0x10);

+  fVar19 = *(float *)(this + 0x14);

+  fVar6 = *(float *)(this + 0x18);

+  fVar7 = *(float *)(this + 0x1c);

+  fVar8 = *(float *)this;

+  fVar23 = *(float *)(this + 4);

+  fVar9 = *(float *)(this + 8);

+  fVar10 = *(float *)(this + 0xc);

+  uVar11 = DirectX::XMVectorPermute<0,1,6,7>(param_4,0x3f800000);

+  fVar14 = extraout_XMM0_Da - fVar18;

+  fVar16 = extraout_XMM0_Db - fVar20;

+  fVar22 = fVar16 * fVar5 + fVar14 * fVar8;

+  fVar23 = fVar16 * fVar19 + fVar14 * fVar23;

+  auVar4._4_4_ = -(uint)(fVar23 == 0.0);

+  auVar4._0_4_ = -(uint)(fVar22 == 0.0);

+  auVar4._8_4_ = -(uint)(fVar16 * fVar6 + fVar14 * fVar9 == 0.0);

+  auVar4._12_4_ = -(uint)(fVar16 * fVar7 + fVar14 * fVar10 == 0.0);

+  uVar11 = movmskps(uVar11,auVar4);

+  fVar19 = fVar17;

+  if (((byte)uVar11 & 3) != 3) {

+    fVar19 = (fVar17 / SQRT(fVar22 * fVar22 + fVar23 * fVar23)) * fVar21;

+  }

+  uVar11 = DirectX::MathInternal::PermuteHelper<228,0,0,0,1>::Permute(fVar17);

+  uVar15 = DirectX::XMVectorPermute<0,1,6,7>

+                     (fVar20 * fVar5 + *(float *)(this + 0x20) + fVar18 * fVar8 + fVar19 * fVar22,

+                      uVar11);

+  *param_7 = uVar15;

+  *(undefined4 *)(param_7 + 1) = extraout_XMM0_Dc;

+  *(undefined4 *)((longlong)param_7 + 0xc) = extraout_XMM0_Dd;

+  if ((fVar19 <= 1.0) || (fVar18 = 1.0, param_2[3] != 0.0)) {

+    fVar18 = fVar19;

+  }

+  if (param_6 != 0) {

+    uVar13 = (ulonglong)param_6;

+    pfVar1 = param_1;

+    do {

+      pfVar12 = pfVar1 + 4;

+      fVar20 = pfVar1[5];

+      fVar21 = pfVar1[6];

+      fVar5 = pfVar1[7];

+      pfVar1 = (float *)(((longlong)param_2 - (longlong)param_1) + (longlong)pfVar12);

+      fVar19 = pfVar1[1];

+      fVar6 = pfVar1[2];

+      fVar7 = pfVar1[3];

+      pfVar2 = (float *)(((longlong)param_2 - (longlong)param_1) + (longlong)pfVar12);

+      fVar8 = pfVar2[1];

+      fVar23 = pfVar2[2];

+      fVar9 = pfVar2[3];

+      pfVar3 = (float *)(((longlong)param_7 - (longlong)param_1) + (longlong)pfVar12);

+      *pfVar3 = (*pfVar12 - *pfVar1) * fVar18 + *pfVar2;

+      pfVar3[1] = (fVar20 - fVar19) * fVar18 + fVar8;

+      pfVar3[2] = (fVar21 - fVar6) * fVar18 + fVar23;

+      pfVar3[3] = (fVar5 - fVar7) * fVar18 + fVar9;

+      uVar13 = uVar13 - 1;

+      pfVar1 = pfVar12;

+    } while (uVar13 != 0);

+  }

+  return;

+}

+
```

## `CCursorState::HideHardwareShape`  (modified)

```diff
--- CCursorState::HideHardwareShape
+++ CCursorState::HideHardwareShape
@@ -1,2 +1,27 @@
-Failed to decompile dwmcore.dll - .ProgramDB CCursorState::HideHardwareShape : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* private: void __cdecl CCursorState::HideHardwareShape(class CCursorState::MonitorData * __ptr64)

+   __ptr64 */

+

+void __thiscall CCursorState::HideHardwareShape(CCursorState *this,MonitorData *param_1)

+

+{

+  undefined1 auStack_58 [32];

+  undefined8 local_38;

+  undefined4 local_30;

+  undefined8 local_2c;

+  undefined8 uStack_24;

+  ulonglong local_18;

+  

+  local_18 = __security_cookie ^ (ulonglong)auStack_58;

+  if (*(int *)(param_1 + 0x98) == 1) {

+    local_38 = *(undefined8 *)param_1;

+    local_30 = *(undefined4 *)(param_1 + 8);

+    local_2c = 0;

+    uStack_24 = 0;

+    NtHWCursorUpdatePointer(&local_38,0);

+    *(undefined4 *)(param_1 + 0x98) = 0;

+  }

+  return;

+}

+
```

## `COverlayContext::UpdateHardwareCursor`  (modified)

```diff
--- COverlayContext::UpdateHardwareCursor
+++ COverlayContext::UpdateHardwareCursor
@@ -1,2 +1,65 @@
-Failed to decompile dwmcore.dll - .ProgramDB COverlayContext::UpdateHardwareCursor : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* private: bool __cdecl COverlayContext::UpdateHardwareCursor(void) __ptr64 */

+

+bool __thiscall COverlayContext::UpdateHardwareCursor(COverlayContext *this)

+

+{

+  CCursorState *this_00;

+  bool bVar1;

+  CMonitorTransform *pCVar2;

+  undefined8 local_68;

+  undefined8 uStack_60;

+  undefined8 local_58;

+  undefined8 uStack_50;

+  undefined8 local_48;

+  undefined8 uStack_40;

+  undefined8 local_38;

+  undefined8 uStack_30;

+  undefined8 local_28;

+  undefined8 uStack_20;

+  undefined4 local_18;

+  

+  pCVar2 = GetMonitorTransform(this);

+  if (this[0x4c80] == (COverlayContext)0x0) {

+    local_68 = *(undefined8 *)(pCVar2 + 0x18);

+    uStack_60 = *(undefined8 *)(pCVar2 + 0x20);

+  }

+  else {

+    local_68 = *(undefined8 *)(this + 0x4a24);

+    uStack_60 = *(undefined8 *)(this + 0x4a2c);

+  }

+  local_58 = *(undefined8 *)(this + 0x4b2c);

+  uStack_50 = *(undefined8 *)(this + 0x4b34);

+  local_18 = *(undefined4 *)(this + 0x4b6c);

+  local_48 = *(undefined8 *)(this + 0x4b3c);

+  uStack_40 = *(undefined8 *)(this + 0x4b44);

+  local_38 = *(undefined8 *)(this + 0x4b4c);

+  uStack_30 = *(undefined8 *)(this + 0x4b54);

+  local_28 = *(undefined8 *)(this + 0x4b5c);

+  uStack_20 = *(undefined8 *)(this + 0x4b64);

+  CMILMatrix::Multiply

+            ((CMILMatrix *)&local_58,

+             (CMILMatrix *)

+             (pCVar2 + (ulonglong)(-(uint)(this[0x4c80] != (COverlayContext)0x0) & 0x88) + 0x34));

+  bVar1 = CCursorState::EnsureMonitorData

+                    (*(CCursorState **)(*(longlong *)(this + 0x4b18) + 0x2c8),

+                     *(_LUID *)(this + 0x4b20),*(uint *)(this + 0x4b28),

+                     (TMilRect<unsigned_int,MilRectU,Mil3DRectU,RectUniqueness::NotNeeded> *)

+                     &local_68,(bool)pCVar2[0x100],(bool)this[0x4c7b],(CMILMatrix *)&local_58);

+  this_00 = *(CCursorState **)(*(longlong *)(this + 0x4b18) + 0x2c8);

+  if (*(char *)(*(longlong *)(this + 0x4b18) + 0x2b8) == '\0') {

+    CCursorState::ForceSoftwareCursor(this_00,*(_LUID *)(this + 0x4b20),*(uint *)(this + 0x4b28));

+  }

+  else {

+    bVar1 = CCursorState::UpdateHardwareCursor

+                      (this_00,*(_LUID *)(this + 0x4b20),*(uint *)(this + 0x4b28),bVar1);

+    if (bVar1) {

+      (**(code **)(**(longlong **)this + 0x128))(*(longlong **)this,this + 0x4b70);

+      return true;

+    }

+  }

+  return false;

+}

+
```

## `DataProviderManager::RegisterDataProvider`  (modified)

```diff
--- DataProviderManager::RegisterDataProvider
+++ DataProviderManager::RegisterDataProvider
@@ -1,2 +1,80 @@
-Failed to decompile dwmcore.dll - .ProgramDB DataProviderManager::RegisterDataProvider : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: long __cdecl DataProviderManager::RegisterDataProvider(class

+   BamoDataProviderRegistrarStub * __ptr64,class BamoDataProviderProxy * __ptr64) __ptr64 */

+

+long __thiscall

+DataProviderManager::RegisterDataProvider

+          (DataProviderManager *this,BamoDataProviderRegistrarStub *param_1,

+          BamoDataProviderProxy *param_2)

+

+{

+  longlong *plVar1;

+  CDataSourceReader *pCVar2;

+  bool bVar3;

+  long lVar4;

+  __uint64 _Var5;

+  BamoDataSourceProxy *this_00;

+  longlong *plVar6;

+  void *unaff_retaddr;

+  DataProviderProxy *local_res8;

+  BamoDataProviderProxy *local_res10;

+  __uint64 local_38;

+  char local_30;

+  

+  local_res10 = param_2;

+  bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_4253016379>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_4253016379> *)

+                     &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_4253016379>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_4253016379>::GetImpl(void)'

+                      ::__l2::impl);

+  if (!bVar3) {

+    *(DataProviderManager **)(param_2 + 0x48) = this;

+  }

+  local_res8 = (DataProviderProxy *)DataProviderHelper::GetUniqueId<BamoDataProviderProxy>(param_2);

+  std::

+  _Hash<std::_Umap_traits<unsigned___int64,Microsoft::WRL::ComPtr<DataProviderProxy>,std::_Uhash_compare<unsigned___int64,std::hash<unsigned___int64>,std::equal_to<unsigned___int64>_>,std::allocator<std::pair<unsigned___int64_const_,Microsoft::WRL::ComPtr<DataProviderProxy>_>_>,0>_>

+  ::emplace<unsigned___int64,DataProviderProxy*___ptr64&___ptr64>

+            ((_Hash<std::_Umap_traits<unsigned___int64,Microsoft::WRL::ComPtr<DataProviderProxy>,std::_Uhash_compare<unsigned___int64,std::hash<unsigned___int64>,std::equal_to<unsigned___int64>_>,std::allocator<std::pair<unsigned___int64_const_,Microsoft::WRL::ComPtr<DataProviderProxy>_>_>,0>_>

+              *)(this + 0x28),&local_38,&local_res8);

+  if (local_30 == '\0') {

+    lVar4 = -0x7ff8ff49;

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0xd4,

+               "onecoreuap\\windows\\dwm\\dwmcore\\engine\\dataprovidermanager.cpp",-0x7ff8ff49);

+  }

+  else {

+    bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_4253016379>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_4253016379> *)

+                       &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_4253016379>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_4253016379>::GetImpl(void)'

+                        ::__l2::impl);

+    if (bVar3) {

+      *(DataProviderManager **)(local_res10 + 0x48) = this;

+    }

+    _Var5 = DataProviderHelper::GetUniqueId<BamoDataProviderProxy>(param_2);

+    plVar1 = *(longlong **)(this + 0x70);

+    for (plVar6 = *(longlong **)(this + 0x68); plVar6 != plVar1; plVar6 = plVar6 + 1) {

+      pCVar2 = (CDataSourceReader *)*plVar6;

+      if ((*(__uint64 *)(pCVar2 + 0x48) == _Var5) &&

+         (this_00 = GetDataSourceProxy(this,_Var5,*(__uint64 *)(pCVar2 + 0x50)),

+         this_00 != (BamoDataSourceProxy *)0x0)) {

+        lVar4 = DataSourceProxy::RegisterReader((DataSourceProxy *)this_00,pCVar2);

+        if (((lVar4 + 0x80000000U & 0x80000000) == 0) && (lVar4 != -0x7ff8fffb)) {

+          bVar3 = true;

+        }

+        else {

+          bVar3 = false;

+        }

+        if (bVar3) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::_FailFast_Unexpected

+                    (unaff_retaddr,0xfa,

+                     "onecoreuap\\windows\\dwm\\dwmcore\\engine\\dataprovidermanager.cpp");

+        }

+        *(byte *)(*plVar6 + 0x58) = *(byte *)(*plVar6 + 0x58) & 0xfd;

+      }

+    }

+    RemoveProcessedReadersFromReadyList(this);

+    lVar4 = 0;

+  }

+  return lVar4;

+}

+
```

## `CDDisplaySwapChain::CreateScanout`  (modified)

```diff
--- CDDisplaySwapChain::CreateScanout
+++ CDDisplaySwapChain::CreateScanout
@@ -1,2 +1,260 @@
-Failed to decompile dwmcore.dll - .ProgramDB CDDisplaySwapChain::CreateScanout : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* protected: long __cdecl CDDisplaySwapChain::CreateScanout(unsigned int,struct

+   DWM_PRESENT_MULTIPLANE_OVERLAY const * __ptr64,unsigned int,unsigned int,struct

+   Windows::Devices::Display::Core::IDisplayScanout * __ptr64 * __ptr64) __ptr64 */

+

+long __thiscall

+CDDisplaySwapChain::CreateScanout

+          (CDDisplaySwapChain *this,uint param_1,DWM_PRESENT_MULTIPLANE_OVERLAY *param_2,

+          uint param_3,uint param_4,IDisplayScanout **param_5)

+

+{

+  undefined1 auVar1 [16];

+  uint uVar2;

+  undefined4 uVar3;

+  ulonglong uVar4;

+  int iVar5;

+  undefined4 uVar6;

+  uint uVar7;

+  int iVar8;

+  longlong lVar9;

+  DWM_PRESENT_MULTIPLANE_OVERLAY *pDVar10;

+  undefined4 in_register_0000008c;

+  code *pcVar11;

+  int iVar12;

+  undefined4 uVar13;

+  undefined4 uVar14;

+  undefined1 auStackY_248 [32];

+  uint uVar15;

+  int local_1e8;

+  CDDisplaySwapChain *local_1e0;

+  undefined4 local_1d8;

+  IDisplayScanout *local_1d0;

+  longlong *local_1c8 [2];

+  int local_1b8;

+  int local_1b4;

+  int local_1b0;

+  int local_1ac;

+  int local_1a8;

+  int local_1a4;

+  int local_1a0;

+  int local_19c;

+  uint local_198;

+  int local_190;

+  undefined4 uStack_18c;

+  undefined8 local_188;

+  undefined8 local_180;

+  undefined4 uStack_178;

+  undefined4 uStack_174;

+  int local_168;

+  int local_164;

+  int local_160;

+  int local_15c;

+  int local_158;

+  undefined4 uStack_154;

+  undefined8 local_150;

+  IDisplayScanout **local_148;

+  undefined4 local_128;

+  int iStack_124;

+  int iStack_120;

+  undefined4 uStack_11c;

+  uint uStack_118;

+  int iStack_114;

+  int iStack_110;

+  undefined4 uStack_10c;

+  undefined4 local_108;

+  undefined4 uStack_104;

+  undefined4 uStack_100;

+  undefined4 uStack_fc;

+  undefined4 local_f8;

+  undefined1 auStack_f4 [12];

+  undefined8 local_b8;

+  undefined8 uStack_b0;

+  ulonglong local_a8;

+  

+  local_a8 = __security_cookie ^ (ulonglong)auStackY_248;

+  local_148 = param_5;

+  iVar12 = 1;

+  if ((param_1 == 1) && (((byte)param_2[0x10] & 4) != 0)) {

+    iVar12 = 2;

+  }

+  uVar15 = 0;

+  local_1e0 = (CDDisplaySwapChain *)0x0;

+  local_198 = (uint)(this[0x115] != (CDDisplaySwapChain)0x0);

+  local_1c8[0] = (longlong *)0x0;

+  local_1d0 = (IDisplayScanout *)0x0;

+  iVar8 = (**(code **)(**(longlong **)(this + 0x180) + 0x30))

+                    (*(longlong **)(this + 0x180),*(undefined8 *)(this + 0x1a8),&local_1d0,

+                     CONCAT44(in_register_0000008c,param_3));

+  if (iVar8 < 0) {

+    uVar15 = 0x57b;

+  }

+  else {

+    if (local_1e0 != (CDDisplaySwapChain *)0x0) {

+      (**(code **)(*(longlong *)local_1e0 + 0x10))();

+    }

+    iVar8 = (*(code *)**(undefined8 **)local_1d0)();

+    if (iVar8 < 0) {

+      uVar15 = 0x57c;

+    }

+    else {

+      pDVar10 = param_2;

+      if (param_1 != 0) {

+        do {

+          lVar9 = 0;

+          local_128 = *(undefined4 *)(pDVar10 + 0x10);

+          iStack_124 = *(int *)(pDVar10 + 0x14);

+          iVar5 = *(int *)(pDVar10 + 0x18);

+          uVar13 = *(undefined4 *)(pDVar10 + 0x1c);

+          local_1d8 = 0;

+          uVar2 = *(uint *)(pDVar10 + 0x20);

+          iStack_114 = *(int *)(pDVar10 + 0x24);

+          iVar8 = *(int *)(pDVar10 + 0x28);

+          uVar3 = *(undefined4 *)(pDVar10 + 0x2c);

+          uVar4 = *(ulonglong *)(pDVar10 + 0x30);

+          local_108 = (undefined4)uVar4;

+          uStack_104 = (undefined4)(uVar4 >> 0x20);

+          uStack_100 = (undefined4)*(undefined8 *)(pDVar10 + 0x38);

+          uStack_fc = (undefined4)((ulonglong)*(undefined8 *)(pDVar10 + 0x38) >> 0x20);

+          auVar1 = *(undefined1 (*) [16])(pDVar10 + 0x40);

+          uVar6 = *(undefined4 *)pDVar10;

+          uVar7 = *(uint *)(pDVar10 + 4);

+          local_f8 = auVar1._0_4_;

+          auStack_f4 = auVar1._4_12_;

+          iStack_120 = iVar5;

+          uStack_11c = uVar13;

+          uStack_118 = uVar2;

+          iStack_110 = iVar8;

+          uStack_10c = uVar3;

+          if ((*(longlong **)(pDVar10 + 8) != (longlong *)0x0) &&

+             (lVar9 = (**(code **)(**(longlong **)(pDVar10 + 8) + 0x30))(), lVar9 == 0)) {

+            iVar8 = -0x7ff8ffa9;

+            uVar15 = 0x58a;

+            goto LAB_0;

+          }

+          local_150 = CONCAT44(uStack_118,uStack_11c);

+          local_158 = iVar5;

+          uStack_154 = uVar13;

+          if (iVar12 == 1) {

+            local_b8 = CONCAT44(uStack_100,uStack_104);

+            uStack_b0 = CONCAT44(local_f8,uStack_fc);

+            local_180 = CONCAT44(iStack_110,iStack_114);

+            uStack_178 = uStack_10c;

+            uStack_174 = local_108;

+            local_1e8 = iStack_114;

+            uVar13 = uStack_10c;

+            uVar14 = local_108;

+            TMilRect<int,tagRECT,D2D_POINTANDSIZE_L,RectUniqueness::_CMilRectL_>::IntersectUnsafe

+                      ((TMilRect<int,tagRECT,D2D_POINTANDSIZE_L,RectUniqueness::_CMilRectL_> *)

+                       &local_b8,

+                       (TMilRect<int,struct_tagRECT,struct_D2D_POINTANDSIZE_L,struct_RectUniqueness::_CMilRectL_>

+                        *)&local_180);

+            local_188 = CONCAT44(uVar14,uVar13);

+            local_190 = iVar8;

+            uStack_18c = uVar3;

+            local_180 = uVar4;

+          }

+          else {

+            local_b8 = CONCAT44(iStack_120,iStack_124);

+            uStack_b0 = CONCAT44(uStack_118,uStack_11c);

+            local_1e8 = iStack_124;

+            local_180 = (ulonglong)uVar2;

+            local_190 = iVar5;

+            local_188 = local_150;

+          }

+          local_168 = (int)local_b8;

+          local_160 = (int)uStack_b0 - local_168;

+          local_164 = (int)((ulonglong)local_b8 >> 0x20);

+          local_15c = (int)((ulonglong)uStack_b0 >> 0x20) - local_164;

+          local_1b0 = (int)local_188 - local_1e8;

+          local_1ac = (int)local_180 - local_190;

+          local_1b8 = local_1e8;

+          local_19c = uVar2 - local_158;

+          local_1b4 = local_190;

+          local_1a0 = (int)local_150 - iStack_124;

+          local_1a4 = local_158;

+          local_1a8 = iStack_124;

+          iVar8 = (**(code **)(*(longlong *)local_1e0 + 0x60))(local_1e0,uVar7 & 0xff,uVar6,lVar9);

+          if (iVar8 < 0) {

+            uVar15 = 0x5ad;

+            goto LAB_0;

+          }

+          if ((char)uVar7 != '\0') {

+            iVar8 = (**(code **)(*(longlong *)local_1e0 + 0x38))(local_1e0,uVar6,1,0xffffffff);

+            if (iVar8 < 0) {

+              uVar15 = 0x5b4;

+              goto LAB_0;

+            }

+            iVar8 = (**(code **)(*(longlong *)local_1e0 + 0x80))();

+            if (iVar8 < 0) {

+              uVar15 = 0x5b8;

+              goto LAB_0;

+            }

+            pcVar11 = *(code **)(*(longlong *)local_1e0 + 0x70);

+            GetDisplayRotationFromDxgiRotation(local_1e0,auVar1._4_4_);

+            iVar8 = (*pcVar11)();

+            if (iVar8 < 0) {

+              uVar15 = 0x5bd;

+              goto LAB_0;

+            }

+          }

+          uVar15 = uVar15 + 1;

+          param_5 = local_148;

+          pDVar10 = pDVar10 + 0x80;

+        } while (uVar15 < param_1);

+      }

+      if (iVar12 == 2) {

+        local_1a8 = *(int *)(param_2 + 0x24);

+        local_1b8 = *(int *)(param_2 + 0x14);

+        local_1a4 = *(int *)(param_2 + 0x28);

+        local_1b4 = *(int *)(param_2 + 0x18);

+        local_1a0 = *(int *)(param_2 + 0x2c) - local_1a8;

+        local_1b0 = *(int *)(param_2 + 0x1c) - local_1b8;

+        local_19c = *(int *)(param_2 + 0x30) - local_1a4;

+        local_1ac = *(int *)(param_2 + 0x20) - local_1b4;

+        iVar8 = (**(code **)(*(longlong *)local_1e0 + 0x40))(local_1e0,0,&local_1b8,&local_1a8);

+        if (iVar8 < 0) {

+          uVar15 = 0x5c8;

+          goto LAB_0;

+        }

+      }

+      if (local_1c8[0] != (longlong *)0x0) {

+        (**(code **)(*local_1c8[0] + 0x10))();

+      }

+      (*(code *)**(undefined8 **)local_1e0)();

+      iVar8 = (**(code **)(*local_1c8[0] + 0x38))();

+      if (-1 < iVar8) {

+        *param_5 = local_1d0;

+        local_1d0 = (IDisplayScanout *)0x0;

+        goto LAB_1;

+      }

+      uVar15 = 0x5d0;

+    }

+  }

+LAB_0:

+  MilInstrumentationCheckHR_MaybeFailFast(0x14,(long *)0x0,0,iVar8,uVar15,(void *)0x0);

+LAB_1:

+  wil::

+  com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+  ::

+  ~com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+            ((com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+              *)local_1c8);

+  wil::

+  com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+  ::

+  ~com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+            ((com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+              *)&local_1e0);

+  wil::

+  com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+  ::

+  ~com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+            ((com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+              *)&local_1d0);

+  return iVar8;

+}

+
```

## `CCaptureRenderTarget::UpdateTargetDirty`  (modified)

```diff
--- CCaptureRenderTarget::UpdateTargetDirty
+++ CCaptureRenderTarget::UpdateTargetDirty
@@ -1,2 +1,63 @@
-Failed to decompile dwmcore.dll - .ProgramDB CCaptureRenderTarget::UpdateTargetDirty : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* protected: virtual void __cdecl CCaptureRenderTarget::UpdateTargetDirty(class CTreeDirty const &

+   __ptr64,bool) __ptr64 */

+

+void __thiscall

+CCaptureRenderTarget::UpdateTargetDirty(CCaptureRenderTarget *this,CTreeDirty *param_1,bool param_2)

+

+{

+  CTargetDirtyBase<8> *this_00;

+  CMergedRectBase<4> *this_01;

+  longlong lVar1;

+  bool bVar2;

+  span<TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded>_const_,_1>

+  *psVar3;

+  span<TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded>_const_,_1>

+  local_28 [16];

+  

+  this_00 = (CTargetDirtyBase<8> *)(this + 0x140);

+  bVar2 = wil::details::

+          FeatureImpl<__WilFeatureTraits_Feature_Capture_DirtyRegionOcclusion_ExclusionFix>::

+          __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_Capture_DirtyRegionOcclusion_ExclusionFix>

+                               *)&`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_Capture_DirtyRegionOcclusion_ExclusionFix>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_Capture_DirtyRegionOcclusion_ExclusionFix>::GetImpl(void)'

+                                  ::__l2::impl);

+  if (bVar2) {

+    CTargetDirtyBase<8>::AddDirtyRegionAndCalcOcclusion(this_00,param_1);

+  }

+  else if (this[0xa30] == (CCaptureRenderTarget)0x0) {

+    CTreeDirty::GetDirtyRects(param_1);

+    CTargetDirtyBase<8>::AddDirtyRects(this_00,local_28);

+  }

+  if (((this[0xb64] != (CCaptureRenderTarget)0x0) && (bVar2 = true, *(int *)(this + 0xc4) == 1)) ||

+     (bVar2 = false, *(int *)(this + 0x150) != 0)) {

+    this_01 = (CMergedRectBase<4> *)(this + 0xab8);

+    if (*(int *)this_01 != 0) {

+      psVar3 = (span<TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded>_const_,_1>

+                *)CMergedRectBase<4>::GetRects(this_01);

+      CTargetDirtyBase<8>::AddDirtyRects(this_00,psVar3);

+      CMergedRectBase<4>::Reset(this_01);

+    }

+    if (bVar2) {

+      AddCursorInvalidRects(this);

+    }

+  }

+  if (param_2) {

+    lVar1 = *(longlong *)(this + 0xc18);

+    if (lVar1 != *(longlong *)(this + 0xc20)) {

+      *(longlong *)(this + 0xc20) = lVar1;

+    }

+    if (*(int *)(this + 0x150) != 0) {

+      if (*(CRegion **)(this + 0x310) != (CRegion *)0x0) {

+        CRegion::GetRectangles

+                  (*(CRegion **)(this + 0x310),

+                   (vector<tagRECT,std::allocator<tagRECT>_> *)(this + 0xc18));

+      }

+      if (*(int *)(this + 0xb0) != 2) {

+        CTargetDirtyBase<8>::SetFullDirty(this_00);

+      }

+    }

+  }

+  this[0xb64] = (CCaptureRenderTarget)0x0;

+  return;

+}

+
```

## `VertexTransfer::SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,1,Vertex_UVxN<VertexXYW_ColorDW>_>`  (modified)

```diff
--- VertexTransfer::SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,1,Vertex_UVxN<VertexXYW_ColorDW>_>
+++ VertexTransfer::SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,1,Vertex_UVxN<VertexXYW_ColorDW>_>
@@ -1,2 +1,233 @@
-Failed to decompile dwmcore.dll - .ProgramDB VertexTransfer::SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,1,Vertex_UVxN<VertexXYW_ColorDW>_> : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+void VertexTransfer::

+     SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,1,Vertex_UVxN<VertexXYW_ColorDW>_>

+               (longlong param_1,undefined8 *param_2)

+

+{

+  float *pfVar1;

+  float *pfVar2;

+  float fVar3;

+  undefined8 uVar4;

+  uint uVar5;

+  short sVar6;

+  short sVar7;

+  short sVar8;

+  short sVar9;

+  undefined1 auVar10 [16];

+  float fVar11;

+  float fVar12;

+  undefined4 uVar13;

+  float *pfVar14;

+  float *pfVar15;

+  int iVar16;

+  ulonglong uVar17;

+  float *pfVar18;

+  undefined8 *puVar19;

+  float *pfVar20;

+  float *pfVar21;

+  ulonglong uVar22;

+  float *pfVar23;

+  undefined8 *puVar24;

+  uint uVar25;

+  float extraout_XMM0_Da;

+  float fVar26;

+  float extraout_XMM0_Da_00;

+  float fVar27;

+  float extraout_XMM0_Db;

+  float fVar29;

+  undefined8 uVar28;

+  float extraout_XMM0_Db_00;

+  undefined4 extraout_XMM0_Dc;

+  undefined4 extraout_XMM0_Dc_00;

+  undefined4 extraout_XMM0_Dd;

+  undefined4 extraout_XMM0_Dd_00;

+  float fVar30;

+  float fVar31;

+  float fVar32;

+  float fVar33;

+  float fVar34;

+  float fVar35;

+  float fVar36;

+  float fVar37;

+  float fVar38;

+  undefined1 auVar39 [16];

+  undefined1 auVar40 [16];

+  undefined1 auVar41 [16];

+  

+  uVar25 = 0;

+  uVar5 = *(uint *)(param_1 + 0x14);

+  fVar33 = (float)*param_2;

+  fVar34 = (float)((ulonglong)*param_2 >> 0x20);

+  fVar35 = (float)param_2[2];

+  fVar36 = (float)((ulonglong)param_2[2] >> 0x20);

+  uVar4 = param_2[6];

+  fVar3 = *(float *)(param_1 + 0x2c);

+  uVar22 = (ulonglong)(*(uint *)(param_1 + 0x28) >> 1);

+  if (uVar5 != 0) {

+    do {

+      fVar30 = 1.0;

+      iVar16 = uVar25 + 1;

+      pfVar21 = (float *)((longlong)(int)(uVar25 * *(int *)(param_1 + 0x10)) +

+                         *(longlong *)(param_1 + 8));

+      fVar27 = pfVar21[3];

+      pfVar20 = (float *)((longlong)(iVar16 * *(int *)(param_1 + 0x10)) + *(longlong *)(param_1 + 8)

+                         );

+      puVar24 = (undefined8 *)

+                ((longlong)(int)(*(int *)(param_1 + 0x40) * uVar25) + *(longlong *)(param_1 + 0x38))

+      ;

+      puVar19 = (undefined8 *)

+                ((longlong)(iVar16 * *(int *)(param_1 + 0x40)) + *(longlong *)(param_1 + 0x38));

+      pfVar23 = (float *)((longlong)(iVar16 * *(int *)(param_1 + 0x20)) +

+                         *(longlong *)(param_1 + 0x18));

+      pfVar18 = (float *)((longlong)(int)(*(int *)(param_1 + 0x20) * uVar25) +

+                         *(longlong *)(param_1 + 0x18));

+      auVar39._0_4_ = (int)(((float)((uint)fVar27 & 0xff) + 0.0) * 1.0 * fVar3);

+      auVar39._4_4_ = (int)(((float)((uint)fVar27 & 0xff00) + 0.0) * 0.00390625 * fVar3);

+      auVar39._8_4_ = (int)(((float)((uint)fVar27 & 0xff0000) + 0.0) * 1.5258789e-05 * fVar3);

+      auVar39._12_4_ =

+           (int)(((float)(int)((uint)fVar27 & 0xff000000 ^ 0x80000000) + 2.1474836e+09) *

+                 5.9604645e-08 * fVar3);

+      fVar27 = *pfVar18;

+      fVar31 = pfVar18[1];

+      fVar32 = pfVar18[2];

+      auVar39 = packssdw(auVar39,auVar39);

+      sVar6 = auVar39._0_2_;

+      sVar7 = auVar39._2_2_;

+      sVar8 = auVar39._4_2_;

+      sVar9 = auVar39._6_2_;

+      uVar13 = DirectX::XMVectorPermute<0,1,6,7>(*pfVar21,0x3f800000);

+      fVar26 = extraout_XMM0_Da - fVar27;

+      fVar29 = extraout_XMM0_Db - fVar31;

+      fVar37 = fVar29 * fVar35 + fVar26 * fVar33;

+      fVar38 = fVar29 * fVar36 + fVar26 * fVar34;

+      auVar41._4_4_ = -(uint)(fVar38 == 0.0);

+      auVar41._0_4_ = -(uint)(fVar37 == 0.0);

+      auVar41._8_4_ = -(uint)(fVar29 * fVar35 + fVar26 * fVar33 == 0.0);

+      auVar41._12_4_ = -(uint)(fVar29 * fVar36 + fVar26 * fVar34 == 0.0);

+      uVar13 = movmskps(uVar13,auVar41);

+      fVar26 = fVar30;

+      if (((byte)uVar13 & 3) != 3) {

+        fVar26 = (fVar30 / SQRT(fVar37 * fVar37 + fVar38 * fVar38)) * fVar32;

+      }

+      uVar13 = DirectX::MathInternal::PermuteHelper<228,0,0,0,1>::Permute

+                         (fVar30,CONCAT13((0 < sVar9) * (sVar9 < 0x100) * auVar39[6] -

+                                          (0xff < sVar9),

+                                          CONCAT12((0 < sVar8) * (sVar8 < 0x100) * auVar39[4] -

+                                                   (0xff < sVar8),

+                                                   CONCAT11((0 < sVar7) * (sVar7 < 0x100) *

+                                                            auVar39[2] - (0xff < sVar7),

+                                                            (0 < sVar6) * (sVar6 < 0x100) *

+                                                            auVar39[0] - (0xff < sVar6)))));

+      uVar28 = DirectX::XMVectorPermute<0,1,6,7>

+                         (fVar31 * fVar35 + (float)uVar4 + fVar27 * fVar33 + fVar26 * fVar37,uVar13)

+      ;

+      *puVar24 = uVar28;

+      *(undefined4 *)(puVar24 + 1) = extraout_XMM0_Dc;

+      *(undefined4 *)((longlong)puVar24 + 0xc) = extraout_XMM0_Dd;

+      if ((1.0 < fVar26) && (pfVar18[3] == 0.0)) {

+        fVar26 = 1.0;

+      }

+      if ((int)uVar22 != 0) {

+        uVar17 = uVar22 & 0xffffffff;

+        pfVar1 = pfVar21;

+        do {

+          pfVar14 = pfVar1 + 4;

+          fVar27 = pfVar1[5];

+          fVar31 = pfVar1[6];

+          fVar32 = pfVar1[7];

+          pfVar1 = (float *)(((longlong)pfVar18 - (longlong)pfVar21) + (longlong)pfVar14);

+          fVar30 = pfVar1[1];

+          fVar29 = pfVar1[2];

+          fVar37 = pfVar1[3];

+          pfVar15 = (float *)(((longlong)pfVar18 - (longlong)pfVar21) + (longlong)pfVar14);

+          fVar38 = pfVar15[1];

+          fVar11 = pfVar15[2];

+          fVar12 = pfVar15[3];

+          pfVar2 = (float *)(((longlong)puVar24 - (longlong)pfVar21) + (longlong)pfVar14);

+          *pfVar2 = (*pfVar14 - *pfVar1) * fVar26 + *pfVar15;

+          pfVar2[1] = (fVar27 - fVar30) * fVar26 + fVar38;

+          pfVar2[2] = (fVar31 - fVar29) * fVar26 + fVar11;

+          pfVar2[3] = (fVar32 - fVar37) * fVar26 + fVar12;

+          uVar17 = uVar17 - 1;

+          pfVar1 = pfVar14;

+        } while (uVar17 != 0);

+      }

+      fVar27 = pfVar20[3];

+      fVar26 = 1.0;

+      fVar31 = *pfVar23;

+      fVar32 = pfVar23[1];

+      fVar30 = pfVar23[2];

+      auVar40._0_4_ = (int)(((float)((uint)fVar27 & 0xff) + 0.0) * 1.0 * fVar3);

+      auVar40._4_4_ = (int)(((float)((uint)fVar27 & 0xff00) + 0.0) * 0.00390625 * fVar3);

+      auVar40._8_4_ = (int)(((float)((uint)fVar27 & 0xff0000) + 0.0) * 1.5258789e-05 * fVar3);

+      auVar40._12_4_ =

+           (int)(((float)(int)((uint)fVar27 & 0xff000000 ^ 0x80000000) + 2.1474836e+09) *

+                 5.9604645e-08 * fVar3);

+      auVar41 = packssdw(auVar40,auVar40);

+      sVar6 = auVar41._0_2_;

+      sVar7 = auVar41._2_2_;

+      sVar8 = auVar41._4_2_;

+      sVar9 = auVar41._6_2_;

+      uVar13 = DirectX::XMVectorPermute<0,1,6,7>(*pfVar20,0x3f800000);

+      fVar27 = extraout_XMM0_Da_00 - fVar31;

+      fVar29 = extraout_XMM0_Db_00 - fVar32;

+      fVar37 = fVar29 * fVar35 + fVar27 * fVar33;

+      fVar38 = fVar29 * fVar36 + fVar27 * fVar34;

+      auVar10._4_4_ = -(uint)(fVar38 == 0.0);

+      auVar10._0_4_ = -(uint)(fVar37 == 0.0);

+      auVar10._8_4_ = -(uint)(fVar29 * fVar35 + fVar27 * fVar33 == 0.0);

+      auVar10._12_4_ = -(uint)(fVar29 * fVar36 + fVar27 * fVar34 == 0.0);

+      uVar13 = movmskps(uVar13,auVar10);

+      fVar27 = fVar26;

+      if (((byte)uVar13 & 3) != 3) {

+        fVar27 = (fVar26 / SQRT(fVar37 * fVar37 + fVar38 * fVar38)) * fVar30;

+      }

+      uVar13 = DirectX::MathInternal::PermuteHelper<228,0,0,0,1>::Permute

+                         (fVar26,CONCAT13((0 < sVar9) * (sVar9 < 0x100) * auVar41[6] -

+                                          (0xff < sVar9),

+                                          CONCAT12((0 < sVar8) * (sVar8 < 0x100) * auVar41[4] -

+                                                   (0xff < sVar8),

+                                                   CONCAT11((0 < sVar7) * (sVar7 < 0x100) *

+                                                            auVar41[2] - (0xff < sVar7),

+                                                            (0 < sVar6) * (sVar6 < 0x100) *

+                                                            auVar41[0] - (0xff < sVar6)))));

+      uVar28 = DirectX::XMVectorPermute<0,1,6,7>

+                         (fVar32 * fVar35 + (float)uVar4 + fVar31 * fVar33 + fVar27 * fVar37,uVar13)

+      ;

+      *puVar19 = uVar28;

+      *(undefined4 *)(puVar19 + 1) = extraout_XMM0_Dc_00;

+      *(undefined4 *)((longlong)puVar19 + 0xc) = extraout_XMM0_Dd_00;

+      if ((1.0 < fVar27) && (pfVar23[3] == 0.0)) {

+        fVar27 = 1.0;

+      }

+      if ((int)uVar22 != 0) {

+        uVar17 = uVar22 & 0xffffffff;

+        pfVar18 = pfVar20;

+        do {

+          pfVar15 = pfVar18 + 4;

+          fVar31 = pfVar18[5];

+          fVar32 = pfVar18[6];

+          fVar30 = pfVar18[7];

+          pfVar18 = (float *)(((longlong)pfVar23 - (longlong)pfVar20) + (longlong)pfVar15);

+          fVar26 = pfVar18[1];

+          fVar29 = pfVar18[2];

+          fVar37 = pfVar18[3];

+          pfVar21 = (float *)(((longlong)pfVar23 - (longlong)pfVar20) + (longlong)pfVar15);

+          fVar38 = pfVar21[1];

+          fVar11 = pfVar21[2];

+          fVar12 = pfVar21[3];

+          pfVar1 = (float *)(((longlong)puVar19 - (longlong)pfVar20) + (longlong)pfVar15);

+          *pfVar1 = (*pfVar15 - *pfVar18) * fVar27 + *pfVar21;

+          pfVar1[1] = (fVar31 - fVar26) * fVar27 + fVar38;

+          pfVar1[2] = (fVar32 - fVar29) * fVar27 + fVar11;

+          pfVar1[3] = (fVar30 - fVar37) * fVar27 + fVar12;

+          uVar17 = uVar17 - 1;

+          pfVar18 = pfVar15;

+        } while (uVar17 != 0);

+      }

+      uVar25 = uVar25 + 2;

+    } while (uVar25 < uVar5);

+  }

+  return;

+}

+
```

## `DirectX::MathInternal::PermuteHelper<228,0,0,0,1>::Permute`  (modified)

```diff
--- DirectX::MathInternal::PermuteHelper<228,0,0,0,1>::Permute
+++ CDDisplaySwapChain::GetDisplayRotationFromDxgiRotation
@@ -1,10 +1,23 @@
 

-/* public: static union __m128 __vectorcall

-   DirectX::MathInternal::PermuteHelper<228,0,0,0,1>::Permute(union __m128,union __m128) */

+/* protected: enum Windows::Devices::Display::Core::DisplayRotation __cdecl

+   CDDisplaySwapChain::GetDisplayRotationFromDxgiRotation(enum DXGI_MODE_ROTATION)const __ptr64 */

 

-undefined8 DirectX::MathInternal::PermuteHelper<228,0,0,0,1>::Permute(undefined8 param_1)

+DisplayRotation __thiscall

+CDDisplaySwapChain::GetDisplayRotationFromDxgiRotation

+          (CDDisplaySwapChain *this,DXGI_MODE_ROTATION param_1)

 

 {

-  return param_1;

+  if (param_1 != 1) {

+    if (param_1 == 2) {

+      return 1;

+    }

+    if (param_1 == 3) {

+      return 2;

+    }

+    if (param_1 == 4) {

+      return 3;

+    }

+  }

+  return 0;

 }
```

## `COverlaySwapChain::COverlaySwapChain`  (modified)

```diff
--- COverlaySwapChain::COverlaySwapChain
+++ COverlaySwapChain::COverlaySwapChain
@@ -1,2 +1,72 @@
-Failed to decompile dwmcore.dll - .ProgramDB COverlaySwapChain::COverlaySwapChain : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* protected: __cdecl COverlaySwapChain::COverlaySwapChain(class CD3DDevice * __ptr64,struct

+   PixelFormatInfo const & __ptr64,class RenderTargetInfo const & __ptr64,class RefreshRateInfo

+   const & __ptr64,unsigned int,unsigned int,struct _LUID) __ptr64 */

+

+COverlaySwapChain * __thiscall

+COverlaySwapChain::COverlaySwapChain

+          (COverlaySwapChain *this,CD3DDevice *param_1,PixelFormatInfo *param_2,

+          RenderTargetInfo *param_3,RefreshRateInfo *param_4,uint param_5,uint param_6,_LUID param_7

+          )

+

+{

+  undefined8 uVar1;

+  undefined8 uVar2;

+  bool bVar3;

+  undefined1 auStack_58 [32];

+  undefined8 local_38;

+  undefined4 local_30;

+  undefined8 local_2c;

+  undefined8 uStack_24;

+  ulonglong local_18;

+  

+  local_18 = __security_cookie ^ (ulonglong)auStack_58;

+  *(undefined8 *)(this + 0x10) = 0;

+  *(undefined ***)this = &CBaseAnimation::_vftable__for__IAnimationResource__;

+  *(undefined4 *)(this + 8) = 0;

+  *(undefined8 *)(this + 0x18) = 0;

+  *(undefined8 *)(this + 0x20) = 0;

+  *(undefined8 *)(this + 0x28) = 0;

+  *(undefined8 *)(this + 0x30) = 0;

+  *(undefined8 *)(this + 0x38) = 0;

+  wil::com_ptr_t<CD3DDevice,wil::err_returncode_policy>::

+  com_ptr_t<CD3DDevice,wil::err_returncode_policy>

+            ((com_ptr_t<CD3DDevice,wil::err_returncode_policy> *)(this + 0x40),param_1);

+  *(undefined4 *)(this + 0x58) = 0;

+  *(uint *)(this + 0x48) = param_5;

+  *(_LUID *)(this + 0x4c) = param_7;

+  *(uint *)(this + 0x54) = param_6;

+  *(undefined8 *)(this + 0x5c) = *(undefined8 *)param_2;

+  *(undefined4 *)(this + 100) = *(undefined4 *)(param_2 + 8);

+  uVar1 = *(undefined8 *)(param_3 + 8);

+  *(undefined8 *)(this + 0x68) = *(undefined8 *)param_3;

+  *(undefined8 *)(this + 0x70) = uVar1;

+  *(undefined8 *)(this + 0x78) = *(undefined8 *)(param_3 + 0x10);

+  uVar1 = *(undefined8 *)(param_4 + 8);

+  *(undefined8 *)(this + 0x80) = *(undefined8 *)param_4;

+  *(undefined8 *)(this + 0x88) = uVar1;

+  uVar1 = *(undefined8 *)(param_4 + 0x18);

+  *(undefined8 *)(this + 0x90) = *(undefined8 *)(param_4 + 0x10);

+  *(undefined8 *)(this + 0x98) = uVar1;

+  uVar1 = *(undefined8 *)(param_4 + 0x20);

+  uVar2 = *(undefined8 *)(param_4 + 0x28);

+  *(undefined8 *)(this + 0xb0) = 0;

+  *(undefined8 *)(this + 0xa0) = uVar1;

+  *(undefined8 *)(this + 0xa8) = uVar2;

+  *(COverlaySwapChain **)(this + 0xb8) = this + 0xc0;

+  *(undefined4 *)(this + 0xc0) = 0;

+  bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_DesktopDWMCursor>::

+          __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_DesktopDWMCursor> *)

+                              &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_DesktopDWMCursor>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_DesktopDWMCursor>::GetImpl(void)'

+                               ::__l2::impl);

+  if (bVar3) {

+    local_38 = *(undefined8 *)(this + 0x4c);

+    local_30 = *(undefined4 *)(this + 0x48);

+    local_2c = 0;

+    uStack_24 = 0x100000000;

+    NtHWCursorUpdatePointer(&local_38,0);

+  }

+  return this;

+}

+
```

## `CTreeDirty::ClearDirtyRectAnnotationLists`  (modified)

```diff
--- CTreeDirty::ClearDirtyRectAnnotationLists
+++ wil::details::FeatureImpl<__WilFeatureTraits_Feature_DesktopDWMCursor>::__private_IsEnabled
@@ -1,2 +1,2 @@
-Failed to decompile dwmcore.dll - .ProgramDB CTreeDirty::ClearDirtyRectAnnotationLists : Error: Decompile error: 
+Failed to decompile dwmcore.dll - .ProgramDB wil::details::FeatureImpl<__WilFeatureTraits_Feature_DesktopDWMCursor>::__private_IsEnabled : Error: Decompile error: 
 Marshaling error: Did not see expected closing element
```

## `CWarpRenderingEffect::EmitGeometry`  (modified)

```diff
--- CWarpRenderingEffect::EmitGeometry
+++ CWarpRenderingEffect::EmitGeometry
@@ -1,2 +1,810 @@
-Failed to decompile dwmcore.dll - .ProgramDB CWarpRenderingEffect::EmitGeometry : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* public: virtual long __cdecl CWarpRenderingEffect::EmitGeometry(class CD3DBatchExecutionContext *

+   __ptr64,class CRenderingBatchCommand const * __ptr64)const __ptr64 */

+

+long __thiscall

+CWarpRenderingEffect::EmitGeometry

+          (CWarpRenderingEffect *this,CD3DBatchExecutionContext *param_1,

+          CRenderingBatchCommand *param_2)

+

+{

+  CD3DBatchExecutionContext *pCVar1;

+  uint uVar2;

+  short *psVar3;

+  undefined8 *puVar4;

+  uint uVar5;

+  uint uVar6;

+  longlong lVar7;

+  longlong lVar8;

+  longlong *plVar9;

+  code *pcVar10;

+  short sVar11;

+  short sVar12;

+  short sVar13;

+  short sVar14;

+  short sVar15;

+  short sVar16;

+  short sVar17;

+  float fVar18;

+  float fVar19;

+  bool bVar20;

+  int iVar21;

+  float fVar22;

+  long lVar23;

+  undefined8 *puVar24;

+  undefined8 *puVar25;

+  short *psVar26;

+  undefined8 *puVar27;

+  float *pfVar28;

+  uint uVar29;

+  uint uVar30;

+  ulonglong uVar31;

+  longlong lVar32;

+  int iVar33;

+  short sVar34;

+  int iVar35;

+  ulonglong uVar36;

+  uint uVar37;

+  undefined8 *puVar38;

+  float *pfVar39;

+  ulonglong uVar40;

+  void *pvVar41;

+  uint uVar42;

+  int iVar43;

+  ulonglong uVar44;

+  undefined8 uVar45;

+  undefined8 extraout_XMM0_Qb;

+  undefined8 extraout_XMM0_Qb_00;

+  float fVar46;

+  float fVar47;

+  float fVar48;

+  float fVar49;

+  float fVar50;

+  float fVar51;

+  void *unaff_retaddr;

+  long local_res20 [2];

+  uint uVar52;

+  undefined8 in_stack_fffffffffffffe28;

+  int *piVar53;

+  longlong lVar54;

+  undefined8 local_198;

+  longlong local_190;

+  int local_188;

+  uint local_184;

+  undefined8 local_180;

+  int local_178;

+  int local_174;

+  uint local_170;

+  float local_16c;

+  char local_168;

+  ulonglong local_160;

+  int local_158;

+  uint local_154;

+  undefined4 local_148;

+  int local_144 [3];

+  float local_138;

+  float local_134;

+  float local_130;

+  float local_12c;

+  float local_128;

+  float local_124;

+  float local_120;

+  float local_11c;

+  undefined8 local_118;

+  undefined8 uStack_110;

+  float local_108;

+  float fStack_104;

+  undefined4 uStack_100;

+  float fStack_fc;

+  undefined4 local_f8;

+  undefined8 local_e8;

+  longlong local_e0;

+  undefined8 local_d8;

+  undefined8 uStack_d0;

+  undefined8 local_c8;

+  undefined8 uStack_c0;

+  

+  uVar29 = (uint)((ulonglong)in_stack_fffffffffffffe28 >> 0x20);

+  if (param_2[0x5c] != (CRenderingBatchCommand)0x0) {

+    CRenderingBatchCommand::EmitWarpFastPathGeometry(param_2,param_1);

+    return 0;

+  }

+  if (*(int *)param_2 == 4) {

+    lVar23 = CMegaRectBatchCommand::EmitGeometry((CMegaRectBatchCommand *)param_2,param_1);

+    return lVar23;

+  }

+  if (*(int *)param_2 == 5) {

+    lVar23 = CCpuClipAntialiasBatchCommand::EmitGeometry

+                       ((CCpuClipAntialiasBatchCommand *)param_2,param_1,false);

+    return lVar23;

+  }

+  local_e0 = *(longlong *)(*(longlong *)(param_2 + 8) + 0x10);

+  uVar5 = *(uint *)(local_e0 + 8);

+  if (uVar5 == 0) {

+    return 0;

+  }

+  uVar40 = *(ulonglong *)(local_e0 + 0x30);

+  uVar6 = *(uint *)(local_e0 + 0x14);

+  if ((uVar40 == 0) && ((ulonglong)uVar6 != 0)) {

+    (*(code *)`void_(__cdecl*&___ptr64___cdecl_gsl::details::get_terminate_handler(void))(void)'::

+              __l2::handler)();

+    pcVar10 = (code *)swi(3);

+    lVar23 = (*pcVar10)();

+    return lVar23;

+  }

+  lVar7 = *(longlong *)(param_1 + 0x18);

+  iVar21 = 0x30;

+  if (param_1[0x40] == (CD3DBatchExecutionContext)0x0) {

+    iVar21 = 0x10;

+  }

+  uVar2 = iVar21 + *(int *)(param_1 + 0x44) * 8;

+  if (*(uint *)(lVar7 + 0x38) < uVar2 * uVar5) {

+    CD3DBatchExecutionContext::Flush(param_1,8);

+    iVar21 = CD3DDynamicAppendBuffer::EnsureByteSpace

+                       ((CD3DDynamicAppendBuffer *)(lVar7 + 0x10),uVar2 * uVar5,false);

+    if (iVar21 < 0) {

+      uVar29 = 0x1fa;

+      goto LAB_0;

+    }

+    param_1[0x49] = (CD3DBatchExecutionContext)0x1;

+  }

+  pCVar1 = param_1 + 0x10;

+  if (param_1[0x49] != (CD3DBatchExecutionContext)0x0) {

+    param_1[0x49] = (CD3DBatchExecutionContext)0x0;

+    piVar53 = local_144;

+    local_144[0] = 0x30;

+    if (param_1[0x40] == (CD3DBatchExecutionContext)0x0) {

+      local_144[0] = 0x10;

+    }

+    local_148 = 0;

+    local_144[0] = local_144[0] + *(int *)(param_1 + 0x44) * 8;

+    local_e8 = *(undefined8 *)(*(longlong *)(param_1 + 0x18) + 0x18);

+    (**(code **)(**(longlong **)pCVar1 + 0x90))

+              (*(longlong **)pCVar1,0,1,&local_e8,piVar53,&local_148);

+    uVar29 = (uint)((ulonglong)piVar53 >> 0x20);

+  }

+  if ((*(longlong *)(lVar7 + 0x28) != 0) &&

+     ((uint)(*(int *)(lVar7 + 0x38) - *(int *)(lVar7 + 0x34)) / *(uint *)(lVar7 + 0x30) < uVar5)) {

+    *(uint *)(param_1 + 0x20) = *(uint *)(param_1 + 0x20) | 0x20;

+    lVar32 = *(longlong *)(param_1 + 0x18);

+    if (*(longlong *)(lVar32 + 0x28) != 0) {

+      plVar9 = *(longlong **)(*(longlong *)(lVar32 + 0x10) + 0x230);

+      (**(code **)(*plVar9 + 0x78))(plVar9,*(undefined8 *)(lVar32 + 0x18),0);

+      *(undefined8 *)(lVar32 + 0x28) = 0;

+      *(undefined4 *)(lVar32 + 0x30) = 0;

+      if (param_1[0x4a] == (CD3DBatchExecutionContext)0x0) {

+        plVar9 = *(longlong **)(*(longlong *)(lVar32 + 0x40) + 0x230);

+        (**(code **)(*plVar9 + 0x78))(plVar9,*(undefined8 *)(lVar32 + 0x48),0);

+        *(undefined8 *)(lVar32 + 0x58) = 0;

+        *(undefined4 *)(lVar32 + 0x60) = 0;

+        (**(code **)(**(longlong **)pCVar1 + 0x60))

+                  (*(longlong **)pCVar1,*(undefined4 *)(param_1 + 0x5c),

+                   *(undefined4 *)(param_1 + 0x50),0);

+      }

+      else {

+        (**(code **)(**(longlong **)pCVar1 + 0x68))();

+      }

+      *(int *)(param_1 + 0x80) = *(int *)(param_1 + 0x80) + 1;

+      *(undefined8 *)(param_1 + 0x58) = 0;

+      *(undefined4 *)(param_1 + 0x60) = 0;

+    }

+  }

+  if (uVar6 != 0) {

+    lVar32 = *(longlong *)(param_1 + 0x18);

+    if ((ulonglong)*(uint *)(lVar32 + 0x68) < (ulonglong)uVar6 * 2) {

+      CD3DBatchExecutionContext::Flush(param_1,0x10);

+      iVar21 = CD3DDynamicAppendBuffer::EnsureByteSpace

+                         ((CD3DDynamicAppendBuffer *)(lVar32 + 0x40),uVar6 * 2,false);

+      if (-1 < iVar21) {

+        (**(code **)(**(longlong **)(param_1 + 0x10) + 0x98))

+                  (*(longlong **)(param_1 + 0x10),*(undefined8 *)(lVar32 + 0x48),0x39);

+        goto LAB_1;

+      }

+      uVar29 = 0xbf;

+    }

+    else {

+LAB_1:

+      if (*(longlong *)(lVar32 + 0x58) != 0) {

+        if ((uint)(*(int *)(lVar32 + 0x68) - *(int *)(lVar32 + 100)) / *(uint *)(lVar32 + 0x60) <

+            uVar6) {

+          *(uint *)(param_1 + 0x20) = *(uint *)(param_1 + 0x20) | 0x40;

+          lVar8 = *(longlong *)(param_1 + 0x18);

+          if (*(longlong *)(lVar8 + 0x28) != 0) {

+            plVar9 = *(longlong **)(*(longlong *)(lVar8 + 0x10) + 0x230);

+            (**(code **)(*plVar9 + 0x78))(plVar9,*(undefined8 *)(lVar8 + 0x18),0);

+            *(undefined8 *)(lVar8 + 0x28) = 0;

+            *(undefined4 *)(lVar8 + 0x30) = 0;

+            if (param_1[0x4a] == (CD3DBatchExecutionContext)0x0) {

+              plVar9 = *(longlong **)(*(longlong *)(lVar8 + 0x40) + 0x230);

+              (**(code **)(*plVar9 + 0x78))(plVar9,*(undefined8 *)(lVar8 + 0x48),0);

+              *(undefined8 *)(lVar8 + 0x58) = 0;

+              *(undefined4 *)(lVar8 + 0x60) = 0;

+              plVar9 = *(longlong **)(param_1 + 0x10);

+              (**(code **)(*plVar9 + 0x60))

+                        (plVar9,*(undefined4 *)(param_1 + 0x5c),*(undefined4 *)(param_1 + 0x50),0);

+            }

+            else {

+              plVar9 = *(longlong **)(param_1 + 0x10);

+              (**(code **)(*plVar9 + 0x68))

+                        (plVar9,*(undefined4 *)(param_1 + 0x58),*(undefined4 *)(param_1 + 0x4c));

+            }

+            *(int *)(param_1 + 0x80) = *(int *)(param_1 + 0x80) + 1;

+            *(undefined8 *)(param_1 + 0x58) = 0;

+            *(undefined4 *)(param_1 + 0x60) = 0;

+          }

+        }

+        if (*(longlong *)(lVar32 + 0x58) != 0) goto LAB_2;

+      }

+      lVar8 = *(longlong *)(lVar32 + 0x40);

+      uVar37 = uVar6;

+      if (uVar6 < 300) {

+        uVar37 = 300;

+      }

+      uVar42 = *(int *)(lVar32 + 0x68) - *(int *)(lVar32 + 100);

+      uVar30 = -*(int *)(lVar32 + 100) & 1;

+      local_d8 = 0;

+      uStack_d0 = 0;

+      uVar37 = uVar30 + uVar37 * 2;

+      if (*(int *)(lVar8 + 0x458) == 0) {

+        lVar54 = (ulonglong)uVar29 << 0x20;

+        iVar21 = (**(code **)(**(longlong **)(lVar8 + 0x230) + 0x70))

+                           (*(longlong **)(lVar8 + 0x230),*(undefined8 *)(lVar32 + 0x48),0,

+                            5 - (uint)(uVar42 < uVar37),lVar54,&local_d8);

+        uVar29 = (uint)((ulonglong)lVar54 >> 0x20);

+        if (iVar21 < 0) {

+          uVar52 = 0x9a0;

+          goto LAB_3;

+        }

+      }

+      else {

+        iVar21 = -0x7767ff73;

+        uVar52 = 0x99a;

+LAB_3:

+        MilInstrumentationCheckHR_MaybeFailFast(0x14,(long *)0x0,0,iVar21,uVar52,(void *)0x0);

+      }

+      if (((*(int *)(lVar8 + 0x458) == 0) &&

+          (((iVar21 == -0x7789fe84 || (iVar21 == -0x7ff8fff2)) || (iVar21 == -0x7785fffb)))) &&

+         (*(int *)(lVar8 + 0x1c0) != 0)) {

+        if (iVar21 != -0x7785fffb) {

+LAB_4:

+          CD2DContext::TempDisableHardwareProtection((CD2DContext *)(lVar8 + 0x10));

+          goto LAB_5;

+        }

+        iVar43 = (**(code **)(**(longlong **)(lVar8 + 0x228) + 0x138))();

+        if (iVar43 == -0x7785ffd0) {

+          if (*(int *)(lVar8 + 0x458) == 0) {

+            *(undefined4 *)(lVar8 + 0x458) = 0x887a0030;

+            CD2DContext::TempDisableHardwareProtection((CD2DContext *)(lVar8 + 0x10));

+            goto LAB_5;

+          }

+          goto LAB_4;

+        }

+        if (*(int *)(lVar8 + 0x458) == 0) {

+          *(undefined4 *)(lVar8 + 0x458) = 0x887a0005;

+        }

+LAB_6:

+        if (*(int *)(lVar8 + 0x458) == 0) goto LAB_7;

+        iVar21 = -0x7767ff73;

+        pvVar41 = (void *)0x0;

+      }

+      else {

+LAB_5:

+        if (iVar21 < 0) goto LAB_6;

+LAB_7:

+        pvVar41 = (void *)0x0;

+        local_res20[0] = 0;

+        bVar20 = TranslateDXGIorD3DErrorInContext(iVar21,0,local_res20);

+        lVar23 = local_res20[0];

+        if (bVar20) {

+          if (local_res20[0] == -0x7767ff73) {

+            if (-1 < iVar21) {

+              iVar21 = -0x7767ff73;

+            }

+            if (*(int *)(lVar8 + 0x458) == (int)pvVar41) {

+              *(int *)(lVar8 + 0x458) = iVar21;

+            }

+          }

+          iVar21 = lVar23;

+          if (local_res20[0] < 0) {

+            MilInstrumentationCheckHR_MaybeFailFast(0x14,(long *)0x0,0,local_res20[0],0xae0,pvVar41)

+            ;

+            pvVar41 = (void *)0x0;

+          }

+        }

+        if (-1 < iVar21) {

+          *(undefined8 *)(lVar32 + 0x58) = local_d8;

+          *(undefined4 *)(lVar32 + 0x60) = 2;

+          if (uVar42 < uVar37) {

+            *(int *)(lVar32 + 100) = (int)pvVar41;

+          }

+          else {

+            *(int *)(lVar32 + 100) = *(int *)(lVar32 + 100) + uVar30;

+          }

+          *(uint *)(param_1 + 0x50) = *(uint *)(lVar32 + 100) / *(uint *)(lVar32 + 0x60);

+          goto LAB_2;

+        }

+      }

+      MilInstrumentationCheckHR_MaybeFailFast(0x14,(long *)0x0,0,iVar21,0x6c,pvVar41);

+      uVar29 = 0xcb;

+    }

+    MilInstrumentationCheckHR_MaybeFailFast(0x14,(long *)0x0,0,iVar21,uVar29,(void *)0x0);

+    uVar29 = 0x211;

+    goto LAB_0;

+  }

+LAB_2:

+  if (*(longlong *)(lVar7 + 0x28) != 0) goto LAB_8;

+  lVar32 = *(longlong *)(lVar7 + 0x10);

+  uVar37 = uVar5;

+  if (uVar5 < 100) {

+    uVar37 = 100;

+  }

+  uVar42 = *(int *)(lVar7 + 0x38) - *(int *)(lVar7 + 0x34);

+  uVar30 = (uVar2 - *(uint *)(lVar7 + 0x34) % uVar2) % uVar2;

+  local_c8 = 0;

+  uStack_c0 = 0;

+  uVar37 = uVar2 * uVar37 + uVar30;

+  if (*(int *)(lVar32 + 0x458) == 0) {

+    iVar21 = (**(code **)(**(longlong **)(lVar32 + 0x230) + 0x70))

+                       (*(longlong **)(lVar32 + 0x230),*(undefined8 *)(lVar7 + 0x18),0,

+                        5 - (uint)(uVar42 < uVar37),(ulonglong)uVar29 << 0x20,&local_c8);

+    if (iVar21 < 0) {

+      MilInstrumentationCheckHR_MaybeFailFast(0x14,(long *)0x0,0,iVar21,0x9a0,(void *)0x0);

+    }

+  }

+  else {

+    iVar21 = -0x7767ff73;

+    MilInstrumentationCheckHR_MaybeFailFast(0x14,(long *)0x0,0,-0x7767ff73,0x99a,(void *)0x0);

+  }

+  if (((*(int *)(lVar32 + 0x458) == 0) &&

+      (((iVar21 == -0x7789fe84 || (iVar21 == -0x7ff8fff2)) || (iVar21 == -0x7785fffb)))) &&

+     (*(int *)(lVar32 + 0x1c0) != 0)) {

+    if (iVar21 != -0x7785fffb) {

+LAB_9:

+      CD2DContext::TempDisableHardwareProtection((CD2DContext *)(lVar32 + 0x10));

+      goto LAB_10;

+    }

+    iVar43 = (**(code **)(**(longlong **)(lVar32 + 0x228) + 0x138))();

+    if (iVar43 == -0x7785ffd0) {

+      if (*(int *)(lVar32 + 0x458) == 0) {

+        *(undefined4 *)(lVar32 + 0x458) = 0x887a0030;

+        CD2DContext::TempDisableHardwareProtection((CD2DContext *)(lVar32 + 0x10));

+        goto LAB_10;

+      }

+      goto LAB_9;

+    }

+    if (*(int *)(lVar32 + 0x458) == 0) {

+      *(undefined4 *)(lVar32 + 0x458) = 0x887a0005;

+    }

+LAB_11:

+    if (*(int *)(lVar32 + 0x458) == 0) goto LAB_12;

+    iVar21 = -0x7767ff73;

+    pvVar41 = (void *)0x0;

+  }

+  else {

+LAB_10:

+    if (iVar21 < 0) goto LAB_11;

+LAB_12:

+    pvVar41 = (void *)0x0;

+    local_res20[0] = 0;

+    bVar20 = TranslateDXGIorD3DErrorInContext(iVar21,0,local_res20);

+    lVar23 = local_res20[0];

+    if (bVar20) {

+      if (local_res20[0] == -0x7767ff73) {

+        if (-1 < iVar21) {

+          iVar21 = -0x7767ff73;

+        }

+        if (*(int *)(lVar32 + 0x458) == (int)pvVar41) {

+          *(int *)(lVar32 + 0x458) = iVar21;

+        }

+      }

+      iVar21 = lVar23;

+      if (local_res20[0] < 0) {

+        MilInstrumentationCheckHR_MaybeFailFast(0x14,(long *)0x0,0,local_res20[0],0xae0,pvVar41);

+        pvVar41 = (void *)0x0;

+      }

+    }

+    if (-1 < iVar21) {

+      *(uint *)(lVar7 + 0x30) = uVar2;

+      *(undefined8 *)(lVar7 + 0x28) = local_c8;

+      if (uVar42 < uVar37) {

+        *(int *)(lVar7 + 0x34) = (int)pvVar41;

+      }

+      else {

+        *(int *)(lVar7 + 0x34) = *(int *)(lVar7 + 0x34) + uVar30;

+      }

+      *(uint *)(param_1 + 0x4c) = *(uint *)(lVar7 + 0x34) / *(uint *)(lVar7 + 0x30);

+LAB_8:

+      if (uVar6 != 0) {

+        lVar32 = *(longlong *)(param_1 + 0x18);

+        uVar36 = (ulonglong)*(uint *)(lVar32 + 100) + *(longlong *)(lVar32 + 0x58);

+        *(uint *)(lVar32 + 100) = uVar6 * *(int *)(lVar32 + 0x60) + *(uint *)(lVar32 + 100);

+        sVar34 = *(short *)(param_1 + 0x58) + *(short *)(param_1 + 0x4c);

+        uVar44 = 0;

+        if (uVar6 != 0) {

+          if ((0x1f < uVar6) &&

+             ((uVar40 + (ulonglong)(uVar6 - 1) * 2 < uVar36 ||

+              (uVar36 + (ulonglong)(uVar6 - 1) * 2 < uVar40)))) {

+            uVar29 = 0x10;

+            do {

+              psVar26 = (short *)(uVar40 + uVar44 * 2);

+              sVar11 = psVar26[1];

+              sVar12 = psVar26[2];

+              sVar13 = psVar26[3];

+              sVar14 = psVar26[4];

+              sVar15 = psVar26[5];

+              sVar16 = psVar26[6];

+              sVar17 = psVar26[7];

+              psVar3 = (short *)(uVar36 + uVar44 * 2);

+              *psVar3 = *psVar26 + sVar34;

+              psVar3[1] = sVar11 + sVar34;

+              psVar3[2] = sVar12 + sVar34;

+              psVar3[3] = sVar13 + sVar34;

+              psVar3[4] = sVar14 + sVar34;

+              psVar3[5] = sVar15 + sVar34;

+              psVar3[6] = sVar16 + sVar34;

+              psVar3[7] = sVar17 + sVar34;

+              uVar37 = (int)uVar44 + 0x20;

+              uVar44 = (ulonglong)uVar37;

+              psVar26 = (short *)(uVar40 + (ulonglong)(uVar29 - 8) * 2);

+              sVar11 = psVar26[1];

+              sVar12 = psVar26[2];

+              sVar13 = psVar26[3];

+              sVar14 = psVar26[4];

+              sVar15 = psVar26[5];

+              sVar16 = psVar26[6];

+              sVar17 = psVar26[7];

+              psVar3 = (short *)(uVar36 + (ulonglong)(uVar29 - 8) * 2);

+              *psVar3 = *psVar26 + sVar34;

+              psVar3[1] = sVar11 + sVar34;

+              psVar3[2] = sVar12 + sVar34;

+              psVar3[3] = sVar13 + sVar34;

+              psVar3[4] = sVar14 + sVar34;

+              psVar3[5] = sVar15 + sVar34;

+              psVar3[6] = sVar16 + sVar34;

+              psVar3[7] = sVar17 + sVar34;

+              psVar26 = (short *)(uVar40 + (ulonglong)uVar29 * 2);

+              sVar11 = psVar26[1];

+              sVar12 = psVar26[2];

+              sVar13 = psVar26[3];

+              sVar14 = psVar26[4];

+              sVar15 = psVar26[5];

+              sVar16 = psVar26[6];

+              sVar17 = psVar26[7];

+              psVar3 = (short *)(uVar36 + (ulonglong)uVar29 * 2);

+              *psVar3 = *psVar26 + sVar34;

+              psVar3[1] = sVar11 + sVar34;

+              psVar3[2] = sVar12 + sVar34;

+              psVar3[3] = sVar13 + sVar34;

+              psVar3[4] = sVar14 + sVar34;

+              psVar3[5] = sVar15 + sVar34;

+              psVar3[6] = sVar16 + sVar34;

+              psVar3[7] = sVar17 + sVar34;

+              uVar2 = uVar29 + 8;

+              uVar29 = uVar29 + 0x20;

+              psVar26 = (short *)(uVar40 + (ulonglong)uVar2 * 2);

+              sVar11 = psVar26[1];

+              sVar12 = psVar26[2];

+              sVar13 = psVar26[3];

+              sVar14 = psVar26[4];

+              sVar15 = psVar26[5];

+              sVar16 = psVar26[6];

+              sVar17 = psVar26[7];

+              psVar3 = (short *)(uVar36 + (ulonglong)uVar2 * 2);

+              *psVar3 = *psVar26 + sVar34;

+              psVar3[1] = sVar11 + sVar34;

+              psVar3[2] = sVar12 + sVar34;

+              psVar3[3] = sVar13 + sVar34;

+              psVar3[4] = sVar14 + sVar34;

+              psVar3[5] = sVar15 + sVar34;

+              psVar3[6] = sVar16 + sVar34;

+              psVar3[7] = sVar17 + sVar34;

+            } while (uVar37 < (uVar6 & 0xffffffe0));

+          }

+          if ((uint)uVar44 < uVar6) {

+            uVar31 = (ulonglong)(uVar6 - (uint)uVar44);

+            psVar26 = (short *)(uVar36 + uVar44 * 2);

+            do {

+              *psVar26 = sVar34 + *(short *)((uVar40 - uVar36) + (longlong)psVar26);

+              psVar26 = psVar26 + 1;

+              uVar31 = uVar31 - 1;

+            } while (uVar31 != 0);

+          }

+        }

+        *(uint *)(param_1 + 0x5c) = *(int *)(param_1 + 0x5c) + uVar6;

+      }

+      *(uint *)(param_1 + 0x58) = *(int *)(param_1 + 0x58) + uVar5;

+      uVar36 = (ulonglong)*(uint *)(lVar7 + 0x34) + *(longlong *)(lVar7 + 0x28);

+      local_f8 = 0;

+      *(uint *)(lVar7 + 0x34) = uVar5 * *(int *)(lVar7 + 0x30) + *(uint *)(lVar7 + 0x34);

+      local_12c = 1.0 / *(float *)(local_e0 + 0x48);

+      uVar29 = *(uint *)(local_e0 + 8);

+      uVar44 = (ulonglong)uVar29;

+      local_170 = *(uint *)(local_e0 + 0x10);

+      uVar40 = (ulonglong)local_170;

+      local_180 = *(undefined8 *)(local_e0 + 0x20);

+      local_174 = *(int *)(local_e0 + 0xc);

+      lVar7 = *(longlong *)(local_e0 + 0x18);

+      iVar21 = 0x30;

+      if (param_1[0x40] == (CD3DBatchExecutionContext)0x0) {

+        iVar21 = 0x10;

+      }

+      iVar43 = local_170 * 8 + 0x10;

+      iVar21 = iVar21 + *(int *)(param_1 + 0x44) * 8;

+      local_11c = 1.0 / *(float *)(local_e0 + 0x4c);

+      fVar47 = *(float *)(param_2 + 0x58);

+      local_130 = local_12c * *(float *)(param_2 + 0x18);

+      local_168 = *(char *)(local_e0 + 0x51);

+      fVar48 = local_12c * *(float *)(param_2 + 0x10);

+      local_198 = *(undefined8 *)(local_e0 + 0x28);

+      fVar51 = local_12c * *(float *)(param_2 + 0x14);

+      local_12c = local_12c * *(float *)(param_2 + 0x1c);

+      fVar49 = local_11c * *(float *)(param_2 + 0x20);

+      fVar50 = local_11c * *(float *)(param_2 + 0x24);

+      fVar18 = *(float *)(param_2 + 0x40);

+      fVar19 = *(float *)(param_2 + 0x44);

+      uStack_100 = *(undefined4 *)(param_2 + 0x48);

+      fStack_fc = *(float *)(param_2 + 0x4c);

+      local_120 = local_11c * *(float *)(param_2 + 0x28);

+      local_11c = local_11c * *(float *)(param_2 + 0x2c);

+      local_118 = *(undefined8 *)(param_2 + 0x30);

+      uStack_110 = *(undefined8 *)(param_2 + 0x38);

+      local_res20[0] = iVar21;

+      local_190 = lVar7;

+      local_188 = iVar43;

+      local_184 = uVar29;

+      local_178 = iVar43;

+      local_16c = fVar47;

+      local_160 = uVar36;

+      local_158 = iVar21;

+      local_154 = uVar29;

+      local_138 = fVar48;

+      local_134 = fVar51;

+      local_128 = fVar49;

+      local_124 = fVar50;

+      local_108 = fVar18;

+      fStack_104 = fVar19;

+      if (param_1[0x40] != (CD3DBatchExecutionContext)0x0) {

+        TransferVertices<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>

+                  ((CCommonTransferParameters<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_> *)

+                   &local_198,(CMILMatrix *)(param_2 + 0x10),(CMILMatrix *)&local_138,false);

+      }

+      else if (local_174 == 0) {

+        TransferAliasedVertices

+                  ((CCommonTransferParameters<Vertex_UVxN<VertexXYW_ColorDW>_> *)&local_198);

+      }

+      else {

+        if (((local_170 & 1) == 0) && ((uVar36 & 0xf) == 0)) {

+          bVar20 = true;

+        }

+        else {

+          bVar20 = false;

+        }

+        if (ABS((ABS(local_11c) * 61440.0 + ABS(local_12c) * 61440.0 + ABS(fStack_fc)) - 1.0) <

+            8.138021e-05) {

+          local_f8 = 0x3000;

+        }

+        else {

+          local_f8 = 0x1000;

+          if (((!NAN(local_12c)) && (!NAN(local_11c))) && (!NAN(fStack_fc))) {

+            if (1.1920929e-06 <= ABS(fVar47 - 1.0)) {

+              if (local_168 == '\0') {

+                VertexTransfer::

+                Transfer<VertexTransfer::CGeneral3DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,1,Vertex_UVxN<VertexXYW_ColorDW>_>

+                          ();

+              }

+              else {

+                VertexTransfer::

+                Transfer<VertexTransfer::CGeneral3DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,2,Vertex_UVxN<VertexXYW_ColorDW>_>

+                          (&local_198,&local_138);

+              }

+            }

+            else {

+              VertexTransfer::

+              Transfer<VertexTransfer::CGeneral3DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,0,Vertex_UVxN<VertexXYW_ColorDW>_>

+                        ();

+            }

+            DAT_13 = DAT_13 + local_184;

+            return 0;

+          }

+        }

+        if (((8.138021e-05 < ABS(fVar48 - fVar50)) || (8.138021e-05 < ABS(fVar51 - -fVar49))) ||

+           (8.138021e-05 <= ABS((fVar49 * fVar49 + fVar48 * fVar48) - 1.0))) {

+          if (1.1920929e-06 <= ABS(fVar47 - 1.0)) {

+            if (bVar20) {

+              if (local_168 == '\0') {

+                VertexTransfer::

+                SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,1,Vertex_UVxN<VertexXYW_ColorDW>_>

+                          ();

+                DAT_14 = DAT_14 + local_184;

+                return 0;

+              }

+              VertexTransfer::

+              SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,2,Vertex_UVxN<VertexXYW_ColorDW>_>

+                        ();

+              DAT_14 = DAT_14 + local_184;

+              return 0;

+            }

+            if (local_168 != '\0') {

+              VertexTransfer::

+              Transfer<VertexTransfer::CScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,2,Vertex_UVxN<VertexXYW_ColorDW>_>

+                        ();

+              DAT_14 = DAT_14 + local_184;

+              return 0;

+            }

+            VertexTransfer::

+            Transfer<VertexTransfer::CScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,1,Vertex_UVxN<VertexXYW_ColorDW>_>

+                      (&local_198,&local_138);

+          }

+          else {

+            if (!bVar20) {

+              VertexTransfer::

+              Transfer<VertexTransfer::CScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,0,Vertex_UVxN<VertexXYW_ColorDW>_>

+                        (&local_198);

+              DAT_14 = DAT_14 + local_184;

+              return 0;

+            }

+            VertexTransfer::

+            SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,0,Vertex_UVxN<VertexXYW_ColorDW>_>

+                      ();

+          }

+          DAT_14 = DAT_14 + local_184;

+        }

+        else {

+          if (ABS(fVar47 - 1.0) < 1.1920929e-06) {

+            if (bVar20) {

+              uVar40 = (ulonglong)(local_170 >> 1);

+              if (uVar29 != 0) {

+                iVar35 = 0;

+                iVar33 = 0;

+                uVar44 = (ulonglong)((uVar29 - 1 >> 1) + 1);

+                do {

+                  pfVar28 = (float *)(iVar33 + lVar7);

+                  lVar32 = (iVar33 + iVar43) + lVar7;

+                  puVar27 = (undefined8 *)((longlong)iVar35 + uVar36);

+                  puVar38 = (undefined8 *)((longlong)(local_res20[0] + iVar35) + uVar36);

+                  uVar45 = DirectX::MathInternal::PermuteHelper<228,0,0,0,1>::Permute

+                                     (puVar27,lVar32,*pfVar28 * fVar48);

+                  *puVar27 = uVar45;

+                  puVar27[1] = extraout_XMM0_Qb;

+                  if ((int)uVar40 != 0) {

+                    uVar31 = uVar40 & 0xffffffff;

+                    puVar4 = puVar27;

+                    do {

+                      puVar24 = puVar4 + 2;

+                      puVar25 = (undefined8 *)

+                                (((longlong)pfVar28 - (longlong)puVar27) + (longlong)puVar24);

+                      uVar45 = puVar25[1];

+                      *puVar24 = *puVar25;

+                      puVar4[3] = uVar45;

+                      uVar31 = uVar31 - 1;

+                      puVar4 = puVar24;

+                    } while (uVar31 != 0);

+                  }

+                  uVar45 = DirectX::MathInternal::PermuteHelper<228,0,0,0,1>::Permute();

+                  *puVar38 = uVar45;

+                  puVar38[1] = extraout_XMM0_Qb_00;

+                  if ((int)uVar40 != 0) {

+                    uVar31 = uVar40 & 0xffffffff;

+                    puVar27 = puVar38;

+                    do {

+                      puVar25 = puVar27 + 2;

+                      puVar4 = (undefined8 *)((lVar32 - (longlong)puVar38) + (longlong)puVar25);

+                      uVar45 = puVar4[1];

+                      *puVar25 = *puVar4;

+                      puVar27[3] = uVar45;

+                      uVar31 = uVar31 - 1;

+                      puVar27 = puVar25;

+                    } while (uVar31 != 0);

+                  }

+                  iVar33 = iVar33 + iVar43 * 2;

+                  iVar35 = iVar35 + iVar21 * 2;

+                  uVar44 = uVar44 - 1;

+                } while (uVar44 != 0);

+              }

+            }

+            else if (uVar29 != 0) {

+              iVar43 = 0;

+              iVar33 = 0;

+              do {

+                pfVar28 = (float *)(iVar33 + lVar7);

+                pfVar39 = (float *)((longlong)iVar43 + uVar36);

+                fVar46 = fVar49 * pfVar28[1] + fVar48 * *pfVar28 + fVar18;

+                *pfVar39 = fVar46;

+                fVar47 = pfVar28[1];

+                fVar22 = *pfVar28;

+                pfVar39[2] = 1.0;

+                fVar47 = fVar50 * fVar47 + fVar51 * fVar22 + fVar19;

+                pfVar39[1] = fVar47;

+                if (local_170 != 0) {

+                  lVar23 = FUN_1802ea74e(pfVar39,fVar46,fVar47,pfVar39 + 4);

+                  return lVar23;

+                }

+                iVar33 = iVar33 + 0x10;

+                iVar43 = iVar43 + iVar21;

+                pfVar39[3] = pfVar28[3];

+                uVar44 = uVar44 - 1;

+              } while (uVar44 != 0);

+            }

+          }

+          else if (bVar20) {

+            if (local_168 == '\0') {

+              VertexTransfer::

+              SimdTransfer<VertexTransfer::CSimdNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,1,Vertex_UVxN<VertexXYW_ColorDW>_>

+                        ();

+              uVar29 = local_184;

+            }

+            else {

+              VertexTransfer::

+              SimdTransfer<VertexTransfer::CSimdNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,2,Vertex_UVxN<VertexXYW_ColorDW>_>

+                        (&local_198,&local_138);

+              uVar29 = local_184;

+            }

+          }

+          else if (uVar29 != 0) {

+            if (local_168 == '\0') {

+              iVar35 = 0;

+              iVar33 = 0;

+              local_168 = 0;

+              do {

+                pfVar28 = (float *)(iVar33 + lVar7);

+                pfVar39 = (float *)((longlong)iVar35 + uVar36);

+                *pfVar39 = fVar48 * *pfVar28 + fVar49 * pfVar28[1] + fVar18;

+                fVar22 = *pfVar28;

+                fVar46 = pfVar28[1];

+                pfVar39[2] = 1.0;

+                pfVar39[1] = fVar51 * fVar22 + fVar50 * fVar46 + fVar19;

+                if ((int)uVar40 != 0) {

+                  lVar23 = FUN_1802ea787(pfVar28,(longlong)pfVar28 - (longlong)pfVar39,uVar40);

+                  return lVar23;

+                }

+                fVar22 = (float)BlendPremultipliedColorDW((ulong)pfVar28[3],fVar47);

+                iVar33 = iVar33 + iVar43;

+                pfVar39[3] = fVar22;

+                iVar35 = iVar35 + iVar21;

+                uVar44 = uVar44 - 1;

+              } while (uVar44 != 0);

+            }

+            else {

+              iVar33 = 0;

+              iVar43 = 0;

+              do {

+                pfVar28 = (float *)(iVar43 + lVar7);

+                pfVar39 = (float *)((longlong)iVar33 + uVar36);

+                *pfVar39 = fVar49 * pfVar28[1] + fVar48 * *pfVar28 + fVar18;

+                fVar22 = pfVar28[1];

+                fVar46 = *pfVar28;

+                pfVar39[2] = 1.0;

+                pfVar39[1] = fVar50 * fVar22 + fVar51 * fVar46 + fVar19;

+                if (local_170 != 0) {

+                  lVar23 = FUN_1802ea76f((longlong)pfVar28 - (longlong)pfVar39);

+                  return lVar23;

+                }

+                fVar22 = pfVar28[3];

+                iVar43 = iVar43 + 0x10;

+                iVar33 = iVar33 + iVar21;

+                pfVar39[3] = (float)((((int)((float)((uint)fVar22 >> 0x18) * fVar47) << 8 |

+                                      (int)(float)((uint)fVar22 >> 0x10 & 0xff)) << 8 |

+                                     (int)(float)((uint)fVar22 >> 8 & 0xff)) << 8 |

+                                    (int)(float)((uint)fVar22 & 0xff));

+                uVar44 = uVar44 - 1;

+              } while (uVar44 != 0);

+            }

+          }

+          DAT_15 = DAT_15 + uVar29;

+        }

+      }

+      return 0;

+    }

+  }

+  MilInstrumentationCheckHR_MaybeFailFast(0x14,(long *)0x0,0,iVar21,0x6c,pvVar41);

+  uVar29 = 0x218;

+LAB_0:

+  MilInstrumentationCheckHR_MaybeFailFast(0x14,(long *)0x0,0,iVar21,uVar29,(void *)0x0);

+  wil::details::in1diag3::Return_Hr

+            (unaff_retaddr,0xb0,

+             "onecoreuap\\windows\\dwm\\dwmcore\\rendering\\renderingbatchcommand.cpp",iVar21);

+  return iVar21;

+}

+
```

## `CBaseExpression::SetOutputValue`  (modified)

```diff
--- CBaseExpression::SetOutputValue
+++ CBaseExpression::SetOutputValue
@@ -1,2 +1,66 @@
-Failed to decompile dwmcore.dll - .ProgramDB CBaseExpression::SetOutputValue : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* protected: long __cdecl CBaseExpression::SetOutputValue(class CExpressionValue const * __ptr64)

+   __ptr64 */

+

+long __thiscall CBaseExpression::SetOutputValue(CBaseExpression *this,CExpressionValue *param_1)

+

+{

+  DCOMPOSITION_EXPRESSION_TYPE DVar1;

+  bool bVar2;

+  bool bVar3;

+  uint uVar4;

+  long lVar5;

+  HANDLE hEvent;

+  CNaturalAnimation *pCVar6;

+  undefined1 auStackY_d8 [32];

+  WCHAR local_a8 [64];

+  ulonglong local_28;

+  

+  local_28 = __security_cookie ^ (ulonglong)auStackY_d8;

+  DVar1 = *(DCOMPOSITION_EXPRESSION_TYPE *)(param_1 + 0x48);

+  if (DVar1 != *(DCOMPOSITION_EXPRESSION_TYPE *)(this + 0xa0)) {

+    MilInstrumentationCheckHR_MaybeFailFast(0x14,(long *)0x0,0,-0x7ff8ffa9,0x22c,(void *)0x0);

+    return -0x7ff8ffa9;

+  }

+  bVar2 = false;

+  if (((*(uint *)(*(longlong *)(this + 0x138) + 4) & 0x40000000) != 0) &&

+     (bVar3 = CExpressionValue::operator==((CExpressionValue *)(this + 0x50),param_1), bVar2 = false

+     , !bVar3)) {

+    bVar2 = true;

+  }

+  if (DVar1 == 0xb) {

+    param_1 = *(CExpressionValue **)(param_1 + 0x40);

+  }

+  CExpressionValue::SetValue((CExpressionValue *)(this + 0x50),DVar1,param_1);

+  if (bVar2) {

+    LogSetOutputValue(this);

+    uVar4 = GetTracingCookie(this);

+    lVar5 = StringCchPrintfW((ushort *)local_a8,0x3c,(ushort *)L"DwmExpression_SetValue_%d",

+                             (ulonglong)uVar4);

+    if (lVar5 < 0) {

+      MilInstrumentationCheckHR_MaybeFailFast(0x14,(long *)0x0,0,lVar5,0x24d,(void *)0x0);

+      return lVar5;

+    }

+    hEvent = CreateEventW((LPSECURITY_ATTRIBUTES)0x0,1,0,local_a8);

+    SetEvent(hEvent);

+    CloseHandle(hEvent);

+  }

+  if ((((byte)this[0xe0] & 2) != 0) && (((byte)this[0xe0] & 1) != 0)) {

+    if ((*(CWeakReference<CNaturalAnimation> **)(this + 0xc0) ==

+         (CWeakReference<CNaturalAnimation> *)0x0) ||

+       (pCVar6 = CWeakReference<CNaturalAnimation>::GetTargetResource

+                           (*(CWeakReference<CNaturalAnimation> **)(this + 0xc0)),

+       pCVar6 == (CNaturalAnimation *)0x0)) {

+      MilInstrumentationCheckHR_MaybeFailFast(0x14,(long *)0x0,0,-0x7ff8ff8e,0x261,(void *)0x0);

+      return -0x7ff8ff8e;

+    }

+    lVar5 = SetOutputValueOnTarget(this,(CResource *)pCVar6);

+    if (lVar5 < 0) {

+      MilInstrumentationCheckHR_MaybeFailFast(0x14,(long *)0x0,0,lVar5,0x264,(void *)0x0);

+      return lVar5;

+    }

+  }

+  return 0;

+}

+
```

## `DataProviderManager::RemoveDataProvider`  (modified)

```diff
--- DataProviderManager::RemoveDataProvider
+++ DataProviderManager::RemoveDataProvider
@@ -1,2 +1,55 @@
-Failed to decompile dwmcore.dll - .ProgramDB DataProviderManager::RemoveDataProvider : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* public: long __cdecl DataProviderManager::RemoveDataProvider(class DataProviderProxy * __ptr64)

+   __ptr64 */

+

+long __thiscall

+DataProviderManager::RemoveDataProvider(DataProviderManager *this,DataProviderProxy *param_1)

+

+{

+  DataProviderProxy *pDVar1;

+  undefined4 uVar2;

+  bool bVar3;

+  undefined4 *puVar4;

+  longlong lVar5;

+  long lVar6;

+  void *unaff_retaddr;

+  undefined4 local_res8;

+  undefined4 uStackX_c;

+  CInteractionTracker *local_res10;

+  

+  pDVar1 = param_1 + 8;

+  puVar4 = (undefined4 *)(**(code **)(*(longlong *)pDVar1 + 0x48))(pDVar1);

+  uVar2 = *puVar4;

+  lVar5 = (**(code **)(*(longlong *)pDVar1 + 0x48))(pDVar1);

+  _local_res8 = CONCAT44(*(undefined4 *)(lVar5 + 4),uVar2);

+  std::

+  _Hash<std::_Umap_traits<CInteractionTracker*___ptr64,std::unordered_map<CInteractionTracker*___ptr64,InteractionTrackerBindingModeFlags,std::hash<CInteractionTracker*___ptr64>,std::equal_to<CInteractionTracker*___ptr64>,std::allocator<std::pair<CInteractionTracker*___ptr64_const,InteractionTrackerBindingModeFlags>_>_>,std::_Uhash_compare<CInteractionTracker*___ptr64,std::hash<CInteractionTracker*___ptr64>,std::equal_to<CInteractionTracker*___ptr64>_>,std::allocator<std::pair<CInteractionTracker*___ptr64_const,std::unordered_map<CInteractionTracker*___ptr64,InteractionTrackerBindingModeFlags,std::hash<CInteractionTracker*___ptr64>,std::equal_to<CInteractionTracker*___ptr64>,std::allocator<std::pair<CInteractionTracker*___ptr64_const,InteractionTrackerBindingModeFlags>_>_>_>_>,0>_>

+  ::find<void>((_Hash<std::_Umap_traits<CInteractionTracker*___ptr64,std::unordered_map<CInteractionTracker*___ptr64,InteractionTrackerBindingModeFlags,std::hash<CInteractionTracker*___ptr64>,std::equal_to<CInteractionTracker*___ptr64>,std::allocator<std::pair<CInteractionTracker*___ptr64_const,InteractionTrackerBindingModeFlags>_>_>,std::_Uhash_compare<CInteractionTracker*___ptr64,std::hash<CInteractionTracker*___ptr64>,std::equal_to<CInteractionTracker*___ptr64>_>,std::allocator<std::pair<CInteractionTracker*___ptr64_const,std::unordered_map<CInteractionTracker*___ptr64,InteractionTrackerBindingModeFlags,std::hash<CInteractionTracker*___ptr64>,std::equal_to<CInteractionTracker*___ptr64>,std::allocator<std::pair<CInteractionTracker*___ptr64_const,InteractionTrackerBindingModeFlags>_>_>_>_>,0>_>

+                *)(this + 0x28),&local_res10);

+  if (local_res10 == *(CInteractionTracker **)(this + 0x30)) {

+    lVar6 = -0x7ffffff5;

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,299,

+               "onecoreuap\\windows\\dwm\\dwmcore\\engine\\dataprovidermanager.cpp",-0x7ffffff5);

+  }

+  else {

+    bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_4253016379>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_4253016379> *)

+                       &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_4253016379>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_4253016379>::GetImpl(void)'

+                        ::__l2::impl);

+    if (bVar3) {

+      *(undefined8 *)(param_1 + 0x48) = 0;

+    }

+    std::

+    _Hash<std::_Umap_traits<unsigned___int64,Microsoft::WRL::ComPtr<DataProviderProxy>,std::_Uhash_compare<unsigned___int64,std::hash<unsigned___int64>,std::equal_to<unsigned___int64>_>,std::allocator<std::pair<unsigned___int64_const_,Microsoft::WRL::ComPtr<DataProviderProxy>_>_>,0>_>

+    ::

+    erase<std::_List_iterator<std::_List_val<std::_List_simple_types<std::pair<unsigned___int64_const_,Microsoft::WRL::ComPtr<DataProviderProxy>_>_>_>_>,0>

+              ((_Hash<std::_Umap_traits<unsigned___int64,Microsoft::WRL::ComPtr<DataProviderProxy>,std::_Uhash_compare<unsigned___int64,std::hash<unsigned___int64>,std::equal_to<unsigned___int64>_>,std::allocator<std::pair<unsigned___int64_const_,Microsoft::WRL::ComPtr<DataProviderProxy>_>_>,0>_>

+                *)(this + 0x28),&local_res8,local_res10);

+    lVar6 = 0;

+  }

+  return lVar6;

+}

+
```

## `CBrushRenderingEffect::EmitGeometry`  (modified)

```diff
--- CBrushRenderingEffect::EmitGeometry
+++ CBrushRenderingEffect::EmitGeometry
@@ -1,2 +1,606 @@
-Failed to decompile dwmcore.dll - .ProgramDB CBrushRenderingEffect::EmitGeometry : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* public: virtual long __cdecl CBrushRenderingEffect::EmitGeometry(class CD3DBatchExecutionContext

+   * __ptr64,class CRenderingBatchCommand const * __ptr64)const __ptr64 */

+

+long __thiscall

+CBrushRenderingEffect::EmitGeometry

+          (CBrushRenderingEffect *this,CD3DBatchExecutionContext *param_1,

+          CRenderingBatchCommand *param_2)

+

+{

+  short *psVar1;

+  undefined8 *puVar2;

+  float fVar3;

+  uint uVar4;

+  longlong lVar5;

+  code *pcVar6;

+  short sVar7;

+  short sVar8;

+  short sVar9;

+  short sVar10;

+  short sVar11;

+  short sVar12;

+  short sVar13;

+  bool bVar14;

+  float fVar15;

+  long lVar16;

+  undefined8 *puVar17;

+  undefined8 *puVar18;

+  float *pfVar19;

+  int iVar20;

+  short *psVar21;

+  undefined8 *puVar22;

+  float *pfVar23;

+  uint uVar24;

+  ulonglong uVar25;

+  longlong lVar26;

+  int iVar27;

+  short sVar28;

+  ulonglong uVar29;

+  uint uVar30;

+  ulonglong uVar31;

+  ulonglong uVar32;

+  uint uVar33;

+  undefined8 *puVar34;

+  float *pfVar35;

+  int iVar36;

+  int iVar37;

+  uint uVar38;

+  undefined8 uVar39;

+  undefined8 extraout_XMM0_Qb;

+  undefined8 extraout_XMM0_Qb_00;

+  float fVar40;

+  float fVar41;

+  float fVar42;

+  float fVar43;

+  float fVar44;

+  void *unaff_retaddr;

+  long local_res8;

+  undefined4 local_res20 [2];

+  undefined8 local_178;

+  longlong local_170;

+  int local_168;

+  uint local_164;

+  undefined8 local_160;

+  int local_158;

+  int local_154;

+  uint local_150;

+  float local_14c;

+  char local_148;

+  ulonglong local_140;

+  int local_138;

+  uint local_134;

+  int local_128;

+  uint local_124;

+  float local_118;

+  float local_114;

+  float local_110;

+  float local_10c;

+  float local_108;

+  float local_104;

+  float local_100;

+  float local_fc;

+  undefined8 local_f8;

+  undefined8 uStack_f0;

+  float local_e8;

+  float fStack_e4;

+  undefined4 uStack_e0;

+  float fStack_dc;

+  undefined4 local_d8;

+  undefined8 local_c8;

+  longlong local_c0;

+  

+  local_124 = *(uint *)(*(longlong *)(this + 0x10) + 0x108) & 4;

+  if (param_2[0x5c] != (CRenderingBatchCommand)0x0) {

+    CRenderingBatchCommand::EmitWarpFastPathGeometry(param_2,param_1);

+    return 0;

+  }

+  if (*(int *)param_2 == 4) {

+    lVar16 = CMegaRectBatchCommand::EmitGeometry((CMegaRectBatchCommand *)param_2,param_1);

+    return lVar16;

+  }

+  if (*(int *)param_2 == 5) {

+    lVar16 = CCpuClipAntialiasBatchCommand::EmitGeometry

+                       ((CCpuClipAntialiasBatchCommand *)param_2,param_1,local_124 != 0);

+    return lVar16;

+  }

+  local_c0 = *(longlong *)(*(longlong *)(param_2 + 8) + 0x10);

+  uVar38 = *(uint *)(local_c0 + 8);

+  if (uVar38 == 0) {

+    return 0;

+  }

+  uVar29 = *(ulonglong *)(local_c0 + 0x30);

+  uVar4 = *(uint *)(local_c0 + 0x14);

+  if ((uVar29 == 0) && (uVar4 != 0)) {

+    (*(code *)`void_(__cdecl*&___ptr64___cdecl_gsl::details::get_terminate_handler(void))(void)'::

+              __l2::handler)();

+    pcVar6 = (code *)swi(3);

+    lVar16 = (*pcVar6)();

+    return lVar16;

+  }

+  lVar5 = *(longlong *)(param_1 + 0x18);

+  local_res8 = 0;

+  iVar20 = 0x30;

+  if (param_1[0x40] == (CD3DBatchExecutionContext)0x0) {

+    iVar20 = 0x10;

+  }

+  uVar24 = iVar20 + *(int *)(param_1 + 0x44) * 8;

+  uVar30 = uVar24 * uVar38;

+  if (*(uint *)(lVar5 + 0x38) < uVar30) {

+    CD3DBatchExecutionContext::Flush(param_1,8);

+    local_res8 = CD3DDynamicAppendBuffer::EnsureByteSpace

+                           ((CD3DDynamicAppendBuffer *)(lVar5 + 0x10),uVar30,false);

+    if (-1 < local_res8) {

+      param_1[0x49] = (CD3DBatchExecutionContext)0x1;

+      goto LAB_0;

+    }

+    uVar38 = 0x1fa;

+  }

+  else {

+LAB_0:

+    if (param_1[0x49] != (CD3DBatchExecutionContext)0x0) {

+      param_1[0x49] = (CD3DBatchExecutionContext)0x0;

+      local_128 = 0x30;

+      if (param_1[0x40] == (CD3DBatchExecutionContext)0x0) {

+        local_128 = 0x10;

+      }

+      local_res20[0] = 0;

+      local_128 = local_128 + *(int *)(param_1 + 0x44) * 8;

+      local_c8 = *(undefined8 *)(*(longlong *)(param_1 + 0x18) + 0x18);

+      (**(code **)(**(longlong **)(param_1 + 0x10) + 0x90))

+                (*(longlong **)(param_1 + 0x10),0,1,&local_c8,&local_128,local_res20);

+    }

+    if ((*(longlong *)(lVar5 + 0x28) != 0) &&

+       ((uint)(*(int *)(lVar5 + 0x38) - *(int *)(lVar5 + 0x34)) / *(uint *)(lVar5 + 0x30) < uVar38))

+    {

+      *(uint *)(param_1 + 0x20) = *(uint *)(param_1 + 0x20) | 0x20;

+      lVar26 = *(longlong *)(param_1 + 0x18);

+      if (*(longlong *)(lVar26 + 0x28) != 0) {

+        CD3DDynamicAppendBuffer::EndAppend((CD3DDynamicAppendBuffer *)(lVar26 + 0x10));

+        if (param_1[0x4a] == (CD3DBatchExecutionContext)0x0) {

+          CD3DDynamicAppendBuffer::EndAppend((CD3DDynamicAppendBuffer *)(lVar26 + 0x40));

+          (**(code **)(**(longlong **)(param_1 + 0x10) + 0x60))

+                    (*(longlong **)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x5c),

+                     *(undefined4 *)(param_1 + 0x50),0);

+        }

+        else {

+          (**(code **)(**(longlong **)(param_1 + 0x10) + 0x68))

+                    (*(longlong **)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x58));

+        }

+        *(int *)(param_1 + 0x80) = *(int *)(param_1 + 0x80) + 1;

+        *(undefined8 *)(param_1 + 0x58) = 0;

+        *(undefined4 *)(param_1 + 0x60) = 0;

+      }

+    }

+    if ((uVar4 == 0) ||

+       (local_res8 = CD3DBatchExecutionContext::PrepareIndexBuffer(param_1,uVar4), -1 < local_res8))

+    {

+      if (*(longlong *)(lVar5 + 0x28) == 0) {

+        uVar30 = uVar38;

+        if (uVar38 < 100) {

+          uVar30 = 100;

+        }

+        local_res8 = CD3DDynamicAppendBuffer::BeginAppend

+                               ((CD3DDynamicAppendBuffer *)(lVar5 + 0x10),uVar24,uVar30);

+        if (local_res8 < 0) {

+          uVar38 = 0x218;

+          goto LAB_1;

+        }

+        *(uint *)(param_1 + 0x4c) = *(uint *)(lVar5 + 0x34) / *(uint *)(lVar5 + 0x30);

+      }

+      uVar25 = 0;

+      if (uVar4 != 0) {

+        lVar26 = *(longlong *)(param_1 + 0x18);

+        uVar31 = (ulonglong)*(uint *)(lVar26 + 100) + *(longlong *)(lVar26 + 0x58);

+        *(uint *)(lVar26 + 100) = uVar4 * *(int *)(lVar26 + 0x60) + *(uint *)(lVar26 + 100);

+        sVar28 = *(short *)(param_1 + 0x58) + *(short *)(param_1 + 0x4c);

+        if (uVar4 != 0) {

+          uVar32 = uVar25;

+          if ((0x1f < uVar4) &&

+             ((uVar29 + (ulonglong)(uVar4 - 1) * 2 < uVar31 ||

+              (uVar32 = 0, uVar31 + (ulonglong)(uVar4 - 1) * 2 < uVar29)))) {

+            uVar24 = 0x10;

+            do {

+              psVar21 = (short *)(uVar29 + uVar25 * 2);

+              sVar7 = psVar21[1];

+              sVar8 = psVar21[2];

+              sVar9 = psVar21[3];

+              sVar10 = psVar21[4];

+              sVar11 = psVar21[5];

+              sVar12 = psVar21[6];

+              sVar13 = psVar21[7];

+              psVar1 = (short *)(uVar31 + uVar25 * 2);

+              *psVar1 = *psVar21 + sVar28;

+              psVar1[1] = sVar7 + sVar28;

+              psVar1[2] = sVar8 + sVar28;

+              psVar1[3] = sVar9 + sVar28;

+              psVar1[4] = sVar10 + sVar28;

+              psVar1[5] = sVar11 + sVar28;

+              psVar1[6] = sVar12 + sVar28;

+              psVar1[7] = sVar13 + sVar28;

+              uVar33 = (int)uVar25 + 0x20;

+              uVar25 = (ulonglong)uVar33;

+              psVar21 = (short *)(uVar29 + (ulonglong)(uVar24 - 8) * 2);

+              sVar7 = psVar21[1];

+              sVar8 = psVar21[2];

+              sVar9 = psVar21[3];

+              sVar10 = psVar21[4];

+              sVar11 = psVar21[5];

+              sVar12 = psVar21[6];

+              sVar13 = psVar21[7];

+              psVar1 = (short *)(uVar31 + (ulonglong)(uVar24 - 8) * 2);

+              *psVar1 = *psVar21 + sVar28;

+              psVar1[1] = sVar7 + sVar28;

+              psVar1[2] = sVar8 + sVar28;

+              psVar1[3] = sVar9 + sVar28;

+              psVar1[4] = sVar10 + sVar28;

+              psVar1[5] = sVar11 + sVar28;

+              psVar1[6] = sVar12 + sVar28;

+              psVar1[7] = sVar13 + sVar28;

+              psVar21 = (short *)(uVar29 + (ulonglong)uVar24 * 2);

+              sVar7 = psVar21[1];

+              sVar8 = psVar21[2];

+              sVar9 = psVar21[3];

+              sVar10 = psVar21[4];

+              sVar11 = psVar21[5];

+              sVar12 = psVar21[6];

+              sVar13 = psVar21[7];

+              psVar1 = (short *)(uVar31 + (ulonglong)uVar24 * 2);

+              *psVar1 = *psVar21 + sVar28;

+              psVar1[1] = sVar7 + sVar28;

+              psVar1[2] = sVar8 + sVar28;

+              psVar1[3] = sVar9 + sVar28;

+              psVar1[4] = sVar10 + sVar28;

+              psVar1[5] = sVar11 + sVar28;

+              psVar1[6] = sVar12 + sVar28;

+              psVar1[7] = sVar13 + sVar28;

+              uVar30 = uVar24 + 8;

+              uVar24 = uVar24 + 0x20;

+              psVar21 = (short *)(uVar29 + (ulonglong)uVar30 * 2);

+              sVar7 = psVar21[1];

+              sVar8 = psVar21[2];

+              sVar9 = psVar21[3];

+              sVar10 = psVar21[4];

+              sVar11 = psVar21[5];

+              sVar12 = psVar21[6];

+              sVar13 = psVar21[7];

+              psVar1 = (short *)(uVar31 + (ulonglong)uVar30 * 2);

+              *psVar1 = *psVar21 + sVar28;

+              psVar1[1] = sVar7 + sVar28;

+              psVar1[2] = sVar8 + sVar28;

+              psVar1[3] = sVar9 + sVar28;

+              psVar1[4] = sVar10 + sVar28;

+              psVar1[5] = sVar11 + sVar28;

+              psVar1[6] = sVar12 + sVar28;

+              psVar1[7] = sVar13 + sVar28;

+              uVar32 = uVar25;

+            } while (uVar33 < (uVar4 & 0xffffffe0));

+          }

+          if ((uint)uVar32 < uVar4) {

+            uVar25 = (ulonglong)(uVar4 - (uint)uVar32);

+            psVar21 = (short *)(uVar31 + uVar32 * 2);

+            do {

+              *psVar21 = sVar28 + *(short *)((uVar29 - uVar31) + (longlong)psVar21);

+              psVar21 = psVar21 + 1;

+              uVar25 = uVar25 - 1;

+            } while (uVar25 != 0);

+          }

+        }

+        *(uint *)(param_1 + 0x5c) = *(int *)(param_1 + 0x5c) + uVar4;

+      }

+      *(uint *)(param_1 + 0x58) = *(int *)(param_1 + 0x58) + uVar38;

+      uVar29 = (ulonglong)*(uint *)(lVar5 + 0x34) + *(longlong *)(lVar5 + 0x28);

+      *(uint *)(lVar5 + 0x34) = uVar38 * *(int *)(lVar5 + 0x30) + *(uint *)(lVar5 + 0x34);

+      if (-1 < local_res8) {

+        fVar40 = *(float *)(param_2 + 0x58);

+        uVar38 = *(uint *)(local_c0 + 8);

+        uVar25 = (ulonglong)uVar38;

+        local_150 = *(uint *)(local_c0 + 0x10);

+        uVar31 = (ulonglong)local_150;

+        iVar20 = 0x30;

+        if (param_1[0x40] == (CD3DBatchExecutionContext)0x0) {

+          iVar20 = 0x10;

+        }

+        local_160 = *(undefined8 *)(local_c0 + 0x20);

+        local_154 = *(int *)(local_c0 + 0xc);

+        iVar37 = local_150 * 8 + 0x10;

+        iVar20 = iVar20 + *(int *)(param_1 + 0x44) * 8;

+        local_148 = *(char *)(local_c0 + 0x51);

+        lVar5 = *(longlong *)(local_c0 + 0x18);

+        local_fc = 1.0 / *(float *)(local_c0 + 0x4c);

+        local_d8 = 0;

+        local_178 = *(undefined8 *)(local_c0 + 0x28);

+        local_10c = 1.0 / *(float *)(local_c0 + 0x48);

+        fVar42 = local_fc * *(float *)(param_2 + 0x20);

+        local_110 = local_10c * *(float *)(param_2 + 0x18);

+        fVar41 = local_10c * *(float *)(param_2 + 0x10);

+        local_e8 = *(float *)(param_2 + 0x40);

+        fStack_e4 = *(float *)(param_2 + 0x44);

+        uStack_e0 = *(undefined4 *)(param_2 + 0x48);

+        fStack_dc = *(float *)(param_2 + 0x4c);

+        local_100 = local_fc * *(float *)(param_2 + 0x28);

+        fVar43 = local_fc * *(float *)(param_2 + 0x24);

+        local_fc = local_fc * *(float *)(param_2 + 0x2c);

+        fVar44 = local_10c * *(float *)(param_2 + 0x14);

+        local_10c = local_10c * *(float *)(param_2 + 0x1c);

+        local_f8 = *(undefined8 *)(param_2 + 0x30);

+        uStack_f0 = *(undefined8 *)(param_2 + 0x38);

+        local_170 = lVar5;

+        local_168 = iVar37;

+        local_164 = uVar38;

+        local_158 = iVar37;

+        local_14c = fVar40;

+        local_140 = uVar29;

+        local_138 = iVar20;

+        local_134 = uVar38;

+        local_118 = fVar41;

+        local_114 = fVar44;

+        local_108 = fVar42;

+        local_104 = fVar43;

+        if (param_1[0x40] != (CD3DBatchExecutionContext)0x0) {

+          TransferVertices<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>

+                    ((CCommonTransferParameters<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_> *)

+                     &local_178,(CMILMatrix *)(param_2 + 0x10),(CMILMatrix *)&local_118,

+                     local_124 != 0);

+        }

+        else if (local_154 == 0) {

+          TransferAliasedVertices

+                    ((CCommonTransferParameters<Vertex_UVxN<VertexXYW_ColorDW>_> *)&local_178);

+        }

+        else {

+          if (((local_150 & 1) == 0) && ((uVar29 & 0xf) == 0)) {

+            bVar14 = true;

+          }

+          else {

+            bVar14 = false;

+          }

+          if (ABS((ABS(local_fc) * 61440.0 + ABS(local_10c) * 61440.0 + ABS(fStack_dc)) - 1.0) <

+              8.138021e-05) {

+            local_d8 = 0x3000;

+          }

+          else {

+            local_d8 = 0x1000;

+            if (((!NAN(local_10c)) && (!NAN(local_fc))) && (!NAN(fStack_dc))) {

+              if (1.1920929e-06 <= ABS(fVar40 - 1.0)) {

+                if (local_148 == '\0') {

+                  VertexTransfer::

+                  Transfer<VertexTransfer::CGeneral3DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,1,Vertex_UVxN<VertexXYW_ColorDW>_>

+                            ();

+                }

+                else {

+                  VertexTransfer::

+                  Transfer<VertexTransfer::CGeneral3DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,2,Vertex_UVxN<VertexXYW_ColorDW>_>

+                            (&local_178,&local_118);

+                }

+              }

+              else {

+                VertexTransfer::

+                Transfer<VertexTransfer::CGeneral3DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,0,Vertex_UVxN<VertexXYW_ColorDW>_>

+                          ();

+              }

+              DAT_2 = DAT_2 + local_164;

+              return 0;

+            }

+          }

+          if (((8.138021e-05 < ABS(fVar41 - fVar43)) || (8.138021e-05 < ABS(fVar44 - -fVar42))) ||

+             (8.138021e-05 <= ABS((fVar42 * fVar42 + fVar41 * fVar41) - 1.0))) {

+            if (ABS(fVar40 - 1.0) < 1.1920929e-06) {

+              if (!bVar14) {

+                VertexTransfer::

+                Transfer<VertexTransfer::CScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,0,Vertex_UVxN<VertexXYW_ColorDW>_>

+                          (&local_178,&local_118);

+                DAT_3 = DAT_3 + local_164;

+                return 0;

+              }

+              VertexTransfer::

+              SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,0,Vertex_UVxN<VertexXYW_ColorDW>_>

+                        ();

+            }

+            else {

+              if (bVar14) {

+                if (local_148 == '\0') {

+                  VertexTransfer::

+                  SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,1,Vertex_UVxN<VertexXYW_ColorDW>_>

+                            ();

+                  DAT_3 = DAT_3 + local_164;

+                  return 0;

+                }

+                VertexTransfer::

+                SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,2,Vertex_UVxN<VertexXYW_ColorDW>_>

+                          ();

+                DAT_3 = DAT_3 + local_164;

+                return 0;

+              }

+              if (local_148 != '\0') {

+                VertexTransfer::

+                Transfer<VertexTransfer::CScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,2,Vertex_UVxN<VertexXYW_ColorDW>_>

+                          ();

+                DAT_3 = DAT_3 + local_164;

+                return 0;

+              }

+              VertexTransfer::

+              Transfer<VertexTransfer::CScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,1,Vertex_UVxN<VertexXYW_ColorDW>_>

+                        (&local_178);

+            }

+            DAT_3 = DAT_3 + local_164;

+          }

+          else {

+            if (ABS(fVar40 - 1.0) < 1.1920929e-06) {

+              if (bVar14) {

+                uVar25 = (ulonglong)(local_150 >> 1);

+                if (uVar38 != 0) {

+                  iVar36 = 0;

+                  iVar27 = 0;

+                  uVar31 = (ulonglong)((uVar38 - 1 >> 1) + 1);

+                  do {

+                    pfVar23 = (float *)(iVar27 + lVar5);

+                    lVar26 = (iVar27 + iVar37) + lVar5;

+                    puVar22 = (undefined8 *)((longlong)iVar36 + uVar29);

+                    puVar34 = (undefined8 *)((longlong)(iVar36 + iVar20) + uVar29);

+                    uVar39 = DirectX::MathInternal::PermuteHelper<228,0,0,0,1>::Permute

+                                       (puVar22,lVar26,*pfVar23 * fVar41);

+                    *puVar22 = uVar39;

+                    puVar22[1] = extraout_XMM0_Qb;

+                    if ((int)uVar25 != 0) {

+                      uVar32 = uVar25 & 0xffffffff;

+                      puVar2 = puVar22;

+                      do {

+                        puVar17 = puVar2 + 2;

+                        puVar18 = (undefined8 *)

+                                  (((longlong)pfVar23 - (longlong)puVar22) + (longlong)puVar17);

+                        uVar39 = puVar18[1];

+                        *puVar17 = *puVar18;

+                        puVar2[3] = uVar39;

+                        uVar32 = uVar32 - 1;

+                        puVar2 = puVar17;

+                      } while (uVar32 != 0);

+                    }

+                    uVar39 = DirectX::MathInternal::PermuteHelper<228,0,0,0,1>::Permute();

+                    *puVar34 = uVar39;

+                    puVar34[1] = extraout_XMM0_Qb_00;

+                    if ((int)uVar25 != 0) {

+                      uVar32 = uVar25 & 0xffffffff;

+                      puVar22 = puVar34;

+                      do {

+                        puVar18 = puVar22 + 2;

+                        puVar2 = (undefined8 *)((lVar26 - (longlong)puVar34) + (longlong)puVar18);

+                        uVar39 = puVar2[1];

+                        *puVar18 = *puVar2;

+                        puVar22[3] = uVar39;

+                        uVar32 = uVar32 - 1;

+                        puVar22 = puVar18;

+                      } while (uVar32 != 0);

+                    }

+                    iVar27 = iVar27 + iVar37 * 2;

+                    iVar36 = iVar36 + iVar20 * 2;

+                    uVar31 = uVar31 - 1;

+                  } while (uVar31 != 0);

+                }

+              }

+              else if (uVar38 != 0) {

+                iVar27 = 0;

+                iVar36 = 0;

+                do {

+                  pfVar23 = (float *)(iVar36 + lVar5);

+                  pfVar35 = (float *)((longlong)iVar27 + uVar29);

+                  *pfVar35 = fVar41 * *pfVar23 + fVar42 * pfVar23[1] + local_e8;

+                  fVar40 = *pfVar23;

+                  fVar15 = pfVar23[1];

+                  pfVar35[2] = 1.0;

+                  pfVar35[1] = fVar44 * fVar40 + fVar43 * fVar15 + fStack_e4;

+                  if (local_150 != 0) {

+                    pfVar19 = pfVar35 + 4;

+                    uVar32 = uVar31;

+                    do {

+                      *(undefined8 *)pfVar19 =

+                           *(undefined8 *)

+                            (((longlong)pfVar23 - (longlong)pfVar35) + (longlong)pfVar19);

+                      pfVar19 = pfVar19 + 2;

+                      uVar32 = uVar32 - 1;

+                    } while (uVar32 != 0);

+                  }

+                  iVar36 = iVar36 + iVar37;

+                  iVar27 = iVar27 + iVar20;

+                  pfVar35[3] = pfVar23[3];

+                  uVar25 = uVar25 - 1;

+                } while (uVar25 != 0);

+              }

+            }

+            else if (bVar14) {

+              if (local_148 == '\0') {

+                VertexTransfer::

+                SimdTransfer<VertexTransfer::CSimdNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,1,Vertex_UVxN<VertexXYW_ColorDW>_>

+                          ();

+                uVar38 = local_164;

+              }

+              else {

+                VertexTransfer::

+                SimdTransfer<VertexTransfer::CSimdNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,2,Vertex_UVxN<VertexXYW_ColorDW>_>

+                          (&local_178,&local_118);

+                uVar38 = local_164;

+              }

+            }

+            else if (uVar38 != 0) {

+              if (local_148 == '\0') {

+                iVar36 = 0;

+                iVar27 = 0;

+                local_148 = 0;

+                do {

+                  pfVar23 = (float *)(iVar27 + lVar5);

+                  pfVar35 = (float *)((longlong)iVar36 + uVar29);

+                  *pfVar35 = fVar41 * *pfVar23 + fVar42 * pfVar23[1] + local_e8;

+                  fVar15 = *pfVar23;

+                  fVar3 = pfVar23[1];

+                  pfVar35[2] = 1.0;

+                  pfVar35[1] = fVar44 * fVar15 + fVar43 * fVar3 + fStack_e4;

+                  if ((int)uVar31 != 0) {

+                    pfVar19 = pfVar35 + 4;

+                    uVar32 = uVar31;

+                    do {

+                      *(undefined8 *)pfVar19 =

+                           *(undefined8 *)

+                            (((longlong)pfVar23 - (longlong)pfVar35) + (longlong)pfVar19);

+                      pfVar19 = pfVar19 + 2;

+                      uVar32 = uVar32 - 1;

+                    } while (uVar32 != 0);

+                  }

+                  fVar15 = (float)BlendPremultipliedColorDW((ulong)pfVar23[3],fVar40);

+                  iVar27 = iVar27 + iVar37;

+                  pfVar35[3] = fVar15;

+                  iVar36 = iVar36 + iVar20;

+                  uVar25 = uVar25 - 1;

+                } while (uVar25 != 0);

+              }

+              else {

+                iVar36 = 0;

+                iVar27 = 0;

+                do {

+                  pfVar23 = (float *)(iVar27 + lVar5);

+                  pfVar35 = (float *)((longlong)iVar36 + uVar29);

+                  *pfVar35 = fVar41 * *pfVar23 + fVar42 * pfVar23[1] + local_e8;

+                  fVar15 = *pfVar23;

+                  fVar3 = pfVar23[1];

+                  pfVar35[2] = 1.0;

+                  pfVar35[1] = fVar44 * fVar15 + fVar43 * fVar3 + fStack_e4;

+                  if (local_150 != 0) {

+                    pfVar19 = pfVar35 + 4;

+                    uVar32 = uVar31;

+                    do {

+                      *(undefined8 *)pfVar19 =

+                           *(undefined8 *)

+                            (((longlong)pfVar23 - (longlong)pfVar35) + (longlong)pfVar19);

+                      pfVar19 = pfVar19 + 2;

+                      uVar32 = uVar32 - 1;

+                    } while (uVar32 != 0);

+                  }

+                  fVar15 = pfVar23[3];

+                  iVar27 = iVar27 + iVar37;

+                  iVar36 = iVar36 + iVar20;

+                  pfVar35[3] = (float)((((int)((float)((uint)fVar15 >> 0x18) * fVar40) << 8 |

+                                        (int)(float)((uint)fVar15 >> 0x10 & 0xff)) << 8 |

+                                       (int)(float)((uint)fVar15 >> 8 & 0xff)) << 8 |

+                                      (int)(float)((uint)fVar15 & 0xff));

+                  uVar25 = uVar25 - 1;

+                } while (uVar25 != 0);

+              }

+            }

+            DAT_4 = DAT_4 + uVar38;

+          }

+        }

+        return 0;

+      }

+      goto LAB_5;

+    }

+    uVar38 = 0x211;

+  }

+LAB_1:

+  MilInstrumentationCheckHR_MaybeFailFast(0x14,(long *)0x0,0,local_res8,uVar38,(void *)0x0);

+LAB_5:

+  wil::details::in1diag3::Return_Hr

+            (unaff_retaddr,0xb0,

+             "onecoreuap\\windows\\dwm\\dwmcore\\rendering\\renderingbatchcommand.cpp",local_res8);

+  return local_res8;

+}

+
```

## `CCaptureRenderTarget::ProcessSetVisualsToExclude`  (modified)

```diff
--- CCaptureRenderTarget::ProcessSetVisualsToExclude
+++ CCaptureRenderTarget::ProcessSetVisualsToExclude
@@ -1,2 +1,38 @@
-Failed to decompile dwmcore.dll - .ProgramDB CCaptureRenderTarget::ProcessSetVisualsToExclude : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* public: long __cdecl CCaptureRenderTarget::ProcessSetVisualsToExclude(class CResourceTable *

+   __ptr64,struct tagMILCMD_CAPTURERENDERTARGET_SETVISUALSTOEXCLUDE const * __ptr64) __ptr64 */

+

+long __thiscall

+CCaptureRenderTarget::ProcessSetVisualsToExclude

+          (CCaptureRenderTarget *this,CResourceTable *param_1,

+          tagMILCMD_CAPTURERENDERTARGET_SETVISUALSTOEXCLUDE *param_2)

+

+{

+  bool bVar1;

+  long lVar2;

+  CResource *pCVar3;

+  

+  bVar1 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_Capture_WindowExclusionBackport>::

+          __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_Capture_WindowExclusionBackport>

+                               *)&`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_Capture_WindowExclusionBackport>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_Capture_WindowExclusionBackport>::GetImpl(void)'

+                                  ::__l2::impl);

+  pCVar3 = (CResource *)0x0;

+  if (bVar1) {

+    if (*(int *)(param_2 + 8) != 0) {

+      pCVar3 = CResourceTable::GetResource(param_1,*(uint *)(param_2 + 8),0xbb);

+    }

+    wil::com_ptr_t<CVisualGroup,wil::err_returncode_policy>::operator=

+              ((com_ptr_t<CVisualGroup,wil::err_returncode_policy> *)(this + 0xc48),

+               (CVisualGroup *)pCVar3);

+    (**(code **)(*(longlong *)(this + 0x60) + 0x30))();

+    lVar2 = 0;

+    this[0xa91] = (CCaptureRenderTarget)0x1;

+  }

+  else {

+    lVar2 = -0x7fffbfff;

+  }

+  return lVar2;

+}

+
```

## `CDelegatedInkCanvas::~CDelegatedInkCanvas`  (modified)

```diff
--- CDelegatedInkCanvas::~CDelegatedInkCanvas
+++ CDelegatedInkCanvas::~CDelegatedInkCanvas
@@ -1,2 +1,50 @@
-Failed to decompile dwmcore.dll - .ProgramDB CDelegatedInkCanvas::~CDelegatedInkCanvas : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* private: virtual __cdecl CDelegatedInkCanvas::~CDelegatedInkCanvas(void) __ptr64 */

+

+void __thiscall CDelegatedInkCanvas::~CDelegatedInkCanvas(CDelegatedInkCanvas *this)

+

+{

+  vector<unsigned_char,std::allocator<unsigned_char>_> *this_00;

+  long lVar1;

+  int iVar2;

+  void *unaff_retaddr;

+  IInkCanvasInputHost *local_res8;

+  

+  *(undefined ***)this = &_vftable_;

+  CSuperWetInkManager::RemoveSource

+            (*(CSuperWetInkManager **)(*(longlong *)(this + 0x18) + 0x2b8),(CSuperWetSource *)this);

+  this_00 = (vector<unsigned_char,std::allocator<unsigned_char>_> *)(this + 0xa8);

+  if (*(longlong *)this_00 != *(longlong *)(this + 0xb0)) {

+    local_res8 = (IInkCanvasInputHost *)0x0;

+    lVar1 = CMit::GetInkCanvasInputHost(&local_res8);

+    if (lVar1 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::FailFast_Hr

+                (unaff_retaddr,0x1b,

+                 "onecoreuap\\windows\\dwm\\dwmcore\\resources\\delegatedinkcanvas.cpp",lVar1);

+    }

+    iVar2 = (**(code **)(*(longlong *)local_res8 + 0x20))(local_res8,*(undefined8 *)this_00);

+    if (iVar2 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::FailFast_Hr

+                (unaff_retaddr,0x1d,

+                 "onecoreuap\\windows\\dwm\\dwmcore\\resources\\delegatedinkcanvas.cpp",iVar2);

+    }

+    wil::

+    com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+    ::

+    ~com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+              ((com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+                *)&local_res8);

+  }

+  std::unique_ptr<CSharedCircularQueue,std::default_delete<CSharedCircularQueue>_>::

+  ~unique_ptr<CSharedCircularQueue,std::default_delete<CSharedCircularQueue>_>

+            ((unique_ptr<CSharedCircularQueue,std::default_delete<CSharedCircularQueue>_> *)

+             (this + 0xc0));

+  std::vector<unsigned_char,std::allocator<unsigned_char>_>::_Tidy(this_00);

+  CSuperWetSource::~CSuperWetSource((CSuperWetSource *)this);

+  return;

+}

+
```

## `VertexTransfer::SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>,0,Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>`  (modified)

```diff
--- VertexTransfer::SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>,0,Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>
+++ VertexTransfer::SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>,0,Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>
@@ -1,2 +1,155 @@
-Failed to decompile dwmcore.dll - .ProgramDB VertexTransfer::SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>,0,Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_> : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+void VertexTransfer::

+     SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>,0,Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>

+               (undefined8 *param_1,undefined4 *param_2,CMILMatrix *param_3,longlong param_4)

+

+{

+  StridedSpan<Vertex_UVxN<VertexXYW_ColorDW>_const_> *pSVar1;

+  uint uVar2;

+  StridedSpan<Vertex_UVxN<VertexXYW_ColorDW>_const_> *pSVar3;

+  float fVar4;

+  float fVar5;

+  float fVar6;

+  float fVar7;

+  ushort uVar8;

+  undefined8 *puVar9;

+  int iVar10;

+  undefined8 *puVar11;

+  longlong lVar12;

+  int iVar13;

+  longlong lVar14;

+  longlong lVar15;

+  uint uVar16;

+  undefined8 uVar17;

+  float extraout_XMM0_Dc;

+  float extraout_XMM0_Dd;

+  float fVar18;

+  float fVar19;

+  float fVar20;

+  float fVar21;

+  float fVar22;

+  float fVar23;

+  float fVar24;

+  float fVar25;

+  undefined4 uVar26;

+  undefined4 uVar27;

+  undefined4 uVar28;

+  undefined4 uVar29;

+  float fVar30;

+  float fVar31;

+  undefined4 local_a8;

+  undefined4 uStack_a4;

+  undefined4 uStack_a0;

+  undefined4 uStack_9c;

+  undefined4 local_98;

+  undefined4 uStack_94;

+  undefined4 uStack_90;

+  undefined4 uStack_8c;

+  undefined4 local_88;

+  undefined4 uStack_84;

+  undefined4 uStack_80;

+  undefined4 uStack_7c;

+  undefined8 local_78;

+  undefined8 uStack_70;

+  

+  pSVar3 = (StridedSpan<Vertex_UVxN<VertexXYW_ColorDW>_const_> *)*param_1;

+  uVar26 = 0;

+  uVar27 = 0;

+  uVar28 = 0;

+  uVar29 = 0x3f800000;

+  if ((param_3 != (CMILMatrix *)0x0) && (param_4 != 0)) {

+    CalculateTBNFrameFrom3Vertices

+              ((D2D_POINT_2F *)&local_a8,pSVar3,(CMILMatrix *)(param_1 + 1),param_3);

+    uVar26 = local_a8;

+    uVar27 = uStack_a4;

+    uVar28 = uStack_a0;

+    uVar29 = uStack_9c;

+  }

+  uVar2 = *(uint *)((longlong)param_1 + 0x14);

+  uVar16 = 0;

+  local_98 = *param_2;

+  uStack_94 = param_2[1];

+  local_78 = *(undefined8 *)(param_2 + 0xc);

+  local_88 = param_2[4];

+  uStack_84 = param_2[5];

+  uStack_70 = 0;

+  uStack_90 = local_98;

+  uStack_8c = uStack_94;

+  uStack_80 = local_88;

+  uStack_7c = uStack_84;

+  if (uVar2 != 0) {

+    do {

+      iVar10 = uVar16 + 1;

+      iVar13 = *(int *)(param_1 + 4);

+      lVar12 = param_1[3];

+      puVar9 = (undefined8 *)((longlong)(int)(*(int *)(param_1 + 2) * uVar16) + param_1[1]);

+      puVar11 = (undefined8 *)((longlong)(iVar10 * *(int *)(param_1 + 2)) + param_1[1]);

+      lVar15 = (longlong)(int)(*(int *)(param_1 + 8) * uVar16) + param_1[7];

+      lVar14 = (longlong)(*(int *)(param_1 + 8) * iVar10) + param_1[7];

+      CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>::Transform

+                ((CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_> *)&local_98

+                 ,puVar9,(int)(iVar13 * uVar16) + lVar12,*puVar9);

+      CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>::Transform

+                ((CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_> *)&local_98

+                 ,puVar11,iVar13 * iVar10 + lVar12,*puVar11);

+      pSVar1 = pSVar3 + (ulonglong)(uVar16 >> 1) * 0x10;

+      fVar4 = *(float *)pSVar1;

+      fVar5 = *(float *)(pSVar1 + 4);

+      fVar6 = *(float *)(pSVar1 + 8);

+      fVar7 = *(float *)(pSVar1 + 0xc);

+      if (param_3 == (CMILMatrix *)0x0) {

+        fVar20 = 0.0;

+        fVar21 = 0.0;

+        uVar17 = DirectX::XMVectorPermute<0,1,6,7>(fVar4,0);

+        fVar18 = fVar6;

+        fVar19 = fVar7;

+        fVar30 = extraout_XMM0_Dc;

+        fVar31 = extraout_XMM0_Dd;

+      }

+      else {

+        fVar24 = (float)*(undefined8 *)param_3;

+        fVar25 = (float)((ulonglong)*(undefined8 *)param_3 >> 0x20);

+        fVar22 = (float)*(undefined8 *)(param_3 + 0x10);

+        fVar23 = (float)((ulonglong)*(undefined8 *)(param_3 + 0x10) >> 0x20);

+        fVar18 = (float)*(undefined8 *)(param_3 + 0x30);

+        fVar19 = (float)((ulonglong)*(undefined8 *)(param_3 + 0x30) >> 0x20);

+        uVar17 = CONCAT44(fVar5 * fVar23 + fVar19 + fVar4 * fVar25,

+                          fVar5 * fVar22 + fVar18 + fVar4 * fVar24);

+        fVar30 = fVar5 * *(float *)(param_3 + 0x18) + *(float *)(param_3 + 0x38) +

+                 fVar4 * *(float *)(param_3 + 8);

+        fVar31 = fVar5 * 0.0 + 0.0 + fVar4 * 0.0;

+        fVar20 = fVar7 * *(float *)(param_3 + 0x18) + *(float *)(param_3 + 0x38) +

+                 fVar6 * *(float *)(param_3 + 8);

+        fVar21 = fVar7 * 0.0 + 0.0 + fVar6 * 0.0;

+        fVar18 = fVar7 * fVar22 + fVar18 + fVar6 * fVar24;

+        fVar19 = fVar7 * fVar23 + fVar19 + fVar6 * fVar25;

+      }

+      *(undefined8 *)(lVar15 + 0x10) = uVar17;

+      *(float *)(lVar15 + 0x18) = fVar30;

+      *(float *)(lVar15 + 0x1c) = fVar31;

+      *(undefined4 *)(lVar15 + 0x20) = uVar26;

+      *(undefined4 *)(lVar15 + 0x24) = uVar27;

+      *(undefined4 *)(lVar15 + 0x28) = uVar28;

+      *(undefined4 *)(lVar15 + 0x2c) = uVar29;

+      *(float *)(lVar14 + 0x10) = fVar18;

+      *(float *)(lVar14 + 0x14) = fVar19;

+      *(float *)(lVar14 + 0x18) = fVar20;

+      *(float *)(lVar14 + 0x1c) = fVar21;

+      *(undefined4 *)(lVar14 + 0x20) = uVar26;

+      *(undefined4 *)(lVar14 + 0x24) = uVar27;

+      *(undefined4 *)(lVar14 + 0x28) = uVar28;

+      *(undefined4 *)(lVar14 + 0x2c) = uVar29;

+      uVar8 = DirectX::PackedVector::XMConvertFloatToHalf(fVar4);

+      *(ushort *)(lVar15 + 0x1c) = uVar8;

+      uVar8 = DirectX::PackedVector::XMConvertFloatToHalf(fVar5);

+      *(ushort *)(lVar15 + 0x1e) = uVar8;

+      uVar8 = DirectX::PackedVector::XMConvertFloatToHalf(fVar6);

+      *(ushort *)(lVar14 + 0x1c) = uVar8;

+      uVar8 = DirectX::PackedVector::XMConvertFloatToHalf(fVar7);

+      uVar16 = uVar16 + 2;

+      *(ushort *)(lVar14 + 0x1e) = uVar8;

+    } while (uVar16 < uVar2);

+  }

+  return;

+}

+
```

## `CDDisplayManager::GetDisplayDeviceAndTarget`  (modified)

```diff
--- CDDisplayManager::GetDisplayDeviceAndTarget
+++ COverlaySwapChain::COverlaySwapChain
@@ -1,2 +1,2 @@
-Failed to decompile dwmcore.dll - .ProgramDB CDDisplayManager::GetDisplayDeviceAndTarget : Error: Decompile error: 
+Failed to decompile dwmcore.dll - .ProgramDB COverlaySwapChain::COverlaySwapChain : Error: Decompile error: 
 Marshaling error: Did not see expected closing element
```

## `COverlayContext::CheckAndRecordOverlayCandidate`  (modified)

```diff
--- COverlayContext::CheckAndRecordOverlayCandidate
+++ COverlayContext::CheckAndRecordOverlayCandidate
@@ -1,2 +1,514 @@
-Failed to decompile dwmcore.dll - .ProgramDB COverlayContext::CheckAndRecordOverlayCandidate : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* public: long __cdecl COverlayContext::CheckAndRecordOverlayCandidate(class CVisual *

+   __ptr64,class TMilRect_<float,struct D2D_RECT_F,struct D3D_RECT_F,struct

+   D2D_POINTANDSIZE_F,struct RectUniqueness::NotNeeded> const & __ptr64,class

+   CCompositionSurfaceInfo * __ptr64,class ISwapChainRealization * __ptr64,class

+   TMilRect_<float,struct D2D_RECT_F,struct D3D_RECT_F,struct D2D_POINTANDSIZE_F,struct

+   RectUniqueness::NotNeeded> const & __ptr64,class TMilRect_<float,struct D2D_RECT_F,struct

+   D3D_RECT_F,struct D2D_POINTANDSIZE_F,struct RectUniqueness::NotNeeded> const & __ptr64,class

+   TMilRect_<float,struct D2D_RECT_F,struct D3D_RECT_F,struct D2D_POINTANDSIZE_F,struct

+   RectUniqueness::NotNeeded> const & __ptr64,class CCornerRects const & __ptr64,class CMILMatrix

+   const & __ptr64,enum DXGI_MODE_ROTATION,unsigned int,bool) __ptr64 */

+

+long __thiscall

+COverlayContext::CheckAndRecordOverlayCandidate

+          (COverlayContext *this,CVisual *param_1,

+          TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded>

+          *param_2,CCompositionSurfaceInfo *param_3,ISwapChainRealization *param_4,

+          TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded>

+          *param_5,TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded>

+                   *param_6,

+          TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded>

+          *param_7,CCornerRects *param_8,CMILMatrix *param_9,DXGI_MODE_ROTATION param_10,

+          uint param_11,bool param_12)

+

+{

+  ISwapChainRealization *pIVar1;

+  undefined1 auVar2 [16];

+  undefined4 uVar3;

+  undefined4 uVar4;

+  longlong *plVar5;

+  code *pcVar6;

+  undefined8 uVar7;

+  undefined8 uVar8;

+  undefined8 uVar9;

+  undefined8 uVar10;

+  undefined8 uVar11;

+  undefined8 uVar12;

+  undefined8 uVar13;

+  undefined8 uVar14;

+  undefined8 uVar15;

+  undefined8 uVar16;

+  undefined8 uVar17;

+  undefined8 uVar18;

+  undefined8 uVar19;

+  undefined8 uVar20;

+  undefined8 uVar21;

+  undefined8 uVar22;

+  undefined8 uVar23;

+  undefined8 uVar24;

+  undefined8 uVar25;

+  TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded> *pTVar26;

+  bool bVar27;

+  bool bVar28;

+  bool bVar29;

+  bool bVar30;

+  char cVar31;

+  int iVar32;

+  OverlaySize OVar33;

+  uint uVar34;

+  longlong lVar35;

+  uint *puVar36;

+  undefined1 (*pauVar37) [16];

+  int *piVar38;

+  undefined4 *puVar39;

+  RenderTargetInfo *this_00;

+  CMonitorTransform *this_01;

+  undefined8 *puVar40;

+  undefined *puVar41;

+  Enum EVar42;

+  Enum EVar43;

+  char cVar44;

+  char cVar45;

+  undefined1 auStackY_438 [32];

+  TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded> *local_350;

+  IAdvancedDirectFlipBitmapRealization *local_348;

+  uint local_340;

+  undefined4 local_33c;

+  ISwapChainRealization *local_338;

+  CVisual *local_330;

+  TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded> local_328 [16]

+  ;

+  COverlayContext *local_318;

+  CCompositionSurfaceInfo *local_310;

+  TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded> *local_308;

+  undefined8 uStack_300;

+  TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded> *local_2f8;

+  undefined8 uStack_2f0;

+  undefined8 local_2e8;

+  undefined8 uStack_2e0;

+  undefined8 local_2d8;

+  undefined8 uStack_2d0;

+  int local_2c8;

+  int local_2c4;

+  uint local_2c0;

+  float local_2b8;

+  undefined8 local_2a8;

+  undefined8 uStack_2a0;

+  undefined8 local_298;

+  undefined8 uStack_290;

+  undefined8 local_288;

+  undefined8 uStack_280;

+  undefined8 local_278;

+  undefined8 uStack_270;

+  undefined4 local_268;

+  undefined8 local_258;

+  undefined8 uStack_250;

+  undefined8 local_248;

+  undefined8 uStack_240;

+  undefined8 local_238;

+  undefined8 uStack_230;

+  undefined8 local_228;

+  undefined8 uStack_220;

+  undefined4 local_218;

+  undefined8 local_208;

+  undefined8 uStack_200;

+  undefined8 local_1f8;

+  undefined8 uStack_1f0;

+  undefined8 local_1e8;

+  undefined8 uStack_1e0;

+  undefined8 local_1d8;

+  undefined8 uStack_1d0;

+  undefined8 local_1c8;

+  undefined8 uStack_1c0;

+  TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded> *local_1b8;

+  undefined8 uStack_1b0;

+  TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded> *local_1a8;

+  undefined8 uStack_1a0;

+  undefined8 local_198;

+  undefined8 uStack_190;

+  undefined8 local_188;

+  undefined8 uStack_180;

+  uint local_178;

+  tagRECT tStack_174;

+  tagRECT tStack_164;

+  tagRECT tStack_154;

+  DXGI_MODE_ROTATION DStack_144;

+  undefined4 uStack_140;

+  undefined4 uStack_13c;

+  undefined8 local_138;

+  undefined4 uStack_130;

+  DXGI_COLOR_SPACE_TYPE DStack_12c;

+  TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded> *local_128;

+  undefined8 uStack_120;

+  undefined4 local_118;

+  undefined4 uStack_114;

+  uint uStack_110;

+  undefined4 uStack_10c;

+  undefined1 local_108 [2] [16];

+  ulonglong local_e8;

+  

+  local_e8 = __security_cookie ^ (ulonglong)auStackY_438;

+  local_348 = (IAdvancedDirectFlipBitmapRealization *)param_6;

+  local_338 = param_4;

+  local_350 = param_5;

+  local_2f8 = param_7;

+  local_178 = param_11;

+  local_330 = param_1;

+  local_318 = this;

+  local_310 = param_3;

+  local_308 = param_2;

+  memset(&tStack_174,0,0x6c);

+  (**(code **)(*(longlong *)(*(longlong *)this + 8) + 0x18))

+            ((longlong *)(*(longlong *)this + 8),&local_2c8);

+  pIVar1 = param_4 + 8;

+  lVar35 = (**(code **)(*(longlong *)pIVar1 + 0x18))(pIVar1,&local_188);

+  if (*(int *)(lVar35 + 4) == 1) {

+    return 0;

+  }

+  puVar36 = (uint *)(**(code **)(*(longlong *)pIVar1 + 0x30))(pIVar1,&local_33c);

+  if (((*puVar36 != 0xffffffff) && (*puVar36 != local_2c0)) && (local_2c0 != 0xfffffffd)) {

+    return 0;

+  }

+  tStack_174.left = ((int)(*(float *)local_350 + 6291456.0) << 10) >> 0xb;

+  tStack_174.top = ((int)(*(float *)(local_350 + 4) + 6291456.0) << 10) >> 0xb;

+  tStack_174.right = ((int)(*(float *)(local_350 + 8) + 6291456.0) << 10) >> 0xb;

+  tStack_174.bottom = ((int)(*(float *)(local_350 + 0xc) + 6291456.0) << 10) >> 0xb;

+  tStack_164.left = ((int)(*(float *)local_348 + 6291456.0) << 10) >> 0xb;

+  tStack_164.top = ((int)(*(float *)(local_348 + 4) + 6291456.0) << 10) >> 0xb;

+  tStack_164.right = ((int)(*(float *)(local_348 + 8) + 6291456.0) << 10) >> 0xb;

+  tStack_164.bottom = ((int)(*(float *)(local_348 + 0xc) + 6291456.0) << 10) >> 0xb;

+  uStack_140 = 0;

+  tStack_154.left = ((int)(*(float *)param_7 + 6291456.0) << 10) >> 0xb;

+  tStack_154.top = ((int)(*(float *)(param_7 + 4) + 6291456.0) << 10) >> 0xb;

+  tStack_154.right = ((int)(*(float *)(param_7 + 8) + 6291456.0) << 10) >> 0xb;

+  tStack_154.bottom = ((int)(*(float *)(param_7 + 0xc) + 6291456.0) << 10) >> 0xb;

+  DStack_144 = param_10;

+  lVar35 = (**(code **)(*(longlong *)pIVar1 + 0x18))(pIVar1,&local_188);

+  DStack_12c = *(DXGI_COLOR_SPACE_TYPE *)(lVar35 + 8);

+  local_118 = 2;

+  uStack_110 = ConvertSDRBoostToSDRWhiteLevel(local_2b8,DStack_12c);

+  iVar32 = (**(code **)(*(longlong *)param_3 + 0x58))(param_3);

+  if ((iVar32 == 2) &&

+     ((*(float *)(this + 0x4c6c) - *(float *)(this + 0x4c64)) *

+      (*(float *)(this + 0x4c68) - *(float *)(this + 0x4c60)) <

+      (*(float *)(param_7 + 0xc) - *(float *)(param_7 + 4)) *

+      (*(float *)(param_7 + 8) - *(float *)param_7))) {

+    uVar7 = *(undefined8 *)(param_7 + 8);

+    *(undefined8 *)(this + 0x4c60) = *(undefined8 *)param_7;

+    *(undefined8 *)(this + 0x4c68) = uVar7;

+  }

+  local_340 = local_2c0 & 0xffffff00;

+  if ((*(int *)(this + 0x4c40) < 2000) && ((param_11 & 3) != 0)) {

+    bVar27 = TMilRect<int,tagRECT,D2D_POINTANDSIZE_L,RectUniqueness::_CMilRectL_>::DoesContain

+                       ((TMilRect<int,tagRECT,D2D_POINTANDSIZE_L,RectUniqueness::_CMilRectL_> *)

+                        &tStack_154,

+                        (TMilRect<int,struct_tagRECT,struct_D2D_POINTANDSIZE_L,struct_RectUniqueness::_CMilRectL_>

+                         *)&tStack_164);

+    local_340 = (uint)!bVar27;

+  }

+  cVar44 = (char)local_340;

+  bVar27 = IsIntelWorkaroundNeeded(this,&tStack_174,&tStack_164,&tStack_154);

+  pauVar37 = (undefined1 (*) [16])

+             CVisitedContent::CalcContentOnTop((CVisitedContent *)(this + 0x4ba0),local_328);

+  auVar2 = *pauVar37;

+  local_328 = (TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded>

+                [16])auVar2;

+  local_108[0] = auVar2;

+  bVar28 = TMilRect<int,tagRECT,D2D_POINTANDSIZE_L,RectUniqueness::_CMilRectL_>::IsEmpty

+                     ((TMilRect<int,tagRECT,D2D_POINTANDSIZE_L,RectUniqueness::_CMilRectL_> *)

+                      local_108);

+  piVar38 = (int *)(**(code **)(*(longlong *)param_4 + 0x40))(param_4,&local_350);

+  if (*piVar38 != local_2c8) {

+    return 0;

+  }

+  if (piVar38[1] != local_2c4) {

+    return 0;

+  }

+  cVar45 = (**(code **)(*(longlong *)param_4 + 0x38))(param_4);

+  if (cVar45 != '\0') {

+    lVar35 = (**(code **)(*(longlong *)param_4 + 0x28))(param_4);

+    bVar29 = CD2DContext::IsHardwareProtectionDisabled((CD2DContext *)(lVar35 + 0x10));

+    if (bVar29) {

+      return 0;

+    }

+  }

+  OVar33 = CalcOverlaySize(this,(DXGI_MULTIPLANE_OVERLAY_ATTRIBUTES *)&local_178);

+  local_350 = (TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded> *

+              )0x0;

+  (*(code *)**(undefined8 **)param_4)

+            (param_4,&_GUID_51e2a1f0_4a0d_4788_800f_3cee7a2512a6,&local_350);

+  local_348 = (IAdvancedDirectFlipBitmapRealization *)0x0;

+  if ((*(longlong *)(*(longlong *)(g_pComposition + 0x290) + 0x20) -

+       *(longlong *)(*(longlong *)(g_pComposition + 0x290) + 0x18) == 8) &&

+     (lVar35 = (**(code **)(*(longlong *)param_4 + 0x28))(param_4), *(int *)(lVar35 + 0x26c) < 0xc80

+     )) {

+    if (local_348 != (IAdvancedDirectFlipBitmapRealization *)0x0) {

+      (**(code **)(*(longlong *)local_348 + 0x10))();

+    }

+    ISwapChainRealization::QueryInterface<IAdvancedDirectFlipBitmapRealization>(param_4,&local_348);

+  }

+  if ((Microsoft_Windows_Dwm_CoreEnableBits._1_1_ & 2) != 0) {

+    puVar39 = (undefined4 *)(**(code **)(*(longlong *)pIVar1 + 0x18))(pIVar1,&local_198);

+    local_33c = *puVar39;

+    (**(code **)(*(longlong *)pIVar1 + 0x20))(pIVar1,&local_2e8);

+    (**(code **)(*(longlong *)pIVar1 + 0x20))(pIVar1,&local_2d8);

+    pIVar1 = local_338;

+    (**(code **)(*(longlong *)local_338 + 0x98))(local_338);

+    (**(code **)(*(longlong *)pIVar1 + 0x90))(pIVar1);

+    (**(code **)(*(longlong *)pIVar1 + 0xa8))(pIVar1);

+    (**(code **)(*(longlong *)(local_338 + 0x10) + 0x18))(local_338 + 0x10,&local_188);

+    McTemplateU0xdddddddqqddddddddddddqqq_EventWriteTransfer();

+    cVar44 = (char)local_340;

+    param_4 = local_338;

+    param_3 = local_310;

+    this = local_318;

+  }

+  bVar29 = false;

+  if ((OVar33 == 2) && (this[0x4c8b] == (COverlayContext)0x0)) {

+    cVar45 = false;

+    if (local_350 ==

+        (TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded> *)0x0)

+    {

+      uVar34 = (**(code **)(*(longlong *)param_3 + 0x48))(param_3);

+      bVar30 = IsCandidateDirectFlipCompatible

+                         (this,param_3,param_4,(DXGI_MULTIPLANE_OVERLAY_ATTRIBUTES *)&local_178,

+                          uVar34,param_12);

+      if ((bVar30) &&

+         ((bVar30 = OverlaysEnabled(this), !bVar30 || (*(int *)(this + 0x4c40) < 0x898)))) {

+        if (((byte)Microsoft_Windows_Dwm_CoreEnableBits & 0x10) != 0) {

+          puVar40 = (undefined8 *)

+                    (**(code **)(*(longlong *)(param_4 + 0x10) + 0x18))(param_4 + 0x10,&local_188);

+          McTemplateU0p_EventWriteTransfer

+                    (*(undefined4 *)puVar40,&EVTDESC_ETWGUID_DIRECTFLIP_CANDIDATERECORDEVENT,

+                     CONCAT44((int)((ulonglong)*puVar40 >> 0x20),*(undefined4 *)puVar40));

+        }

+        if ((this[0x4bc0] != (COverlayContext)0x0) && (this[0x4bc1] == (COverlayContext)0x0)) {

+          bVar29 = true;

+        }

+        EVar43 = 2;

+        if (!bVar28) {

+          if (local_348 == (IAdvancedDirectFlipBitmapRealization *)0x0) {

+            EVar43 = 1;

+            if (bVar29 == false) goto LAB_0;

+          }

+          else {

+            plVar5 = *(longlong **)this;

+            pcVar6 = *(code **)(*plVar5 + 0x18);

+            piVar38 = (int *)(**(code **)(*(longlong *)(param_4 + 8) + 0x18))

+                                       (param_4 + 8,&local_198);

+            iVar32 = *piVar38;

+            piVar38 = (int *)(*pcVar6)(plVar5,&local_188);

+            if (iVar32 == *piVar38) {

+              if (bVar29 == false) {

+                EVar42 = 3;

+                EVar43 = 3;

+                if ((Microsoft_Windows_Dwm_CoreEnableBits._1_1_ & 2) != 0) {

+                  puVar40 = (undefined8 *)

+                            (**(code **)(*(longlong *)(param_4 + 0x10) + 0x18))

+                                      (param_4 + 0x10,&local_188);

+                  puVar41 = &EVTDESC_ADVANCED_DIRECTFLIP_RECORDCANDIDATE;

+LAB_1:

+                  McTemplateU0xqqqqt_EventWriteTransfer

+                            (*(undefined4 *)puVar40,puVar41,

+                             CONCAT44((int)((ulonglong)*puVar40 >> 0x20),*(undefined4 *)puVar40),1);

+                  EVar43 = EVar42;

+                }

+              }

+              else {

+                EVar42 = 4;

+                EVar43 = 4;

+                if ((Microsoft_Windows_Dwm_CoreEnableBits._1_1_ & 2) != 0) {

+                  puVar40 = (undefined8 *)

+                            (**(code **)(*(longlong *)(param_4 + 0x10) + 0x18))

+                                      (param_4 + 0x10,&local_188);

+                  puVar41 = &EVTDESC_ADVANCED_DIRECTFLIP_NORESTORE_RECORDCANDIDATE;

+                  goto LAB_1;

+                }

+              }

+            }

+            else {

+              if (bVar29 == false) {

+                if (((byte)Microsoft_Windows_Dwm_CoreEnableBits & 0x10) != 0) {

+                  puVar40 = (undefined8 *)

+                            (**(code **)(*(longlong *)(param_4 + 0x10) + 0x18))

+                                      (param_4 + 0x10,&local_188);

+                  McTemplateU0xqqdddd_EventWriteTransfer

+                            (*(undefined4 *)puVar40,auVar2._8_8_,

+                             CONCAT44((int)((ulonglong)*puVar40 >> 0x20),*(undefined4 *)puVar40));

+                }

+                goto LAB_0;

+              }

+              EVar43 = 1;

+            }

+          }

+        }

+        CDirectFlipInfo::Init

+                  ((CDirectFlipInfo *)(this + 0x4bc8),*(IOverlayMonitorTarget **)this,local_330,

+                   param_3,EVar43,

+                   (TMilRect_<int,tagRECT,D2D_POINTANDSIZE_L,Mil3DRectL,RectUniqueness::_CMilRectL_>

+                    *)local_108);

+        goto LAB_0;

+      }

+      goto LAB_2;

+    }

+  }

+  else {

+LAB_2:

+    cVar45 = local_350 ==

+             (TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded> *)

+             0x0;

+  }

+  bVar30 = OverlaysEnabled(this);

+  if (cVar45 == '\0') {

+    if ((!bVar30) || (*(int *)(this + 0x30) == 0)) goto LAB_0;

+  }

+  else if ((!bVar30) && ((OVar33 != 2 || (!bVar28)))) goto LAB_0;

+  this_00 = (RenderTargetInfo *)

+            (**(code **)(*(longlong *)(*(longlong *)this + 8) + 0x18))

+                      ((longlong *)(*(longlong *)this + 8),local_108);

+  bVar28 = RenderTargetInfo::IsHDR(this_00);

+  if ((!bVar28) ||

+     (((lVar35 = (**(code **)(*(longlong *)param_4 + 0x28))(param_4),

+       *(int *)(lVar35 + 0x380) != 0x4d4f4351 ||

+       (cVar45 = (**(code **)(*(longlong *)param_3 + 0x98))(param_3), cVar45 == '\0')) ||

+      (OVar33 != 0)))) {

+    cVar45 = bVar29;

+    if (local_348 != (IAdvancedDirectFlipBitmapRealization *)0x0) {

+      cVar45 = (**(code **)(*(longlong *)local_348 + 0x18))();

+    }

+    cVar31 = (**(code **)(*(longlong *)param_3 + 0x88))(param_3);

+    if (((cVar31 == '\0') && (cVar44 == '\0')) && ((!bVar27 && (cVar45 == '\0')))) {

+      if (((param_12) &&

+          (iVar32 = (**(code **)(**(longlong **)this + 0x60))(), iVar32 - 1U < 0xfffffffe)) &&

+         ((param_12 = bVar29, -1 < tStack_164.left && (-1 < tStack_164.top)))) {

+        local_198 = CONCAT44(tStack_164.top,tStack_164.left);

+        uStack_190 = CONCAT44(tStack_164.bottom,tStack_164.right);

+        this_01 = GetMonitorTransform(this);

+        CMonitorTransform::GetClipBox(this_01,SUB81(local_108,0));

+        param_12 = TMilRect<unsigned_int,MilRectU,Mil3DRectU,RectUniqueness::NotNeeded>::DoesContain

+                             ((TMilRect<unsigned_int,MilRectU,Mil3DRectU,RectUniqueness::NotNeeded>

+                               *)local_108,

+                              (TMilRect<unsigned_int,struct_MilRectU,struct_Mil3DRectU,struct_RectUniqueness::NotNeeded>

+                               *)&local_198);

+      }

+      uVar34 = (**(code **)(*(longlong *)param_3 + 0x48))(param_3);

+      bVar27 = IsCandidateOverlayCompatible

+                         (this,local_330,param_3,param_4,

+                          (DXGI_MULTIPLANE_OVERLAY_ATTRIBUTES *)&local_178,OVar33,

+                          local_350 !=

+                          (TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded>

+                           *)0x0,uVar34,param_12);

+      if (bVar27) {

+        puVar40 = (undefined8 *)

+                  CVisitedContent::CalcInvertedContentOnTop

+                            ((CVisitedContent *)(this + 0x4ba0),

+                             (TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded>

+                              *)local_108);

+        pTVar26 = local_2f8;

+        uVar17 = CONCAT44(tStack_174.left,local_178);

+        uVar18 = CONCAT44(tStack_174.right,tStack_174.top);

+        uVar19 = CONCAT44(tStack_164.left,tStack_174.bottom);

+        uVar20 = CONCAT44(tStack_164.right,tStack_164.top);

+        local_108[0]._0_8_ = *puVar40;

+        local_108[0]._8_8_ = puVar40[1];

+        uVar21 = CONCAT44(tStack_154.left,tStack_164.bottom);

+        uVar22 = CONCAT44(tStack_154.right,tStack_154.top);

+        uVar23 = CONCAT44(DStack_144,tStack_154.bottom);

+        uVar24 = CONCAT44(uStack_13c,uStack_140);

+        uVar25 = CONCAT44(DStack_12c,uStack_130);

+        uVar3 = *(undefined4 *)(param_9 + 0x40);

+        local_198 = *(undefined8 *)param_9;

+        uStack_190 = *(undefined8 *)(param_9 + 8);

+        local_188 = *(undefined8 *)(param_9 + 0x10);

+        uStack_180 = *(undefined8 *)(param_9 + 0x18);

+        local_2d8 = *(undefined8 *)(param_9 + 0x20);

+        uStack_2d0 = *(undefined8 *)(param_9 + 0x28);

+        local_2e8 = *(undefined8 *)(param_9 + 0x30);

+        uStack_2e0 = *(undefined8 *)(param_9 + 0x38);

+        uVar7 = *(undefined8 *)param_8;

+        uVar8 = *(undefined8 *)(param_8 + 8);

+        uVar9 = *(undefined8 *)(param_8 + 0x10);

+        uVar10 = *(undefined8 *)(param_8 + 0x18);

+        uVar11 = *(undefined8 *)(param_8 + 0x20);

+        uVar12 = *(undefined8 *)(param_8 + 0x28);

+        uVar13 = *(undefined8 *)(param_8 + 0x30);

+        uVar14 = *(undefined8 *)(param_8 + 0x38);

+        uVar4 = *(undefined4 *)(param_8 + 0x40);

+        local_2f8 = local_128;

+        uStack_2f0 = uStack_120;

+        local_308 = (TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded>

+                     *)CONCAT44(uStack_114,local_118);

+        uStack_300 = CONCAT44(uStack_10c,uStack_110);

+        uVar15 = *(undefined8 *)pTVar26;

+        uVar16 = *(undefined8 *)(pTVar26 + 8);

+        (**(code **)(*(longlong *)param_3 + 0x40))(param_3);

+        local_2a8 = local_198;

+        uStack_2a0 = uStack_190;

+        local_298 = local_188;

+        uStack_290 = uStack_180;

+        local_288 = local_2d8;

+        uStack_280 = uStack_2d0;

+        local_278 = local_2e8;

+        uStack_270 = uStack_2e0;

+        local_1b8 = local_2f8;

+        uStack_1b0 = uStack_2f0;

+        local_1a8 = local_308;

+        uStack_1a0 = uStack_300;

+        local_1c8 = local_138;

+        local_268 = uVar3;

+        local_258 = uVar7;

+        uStack_250 = uVar8;

+        local_248 = uVar9;

+        uStack_240 = uVar10;

+        local_238 = uVar11;

+        uStack_230 = uVar12;

+        local_228 = uVar13;

+        uStack_220 = uVar14;

+        local_218 = uVar4;

+        local_208 = uVar17;

+        uStack_200 = uVar18;

+        local_1f8 = uVar19;

+        uStack_1f0 = uVar20;

+        local_1e8 = uVar21;

+        uStack_1e0 = uVar22;

+        local_1d8 = uVar23;

+        uStack_1d0 = uVar24;

+        uStack_1c0 = uVar25;

+        local_198 = uVar15;

+        uStack_190 = uVar16;

+        detail::

+        vector_facade<COverlayContext::OverlayPlaneInfo,detail::buffer_impl<COverlayContext::OverlayPlaneInfo,16,1,detail::liberal_expansion_policy>_>

+        ::

+        emplace_back<COverlayContext*___ptr64,CVisual*___ptr64,CCompositionSurfaceInfo*___ptr64,unsigned___int64,DXGI_MULTIPLANE_OVERLAY_ATTRIBUTES,TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded>,CCornerRects,CMILMatrix,TMilRect_<int,tagRECT,D2D_POINTANDSIZE_L,Mil3DRectL,RectUniqueness::_CMilRectL_>,TMilRect_<int,struct_tagRECT,struct_D2D_POINTANDSIZE_L,struct_Mil3DRectL,struct_RectUniqueness::_CMilRectL_>,bool,bool,OverlaySize>

+                  ((vector_facade<COverlayContext::OverlayPlaneInfo,detail::buffer_impl<COverlayContext::OverlayPlaneInfo,16,1,detail::liberal_expansion_policy>_>

+                    *)(this + 0x58),this,local_330,param_3);

+        if ((Microsoft_Windows_Dwm_CoreEnableBits._1_1_ & 2) != 0) {

+          (**(code **)(*(longlong *)(param_4 + 8) + 0x18))(param_4 + 8,&local_198);

+          (**(code **)(*(longlong *)(param_4 + 8) + 0x20))(param_4 + 8,&local_188);

+          (**(code **)(*(longlong *)(param_4 + 8) + 0x20))(param_4 + 8,&local_2d8);

+          (**(code **)(*(longlong *)(param_4 + 0x10) + 0x18))(param_4 + 0x10,&local_2e8);

+          McTemplateU0xddqqddddddddddddqqq_EventWriteTransfer();

+        }

+      }

+    }

+  }

+LAB_0:

+  wil::

+  com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+  ::

+  ~com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+            ((com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+              *)&local_348);

+  wil::

+  com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+  ::

+  ~com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+            ((com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+              *)&local_350);

+  return 0;

+}

+
```

## `CDataSourceReader::ProcessSetLookupId`  (modified)

```diff
--- CDataSourceReader::ProcessSetLookupId
+++ CDataSourceReader::ProcessSetLookupId
@@ -1,2 +1,47 @@
-Failed to decompile dwmcore.dll - .ProgramDB CDataSourceReader::ProcessSetLookupId : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: long __cdecl CDataSourceReader::ProcessSetLookupId(class CResourceTable * __ptr64,struct

+   tagMILCMD_DATASOURCEREADER_SETLOOKUPID const * __ptr64) __ptr64 */

+

+long __thiscall

+CDataSourceReader::ProcessSetLookupId

+          (CDataSourceReader *this,CResourceTable *param_1,

+          tagMILCMD_DATASOURCEREADER_SETLOOKUPID *param_2)

+

+{

+  __uint64 _Var1;

+  __uint64 _Var2;

+  bool bVar3;

+  long lVar4;

+  void *unaff_retaddr;

+  CResourceTable *local_res10 [3];

+  

+  local_res10[0] = param_1;

+  bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_4253016379>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_4253016379> *)

+                     &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_4253016379>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_4253016379>::GetImpl(void)'

+                      ::__l2::impl);

+  if ((!bVar3) || (((byte)this[0x58] & 3) == 0)) {

+    _Var1 = *(__uint64 *)(param_2 + 8);

+    *(__uint64 *)(this + 0x48) = _Var1;

+    _Var2 = *(__uint64 *)(param_2 + 0x10);

+    *(__uint64 *)(this + 0x50) = _Var2;

+    local_res10[0] = (CResourceTable *)((ulonglong)local_res10[0] & 0xffffffffffffff00);

+    lVar4 = DataProviderManager::TryRegisterReaderForDataSource

+                      (*(DataProviderManager **)(*(longlong *)(this + 0x18) + 0x1928),_Var1,_Var2,

+                       this,(bool *)local_res10);

+    if (lVar4 != -0x7ff8fffb) {

+      if (lVar4 < 0) {

+        wil::details::in1diag3::Return_Hr

+                  (unaff_retaddr,0x54,

+                   "onecoreuap\\windows\\dwm\\dwmcore\\resources\\datasourcereader.cpp",lVar4);

+        return lVar4;

+      }

+      if ((char)local_res10[0] == '\0') {

+        DataProviderManager::AddReaderToReadyList

+                  (*(DataProviderManager **)(*(longlong *)(this + 0x18) + 0x1928),this);

+      }

+    }

+  }

+  return 0;

+}

+
```

## `DataProviderProxy::AddDataSource`  (modified)

```diff
--- DataProviderProxy::AddDataSource
+++ DataProviderProxy::AddDataSource
@@ -1,2 +1,55 @@
-Failed to decompile dwmcore.dll - .ProgramDB DataProviderProxy::AddDataSource : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* protected: virtual long __cdecl DataProviderProxy::AddDataSource(class BamoDataSourceProxy *

+   __ptr64) __ptr64 */

+

+long __thiscall

+DataProviderProxy::AddDataSource(DataProviderProxy *this,BamoDataSourceProxy *param_1)

+

+{

+  bool bVar1;

+  BamoDataSourceProxy *local_res8;

+  BamoDataSourceProxy *local_res10;

+  __uint64 local_18;

+  char local_10;

+  

+  local_res10 = param_1;

+  bVar1 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_4253016379>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_4253016379> *)

+                     &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_4253016379>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_4253016379>::GetImpl(void)'

+                      ::__l2::impl);

+  if (!bVar1) {

+    *(DataProviderProxy **)(param_1 + 0xc0) = this;

+  }

+  local_res8 = (BamoDataSourceProxy *)

+               DataProviderHelper::GetUniqueId<DataSourceProxy>((DataSourceProxy *)param_1);

+  std::

+  _Hash<std::_Umap_traits<unsigned___int64,Microsoft::WRL::ComPtr<BamoDataSourceProxy>,std::_Uhash_compare<unsigned___int64,std::hash<unsigned___int64>,std::equal_to<unsigned___int64>_>,std::allocator<std::pair<unsigned___int64_const_,Microsoft::WRL::ComPtr<BamoDataSourceProxy>_>_>,0>_>

+  ::emplace<unsigned___int64,BamoDataSourceProxy*___ptr64&___ptr64>

+            ((_Hash<std::_Umap_traits<unsigned___int64,Microsoft::WRL::ComPtr<BamoDataSourceProxy>,std::_Uhash_compare<unsigned___int64,std::hash<unsigned___int64>,std::equal_to<unsigned___int64>_>,std::allocator<std::pair<unsigned___int64_const_,Microsoft::WRL::ComPtr<BamoDataSourceProxy>_>_>,0>_>

+              *)(this + 0x50),&local_18,&local_res8);

+  if (local_10 == '\0') {

+    (**(code **)(*(longlong *)(this + 8) + 0x30))(this + 8,0x800700b7);

+    bVar1 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_4253016379>::__private_IsEnabled

+                      ((FeatureImpl<__WilFeatureTraits_Feature_4253016379> *)

+                       &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_4253016379>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_4253016379>::GetImpl(void)'

+                        ::__l2::impl);

+    if (bVar1) {

+      return 0;

+    }

+  }

+  bVar1 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_4253016379>::__private_IsEnabled

+                    ((FeatureImpl<__WilFeatureTraits_Feature_4253016379> *)

+                     &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_4253016379>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_4253016379>::GetImpl(void)'

+                      ::__l2::impl);

+  if (bVar1) {

+    *(DataProviderProxy **)(param_1 + 0xc0) = this;

+  }

+  if (*(DataProviderManager **)(this + 0x48) != (DataProviderManager *)0x0) {

+    DataProviderManager::CheckAndRegisterReadyReaders

+              (*(DataProviderManager **)(this + 0x48),(BamoDataProviderProxy *)this,local_res10);

+  }

+  return 0;

+}

+
```

## `CComposition::CleanTrees`  (modified)

```diff
--- CComposition::CleanTrees
+++ CComposition::CleanTrees
@@ -1,2 +1,798 @@
-Failed to decompile dwmcore.dll - .ProgramDB CComposition::CleanTrees : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

+/* protected: long __cdecl CComposition::CleanTrees(void) __ptr64 */

+

+long __thiscall CComposition::CleanTrees(CComposition *this)

+

+{

+  longlong lVar1;

+  CVisual *this_00;

+  uint *puVar2;

+  code *pcVar3;

+  CLegacyRenderTarget *this_01;

+  undefined8 uVar4;

+  bool bVar5;

+  byte bVar6;

+  char cVar7;

+  bool bVar8;

+  BOOL BVar9;

+  long lVar10;

+  uint uVar11;

+  int *piVar12;

+  HANDLE pvVar13;

+  CPreComputeContext *pCVar14;

+  TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded> *pTVar15;

+  undefined8 *puVar16;

+  longlong lVar17;

+  vector<CProjectedShadowCaster*___ptr64,std::allocator<CProjectedShadowCaster*___ptr64>_> *pvVar18;

+  CLegacyRenderTarget *pCVar19;

+  longlong *plVar20;

+  uint uVar21;

+  vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+  *pvVar22;

+  uint *puVar23;

+  CVisualTree *pCVar24;

+  undefined8 *puVar25;

+  vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+  *pvVar26;

+  CVisual *pCVar27;

+  uint uVar28;

+  uint uVar29;

+  undefined8 in_R8;

+  undefined ***pppuVar30;

+  CComposition *pCVar31;

+  undefined8 *puVar32;

+  uint uVar33;

+  vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+  *pvVar34;

+  CVisualTree *pCVar35;

+  vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+  *pvVar36;

+  CVisual *pCVar37;

+  float fVar38;

+  float fVar39;

+  void *unaff_retaddr;

+  undefined1 auStackY_2b8 [32];

+  CComposition *local_288;

+  uint local_280 [2];

+  vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+  *local_278;

+  CVisualTree *local_270;

+  undefined8 *local_268;

+  CPreComputeContext *local_260;

+  undefined8 *local_258;

+  undefined8 *local_250;

+  LARGE_INTEGER local_248;

+  undefined8 *local_240;

+  LARGE_INTEGER local_238;

+  vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+  *local_230;

+  longlong local_228;

+  CVisualTree *local_220;

+  CVisualTree *local_218;

+  unique_ptr<CPreComputeContext,std::default_delete<CPreComputeContext>_> local_210 [8];

+  undefined **local_208;

+  undefined8 **local_200;

+  undefined ***local_1d0;

+  undefined8 local_1c8;

+  undefined8 uStack_1c0;

+  undefined8 *local_1b8;

+  undefined8 *local_1b0;

+  D2D_RECT_F *local_1a8;

+  undefined8 local_1a0 [8];

+  D2D_RECT_F local_160 [24];

+  undefined4 *local_148;

+  undefined4 local_140 [2];

+  uint *local_138;

+  undefined8 local_130;

+  CComposition **local_128;

+  undefined8 local_120;

+  undefined8 **local_118;

+  undefined8 local_110;

+  undefined8 **local_108;

+  undefined8 local_100;

+  undefined8 *local_f8;

+  int local_f0;

+  undefined4 local_ec;

+  undefined8 local_d8 [16];

+  ulonglong local_58;

+  

+  local_58 = __security_cookie ^ (ulonglong)auStackY_2b8;

+  local_288 = (CComposition *)((ulonglong)local_288 & 0xffffffff00000000);

+  local_248.QuadPart = 0;

+  local_238.QuadPart = 0;

+  local_280[0] = 0;

+  local_278 = (vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+               *)this;

+  if (((byte)Microsoft_Windows_Dwm_CompositorEnableBits & 4) != 0) {

+    McGenEventWrite_EventWriteTransfer

+              (&Microsoft_Windows_Dwm_Compositor_Context,&CleanTrees_Start,in_R8,1);

+    QueryPerformanceCounter(&local_248);

+  }

+  EnterCriticalSection((LPCRITICAL_SECTION)(this + 400));

+  if (local_248.QuadPart != 0) {

+    QueryPerformanceCounter(&local_238);

+  }

+  local_1b8 = local_1a0;

+  local_1b0 = local_1a0;

+  local_1a8 = local_160;

+  pCVar35 = *(CVisualTree **)(g_pComposition + 0x1868);

+  pCVar24 = *(CVisualTree **)pCVar35;

+  local_270 = pCVar35;

+  while( true ) {

+    puVar25 = local_1b8;

+    pvVar34 = (vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+               *)0x0;

+    uVar33 = 0;

+    if (pCVar24 == pCVar35) break;

+    this_00 = *(CVisual **)(pCVar24 + 0x10);

+    pppuVar30 = &local_208;

+    local_208 = &PTR__Copy_1802fbab0;

+    local_1d0 = pppuVar30;

+    local_200 = &local_1b8;

+    pCVar27 = this_00;

+    for (pCVar37 = this_00; pCVar37 != (CVisual *)0x0; pCVar37 = *(CVisual **)(pCVar37 + 0x58)) {

+      puVar2 = *(uint **)(pCVar37 + 0xe8);

+      if ((*puVar2 & 0x8000000) != 0) {

+        uVar29 = puVar2[1];

+        puVar23 = puVar2 + 2;

+        pvVar26 = pvVar34;

+        uVar11 = uVar33;

+        if (uVar29 != 0) {

+          do {

+            uVar11 = (uint)pvVar26;

+            if ((char)*puVar23 == '\x05') break;

+            uVar11 = uVar11 + 1;

+            pvVar26 = (vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+                       *)(ulonglong)uVar11;

+            puVar23 = (uint *)((longlong)puVar23 + 1);

+          } while (uVar11 < uVar29);

+        }

+        pvVar26 = pvVar34;

+        if (uVar11 < uVar29) {

+          pvVar26 = (vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+                     *)((longlong)puVar2 +

+                       (ulonglong)uVar29 + 0xf +

+                       ((ulonglong)uVar11 * 8 - (ulonglong)((uint)((ulonglong)uVar29 + 0xf) & 7)));

+        }

+        pCVar35 = *(CVisualTree **)pvVar26;

+        if (pCVar35 != (CVisualTree *)0x0) {

+          local_218 = pCVar35;

+          if (pppuVar30 == (undefined ***)0x0) {

+                    /* WARNING: Subroutine does not return */

+            std::_Xbad_function_call();

+          }

+          if ((code *)(*pppuVar30)[2] ==

+              std::_Func_impl_no_alloc<<lambda_bf05f3608ca87f48c2ec569075cf1e18>,void,CVisualTree_*>

+              ::_Do_call) {

+            local_220 = pCVar35;

+            detail::

+            vector_facade<CVisualTree_const*___ptr64,detail::buffer_impl<CVisualTree_const*___ptr64,8,1,detail::liberal_expansion_policy>_>

+            ::push_back((vector_facade<CVisualTree_const*___ptr64,detail::buffer_impl<CVisualTree_const*___ptr64,8,1,detail::liberal_expansion_policy>_>

+                         *)pppuVar30[1],&local_220);

+            pppuVar30 = local_1d0;

+          }

+          else {

+            (*(code *)(*pppuVar30)[2])(pppuVar30);

+            pppuVar30 = local_1d0;

+          }

+        }

+      }

+      if (((pCVar27 != (CVisual *)0x0) &&

+          (pCVar27 = *(CVisual **)(pCVar27 + 0x58), pCVar27 != (CVisual *)0x0)) &&

+         ((pCVar37 == pCVar27 || (pCVar27 = *(CVisual **)(pCVar27 + 0x58), pCVar37 == pCVar27))))

+      break;

+    }

+    if (pppuVar30 != (undefined ***)0x0) {

+      (*(code *)(*pppuVar30)[4])(pppuVar30);

+      local_1d0 = (undefined ***)0x0;

+    }

+    pCVar31 = g_pComposition;

+    pCVar24[0x33] = (CVisualTree)0x0;

+    local_260 = (CPreComputeContext *)0x0;

+    if (pCVar31 != (CComposition *)0x0) {

+      local_260 = *(CPreComputeContext **)(pCVar31 + 0x3a0);

+    }

+    pCVar14 = local_260;

+    local_240 = local_1b0;

+    for (puVar25 = local_1b8; pCVar35 = local_270, puVar25 != local_240; puVar25 = puVar25 + 1) {

+      pCVar35 = (CVisualTree *)*puVar25;

+      if ((((*(byte *)(*(longlong *)(pCVar35 + 0x48) + 0x60) & 1) != 0) ||

+          (*(longlong *)(pCVar35 + 0x78) == 0)) &&

+         (CPreWalkVisual::CalcTransform

+                    ((CPreWalkVisual *)(pCVar24 + 0x18),this_00,pCVar35,(__uint64)pCVar14),

+         pCVar24[0x30] != (CVisualTree)0x0)) {

+        CPreWalkVisual::DirtyBoundsForTransformParentChild(this_00,pCVar35);

+      }

+      if (pCVar24[0x32] != (CVisualTree)0x0) {

+        pvVar18 = CVisual::GetProjectedShadowCasters(this_00);

+        puVar16 = *(undefined8 **)(pvVar18 + 8);

+        for (puVar32 = *(undefined8 **)pvVar18; puVar32 != puVar16; puVar32 = puVar32 + 1) {

+          CProjectedShadowCaster::UpdateVisualProperty((CProjectedShadowCaster *)*puVar32,pCVar35);

+        }

+      }

+    }

+    if (pCVar24[0x33] != (CVisualTree)0x0) {

+      if (pCVar24[0x31] != (CVisualTree)0x0) {

+        puVar25 = *(undefined8 **)(pCVar24 + 0x20);

+        for (puVar16 = *(undefined8 **)(pCVar24 + 0x18); puVar16 != puVar25; puVar16 = puVar16 + 1)

+        {

+          CCompositionLight::IssueLightChangedNotification((CCompositionLight *)*puVar16);

+        }

+      }

+      if ((pCVar24[0x32] != (CVisualTree)0x0) && ((**(uint **)(this_00 + 0xe8) & 0x80000) != 0)) {

+        pvVar18 = CVisual::GetProjectedShadowCasters(this_00);

+        puVar25 = *(undefined8 **)(pvVar18 + 8);

+        for (puVar16 = *(undefined8 **)pvVar18; puVar16 != puVar25; puVar16 = puVar16 + 1) {

+          CProjectedShadowCaster::RequestRedraw((CProjectedShadowCaster *)*puVar16);

+        }

+      }

+    }

+    lVar17 = (longlong)local_1b0 - (longlong)local_1b8 >> 3;

+    if (lVar17 != 0) {

+      local_1b0 = local_1b0 + -lVar17;

+    }

+    pCVar24 = *(CVisualTree **)pCVar24;

+  }

+  lVar17 = (longlong)local_1b0 - (longlong)local_1b8 >> 3;

+  if (lVar17 != 0) {

+    local_1b0 = local_1b0 + -lVar17;

+  }

+  local_1b8 = (undefined8 *)0x0;

+  if ((puVar25 != local_1a0) && (puVar25 != (undefined8 *)0x0)) {

+    pvVar13 = GetProcessHeap();

+    HeapFree(pvVar13,0,puVar25);

+  }

+  pCVar31 = g_pComposition;

+  *(CComposition *)(local_278 + 0x1648) = (CComposition)0x1;

+  local_250 = *(undefined8 **)(local_278 + 0x1c0);

+  uVar29 = (uint)local_288;

+  for (puVar25 = *(undefined8 **)(local_278 + 0x1b8); pvVar26 = local_278, local_258 = puVar25,

+      puVar25 != local_250; puVar25 = puVar25 + 1) {

+    pCVar35 = (CVisualTree *)*puVar25;

+    pCVar24 = pCVar35;

+    for (lVar17 = *(longlong *)(pCVar35 + 0x48); lVar17 != 0; lVar17 = *(longlong *)(lVar17 + 0x58))

+    {

+      puVar2 = *(uint **)(lVar17 + 0xe8);

+      if ((*puVar2 & 0x8000000) != 0) {

+        puVar23 = puVar2 + 2;

+        pvVar26 = pvVar34;

+        if (puVar2[1] != 0) {

+          do {

+            if ((char)*puVar23 == '\x05') break;

+            uVar11 = (int)pvVar26 + 1;

+            pvVar26 = (vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+                       *)(ulonglong)uVar11;

+            puVar23 = (uint *)((longlong)puVar23 + 1);

+          } while (uVar11 < puVar2[1]);

+        }

+        pvVar22 = pvVar34;

+        if ((uint)pvVar26 < puVar2[1]) {

+          lVar1 = (ulonglong)puVar2[1] + 0xf;

+          pvVar22 = (vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+                     *)((longlong)puVar2 +

+                       lVar1 + ((longlong)pvVar26 * 8 - (ulonglong)((uint)lVar1 & 7)));

+        }

+        if (*(CVisualTree **)pvVar22 != (CVisualTree *)0x0) {

+          pCVar24 = *(CVisualTree **)pvVar22;

+        }

+      }

+    }

+    lVar17 = *(longlong *)(pCVar24 + 0x48);

+    if ((lVar17 != 0) && (*(char *)(lVar17 + 0x60) != '\0')) {

+      local_280[0] = local_280[0] + 1;

+    }

+    pCVar14 = *(CPreComputeContext **)(local_278 + 0x288);

+    pvVar26 = pvVar34;

+    if (pCVar31 != (CComposition *)0x0) {

+      pvVar26 = *(vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+                  **)(pCVar31 + 0x3a0);

+    }

+    local_270 = pCVar35;

+    if (((*(vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+            **)(pCVar24 + 0x78) == pvVar26) || (lVar17 == 0)) || (*(char *)(lVar17 + 0x60) == '\0'))

+    {

+LAB_0:

+      pvVar26 = pvVar34;

+      if (pCVar31 != (CComposition *)0x0) {

+        pvVar26 = *(vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+                    **)(pCVar31 + 0x3a0);

+      }

+      uVar11 = uVar33;

+      if (*(vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+            **)(pCVar24 + 0x78) != pvVar26) {

+        if (pCVar24[0xa44] != (CVisualTree)0x0) {

+          pcVar3 = *(code **)(*(longlong *)pCVar24 + 0xe0);

+          if (pcVar3 == CVisualTree::UpdateClientBounds) {

+            *(undefined8 *)(pCVar24 + 0x9d0) = 0;

+            bVar8 = false;

+            *(undefined8 *)(pCVar24 + 0x9c8) = 0;

+            **(undefined4 **)(pCVar24 + 0x9d8) = 0;

+            *(undefined2 *)(pCVar24 + 0xa46) = 0;

+            *(undefined4 *)(pCVar24 + 0xa20) = 0x3f800000;

+            if ((longlong)*(undefined8 **)(pCVar24 + 0x998) -

+                (longlong)*(undefined8 **)(pCVar24 + 0x990) >> 3 == 0) {

+LAB_1:

+              *(undefined8 *)(pCVar24 + 0x9c8) = 0xff7fffffff7fffff;

+              *(undefined8 *)(pCVar24 + 0x9d0) = 0x7f7fffff7f7fffff;

+            }

+            else {

+              local_268 = *(undefined8 **)(pCVar24 + 0x990);

+              local_240 = *(undefined8 **)(pCVar24 + 0x998);

+              bVar5 = detail::basic_iterator<IVisualTreeClient*___ptr64>::operator!=

+                                ((basic_iterator<IVisualTreeClient*___ptr64> *)&local_268,

+                                 (basic_iterator<class_IVisualTreeClient*___ptr64> *)&local_240);

+              if (bVar5) {

+                do {

+                  this_01 = (CLegacyRenderTarget *)*local_268;

+                  bVar6 = (**(code **)(*(longlong *)this_01 + 0x38))(this_01);

+                  pCVar24[0xa47] = (CVisualTree)((byte)pCVar24[0xa47] | bVar6);

+                  if (*(code **)(*(longlong *)this_01 + 0x20) ==

+                      COffScreenRenderTarget::GetTreeBounds) {

+                    pCVar19 = this_01 + 0xc4;

+                  }

+                  else {

+                    pCVar19 = (CLegacyRenderTarget *)

+                              (**(code **)(*(longlong *)this_01 + 0x20))(this_01);

+                  }

+                  local_1c8 = *(undefined8 *)pCVar19;

+                  uStack_1c0 = *(undefined8 *)(pCVar19 + 8);

+                  bVar5 = TMilRect<float,D2D_RECT_F,D3D_RECT_F,RectUniqueness::NotNeeded>::

+                          IsInfinite((TMilRect<float,D2D_RECT_F,D3D_RECT_F,RectUniqueness::NotNeeded>

+                                      *)&local_1c8);

+                  if (bVar5) {

+                    bVar8 = true;

+                  }

+                  else {

+                    local_148 = local_140;

+                    local_140[0] = 0;

+                    piVar12 = (int *)PixelAlign(local_160);

+                    FastRegion::CRegion::SetRectangle

+                              ((CRegion *)&local_148,*piVar12,piVar12[1],piVar12[2],piVar12[3]);

+                    TMilRect<float,D2D_RECT_F,D3D_RECT_F,RectUniqueness::NotNeeded>::UnionUnsafe

+                              ((TMilRect<float,D2D_RECT_F,D3D_RECT_F,RectUniqueness::NotNeeded> *)

+                               (pCVar24 + 0x9c8),

+                               (TMilRect<float,struct_D2D_RECT_F,struct_D3D_RECT_F,struct_RectUniqueness::NotNeeded>

+                                *)&local_1c8);

+                    CRegion::Union((CRegion *)(pCVar24 + 0x9d8),(CRegion *)&local_148);

+                    FastRegion::CRegion::FreeMemory((CRegion *)&local_148);

+                  }

+                  bVar6 = (**(code **)(*(longlong *)this_01 + 0x28))(this_01);

+                  pCVar24[0xa46] = (CVisualTree)((byte)pCVar24[0xa46] | bVar6);

+                  fVar39 = *(float *)(pCVar24 + 0xa20);

+                  if (*(code **)(*(longlong *)this_01 + 0x30) ==

+                      CLegacyRenderTarget::GetInflationScale) {

+                    fVar38 = CLegacyRenderTarget::GetInflationScale(this_01);

+                  }

+                  else {

+                    fVar38 = (float)(**(code **)(*(longlong *)this_01 + 0x30))();

+                  }

+                  fVar39 = max<float>(fVar38,fVar39);

+                  local_268 = local_268 + 1;

+                  *(float *)(pCVar24 + 0xa20) = fVar39;

+                  bVar5 = detail::basic_iterator<IVisualTreeClient*___ptr64>::operator!=

+                                    ((basic_iterator<IVisualTreeClient*___ptr64> *)&local_268,

+                                     (basic_iterator<class_IVisualTreeClient*___ptr64> *)&local_240)

+                  ;

+                } while (bVar5);

+                puVar25 = local_258;

+                if (bVar8) goto LAB_1;

+              }

+            }

+            uVar29 = (uint)local_288;

+          }

+          else if (pcVar3 == CVisualTree::UpdateClientInfo) {

+            CVisualTree::UpdateClientBounds(pCVar24);

+          }

+          else {

+            (*pcVar3)();

+          }

+          pCVar24[0xa44] = (CVisualTree)0x0;

+        }

+        *(undefined8 *)(pCVar24 + 0x78) = 0;

+        pCVar24[0x985] = (CVisualTree)0x0;

+        *(undefined2 *)(pCVar24 + 0x987) = 0;

+        pCVar24[0x984] = (CVisualTree)(pCVar24[0xa47] == (CVisualTree)0x0);

+        uVar4 = *(undefined8 *)(*(longlong *)(pCVar24 + 0x70) + 0x9d0);

+        *(undefined8 *)(pCVar24 + 0x974) = *(undefined8 *)(*(longlong *)(pCVar24 + 0x70) + 0x9c8);

+        *(undefined8 *)(pCVar24 + 0x97c) = uVar4;

+        if (pCVar24[0xa47] != (CVisualTree)0x0) {

+          if (pCVar24[0x986] != (CVisualTree)0x0) {

+            pCVar24[0x986] = (CVisualTree)0x0;

+          }

+          *(undefined4 *)(pCVar24 + 0x80) = 0;

+          pCVar24[0x234] = (CVisualTree)0x0;

+          if (pCVar24[0x986] == (CVisualTree)0x0) {

+            CTreeDirty::ClearDirtyRectAnnotationLists((CTreeDirty *)(pCVar24 + 0x70));

+          }

+        }

+        cVar7 = (**(code **)(*(longlong *)pCVar24 + 0xb8))(pCVar24);

+        if (cVar7 != '\0') {

+          lVar17 = *(longlong *)(pCVar24 + 0x1458) - *(longlong *)(pCVar24 + 0x1450) >> 3;

+          if (lVar17 != 0) {

+            *(longlong *)(pCVar24 + 0x1458) = *(longlong *)(pCVar24 + 0x1458) + lVar17 * -8;

+          }

+        }

+        if (*(code **)(*(longlong *)pCVar24 + 0xd8) == CDesktopTree::GetLiftedOverlayHost) {

+          plVar20 = *(longlong **)(pCVar24 + 0x11b0);

+        }

+        else {

+          plVar20 = (longlong *)(**(code **)(*(longlong *)pCVar24 + 0xd8))(pCVar24);

+        }

+        if (plVar20 != (longlong *)0x0) {

+          (**(code **)(*plVar20 + 0x18))();

+        }

+        if (*(code **)(*(longlong *)pCVar24 + 0xd8) == CDesktopTree::GetLiftedOverlayHost) {

+          plVar20 = *(longlong **)(pCVar24 + 0x11b0);

+        }

+        else {

+          plVar20 = (longlong *)(**(code **)(*(longlong *)pCVar24 + 0xd8))(pCVar24);

+        }

+        if (plVar20 != (longlong *)0x0) {

+          (**(code **)(*plVar20 + 0x20))();

+        }

+        cVar7 = (**(code **)(*(longlong *)pCVar24 + 0xb8))(pCVar24);

+        if (cVar7 != '\0') {

+          lVar17 = *(longlong *)(pCVar24 + 0x18);

+          if ((*(int *)(lVar17 + 0x1910) != 0) &&

+             ((*(char *)(lVar17 + 0x196d) != '\0' ||

+              (bVar8 = CTreeDirty::IsEmpty((CTreeDirty *)(pCVar24 + 0x70)), !bVar8)))) {

+            pCVar24[0x987] = (CVisualTree)0x1;

+            *(undefined1 *)(lVar17 + 0x196d) = 0;

+          }

+          if (*(int *)(*(longlong *)(pCVar24 + 0x18) + 0x1918) != 0) {

+            pCVar24[0x988] = (CVisualTree)0x1;

+          }

+        }

+        if (pCVar24[0x984] == (CVisualTree)0x0) {

+LAB_2:

+          CRectangleCollection<8>::EnsureWeights((CRectangleCollection<8> *)(pCVar24 + 0x80));

+          for (uVar28 = 1; pvVar26 = pvVar34, pCVar35 = local_270,

+              uVar28 < *(uint *)(pCVar24 + 0x80); uVar28 = uVar28 + 1) {

+            while (uVar21 = (uint)pvVar26, uVar21 < uVar28) {

+              if (*(float *)(pCVar24 +

+                            (ulonglong)(((uVar28 - 1) * uVar28 >> 1) + uVar21) * 8 + 0x118) <= 0.5

+                  && *(float *)(pCVar24 +

+                               (ulonglong)(((uVar28 - 1) * uVar28 >> 1) + uVar21) * 8 + 0x118) !=

+                     0.5) {

+                CTreeDirty::Merge((CTreeDirty *)(pCVar24 + 0x70),uVar21,uVar28);

+                goto LAB_2;

+              }

+              pvVar26 = (vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+                         *)(ulonglong)(uVar21 + 1);

+            }

+          }

+        }

+        pCVar24[0x985] = (CVisualTree)0x1;

+        if (pCVar24[0x987] == (CVisualTree)0x0) {

+          if (pCVar24[0x988] != (CVisualTree)0x0) {

+            CTreeDirty::SetFullDirty((CTreeDirty *)(pCVar24 + 0x70));

+            pCVar24[0x988] = (CVisualTree)0x0;

+          }

+        }

+        else {

+          CTreeDirty::SetRedrawRects((CTreeDirty *)(pCVar24 + 0x70));

+          CTreeDirty::SetFullDirty((CTreeDirty *)(pCVar24 + 0x70));

+          *(undefined2 *)(pCVar24 + 0x987) = 0;

+        }

+        pCVar31 = g_pComposition;

+        pvVar26 = pvVar34;

+        if (g_pComposition != (CComposition *)0x0) {

+          pvVar26 = *(vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+                      **)(g_pComposition + 0x3a0);

+        }

+        *(vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+          **)(pCVar24 + 0x78) = pvVar26;

+      }

+    }

+    else {

+      pvVar26 = pvVar34;

+      if (pCVar14 == (CPreComputeContext *)0x0) {

+        pvVar13 = GetProcessHeap();

+        pCVar14 = HeapAlloc(pvVar13,0,0x628);

+        if (pCVar14 == (CPreComputeContext *)0x0) {

+                    /* WARNING: Subroutine does not return */

+          ModuleFailFastForHRESULT(0x8007000e,unaff_retaddr);

+        }

+        memset(pCVar14,0,0x628);

+        pCVar14 = (CPreComputeContext *)CPreComputeContext::CPreComputeContext(pCVar14);

+        pvVar26 = (vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+                   *)pCVar14;

+      }

+      uVar11 = CPreComputeContext::PreCompute(pCVar14,pCVar24);

+      if (-1 < (int)uVar11) {

+        pCVar31 = g_pComposition;

+        if (pvVar26 !=

+            (vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+             *)0x0) {

+          ___V_YAXPEAX_Z(*(void **)(pvVar26 + 0x5f8));

+          DynArrayImpl<0>::~DynArrayImpl<0>((DynArrayImpl<0> *)(pvVar26 + 0x5b8));

+          DynArrayImpl<0>::~DynArrayImpl<0>((DynArrayImpl<0> *)(pvVar26 + 0x598));

+          ___V_YAXPEAX_Z(*(void **)(pvVar26 + 0x580));

+          CLightStack::~CLightStack((CLightStack *)(pvVar26 + 0x498));

+          ___V_YAXPEAX_Z(*(void **)(pvVar26 + 0x480));

+          ___V_YAXPEAX_Z(*(void **)(pvVar26 + 0x468));

+          ___V_YAXPEAX_Z(*(void **)(pvVar26 + 0x450));

+          ___V_YAXPEAX_Z(*(void **)(pvVar26 + 0x438));

+          detail::

+          vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+          ::clear(pvVar26);

+          detail::expandable_buffer_base<IRenderTarget*___ptr64,4>::

+          ~expandable_buffer_base<IRenderTarget*___ptr64,4>

+                    ((expandable_buffer_base<IRenderTarget*___ptr64,4> *)pvVar26);

+          operator_delete__(pvVar26,0x628);

+          pCVar31 = g_pComposition;

+        }

+        goto LAB_0;

+      }

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,0x189,"onecoreuap\\windows\\dwm\\dwmcore\\resources\\visualtree.cpp",

+                 uVar11);

+      if (pvVar26 !=

+          (vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+           *)0x0) {

+        ___V_YAXPEAX_Z(*(void **)(pvVar26 + 0x5f8));

+        DynArrayImpl<0>::~DynArrayImpl<0>((DynArrayImpl<0> *)(pvVar26 + 0x5b8));

+        DynArrayImpl<0>::~DynArrayImpl<0>((DynArrayImpl<0> *)(pvVar26 + 0x598));

+        ___V_YAXPEAX_Z(*(void **)(pvVar26 + 0x580));

+        CLightStack::~CLightStack((CLightStack *)(pvVar26 + 0x498));

+        ___V_YAXPEAX_Z(*(void **)(pvVar26 + 0x480));

+        ___V_YAXPEAX_Z(*(void **)(pvVar26 + 0x468));

+        ___V_YAXPEAX_Z(*(void **)(pvVar26 + 0x450));

+        ___V_YAXPEAX_Z(*(void **)(pvVar26 + 0x438));

+        detail::

+        vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+        ::clear(pvVar26);

+        detail::expandable_buffer_base<IRenderTarget*___ptr64,4>::

+        ~expandable_buffer_base<IRenderTarget*___ptr64,4>

+                  ((expandable_buffer_base<IRenderTarget*___ptr64,4> *)pvVar26);

+        operator_delete__(pvVar26,0x628);

+      }

+      MilInstrumentationCheckHR_MaybeFailFast(0x14,(long *)0x0,0,uVar11,0xc22,(void *)0x0);

+      pCVar31 = g_pComposition;

+    }

+    if ((uVar29 == 0) || ((-1 < (int)uVar29 && ((int)uVar11 < 0)))) {

+      local_288 = (CComposition *)CONCAT44(local_288._4_4_,uVar11);

+      uVar29 = uVar11;

+    }

+    if (pCVar24 != pCVar35) {

+      pCVar14 = *(CPreComputeContext **)(local_278 + 0x288);

+      pvVar26 = pvVar34;

+      if (pCVar31 != (CComposition *)0x0) {

+        pvVar26 = *(vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+                    **)(pCVar31 + 0x3a0);

+      }

+      if (((*(vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+              **)(pCVar35 + 0x78) == pvVar26) || (*(longlong *)(pCVar35 + 0x48) == 0)) ||

+         (*(char *)(*(longlong *)(pCVar35 + 0x48) + 0x60) == '\0')) {

+LAB_3:

+        pvVar26 = pvVar34;

+        if (pCVar31 != (CComposition *)0x0) {

+          pvVar26 = *(vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+                      **)(pCVar31 + 0x3a0);

+        }

+        uVar11 = uVar33;

+        if (*(vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+              **)(pCVar35 + 0x78) != pvVar26) {

+          CVisualTree::BeginPreCompute(pCVar35);

+          if (*(code **)(*(longlong *)pCVar35 + 0xd8) == CDesktopTree::GetLiftedOverlayHost) {

+            plVar20 = *(longlong **)(pCVar35 + 0x11b0);

+          }

+          else {

+            plVar20 = (longlong *)(**(code **)(*(longlong *)pCVar35 + 0xd8))(pCVar35);

+          }

+          if (plVar20 != (longlong *)0x0) {

+            (**(code **)(*plVar20 + 0x20))();

+          }

+          cVar7 = (**(code **)(*(longlong *)pCVar35 + 0xb8))(pCVar35);

+          if (cVar7 != '\0') {

+            lVar17 = *(longlong *)(pCVar35 + 0x18);

+            if ((*(int *)(lVar17 + 0x1910) != 0) &&

+               ((*(char *)(lVar17 + 0x196d) != '\0' ||

+                (bVar8 = CTreeDirty::IsEmpty((CTreeDirty *)(pCVar35 + 0x70)), !bVar8)))) {

+              pCVar35[0x987] = (CVisualTree)0x1;

+              *(undefined1 *)(lVar17 + 0x196d) = 0;

+            }

+            if (*(int *)(*(longlong *)(pCVar35 + 0x18) + 0x1918) != 0) {

+              pCVar35[0x988] = (CVisualTree)0x1;

+            }

+          }

+          if (pCVar35[0x984] == (CVisualTree)0x0) {

+LAB_4:

+            CRectangleCollection<8>::EnsureWeights((CRectangleCollection<8> *)(pCVar35 + 0x80));

+            for (uVar29 = 1; pvVar26 = pvVar34, uVar29 < *(uint *)(pCVar35 + 0x80);

+                uVar29 = uVar29 + 1) {

+              while (uVar28 = (uint)pvVar26, uVar28 < uVar29) {

+                if (*(float *)(pCVar35 +

+                              (ulonglong)(((uVar29 - 1) * uVar29 >> 1) + uVar28) * 8 + 0x118) <= 0.5

+                    && *(float *)(pCVar35 +

+                                 (ulonglong)(((uVar29 - 1) * uVar29 >> 1) + uVar28) * 8 + 0x118) !=

+                       0.5) {

+                  CTreeDirty::Merge((CTreeDirty *)(pCVar35 + 0x70),uVar28,uVar29);

+                  goto LAB_4;

+                }

+                pvVar26 = (vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+                           *)(ulonglong)(uVar28 + 1);

+              }

+            }

+            uVar29 = (uint)local_288;

+          }

+          pCVar35[0x985] = (CVisualTree)0x1;

+          if (pCVar35[0x987] == (CVisualTree)0x0) {

+            if (pCVar35[0x988] != (CVisualTree)0x0) {

+              CTreeDirty::SetFullDirty((CTreeDirty *)(pCVar35 + 0x70));

+              pCVar35[0x988] = (CVisualTree)0x0;

+            }

+          }

+          else {

+            CTreeDirty::SetRedrawRects((CTreeDirty *)(pCVar35 + 0x70));

+            CTreeDirty::SetFullDirty((CTreeDirty *)(pCVar35 + 0x70));

+            *(undefined2 *)(pCVar35 + 0x987) = 0;

+          }

+          pCVar31 = g_pComposition;

+          pvVar26 = pvVar34;

+          if (g_pComposition != (CComposition *)0x0) {

+            pvVar26 = *(vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+                        **)(g_pComposition + 0x3a0);

+          }

+          *(vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+            **)(pCVar35 + 0x78) = pvVar26;

+        }

+      }

+      else {

+        local_260 = (CPreComputeContext *)0x0;

+        if (pCVar14 == (CPreComputeContext *)0x0) {

+          puVar16 = (undefined8 *)std::make_unique<CPreComputeContext,0>();

+          pCVar14 = (CPreComputeContext *)*puVar16;

+          *puVar16 = 0;

+          local_260 = pCVar14;

+          std::unique_ptr<CPreComputeContext,std::default_delete<CPreComputeContext>_>::

+          ~unique_ptr<CPreComputeContext,std::default_delete<CPreComputeContext>_>(local_210);

+        }

+        uVar11 = CPreComputeContext::PreCompute(pCVar14,pCVar35);

+        if (-1 < (int)uVar11) {

+          std::unique_ptr<CPreComputeContext,std::default_delete<CPreComputeContext>_>::

+          ~unique_ptr<CPreComputeContext,std::default_delete<CPreComputeContext>_>

+                    ((unique_ptr<CPreComputeContext,std::default_delete<CPreComputeContext>_> *)

+                     &local_260);

+          pCVar31 = g_pComposition;

+          goto LAB_3;

+        }

+        wil::details::in1diag3::Return_Hr

+                  (unaff_retaddr,0x189,

+                   "onecoreuap\\windows\\dwm\\dwmcore\\resources\\visualtree.cpp",uVar11);

+        std::unique_ptr<CPreComputeContext,std::default_delete<CPreComputeContext>_>::

+        ~unique_ptr<CPreComputeContext,std::default_delete<CPreComputeContext>_>

+                  ((unique_ptr<CPreComputeContext,std::default_delete<CPreComputeContext>_> *)

+                   &local_260);

+        MilInstrumentationCheckHR_MaybeFailFast(0x14,(long *)0x0,0,uVar11,0xc2a,(void *)0x0);

+        pCVar31 = g_pComposition;

+      }

+      if ((uVar29 == 0) || ((-1 < (int)uVar29 && ((int)uVar11 < 0)))) {

+        local_288 = (CComposition *)CONCAT44(local_288._4_4_,uVar11);

+        uVar29 = uVar11;

+      }

+    }

+  }

+  *(CComposition *)(local_278 + 0x1648) = (CComposition)0x0;

+  if (*(longlong *)(local_278 + 600) != *(longlong *)(local_278 + 0x250)) {

+    local_250 = *(undefined8 **)(local_278 + 0x1c0);

+    local_258 = *(undefined8 **)(local_278 + 0x1b8);

+    std::remove_if<detail::basic_iterator<CVisualTree_*>,<lambda_71e003bdfe7c152bc782aeb788c37967>_>

+              (&local_278,&local_258,&local_250,(CComposition *)(local_278 + 0x250));

+    local_270 = *(CVisualTree **)(pvVar26 + 0x1c0);

+    local_288 = (CComposition *)local_278;

+    detail::

+    vector_facade<CVisualTree*___ptr64,detail::buffer_impl<CVisualTree*___ptr64,16,1,detail::liberal_expansion_policy>_>

+    ::erase((vector_facade<CVisualTree*___ptr64,detail::buffer_impl<CVisualTree*___ptr64,16,1,detail::liberal_expansion_policy>_>

+             *)(pvVar26 + 0x1b8),&local_230,&local_288,&local_270);

+    detail::

+    vector_facade<wil::com_ptr_t<CVisualTree,wil::err_returncode_policy>,detail::buffer_impl<wil::com_ptr_t<CVisualTree,wil::err_returncode_policy>,4,1,detail::liberal_expansion_policy>_>

+    ::clear((vector_facade<wil::com_ptr_t<CVisualTree,wil::err_returncode_policy>,detail::buffer_impl<wil::com_ptr_t<CVisualTree,wil::err_returncode_policy>,4,1,detail::liberal_expansion_policy>_>

+             *)(pvVar26 + 0x250));

+  }

+  if (*(CComposition *)(pvVar26 + 0x1938) != (CComposition)0x0) {

+    *(CComposition *)(pvVar26 + 0x1938) = (CComposition)0x0;

+    BVar9 = SetEvent(*(HANDLE *)(pvVar26 + 0x1930));

+    if (BVar9 == 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::_FailFast_GetLastError

+                (unaff_retaddr,0x9d3,"onecore\\internal\\sdk\\inc\\wil\\opensource/wil/resource.h");

+    }

+  }

+  if ((LPCRITICAL_SECTION)(pvVar26 + 400) != (LPCRITICAL_SECTION)0x0) {

+    LeaveCriticalSection((LPCRITICAL_SECTION)(pvVar26 + 400));

+  }

+  if (local_248.QuadPart == 0) goto LAB_5;

+  memset(local_d8,0,0x80);

+  pvVar22 = pvVar34;

+  if (((longlong *)**(longlong **)(pvVar26 + 0x290) != (longlong *)0x0) &&

+     (lVar17 = (**(code **)(*(longlong *)**(longlong **)(pvVar26 + 0x290) + 0x38))(), lVar17 != 0))

+  {

+    if (*(char *)(lVar17 + 0x984) == '\0') {

+      pvVar22 = (vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+                 *)(ulonglong)*(uint *)(lVar17 + 0x80);

+      local_228 = lVar17 + 0x84;

+      local_230 = pvVar22;

+      if ((local_228 == 0) &&

+         (lVar1 = 0,

+         pvVar22 !=

+         (vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+          *)0x0)) {

+LAB_6:

+        local_228 = lVar1;

+        (*(code *)`void_(__cdecl*&___ptr64___cdecl_gsl::details::get_terminate_handler(void))(void)'

+                  ::__l2::handler)();

+        pcVar3 = (code *)swi(3);

+        lVar10 = (*pcVar3)();

+        return lVar10;

+      }

+      if (*(uint *)(lVar17 + 0x80) == 0) goto LAB_7;

+    }

+    else {

+      local_228 = lVar17 + 0x974;

+      local_230 = (vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+                   *)0x1;

+      lVar1 = local_228;

+      if (local_228 == 0) goto LAB_6;

+    }

+    pvVar22 = local_230;

+    puVar25 = local_d8;

+    pvVar26 = pvVar34;

+    pvVar36 = local_230;

+    do {

+      pTVar15 = gsl::

+                span<TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded>_const_,-1>

+                ::operator[]((span<TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded>_const_,_1>

+                              *)&local_230,(__uint64)pvVar26);

+      pvVar26 = pvVar26 + 1;

+      uVar4 = *(undefined8 *)(pTVar15 + 8);

+      *puVar25 = *(undefined8 *)pTVar15;

+      puVar25[1] = uVar4;

+      pvVar36 = pvVar36 + -1;

+      puVar25 = puVar25 + 2;

+    } while (pvVar36 !=

+             (vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+              *)0x0);

+  }

+LAB_7:

+  if (((byte)Microsoft_Windows_Dwm_CompositorEnableBits & 4) != 0) {

+    local_268 = (undefined8 *)CONCAT44(local_268._4_4_,(int)pvVar22);

+    local_250 = (undefined8 *)

+                ((ulonglong)((local_238.QuadPart - (longlong)local_248) * 1000000) /

+                (ulonglong)g_qpcFrequency.QuadPart);

+    local_f0 = (int)pvVar22 << 4;

+    local_288 = (CComposition *)CONCAT44(local_288._4_4_,local_280[0]);

+    local_138 = local_280;

+    local_128 = &local_288;

+    local_118 = &local_250;

+    local_108 = &local_268;

+    local_f8 = local_d8;

+    local_130 = 4;

+    local_120 = 4;

+    local_110 = 8;

+    local_100 = 4;

+    local_ec = 0;

+    local_280[0] = uVar29;

+    McGenEventWrite_EventWriteTransfer(&Microsoft_Windows_Dwm_Compositor_Context,&CleanTrees_Stop);

+  }

+LAB_5:

+  local_278 = (vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+               *)0x0;

+  if (DAT_8 !=

+      (vector_facade<CPreComputeContext::SubTreeContext,detail::buffer_impl<CPreComputeContext::SubTreeContext,3,1,detail::liberal_expansion_policy>_>

+       *)0x0) {

+    pvVar13 = GetCurrentThread();

+    BVar9 = QueryThreadCycleTime(pvVar13,(PULONG64)&local_278);

+    pvVar34 = local_278;

+    if (BVar9 != 0) {

+      _DAT_9 = local_278 + ((longlong)_DAT_9 - (longlong)DAT_1803faf50);

+    }

+  }

+  DAT_8 = pvVar34;

+  return uVar29;

+}

+
```

## `VertexTransfer::SimdTransfer<VertexTransfer::CSimdNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,1,Vertex_UVxN<VertexXYW_ColorDW>_>`  (modified)

```diff
--- VertexTransfer::SimdTransfer<VertexTransfer::CSimdNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,1,Vertex_UVxN<VertexXYW_ColorDW>_>
+++ VertexTransfer::SimdTransfer<VertexTransfer::CSimdNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,1,Vertex_UVxN<VertexXYW_ColorDW>_>
@@ -1,2 +1,107 @@
-Failed to decompile dwmcore.dll - .ProgramDB VertexTransfer::SimdTransfer<VertexTransfer::CSimdNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,1,Vertex_UVxN<VertexXYW_ColorDW>_> : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+void VertexTransfer::

+     SimdTransfer<VertexTransfer::CSimdNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,1,Vertex_UVxN<VertexXYW_ColorDW>_>

+               (longlong param_1,undefined8 *param_2)

+

+{

+  undefined8 *puVar1;

+  float fVar2;

+  undefined8 uVar3;

+  uint uVar4;

+  uint uVar5;

+  float fVar6;

+  undefined8 *puVar7;

+  undefined8 *puVar8;

+  ulonglong uVar9;

+  undefined8 *puVar10;

+  undefined8 *puVar11;

+  float *pfVar12;

+  float *pfVar13;

+  uint uVar14;

+  undefined8 uVar15;

+  undefined4 extraout_XMM0_Dc;

+  undefined4 extraout_XMM0_Dc_00;

+  undefined4 extraout_XMM0_Dd;

+  undefined4 extraout_XMM0_Dd_00;

+  undefined1 auVar16 [16];

+  undefined1 auVar17 [16];

+  undefined8 uVar18;

+  undefined8 uVar19;

+  

+  uVar4 = *(uint *)(param_1 + 0x28);

+  uVar14 = 0;

+  uVar5 = *(uint *)(param_1 + 0x14);

+  uVar18 = *param_2;

+  uVar19 = param_2[2];

+  uVar3 = param_2[6];

+  fVar2 = *(float *)(param_1 + 0x2c);

+  if (uVar5 != 0) {

+    do {

+      pfVar13 = (float *)((longlong)(int)(*(int *)(param_1 + 0x10) * uVar14) +

+                         *(longlong *)(param_1 + 8));

+      fVar6 = pfVar13[3];

+      pfVar12 = (float *)((longlong)(int)((uVar14 + 1) * *(int *)(param_1 + 0x10)) +

+                         *(longlong *)(param_1 + 8));

+      puVar11 = (undefined8 *)

+                ((longlong)(int)(*(int *)(param_1 + 0x40) * (uVar14 + 1)) +

+                *(longlong *)(param_1 + 0x38));

+      auVar16._0_4_ = (int)(((float)((uint)fVar6 & 0xff) + 0.0) * 1.0 * fVar2);

+      auVar16._4_4_ = (int)(((float)((uint)fVar6 & 0xff00) + 0.0) * 0.00390625 * fVar2);

+      auVar16._8_4_ = (int)(((float)((uint)fVar6 & 0xff0000) + 0.0) * 1.5258789e-05 * fVar2);

+      auVar16._12_4_ =

+           (int)(((float)(int)((uint)fVar6 & 0xff000000 ^ 0x80000000) + 2.1474836e+09) *

+                 5.9604645e-08 * fVar2);

+      puVar10 = (undefined8 *)

+                ((longlong)(int)(*(int *)(param_1 + 0x40) * uVar14) + *(longlong *)(param_1 + 0x38))

+      ;

+      packssdw(auVar16,auVar16);

+      uVar15 = DirectX::MathInternal::PermuteHelper<228,0,0,0,1>::Permute

+                         (pfVar13[1] * (float)uVar19 + (float)uVar3 + *pfVar13 * (float)uVar18);

+      *puVar10 = uVar15;

+      *(undefined4 *)(puVar10 + 1) = extraout_XMM0_Dc;

+      *(undefined4 *)((longlong)puVar10 + 0xc) = extraout_XMM0_Dd;

+      if (uVar4 >> 1 != 0) {

+        uVar9 = (ulonglong)(uVar4 >> 1);

+        puVar1 = puVar10;

+        do {

+          puVar7 = puVar1 + 2;

+          puVar8 = (undefined8 *)(((longlong)pfVar13 - (longlong)puVar10) + (longlong)puVar7);

+          uVar15 = puVar8[1];

+          *puVar7 = *puVar8;

+          puVar1[3] = uVar15;

+          uVar9 = uVar9 - 1;

+          puVar1 = puVar7;

+        } while (uVar9 != 0);

+      }

+      fVar6 = pfVar12[3];

+      auVar17._0_4_ = (int)(((float)((uint)fVar6 & 0xff) + 0.0) * 1.0 * fVar2);

+      auVar17._4_4_ = (int)(((float)((uint)fVar6 & 0xff00) + 0.0) * 0.00390625 * fVar2);

+      auVar17._8_4_ = (int)(((float)((uint)fVar6 & 0xff0000) + 0.0) * 1.5258789e-05 * fVar2);

+      auVar17._12_4_ =

+           (int)(((float)(int)((uint)fVar6 & 0xff000000 ^ 0x80000000) + 2.1474836e+09) *

+                 5.9604645e-08 * fVar2);

+      packssdw(auVar17,auVar17);

+      uVar15 = DirectX::MathInternal::PermuteHelper<228,0,0,0,1>::Permute

+                         (pfVar12[1] * (float)uVar19 + (float)uVar3 + *pfVar12 * (float)uVar18);

+      *puVar11 = uVar15;

+      *(undefined4 *)(puVar11 + 1) = extraout_XMM0_Dc_00;

+      *(undefined4 *)((longlong)puVar11 + 0xc) = extraout_XMM0_Dd_00;

+      if (uVar4 >> 1 != 0) {

+        uVar9 = (ulonglong)(uVar4 >> 1);

+        puVar10 = puVar11;

+        do {

+          puVar8 = puVar10 + 2;

+          puVar1 = (undefined8 *)(((longlong)pfVar12 - (longlong)puVar11) + (longlong)puVar8);

+          uVar15 = puVar1[1];

+          *puVar8 = *puVar1;

+          puVar10[3] = uVar15;

+          uVar9 = uVar9 - 1;

+          puVar10 = puVar8;

+        } while (uVar9 != 0);

+      }

+      uVar14 = uVar14 + 2;

+    } while (uVar14 < uVar5);

+  }

+  return;

+}

+
```

## `CCursorState::CCursorState`  (modified)

```diff
--- CCursorState::CCursorState
+++ CCursorState::CCursorState
@@ -1,2 +1,59 @@
-Failed to decompile dwmcore.dll - .ProgramDB CCursorState::CCursorState : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: __cdecl CCursorState::CCursorState(void) __ptr64 */

+

+CCursorState * __thiscall CCursorState::CCursorState(CCursorState *this)

+

+{

+  void *pvVar1;

+  undefined4 uVar2;

+  

+  CMILCOMBaseT<ID2D1PrivateCompositorBuffer,ID2D1PrivateCompositorBuffer,CMilObjectDeleter>::

+  CMILCOMBaseT<ID2D1PrivateCompositorBuffer,ID2D1PrivateCompositorBuffer,CMilObjectDeleter>

+            ((CMILCOMBaseT<ID2D1PrivateCompositorBuffer,ID2D1PrivateCompositorBuffer,CMilObjectDeleter>

+              *)this);

+  *(undefined8 *)(this + 0x18) = 10;

+  *(undefined ***)this = &_vftable_;

+  uVar2 = 0x3f800000;

+  *(undefined8 *)(this + 0x10) = 0;

+  *(undefined4 *)(this + 0x20) = 0x3f800000;

+  *(undefined4 *)(this + 0x24) = 0xc00000ff;

+  std::shared_ptr<CCursorState::ShapeData>::shared_ptr<CCursorState::ShapeData>

+            ((shared_ptr<CCursorState::ShapeData> *)(this + 0x28));

+  *(undefined8 *)(this + 0x38) = 0;

+  *(undefined8 *)(this + 0x40) = 0;

+  *(undefined8 *)(this + 0x48) = 0;

+  *(undefined8 *)(this + 0x50) = 0;

+  *(undefined2 *)(this + 0x58) = 0;

+  this[0x5a] = (CCursorState)0x0;

+  std::vector<CCursorState::MonitorData,std::allocator<CCursorState::MonitorData>_>::

+  vector<CCursorState::MonitorData,std::allocator<CCursorState::MonitorData>_>

+            ((vector<CCursorState::MonitorData,std::allocator<CCursorState::MonitorData>_> *)

+             (this + 0x60));

+  *(undefined4 *)(this + 0x78) = 0;

+  *(undefined8 *)(this + 0x80) = 0;

+  *(undefined8 *)(this + 0x88) = 0;

+  *(undefined8 *)(this + 0x90) = 0;

+  *(undefined4 *)(this + 0xb0) = uVar2;

+  std::shared_ptr<CCursorState::ShapeData>::shared_ptr<CCursorState::ShapeData>

+            ((shared_ptr<CCursorState::ShapeData> *)(this + 0xb8));

+  *(undefined4 *)(this + 200) = 0;

+  *(undefined8 *)(this + 0xcc) = 0;

+  *(undefined8 *)(this + 0xd4) = 0;

+  *(undefined8 *)(this + 0xdc) = 0;

+  std::vector<CCursorState::MonitorData,std::allocator<CCursorState::MonitorData>_>::

+  vector<CCursorState::MonitorData,std::allocator<CCursorState::MonitorData>_>

+            ((vector<CCursorState::MonitorData,std::allocator<CCursorState::MonitorData>_> *)

+             (this + 0xe8));

+  *(undefined4 *)(this + 0x100) = 0;

+  *(undefined8 *)(this + 0x108) = 0;

+  *(undefined8 *)(this + 0x110) = 0;

+  pvVar1 = std::_Allocate<16,std::_Default_allocate_traits,0>(0x50);

+  *(void **)pvVar1 = pvVar1;

+  *(void **)((longlong)pvVar1 + 8) = pvVar1;

+  *(void **)(this + 0x108) = pvVar1;

+  *(ulonglong *)(this + 0x118) = (ulonglong)g_qpcFrequency.QuadPart / 0x14;

+  *(undefined8 *)(this + 0x120) = 0;

+  *(undefined8 *)(this + 0x128) = 0;

+  return this;

+}

+
```

## `VertexTransfer::SimdTransfer<VertexTransfer::CSimdNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,2,Vertex_UVxN<VertexXYW_ColorDW>_>`  (modified)

```diff
--- VertexTransfer::SimdTransfer<VertexTransfer::CSimdNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,2,Vertex_UVxN<VertexXYW_ColorDW>_>
+++ VertexTransfer::SimdTransfer<VertexTransfer::CSimdNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,2,Vertex_UVxN<VertexXYW_ColorDW>_>
@@ -1,2 +1,128 @@
-Failed to decompile dwmcore.dll - .ProgramDB VertexTransfer::SimdTransfer<VertexTransfer::CSimdNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,2,Vertex_UVxN<VertexXYW_ColorDW>_> : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+void VertexTransfer::

+     SimdTransfer<VertexTransfer::CSimdNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,2,Vertex_UVxN<VertexXYW_ColorDW>_>

+               (longlong param_1,undefined8 *param_2)

+

+{

+  undefined8 *puVar1;

+  undefined4 uVar2;

+  undefined8 uVar3;

+  undefined8 uVar4;

+  uint uVar5;

+  undefined8 *puVar6;

+  undefined8 *puVar7;

+  ulonglong uVar8;

+  undefined8 *puVar9;

+  undefined8 *puVar10;

+  ulonglong uVar11;

+  uint uVar12;

+  float *pfVar13;

+  float *pfVar14;

+  undefined8 uVar15;

+  float extraout_XMM0_Dc;

+  undefined4 extraout_XMM0_Dc_00;

+  float extraout_XMM0_Dc_01;

+  undefined4 extraout_XMM0_Dc_02;

+  float extraout_XMM0_Dd;

+  undefined4 extraout_XMM0_Dd_00;

+  float extraout_XMM0_Dd_01;

+  undefined4 extraout_XMM0_Dd_02;

+  undefined1 auVar16 [16];

+  undefined1 auVar17 [16];

+  float fVar18;

+  float fVar19;

+  float fVar20;

+  float fVar21;

+  float fVar22;

+  float fVar23;

+  undefined8 uVar24;

+  

+  uVar12 = 0;

+  uVar5 = *(uint *)(param_1 + 0x14);

+  uVar24 = *param_2;

+  uVar3 = param_2[2];

+  uVar4 = param_2[6];

+  uVar2 = *(undefined4 *)(param_1 + 0x2c);

+  uVar11 = (ulonglong)(*(uint *)(param_1 + 0x28) >> 1);

+  if (uVar5 != 0) {

+    do {

+      pfVar14 = (float *)((longlong)(int)(*(int *)(param_1 + 0x10) * uVar12) +

+                         *(longlong *)(param_1 + 8));

+      fVar22 = *pfVar14;

+      fVar23 = pfVar14[1];

+      fVar21 = pfVar14[3];

+      pfVar13 = (float *)((longlong)(int)((uVar12 + 1) * *(int *)(param_1 + 0x10)) +

+                         *(longlong *)(param_1 + 8));

+      fVar18 = ((float)((uint)fVar21 & 0xff) + 0.0) * 1.0;

+      fVar19 = ((float)((uint)fVar21 & 0xff00) + 0.0) * 0.00390625;

+      fVar20 = ((float)((uint)fVar21 & 0xff0000) + 0.0) * 1.5258789e-05;

+      fVar21 = ((float)(int)((uint)fVar21 & 0xff000000 ^ 0x80000000) + 2.1474836e+09) *

+               5.9604645e-08;

+      puVar9 = (undefined8 *)

+               ((longlong)(int)(*(int *)(param_1 + 0x40) * (uVar12 + 1)) +

+               *(longlong *)(param_1 + 0x38));

+      puVar10 = (undefined8 *)

+                ((longlong)(int)(*(int *)(param_1 + 0x40) * uVar12) + *(longlong *)(param_1 + 0x38))

+      ;

+      uVar15 = DirectX::MathInternal::PermuteHelper<228,1,1,1,0>::Permute(uVar2,puVar9,fVar18);

+      auVar16._0_4_ = (int)(fVar18 * (float)uVar15);

+      auVar16._4_4_ = (int)(fVar19 * (float)((ulonglong)uVar15 >> 0x20));

+      auVar16._8_4_ = (int)(fVar20 * extraout_XMM0_Dc);

+      auVar16._12_4_ = (int)(fVar21 * extraout_XMM0_Dd);

+      packssdw(auVar16,auVar16);

+      uVar15 = DirectX::MathInternal::PermuteHelper<228,0,0,0,1>::Permute

+                         (fVar23 * (float)uVar3 + (float)uVar4 + fVar22 * (float)uVar24);

+      *puVar10 = uVar15;

+      *(undefined4 *)(puVar10 + 1) = extraout_XMM0_Dc_00;

+      *(undefined4 *)((longlong)puVar10 + 0xc) = extraout_XMM0_Dd_00;

+      if ((int)uVar11 != 0) {

+        uVar8 = uVar11 & 0xffffffff;

+        puVar1 = puVar10;

+        do {

+          puVar6 = puVar1 + 2;

+          puVar7 = (undefined8 *)(((longlong)pfVar14 - (longlong)puVar10) + (longlong)puVar6);

+          uVar15 = puVar7[1];

+          *puVar6 = *puVar7;

+          puVar1[3] = uVar15;

+          uVar8 = uVar8 - 1;

+          puVar1 = puVar6;

+        } while (uVar8 != 0);

+      }

+      fVar22 = *pfVar13;

+      fVar23 = pfVar13[1];

+      fVar21 = pfVar13[3];

+      fVar18 = ((float)((uint)fVar21 & 0xff) + 0.0) * 1.0;

+      fVar19 = ((float)((uint)fVar21 & 0xff00) + 0.0) * 0.00390625;

+      fVar20 = ((float)((uint)fVar21 & 0xff0000) + 0.0) * 1.5258789e-05;

+      fVar21 = ((float)(int)((uint)fVar21 & 0xff000000 ^ 0x80000000) + 2.1474836e+09) *

+               5.9604645e-08;

+      uVar15 = DirectX::MathInternal::PermuteHelper<228,1,1,1,0>::Permute(uVar2);

+      auVar17._0_4_ = (int)(fVar18 * (float)uVar15);

+      auVar17._4_4_ = (int)(fVar19 * (float)((ulonglong)uVar15 >> 0x20));

+      auVar17._8_4_ = (int)(fVar20 * extraout_XMM0_Dc_01);

+      auVar17._12_4_ = (int)(fVar21 * extraout_XMM0_Dd_01);

+      packssdw(auVar17,auVar17);

+      uVar15 = DirectX::MathInternal::PermuteHelper<228,0,0,0,1>::Permute

+                         (fVar23 * (float)uVar3 + (float)uVar4 + fVar22 * (float)uVar24);

+      *puVar9 = uVar15;

+      *(undefined4 *)(puVar9 + 1) = extraout_XMM0_Dc_02;

+      *(undefined4 *)((longlong)puVar9 + 0xc) = extraout_XMM0_Dd_02;

+      if ((int)uVar11 != 0) {

+        uVar8 = uVar11 & 0xffffffff;

+        puVar10 = puVar9;

+        do {

+          puVar7 = puVar10 + 2;

+          puVar1 = (undefined8 *)(((longlong)pfVar13 - (longlong)puVar9) + (longlong)puVar7);

+          uVar15 = puVar1[1];

+          *puVar7 = *puVar1;

+          puVar10[3] = uVar15;

+          uVar8 = uVar8 - 1;

+          puVar10 = puVar7;

+        } while (uVar8 != 0);

+      }

+      uVar12 = uVar12 + 2;

+    } while (uVar12 < uVar5);

+  }

+  return;

+}

+
```

## `VertexTransfer::SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>,2,Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>`  (modified)

```diff
--- VertexTransfer::SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>,2,Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>
+++ VertexTransfer::SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>,2,Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>
@@ -1,2 +1,186 @@
-Failed to decompile dwmcore.dll - .ProgramDB VertexTransfer::SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>,2,Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_> : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+void VertexTransfer::

+     SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>,2,Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>

+               (undefined8 *param_1,undefined4 *param_2,CMILMatrix *param_3,longlong param_4)

+

+{

+  StridedSpan<Vertex_UVxN<VertexXYW_ColorDW>_const_> *pSVar1;

+  undefined4 uVar2;

+  uint uVar3;

+  StridedSpan<Vertex_UVxN<VertexXYW_ColorDW>_const_> *pSVar4;

+  undefined1 auVar5 [12];

+  uint uVar6;

+  ushort uVar7;

+  int iVar8;

+  uint uVar9;

+  undefined4 *puVar10;

+  longlong lVar11;

+  int iVar12;

+  longlong lVar13;

+  longlong lVar14;

+  undefined8 uVar15;

+  float extraout_XMM0_Dc;

+  float extraout_XMM0_Dc_00;

+  float extraout_XMM0_Dc_01;

+  float extraout_XMM0_Dd;

+  float extraout_XMM0_Dd_00;

+  float extraout_XMM0_Dd_01;

+  float fVar16;

+  float fVar17;

+  float fVar18;

+  float fVar19;

+  float fVar20;

+  float fVar21;

+  float fVar22;

+  float fVar23;

+  undefined1 auVar24 [16];

+  undefined1 auVar25 [16];

+  undefined4 uVar26;

+  float fVar27;

+  undefined4 uVar28;

+  float fVar29;

+  float fVar30;

+  float fVar31;

+  undefined4 uVar32;

+  undefined4 uVar33;

+  undefined4 uVar34;

+  undefined4 uVar35;

+  undefined4 local_b8;

+  undefined4 uStack_b4;

+  undefined4 uStack_b0;

+  undefined4 uStack_ac;

+  undefined4 local_a8;

+  undefined4 uStack_a4;

+  undefined4 uStack_a0;

+  undefined4 uStack_9c;

+  undefined4 local_98;

+  undefined4 uStack_94;

+  undefined4 uStack_90;

+  undefined4 uStack_8c;

+  undefined8 local_88;

+  undefined8 uStack_80;

+  

+  pSVar4 = (StridedSpan<Vertex_UVxN<VertexXYW_ColorDW>_const_> *)*param_1;

+  uVar2 = *(undefined4 *)((longlong)param_1 + 0x2c);

+  uVar32 = 0;

+  uVar33 = 0;

+  uVar34 = 0;

+  uVar35 = 0x3f800000;

+  if ((param_3 != (CMILMatrix *)0x0) && (param_4 != 0)) {

+    CalculateTBNFrameFrom3Vertices

+              ((D2D_POINT_2F *)&local_b8,pSVar4,(CMILMatrix *)(param_1 + 1),param_3);

+    uVar32 = local_b8;

+    uVar33 = uStack_b4;

+    uVar34 = uStack_b0;

+    uVar35 = uStack_ac;

+  }

+  uVar3 = *(uint *)((longlong)param_1 + 0x14);

+  uVar9 = 0;

+  local_a8 = *param_2;

+  uStack_a4 = param_2[1];

+  local_88 = *(undefined8 *)(param_2 + 0xc);

+  local_98 = param_2[4];

+  uStack_94 = param_2[5];

+  uStack_80 = 0;

+  uStack_a0 = local_a8;

+  uStack_9c = uStack_a4;

+  uStack_90 = local_98;

+  uStack_8c = uStack_94;

+  if (uVar3 != 0) {

+    do {

+      iVar8 = uVar9 + 1;

+      uVar6 = *(uint *)((longlong)(int)(*(int *)(param_1 + 2) * uVar9) + param_1[1] + 0xc);

+      puVar10 = (undefined4 *)((longlong)(iVar8 * *(int *)(param_1 + 2)) + param_1[1]);

+      fVar16 = ((float)(uVar6 & 0xff) + 0.0) * 1.0;

+      fVar18 = ((float)(uVar6 & 0xff00) + 0.0) * 0.00390625;

+      fVar20 = ((float)(uVar6 & 0xff0000) + 0.0) * 1.5258789e-05;

+      fVar22 = ((float)(int)(uVar6 & 0xff000000 ^ 0x80000000) + 2.1474836e+09) * 5.9604645e-08;

+      lVar14 = (longlong)(int)(*(int *)(param_1 + 8) * uVar9) + param_1[7];

+      lVar13 = (longlong)(*(int *)(param_1 + 8) * iVar8) + param_1[7];

+      uVar15 = DirectX::MathInternal::PermuteHelper<228,1,1,1,0>::Permute(uVar2,0x3f800000);

+      iVar12 = *(int *)(param_1 + 4);

+      lVar11 = param_1[3];

+      auVar24._0_4_ = (int)(fVar16 * (float)uVar15);

+      auVar24._4_4_ = (int)(fVar18 * (float)((ulonglong)uVar15 >> 0x20));

+      auVar24._8_4_ = (int)(fVar20 * extraout_XMM0_Dc);

+      auVar24._12_4_ = (int)(fVar22 * extraout_XMM0_Dd);

+      packssdw(auVar24,auVar24);

+      CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>::Transform

+                ((CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_> *)&local_a8

+                );

+      uVar26 = *puVar10;

+      uVar28 = puVar10[1];

+      uVar6 = puVar10[3];

+      fVar16 = ((float)(uVar6 & 0xff) + 0.0) * 1.0;

+      fVar18 = ((float)(uVar6 & 0xff00) + 0.0) * 0.00390625;

+      fVar20 = ((float)(uVar6 & 0xff0000) + 0.0) * 1.5258789e-05;

+      fVar22 = ((float)(int)(uVar6 & 0xff000000 ^ 0x80000000) + 2.1474836e+09) * 5.9604645e-08;

+      uVar15 = DirectX::MathInternal::PermuteHelper<228,1,1,1,0>::Permute(uVar2,0x3f800000);

+      auVar25._0_4_ = (int)(fVar16 * (float)uVar15);

+      auVar25._4_4_ = (int)(fVar18 * (float)((ulonglong)uVar15 >> 0x20));

+      auVar25._8_4_ = (int)(fVar20 * extraout_XMM0_Dc_00);

+      auVar25._12_4_ = (int)(fVar22 * extraout_XMM0_Dd_00);

+      packssdw(auVar25,auVar25);

+      CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>::Transform

+                ((CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_> *)&local_a8

+                 ,puVar10,iVar12 * iVar8 + lVar11,CONCAT44(uVar28,uVar26));

+      pSVar1 = pSVar4 + (ulonglong)(uVar9 >> 1) * 0x10;

+      fVar16 = *(float *)pSVar1;

+      fVar18 = *(float *)(pSVar1 + 4);

+      fVar20 = *(float *)(pSVar1 + 8);

+      fVar22 = *(float *)(pSVar1 + 0xc);

+      if (param_3 == (CMILMatrix *)0x0) {

+        fVar21 = 0.0;

+        fVar23 = 0.0;

+        uVar15 = DirectX::XMVectorPermute<0,1,6,7>(fVar16,0);

+        fVar17 = fVar20;

+        fVar19 = fVar22;

+        fVar30 = extraout_XMM0_Dc_01;

+        fVar31 = extraout_XMM0_Dd_01;

+      }

+      else {

+        auVar5 = *(undefined1 (*) [12])(param_3 + 0x10);

+        fVar27 = (float)*(undefined8 *)param_3;

+        fVar29 = (float)((ulonglong)*(undefined8 *)param_3 >> 0x20);

+        fVar17 = (float)*(undefined8 *)(param_3 + 0x30);

+        fVar19 = (float)((ulonglong)*(undefined8 *)(param_3 + 0x30) >> 0x20);

+        uVar15 = CONCAT44(fVar18 * auVar5._4_4_ + fVar19 + fVar16 * fVar29,

+                          fVar18 * auVar5._0_4_ + fVar17 + fVar16 * fVar27);

+        fVar30 = fVar18 * auVar5._8_4_ + *(float *)(param_3 + 0x38) +

+                 fVar16 * *(float *)(param_3 + 8);

+        fVar31 = fVar18 * 0.0 + 0.0 + fVar16 * 0.0;

+        fVar21 = fVar22 * auVar5._8_4_ + *(float *)(param_3 + 0x38) +

+                 fVar20 * *(float *)(param_3 + 8);

+        fVar23 = fVar22 * 0.0 + 0.0 + fVar20 * 0.0;

+        fVar17 = fVar22 * auVar5._0_4_ + fVar17 + fVar20 * fVar27;

+        fVar19 = fVar22 * auVar5._4_4_ + fVar19 + fVar20 * fVar29;

+      }

+      *(undefined8 *)(lVar14 + 0x10) = uVar15;

+      *(float *)(lVar14 + 0x18) = fVar30;

+      *(float *)(lVar14 + 0x1c) = fVar31;

+      *(undefined4 *)(lVar14 + 0x20) = uVar32;

+      *(undefined4 *)(lVar14 + 0x24) = uVar33;

+      *(undefined4 *)(lVar14 + 0x28) = uVar34;

+      *(undefined4 *)(lVar14 + 0x2c) = uVar35;

+      *(float *)(lVar13 + 0x10) = fVar17;

+      *(float *)(lVar13 + 0x14) = fVar19;

+      *(float *)(lVar13 + 0x18) = fVar21;

+      *(float *)(lVar13 + 0x1c) = fVar23;

+      *(undefined4 *)(lVar13 + 0x20) = uVar32;

+      *(undefined4 *)(lVar13 + 0x24) = uVar33;

+      *(undefined4 *)(lVar13 + 0x28) = uVar34;

+      *(undefined4 *)(lVar13 + 0x2c) = uVar35;

+      uVar7 = DirectX::PackedVector::XMConvertFloatToHalf(fVar16);

+      *(ushort *)(lVar14 + 0x1c) = uVar7;

+      uVar7 = DirectX::PackedVector::XMConvertFloatToHalf(fVar18);

+      *(ushort *)(lVar14 + 0x1e) = uVar7;

+      uVar7 = DirectX::PackedVector::XMConvertFloatToHalf(fVar20);

+      *(ushort *)(lVar13 + 0x1c) = uVar7;

+      uVar7 = DirectX::PackedVector::XMConvertFloatToHalf(fVar22);

+      uVar9 = uVar9 + 2;

+      *(ushort *)(lVar13 + 0x1e) = uVar7;

+    } while (uVar9 < uVar3);

+  }

+  return;

+}

+
```

## `CInteractionContextWrapper::ProcessInput`  (modified)

```diff
--- CInteractionContextWrapper::ProcessInput
+++ CInteractionContextWrapper::ProcessInput
@@ -1,2 +1,269 @@
-Failed to decompile dwmcore.dll - .ProgramDB CInteractionContextWrapper::ProcessInput : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: virtual long __cdecl CInteractionContextWrapper::ProcessInput(struct tagPOINTER_INFO

+   const & __ptr64,struct tagPOINTER_INFO_UNION const & __ptr64,class CMILMatrix const &

+   __ptr64,unsigned int) __ptr64 */

+

+long __thiscall

+CInteractionContextWrapper::ProcessInput

+          (CInteractionContextWrapper *this,tagPOINTER_INFO *param_1,tagPOINTER_INFO_UNION *param_2,

+          CMILMatrix *param_3,uint param_4)

+

+{

+  ulong uVar1;

+  undefined8 uVar2;

+  bool bVar3;

+  char cVar4;

+  uint uVar5;

+  int iVar6;

+  longlong lVar7;

+  CMILMatrix *this_00;

+  _tlgProvider_t *p_Var8;

+  tagPOINTER_INFO *ptVar9;

+  _GUID *p_Var10;

+  _GUID *p_Var11;

+  _GUID *p_Var12;

+  _GUID local_res8;

+  undefined4 local_1b8;

+  undefined4 local_1b4;

+  undefined4 local_1b0;

+  undefined4 local_1ac;

+  undefined4 local_1a8;

+  undefined4 local_1a4;

+  undefined4 local_1a0;

+  undefined4 local_19c;

+  undefined4 local_198;

+  undefined4 local_194;

+  undefined4 local_190;

+  undefined4 local_18c;

+  undefined4 local_188;

+  undefined4 local_184;

+  undefined4 local_180;

+  undefined4 local_17c;

+  undefined4 local_178;

+  undefined4 local_174;

+  undefined4 local_170;

+  undefined4 local_16c;

+  undefined4 local_168;

+  undefined4 local_164;

+  undefined4 local_160 [2];

+  undefined4 local_158;

+  undefined4 local_154;

+  undefined4 local_150;

+  undefined4 local_14c;

+  undefined4 local_148;

+  undefined4 local_144;

+  uchar local_138 [8];

+  uchar auStack_130 [8];

+  undefined8 local_128;

+  undefined8 uStack_120;

+  undefined8 local_118;

+  undefined8 uStack_110;

+  undefined8 local_108;

+  undefined8 uStack_100;

+  undefined8 local_f8;

+  undefined8 uStack_f0;

+  undefined8 local_e8;

+  undefined8 uStack_e0;

+  CInteractionContextWrapper *local_d8 [2];

+  _GUID local_c8;

+  uchar auStack_b8 [8];

+  undefined8 local_b0;

+  undefined8 uStack_a8;

+  undefined8 local_a0;

+  undefined8 uStack_98;

+  undefined8 local_90;

+  undefined8 uStack_88;

+  undefined8 local_80;

+  undefined8 uStack_78;

+  undefined8 local_70;

+  undefined8 uStack_68;

+  undefined8 local_60;

+  undefined8 uStack_58;

+  undefined8 local_50;

+  undefined8 uStack_48;

+  undefined8 uStack_40;

+  undefined8 uStack_38;

+  

+  p_Var12 = (_GUID *)local_138;

+  p_Var10 = (_GUID *)param_2;

+  p_Var11 = (_GUID *)param_3;

+  uVar5 = EnsureInteractionContext(this);

+  *(uint *)(this + 0x13c) = param_4;

+  *(undefined8 *)(this + 0xf0) = *(undefined8 *)(param_1 + 0x10);

+  if (-1 < (int)uVar5) {

+    *(undefined4 *)(this + 0xd4) = *(undefined4 *)(param_1 + 4);

+    *(undefined4 *)(this + 0xe8) = *(undefined4 *)(param_1 + 0xc);

+    *(undefined4 *)(this + 0xd8) = *(undefined4 *)param_1;

+    if (*(int *)(param_1 + 8) != *(int *)(this + 0xdc)) {

+      ResetCachedInteractionOutput(this,true);

+      p_Var10 = &local_res8;

+      local_res8.Data1 = 0;

+      local_res8.Data2 = 0;

+      local_res8.Data3 = 0;

+      *(undefined4 *)(this + 0xdc) = *(undefined4 *)(param_1 + 8);

+      iVar6 = QpcTimeConverter::QpcToMicroSec

+                        ((QpcTimeConverter *)(this + 0x268),*(__uint64 *)(param_1 + 0x50),

+                         (__uint64 *)p_Var10);

+      lVar7 = local_res8._0_8_;

+      if (iVar6 == 0) {

+        lVar7 = (ulonglong)*(uint *)(param_1 + 0x40) * 1000;

+      }

+      *(longlong *)(this + 0xe0) = lVar7;

+    }

+    this_00 = (CMILMatrix *)(this + 0xf8);

+    bVar3 = CMILMatrix::operator!=(this_00,param_3);

+    if (bVar3) {

+      uVar2 = *(undefined8 *)(param_3 + 8);

+      *(undefined8 *)this_00 = *(undefined8 *)param_3;

+      *(undefined8 *)(this_00 + 8) = uVar2;

+      uVar2 = *(undefined8 *)(param_3 + 0x18);

+      *(undefined8 *)(this_00 + 0x10) = *(undefined8 *)(param_3 + 0x10);

+      *(undefined8 *)(this_00 + 0x18) = uVar2;

+      uVar2 = *(undefined8 *)(param_3 + 0x28);

+      *(undefined8 *)(this_00 + 0x20) = *(undefined8 *)(param_3 + 0x20);

+      *(undefined8 *)(this_00 + 0x28) = uVar2;

+      uVar2 = *(undefined8 *)(param_3 + 0x38);

+      *(undefined8 *)(this_00 + 0x30) = *(undefined8 *)(param_3 + 0x30);

+      *(undefined8 *)(this_00 + 0x38) = uVar2;

+      *(undefined4 *)(this_00 + 0x40) = *(undefined4 *)(param_3 + 0x40);

+      local_158 = *(undefined4 *)this_00;

+      local_154 = *(undefined4 *)(this_00 + 4);

+      local_150 = *(undefined4 *)(this_00 + 0x10);

+      local_14c = *(undefined4 *)(this_00 + 0x14);

+      local_148 = *(undefined4 *)(this_00 + 0x30);

+      local_144 = *(undefined4 *)(this_00 + 0x34);

+      uVar5 = CInteractionContextTransformHelper::UpdateTransform

+                        ((CInteractionContextTransformHelper *)(this + 0x148),

+                         (Matrix3x2F *)&local_158,(bool *)p_Var10);

+    }

+  }

+  local_138 = *(uchar (*) [8])param_1;

+  auStack_130 = *(uchar (*) [8])(param_1 + 8);

+  local_128 = *(undefined8 *)(param_1 + 0x10);

+  uStack_120 = *(undefined8 *)(param_1 + 0x18);

+  local_118 = *(undefined8 *)(param_1 + 0x20);

+  uStack_110 = *(undefined8 *)(param_1 + 0x28);

+  local_108 = *(undefined8 *)(param_1 + 0x30);

+  uStack_100 = *(undefined8 *)(param_1 + 0x38);

+  local_f8 = *(undefined8 *)(param_1 + 0x40);

+  uStack_f0 = *(undefined8 *)(param_1 + 0x48);

+  local_e8 = *(undefined8 *)(param_1 + 0x50);

+  uStack_e0 = *(undefined8 *)(param_1 + 0x58);

+  if ((int)uVar5 < 0) goto LAB_0;

+  p_Var10 = (_GUID *)CONCAT71((int7)((ulonglong)p_Var10 >> 8),this[0x140]);

+  ptVar9 = param_1;

+  uVar5 = CInteractionContextTransformHelper::TransformInput

+                    ((CInteractionContextTransformHelper *)(this + 0x148),param_1,(bool)this[0x140],

+                     (tagPOINTER_INFO *)p_Var12);

+  p_Var11 = p_Var12;

+  if ((int)uVar5 < 0) goto LAB_0;

+  if (((ulonglong)auStack_130 & 0x18000000000000) != 0) {

+    uVar5 = UpdateMouseWheelParameters

+                      (this,(TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded>

+                             *)ptVar9);

+    p_Var11 = p_Var12;

+  }

+  if ((int)uVar5 < 0) goto LAB_0;

+  uVar1 = *(ulong *)param_1;

+  local_c8.Data2 = 0;

+  local_c8.Data3 = 0;

+  local_c8.Data1 = uVar1;

+  memset(local_c8.Data4,0,0x90);

+  if (uVar1 == 2) {

+LAB_1:

+    local_60 = *(undefined8 *)(param_2 + 0x60);

+    uStack_58 = *(undefined8 *)(param_2 + 0x68);

+    uStack_40 = *(undefined8 *)(param_2 + 0x80);

+    uStack_38 = *(undefined8 *)(param_2 + 0x88);

+    local_50 = *(undefined8 *)(param_2 + 0x70);

+    uStack_48 = *(undefined8 *)(param_2 + 0x78);

+  }

+  else if (uVar1 == 3) {

+    local_60 = *(undefined8 *)(param_2 + 0x60);

+    uStack_58 = *(undefined8 *)(param_2 + 0x68);

+    local_50 = *(undefined8 *)(param_2 + 0x70);

+  }

+  else if (uVar1 == 5) goto LAB_1;

+  p_Var11 = &local_c8;

+  p_Var10 = (_GUID *)0x1;

+  local_c8.Data4[0] = local_138[0];

+  local_c8.Data4[1] = local_138[1];

+  local_c8.Data4[2] = local_138[2];

+  local_c8.Data4[3] = local_138[3];

+  local_c8.Data4[4] = local_138[4];

+  local_c8.Data4[5] = local_138[5];

+  local_c8.Data4[6] = local_138[6];

+  local_c8.Data4[7] = local_138[7];

+  auStack_b8[0] = auStack_130[0];

+  auStack_b8[1] = auStack_130[1];

+  auStack_b8[2] = auStack_130[2];

+  auStack_b8[3] = auStack_130[3];

+  auStack_b8[4] = auStack_130[4];

+  auStack_b8[5] = auStack_130[5];

+  auStack_b8[6] = auStack_130[6];

+  auStack_b8[7] = auStack_130[7];

+  local_b0 = local_128;

+  uStack_a8 = uStack_120;

+  local_a0 = local_118;

+  uStack_98 = uStack_110;

+  local_90 = local_108;

+  uStack_88 = uStack_100;

+  local_80 = local_f8;

+  uStack_78 = uStack_f0;

+  local_70 = local_e8;

+  uStack_68 = uStack_e0;

+  uVar5 = Ordinal_2507(*(undefined8 *)(this + 0x10));

+LAB_0:

+  if (4 < DAT_2) {

+    p_Var8 = (_tlgProvider_t *)&DAT_2;

+    cVar4 = _tlgKeywordOn(&DAT_2,2);

+    if (cVar4 != '\0') {

+      local_res8.Data4._0_4_ = *(undefined4 *)(param_3 + 0x38);

+      local_180 = uStack_100._4_4_;

+      local_17c = (undefined4)uStack_100;

+      local_178 = *(undefined4 *)(param_1 + 0x3c);

+      local_174 = *(undefined4 *)(param_1 + 0x38);

+      local_170 = *(undefined4 *)(param_1 + 0x40);

+      local_16c = *(undefined4 *)(param_1 + 0x48);

+      local_168 = *(undefined4 *)(param_1 + 8);

+      local_164 = *(undefined4 *)param_1;

+      local_160[0] = *(undefined4 *)(param_1 + 4);

+      local_res8.Data1 = *(ulong *)(param_3 + 0x3c);

+      local_1b8 = *(undefined4 *)(param_3 + 0x34);

+      local_1b4 = *(undefined4 *)(param_3 + 0x30);

+      local_1b0 = *(undefined4 *)(param_3 + 0x2c);

+      local_1ac = *(undefined4 *)(param_3 + 0x28);

+      local_1a8 = *(undefined4 *)(param_3 + 0x24);

+      local_1a4 = *(undefined4 *)(param_3 + 0x20);

+      local_1a0 = *(undefined4 *)(param_3 + 0x1c);

+      local_19c = *(undefined4 *)(param_3 + 0x18);

+      local_198 = *(undefined4 *)(param_3 + 0x14);

+      local_194 = *(undefined4 *)(param_3 + 0x10);

+      local_190 = *(undefined4 *)(param_3 + 0xc);

+      local_18c = *(undefined4 *)(param_3 + 8);

+      local_188 = *(undefined4 *)(param_3 + 4);

+      local_184 = *(undefined4 *)param_3;

+      param_4 = uVar5;

+      local_d8[0] = this;

+      _tlgWriteTemplate<long___cdecl(_tlgProvider_t_const*___ptr64,void_const*___ptr64,_GUID_const*___ptr64,_GUID_const*___ptr64,unsigned_int,_EVENT_DATA_DESCRIPTOR*___ptr64),&long___cdecl__tlgWriteTransfer_EventWriteTransfer(struct__tlgProvider_t_const*___ptr64,void_const*___ptr64,struct__GUID_const*___ptr64,struct__GUID_const*___ptr64,unsigned_int,struct__EVENT_DATA_DESCRIPTOR*___ptr64),_GUID_const*___ptr64,_GUID_const*___ptr64>

+      ::

+      Write<_tlgWrapperByVal<8>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>,_tlgWrapperByVal<4>_>

+                (p_Var8,&DAT_3,p_Var10,p_Var11,(_tlgWrapperByVal<8> *)local_d8,

+                 (_tlgWrapperByVal<4> *)local_160,(_tlgWrapperByVal<4> *)&local_164,

+                 (_tlgWrapperByVal<4> *)&local_168,(_tlgWrapperByVal<4> *)&local_16c,

+                 (_tlgWrapperByVal<4> *)&local_170,(_tlgWrapperByVal<4> *)&local_174,

+                 (_tlgWrapperByVal<4> *)&local_178,(_tlgWrapperByVal<4> *)&local_17c,

+                 (_tlgWrapperByVal<4> *)&local_180,(_tlgWrapperByVal<4> *)&local_184,

+                 (_tlgWrapperByVal<4> *)&local_188,(_tlgWrapperByVal<4> *)&local_18c,

+                 (_tlgWrapperByVal<4> *)&local_190,(_tlgWrapperByVal<4> *)&local_194,

+                 (_tlgWrapperByVal<4> *)&local_198,(_tlgWrapperByVal<4> *)&local_19c,

+                 (_tlgWrapperByVal<4> *)&local_1a0,(_tlgWrapperByVal<4> *)&local_1a4,

+                 (_tlgWrapperByVal<4> *)&local_1a8,(_tlgWrapperByVal<4> *)&local_1ac,

+                 (_tlgWrapperByVal<4> *)&local_1b0,(_tlgWrapperByVal<4> *)&local_1b4,

+                 (_tlgWrapperByVal<4> *)&local_1b8,(_tlgWrapperByVal<4> *)local_res8.Data4,

+                 (_tlgWrapperByVal<4> *)&local_res8,(_tlgWrapperByVal<4> *)&param_4);

+    }

+  }

+  return uVar5;

+}

+
```

## `CDDisplaySwapChain::CheckMultiplaneOverlaySupport`  (modified)

```diff
--- CDDisplaySwapChain::CheckMultiplaneOverlaySupport
+++ CDDisplaySwapChain::CheckMultiplaneOverlaySupport
@@ -1,2 +1,215 @@
-Failed to decompile dwmcore.dll - .ProgramDB CDDisplaySwapChain::CheckMultiplaneOverlaySupport : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* public: virtual bool __cdecl CDDisplaySwapChain::CheckMultiplaneOverlaySupport(struct

+   DWM_CHECK_MULTIPLANE_OVERLAY_SUPPORT_PLANE_INFO const * __ptr64,unsigned int,bool * __ptr64)const

+   __ptr64 */

+

+bool __thiscall

+CDDisplaySwapChain::CheckMultiplaneOverlaySupport

+          (CDDisplaySwapChain *this,DWM_CHECK_MULTIPLANE_OVERLAY_SUPPORT_PLANE_INFO *param_1,

+          uint param_2,bool *param_3)

+

+{

+  code *pcVar1;

+  CDDisplaySwapChain *pCVar2;

+  bool bVar3;

+  long lVar4;

+  undefined1 uVar5;

+  DWM_CHECK_MULTIPLANE_OVERLAY_SUPPORT_PLANE_INFO *pDVar6;

+  undefined1 uVar7;

+  DWM_CHECK_MULTIPLANE_OVERLAY_SUPPORT_PLANE_INFO *pDVar8;

+  undefined1 auStackY_188 [32];

+  uint uVar9;

+  bool local_118;

+  char local_117;

+  undefined4 local_114;

+  int local_110;

+  uint local_10c;

+  int local_108;

+  longlong *local_100;

+  CDDisplaySwapChain *local_f8;

+  DWM_CHECK_MULTIPLANE_OVERLAY_SUPPORT_PLANE_INFO *local_f0;

+  int local_e8;

+  int local_e4;

+  int local_e0;

+  int local_dc;

+  int local_d8;

+  int local_d4;

+  int local_d0;

+  int local_cc;

+  int local_c8;

+  int local_c4;

+  int local_c0;

+  int local_bc;

+  int local_b8;

+  int local_b4;

+  int local_b0;

+  int local_ac;

+  int local_a8;

+  int local_a4;

+  int local_a0;

+  int local_9c;

+  longlong local_98;

+  code *local_90;

+  undefined8 uStack_88;

+  CDDisplaySwapChain *local_80;

+  bool *local_78;

+  undefined8 local_70;

+  undefined8 local_68;

+  undefined8 uStack_60;

+  ulonglong local_58;

+  

+  local_58 = __security_cookie ^ (ulonglong)auStackY_188;

+  *param_3 = false;

+  local_100 = (longlong *)0x0;

+  local_118 = false;

+  local_70 = 0;

+  local_f8 = (CDDisplaySwapChain *)0x0;

+  local_80 = this;

+  local_78 = param_3;

+  lVar4 = (**(code **)(**(longlong **)(this + 0x170) + 0x30))();

+  if (lVar4 < 0) {

+    uVar9 = 0x150;

+  }

+  else {

+    bVar3 = CD3DDevice::CheckMPOCache(*(CD3DDevice **)(this + 0x28),param_1,param_2,&local_118);

+    uVar5 = local_118;

+    if (bVar3) goto LAB_0;

+    local_10c = 0;

+    if (param_2 != 0) {

+      pDVar8 = param_1 + 0x34;

+      do {

+        local_114 = 0;

+        local_98 = (**(code **)(**(longlong **)(pDVar8 + -0x2c) + 0x30))

+                             (*(longlong **)(pDVar8 + -0x2c),&local_114);

+        uVar5 = 0;

+        if (local_98 == 0) goto LAB_0;

+        if ((*(int *)(pDVar8 + -0x34) == 0) && (((byte)pDVar8[-0x1c] & 4) != 0)) {

+          pDVar6 = pDVar8 + -0x18;

+          local_110 = 2;

+          local_68 = *(undefined8 *)pDVar6;

+          uStack_60 = *(undefined8 *)(pDVar8 + -0x10);

+          local_f0 = pDVar6;

+        }

+        else {

+          local_68 = *(undefined8 *)(pDVar8 + 8);

+          uStack_60 = *(undefined8 *)(pDVar8 + 0x10);

+          local_f0 = pDVar8 + -8;

+          local_110 = 1;

+          local_90 = *(code **)local_f0;

+          uStack_88 = *(undefined8 *)pDVar8;

+          TMilRect<int,tagRECT,D2D_POINTANDSIZE_L,RectUniqueness::_CMilRectL_>::IntersectUnsafe

+                    ((TMilRect<int,tagRECT,D2D_POINTANDSIZE_L,RectUniqueness::_CMilRectL_> *)

+                     &local_68,

+                     (TMilRect<int,struct_tagRECT,struct_D2D_POINTANDSIZE_L,struct_RectUniqueness::_CMilRectL_>

+                      *)&local_90);

+          pDVar6 = pDVar8 + -8;

+        }

+        local_90 = *(code **)(*(longlong *)local_f8 + 0x30);

+        GetDisplayRotationFromDxgiRotation(local_f8,*(DXGI_MODE_ROTATION *)(pDVar8 + 0x18));

+        local_d8 = *(int *)pDVar6;

+        local_d4 = *(int *)(pDVar6 + 4);

+        local_c8 = *(int *)(pDVar8 + -0x18);

+        local_c4 = *(int *)(pDVar8 + -0x14);

+        local_e0 = (int)uStack_60 - (int)local_68;

+        local_e8 = (int)local_68;

+        local_dc = uStack_60._4_4_ - local_68._4_4_;

+        local_e4 = local_68._4_4_;

+        local_d0 = *(int *)(local_f0 + 8) - local_d8;

+        local_cc = *(int *)(local_f0 + 0xc) - local_d4;

+        local_c0 = *(int *)(pDVar8 + -0x10) - local_c8;

+        local_bc = *(int *)(pDVar8 + -0xc) - local_c4;

+        lVar4 = (*local_90)();

+        if (lVar4 < 0) {

+          uVar9 = 0x187;

+          goto LAB_1;

+        }

+        if (local_110 == 2) {

+          local_b8 = *(int *)(pDVar8 + -8);

+          local_b4 = *(int *)(pDVar8 + -4);

+          local_a8 = *(int *)(pDVar8 + -0x18);

+          local_a4 = *(int *)(pDVar8 + -0x14);

+          local_b0 = *(int *)pDVar8 - local_b8;

+          local_ac = *(int *)(pDVar8 + 4) - local_b4;

+          local_a0 = *(int *)(pDVar8 + -0x10) - local_a8;

+          local_9c = *(int *)(pDVar8 + -0xc) - local_a4;

+          lVar4 = (**(code **)(*(longlong *)local_f8 + 0x38))

+                            (local_f8,*(undefined8 *)(pDVar8 + 0x54),0,&local_a8);

+          if (lVar4 < 0) {

+            uVar9 = 0x194;

+            goto LAB_1;

+          }

+        }

+        local_10c = local_10c + 1;

+        pDVar8 = pDVar8 + 0x90;

+        this = local_80;

+        param_3 = local_78;

+      } while (local_10c < param_2);

+    }

+    pCVar2 = local_f8;

+    pcVar1 = *(code **)(*(longlong *)local_f8 + 0x40);

+    if (local_100 != (longlong *)0x0) {

+      (**(code **)(*local_100 + 0x10))();

+    }

+    lVar4 = (*pcVar1)(pCVar2);

+    if (lVar4 < 0) {

+      uVar9 = 0x199;

+    }

+    else {

+      local_117 = '\0';

+      lVar4 = (**(code **)(*local_100 + 0x40))();

+      if (lVar4 < 0) {

+        uVar9 = 0x19d;

+      }

+      else {

+        local_108 = 0;

+        *param_3 = local_117 != '\0';

+        lVar4 = (**(code **)(*local_100 + 0x30))();

+        if (-1 < lVar4) {

+          uVar5 = local_118;

+          if (local_108 == 1) {

+            uVar5 = 1;

+          }

+          local_118 = (bool)uVar5;

+          bVar3 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_SkipCheckMPOCache>::

+                  __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_SkipCheckMPOCache> *)

+                                      &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_SkipCheckMPOCache>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_SkipCheckMPOCache>::GetImpl(void)'

+                                       ::__l2::impl);

+          uVar7 = local_118;

+          if ((!bVar3) || (uVar7 = uVar5, uVar5 = local_118, *param_3 == false)) {

+            CD3DDevice::AddCheckMPOCache(*(CD3DDevice **)(this + 0x28),param_1,param_2,(bool)uVar7);

+            uVar5 = local_118;

+          }

+          goto LAB_0;

+        }

+        uVar9 = 0x1a2;

+      }

+    }

+  }

+LAB_1:

+  MilInstrumentationCheckHR_MaybeFailFast(0x14,(long *)0x0,0,lVar4,uVar9,(void *)0x0);

+  uVar5 = local_118;

+LAB_0:

+  wil::

+  com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+  ::

+  ~com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+            ((com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+              *)&local_100);

+  wil::

+  com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+  ::

+  ~com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+            ((com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+              *)&local_70);

+  wil::

+  com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+  ::

+  ~com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+            ((com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+              *)&local_f8);

+  return (bool)uVar5;

+}

+
```

## `VertexTransfer::SimdTransfer<VertexTransfer::CSimdNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>,1,Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>`  (modified)

```diff
--- VertexTransfer::SimdTransfer<VertexTransfer::CSimdNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>,1,Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>
+++ VertexTransfer::SimdTransfer<VertexTransfer::CSimdNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>,1,Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>
@@ -1,2 +1,197 @@
-Failed to decompile dwmcore.dll - .ProgramDB VertexTransfer::SimdTransfer<VertexTransfer::CSimdNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>,1,Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_> : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+void VertexTransfer::

+     SimdTransfer<VertexTransfer::CSimdNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>,1,Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>

+               (undefined8 *param_1,undefined8 *param_2,CMILMatrix *param_3,longlong param_4)

+

+{

+  CMILMatrix *pCVar1;

+  StridedSpan<Vertex_UVxN<VertexXYW_ColorDW>_const_> *pSVar2;

+  undefined8 *puVar3;

+  float fVar4;

+  undefined8 uVar5;

+  undefined8 uVar6;

+  undefined8 uVar7;

+  uint uVar8;

+  uint uVar9;

+  StridedSpan<Vertex_UVxN<VertexXYW_ColorDW>_const_> *pSVar10;

+  float fVar11;

+  float fVar12;

+  float fVar13;

+  float fVar14;

+  ushort uVar15;

+  undefined8 *puVar16;

+  ulonglong uVar17;

+  undefined8 *puVar18;

+  float *pfVar19;

+  float *pfVar20;

+  undefined8 *puVar21;

+  uint uVar22;

+  undefined8 uVar23;

+  undefined4 extraout_XMM0_Dc;

+  undefined4 extraout_XMM0_Dc_00;

+  float extraout_XMM0_Dc_01;

+  undefined4 extraout_XMM0_Dd;

+  undefined4 extraout_XMM0_Dd_00;

+  float extraout_XMM0_Dd_01;

+  undefined1 auVar24 [16];

+  undefined1 auVar25 [16];

+  float fVar26;

+  float fVar27;

+  float fVar28;

+  float fVar29;

+  float fVar30;

+  float fVar31;

+  float fVar32;

+  float fVar33;

+  float fVar34;

+  float fVar35;

+  undefined4 uVar36;

+  undefined4 uVar37;

+  undefined4 uVar38;

+  undefined4 uVar39;

+  undefined4 local_a8;

+  undefined4 uStack_a4;

+  undefined4 uStack_a0;

+  undefined4 uStack_9c;

+  

+  uVar8 = *(uint *)(param_1 + 5);

+  pCVar1 = (CMILMatrix *)(param_1 + 1);

+  pSVar10 = (StridedSpan<Vertex_UVxN<VertexXYW_ColorDW>_const_> *)*param_1;

+  fVar4 = *(float *)((longlong)param_1 + 0x2c);

+  uVar36 = 0;

+  uVar37 = 0;

+  uVar38 = 0;

+  uVar39 = 0x3f800000;

+  if ((param_3 != (CMILMatrix *)0x0) && (param_4 != 0)) {

+    CalculateTBNFrameFrom3Vertices((D2D_POINT_2F *)&local_a8,pSVar10,pCVar1,param_3);

+    uVar36 = local_a8;

+    uVar37 = uStack_a4;

+    uVar38 = uStack_a0;

+    uVar39 = uStack_9c;

+  }

+  uVar22 = 0;

+  uVar5 = param_2[6];

+  uVar9 = *(uint *)((longlong)param_1 + 0x14);

+  uVar6 = *param_2;

+  uVar7 = param_2[2];

+  if (uVar9 != 0) {

+    do {

+      pfVar20 = (float *)((longlong)(int)(*(int *)(param_1 + 2) * uVar22) + *(longlong *)pCVar1);

+      fVar11 = pfVar20[3];

+      pfVar19 = (float *)((longlong)(int)((uVar22 + 1) * *(int *)(param_1 + 2)) +

+                         *(longlong *)pCVar1);

+      puVar18 = (undefined8 *)((longlong)(int)(*(int *)(param_1 + 8) * uVar22) + param_1[7]);

+      auVar24._0_4_ = (int)(((float)((uint)fVar11 & 0xff) + 0.0) * 1.0 * fVar4);

+      auVar24._4_4_ = (int)(((float)((uint)fVar11 & 0xff00) + 0.0) * 0.00390625 * fVar4);

+      auVar24._8_4_ = (int)(((float)((uint)fVar11 & 0xff0000) + 0.0) * 1.5258789e-05 * fVar4);

+      auVar24._12_4_ =

+           (int)(((float)(int)((uint)fVar11 & 0xff000000 ^ 0x80000000) + 2.1474836e+09) *

+                 5.9604645e-08 * fVar4);

+      puVar21 = (undefined8 *)((longlong)(int)(*(int *)(param_1 + 8) * (uVar22 + 1)) + param_1[7]);

+      packssdw(auVar24,auVar24);

+      uVar23 = DirectX::MathInternal::PermuteHelper<228,0,0,0,1>::Permute

+                         (pfVar20[1] * (float)uVar7 + (float)uVar5 + *pfVar20 * (float)uVar6);

+      *puVar18 = uVar23;

+      *(undefined4 *)(puVar18 + 1) = extraout_XMM0_Dc;

+      *(undefined4 *)((longlong)puVar18 + 0xc) = extraout_XMM0_Dd;

+      if (uVar8 >> 1 != 0) {

+        puVar16 = puVar18 + 6;

+        uVar17 = (ulonglong)(uVar8 >> 1);

+        do {

+          puVar3 = (undefined8 *)

+                   ((longlong)pfVar20 + (-0x20 - (longlong)puVar18) + (longlong)puVar16);

+          uVar23 = puVar3[1];

+          *puVar16 = *puVar3;

+          puVar16[1] = uVar23;

+          puVar16 = puVar16 + 2;

+          uVar17 = uVar17 - 1;

+        } while (uVar17 != 0);

+      }

+      fVar11 = pfVar19[3];

+      auVar25._0_4_ = (int)(((float)((uint)fVar11 & 0xff) + 0.0) * 1.0 * fVar4);

+      auVar25._4_4_ = (int)(((float)((uint)fVar11 & 0xff00) + 0.0) * 0.00390625 * fVar4);

+      auVar25._8_4_ = (int)(((float)((uint)fVar11 & 0xff0000) + 0.0) * 1.5258789e-05 * fVar4);

+      auVar25._12_4_ =

+           (int)(((float)(int)((uint)fVar11 & 0xff000000 ^ 0x80000000) + 2.1474836e+09) *

+                 5.9604645e-08 * fVar4);

+      packssdw(auVar25,auVar25);

+      uVar23 = DirectX::MathInternal::PermuteHelper<228,0,0,0,1>::Permute

+                         (pfVar19[1] * (float)uVar7 + (float)uVar5 + *pfVar19 * (float)uVar6);

+      *puVar21 = uVar23;

+      *(undefined4 *)(puVar21 + 1) = extraout_XMM0_Dc_00;

+      *(undefined4 *)((longlong)puVar21 + 0xc) = extraout_XMM0_Dd_00;

+      if (uVar8 >> 1 != 0) {

+        puVar16 = puVar21 + 6;

+        uVar17 = (ulonglong)(uVar8 >> 1);

+        do {

+          puVar3 = (undefined8 *)

+                   ((longlong)pfVar19 + (-0x20 - (longlong)puVar21) + (longlong)puVar16);

+          uVar23 = puVar3[1];

+          *puVar16 = *puVar3;

+          puVar16[1] = uVar23;

+          puVar16 = puVar16 + 2;

+          uVar17 = uVar17 - 1;

+        } while (uVar17 != 0);

+      }

+      pSVar2 = pSVar10 + (ulonglong)(uVar22 >> 1) * 0x10;

+      fVar11 = *(float *)pSVar2;

+      fVar12 = *(float *)(pSVar2 + 4);

+      fVar13 = *(float *)(pSVar2 + 8);

+      fVar14 = *(float *)(pSVar2 + 0xc);

+      if (param_3 == (CMILMatrix *)0x0) {

+        auVar24 = ZEXT816(0);

+        uVar23 = DirectX::XMVectorPermute<0,1,6,7>();

+        fVar28 = auVar24._8_4_;

+        fVar29 = auVar24._12_4_;

+        fVar26 = fVar13;

+        fVar27 = fVar14;

+        fVar34 = extraout_XMM0_Dc_01;

+        fVar35 = extraout_XMM0_Dd_01;

+      }

+      else {

+        fVar32 = (float)*(undefined8 *)param_3;

+        fVar33 = (float)((ulonglong)*(undefined8 *)param_3 >> 0x20);

+        fVar30 = (float)*(undefined8 *)(param_3 + 0x10);

+        fVar31 = (float)((ulonglong)*(undefined8 *)(param_3 + 0x10) >> 0x20);

+        fVar26 = (float)*(undefined8 *)(param_3 + 0x30);

+        fVar27 = (float)((ulonglong)*(undefined8 *)(param_3 + 0x30) >> 0x20);

+        uVar23 = CONCAT44(fVar12 * fVar31 + fVar27 + fVar11 * fVar33,

+                          fVar12 * fVar30 + fVar26 + fVar11 * fVar32);

+        fVar34 = fVar12 * *(float *)(param_3 + 0x18) + *(float *)(param_3 + 0x38) +

+                 fVar11 * *(float *)(param_3 + 8);

+        fVar35 = fVar12 * 0.0 + 0.0 + fVar11 * 0.0;

+        fVar28 = fVar14 * *(float *)(param_3 + 0x18) + *(float *)(param_3 + 0x38) +

+                 fVar13 * *(float *)(param_3 + 8);

+        fVar29 = fVar14 * 0.0 + 0.0 + fVar13 * 0.0;

+        fVar26 = fVar14 * fVar30 + fVar26 + fVar13 * fVar32;

+        fVar27 = fVar14 * fVar31 + fVar27 + fVar13 * fVar33;

+      }

+      puVar18[2] = uVar23;

+      *(float *)(puVar18 + 3) = fVar34;

+      *(float *)((longlong)puVar18 + 0x1c) = fVar35;

+      *(undefined4 *)(puVar18 + 4) = uVar36;

+      *(undefined4 *)((longlong)puVar18 + 0x24) = uVar37;

+      *(undefined4 *)(puVar18 + 5) = uVar38;

+      *(undefined4 *)((longlong)puVar18 + 0x2c) = uVar39;

+      *(float *)(puVar21 + 2) = fVar26;

+      *(float *)((longlong)puVar21 + 0x14) = fVar27;

+      *(float *)(puVar21 + 3) = fVar28;

+      *(float *)((longlong)puVar21 + 0x1c) = fVar29;

+      *(undefined4 *)(puVar21 + 4) = uVar36;

+      *(undefined4 *)((longlong)puVar21 + 0x24) = uVar37;

+      *(undefined4 *)(puVar21 + 5) = uVar38;

+      *(undefined4 *)((longlong)puVar21 + 0x2c) = uVar39;

+      uVar15 = DirectX::PackedVector::XMConvertFloatToHalf(fVar11);

+      *(ushort *)((longlong)puVar18 + 0x1c) = uVar15;

+      uVar15 = DirectX::PackedVector::XMConvertFloatToHalf(fVar12);

+      *(ushort *)((longlong)puVar18 + 0x1e) = uVar15;

+      uVar15 = DirectX::PackedVector::XMConvertFloatToHalf(fVar13);

+      *(ushort *)((longlong)puVar21 + 0x1c) = uVar15;

+      uVar15 = DirectX::PackedVector::XMConvertFloatToHalf(fVar14);

+      uVar22 = uVar22 + 2;

+      *(ushort *)((longlong)puVar21 + 0x1e) = uVar15;

+    } while (uVar22 < uVar9);

+  }

+  return;

+}

+
```

## `COverlayContext::ForceSoftwareCursor`  (modified)

```diff
--- COverlayContext::ForceSoftwareCursor
+++ COverlayContext::ForceSoftwareCursor
@@ -1,2 +1,29 @@
-Failed to decompile dwmcore.dll - .ProgramDB COverlayContext::ForceSoftwareCursor : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* private: void __cdecl COverlayContext::ForceSoftwareCursor(void) __ptr64 */

+

+void __thiscall COverlayContext::ForceSoftwareCursor(COverlayContext *this)

+

+{

+  longlong *plVar1;

+  code *pcVar2;

+  bool bVar3;

+  undefined8 uVar4;

+  undefined1 auStack_48 [48];

+  ulonglong local_18;

+  

+  local_18 = __security_cookie ^ (ulonglong)auStack_48;

+  bVar3 = CCursorState::ForceSoftwareCursor

+                    (*(CCursorState **)(*(longlong *)(this + 0x4b18) + 0x2c8),

+                     *(_LUID *)(this + 0x4b20),*(uint *)(this + 0x4b28));

+  if (bVar3) {

+    plVar1 = *(longlong **)this;

+    pcVar2 = *(code **)(*plVar1 + 0x128);

+    uVar4 = GetCursorBounds(this);

+    (*pcVar2)(plVar1,uVar4);

+  }

+  return;

+}

+
```

## `VertexTransfer::SimdTransfer<VertexTransfer::CSimdNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>,2,Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>`  (modified)

```diff
--- VertexTransfer::SimdTransfer<VertexTransfer::CSimdNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>,2,Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>
+++ VertexTransfer::SimdTransfer<VertexTransfer::CSimdNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>,2,Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>
@@ -1,2 +1,213 @@
-Failed to decompile dwmcore.dll - .ProgramDB VertexTransfer::SimdTransfer<VertexTransfer::CSimdNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>,2,Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_> : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+void VertexTransfer::

+     SimdTransfer<VertexTransfer::CSimdNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>,2,Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>

+               (undefined8 *param_1,undefined8 *param_2,CMILMatrix *param_3,longlong param_4)

+

+{

+  CMILMatrix *pCVar1;

+  StridedSpan<Vertex_UVxN<VertexXYW_ColorDW>_const_> *pSVar2;

+  undefined8 *puVar3;

+  undefined4 uVar4;

+  undefined8 uVar5;

+  undefined8 uVar6;

+  undefined8 uVar7;

+  uint uVar8;

+  uint uVar9;

+  StridedSpan<Vertex_UVxN<VertexXYW_ColorDW>_const_> *pSVar10;

+  ushort uVar11;

+  undefined8 *puVar12;

+  ulonglong uVar13;

+  undefined8 *puVar14;

+  float *pfVar15;

+  float *pfVar16;

+  undefined8 *puVar17;

+  uint uVar18;

+  undefined8 uVar19;

+  float extraout_XMM0_Dc;

+  undefined4 extraout_XMM0_Dc_00;

+  float extraout_XMM0_Dc_01;

+  undefined4 extraout_XMM0_Dc_02;

+  float extraout_XMM0_Dc_03;

+  float extraout_XMM0_Dd;

+  undefined4 extraout_XMM0_Dd_00;

+  float extraout_XMM0_Dd_01;

+  undefined4 extraout_XMM0_Dd_02;

+  float extraout_XMM0_Dd_03;

+  undefined1 auVar20 [16];

+  undefined1 auVar21 [16];

+  float fVar22;

+  float fVar23;

+  float fVar24;

+  float fVar25;

+  float fVar26;

+  float fVar27;

+  float fVar28;

+  float fVar29;

+  float fVar30;

+  float fVar31;

+  float fVar32;

+  float fVar33;

+  float fVar34;

+  float fVar35;

+  undefined4 uVar36;

+  undefined4 uVar37;

+  undefined4 uVar38;

+  undefined4 uVar39;

+  undefined4 local_a8;

+  undefined4 uStack_a4;

+  undefined4 uStack_a0;

+  undefined4 uStack_9c;

+  

+  uVar8 = *(uint *)(param_1 + 5);

+  pCVar1 = (CMILMatrix *)(param_1 + 1);

+  pSVar10 = (StridedSpan<Vertex_UVxN<VertexXYW_ColorDW>_const_> *)*param_1;

+  uVar4 = *(undefined4 *)((longlong)param_1 + 0x2c);

+  uVar36 = 0;

+  uVar37 = 0;

+  uVar38 = 0;

+  uVar39 = 0x3f800000;

+  if ((param_3 != (CMILMatrix *)0x0) && (param_4 != 0)) {

+    CalculateTBNFrameFrom3Vertices((D2D_POINT_2F *)&local_a8,pSVar10,pCVar1,param_3);

+    uVar36 = local_a8;

+    uVar37 = uStack_a4;

+    uVar38 = uStack_a0;

+    uVar39 = uStack_9c;

+  }

+  uVar18 = 0;

+  uVar5 = param_2[6];

+  uVar9 = *(uint *)((longlong)param_1 + 0x14);

+  uVar6 = *param_2;

+  uVar7 = param_2[2];

+  if (uVar9 != 0) {

+    do {

+      pfVar16 = (float *)((longlong)(int)(*(int *)(param_1 + 2) * uVar18) + *(longlong *)pCVar1);

+      fVar28 = *pfVar16;

+      fVar30 = pfVar16[1];

+      fVar26 = pfVar16[3];

+      pfVar15 = (float *)((longlong)(int)((uVar18 + 1) * *(int *)(param_1 + 2)) +

+                         *(longlong *)pCVar1);

+      fVar22 = ((float)((uint)fVar26 & 0xff) + 0.0) * 1.0;

+      fVar23 = ((float)((uint)fVar26 & 0xff00) + 0.0) * 0.00390625;

+      fVar24 = ((float)((uint)fVar26 & 0xff0000) + 0.0) * 1.5258789e-05;

+      fVar26 = ((float)(int)((uint)fVar26 & 0xff000000 ^ 0x80000000) + 2.1474836e+09) *

+               5.9604645e-08;

+      puVar14 = (undefined8 *)((longlong)(int)(*(int *)(param_1 + 8) * uVar18) + param_1[7]);

+      puVar17 = (undefined8 *)((longlong)(int)(*(int *)(param_1 + 8) * (uVar18 + 1)) + param_1[7]);

+      uVar19 = DirectX::MathInternal::PermuteHelper<228,1,1,1,0>::Permute(uVar4);

+      auVar20._0_4_ = (int)(fVar22 * (float)uVar19);

+      auVar20._4_4_ = (int)(fVar23 * (float)((ulonglong)uVar19 >> 0x20));

+      auVar20._8_4_ = (int)(fVar24 * extraout_XMM0_Dc);

+      auVar20._12_4_ = (int)(fVar26 * extraout_XMM0_Dd);

+      packssdw(auVar20,auVar20);

+      uVar19 = DirectX::MathInternal::PermuteHelper<228,0,0,0,1>::Permute

+                         (fVar30 * (float)uVar7 + (float)uVar5 + fVar28 * (float)uVar6);

+      *puVar14 = uVar19;

+      *(undefined4 *)(puVar14 + 1) = extraout_XMM0_Dc_00;

+      *(undefined4 *)((longlong)puVar14 + 0xc) = extraout_XMM0_Dd_00;

+      if (uVar8 >> 1 != 0) {

+        puVar12 = puVar14 + 6;

+        uVar13 = (ulonglong)(uVar8 >> 1);

+        do {

+          puVar3 = (undefined8 *)

+                   ((longlong)pfVar16 + (-0x20 - (longlong)puVar14) + (longlong)puVar12);

+          uVar19 = puVar3[1];

+          *puVar12 = *puVar3;

+          puVar12[1] = uVar19;

+          puVar12 = puVar12 + 2;

+          uVar13 = uVar13 - 1;

+        } while (uVar13 != 0);

+      }

+      fVar28 = *pfVar15;

+      fVar30 = pfVar15[1];

+      fVar26 = pfVar15[3];

+      fVar22 = ((float)((uint)fVar26 & 0xff) + 0.0) * 1.0;

+      fVar23 = ((float)((uint)fVar26 & 0xff00) + 0.0) * 0.00390625;

+      fVar24 = ((float)((uint)fVar26 & 0xff0000) + 0.0) * 1.5258789e-05;

+      fVar26 = ((float)(int)((uint)fVar26 & 0xff000000 ^ 0x80000000) + 2.1474836e+09) *

+               5.9604645e-08;

+      uVar19 = DirectX::MathInternal::PermuteHelper<228,1,1,1,0>::Permute(uVar4);

+      auVar21._0_4_ = (int)(fVar22 * (float)uVar19);

+      auVar21._4_4_ = (int)(fVar23 * (float)((ulonglong)uVar19 >> 0x20));

+      auVar21._8_4_ = (int)(fVar24 * extraout_XMM0_Dc_01);

+      auVar21._12_4_ = (int)(fVar26 * extraout_XMM0_Dd_01);

+      packssdw(auVar21,auVar21);

+      uVar19 = DirectX::MathInternal::PermuteHelper<228,0,0,0,1>::Permute

+                         (fVar30 * (float)uVar7 + (float)uVar5 + fVar28 * (float)uVar6);

+      *puVar17 = uVar19;

+      *(undefined4 *)(puVar17 + 1) = extraout_XMM0_Dc_02;

+      *(undefined4 *)((longlong)puVar17 + 0xc) = extraout_XMM0_Dd_02;

+      if (uVar8 >> 1 != 0) {

+        puVar12 = puVar17 + 6;

+        uVar13 = (ulonglong)(uVar8 >> 1);

+        do {

+          puVar3 = (undefined8 *)

+                   ((longlong)pfVar15 + (-0x20 - (longlong)puVar17) + (longlong)puVar12);

+          uVar19 = puVar3[1];

+          *puVar12 = *puVar3;

+          puVar12[1] = uVar19;

+          puVar12 = puVar12 + 2;

+          uVar13 = uVar13 - 1;

+        } while (uVar13 != 0);

+      }

+      pSVar2 = pSVar10 + (ulonglong)(uVar18 >> 1) * 0x10;

+      fVar28 = *(float *)pSVar2;

+      fVar30 = *(float *)(pSVar2 + 4);

+      fVar26 = *(float *)(pSVar2 + 8);

+      fVar22 = *(float *)(pSVar2 + 0xc);

+      if (param_3 == (CMILMatrix *)0x0) {

+        auVar20 = ZEXT816(0);

+        uVar19 = DirectX::XMVectorPermute<0,1,6,7>();

+        fVar25 = auVar20._8_4_;

+        fVar27 = auVar20._12_4_;

+        fVar23 = fVar26;

+        fVar24 = fVar22;

+        fVar34 = extraout_XMM0_Dc_03;

+        fVar35 = extraout_XMM0_Dd_03;

+      }

+      else {

+        fVar32 = (float)*(undefined8 *)param_3;

+        fVar33 = (float)((ulonglong)*(undefined8 *)param_3 >> 0x20);

+        fVar29 = (float)*(undefined8 *)(param_3 + 0x10);

+        fVar31 = (float)((ulonglong)*(undefined8 *)(param_3 + 0x10) >> 0x20);

+        fVar23 = (float)*(undefined8 *)(param_3 + 0x30);

+        fVar24 = (float)((ulonglong)*(undefined8 *)(param_3 + 0x30) >> 0x20);

+        uVar19 = CONCAT44(fVar30 * fVar31 + fVar24 + fVar28 * fVar33,

+                          fVar30 * fVar29 + fVar23 + fVar28 * fVar32);

+        fVar34 = fVar30 * *(float *)(param_3 + 0x18) + *(float *)(param_3 + 0x38) +

+                 fVar28 * *(float *)(param_3 + 8);

+        fVar35 = fVar30 * 0.0 + 0.0 + fVar28 * 0.0;

+        fVar25 = fVar22 * *(float *)(param_3 + 0x18) + *(float *)(param_3 + 0x38) +

+                 fVar26 * *(float *)(param_3 + 8);

+        fVar27 = fVar22 * 0.0 + 0.0 + fVar26 * 0.0;

+        fVar23 = fVar22 * fVar29 + fVar23 + fVar26 * fVar32;

+        fVar24 = fVar22 * fVar31 + fVar24 + fVar26 * fVar33;

+      }

+      puVar14[2] = uVar19;

+      *(float *)(puVar14 + 3) = fVar34;

+      *(float *)((longlong)puVar14 + 0x1c) = fVar35;

+      *(undefined4 *)(puVar14 + 4) = uVar36;

+      *(undefined4 *)((longlong)puVar14 + 0x24) = uVar37;

+      *(undefined4 *)(puVar14 + 5) = uVar38;

+      *(undefined4 *)((longlong)puVar14 + 0x2c) = uVar39;

+      *(float *)(puVar17 + 2) = fVar23;

+      *(float *)((longlong)puVar17 + 0x14) = fVar24;

+      *(float *)(puVar17 + 3) = fVar25;

+      *(float *)((longlong)puVar17 + 0x1c) = fVar27;

+      *(undefined4 *)(puVar17 + 4) = uVar36;

+      *(undefined4 *)((longlong)puVar17 + 0x24) = uVar37;

+      *(undefined4 *)(puVar17 + 5) = uVar38;

+      *(undefined4 *)((longlong)puVar17 + 0x2c) = uVar39;

+      uVar11 = DirectX::PackedVector::XMConvertFloatToHalf(fVar28);

+      *(ushort *)((longlong)puVar14 + 0x1c) = uVar11;

+      uVar11 = DirectX::PackedVector::XMConvertFloatToHalf(fVar30);

+      *(ushort *)((longlong)puVar14 + 0x1e) = uVar11;

+      uVar11 = DirectX::PackedVector::XMConvertFloatToHalf(fVar26);

+      *(ushort *)((longlong)puVar17 + 0x1c) = uVar11;

+      uVar11 = DirectX::PackedVector::XMConvertFloatToHalf(fVar22);

+      uVar18 = uVar18 + 2;

+      *(ushort *)((longlong)puVar17 + 0x1e) = uVar11;

+    } while (uVar18 < uVar9);

+  }

+  return;

+}

+
```

## `VertexTransfer::SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,0,Vertex_UVxN<VertexXYW_ColorDW>_>`  (modified)

```diff
--- VertexTransfer::SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,0,Vertex_UVxN<VertexXYW_ColorDW>_>
+++ VertexTransfer::SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,0,Vertex_UVxN<VertexXYW_ColorDW>_>
@@ -1,2 +1,185 @@
-Failed to decompile dwmcore.dll - .ProgramDB VertexTransfer::SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,0,Vertex_UVxN<VertexXYW_ColorDW>_> : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+void VertexTransfer::

+     SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,0,Vertex_UVxN<VertexXYW_ColorDW>_>

+               (longlong param_1,undefined8 *param_2)

+

+{

+  float *pfVar1;

+  float *pfVar2;

+  undefined8 uVar3;

+  uint uVar4;

+  undefined1 auVar5 [16];

+  undefined1 auVar6 [16];

+  float fVar7;

+  undefined4 uVar8;

+  float *pfVar9;

+  float *pfVar10;

+  ulonglong uVar11;

+  float *pfVar12;

+  undefined8 *puVar13;

+  float *pfVar14;

+  float *pfVar15;

+  int iVar16;

+  float *pfVar17;

+  ulonglong uVar18;

+  undefined8 *puVar19;

+  uint uVar20;

+  float extraout_XMM0_Da;

+  float fVar21;

+  float extraout_XMM0_Da_00;

+  float extraout_XMM0_Db;

+  float fVar23;

+  undefined8 uVar22;

+  float extraout_XMM0_Db_00;

+  undefined4 extraout_XMM0_Dc;

+  undefined4 extraout_XMM0_Dc_00;

+  undefined4 extraout_XMM0_Dd;

+  undefined4 extraout_XMM0_Dd_00;

+  float fVar24;

+  float fVar25;

+  float fVar26;

+  float fVar27;

+  float fVar28;

+  float fVar29;

+  float fVar30;

+  float fVar31;

+  float fVar32;

+  float fVar33;

+  float fVar34;

+  

+  uVar20 = 0;

+  uVar4 = *(uint *)(param_1 + 0x14);

+  fVar31 = (float)*param_2;

+  fVar32 = (float)((ulonglong)*param_2 >> 0x20);

+  fVar33 = (float)param_2[2];

+  fVar34 = (float)((ulonglong)param_2[2] >> 0x20);

+  uVar18 = (ulonglong)(*(uint *)(param_1 + 0x28) >> 1);

+  uVar3 = param_2[6];

+  if (uVar4 != 0) {

+    do {

+      iVar16 = uVar20 + 1;

+      fVar24 = 1.0;

+      pfVar14 = (float *)((longlong)(int)(*(int *)(param_1 + 0x10) * uVar20) +

+                         *(longlong *)(param_1 + 8));

+      fVar25 = *pfVar14;

+      pfVar15 = (float *)((longlong)(iVar16 * *(int *)(param_1 + 0x10)) + *(longlong *)(param_1 + 8)

+                         );

+      puVar13 = (undefined8 *)

+                ((longlong)(*(int *)(param_1 + 0x40) * iVar16) + *(longlong *)(param_1 + 0x38));

+      puVar19 = (undefined8 *)

+                ((longlong)(int)(*(int *)(param_1 + 0x40) * uVar20) + *(longlong *)(param_1 + 0x38))

+      ;

+      pfVar17 = (float *)((longlong)(*(int *)(param_1 + 0x20) * iVar16) +

+                         *(longlong *)(param_1 + 0x18));

+      pfVar12 = (float *)((longlong)(int)(*(int *)(param_1 + 0x20) * uVar20) +

+                         *(longlong *)(param_1 + 0x18));

+      fVar26 = *pfVar12;

+      fVar27 = pfVar12[1];

+      fVar28 = pfVar12[2];

+      uVar8 = DirectX::XMVectorPermute<0,1,6,7>(fVar25,0x3f800000);

+      fVar21 = extraout_XMM0_Da - fVar26;

+      fVar23 = extraout_XMM0_Db - fVar27;

+      fVar29 = fVar23 * fVar33 + fVar21 * fVar31;

+      fVar30 = fVar23 * fVar34 + fVar21 * fVar32;

+      auVar5._4_4_ = -(uint)(fVar30 == 0.0);

+      auVar5._0_4_ = -(uint)(fVar29 == 0.0);

+      auVar5._8_4_ = -(uint)(fVar23 * fVar33 + fVar21 * fVar31 == 0.0);

+      auVar5._12_4_ = -(uint)(fVar23 * fVar34 + fVar21 * fVar32 == 0.0);

+      uVar8 = movmskps(uVar8,auVar5);

+      fVar21 = fVar24;

+      if (((byte)uVar8 & 3) != 3) {

+        fVar21 = (fVar24 / SQRT(fVar29 * fVar29 + fVar30 * fVar30)) * fVar28;

+      }

+      uVar8 = DirectX::MathInternal::PermuteHelper<228,0,0,0,1>::Permute(fVar24,fVar25);

+      uVar22 = DirectX::XMVectorPermute<0,1,6,7>

+                         (fVar27 * fVar33 + (float)uVar3 + fVar26 * fVar31 + fVar21 * fVar29,uVar8);

+      *puVar19 = uVar22;

+      *(undefined4 *)(puVar19 + 1) = extraout_XMM0_Dc;

+      *(undefined4 *)((longlong)puVar19 + 0xc) = extraout_XMM0_Dd;

+      if ((1.0 < fVar21) && (pfVar12[3] == 0.0)) {

+        fVar21 = 1.0;

+      }

+      if ((int)uVar18 != 0) {

+        uVar11 = uVar18 & 0xffffffff;

+        pfVar1 = pfVar14;

+        do {

+          pfVar9 = pfVar1 + 4;

+          fVar25 = pfVar1[5];

+          fVar26 = pfVar1[6];

+          fVar27 = pfVar1[7];

+          pfVar1 = (float *)(((longlong)pfVar12 - (longlong)pfVar14) + (longlong)pfVar9);

+          fVar28 = pfVar1[1];

+          fVar24 = pfVar1[2];

+          fVar23 = pfVar1[3];

+          pfVar10 = (float *)(((longlong)pfVar12 - (longlong)pfVar14) + (longlong)pfVar9);

+          fVar29 = pfVar10[1];

+          fVar30 = pfVar10[2];

+          fVar7 = pfVar10[3];

+          pfVar2 = (float *)(((longlong)puVar19 - (longlong)pfVar14) + (longlong)pfVar9);

+          *pfVar2 = (*pfVar9 - *pfVar1) * fVar21 + *pfVar10;

+          pfVar2[1] = (fVar25 - fVar28) * fVar21 + fVar29;

+          pfVar2[2] = (fVar26 - fVar24) * fVar21 + fVar30;

+          pfVar2[3] = (fVar27 - fVar23) * fVar21 + fVar7;

+          uVar11 = uVar11 - 1;

+          pfVar1 = pfVar9;

+        } while (uVar11 != 0);

+      }

+      fVar25 = *pfVar15;

+      fVar24 = 1.0;

+      fVar26 = *pfVar17;

+      fVar27 = pfVar17[1];

+      fVar28 = pfVar17[2];

+      uVar8 = DirectX::XMVectorPermute<0,1,6,7>(fVar25,0x3f800000);

+      fVar21 = extraout_XMM0_Da_00 - fVar26;

+      fVar23 = extraout_XMM0_Db_00 - fVar27;

+      fVar29 = fVar23 * fVar33 + fVar21 * fVar31;

+      fVar30 = fVar23 * fVar34 + fVar21 * fVar32;

+      auVar6._4_4_ = -(uint)(fVar30 == 0.0);

+      auVar6._0_4_ = -(uint)(fVar29 == 0.0);

+      auVar6._8_4_ = -(uint)(fVar23 * fVar33 + fVar21 * fVar31 == 0.0);

+      auVar6._12_4_ = -(uint)(fVar23 * fVar34 + fVar21 * fVar32 == 0.0);

+      uVar8 = movmskps(uVar8,auVar6);

+      fVar21 = fVar24;

+      if (((byte)uVar8 & 3) != 3) {

+        fVar21 = fVar28 * (fVar24 / SQRT(fVar29 * fVar29 + fVar30 * fVar30));

+      }

+      uVar8 = DirectX::MathInternal::PermuteHelper<228,0,0,0,1>::Permute(fVar24,fVar25);

+      uVar22 = DirectX::XMVectorPermute<0,1,6,7>

+                         (fVar27 * fVar33 + (float)uVar3 + fVar26 * fVar31 + fVar21 * fVar29,uVar8);

+      *puVar13 = uVar22;

+      *(undefined4 *)(puVar13 + 1) = extraout_XMM0_Dc_00;

+      *(undefined4 *)((longlong)puVar13 + 0xc) = extraout_XMM0_Dd_00;

+      if ((1.0 < fVar21) && (pfVar17[3] == 0.0)) {

+        fVar21 = 1.0;

+      }

+      if ((int)uVar18 != 0) {

+        uVar11 = uVar18 & 0xffffffff;

+        pfVar12 = pfVar15;

+        do {

+          pfVar10 = pfVar12 + 4;

+          fVar25 = pfVar12[5];

+          fVar26 = pfVar12[6];

+          fVar27 = pfVar12[7];

+          pfVar12 = (float *)(((longlong)pfVar17 - (longlong)pfVar15) + (longlong)pfVar10);

+          fVar28 = pfVar12[1];

+          fVar24 = pfVar12[2];

+          fVar23 = pfVar12[3];

+          pfVar14 = (float *)(((longlong)pfVar17 - (longlong)pfVar15) + (longlong)pfVar10);

+          fVar29 = pfVar14[1];

+          fVar30 = pfVar14[2];

+          fVar7 = pfVar14[3];

+          pfVar1 = (float *)((longlong)pfVar10 + ((longlong)puVar13 - (longlong)pfVar15));

+          *pfVar1 = (*pfVar10 - *pfVar12) * fVar21 + *pfVar14;

+          pfVar1[1] = (fVar25 - fVar28) * fVar21 + fVar29;

+          pfVar1[2] = (fVar26 - fVar24) * fVar21 + fVar30;

+          pfVar1[3] = (fVar27 - fVar23) * fVar21 + fVar7;

+          uVar11 = uVar11 - 1;

+          pfVar12 = pfVar10;

+        } while (uVar11 != 0);

+      }

+      uVar20 = uVar20 + 2;

+    } while (uVar20 < uVar4);

+  }

+  return;

+}

+
```

## `VertexTransfer::SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,2,Vertex_UVxN<VertexXYW_ColorDW>_>`  (modified)

```diff
--- VertexTransfer::SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,2,Vertex_UVxN<VertexXYW_ColorDW>_>
+++ VertexTransfer::SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,2,Vertex_UVxN<VertexXYW_ColorDW>_>
@@ -1,2 +1,91 @@
-Failed to decompile dwmcore.dll - .ProgramDB VertexTransfer::SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,2,Vertex_UVxN<VertexXYW_ColorDW>_> : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+void VertexTransfer::

+     SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>,2,Vertex_UVxN<VertexXYW_ColorDW>_>

+               (longlong param_1,undefined4 *param_2)

+

+{

+  undefined4 uVar1;

+  uint uVar2;

+  uint uVar3;

+  undefined4 *puVar4;

+  longlong lVar5;

+  int iVar6;

+  uint uVar7;

+  undefined8 uVar8;

+  float extraout_XMM0_Dc;

+  float extraout_XMM0_Dc_00;

+  float extraout_XMM0_Dd;

+  float extraout_XMM0_Dd_00;

+  float fVar9;

+  float fVar10;

+  float fVar11;

+  float fVar12;

+  undefined1 auVar13 [16];

+  undefined1 auVar14 [16];

+  undefined4 uVar15;

+  undefined4 local_68;

+  undefined4 uStack_64;

+  undefined4 uStack_60;

+  undefined4 uStack_5c;

+  undefined4 local_58;

+  undefined4 uStack_54;

+  undefined4 uStack_50;

+  undefined4 uStack_4c;

+  undefined8 local_48;

+  undefined8 uStack_40;

+  

+  local_68 = *param_2;

+  uStack_64 = param_2[1];

+  uVar7 = 0;

+  local_48 = *(undefined8 *)(param_2 + 0xc);

+  uVar2 = *(uint *)(param_1 + 0x14);

+  local_58 = param_2[4];

+  uStack_54 = param_2[5];

+  uVar1 = *(undefined4 *)(param_1 + 0x2c);

+  uStack_40 = 0;

+  uStack_60 = local_68;

+  uStack_5c = uStack_64;

+  uStack_50 = local_58;

+  uStack_4c = uStack_54;

+  if (uVar2 != 0) {

+    do {

+      uVar3 = *(uint *)((longlong)(int)(*(int *)(param_1 + 0x10) * uVar7) +

+                        *(longlong *)(param_1 + 8) + 0xc);

+      puVar4 = (undefined4 *)

+               ((longlong)(int)((uVar7 + 1) * *(int *)(param_1 + 0x10)) + *(longlong *)(param_1 + 8)

+               );

+      fVar9 = ((float)(uVar3 & 0xff) + 0.0) * 1.0;

+      fVar10 = ((float)(uVar3 & 0xff00) + 0.0) * 0.00390625;

+      fVar11 = ((float)(uVar3 & 0xff0000) + 0.0) * 1.5258789e-05;

+      fVar12 = ((float)(int)(uVar3 & 0xff000000 ^ 0x80000000) + 2.1474836e+09) * 5.9604645e-08;

+      uVar8 = DirectX::MathInternal::PermuteHelper<228,1,1,1,0>::Permute(uVar1,0x3f800000,fVar9);

+      iVar6 = *(int *)(param_1 + 0x20);

+      lVar5 = *(longlong *)(param_1 + 0x18);

+      auVar13._0_4_ = (int)(fVar9 * (float)uVar8);

+      auVar13._4_4_ = (int)(fVar10 * (float)((ulonglong)uVar8 >> 0x20));

+      auVar13._8_4_ = (int)(fVar11 * extraout_XMM0_Dc);

+      auVar13._12_4_ = (int)(fVar12 * extraout_XMM0_Dd);

+      packssdw(auVar13,auVar13);

+      CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>::Transform

+                ((CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_> *)&local_68);

+      uVar15 = *puVar4;

+      uVar3 = puVar4[3];

+      fVar9 = ((float)(uVar3 & 0xff) + 0.0) * 1.0;

+      fVar10 = ((float)(uVar3 & 0xff00) + 0.0) * 0.00390625;

+      fVar11 = ((float)(uVar3 & 0xff0000) + 0.0) * 1.5258789e-05;

+      fVar12 = ((float)(int)(uVar3 & 0xff000000 ^ 0x80000000) + 2.1474836e+09) * 5.9604645e-08;

+      uVar8 = DirectX::MathInternal::PermuteHelper<228,1,1,1,0>::Permute(uVar1,0x3f800000,fVar9);

+      auVar14._0_4_ = (int)(fVar9 * (float)uVar8);

+      auVar14._4_4_ = (int)(fVar10 * (float)((ulonglong)uVar8 >> 0x20));

+      auVar14._8_4_ = (int)(fVar11 * extraout_XMM0_Dc_00);

+      auVar14._12_4_ = (int)(fVar12 * extraout_XMM0_Dd_00);

+      packssdw(auVar14,auVar14);

+      CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_>::Transform

+                ((CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW>_> *)&local_68,puVar4,

+                 (int)(iVar6 * (uVar7 + 1)) + lVar5,uVar15);

+      uVar7 = uVar7 + 2;

+    } while (uVar7 < uVar2);

+  }

+  return;

+}

+
```

## `VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>::Transform`  (modified)

```diff
--- VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>::Transform
+++ VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>::Transform
@@ -1,2 +1,93 @@
-Failed to decompile dwmcore.dll - .ProgramDB VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>::Transform : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: void __vectorcall VertexTransfer::CSimdScale2DOperator<struct Vertex_UVxN<struct

+   VertexXYW_ColorDW_WorldXYZ_Tangent> >::Transform(struct Vertex_UVxN<struct VertexXYW_ColorDW>

+   const & __ptr64,struct VertexAAFixup_UVxN const & __ptr64,union __m128,union __m128,unsigned

+   int,struct Vertex_UVxN<struct VertexXYW_ColorDW_WorldXYZ_Tangent> * __ptr64) __ptr64 */

+

+void __thiscall

+VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>::Transform

+          (CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_> *this,

+          float *param_1,float *param_2,undefined4 param_4,undefined8 param_5,uint param_6,

+          undefined8 *param_7)

+

+{

+  float *pfVar1;

+  float *pfVar2;

+  float *pfVar3;

+  undefined1 auVar4 [16];

+  float fVar5;

+  float fVar6;

+  undefined4 uVar7;

+  float *pfVar8;

+  ulonglong uVar9;

+  float extraout_XMM0_Da;

+  float fVar10;

+  float extraout_XMM0_Db;

+  float fVar12;

+  undefined8 uVar11;

+  undefined4 extraout_XMM0_Dc;

+  undefined4 extraout_XMM0_Dd;

+  float fVar13;

+  float fVar14;

+  float fVar15;

+  float fVar16;

+  float fVar17;

+  float fVar18;

+  

+  fVar13 = 1.0;

+  fVar14 = *param_2;

+  fVar15 = param_2[1];

+  fVar16 = param_2[2];

+  uVar7 = DirectX::XMVectorPermute<0,1,6,7>(param_4,0x3f800000);

+  fVar10 = extraout_XMM0_Da - fVar14;

+  fVar12 = extraout_XMM0_Db - fVar15;

+  fVar17 = fVar12 * *(float *)(this + 0x10) + fVar10 * *(float *)this;

+  fVar18 = fVar12 * *(float *)(this + 0x14) + fVar10 * *(float *)(this + 4);

+  auVar4._4_4_ = -(uint)(fVar18 == 0.0);

+  auVar4._0_4_ = -(uint)(fVar17 == 0.0);

+  auVar4._8_4_ = -(uint)(fVar12 * *(float *)(this + 0x18) + fVar10 * *(float *)(this + 8) == 0.0);

+  auVar4._12_4_ = -(uint)(fVar12 * *(float *)(this + 0x1c) + fVar10 * *(float *)(this + 0xc) == 0.0)

+  ;

+  uVar7 = movmskps(uVar7,auVar4);

+  fVar10 = fVar13;

+  if (((byte)uVar7 & 3) != 3) {

+    fVar10 = (fVar13 / SQRT(fVar17 * fVar17 + fVar18 * fVar18)) * fVar16;

+  }

+  uVar7 = DirectX::MathInternal::PermuteHelper<228,0,0,0,1>::Permute(fVar13);

+  uVar11 = DirectX::XMVectorPermute<0,1,6,7>

+                     (fVar15 * *(float *)(this + 0x10) + *(float *)(this + 0x20) +

+                      fVar14 * *(float *)this + fVar10 * fVar17,uVar7);

+  *param_7 = uVar11;

+  *(undefined4 *)(param_7 + 1) = extraout_XMM0_Dc;

+  *(undefined4 *)((longlong)param_7 + 0xc) = extraout_XMM0_Dd;

+  if ((1.0 < fVar10) && (param_2[3] == 0.0)) {

+    fVar10 = 1.0;

+  }

+  if (param_6 != 0) {

+    uVar9 = (ulonglong)param_6;

+    pfVar1 = param_1;

+    do {

+      pfVar8 = pfVar1 + 4;

+      fVar14 = pfVar1[5];

+      fVar15 = pfVar1[6];

+      fVar16 = pfVar1[7];

+      pfVar1 = (float *)(((longlong)param_2 - (longlong)param_1) + (longlong)pfVar8);

+      fVar13 = pfVar1[1];

+      fVar12 = pfVar1[2];

+      fVar17 = pfVar1[3];

+      pfVar2 = (float *)(((longlong)param_2 - (longlong)param_1) + (longlong)pfVar8);

+      fVar18 = pfVar2[1];

+      fVar5 = pfVar2[2];

+      fVar6 = pfVar2[3];

+      pfVar3 = (float *)((longlong)param_7 + (0x20 - (longlong)param_1) + (longlong)pfVar8);

+      *pfVar3 = (*pfVar8 - *pfVar1) * fVar10 + *pfVar2;

+      pfVar3[1] = (fVar14 - fVar13) * fVar10 + fVar18;

+      pfVar3[2] = (fVar15 - fVar12) * fVar10 + fVar5;

+      pfVar3[3] = (fVar16 - fVar17) * fVar10 + fVar6;

+      uVar9 = uVar9 - 1;

+      pfVar1 = pfVar8;

+    } while (uVar9 != 0);

+  }

+  return;

+}

+
```

## `VertexTransfer::SimdTransfer<VertexTransfer::CSimdNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>,0,Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>`  (modified)

```diff
--- VertexTransfer::SimdTransfer<VertexTransfer::CSimdNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>,0,Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>
+++ VertexTransfer::SimdTransfer<VertexTransfer::CSimdNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>,0,Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>
@@ -1,2 +1,188 @@
-Failed to decompile dwmcore.dll - .ProgramDB VertexTransfer::SimdTransfer<VertexTransfer::CSimdNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>,0,Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_> : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+void VertexTransfer::

+     SimdTransfer<VertexTransfer::CSimdNonScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>,0,Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>

+               (longlong *param_1,undefined8 *param_2,CMILMatrix *param_3,longlong param_4)

+

+{

+  D2D_POINT_2F *pDVar1;

+  undefined8 *puVar2;

+  undefined8 uVar3;

+  undefined8 uVar4;

+  undefined8 uVar5;

+  uint uVar6;

+  uint uVar7;

+  D2D_POINT_2F *pDVar8;

+  longlong lVar9;

+  float fVar10;

+  float fVar11;

+  float fVar12;

+  float fVar13;

+  ushort uVar14;

+  undefined8 *puVar15;

+  ulonglong uVar16;

+  uint uVar17;

+  undefined8 *puVar18;

+  float *pfVar19;

+  float *pfVar20;

+  undefined8 *puVar21;

+  undefined8 uVar22;

+  undefined4 extraout_XMM0_Dc;

+  undefined4 extraout_XMM0_Dc_00;

+  float extraout_XMM0_Dc_01;

+  undefined4 extraout_XMM0_Dd;

+  undefined4 extraout_XMM0_Dd_00;

+  float extraout_XMM0_Dd_01;

+  float fVar23;

+  float fVar24;

+  float fVar25;

+  float fVar26;

+  float fVar27;

+  float fVar28;

+  float fVar29;

+  float fVar30;

+  float fVar31;

+  float fVar32;

+  undefined4 uVar33;

+  undefined4 uVar34;

+  undefined4 uVar35;

+  undefined4 uVar36;

+  undefined4 local_b8;

+  undefined4 uStack_b4;

+  undefined4 uStack_b0;

+  undefined4 uStack_ac;

+  longlong local_a8;

+  longlong local_a0;

+  longlong local_98;

+  D2D_POINT_2F *local_90;

+  D2D_POINT_2F *local_88;

+  D2D_POINT_2F *local_80;

+  

+  uVar6 = *(uint *)(param_1 + 5);

+  pDVar8 = (D2D_POINT_2F *)*param_1;

+  uVar33 = 0;

+  uVar34 = 0;

+  uVar35 = 0;

+  uVar36 = 0x3f800000;

+  if ((param_3 != (CMILMatrix *)0x0) && (param_4 != 0)) {

+    lVar9 = param_1[1];

+    local_88 = pDVar8 + 8;

+    local_80 = pDVar8 + 0x10;

+    local_a8 = lVar9 + 0x10;

+    local_a0 = lVar9 + 0x10 + (longlong)(int)param_1[2];

+    local_98 = lVar9 + 0x10 + (longlong)((int)param_1[2] * 2);

+    local_90 = pDVar8;

+    CalculateTBNFrameFrom3Vertices

+              ((D2D_POINT_2F **)&local_b8,&local_90,(CMILMatrix *)&local_a8,param_3);

+    uVar33 = local_b8;

+    uVar34 = uStack_b4;

+    uVar35 = uStack_b0;

+    uVar36 = uStack_ac;

+  }

+  uVar17 = 0;

+  uVar3 = param_2[6];

+  uVar7 = *(uint *)((longlong)param_1 + 0x14);

+  uVar4 = *param_2;

+  uVar5 = param_2[2];

+  if (uVar7 != 0) {

+    do {

+      pfVar20 = (float *)((longlong)(int)((int)param_1[2] * uVar17) + param_1[1]);

+      pfVar19 = (float *)((longlong)(int)((uVar17 + 1) * (int)param_1[2]) + param_1[1]);

+      puVar18 = (undefined8 *)((longlong)(int)((int)param_1[8] * uVar17) + param_1[7]);

+      puVar21 = (undefined8 *)((longlong)(int)((int)param_1[8] * (uVar17 + 1)) + param_1[7]);

+      uVar22 = DirectX::MathInternal::PermuteHelper<228,0,0,0,1>::Permute

+                         (pfVar20[1] * (float)uVar5 + (float)uVar3 + *pfVar20 * (float)uVar4);

+      *puVar18 = uVar22;

+      *(undefined4 *)(puVar18 + 1) = extraout_XMM0_Dc;

+      *(undefined4 *)((longlong)puVar18 + 0xc) = extraout_XMM0_Dd;

+      if (uVar6 >> 1 != 0) {

+        puVar15 = puVar18 + 6;

+        uVar16 = (ulonglong)(uVar6 >> 1);

+        do {

+          puVar2 = (undefined8 *)

+                   ((longlong)pfVar20 + (-0x20 - (longlong)puVar18) + (longlong)puVar15);

+          uVar22 = puVar2[1];

+          *puVar15 = *puVar2;

+          puVar15[1] = uVar22;

+          puVar15 = puVar15 + 2;

+          uVar16 = uVar16 - 1;

+        } while (uVar16 != 0);

+      }

+      uVar22 = DirectX::MathInternal::PermuteHelper<228,0,0,0,1>::Permute

+                         (pfVar19[1] * (float)uVar5 + (float)uVar3 + *pfVar19 * (float)uVar4);

+      *puVar21 = uVar22;

+      *(undefined4 *)(puVar21 + 1) = extraout_XMM0_Dc_00;

+      *(undefined4 *)((longlong)puVar21 + 0xc) = extraout_XMM0_Dd_00;

+      if (uVar6 >> 1 != 0) {

+        puVar15 = puVar21 + 6;

+        uVar16 = (ulonglong)(uVar6 >> 1);

+        do {

+          puVar2 = (undefined8 *)

+                   ((longlong)pfVar19 + (-0x20 - (longlong)puVar21) + (longlong)puVar15);

+          uVar22 = puVar2[1];

+          *puVar15 = *puVar2;

+          puVar15[1] = uVar22;

+          puVar15 = puVar15 + 2;

+          uVar16 = uVar16 - 1;

+        } while (uVar16 != 0);

+      }

+      pDVar1 = pDVar8 + (ulonglong)(uVar17 >> 1) * 0x10;

+      fVar10 = *(float *)pDVar1;

+      fVar11 = *(float *)(pDVar1 + 4);

+      fVar12 = *(float *)(pDVar1 + 8);

+      fVar13 = *(float *)(pDVar1 + 0xc);

+      if (param_3 == (CMILMatrix *)0x0) {

+        fVar25 = 0.0;

+        fVar26 = 0.0;

+        uVar22 = DirectX::XMVectorPermute<0,1,6,7>(fVar10,0);

+        fVar23 = fVar12;

+        fVar24 = fVar13;

+        fVar31 = extraout_XMM0_Dc_01;

+        fVar32 = extraout_XMM0_Dd_01;

+      }

+      else {

+        fVar29 = (float)*(undefined8 *)param_3;

+        fVar30 = (float)((ulonglong)*(undefined8 *)param_3 >> 0x20);

+        fVar27 = (float)*(undefined8 *)(param_3 + 0x10);

+        fVar28 = (float)((ulonglong)*(undefined8 *)(param_3 + 0x10) >> 0x20);

+        fVar23 = (float)*(undefined8 *)(param_3 + 0x30);

+        fVar24 = (float)((ulonglong)*(undefined8 *)(param_3 + 0x30) >> 0x20);

+        uVar22 = CONCAT44(fVar11 * fVar28 + fVar24 + fVar10 * fVar30,

+                          fVar11 * fVar27 + fVar23 + fVar10 * fVar29);

+        fVar31 = fVar11 * *(float *)(param_3 + 0x18) + *(float *)(param_3 + 0x38) +

+                 fVar10 * *(float *)(param_3 + 8);

+        fVar32 = fVar11 * 0.0 + 0.0 + fVar10 * 0.0;

+        fVar25 = fVar13 * *(float *)(param_3 + 0x18) + *(float *)(param_3 + 0x38) +

+                 fVar12 * *(float *)(param_3 + 8);

+        fVar26 = fVar13 * 0.0 + 0.0 + fVar12 * 0.0;

+        fVar23 = fVar13 * fVar27 + fVar23 + fVar12 * fVar29;

+        fVar24 = fVar13 * fVar28 + fVar24 + fVar12 * fVar30;

+      }

+      puVar18[2] = uVar22;

+      *(float *)(puVar18 + 3) = fVar31;

+      *(float *)((longlong)puVar18 + 0x1c) = fVar32;

+      *(undefined4 *)(puVar18 + 4) = uVar33;

+      *(undefined4 *)((longlong)puVar18 + 0x24) = uVar34;

+      *(undefined4 *)(puVar18 + 5) = uVar35;

+      *(undefined4 *)((longlong)puVar18 + 0x2c) = uVar36;

+      *(float *)(puVar21 + 2) = fVar23;

+      *(float *)((longlong)puVar21 + 0x14) = fVar24;

+      *(float *)(puVar21 + 3) = fVar25;

+      *(float *)((longlong)puVar21 + 0x1c) = fVar26;

+      *(undefined4 *)(puVar21 + 4) = uVar33;

+      *(undefined4 *)((longlong)puVar21 + 0x24) = uVar34;

+      *(undefined4 *)(puVar21 + 5) = uVar35;

+      *(undefined4 *)((longlong)puVar21 + 0x2c) = uVar36;

+      uVar14 = DirectX::PackedVector::XMConvertFloatToHalf(fVar10);

+      *(ushort *)((longlong)puVar18 + 0x1c) = uVar14;

+      uVar14 = DirectX::PackedVector::XMConvertFloatToHalf(fVar11);

+      *(ushort *)((longlong)puVar18 + 0x1e) = uVar14;

+      uVar14 = DirectX::PackedVector::XMConvertFloatToHalf(fVar12);

+      *(ushort *)((longlong)puVar21 + 0x1c) = uVar14;

+      uVar14 = DirectX::PackedVector::XMConvertFloatToHalf(fVar13);

+      uVar17 = uVar17 + 2;

+      *(ushort *)((longlong)puVar21 + 0x1e) = uVar14;

+    } while (uVar17 < uVar7);

+  }

+  return;

+}

+
```

## `CCursorState::SetHardwareShapeAndPosition`  (modified)

```diff
--- CCursorState::SetHardwareShapeAndPosition
+++ CCursorState::SetHardwareShapeAndPosition
@@ -1,2 +1,257 @@
-Failed to decompile dwmcore.dll - .ProgramDB CCursorState::SetHardwareShapeAndPosition : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+/* private: bool __cdecl CCursorState::SetHardwareShapeAndPosition(class CCursorState::MonitorData *

+   __ptr64,class TMilRect_<int,struct tagRECT,struct D2D_POINTANDSIZE_L,struct Mil3DRectL,struct

+   RectUniqueness::_CMilRectL_> const & __ptr64,class TMilRect_<int,struct tagRECT,struct

+   D2D_POINTANDSIZE_L,struct Mil3DRectL,struct RectUniqueness::_CMilRectL_> const & __ptr64,enum

+   _HWCURSOR_UPDATE_TYPE,bool) __ptr64 */

+

+bool __thiscall

+CCursorState::SetHardwareShapeAndPosition

+          (CCursorState *this,MonitorData *param_1,

+          TMilRect_<int,tagRECT,D2D_POINTANDSIZE_L,Mil3DRectL,RectUniqueness::_CMilRectL_> *param_2,

+          TMilRect_<int,tagRECT,D2D_POINTANDSIZE_L,Mil3DRectL,RectUniqueness::_CMilRectL_> *param_3,

+          _HWCURSOR_UPDATE_TYPE param_4,bool param_5)

+

+{

+  PaddedBitmap *this_00;

+  code *pcVar1;

+  uint uVar2;

+  bool bVar3;

+  CCursorState CVar4;

+  long lVar5;

+  uint uVar6;

+  uint uVar7;

+  int iVar8;

+  longlong *plVar9;

+  MonitorData MVar10;

+  uint uVar11;

+  longlong lVar12;

+  int iVar13;

+  undefined8 *puVar14;

+  MonitorData MVar15;

+  void *unaff_retaddr;

+  undefined1 auStack_108 [32];

+  longlong local_e8;

+  int local_d4;

+  undefined8 local_d0;

+  undefined8 uStack_c8;

+  undefined8 local_c0;

+  undefined8 uStack_b8;

+  longlong *local_b0;

+  uint local_a8;

+  uint uStack_a4;

+  undefined4 local_a0 [2];

+  uint local_98 [2];

+  undefined8 uStack_90;

+  undefined8 local_88;

+  int local_80;

+  int local_7c;

+  undefined8 local_78;

+  undefined4 local_70;

+  int local_6c;

+  int local_68;

+  undefined4 local_64;

+  _HWCURSOR_UPDATE_TYPE local_60;

+  ulonglong local_58;

+  

+  local_58 = __security_cookie ^ (ulonglong)auStack_108;

+  lVar12 = *(longlong *)(param_1 + 0x70);

+  puVar14 = (undefined8 *)0x0;

+  if (lVar12 == 0) {

+    return false;

+  }

+  bVar3 = TMilRect<int,tagRECT,D2D_POINTANDSIZE_L,RectUniqueness::_CMilRectL_>::IsEquivalentTo

+                    ((TMilRect<int,tagRECT,D2D_POINTANDSIZE_L,RectUniqueness::_CMilRectL_> *)param_3

+                     ,(TMilRect<int,struct_tagRECT,struct_D2D_POINTANDSIZE_L,struct_RectUniqueness::_CMilRectL_>

+                       *)param_2);

+  MVar10 = (MonitorData)0x0;

+  MVar15 = MVar10;

+  if (bVar3) {

+    bVar3 = false;

+  }

+  else {

+    bVar3 = true;

+    if (param_1[0x9c] != (MonitorData)0x0) {

+      MVar15 = (MonitorData)0x1;

+      bVar3 = true;

+    }

+  }

+  if ((*(int *)(param_1 + 0x98) == 0) || ((!bVar3 && (param_1[0x9e] != (MonitorData)0x0)))) {

+    param_5 = true;

+  }

+  plVar9 = (longlong *)(*(longlong *)(lVar12 + 0x10) + 0x78);

+  (**(code **)(*plVar9 + 0x20))(plVar9,&local_a8);

+  local_78 = *(undefined8 *)param_1;

+  local_70 = *(undefined4 *)(param_1 + 8);

+  local_6c = *(int *)param_2;

+  local_68 = *(int *)(param_2 + 4);

+  local_60 = param_4;

+  local_64 = 1;

+  local_d0 = 0;

+  uStack_c8 = 0;

+  local_c0 = 0;

+  uStack_b8 = 0;

+  if ((bVar3) && (param_1[0x9d] != (MonitorData)0x0)) {

+    MVar15 = (MonitorData)0x1;

+    uVar11 = *(int *)(param_3 + 8) - *(int *)param_3;

+    if ((uint)(*(int *)(param_3 + 8) - *(int *)param_3) <=

+        (uint)(*(int *)(param_3 + 0xc) - *(int *)(param_3 + 4))) {

+      uVar11 = *(int *)(param_3 + 0xc) - *(int *)(param_3 + 4);

+    }

+    lVar5 = PaddedBitmap::Reset((PaddedBitmap *)(this + 0x120),uVar11,(bool)this[0x59]);

+    if (lVar5 < 0) {

+      return false;

+    }

+    local_d4 = *(int *)(param_3 + 4) - *(int *)(param_2 + 4);

+    local_68 = local_68 + local_d4;

+    local_e8 = *(longlong *)(this + 0x120);

+    iVar13 = *(int *)param_3 - *(int *)param_2;

+    local_6c = local_6c + iVar13;

+    local_80 = (iVar13 - *(int *)param_3) + *(int *)(param_3 + 8);

+    local_7c = (*(int *)(param_3 + 0xc) - *(int *)(param_3 + 4)) + local_d4;

+    local_88 = CONCAT44(local_d4,iVar13);

+    plVar9 = (longlong *)(*(longlong *)(*(longlong *)(param_1 + 0x70) + 0x10) + 0x78);

+    iVar8 = (**(code **)(*plVar9 + 0x40))

+                      (plVar9,&local_88,*(undefined4 *)(this + 0x128),

+                       (*(int *)(param_3 + 0xc) - *(int *)(param_3 + 4)) * *(int *)(this + 0x128));

+    if (iVar8 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::FailFast_Hr

+                (unaff_retaddr,0x1f9,"onecoreuap\\windows\\dwm\\dwmcore\\cursor\\cursorstate.cpp",

+                 iVar8);

+    }

+    uVar6 = **(int **)(param_1 + 0x70) - iVar13;

+    uVar7 = 0;

+    if (0 < (int)uVar6) {

+      uVar7 = uVar6;

+    }

+    uVar6 = *(int *)(param_3 + 8) - *(int *)param_3;

+    if (uVar7 < (uint)(*(int *)(param_3 + 8) - *(int *)param_3)) {

+      uVar6 = uVar7;

+    }

+    uVar7 = (*(int **)(param_1 + 0x70))[1] - local_d4;

+    uVar2 = 0;

+    if (0 < (int)uVar7) {

+      uVar2 = uVar7;

+    }

+    CVar4 = this[0x59];

+    uVar7 = *(int *)(param_3 + 0xc) - *(int *)(param_3 + 4);

+    if (uVar2 < (uint)(*(int *)(param_3 + 0xc) - *(int *)(param_3 + 4))) {

+      uVar7 = uVar2;

+    }

+    uStack_c8._4_4_ = *(undefined4 *)(this + 0x128);

+    uStack_b8 = *(undefined8 *)(this + 0x120);

+  }

+  else {

+    if (MVar15 == (MonitorData)0x0) {

+      if (param_5 == false) goto LAB_0;

+      if (local_a8 == uStack_a4) {

+        local_b0 = (longlong *)0x0;

+        local_98[0] = 0;

+        local_98[1] = 0;

+        uStack_90 = (_Ref_count_base *)CONCAT44(uStack_a4,local_a8);

+        lVar12 = *(longlong *)(*(longlong *)(param_1 + 0x70) + 0x10);

+        pcVar1 = *(code **)(*(longlong *)(lVar12 + 0x10) + 0x18);

+        wil::com_ptr_t<IMessageConversation,wil::err_returncode_policy>::reset

+                  ((com_ptr_t<IMessageConversation,wil::err_returncode_policy> *)&local_b0);

+        iVar8 = (*pcVar1)(lVar12 + 0x10,local_98,1,&local_b0);

+        if (iVar8 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::FailFast_Hr

+                    (unaff_retaddr,0x247,

+                     "onecoreuap\\windows\\dwm\\dwmcore\\cursor\\cursorstate.cpp",iVar8);

+        }

+        local_a0[0] = 0;

+        local_88 = 0;

+        local_d4 = 0;

+        iVar8 = (**(code **)(*local_b0 + 0x30))(local_b0,local_a0,&local_88);

+        if (iVar8 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::FailFast_Hr

+                    (unaff_retaddr,0x24c,

+                     "onecoreuap\\windows\\dwm\\dwmcore\\cursor\\cursorstate.cpp",iVar8);

+        }

+        iVar8 = (**(code **)(*local_b0 + 0x28))(local_b0,&local_d4);

+        if (iVar8 < 0) {

+                    /* WARNING: Subroutine does not return */

+          wil::details::in1diag3::FailFast_Hr

+                    (unaff_retaddr,0x24d,

+                     "onecoreuap\\windows\\dwm\\dwmcore\\cursor\\cursorstate.cpp",iVar8);

+        }

+        puVar14 = &local_d0;

+        local_c0 = **(undefined8 **)(param_1 + 0x70);

+        uStack_c8 = CONCAT44(local_d4,uStack_a4);

+        local_d0 = CONCAT44(local_a8,(this[0x59] != (CCursorState)0x0) + 1);

+        uStack_b8 = local_88;

+        wil::

+        com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+        ::

+        ~com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+                  ((com_ptr_t<Windows::Devices::Display::Core::IScanoutFactoryLockResultExtended,wil::err_returncode_policy>

+                    *)&local_b0);

+        MVar10 = (MonitorData)0x0;

+        goto LAB_0;

+      }

+    }

+    this_00 = (PaddedBitmap *)(this + 0x120);

+    uVar11 = uStack_a4;

+    if (uStack_a4 < local_a8) {

+      uVar11 = local_a8;

+    }

+    lVar5 = PaddedBitmap::Reset(this_00,uVar11,(bool)this[0x59]);

+    if (lVar5 < 0) {

+      return false;

+    }

+    local_98[1] = *(int *)(param_3 + 4) - *(int *)(param_2 + 4);

+    local_98[0] = *(int *)param_3 - *(int *)param_2;

+    uStack_90 = (_Ref_count_base *)

+                CONCAT44((*(int *)(param_3 + 0xc) - *(int *)(param_3 + 4)) + local_98[1],

+                         (*(int *)(param_3 + 8) - *(int *)param_3) + local_98[0]);

+    local_e8 = (ulonglong)(*(int *)(this + 0x128) * local_98[1]) + (ulonglong)local_98[0] * 4 +

+               *(longlong *)this_00;

+    plVar9 = (longlong *)(*(longlong *)(*(longlong *)(param_1 + 0x70) + 0x10) + 0x78);

+    iVar8 = (**(code **)(*plVar9 + 0x40))

+                      (plVar9,local_98,*(undefined4 *)(this + 0x128),

+                       *(int *)(this + 0x128) * (*(int *)(param_3 + 0xc) - *(int *)(param_3 + 4)) +

+                       local_98[0] * -4);

+    if (iVar8 < 0) {

+                    /* WARNING: Subroutine does not return */

+      wil::details::in1diag3::FailFast_Hr

+                (unaff_retaddr,0x230,"onecoreuap\\windows\\dwm\\dwmcore\\cursor\\cursorstate.cpp",

+                 iVar8);

+    }

+    uVar6 = **(uint **)(param_1 + 0x70);

+    uVar7 = (*(uint **)(param_1 + 0x70))[1];

+    CVar4 = this[0x59];

+    uStack_c8._4_4_ = *(undefined4 *)(this + 0x128);

+    uStack_b8 = *(undefined8 *)this_00;

+  }

+  local_c0 = CONCAT44(uVar7,uVar6);

+  uStack_c8 = CONCAT44(uStack_c8._4_4_,uVar11);

+  local_d0 = CONCAT44(uVar11,(CVar4 != (CCursorState)0x0) + 1);

+  puVar14 = &local_d0;

+  MVar10 = MVar15;

+LAB_0:

+  if ((g_disableHardwareCursors == false) &&

+     (iVar8 = NtHWCursorUpdatePointer(&local_78,puVar14), -1 < iVar8)) {

+    *(undefined4 *)(param_1 + 0x98) = 1;

+    *(undefined4 *)(param_1 + 0x8c) = *(undefined4 *)param_2;

+    *(undefined4 *)(param_1 + 0x90) = *(undefined4 *)(param_2 + 4);

+    param_1[0x9e] = MVar10;

+    return true;

+  }

+  local_98[0] = 0;

+  local_98[1] = 0;

+  uStack_90 = (_Ref_count_base *)0x0;

+  std::shared_ptr<CCursorState::ShapeData>::operator=

+            ((shared_ptr<CCursorState::ShapeData> *)(param_1 + 0x70),

+             (shared_ptr<class_CCursorState::ShapeData> *)local_98);

+  if (uStack_90 != (_Ref_count_base *)0x0) {

+    std::_Ref_count_base::_Decref(uStack_90);

+  }

+  return false;

+}

+
```

## `VertexTransfer::SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>,1,Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>`  (modified)

```diff
--- VertexTransfer::SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>,1,Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>
+++ VertexTransfer::SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>,1,Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>
@@ -1,2 +1,175 @@
-Failed to decompile dwmcore.dll - .ProgramDB VertexTransfer::SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>,1,Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_> : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+void VertexTransfer::

+     SimdTransfer<VertexTransfer::CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>,1,Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>

+               (undefined8 *param_1,undefined4 *param_2,CMILMatrix *param_3,longlong param_4)

+

+{

+  StridedSpan<Vertex_UVxN<VertexXYW_ColorDW>_const_> *pSVar1;

+  float fVar2;

+  uint uVar3;

+  StridedSpan<Vertex_UVxN<VertexXYW_ColorDW>_const_> *pSVar4;

+  uint uVar5;

+  undefined1 auVar6 [12];

+  float fVar7;

+  float fVar8;

+  float fVar9;

+  float fVar10;

+  ushort uVar11;

+  undefined1 (*pauVar12) [16];

+  int iVar13;

+  uint uVar14;

+  undefined1 (*pauVar15) [16];

+  longlong lVar16;

+  int iVar17;

+  longlong lVar18;

+  longlong lVar19;

+  undefined8 uVar20;

+  float extraout_XMM0_Dc;

+  float extraout_XMM0_Dd;

+  float fVar21;

+  float fVar22;

+  float fVar23;

+  float fVar24;

+  undefined1 auVar25 [16];

+  undefined1 auVar26 [16];

+  float fVar27;

+  float fVar28;

+  float fVar29;

+  float fVar30;

+  undefined4 uVar31;

+  undefined4 uVar32;

+  undefined4 uVar33;

+  undefined4 uVar34;

+  undefined4 local_b8;

+  undefined4 uStack_b4;

+  undefined4 uStack_b0;

+  undefined4 uStack_ac;

+  undefined4 local_a8;

+  undefined4 uStack_a4;

+  undefined4 uStack_a0;

+  undefined4 uStack_9c;

+  undefined4 local_98;

+  undefined4 uStack_94;

+  undefined4 uStack_90;

+  undefined4 uStack_8c;

+  undefined8 local_88;

+  undefined8 uStack_80;

+  

+  pSVar4 = (StridedSpan<Vertex_UVxN<VertexXYW_ColorDW>_const_> *)*param_1;

+  fVar2 = *(float *)((longlong)param_1 + 0x2c);

+  uVar31 = 0;

+  uVar32 = 0;

+  uVar33 = 0;

+  uVar34 = 0x3f800000;

+  if ((param_3 != (CMILMatrix *)0x0) && (param_4 != 0)) {

+    CalculateTBNFrameFrom3Vertices

+              ((D2D_POINT_2F *)&local_b8,pSVar4,(CMILMatrix *)(param_1 + 1),param_3);

+    uVar31 = local_b8;

+    uVar32 = uStack_b4;

+    uVar33 = uStack_b0;

+    uVar34 = uStack_ac;

+  }

+  uVar3 = *(uint *)((longlong)param_1 + 0x14);

+  uVar14 = 0;

+  local_a8 = *param_2;

+  uStack_a4 = param_2[1];

+  local_88 = *(undefined8 *)(param_2 + 0xc);

+  local_98 = param_2[4];

+  uStack_94 = param_2[5];

+  uStack_80 = 0;

+  uStack_a0 = local_a8;

+  uStack_9c = uStack_a4;

+  uStack_90 = local_98;

+  uStack_8c = uStack_94;

+  if (uVar3 != 0) {

+    do {

+      iVar13 = uVar14 + 1;

+      iVar17 = *(int *)(param_1 + 4);

+      lVar16 = param_1[3];

+      pauVar12 = (undefined1 (*) [16])((longlong)(int)(*(int *)(param_1 + 2) * uVar14) + param_1[1])

+      ;

+      uVar5 = SUB164(*pauVar12,0xc);

+      pauVar15 = (undefined1 (*) [16])((longlong)(iVar13 * *(int *)(param_1 + 2)) + param_1[1]);

+      lVar19 = (longlong)(int)(*(int *)(param_1 + 8) * uVar14) + param_1[7];

+      lVar18 = (longlong)(*(int *)(param_1 + 8) * iVar13) + param_1[7];

+      auVar25._0_4_ = (int)(((float)(uVar5 & 0xff) + 0.0) * 1.0 * fVar2);

+      auVar25._4_4_ = (int)(((float)(uVar5 & 0xff00) + 0.0) * 0.00390625 * fVar2);

+      auVar25._8_4_ = (int)(((float)(uVar5 & 0xff0000) + 0.0) * 1.5258789e-05 * fVar2);

+      auVar25._12_4_ =

+           (int)(((float)(int)(uVar5 & 0xff000000 ^ 0x80000000) + 2.1474836e+09) * 5.9604645e-08 *

+                fVar2);

+      packssdw(auVar25,auVar25);

+      CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>::Transform

+                ((CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_> *)&local_a8

+                 ,pauVar12,(int)(iVar17 * uVar14) + lVar16);

+      uVar5 = SUB164(*pauVar15,0xc);

+      auVar26._0_4_ = (int)(((float)(uVar5 & 0xff) + 0.0) * 1.0 * fVar2);

+      auVar26._4_4_ = (int)(((float)(uVar5 & 0xff00) + 0.0) * 0.00390625 * fVar2);

+      auVar26._8_4_ = (int)(((float)(uVar5 & 0xff0000) + 0.0) * 1.5258789e-05 * fVar2);

+      auVar26._12_4_ =

+           (int)(((float)(int)(uVar5 & 0xff000000 ^ 0x80000000) + 2.1474836e+09) * 5.9604645e-08 *

+                fVar2);

+      packssdw(auVar26,auVar26);

+      CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_>::Transform

+                ((CSimdScale2DOperator<Vertex_UVxN<VertexXYW_ColorDW_WorldXYZ_Tangent>_> *)&local_a8

+                 ,pauVar15,iVar17 * iVar13 + lVar16);

+      pSVar1 = pSVar4 + (ulonglong)(uVar14 >> 1) * 0x10;

+      fVar7 = *(float *)pSVar1;

+      fVar8 = *(float *)(pSVar1 + 4);

+      fVar9 = *(float *)(pSVar1 + 8);

+      fVar10 = *(float *)(pSVar1 + 0xc);

+      if (param_3 == (CMILMatrix *)0x0) {

+        fVar23 = 0.0;

+        fVar24 = 0.0;

+        uVar20 = DirectX::XMVectorPermute<0,1,6,7>(fVar7,0);

+        fVar21 = fVar9;

+        fVar22 = fVar10;

+        fVar29 = extraout_XMM0_Dc;

+        fVar30 = extraout_XMM0_Dd;

+      }

+      else {

+        auVar6 = *(undefined1 (*) [12])(param_3 + 0x10);

+        fVar27 = (float)*(undefined8 *)param_3;

+        fVar28 = (float)((ulonglong)*(undefined8 *)param_3 >> 0x20);

+        fVar21 = (float)*(undefined8 *)(param_3 + 0x30);

+        fVar22 = (float)((ulonglong)*(undefined8 *)(param_3 + 0x30) >> 0x20);

+        uVar20 = CONCAT44(fVar8 * auVar6._4_4_ + fVar22 + fVar7 * fVar28,

+                          fVar8 * auVar6._0_4_ + fVar21 + fVar7 * fVar27);

+        fVar29 = fVar8 * auVar6._8_4_ + *(float *)(param_3 + 0x38) + fVar7 * *(float *)(param_3 + 8)

+        ;

+        fVar30 = fVar8 * 0.0 + 0.0 + fVar7 * 0.0;

+        fVar23 = fVar10 * auVar6._8_4_ + *(float *)(param_3 + 0x38) +

+                 fVar9 * *(float *)(param_3 + 8);

+        fVar24 = fVar10 * 0.0 + 0.0 + fVar9 * 0.0;

+        fVar21 = fVar10 * auVar6._0_4_ + fVar21 + fVar9 * fVar27;

+        fVar22 = fVar10 * auVar6._4_4_ + fVar22 + fVar9 * fVar28;

+      }

+      *(undefined8 *)(lVar19 + 0x10) = uVar20;

+      *(float *)(lVar19 + 0x18) = fVar29;

+      *(float *)(lVar19 + 0x1c) = fVar30;

+      *(undefined4 *)(lVar19 + 0x20) = uVar31;

+      *(undefined4 *)(lVar19 + 0x24) = uVar32;

+      *(undefined4 *)(lVar19 + 0x28) = uVar33;

+      *(undefined4 *)(lVar19 + 0x2c) = uVar34;

+      *(float *)(lVar18 + 0x10) = fVar21;

+      *(float *)(lVar18 + 0x14) = fVar22;

+      *(float *)(lVar18 + 0x18) = fVar23;

+      *(float *)(lVar18 + 0x1c) = fVar24;

+      *(undefined4 *)(lVar18 + 0x20) = uVar31;

+      *(undefined4 *)(lVar18 + 0x24) = uVar32;

+      *(undefined4 *)(lVar18 + 0x28) = uVar33;

+      *(undefined4 *)(lVar18 + 0x2c) = uVar34;

+      uVar11 = DirectX::PackedVector::XMConvertFloatToHalf(fVar7);

+      *(ushort *)(lVar19 + 0x1c) = uVar11;

+      uVar11 = DirectX::PackedVector::XMConvertFloatToHalf(fVar8);

+      *(ushort *)(lVar19 + 0x1e) = uVar11;

+      uVar11 = DirectX::PackedVector::XMConvertFloatToHalf(fVar9);

+      *(ushort *)(lVar18 + 0x1c) = uVar11;

+      uVar11 = DirectX::PackedVector::XMConvertFloatToHalf(fVar10);

+      uVar14 = uVar14 + 2;

+      *(ushort *)(lVar18 + 0x1e) = uVar11;

+    } while (uVar14 < uVar3);

+  }

+  return;

+}

+
```

## `std::_Hash<std::_Umap_traits<unsigned___int64,Microsoft::WRL::ComPtr<BamoDataSourceProxy>,std::_Uhash_compare<unsigned___int64,std::hash<unsigned___int64>,std::equal_to<unsigned___int64>_>,std::allocator<std::pair<unsigned___int64_const_,Microsoft::WRL::ComPtr<BamoDataSourceProxy>_>_>,0>_>::erase<std::_List_iterator<std::_List_val<std::_List_simple_types<std::pair<unsigned___int64_const_,Microsoft::WRL::ComPtr<BamoDataSourceProxy>_>_>_>_>,0>`  (modified)

```diff
--- std::_Hash<std::_Umap_traits<unsigned___int64,Microsoft::WRL::ComPtr<BamoDataSourceProxy>,std::_Uhash_compare<unsigned___int64,std::hash<unsigned___int64>,std::equal_to<unsigned___int64>_>,std::allocator<std::pair<unsigned___int64_const_,Microsoft::WRL::ComPtr<BamoDataSourceProxy>_>_>,0>_>::erase<std::_List_iterator<std::_List_val<std::_List_simple_types<std::pair<unsigned___int64_const_,Microsoft::WRL::ComPtr<BamoDataSourceProxy>_>_>_>_>,0>
+++ wil::details::FeatureImpl<__WilFeatureTraits_Feature_CompositionMagnifier>::GetCachedFeatureEnabledState
@@ -1,2 +1,2 @@
-Failed to decompile dwmcore.dll - .ProgramDB std::_Hash<std::_Umap_traits<unsigned___int64,Microsoft::WRL::ComPtr<BamoDataSourceProxy>,std::_Uhash_compare<unsigned___int64,std::hash<unsigned___int64>,std::equal_to<unsigned___int64>_>,std::allocator<std::pair<unsigned___int64_const_,Microsoft::WRL::ComPtr<BamoDataSourceProxy>_>_>,0>_>::erase<std::_List_iterator<std::_List_val<std::_List_simple_types<std::pair<unsigned___int64_const_,Microsoft::WRL::ComPtr<BamoDataSourceProxy>_>_>_>_>,0> : Error: Decompile error: 
+Failed to decompile dwmcore.dll - .ProgramDB wil::details::FeatureImpl<__WilFeatureTraits_Feature_CompositionMagnifier>::GetCachedFeatureEnabledState : Error: Decompile error: 
 Marshaling error: Did not see expected closing element
```

## `<lambda_0e17c6475725e05fea3019b9a50aca17>::operator()`  (modified)

```diff
--- <lambda_0e17c6475725e05fea3019b9a50aca17>::operator()
+++ <lambda_c86591a200c1b6d6533406457ee005f9>::operator()
@@ -1,52 +1,111 @@
 

-undefined4 SetThreadDescription::operator()(undefined8 param_1)

+/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

+   guard_dispatch_icall */

+/* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

+

+long <lambda_c86591a200c1b6d6533406457ee005f9>::operator()

+               (undefined8 *param_1,CVisual *param_2,CVisualTree *param_3)

 

 {

-  undefined8 uVar1;

-  longlong in_RAX;

-  longlong in_RCX;

-  undefined8 *puVar2;

-  undefined4 unaff_EBX;

-  COffScreenRenderTarget *unaff_RSI;

-  byte *unaff_RDI;

-  byte *pbVar3;

-  undefined4 in_XMM0_Dc;

-  undefined4 in_XMM0_Dd;

+  CCaptureRenderTarget *this;

+  undefined8 *puVar1;

+  char *pcVar2;

+  CMILMatrix *pCVar3;

+  CDrawingContext *this_00;

+  bool bVar4;

+  long lVar5;

+  longlong lVar6;

+  CVisual *pCVar7;

+  uint uVar8;

+  void *unaff_retaddr;

+  undefined1 auStackY_c8 [32];

+  undefined8 local_88;

+  undefined8 uStack_80;

+  undefined4 local_78;

+  undefined4 local_74;

+  undefined8 local_60;

+  undefined8 uStack_58;

+  undefined8 local_50;

+  ulonglong local_48;

   

-  *unaff_RDI = *unaff_RDI ^ (byte)in_RCX;

-  *(char *)(in_RCX + 0x40) = *(char *)(in_RCX + 0x40) + (char)in_RAX;

-  *(int *)(unaff_RDI + 0x40) = (int)param_1;

-  *(int *)(unaff_RDI + 0x44) = (int)((ulonglong)param_1 >> 0x20);

-  *(undefined4 *)(unaff_RDI + 0x48) = in_XMM0_Dc;

-  *(undefined4 *)(unaff_RDI + 0x4c) = in_XMM0_Dd;

-  uVar1 = *(undefined8 *)(in_RCX + 0x58);

-  *(undefined8 *)(unaff_RDI + 0x50) = *(undefined8 *)(in_RCX + 0x50);

-  *(undefined8 *)(unaff_RDI + 0x58) = uVar1;

-  uVar1 = *(undefined8 *)(in_RCX + 0x68);

-  *(undefined8 *)(unaff_RDI + 0x60) = *(undefined8 *)(in_RCX + 0x60);

-  *(undefined8 *)(unaff_RDI + 0x68) = uVar1;

-  pbVar3 = unaff_RDI + in_RAX;

-  uVar1 = *(undefined8 *)(in_RCX + 0x78);

-  puVar2 = (undefined8 *)(in_RCX + in_RAX);

-  *(undefined8 *)(pbVar3 + -0x10) = *(undefined8 *)(in_RCX + 0x70);

-  *(undefined8 *)(pbVar3 + -8) = uVar1;

-  uVar1 = puVar2[1];

-  *(undefined8 *)pbVar3 = *puVar2;

-  *(undefined8 *)(pbVar3 + 8) = uVar1;

-  uVar1 = puVar2[3];

-  *(undefined8 *)(pbVar3 + 0x10) = puVar2[2];

-  *(undefined8 *)(pbVar3 + 0x18) = uVar1;

-  uVar1 = puVar2[5];

-  *(undefined8 *)(pbVar3 + 0x20) = puVar2[4];

-  *(undefined8 *)(pbVar3 + 0x28) = uVar1;

-  uVar1 = puVar2[7];

-  *(undefined8 *)(pbVar3 + 0x30) = puVar2[6];

-  *(undefined8 *)(pbVar3 + 0x38) = uVar1;

-  uVar1 = puVar2[9];

-  *(undefined8 *)(pbVar3 + 0x40) = puVar2[8];

-  *(undefined8 *)(pbVar3 + 0x48) = uVar1;

-  COffScreenRenderTarget::UpdateTransformAndTreeBounds(unaff_RSI);

-  COffScreenRenderTarget::ReleaseRenderTargets(unaff_RSI);

-  return unaff_EBX;

+  local_48 = __security_cookie ^ (ulonglong)auStackY_c8;

+  this = (CCaptureRenderTarget *)*param_1;

+  bVar4 = CVisualTree::_IsInTree(*(CVisualTree **)(this + 0x70),param_2,0);

+  if (!bVar4) {

+    puVar1 = (undefined8 *)param_1[1];

+    bVar4 = CVisualTree::_IsInTree((CVisualTree *)*puVar1,param_2,0);

+    if (!bVar4) {

+      return 0;

+    }

+    pcVar2 = (char *)param_1[2];

+    if (*pcVar2 == '\0') {

+      pCVar3 = (CMILMatrix *)param_1[4];

+      bVar4 = CCaptureRenderTarget::ComputeCursorTransform

+                        (this,param_2,*(CVisual **)param_1[3],(CVisualTree *)*puVar1,true,pCVar3);

+      if (bVar4) {

+        this_00 = *(CDrawingContext **)param_1[5];

+        lVar6 = (**(code **)(**(longlong **)param_1[6] + 0x90))();

+        lVar5 = CDrawingContext::BeginFrame

+                          (this_00,(IDeviceTarget *)(-(ulonglong)(lVar6 != 0) & lVar6 + 0x10U),

+                           pCVar3,(_D3DCOLORVALUE *)(this + 0x8c),4,(COverlayContext *)0x0);

+        if (lVar5 < 0) {

+          uVar8 = 0x1d3;

+          goto LAB_0;

+        }

+        puVar1 = (undefined8 *)param_1[5];

+        *pcVar2 = '\x01';

+        local_88 = 6;

+        uStack_80 = CONCAT44(uStack_80._4_4_,1);

+        lVar5 = CDrawingContext::PushRenderOptionsInternal

+                          ((CDrawingContext *)*puVar1,(CVisual *)0x0,(MilRenderOptions *)&local_88,

+                           true);

+        if (lVar5 < 0) {

+          uVar8 = 0x1dd;

+          goto LAB_0;

+        }

+        *(undefined1 *)param_1[7] = 1;

+      }

+    }

+    pCVar7 = (CVisual *)(param_3 + 0x50);

+    if (param_2 != *(CVisual **)(param_3 + 0x48)) {

+      pCVar7 = param_2 + 0x98;

+    }

+    local_60 = *(undefined8 *)pCVar7;

+    uStack_58 = *(undefined8 *)(pCVar7 + 8);

+    local_50 = *(undefined8 *)(pCVar7 + 0x10);

+    lVar5 = CDrawingContext::DrawVisualTree

+                      (*(CDrawingContext **)param_1[5],param_3,

+                       (TMil3DRect<float,TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded>,D3D_RECT_F,MilPointAndSizeF,RectUniqueness::NotNeeded>

+                        *)&local_60,(COcclusionContext *)0x0,0,false,param_2);

+    if (lVar5 < 0) {

+      uVar8 = 0x1e9;

+LAB_0:

+      wil::details::in1diag3::Return_Hr

+                (unaff_retaddr,uVar8,

+                 "onecoreuap\\windows\\dwm\\dwmcore\\engine\\capturerendertarget.cpp",lVar5);

+      return lVar5;

+    }

+    bVar4 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_DesktopDWMCursor>::

+            __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_DesktopDWMCursor> *)

+                                &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_DesktopDWMCursor>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_DesktopDWMCursor>::GetImpl(void)'

+                                 ::__l2::impl);

+    if (!bVar4) {

+      local_78 = 0;

+      local_74 = 0;

+      local_88 = 0;

+      uStack_80 = 0;

+      CMILMatrix::Transform3DBoundsHelper<0>

+                ((CMILMatrix *)param_1[4],

+                 (TMil3DRect<float,TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded>,D3D_RECT_F,MilPointAndSizeF,RectUniqueness::NotNeeded>

+                  *)&local_60,

+                 (TMil3DRect<float,class_TMilRect_<float,struct_D2D_RECT_F,struct_D3D_RECT_F,struct_D2D_POINTANDSIZE_F,struct_RectUniqueness::NotNeeded>,struct_D3D_RECT_F,struct_MilPointAndSizeF,struct_RectUniqueness::NotNeeded>

+                  *)&local_88);

+      CMergedRectBase<4>::Add

+                ((CMergedRectBase<4> *)(this + 0xab8),

+                 (TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded>

+                  *)&local_88);

+    }

+  }

+  return 0;

 }
```

## `<lambda_62ff84c7c0707752f96e4fa15018ccd2>::operator()`  (modified)

```diff
--- <lambda_62ff84c7c0707752f96e4fa15018ccd2>::operator()
+++ <lambda_f933d7d2718463afaa895b0fee38e9f6>::operator()
@@ -1,135 +1,104 @@
 

 /* WARNING: Function: __security_check_cookie replaced with injection: security_check_cookie */

-/* WARNING: Function: _guard_dispatch_icall$thunk$10345483385596137414 replaced with injection:

-   guard_dispatch_icall */

 

-long ResumeThread::operator()

-               (ulonglong param_1,ulonglong param_2,CMILMatrix *param_3,undefined8 param_4,

-               COverlayContext *param_5,undefined8 param_6,undefined8 param_7,undefined8 param_8,

-               undefined8 param_9,CVisualTree *param_10,longlong *param_11,CVisualTree *param_12,

-               undefined8 param_13,CExcludeVisualReference *param_14)

+undefined8

+<lambda_f933d7d2718463afaa895b0fee38e9f6>::operator()(undefined8 *param_1,CVisual *param_2)

 

 {

-  uint uVar1;

-  undefined8 uVar2;

-  bool bVar3;

-  bool bVar4;

-  long lVar5;

-  Enum EVar6;

-  longlong lVar7;

-  char *in_RAX;

-  uint uVar8;

-  CVisual *unaff_RBX;

-  undefined8 *unaff_RBP;

-  CExcludeVisualReference *unaff_RSI;

-  longlong unaff_RDI;

-  CVisual *pCVar9;

-  CDrawingContext *unaff_R12;

-  CExcludeVisualReference *unaff_R15;

+  CCaptureRenderTarget *this;

+  longlong *plVar1;

+  CVisualTree *pCVar2;

+  char *pcVar3;

+  byte bVar4;

+  bool bVar5;

+  byte bVar6;

+  D2D_RECT_F *pDVar7;

+  CVisualTree *pCVar8;

+  undefined1 auStackY_c8 [32];

+  CMILMatrix local_98 [64];

+  undefined4 local_58;

+  undefined8 local_48;

+  undefined8 uStack_40;

+  ulonglong local_38;

   

-  *in_RAX = *in_RAX - (char)in_RAX;

-  do {

-    lVar5 = CDrawingContext::BeginFrame

-                      (unaff_R12,(IDeviceTarget *)(param_2 & param_1),param_3,(_D3DCOLORVALUE *)0x0,

-                       2,param_5);

-    if (lVar5 < 0) {

-      wil::details::in1diag3::Return_Hr

-                ((void *)unaff_RBP[0xf],0x252,

-                 "onecoreuap\\windows\\dwm\\dwmcore\\engine\\global\\magnifierrendertarget.cpp",

-                 lVar5);

-      return lVar5;

+  local_38 = __security_cookie ^ (ulonglong)auStackY_c8;

+  this = (CCaptureRenderTarget *)*param_1;

+  if ((this[0xa30] == (CCaptureRenderTarget)0x0) &&

+     (bVar5 = CVisualTree::_IsInTree(*(CVisualTree **)(this + 0x70),param_2,0), !bVar5)) {

+    plVar1 = (longlong *)param_1[1];

+    bVar5 = CVisualTree::_IsInTree((CVisualTree *)*plVar1,param_2,0);

+    if (bVar5) {

+      bVar5 = wil::details::FeatureImpl<__WilFeatureTraits_Feature_DesktopDWMCursor>::

+              __private_IsEnabled((FeatureImpl<__WilFeatureTraits_Feature_DesktopDWMCursor> *)

+                                  &`private:_static_class_wil::details::FeatureImpl<__WilFeatureTraits_Feature_DesktopDWMCursor>&___ptr64___cdecl_wil::Feature<__WilFeatureTraits_Feature_DesktopDWMCursor>::GetImpl(void)'

+                                   ::__l2::impl);

+      if (bVar5) {

+        pCVar2 = (CVisualTree *)*plVar1;

+        pCVar8 = pCVar2 + 0x50;

+        if (param_2 != *(CVisual **)(pCVar2 + 0x48)) {

+          pCVar8 = (CVisualTree *)(param_2 + 0x98);

+        }

+        bVar5 = *(float *)(pCVar8 + 0x14) < *(float *)(pCVar8 + 0x10) ||

+                *(float *)(pCVar8 + 0x14) == *(float *)(pCVar8 + 0x10);

+        bVar4 = bVar5 + 1;

+        if (*(float *)pCVar8 <= *(float *)(pCVar8 + 8) && *(float *)(pCVar8 + 8) != *(float *)pCVar8

+           ) {

+          bVar4 = bVar5;

+        }

+        bVar6 = bVar4 + 1;

+        if (*(float *)(pCVar8 + 4) <= *(float *)(pCVar8 + 0xc) &&

+            *(float *)(pCVar8 + 0xc) != *(float *)(pCVar8 + 4)) {

+          bVar6 = bVar4;

+        }

+        if (bVar6 < 2) {

+          local_58 = 0;

+          bVar5 = CCaptureRenderTarget::ComputeCursorTransform

+                            (this,param_2,*(CVisual **)param_1[2],pCVar2,false,local_98);

+          if (bVar5) {

+            local_48 = 0;

+            uStack_40 = 0;

+            CMILMatrix::Transform2DBoundsHelper<0>

+                      (local_98,(D2D_RECT_F *)pCVar8,(D2D_RECT_F *)&local_48);

+            CTargetDirtyBase<8>::AddDirtyRect

+                      ((CTargetDirtyBase<8> *)(this + 0x140),

+                       (TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded>

+                        *)&local_48);

+            CMergedRectBase<4>::Add

+                      ((CMergedRectBase<4> *)(this + 0xab8),

+                       (TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded>

+                        *)&local_48);

+          }

+          else {

+            CTargetDirtyBase<8>::SetFullDirty((CTargetDirtyBase<8> *)(this + 0x140));

+          }

+        }

+      }

+      else {

+        pcVar3 = (char *)param_1[3];

+        local_58 = 0;

+        if (*pcVar3 == '\0') {

+          bVar5 = CCaptureRenderTarget::ComputeCursorTransform

+                            (this,param_2,*(CVisual **)param_1[2],(CVisualTree *)*plVar1,true,

+                             local_98);

+          if (!bVar5) {

+            CTargetDirtyBase<8>::SetFullDirty((CTargetDirtyBase<8> *)(this + 0x140));

+          }

+          *pcVar3 = '\x01';

+        }

+        pDVar7 = (D2D_RECT_F *)(*plVar1 + 0x50);

+        if (param_2 != *(CVisual **)(*plVar1 + 0x48)) {

+          pDVar7 = (D2D_RECT_F *)(param_2 + 0x98);

+        }

+        local_48 = 0;

+        uStack_40 = 0;

+        CMILMatrix::Transform2DBoundsHelper<0>(local_98,pDVar7,(D2D_RECT_F *)&local_48);

+        CTargetDirtyBase<8>::AddDirtyRect

+                  ((CTargetDirtyBase<8> *)(this + 0x140),

+                   (TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded>

+                    *)&local_48);

+      }

     }

-    bVar3 = true;

-    do {

-      uVar1 = *(uint *)(unaff_RBX + 0x60);

-      EVar6 = CVisual::GetResampleMode(unaff_RBX);

-      *(uint *)(unaff_RBX + 0x60) = uVar1 & 0xff1fffff | 0x2100000;

-      CVisual::SetResampleMode(unaff_RBX,*(Enum *)(unaff_RDI + 0xc0));

-      pCVar9 = (CVisual *)(param_10 + 0x50);

-      if (unaff_RBX != *(CVisual **)(param_10 + 0x48)) {

-        pCVar9 = unaff_RBX + 0x98;

-      }

-      uVar2 = *(undefined8 *)(pCVar9 + 8);

-      unaff_RBP[4] = *(undefined8 *)pCVar9;

-      unaff_RBP[5] = uVar2;

-      unaff_RBP[6] = *(undefined8 *)(pCVar9 + 0x10);

-      lVar5 = CDrawingContext::DrawVisualTree

-                        (unaff_R12,param_10,

-                         (TMil3DRect<float,TMilRect_<float,D2D_RECT_F,D3D_RECT_F,D2D_POINTANDSIZE_F,RectUniqueness::NotNeeded>,D3D_RECT_F,MilPointAndSizeF,RectUniqueness::NotNeeded>

-                          *)(unaff_RBP + 4),(COcclusionContext *)0x0,0,false,unaff_RBX);

-      uVar8 = ((int)(uVar1 << 8) >> 0x1c) << 0x14;

-      if (lVar5 < 0) {

-        wil::details::in1diag3::Return_Hr

-                  ((void *)unaff_RBP[0xf],0x26e,

-                   "onecoreuap\\windows\\dwm\\dwmcore\\engine\\global\\magnifierrendertarget.cpp",

-                   lVar5);

-        *(uint *)(unaff_RBX + 0x60) =

-             *(uint *)(unaff_RBX + 0x60) & 0x800fffff ^ uVar8 & 0xf00000 ^ uVar1 & 0x7f000000;

-        CVisual::SetResampleMode(unaff_RBX,EVar6);

-        if (!bVar3) {

-          return lVar5;

-        }

-        CDrawingContext::EndFrame(unaff_R12);

-        return lVar5;

-      }

-      *(uint *)(unaff_RBX + 0x60) =

-           (*(uint *)(unaff_RBX + 0x60) ^ uVar8) & 0xff0fffff ^

-           (uVar1 ^ *(uint *)(unaff_RBX + 0x60)) & 0x7f000000 ^ uVar8;

-      CVisual::SetResampleMode(unaff_RBX,EVar6);

-      do {

-        unaff_R15 = unaff_R15 + 0x20;

-        if (unaff_R15 == unaff_RSI) {

-          if (bVar3) {

-            CDrawingContext::EndFrame(unaff_R12);

-          }

-          do {

-            param_8._4_4_ = param_8._4_4_ + 1;

-            if (*(uint *)(unaff_RDI + 0xa50) <= param_8._4_4_) {

-              return 0;

-            }

-            bVar3 = false;

-            param_11 = *(longlong **)

-                        (*(longlong *)(unaff_RDI + 0xa38) + (ulonglong)param_8._4_4_ * 8);

-            unaff_R15 = param_14;

-          } while (param_14 == unaff_RSI);

-        }

-        unaff_RBX = CExcludeVisualReference::GetVisualNoRef(unaff_R15);

-        bVar4 = CVisualTree::_IsInTree(param_12,unaff_RBX,0);

-      } while ((!bVar4) ||

-              (bVar4 = CVisualTree::_IsInTree(*(CVisualTree **)(unaff_RDI + 0x70),unaff_RBX,0),

-              bVar4));

-      param_10 = *(CVisualTree **)(unaff_R15 + 0x18);

-      *(undefined4 *)(unaff_RBP + -8) = 0;

-      lVar5 = CVisual::GetWorldTransform

-                        (unaff_RBX,param_12,3,(CMILMatrix *)(unaff_RBP + -0x10),(bool *)0x0,

-                         (CMILMatrix *)0x0);

-      if (lVar5 < 0) {

-        wil::details::in1diag3::Return_Hr

-                  ((void *)unaff_RBP[0xf],0x246,

-                   "onecoreuap\\windows\\dwm\\dwmcore\\engine\\global\\magnifierrendertarget.cpp",

-                   lVar5);

-        if (!bVar3) {

-          return lVar5;

-        }

-        CDrawingContext::EndFrame(unaff_R12);

-        return lVar5;

-      }

-      unaff_RBP[-6] = unaff_RBP[-0x10];

-      unaff_RBP[-5] = unaff_RBP[-0xf];

-      unaff_RBP[-4] = unaff_RBP[-0xe];

-      unaff_RBP[-3] = unaff_RBP[-0xd];

-      unaff_RBP[-2] = unaff_RBP[-0xc];

-      unaff_RBP[-1] = unaff_RBP[-0xb];

-      *unaff_RBP = unaff_RBP[-10];

-      unaff_RBP[1] = unaff_RBP[-9];

-      *(undefined4 *)(unaff_RBP + 2) = *(undefined4 *)(unaff_RBP + -8);

-      CMILMatrix::Multiply((CMILMatrix *)(unaff_RBP + -6),(CMILMatrix *)(unaff_RDI + 0xd8));

-    } while (bVar3);

-    lVar7 = (**(code **)(*param_11 + 0x90))();

-    param_3 = (CMILMatrix *)(unaff_RBP + -6);

-    param_1 = lVar7 + 0x10;

-    param_2 = -(ulonglong)(lVar7 != 0);

-    param_5 = (COverlayContext *)0x0;

-  } while( true );

+  }

+  return 0;

 }
```

## `CCursorState::GetMonitorData`  (modified)

```diff
--- CCursorState::GetMonitorData
+++ CCursorState::ForceSoftwareCursor
@@ -1,2 +1,21 @@
-Failed to decompile dwmcore.dll - .ProgramDB CCursorState::GetMonitorData : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: bool __cdecl CCursorState::ForceSoftwareCursor(struct _LUID,unsigned int) __ptr64 */

+

+bool __thiscall CCursorState::ForceSoftwareCursor(CCursorState *this,_LUID param_1,uint param_2)

+

+{

+  bool bVar1;

+  MonitorData *pMVar2;

+  CCursorManager *this_00;

+  

+  pMVar2 = GetMonitorData(this,param_1,param_2);

+  bVar1 = false;

+  if (pMVar2 != (MonitorData *)0x0) {

+    this_00 = &g_CursorManager;

+    EnterCriticalSection((LPCRITICAL_SECTION)&g_CursorManager);

+    bVar1 = ForceSoftwareShape((CCursorState *)this_00,pMVar2);

+    LeaveCriticalSection((LPCRITICAL_SECTION)&g_CursorManager);

+  }

+  return bVar1;

+}

+
```

## `CComposition::AddCursorVisual`  (modified)

```diff
--- CComposition::AddCursorVisual
+++ CGlobalComposition::RegisterCursorVisual
@@ -1,2 +1,27 @@
-Failed to decompile dwmcore.dll - .ProgramDB CComposition::AddCursorVisual : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: void __cdecl CGlobalComposition::RegisterCursorVisual(class CCursorVisual * __ptr64)

+   __ptr64 */

+

+void __thiscall

+CGlobalComposition::RegisterCursorVisual(CGlobalComposition *this,CCursorVisual *param_1)

+

+{

+  __uint64 *p_Var1;

+  CCursorVisual *local_res10 [3];

+  

+  p_Var1 = *(__uint64 **)(this + 0x19b0);

+  local_res10[0] = param_1;

+  if (p_Var1 == *(__uint64 **)(this + 0x19b8)) {

+    std::vector<unsigned___int64,std::allocator<unsigned___int64>_>::

+    _Emplace_reallocate<unsigned___int64_const&___ptr64>

+              ((vector<unsigned___int64,std::allocator<unsigned___int64>_> *)(this + 0x19a8),p_Var1,

+               (__uint64 *)local_res10);

+  }

+  else {

+    *p_Var1 = (__uint64)param_1;

+    *(longlong *)(this + 0x19b0) = *(longlong *)(this + 0x19b0) + 8;

+  }

+  CComposition::AddCursorVisual((CComposition *)this,(CVisual *)local_res10[0]);

+  return;

+}

+
```

## `DataProviderManager::GetDataSourceProxy`  (modified)

```diff
--- DataProviderManager::GetDataSourceProxy
+++ DataProviderManager::TryRegisterReaderForDataSource
@@ -1,2 +1,26 @@
-Failed to decompile dwmcore.dll - .ProgramDB DataProviderManager::GetDataSourceProxy : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* public: long __cdecl DataProviderManager::TryRegisterReaderForDataSource(unsigned

+   __int64,unsigned __int64,class CDataSourceReader * __ptr64,bool * __ptr64) __ptr64 */

+

+long __thiscall

+DataProviderManager::TryRegisterReaderForDataSource

+          (DataProviderManager *this,__uint64 param_1,__uint64 param_2,CDataSourceReader *param_3,

+          bool *param_4)

+

+{

+  long lVar1;

+  BamoDataSourceProxy *this_00;

+  void *unaff_retaddr;

+  

+  this_00 = GetDataSourceProxy(this,param_1,param_2);

+  *param_4 = this_00 != (BamoDataSourceProxy *)0x0;

+  if ((this_00 != (BamoDataSourceProxy *)0x0) &&

+     (lVar1 = DataSourceProxy::RegisterReader((DataSourceProxy *)this_00,param_3), lVar1 < 0)) {

+    wil::details::in1diag3::Return_Hr

+              (unaff_retaddr,0x18d,

+               "onecoreuap\\windows\\dwm\\dwmcore\\engine\\dataprovidermanager.cpp",lVar1);

+    return lVar1;

+  }

+  return 0;

+}

+
```

## `CCursorState::SetHardwareShapeAndPosition`  (modified)

```diff
--- CCursorState::SetHardwareShapeAndPosition
+++ CCursorState::InputThread_UpdateHardwareCursor
@@ -1,2 +1,47 @@
-Failed to decompile dwmcore.dll - .ProgramDB CCursorState::SetHardwareShapeAndPosition : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* private: bool __cdecl CCursorState::InputThread_UpdateHardwareCursor(class

+   CCursorState::MonitorData * __ptr64,enum _HWCURSOR_UPDATE_TYPE) __ptr64 */

+

+bool __thiscall

+CCursorState::InputThread_UpdateHardwareCursor

+          (CCursorState *this,MonitorData *param_1,_HWCURSOR_UPDATE_TYPE param_2)

+

+{

+  bool bVar1;

+  MonitorData *this_00;

+  undefined8 local_28;

+  undefined8 uStack_20;

+  undefined8 local_18;

+  undefined8 uStack_10;

+  

+  if (*(int *)(param_1 + 0x98) == 2) {

+    bVar1 = false;

+  }

+  else {

+    local_18 = 0;

+    uStack_10 = 0;

+    local_28 = 0;

+    uStack_20 = 0;

+    this_00 = param_1;

+    bVar1 = MonitorData::CalcShapeRects

+                      (param_1,(D2D_POINT_2F *)(this + 0x38),

+                       (TMilRect_<int,tagRECT,D2D_POINTANDSIZE_L,Mil3DRectL,RectUniqueness::_CMilRectL_>

+                        *)&local_18,

+                       (TMilRect_<int,tagRECT,D2D_POINTANDSIZE_L,Mil3DRectL,RectUniqueness::_CMilRectL_>

+                        *)&local_28);

+    if (bVar1) {

+      bVar1 = SetHardwareShapeAndPosition

+                        (this,param_1,

+                         (TMilRect_<int,tagRECT,D2D_POINTANDSIZE_L,Mil3DRectL,RectUniqueness::_CMilRectL_>

+                          *)&local_18,

+                         (TMilRect_<int,tagRECT,D2D_POINTANDSIZE_L,Mil3DRectL,RectUniqueness::_CMilRectL_>

+                          *)&local_28,param_2,false);

+    }

+    else {

+      HideHardwareShape((CCursorState *)this_00,param_1);

+      bVar1 = true;

+    }

+  }

+  return bVar1;

+}

+
```

## `CCaptureRenderTarget::ComputeCursorToDeviceTransform`  (modified)

```diff
--- CCaptureRenderTarget::ComputeCursorToDeviceTransform
+++ CCaptureRenderTarget::ComputeCursorTransform
@@ -1,2 +1,95 @@
-Failed to decompile dwmcore.dll - .ProgramDB CCaptureRenderTarget::ComputeCursorToDeviceTransform : Error: Decompile error: 
-Marshaling error: Did not see expected closing element+

+/* protected: bool __cdecl CCaptureRenderTarget::ComputeCursorTransform(class CVisual *

+   __ptr64,class CVisual * __ptr64,class CVisualTree * __ptr64,bool,class CMILMatrix * __ptr64)

+   __ptr64 */

+

+bool __thiscall

+CCaptureRenderTarget::ComputeCursorTransform

+          (CCaptureRenderTarget *this,CVisual *param_1,CVisual *param_2,CVisualTree *param_3,

+          bool param_4,CMILMatrix *param_5)

+

+{

+  long lVar1;

+  CMILMatrix *pCVar2;

+  uint uVar3;

+  undefined8 local_f8;

+  undefined8 uStack_f0;

+  undefined8 local_e8;

+  undefined8 uStack_e0;

+  undefined8 local_d8;

+  undefined8 uStack_d0;

+  undefined8 local_c8;

+  undefined8 uStack_c0;

+  undefined4 local_b8;

+  undefined8 local_a8;

+  undefined8 uStack_a0;

+  undefined8 local_98;

+  undefined8 uStack_90;

+  undefined8 local_88;

+  undefined8 uStack_80;

+  undefined8 local_78;

+  undefined8 uStack_70;

+  undefined4 local_68;

+  undefined8 local_58;

+  undefined8 uStack_50;

+  undefined8 local_48;

+  undefined8 uStack_40;

+  undefined8 local_38;

+  undefined8 uStack_30;

+  undefined8 local_28;

+  undefined8 uStack_20;

+  undefined4 local_18;

+  

+  local_b8 = 0;

+  local_68 = 0;

+  lVar1 = CVisual::GetWorldTransform

+                    (param_2,param_3,0,(CMILMatrix *)&local_f8,(bool *)0x0,(CMILMatrix *)0x0);

+  if (lVar1 < 0) {

+    uVar3 = 0x52b;

+  }

+  else {

+    local_58 = local_f8;

+    uStack_50 = uStack_f0;

+    local_48 = local_e8;

+    uStack_40 = uStack_e0;

+    local_38 = local_d8;

+    uStack_30 = uStack_d0;

+    local_28 = local_c8;

+    uStack_20 = uStack_c0;

+    local_18 = local_b8;

+    CMILMatrix::Invert((CMILMatrix *)&local_58);

+    lVar1 = CVisual::GetWorldTransform

+                      (param_1,param_3,0,(CMILMatrix *)&local_a8,(bool *)0x0,(CMILMatrix *)0x0);

+    if (-1 < lVar1) {

+      local_f8 = local_a8;

+      uStack_f0 = uStack_a0;

+      local_b8 = local_68;

+      local_e8 = local_98;

+      uStack_e0 = uStack_90;

+      local_d8 = local_88;

+      uStack_d0 = uStack_80;

+      local_c8 = local_78;

+      uStack_c0 = uStack_70;

+      CMILMatrix::Multiply((CMILMatrix *)&local_f8,(CMILMatrix *)&local_58);

+      *(undefined8 *)param_5 = local_f8;

+      *(undefined8 *)(param_5 + 8) = uStack_f0;

+      *(undefined8 *)(param_5 + 0x10) = local_e8;

+      *(undefined8 *)(param_5 + 0x18) = uStack_e0;

+      *(undefined8 *)(param_5 + 0x20) = local_d8;

+      *(undefined8 *)(param_5 + 0x28) = uStack_d0;

+      *(undefined8 *)(param_5 + 0x30) = local_c8;

+      *(undefined8 *)(param_5 + 0x38) = uStack_c0;

+      *(undefined4 *)(param_5 + 0x40) = local_b8;

+      if ((param_4) && (*(CTransform3D **)(this + 200) != (CTransform3D *)0x0)) {

+        pCVar2 = CTransform3D::GetMatrix(*(CTransform3D **)(this + 200),(D2D_SIZE_F *)0x0);

+        CMILMatrix::Multiply(param_5,pCVar2);

+      }

+      goto LAB_0;

+    }

+    uVar3 = 0x530;

+  }

+  MilInstrumentationCheckHR_MaybeFailFast(0x14,(long *)0x0,0,lVar1,uVar3,(void *)0x0);

+LAB_0:

+  return (bool)((byte)((uint)lVar1 >> 0x1f) ^ 1);

+}

+
```

## `API-MS-WIN-CORE-HEAP-L1-1-0.DLL::GetProcessHeap`  (modified)

```diff
--- API-MS-WIN-CORE-HEAP-L1-1-0.DLL::GetProcessHeap calling
+++ API-MS-WIN-CORE-HEAP-L1-1-0.DLL::GetProcessHeap calling
@@ -20,0 +21 @@
+CComposition::CleanTrees
@@ -85 +85,0 @@
-CPreWalkVisual::ProcessVisuals
@@ -241,0 +242 @@
+std::make_unique<CPreComputeContext,0>
```

## `API-MS-WIN-CORE-SYNCH-L1-1-0.DLL::EnterCriticalSection`  (modified)

```diff
--- API-MS-WIN-CORE-SYNCH-L1-1-0.DLL::EnterCriticalSection calling
+++ API-MS-WIN-CORE-SYNCH-L1-1-0.DLL::EnterCriticalSection calling
@@ -35,0 +36 @@
+CCursorState::ForceSoftwareCursor
@@ -45,0 +47,2 @@
+CCursorState::SetUpdateEvent
+CCursorState::UpdateHardwareCursor
@@ -96 +98,0 @@
-COverlayContext::ForceSoftwareCursor
@@ -98 +99,0 @@
-COverlayContext::UpdateHardwareCursor
```

## `API-MS-WIN-CORE-HEAP-L1-1-0.DLL::HeapAlloc`  (modified)

```diff
--- API-MS-WIN-CORE-HEAP-L1-1-0.DLL::HeapAlloc calling
+++ API-MS-WIN-CORE-HEAP-L1-1-0.DLL::HeapAlloc calling
@@ -6,0 +7 @@
+CComposition::CleanTrees
@@ -107,0 +109 @@
+std::make_unique<CPreComputeContext,0>
```

## `API-MS-WIN-CORE-HANDLE-L1-1-0.DLL::CloseHandle`  (modified)

```diff
--- API-MS-WIN-CORE-HANDLE-L1-1-0.DLL::CloseHandle calling
+++ API-MS-WIN-CORE-HANDLE-L1-1-0.DLL::CloseHandle calling
@@ -9,0 +10 @@
+CCursorVisualGeneratedT<CCursorVisual,CVisual>::SetUpdateEvent
```

## `API-MS-WIN-CORE-SYNCH-L1-1-0.DLL::AcquireSRWLockExclusive`  (modified)

```diff
--- API-MS-WIN-CORE-SYNCH-L1-1-0.DLL::AcquireSRWLockExclusive calling
+++ API-MS-WIN-CORE-SYNCH-L1-1-0.DLL::AcquireSRWLockExclusive calling
@@ -60 +59,0 @@
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_1732988217>::GetCachedFeatureEnabledState
@@ -64 +63 @@
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_3909349690>::GetCachedFeatureEnabledState
+wil::details::FeatureImpl<__WilFeatureTraits_Feature_4253016379>::GetCachedFeatureEnabledState
@@ -67 +65,0 @@
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_Capture_DirtyRegionOcclusion>::GetCachedFeatureEnabledState
@@ -70 +67,0 @@
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_Capture_FullDirtyOnExclusionListChange>::GetCachedFeatureEnabledState
@@ -74 +70,0 @@
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_DDisplay_AggCheckMpo>::GetCachedFeatureEnabledState
@@ -77,5 +72,0 @@
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_DisplayBugBundle_2504>::GetCachedFeatureEnabledState
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_DisplayBugBundle_2506>::GetCachedFeatureEnabledState
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_DisplayBugBundle_2507>::GetCachedFeatureEnabledState
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_DisplayBugBundle_2508>::GetCachedFeatureEnabledState
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_DisplayBugBundle_2509>::GetCachedFeatureEnabledState
@@ -87 +77,0 @@
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_GatePerf>::GetCachedFeatureEnabledState
@@ -93 +82,0 @@
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_Standalone_26_02_NonSec>::GetCachedFeatureEnabledState
@@ -99 +87,0 @@
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_TestGateImp>::GetCachedFeatureEnabledState
@@ -102 +89,0 @@
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_TestLoc1Perf>::GetCachedFeatureEnabledState
@@ -105 +91,0 @@
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_TouchpadPublicApis3>::GetCachedFeatureEnabledState
@@ -108,4 +93,0 @@
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_UxLabTest>::GetCachedFeatureEnabledState
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_UxPerfImp>::GetCachedFeatureEnabledState
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_ValAccTest>::GetCachedFeatureEnabledState
-wil::details::FeatureImpl<__WilFeatureTraits_Feature_ValLabTest>::GetCachedFeatureEnabledState
```

## `API-MS-WIN-CORE-SYNCH-L1-1-0.DLL::LeaveCriticalSection`  (modified)

```diff
--- API-MS-WIN-CORE-SYNCH-L1-1-0.DLL::LeaveCriticalSection calling
+++ API-MS-WIN-CORE-SYNCH-L1-1-0.DLL::LeaveCriticalSection calling
@@ -29,0 +30 @@
+CCursorState::ForceSoftwareCursor
@@ -32,0 +34 @@
+CCursorState::UpdateHardwareCursor
@@ -64 +65,0 @@
-COverlayContext::ForceSoftwareCursor
@@ -66 +66,0 @@
-COverlayContext::UpdateHardwareCursor
@@ -78 +78 @@
-FUN_180078320
+FUN_180024ef0
```
