// // sub_DD8E00 from 0xdd8e00 to 0xdd9788 (2440 bytes) // // 2 xrefs: // > sub_DDA77C @ 0xdda798 // > sub_DDA77C @ 0xdda800 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:09:05 +0000 // _BYTE *__fastcall sub_DD8E00(__int64 a1, __int64 a2) { int v4; // w0 int v5; // w21 char v6; // w27 unsigned __int8 **v7; // x22 char v8; // w24 _BYTE *v9; // x1 __int64 *v10; // x2 size_t v11; // x25 __int64 v12; // x21 unsigned __int64 v13; // x26 __int64 v14; // x3 void *v15; // x21 void *v16; // x19 __int64 *v17; // x21 __int64 v18; // x0 __int64 v19; // x2 __int64 v20; // x0 _QWORD *v21; // x25 _QWORD *v22; // x21 _QWORD *v23; // x0 _QWORD *v24; // x0 __int64 *v25; // x27 _QWORD *v26; // x28 __int64 v27; // x0 __int64 v28; // x4 __int64 v29; // x0 _QWORD *v30; // x19 _BYTE *result; // x0 unsigned __int64 v32; // x0 __int64 *v33; // x0 __int64 *v34; // x0 __int64 *v35; // x0 _BYTE **v36; // x24 _BYTE *v37; // x3 int v38; // w0 _BYTE *v39; // x1 char v40; // w2 __int64 v41; // x27 __int64 v42; // x2 __int64 v43; // x27 __int64 v44; // x1 __int64 v45; // x27 __int64 v46; // x3 __int64 v47; // x27 __int64 v48; // x2 __int64 v49; // x27 __int64 v50; // x1 __int64 v51; // x3 __int64 v52; // x27 __int64 v53; // x1 __int64 v54; // x3 __int64 v55; // x27 __int64 v56; // x1 __int64 v57; // x27 __int64 v58; // x3 __int64 v59; // x27 __int64 v60; // x2 int v61; // w0 _BYTE *v62; // x3 int v63; // w7 __int64 v64; // x2 __int64 v65; // x0 _BYTE *v66; // x3 int v67; // w0 __int64 *v68; // [xsp+68h] [xbp+68h] _BYTE *v69; // [xsp+78h] [xbp+78h] BYREF _BYTE *v70; // [xsp+80h] [xbp+80h] if ( a2 && *(_BYTE *)(a2 + 1) != 1 ) sub_DBE628(a1, (__int64)"Step has to be applied to node set"); v4 = *(_DWORD *)(a1 + 40); if ( v4 != 22 ) { if ( v4 == 23 ) { sub_DBDEA0((unsigned __int8 **)(a1 + 8)); result = (_BYTE *)sub_DBF120(a1); v39 = result; if ( result ) { *result = 57; result[1] = 1; v40 = 12; LABEL_43: v39[2] = v40; *((_QWORD *)v39 + 1) = a2; v39[3] = 2; *((_QWORD *)v39 + 2) = 0; *((_QWORD *)v39 + 3) = 0; *((_QWORD *)v39 + 4) = 0; return result; } } else { if ( v4 != 24 ) { v69 = nullptr; v70 = nullptr; v5 = 0; v6 = 3; if ( v4 != 20 ) goto LABEL_8; goto LABEL_34; } sub_DBDEA0((unsigned __int8 **)(a1 + 8)); result = (_BYTE *)sub_DBF120(a1); v39 = result; if ( result ) { *result = 57; result[1] = 1; v40 = 9; goto LABEL_43; } } return nullptr; } v5 = 1; v6 = 2; sub_DBDEA0((unsigned __int8 **)(a1 + 8)); v69 = nullptr; v4 = *(_DWORD *)(a1 + 40); v70 = nullptr; if ( v4 != 20 ) { LABEL_8: if ( v4 == 9 ) { v7 = (unsigned __int8 **)(a1 + 8); v8 = 7; sub_DBDEA0((unsigned __int8 **)(a1 + 8)); v9 = v69; goto LABEL_10; } LABEL_137: sub_DBE628(a1, (__int64)"Unrecognized node test"); } LABEL_34: v36 = (_BYTE **)(a1 + 24); v7 = (unsigned __int8 **)(a1 + 8); v37 = *(_BYTE **)(a1 + 32); v69 = *(_BYTE **)(a1 + 24); v70 = v37; sub_DBDEA0((unsigned __int8 **)(a1 + 8)); v38 = *(_DWORD *)(a1 + 40); if ( v38 == 25 ) { if ( v5 ) sub_DBE628(a1, (__int64)"Two axis specifiers in one step"); switch ( *v69 ) { case 'a': v55 = 0; v56 = v70 - v69; if ( v70 == v69 ) goto LABEL_111; while ( v56 != ++v55 ) { if ( aAncestor[v55] != v69[v55] ) goto LABEL_104; } v6 = 0; if ( !aAncestor[v56] ) goto LABEL_118; LABEL_104: v57 = 0; while ( v56 != ++v57 ) { if ( aAncestorOrSelf[v57] != v69[v57] ) goto LABEL_108; } v6 = 1; if ( !aAncestorOrSelf[v56] ) goto LABEL_118; LABEL_108: v58 = 0; while ( v56 != ++v58 ) { if ( aAttribute[v58] != v69[v58] ) goto LABEL_50; } LABEL_111: if ( aAttribute[v56] ) goto LABEL_50; v6 = 2; goto LABEL_118; case 'c': v59 = 0; v60 = v70 - v69; if ( v70 == v69 ) goto LABEL_117; while ( v60 != ++v59 ) { if ( aChild[v59] != v69[v59] ) goto LABEL_50; } LABEL_117: v6 = 3; if ( !aChild[v60] ) goto LABEL_118; goto LABEL_50; case 'd': v52 = 0; v53 = v70 - v69; if ( v70 == v69 ) goto LABEL_97; while ( v53 != ++v52 ) { if ( aDescendant[v52] != v69[v52] ) goto LABEL_94; } v6 = 4; if ( !aDescendant[v53] ) goto LABEL_118; LABEL_94: v54 = 0; while ( v53 != ++v54 ) { if ( aDescendantOrSe[v54] != v69[v54] ) goto LABEL_50; } LABEL_97: if ( aDescendantOrSe[v53] ) goto LABEL_50; v6 = 5; goto LABEL_118; case 'f': v49 = 0; v50 = v70 - v69; if ( v70 == v69 ) goto LABEL_87; while ( v50 != ++v49 ) { if ( aFollowing_0[v49] != v69[v49] ) goto LABEL_84; } v6 = 6; if ( !aFollowing_0[v50] ) goto LABEL_118; LABEL_84: v51 = 0; while ( v50 != ++v51 ) { if ( aFollowingSibli[v51] != v69[v51] ) goto LABEL_50; } LABEL_87: if ( aFollowingSibli[v50] ) goto LABEL_50; v6 = 7; goto LABEL_118; case 'n': v47 = 0; v48 = v70 - v69; if ( v70 == v69 ) goto LABEL_77; while ( v48 != ++v47 ) { if ( aNamespace[v47] != v69[v47] ) goto LABEL_50; } LABEL_77: v6 = 8; if ( aNamespace[v48] ) goto LABEL_50; goto LABEL_118; case 'p': v43 = 0; v44 = v70 - v69; if ( v70 == v69 ) goto LABEL_71; while ( v44 != ++v43 ) { if ( aParent[v43] != v69[v43] ) goto LABEL_64; } v6 = 9; if ( !aParent[v44] ) goto LABEL_118; LABEL_64: v45 = 0; while ( v44 != ++v45 ) { if ( aPreceding[v45] != v69[v45] ) goto LABEL_68; } v6 = 10; if ( !aPreceding[v44] ) goto LABEL_118; LABEL_68: v46 = 0; while ( v44 != ++v46 ) { if ( aPrecedingSibli[v46] != v69[v46] ) goto LABEL_50; } LABEL_71: if ( aPrecedingSibli[v44] ) goto LABEL_50; v6 = 11; goto LABEL_118; case 's': v41 = 0; v42 = v70 - v69; if ( v70 == v69 ) goto LABEL_57; break; default: goto LABEL_50; } while ( v42 != ++v41 ) { if ( aSelf[v41] != v69[v41] ) goto LABEL_50; } LABEL_57: v6 = 12; if ( aSelf[v42] ) LABEL_50: sub_DBE628(a1, (__int64)"Unknown axis"); LABEL_118: sub_DBDEA0((unsigned __int8 **)(a1 + 8)); v61 = *(_DWORD *)(a1 + 40); if ( v61 == 9 ) { v69 = nullptr; v70 = nullptr; v8 = 7; sub_DBDEA0((unsigned __int8 **)(a1 + 8)); v9 = nullptr; goto LABEL_10; } if ( v61 != 20 ) goto LABEL_137; v62 = *(_BYTE **)(a1 + 32); v69 = *v36; v70 = v62; sub_DBDEA0((unsigned __int8 **)(a1 + 8)); v38 = *(_DWORD *)(a1 + 40); } if ( v38 != 12 ) { v9 = v69; if ( v70 - v69 > 2 && *(v70 - 2) == 58 && *(v70 - 1) == 42 ) { v8 = 8; --v70; } else { v8 = 1; } goto LABEL_10; } sub_DBDEA0((unsigned __int8 **)(a1 + 8)); v63 = *(_DWORD *)(a1 + 40); if ( v63 != 13 ) { v64 = v70 - v69; if ( v70 != v69 ) { if ( *v69 != 112 ) goto LABEL_138; v65 = 0; while ( v64 != ++v65 ) { if ( aProcessingInst[v65] != v69[v65] ) goto LABEL_138; } } if ( !aProcessingInst[v64] ) { if ( v63 != 14 ) sub_DBE628(a1, (__int64)"Only literals are allowed as arguments to processing-instruction()"); v66 = *(_BYTE **)(a1 + 32); v69 = *v36; v70 = v66; sub_DBDEA0((unsigned __int8 **)(a1 + 8)); if ( *(_DWORD *)(a1 + 40) != 13 ) sub_DBE628(a1, (__int64)"Unmatched brace near processing-instruction()"); v8 = 6; sub_DBDEA0((unsigned __int8 **)(a1 + 8)); v9 = v69; LABEL_10: if ( v9 ) { v10 = *(__int64 **)a1; v11 = v70 - v9; v12 = *(_QWORD *)(*(_QWORD *)a1 + 8LL); v13 = (v70 - v9 + 8) & 0xFFFFFFFFFFFFFFF8LL; if ( v13 + v12 > 0x1000 ) { v32 = 4096; v68 = *(__int64 **)a1; if ( v13 >= 0x1000 ) v32 = (v11 + 8) & 0xFFFFFFFFFFFFFFF8LL; v33 = (__int64 *)off_154A348(v32 + 8); if ( !v33 ) goto LABEL_40; v15 = v33 + 1; *v33 = *v68; *v68 = (__int64)v33; v68[1] = v13; v9 = v69; } else { v14 = *v10; v10[1] = v13 + v12; v15 = (void *)(v14 + v12 + 8); if ( !v15 ) goto LABEL_40; } v16 = v15; memcpy(v15, v9, v11); *((_BYTE *)v15 + v11) = 0; } else { v16 = nullptr; } goto LABEL_14; } LABEL_138: sub_DBE628(a1, (__int64)"Unmatched brace near node type test"); } sub_DBDEA0((unsigned __int8 **)(a1 + 8)); v67 = sub_DBE74C(&v69); v8 = v67; if ( !v67 ) sub_DBE628(a1, (__int64)"Unrecognized node type"); v69 = nullptr; v16 = nullptr; v70 = nullptr; LABEL_14: v17 = *(__int64 **)a1; v18 = *(_QWORD *)(*(_QWORD *)a1 + 8LL); if ( (unsigned __int64)(v18 + 40) > 0x1000 ) { v35 = (__int64 *)off_154A348(0x1008u); if ( v35 ) { v21 = v35 + 1; *v35 = *v17; *v17 = (__int64)v35; v17[1] = 40; goto LABEL_16; } LABEL_40: sub_631BF8(a1); } v19 = *v17; v17[1] = v18 + 40; v20 = v19 + v18; v21 = (_QWORD *)(v20 + 8); if ( v20 == -8 ) goto LABEL_40; LABEL_16: *((_BYTE *)v21 + 3) = v8; v21[1] = a2; *((_BYTE *)v21 + 1) = 1; *(_BYTE *)v21 = 57; v22 = nullptr; *((_BYTE *)v21 + 2) = v6; v21[2] = 0; v21[3] = 0; for ( v21[4] = v16; *(_DWORD *)(a1 + 40) == 18; v22 = v30 ) { sub_DBDEA0(v7); v23 = (_QWORD *)sub_DD72CC(a1); v24 = sub_DD89A0(a1, v23, 0); v25 = *(__int64 **)a1; v26 = v24; v27 = *(_QWORD *)(*(_QWORD *)a1 + 8LL); if ( (unsigned __int64)(v27 + 40) > 0x1000 ) { v34 = (__int64 *)off_154A348(0x1008u); if ( !v34 ) goto LABEL_40; v30 = v34 + 1; *v34 = *v25; *v25 = (__int64)v34; v25[1] = 40; } else { v28 = *v25; v25[1] = v27 + 40; v29 = v28 + v27; v30 = (_QWORD *)(v29 + 8); if ( v29 == -8 ) goto LABEL_40; } *(_BYTE *)v30 = 16; *(_WORD *)((char *)v30 + 1) = 1; *((_BYTE *)v30 + 3) = 0; v30[1] = v26; v30[2] = 0; v30[3] = 0; if ( *(_DWORD *)(a1 + 40) != 19 ) sub_DBE628(a1, (__int64)"Unmatched square brace"); sub_DBDEA0(v7); if ( v22 ) v22[3] = v30; else v21[2] = v30; } return v21; }
GD Web Decomp Icon

GD Web Decomp

Raw Source