//
// sub_DD72CC from 0xdd72cc to 0xdd89a0 (5844 bytes)
//
// 8 xrefs:
// > sub_DD72CC @ 0xdd73fc
// > sub_DD72CC @ 0xdd74a8
// > sub_DD72CC @ 0xdd750c
// > sub_DD72CC @ 0xdd7644
// > sub_DD72CC @ 0xdd76f8
// > sub_DD89A0 @ 0xdd8a28
// > sub_DD8D34 @ 0xdd8da0
// > sub_DD8E00 @ 0xdd8f6c
//
// 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
//
__int64 __fastcall sub_DD72CC(__int64 a1)
{
int v2; // w0
unsigned int v3; // w19
unsigned __int8 *v5; // x1
int v6; // w0
int v7; // t1
__int64 v8; // x0
__int64 v9; // x0
_QWORD *v10; // x19
__int64 v11; // x21
__int64 v12; // x0
__int64 v13; // x2
__int64 v14; // x0
_QWORD *v15; // x1
unsigned __int8 **v16; // x22
_BYTE *v17; // x23
__int64 v18; // x21
__int64 v19; // x0
int v20; // w1
__int64 v21; // x25
unsigned __int64 v22; // x19
int v23; // w1
__int64 v24; // x0
__int64 v25; // x0
const void *v26; // x1
char *v27; // x21
size_t v28; // x19
char *v29; // x0
char *v30; // x22
double v31; // d8
void *v32; // x22
__int64 *v33; // x23
size_t v34; // x21
__int64 v35; // x19
unsigned __int64 v36; // x22
__int64 v37; // x1
void *v38; // x19
__int64 v39; // x0
__int64 v40; // x21
__int64 v41; // x0
int v42; // w1
_QWORD *v43; // x19
__int64 v44; // x5
__int64 v45; // x0
char v46; // w0
__int64 v47; // x0
unsigned __int8 *v48; // x0
unsigned __int8 *v49; // x26
int v50; // w28
__int64 *v51; // x27
__int64 v52; // x0
__int64 *v53; // x0
pugi::xpath_variable_set *v54; // x23
const void *v55; // x1
size_t v56; // x19
char *v57; // x22
char *v58; // x0
char *v59; // x21
pugi::xpath_variable *v60; // x23
char v61; // w0
_QWORD *v62; // x19
char v63; // w24
__int64 v64; // x0
__int64 v65; // x2
__int64 v66; // x0
__int64 v67; // x0
_QWORD *v68; // x0
__int64 v69; // x0
unsigned __int64 v70; // x0
__int64 *v71; // x0
__int64 v72; // x21
__int64 v73; // x0
__int64 v74; // x0
__int64 *v75; // x19
__int64 v76; // x0
__int64 v77; // x21
char v78; // w0
__int64 v79; // x21
__int64 v80; // x1
__int64 v81; // x0
__int64 v82; // x0
__int64 v83; // x0
__int64 v84; // x0
__int64 v85; // x0
__int64 v86; // x1
bool v87; // zf
__int64 v88; // x2
char v89; // w3
char v90; // w0
__int64 v91; // x21
__int64 v92; // x1
__int64 *v93; // x19
__int64 v94; // x0
__int64 v95; // x21
char v96; // w0
__int64 v97; // x21
__int64 v98; // x1
__int64 v99; // x0
__int64 v100; // x0
__int64 v101; // x0
__int64 v102; // x0
__int64 *v103; // x23
__int64 v104; // x0
__int64 v105; // x21
__int64 v106; // x1
char v107; // w0
char v108; // w0
__int64 v109; // x21
__int64 v110; // x1
__int64 *v111; // x19
__int64 v112; // x0
__int64 v113; // x21
__int64 v114; // x0
char v115; // w1
char v116; // w1
__int64 v117; // x21
__int64 v118; // x1
_BYTE *v119; // x0
__int64 v120; // x21
__int64 v121; // x1
__int64 *v122; // x19
__int64 v123; // x0
__int64 v124; // x21
__int64 v125; // x21
__int64 v126; // x1
__int64 v127; // x21
__int64 v128; // x1
__int64 *v129; // x19
__int64 v130; // x0
__int64 v131; // x21
__int64 v132; // x21
__int64 v133; // x1
__int64 v134; // x0
__int64 v135; // x0
__int64 v136; // x0
char v137; // w2
__int64 v138; // x1
char v139; // w2
_QWORD *v140; // x0
__int64 v141; // x0
__int64 *v142; // x19
__int64 v143; // x0
__int64 v144; // x21
__int64 v145; // x0
__int64 v146; // x0
__int64 *v147; // x19
__int64 v148; // x0
__int64 v149; // x21
__int64 *v150; // x0
__int64 *v151; // x0
__int64 *v152; // x0
__int64 *v153; // x0
__int64 *v154; // x0
__int64 *v155; // x0
bool v156; // zf
char v157; // w2
char v158; // w0
__int64 v159; // x0
__int64 v160; // x0
__int64 *v161; // x0
__int64 *v162; // x23
__int64 v163; // x0
__int64 v164; // x2
__int64 v165; // x0
char v166; // w0
__int64 *v167; // x0
__int64 *v168; // x0
void *v169; // [xsp+78h] [xbp+78h]
void *v170; // [xsp+78h] [xbp+78h]
int v171; // [xsp+78h] [xbp+78h]
__int64 v172; // [xsp+88h] [xbp+88h] BYREF
__int64 v173; // [xsp+90h] [xbp+90h]
v2 = *(_DWORD *)(a1 + 40);
v3 = v2 - 11;
if ( (unsigned int)(v2 - 14) <= 1 || (unsigned int)(v2 - 11) <= 1 )
{
if ( v2 != 20 )
{
if ( v3 > 9 )
LABEL_7:
sub_DBE628(a1, (__int64)"Unrecognizable primary expression");
goto LABEL_12;
}
}
else if ( v2 != 20 )
{
if ( v2 != 8 )
return sub_DDA8C4(a1);
sub_DBDEA0((unsigned __int8 **)(a1 + 8));
v8 = sub_DD72CC(a1);
v9 = sub_DD89A0(a1, v8, 7);
v10 = *(_QWORD **)a1;
v11 = v9;
v12 = *(_QWORD *)(*(_QWORD *)a1 + 8LL);
if ( (unsigned __int64)(v12 + 40) > 0x1000 )
{
v68 = off_154A348(0x1008u);
if ( v68 )
{
*v68 = *v10;
v15 = v68 + 1;
*v10 = v68;
v10[1] = 40;
goto LABEL_15;
}
}
else
{
v13 = *v10;
v10[1] = v12 + 40;
v14 = v13 + v12;
v15 = (_QWORD *)(v14 + 8);
if ( v14 != -8 )
{
LABEL_15:
*(_BYTE *)v15 = 14;
*((_BYTE *)v15 + 1) = 2;
*((_BYTE *)v15 + 2) = 0;
*((_BYTE *)v15 + 3) = 0;
v15[1] = v11;
v15[2] = 0;
v15[3] = 0;
return (__int64)v15;
}
}
LABEL_265:
sub_631BF8(a1);
}
v5 = *(unsigned __int8 **)(a1 + 8);
v6 = *v5;
if ( (byte_11AECC0[*v5] & 8) != 0 )
{
do
{
v7 = *++v5;
v6 = v7;
}
while ( (byte_11AECC0[v7] & 8) != 0 );
}
if ( v6 != 40 || (unsigned int)sub_DBE74C((_QWORD *)(a1 + 24)) )
return sub_DDA8C4(a1);
LABEL_12:
switch ( v3 )
{
case 0u:
v54 = *(pugi::xpath_variable_set **)(a1 + 56);
v55 = *(const void **)(a1 + 24);
if ( !v54 )
sub_DBE628(a1, (__int64)"Unknown variable: variable set is not provided");
v56 = *(_QWORD *)(a1 + 32) - (_QWORD)v55;
v57 = (char *)(a1 + 72);
if ( v56 <= 0x1F )
{
memcpy((void *)(a1 + 72), v55, *(_QWORD *)(a1 + 32) - (_QWORD)v55);
v57[v56] = 0;
v60 = pugi::xpath_variable_set::get(v54, (char *)(a1 + 72));
}
else
{
v170 = *(void **)(a1 + 24);
v58 = (char *)off_154A348(v56 + 1);
v59 = v58;
if ( !v58 )
goto LABEL_339;
memcpy(v58, v170, v56);
v59[v56] = 0;
v60 = pugi::xpath_variable_set::get(v54, v59);
if ( v57 != v59 )
off_154A340(v59);
}
if ( !v60 )
LABEL_339:
sub_DBE628(a1, (__int64)"Unknown variable: variable set does not contain the given name");
v16 = (unsigned __int8 **)(a1 + 8);
sub_DBDEA0((unsigned __int8 **)(a1 + 8));
v61 = pugi::xpath_variable::type(v60);
v62 = *(_QWORD **)a1;
v63 = v61;
v64 = *(_QWORD *)(*(_QWORD *)a1 + 8LL);
if ( (unsigned __int64)(v64 + 40) > 0x1000 )
{
v140 = off_154A348(0x1008u);
if ( !v140 )
goto LABEL_265;
v40 = (__int64)(v140 + 1);
*v140 = *v62;
*v62 = v140;
v62[1] = 40;
}
else
{
v65 = *v62;
v62[1] = v64 + 40;
v66 = v65 + v64;
v40 = v66 + 8;
if ( v66 == -8 )
goto LABEL_265;
}
*(_BYTE *)(v40 + 1) = v63;
*(_BYTE *)v40 = 21;
*(_BYTE *)(v40 + 2) = 0;
*(_BYTE *)(v40 + 3) = 0;
*(_QWORD *)(v40 + 8) = 0;
*(_QWORD *)(v40 + 16) = 0;
*(_QWORD *)(v40 + 24) = 0;
*(_QWORD *)(v40 + 32) = v60;
LABEL_39:
v42 = *(_DWORD *)(a1 + 40);
v43 = (_QWORD *)v40;
if ( v42 == 18 )
{
while ( 1 )
{
sub_DBDEA0(v16);
v47 = sub_DD72CC(a1);
v48 = (unsigned __int8 *)sub_DD89A0(a1, v47, 0);
v49 = v48;
if ( *(_BYTE *)(v40 + 1) != 1 )
sub_DBE628(a1, (__int64)"Predicate has to be applied to node set");
v50 = 0;
if ( v48[1] != 2 )
v50 = (unsigned __int8)sub_DBF528(v48);
v51 = *(__int64 **)a1;
v52 = *(_QWORD *)(*(_QWORD *)a1 + 8LL);
if ( (unsigned __int64)(v52 + 40) <= 0x1000 )
{
v44 = *v51;
v51[1] = v52 + 40;
v45 = v44 + v52;
v43 = (_QWORD *)(v45 + 8);
if ( v45 == -8 )
goto LABEL_265;
}
else
{
v53 = (__int64 *)off_154A348(0x1008u);
if ( !v53 )
goto LABEL_265;
v43 = v53 + 1;
*v53 = *v51;
*v51 = (__int64)v53;
v51[1] = 40;
}
*((_BYTE *)v43 + 1) = 1;
if ( v50 )
v46 = 18;
else
v46 = 17;
*((_BYTE *)v43 + 2) = 0;
*(_BYTE *)v43 = v46;
*((_BYTE *)v43 + 3) = 0;
v43[1] = v40;
v43[2] = v49;
v43[3] = 0;
if ( *(_DWORD *)(a1 + 40) != 19 )
sub_DBE628(a1, (__int64)"Unmatched square brace");
sub_DBDEA0(v16);
v42 = *(_DWORD *)(a1 + 40);
if ( v42 != 18 )
break;
v40 = (__int64)v43;
}
}
if ( (unsigned int)(v42 - 16) > 1 )
return (__int64)v43;
v171 = v42;
sub_DBDEA0(v16);
if ( v171 == 17 )
{
if ( *((_BYTE *)v43 + 1) != 1 )
sub_DBE628(a1, (__int64)"Step has to be applied to node set");
v67 = sub_DBF120(a1);
if ( v67 )
{
*(_BYTE *)v67 = 57;
*(_QWORD *)(v67 + 8) = v43;
*(_BYTE *)(v67 + 2) = 5;
v43 = (_QWORD *)v67;
*(_BYTE *)(v67 + 1) = 1;
*(_BYTE *)(v67 + 3) = 2;
*(_QWORD *)(v67 + 16) = 0;
*(_QWORD *)(v67 + 24) = 0;
*(_QWORD *)(v67 + 32) = 0;
}
else
{
v43 = nullptr;
}
}
return sub_DDA77C(a1, v43);
case 1u:
v16 = (unsigned __int8 **)(a1 + 8);
sub_DBDEA0((unsigned __int8 **)(a1 + 8));
v41 = sub_DD72CC(a1);
v40 = sub_DD89A0(a1, v41, 0);
if ( *(_DWORD *)(a1 + 40) != 13 )
sub_DBE628(a1, (__int64)"Unmatched braces");
goto LABEL_38;
case 3u:
v32 = *(void **)(a1 + 24);
if ( !v32 )
goto LABEL_34;
v33 = *(__int64 **)a1;
v34 = *(_QWORD *)(a1 + 32) - (_QWORD)v32;
v35 = *(_QWORD *)(*(_QWORD *)a1 + 8LL);
v36 = (v34 + 8) & 0xFFFFFFFFFFFFFFF8LL;
if ( v36 + v35 > 0x1000 )
{
v70 = 4096;
if ( v36 >= 0x1000 )
v70 = (v34 + 8) & 0xFFFFFFFFFFFFFFF8LL;
v71 = (__int64 *)off_154A348(v70 + 8);
if ( !v71 )
goto LABEL_265;
v38 = v71 + 1;
*v71 = *v33;
*v33 = (__int64)v71;
v33[1] = v36;
}
else
{
v37 = *v33;
v33[1] = v36 + v35;
v38 = (void *)(v37 + v35 + 8);
if ( !v38 )
goto LABEL_265;
}
v32 = v38;
memcpy(v38, *(const void **)(a1 + 24), v34);
*((_BYTE *)v38 + v34) = 0;
LABEL_34:
v39 = sub_DBF120(a1);
v40 = v39;
if ( v39 )
{
*(_BYTE *)(v39 + 2) = 0;
*(_BYTE *)v39 = 19;
*(_BYTE *)(v39 + 3) = 0;
*(_BYTE *)(v39 + 1) = 3;
*(_QWORD *)(v39 + 8) = 0;
*(_QWORD *)(v39 + 16) = 0;
*(_QWORD *)(v39 + 24) = 0;
*(_QWORD *)(v39 + 32) = v32;
}
LABEL_36:
v16 = (unsigned __int8 **)(a1 + 8);
LABEL_38:
sub_DBDEA0(v16);
goto LABEL_39;
case 4u:
v26 = *(const void **)(a1 + 24);
v27 = (char *)(a1 + 72);
v28 = *(_QWORD *)(a1 + 32) - (_QWORD)v26;
if ( v28 <= 0x1F )
{
memcpy((void *)(a1 + 72), v26, *(_QWORD *)(a1 + 32) - (_QWORD)v26);
v27[v28] = 0;
v31 = sub_DBE518((const char *)(a1 + 72));
}
else
{
v169 = *(void **)(a1 + 24);
v29 = (char *)off_154A348(v28 + 1);
v30 = v29;
if ( !v29 )
goto LABEL_265;
memcpy(v29, v169, v28);
v30[v28] = 0;
v31 = sub_DBE518(v30);
if ( v27 != v30 )
off_154A340(v30);
}
v69 = sub_DBF120(a1);
v40 = v69;
if ( !v69 )
goto LABEL_36;
*(_BYTE *)(v69 + 2) = 0;
*(_BYTE *)v69 = 20;
v16 = (unsigned __int8 **)(a1 + 8);
*(_BYTE *)(v69 + 3) = 0;
*(_BYTE *)(v69 + 1) = 2;
*(_QWORD *)(v69 + 8) = 0;
*(_QWORD *)(v69 + 16) = 0;
*(_QWORD *)(v69 + 24) = 0;
*(double *)(v69 + 32) = v31;
goto LABEL_38;
case 9u:
v16 = (unsigned __int8 **)(a1 + 8);
v17 = *(_BYTE **)(a1 + 24);
v18 = *(_QWORD *)(a1 + 32);
v172 = 0;
v173 = 0;
sub_DBDEA0((unsigned __int8 **)(a1 + 8));
if ( *(_DWORD *)(a1 + 40) != 12 )
sub_DBE628(a1, (__int64)"Unrecognized function call");
sub_DBDEA0((unsigned __int8 **)(a1 + 8));
if ( *(_DWORD *)(a1 + 40) == 13 )
{
v22 = 0;
}
else
{
v19 = sub_DD72CC(a1);
v172 = sub_DD89A0(a1, v19, 0);
v20 = *(_DWORD *)(a1 + 40);
if ( v20 == 13 )
{
v22 = 1;
}
else
{
v21 = 0;
v22 = 1;
if ( v20 != 21 )
LABEL_329:
sub_DBE628(a1, (__int64)"No comma between function arguments");
while ( 1 )
{
sub_DBDEA0((unsigned __int8 **)(a1 + 8));
v24 = sub_DD72CC(a1);
v25 = sub_DD89A0(a1, v24, 0);
if ( v22 > 1 )
*(_QWORD *)(v21 + 24) = v25;
else
*(&v172 + v22) = v25;
v23 = *(_DWORD *)(a1 + 40);
++v22;
if ( v23 == 13 )
break;
v21 = v25;
if ( v23 != 21 )
goto LABEL_329;
}
}
}
sub_DBDEA0((unsigned __int8 **)(a1 + 8));
break;
default:
goto LABEL_7;
}
switch ( *v17 )
{
case 'b':
v127 = v18 - (_QWORD)v17;
v128 = 0;
if ( !v127 )
goto LABEL_218;
while ( v127 != ++v128 )
{
if ( aIllegalBoolean[v128 + 8] != v17[v128] )
goto LABEL_78;
}
LABEL_218:
if ( v22 != 1 || aIllegalBoolean[v127 + 8] )
goto LABEL_78;
v129 = *(__int64 **)a1;
v130 = *(_QWORD *)(*(_QWORD *)a1 + 8LL);
if ( (unsigned __int64)(v130 + 40) > 0x1000 )
{
v151 = (__int64 *)off_154A348(0x1008u);
if ( !v151 )
goto LABEL_265;
v40 = (__int64)(v151 + 1);
*v151 = *v129;
*v129 = (__int64)v151;
v129[1] = 40;
}
else
{
v131 = *v129;
v129[1] = v130 + 40;
v40 = v131 + v130 + 8;
if ( !v40 )
goto LABEL_265;
}
v114 = v172;
*(_BYTE *)v40 = 46;
v116 = 4;
goto LABEL_187;
case 'c':
v132 = v18 - (_QWORD)v17;
v133 = 0;
if ( !v132 )
goto LABEL_294;
while ( v132 != ++v133 )
{
if ( aSCanNotReadTif[v133 + 32] != v17[v133] )
goto LABEL_229;
}
if ( v22 != 1 || aSCanNotReadTif[v132 + 32] )
{
LABEL_229:
v134 = 0;
while ( v132 != ++v134 )
{
if ( aContains[v134] != v17[v134] )
goto LABEL_234;
}
if ( v22 == 2 && !aContains[v132] )
{
v40 = sub_DBF120(a1);
if ( !v40 )
goto LABEL_39;
v136 = v173;
v138 = v172;
*(_BYTE *)v40 = 36;
v139 = 4;
goto LABEL_242;
}
LABEL_234:
v135 = 0;
while ( v132 != ++v135 )
{
if ( aConcat[v135] != v17[v135] )
goto LABEL_291;
}
if ( v22 > 1 && !aConcat[v132] )
{
v40 = sub_DBF120(a1);
if ( !v40 )
goto LABEL_39;
v136 = v173;
v137 = 34;
v138 = v172;
goto LABEL_241;
}
LABEL_291:
v159 = 0;
while ( v132 != ++v159 )
{
if ( aCeiling[v159] != v17[v159] )
goto LABEL_78;
}
LABEL_294:
if ( v22 == 1 && !aCeiling[v132] )
{
v40 = sub_DBF120(a1);
if ( !v40 )
goto LABEL_39;
v114 = v172;
v115 = 55;
goto LABEL_186;
}
LABEL_78:
sub_DBE628(a1, (__int64)"Unrecognized function or wrong parameter count");
}
v106 = v172;
if ( *(_BYTE *)(v172 + 1) != 1 )
goto LABEL_351;
v147 = *(__int64 **)a1;
v148 = *(_QWORD *)(*(_QWORD *)a1 + 8LL);
if ( (unsigned __int64)(v148 + 40) > 0x1000 )
{
v161 = (__int64 *)off_154A348(0x1008u);
if ( !v161 )
goto LABEL_265;
v40 = (__int64)(v161 + 1);
*v161 = *v147;
*v147 = (__int64)v161;
v147[1] = 40;
v106 = v172;
}
else
{
v149 = *v147;
v147[1] = v148 + 40;
v40 = v149 + v148 + 8;
if ( !v40 )
goto LABEL_265;
}
*(_BYTE *)v40 = 24;
v108 = 2;
goto LABEL_176;
case 'f':
v125 = v18 - (_QWORD)v17;
v126 = 0;
if ( !v125 )
goto LABEL_249;
while ( v125 != ++v126 )
{
if ( aFalse[v126] != v17[v126] )
goto LABEL_246;
}
if ( !v22 && !aFalse[v125] )
{
v40 = sub_DBF120(a1);
if ( !v40 )
goto LABEL_39;
v78 = 49;
LABEL_213:
*(_BYTE *)v40 = v78;
v96 = 4;
LABEL_143:
*(_BYTE *)(v40 + 1) = v96;
*(_BYTE *)(v40 + 2) = 0;
*(_BYTE *)(v40 + 3) = 0;
*(_QWORD *)(v40 + 8) = 0;
*(_QWORD *)(v40 + 16) = 0;
*(_QWORD *)(v40 + 24) = 0;
goto LABEL_39;
}
LABEL_246:
v141 = 0;
while ( v125 != ++v141 )
{
if ( aFloor[v141] != v17[v141] )
goto LABEL_78;
}
LABEL_249:
if ( v22 != 1 || aFloor[v125] )
goto LABEL_78;
v142 = *(__int64 **)a1;
v143 = *(_QWORD *)(*(_QWORD *)a1 + 8LL);
if ( (unsigned __int64)(v143 + 40) > 0x1000 )
{
v154 = (__int64 *)off_154A348(0x1008u);
if ( !v154 )
goto LABEL_265;
v40 = (__int64)(v154 + 1);
*v154 = *v142;
*v142 = (__int64)v154;
v142[1] = 40;
}
else
{
v144 = *v142;
v142[1] = v143 + 40;
v40 = v144 + v143 + 8;
if ( !v40 )
goto LABEL_265;
}
v114 = v172;
v115 = 54;
goto LABEL_186;
case 'i':
v120 = v18 - (_QWORD)v17;
v121 = 0;
if ( !v120 )
goto LABEL_200;
while ( v120 != ++v121 )
{
if ( aUnknownPurpose[v121 + 16] != v17[v121] )
goto LABEL_78;
}
LABEL_200:
if ( v22 != 1 || aUnknownPurpose[v120 + 16] )
goto LABEL_78;
v122 = *(__int64 **)a1;
v123 = *(_QWORD *)(*(_QWORD *)a1 + 8LL);
if ( (unsigned __int64)(v123 + 40) > 0x1000 )
{
v150 = (__int64 *)off_154A348(0x1008u);
if ( !v150 )
goto LABEL_265;
v40 = (__int64)(v150 + 1);
*v150 = *v122;
*v122 = (__int64)v150;
v122[1] = 40;
}
else
{
v124 = *v122;
v122[1] = v123 + 40;
v40 = v124 + v123 + 8;
if ( !v40 )
goto LABEL_265;
}
v114 = v172;
*(_BYTE *)v40 = 25;
v116 = 1;
goto LABEL_187;
case 'l':
v117 = v18 - (_QWORD)v17;
v118 = 0;
if ( !v117 )
goto LABEL_262;
while ( v117 != ++v118 )
{
if ( aLast[v118] != v17[v118] )
goto LABEL_254;
}
if ( v22 || aLast[v117] )
{
LABEL_254:
v145 = 0;
while ( v117 != ++v145 )
{
if ( aLang[v145] != v17[v145] )
goto LABEL_259;
}
if ( v22 == 1 && !aLang[v117] )
{
v40 = sub_DBF120(a1);
if ( !v40 )
goto LABEL_39;
v114 = v172;
*(_BYTE *)v40 = 50;
v116 = 4;
goto LABEL_187;
}
LABEL_259:
v146 = 0;
while ( v117 != ++v146 )
{
if ( aLocalName[v146] != v17[v146] )
goto LABEL_78;
}
LABEL_262:
if ( v22 <= 1 && !aLocalName[v117] )
{
v40 = sub_DBFC54(a1, 26, 27, v22, &v172);
goto LABEL_39;
}
goto LABEL_78;
}
v119 = (_BYTE *)sub_DBF120(a1);
v40 = (__int64)v119;
if ( !v119 )
goto LABEL_39;
*v119 = 22;
v96 = 2;
goto LABEL_143;
case 'n':
v97 = v18 - (_QWORD)v17;
v98 = 0;
if ( !v97 )
{
if ( v22 <= 1 && !aNormalizeSpace[0] )
goto LABEL_332;
LABEL_168:
if ( v22 > 1 || aInvalidNumber[v97 + 8] )
goto LABEL_78;
v103 = *(__int64 **)a1;
v104 = *(_QWORD *)(*(_QWORD *)a1 + 8LL);
if ( (unsigned __int64)(v104 + 40) > 0x1000 )
{
v167 = (__int64 *)off_154A348(0x1008u);
if ( !v167 )
goto LABEL_265;
v40 = (__int64)(v167 + 1);
*v167 = *v103;
*v103 = (__int64)v167;
v103[1] = 40;
}
else
{
v105 = *v103;
v103[1] = v104 + 40;
v40 = v105 + v104 + 8;
if ( !v40 )
goto LABEL_265;
}
v106 = v172;
if ( v22 )
v107 = 52;
else
v107 = 51;
*(_BYTE *)v40 = v107;
v108 = 2;
goto LABEL_176;
}
while ( v97 != ++v98 )
{
if ( aEnterAName[v98 + 8] != v17[v98] )
goto LABEL_150;
}
if ( v22 > 1 || aEnterAName[v97 + 8] )
{
LABEL_150:
v99 = 0;
while ( v97 != ++v99 )
{
if ( aNamespaceUri[v99] != v17[v99] )
goto LABEL_155;
}
if ( v22 <= 1 && !aNamespaceUri[v97] )
{
v40 = sub_DBFC54(a1, 28, 29, v22, &v172);
goto LABEL_39;
}
LABEL_155:
v100 = 0;
while ( v97 != ++v100 )
{
if ( aNormalizeSpace[v100] != v17[v100] )
goto LABEL_160;
}
if ( v22 <= 1 && !aNormalizeSpace[v97] )
{
LABEL_332:
v40 = sub_DBF120(a1);
if ( v40 )
{
v86 = v173;
v87 = v22 == 0;
v88 = v172;
v89 = 44;
v90 = 43;
goto LABEL_131;
}
goto LABEL_342;
}
LABEL_160:
v101 = 0;
while ( v97 != ++v101 )
{
if ( aNot[v101] != v17[v101] )
goto LABEL_165;
}
if ( v22 == 1 && !aNot[v97] )
{
v40 = sub_DBF120(a1);
if ( !v40 )
goto LABEL_39;
v114 = v172;
*(_BYTE *)v40 = 47;
v116 = 4;
goto LABEL_187;
}
LABEL_165:
v102 = 0;
while ( v97 != ++v102 )
{
if ( aInvalidNumber[v102 + 8] != v17[v102] )
goto LABEL_78;
}
goto LABEL_168;
}
if ( v22 == 1 && *(_BYTE *)(v172 + 1) != 1 )
goto LABEL_351;
v162 = *(__int64 **)a1;
v163 = *(_QWORD *)(*(_QWORD *)a1 + 8LL);
if ( (unsigned __int64)(v163 + 40) > 0x1000 )
{
v168 = (__int64 *)off_154A348(0x1008u);
if ( !v168 )
goto LABEL_265;
v40 = (__int64)(v168 + 1);
*v168 = *v162;
*v162 = (__int64)v168;
v162[1] = 40;
}
else
{
v164 = *v162;
v162[1] = v163 + 40;
v165 = v164 + v163 + 8;
if ( !v165 )
goto LABEL_265;
v40 = v165;
}
v106 = v172;
v156 = v22 == 0;
v157 = 31;
v158 = 30;
goto LABEL_288;
case 'p':
v91 = v18 - (_QWORD)v17;
v92 = 0;
if ( !v91 )
goto LABEL_138;
while ( v91 != ++v92 )
{
if ( aPosition[v92] != v17[v92] )
goto LABEL_78;
}
LABEL_138:
if ( v22 || aPosition[v91] )
goto LABEL_78;
v93 = *(__int64 **)a1;
v94 = *(_QWORD *)(*(_QWORD *)a1 + 8LL);
if ( (unsigned __int64)(v94 + 40) > 0x1000 )
{
v155 = (__int64 *)off_154A348(0x1008u);
if ( !v155 )
goto LABEL_265;
v40 = (__int64)(v155 + 1);
*v155 = *v93;
*v93 = (__int64)v155;
v93[1] = 40;
}
else
{
v95 = *v93;
v93[1] = v94 + 40;
v40 = v95 + v94 + 8;
if ( !v40 )
goto LABEL_265;
}
*(_BYTE *)v40 = 23;
v96 = 2;
goto LABEL_143;
case 'r':
v109 = v18 - (_QWORD)v17;
v110 = 0;
if ( !v109 )
goto LABEL_181;
while ( v109 != ++v110 )
{
if ( aChangeGround[v110 + 8] != v17[v110] )
goto LABEL_78;
}
LABEL_181:
if ( v22 != 1 || aChangeGround[v109 + 8] )
goto LABEL_78;
v111 = *(__int64 **)a1;
v112 = *(_QWORD *)(*(_QWORD *)a1 + 8LL);
if ( (unsigned __int64)(v112 + 40) > 0x1000 )
{
v153 = (__int64 *)off_154A348(0x1008u);
if ( !v153 )
goto LABEL_265;
v40 = (__int64)(v153 + 1);
*v153 = *v111;
*v111 = (__int64)v153;
v111[1] = 40;
}
else
{
v113 = *v111;
v111[1] = v112 + 40;
v40 = v113 + v112 + 8;
if ( !v40 )
goto LABEL_265;
}
v114 = v172;
v115 = 56;
goto LABEL_186;
case 's':
v79 = v18 - (_QWORD)v17;
v80 = 0;
if ( v79 )
{
while ( v79 != ++v80 )
{
if ( aInvalidString[v80 + 8] != v17[v80] )
goto LABEL_104;
}
if ( v22 <= 1 && !aInvalidString[v79 + 8] )
{
v40 = sub_DBF120(a1);
if ( !v40 )
goto LABEL_342;
v106 = v172;
v156 = v22 == 0;
v157 = 33;
v158 = 32;
LABEL_288:
if ( !v156 )
v158 = v157;
*(_BYTE *)v40 = v158;
v108 = 3;
goto LABEL_176;
}
LABEL_104:
v81 = 0;
while ( v79 != ++v81 )
{
if ( aStringLength[v81] != v17[v81] )
goto LABEL_109;
}
if ( v22 <= 1 && !aStringLength[v79] )
{
v40 = sub_DBF120(a1);
if ( !v40 )
goto LABEL_342;
v106 = v172;
if ( v22 )
v166 = 42;
else
v166 = 41;
*(_BYTE *)v40 = v166;
v108 = 2;
LABEL_176:
*(_BYTE *)(v40 + 1) = v108;
*(_BYTE *)(v40 + 2) = 0;
*(_BYTE *)(v40 + 3) = 0;
*(_QWORD *)(v40 + 8) = v106;
*(_QWORD *)(v40 + 16) = 0;
*(_QWORD *)(v40 + 24) = 0;
goto LABEL_39;
}
LABEL_109:
v82 = 0;
while ( v79 != ++v82 )
{
if ( aStartsWith[v82] != v17[v82] )
goto LABEL_114;
}
if ( v22 != 2 || aStartsWith[v79] )
{
LABEL_114:
v83 = 0;
while ( v79 != ++v83 )
{
if ( aSubstringBefor[v83] != v17[v83] )
goto LABEL_119;
}
if ( v22 == 2 && !aSubstringBefor[v79] )
{
v40 = sub_DBF120(a1);
if ( !v40 )
goto LABEL_39;
v136 = v173;
v137 = 37;
v138 = v172;
goto LABEL_241;
}
LABEL_119:
v84 = 0;
while ( v79 != ++v84 )
{
if ( aSubstringAfter[v84] != v17[v84] )
goto LABEL_124;
}
if ( v22 != 2 || aSubstringAfter[v79] )
{
LABEL_124:
v85 = 0;
while ( v79 != ++v85 )
{
if ( aSubstring[v85] != v17[v85] )
goto LABEL_298;
}
if ( !aSubstring[v79] && v22 - 2 <= 1 )
{
v40 = sub_DBF120(a1);
if ( v40 )
{
v86 = v173;
v87 = v22 == 2;
v88 = v172;
v89 = 40;
v90 = 39;
LABEL_131:
if ( !v87 )
v90 = v89;
*(_BYTE *)(v40 + 2) = 0;
*(_BYTE *)v40 = v90;
*(_BYTE *)(v40 + 1) = 3;
*(_BYTE *)(v40 + 3) = 0;
*(_QWORD *)(v40 + 8) = v88;
*(_QWORD *)(v40 + 16) = v86;
*(_QWORD *)(v40 + 24) = 0;
goto LABEL_39;
}
LABEL_342:
v40 = 0;
goto LABEL_39;
}
LABEL_298:
v160 = 0;
while ( v79 != ++v160 )
{
if ( aSum[v160] != v17[v160] )
goto LABEL_78;
}
goto LABEL_306;
}
LABEL_346:
v40 = sub_DBF120(a1);
if ( !v40 )
goto LABEL_39;
v136 = v173;
v137 = 38;
v138 = v172;
LABEL_241:
*(_BYTE *)v40 = v137;
v139 = 3;
LABEL_242:
*(_BYTE *)(v40 + 1) = v139;
*(_BYTE *)(v40 + 2) = 0;
*(_BYTE *)(v40 + 3) = 0;
*(_QWORD *)(v40 + 8) = v138;
*(_QWORD *)(v40 + 16) = v136;
*(_QWORD *)(v40 + 24) = 0;
goto LABEL_39;
}
}
else if ( v22 != 2 || aStartsWith[0] )
{
if ( v22 != 2 || aSubstringAfter[0] )
{
LABEL_306:
if ( v22 != 1 || aSum[v79] )
goto LABEL_78;
if ( *(_BYTE *)(v172 + 1) == 1 )
{
v40 = sub_DBF120(a1);
if ( !v40 )
goto LABEL_39;
v114 = v172;
v115 = 53;
LABEL_186:
*(_BYTE *)v40 = v115;
v116 = 2;
LABEL_187:
*(_BYTE *)(v40 + 1) = v116;
*(_BYTE *)(v40 + 2) = 0;
*(_BYTE *)(v40 + 3) = 0;
*(_QWORD *)(v40 + 8) = v114;
*(_QWORD *)(v40 + 16) = 0;
*(_QWORD *)(v40 + 24) = 0;
goto LABEL_39;
}
LABEL_351:
sub_DBE628(a1, (__int64)"Function has to be applied to node set");
}
goto LABEL_346;
}
v40 = sub_DBF120(a1);
if ( !v40 )
goto LABEL_39;
v136 = v173;
v138 = v172;
*(_BYTE *)v40 = 35;
v139 = 4;
goto LABEL_242;
case 't':
v72 = v18 - (_QWORD)v17;
v73 = 0;
if ( !v72 )
goto LABEL_93;
while ( v72 != ++v73 )
{
if ( aTranslate[v73] != v17[v73] )
goto LABEL_90;
}
if ( v22 != 3 || aTranslate[v72] )
{
LABEL_90:
v74 = 0;
while ( v72 != ++v74 )
{
if ( aTrue[v74] != v17[v74] )
goto LABEL_78;
}
LABEL_93:
if ( v22 || aTrue[v72] )
goto LABEL_78;
v75 = *(__int64 **)a1;
v76 = *(_QWORD *)(*(_QWORD *)a1 + 8LL);
if ( (unsigned __int64)(v76 + 40) > 0x1000 )
{
v152 = (__int64 *)off_154A348(0x1008u);
if ( !v152 )
goto LABEL_265;
v40 = (__int64)(v152 + 1);
*v152 = *v75;
*v75 = (__int64)v152;
v75[1] = 40;
v78 = 48;
}
else
{
v77 = *v75;
v75[1] = v76 + 40;
v40 = v77 + v76 + 8;
if ( !v40 )
goto LABEL_265;
v78 = 48;
}
goto LABEL_213;
}
v40 = sub_DBF120(a1);
if ( !v40 )
goto LABEL_39;
v136 = v173;
v137 = 45;
v138 = v172;
goto LABEL_241;
default:
goto LABEL_78;
}
}