// // sub_E86330 from 0xe86330 to 0xe864b8 (392 bytes) // // 3 xrefs: // > sub_E86CE0 @ 0xe86dbc // > sub_E8883C @ 0xe888a4 // > jpeg_resync_to_restart @ 0xe88f94 // // 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:10:48 +0000 // __int64 __fastcall sub_E86330(_QWORD *a1) { unsigned __int8 **v1; // x21 __int64 v3; // x19 unsigned __int8 *v4; // x0 unsigned __int8 *v5; // x20 unsigned __int8 *v6; // x1 int v7; // w22 int v9; // w3 __int64 v10; // x2 v1 = (unsigned __int8 **)a1[5]; v3 = (__int64)v1[1]; v4 = *v1; if ( !v3 ) goto LABEL_14; while ( 1 ) { --v3; v5 = v4 + 1; if ( *v4 != 255 ) { while ( 1 ) { v6 = v5; ++*(_DWORD *)(a1[77] + 36LL); v1[1] = (unsigned __int8 *)v3; *v1 = v5; if ( !v3 ) { if ( !((unsigned int (__fastcall *)(_QWORD *))v1[3])(a1) ) return 0; v6 = *v1; v3 = (__int64)v1[1]; } v5 = v6 + 1; --v3; if ( *v6 == 255 ) goto LABEL_10; } } do { LABEL_10: while ( v3 ) { v7 = *v5++; --v3; if ( v7 != 255 ) goto LABEL_12; } if ( !((unsigned int (__fastcall *)(_QWORD *))v1[3])(a1) ) return 0; v5 = *v1 + 1; v7 = **v1; v3 = (__int64)(v1[1] - 1); } while ( v7 == 255 ); LABEL_12: if ( v7 ) break; v4 = v5; *(_DWORD *)(a1[77] + 36LL) += 2; *v1 = v5; v1[1] = (unsigned __int8 *)v3; if ( !v3 ) { LABEL_14: if ( !((unsigned int (__fastcall *)(_QWORD *))v1[3])(a1) ) return 0; v4 = *v1; v3 = (__int64)v1[1]; } } v9 = *(_DWORD *)(a1[77] + 36LL); if ( v9 ) { v10 = *a1; *(_DWORD *)(v10 + 44) = v9; *(_DWORD *)(v10 + 40) = 119; *(_DWORD *)(*a1 + 48LL) = v7; (*(void (__fastcall **)(_QWORD *, __int64))(*a1 + 8LL))(a1, 0xFFFFFFFFLL); *(_DWORD *)(a1[77] + 36LL) = 0; } *((_DWORD *)a1 + 143) = v7; *v1 = v5; v1[1] = (unsigned __int8 *)v3; return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source