// // GJSmartTemplate::isUnrequired from 0xb0cd34 to 0xb0cedc (424 bytes) // // 4 xrefs: // > GJSmartTemplate::logTemplateStatus @ 0xb11dc4 // > GJSmartTemplate::getTemplateState @ 0xb137b4 // > BrowseSmartTemplateLayer::init @ 0xb19198 // > @ 0xbc380 // // 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:01:26 +0000 // bool __fastcall GJSmartTemplate::isUnrequired(__int64 a1, unsigned __int8 *a2) { int v2; // w0 unsigned __int64 v3; // x0 unsigned __int8 *v4; // x1 unsigned int v5; // w2 unsigned int v6; // w3 unsigned int v7; // w5 _BOOL4 v8; // w4 int v9; // w6 int v10; // w7 int v11; // w8 int v12; // w0 _BOOL8 result; // x0 v2 = *a2; if ( (v2 & 1) != 0 ) { v3 = *((_QWORD *)a2 + 1); if ( v3 <= 1 ) goto LABEL_10; v4 = *((unsigned __int8 **)a2 + 2); v5 = v4[1] != 48; if ( v3 == 2 ) goto LABEL_10; v6 = v4[2] != 48; if ( v3 == 3 ) goto LABEL_10; v7 = v4[3] != 48; if ( v3 == 4 ) goto LABEL_10; v8 = v4[4] != 48; if ( v3 == 5 ) goto LABEL_10; v9 = v4[5]; if ( v3 == 6 ) goto LABEL_10; v10 = v4[6]; if ( v3 == 7 ) goto LABEL_10; v11 = v4[7]; if ( v3 == 8 ) goto LABEL_10; } else { v12 = v2 >> 1; if ( v12 <= 1 || (v5 = a2[2] != 48, v12 == 2) || (v6 = a2[3] != 48, v12 == 3) || (v7 = a2[4] != 48, v12 == 4) || (v8 = a2[5] != 48, v12 == 5) || (v9 = a2[6], v12 == 6) || (v10 = a2[7], v12 == 7) || (v11 = a2[8], v12 == 8) ) { LABEL_10: sub_B0BD50(); } v4 = a2 + 1; } if ( v9 == 48 || (result = 1, (v7 ^ 1) < v5) ) { if ( v10 == 48 || (result = 1, !v8 < v5) ) { if ( v11 == 48 || (result = 1, (v7 ^ 1) < v6) ) { if ( v4[8] == 48 || (result = 1, !v8 < v6) ) { result = 0; if ( (v6 ^ 1) > v5 ) return !v8 > v7; } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source