// // sub_1006EAE68 from 0x1006eae68 to 0x1006eb1c8 (864 bytes) // // 1 xrefs: // > sub_1006EBD5C @ 0x1006ebde8 // // 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 11:12:38 +0000 // __int64 __fastcall sub_1006EAE68(__int64 a1, _QWORD *a2, _BYTE *a3, __int64 a4, __int64 *a5) { char v10; // w28 unsigned int v11; // w25 __int64 v13; // x2 __int64 v14; // x4 int v15; // w0 int v16; // w8 __int64 v17; // x26 __int64 *v18; // x0 __int64 v20; // x21 _QWORD *v21; // x20 int *v22; // x27 void **v23; // x20 void **v24; // [xsp+8h] [xbp-58h] if ( !a4 ) { v13 = 100; v14 = 338; goto LABEL_20; } v10 = *a3; v11 = *a3 & 0xFE; if ( v11 > 6 || ((1 << (*a3 & 0xFE)) & 0x55) == 0 ) { v13 = 102; v14 = 347; goto LABEL_20; } if ( (v10 & 0xFB) != 1 ) { if ( (*a3 & 0xFE) == 0 ) { if ( a4 == 1 ) return sub_1006DE4A4(a1, a2); v13 = 102; v14 = 357; goto LABEL_20; } v15 = sub_1006D0D88(a1 + 104); v16 = v15 + 7; if ( v15 + 7 < 0 ) v16 = v15 + 14; v17 = v16 >> 3; if ( (v17 << (v11 != 2)) + 1 != a4 ) { v13 = 102; v14 = 370; goto LABEL_20; } if ( a5 ) { v18 = nullptr; } else { v18 = (__int64 *)sub_1006D1C30(); a5 = v18; if ( !v18 ) return 0; } v24 = (void **)v18; sub_1006D1DF8((__int64)a5); v21 = sub_1006D1F64(a5); v22 = (int *)sub_1006D1F64(a5); if ( !v22 || !sub_1006D1318(a3 + 1, v17, (__int64)v21) ) goto LABEL_27; if ( (sub_1006D156C((__int64)v21, a1 + 104) & 0x80000000) == 0 ) { sub_100706FB0(16, 103, 102, "ecp_oct.c", 389); LABEL_27: v20 = 0; v23 = v24; LABEL_28: sub_1006D1EE0((__int64)a5); if ( v23 ) sub_1006D1C94(v23); return v20; } if ( v11 == 2 ) { if ( !(unsigned int)sub_1006EBB94(a1, a2, v21, v10 & 1, a5) ) goto LABEL_27; goto LABEL_43; } if ( !sub_1006D1318(&a3[v17 + 1], v17, (__int64)v22) ) goto LABEL_27; if ( (sub_1006D156C((__int64)v22, a1 + 104) & 0x80000000) == 0 ) { sub_100706FB0(16, 103, 102, "ecp_oct.c", 401); goto LABEL_27; } if ( v11 == 6 ) { if ( v22[2] <= 0 ) { if ( (v10 & 1) != 0 ) { LABEL_46: sub_100706FB0(16, 103, 102, "ecp_oct.c", 406); goto LABEL_27; } } else if ( (v10 & 1) != (**(_BYTE **)v22 & 1) ) { goto LABEL_46; } } if ( !(unsigned int)sub_1006DE57C(a1, a2) ) goto LABEL_27; LABEL_43: v23 = v24; if ( (int)sub_1006DE900(a1, a2) <= 0 ) { sub_100706FB0(16, 103, 107, "ecp_oct.c", 417); v20 = 0; } else { v20 = 1; } goto LABEL_28; } v13 = 102; v14 = 351; LABEL_20: sub_100706FB0(16, 103, v13, "ecp_oct.c", v14); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source