// // sub_998ABA from 0x998aba to 0x998b64 (170 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:06:42 +0000 // _DWORD *__fastcall sub_998ABA(_DWORD *a1, int *a2, int *a3) { _DWORD *v3; // r12 bool v4; // zf int v5; // r3 int v6; // lr int v7; // r8 int v8; // r6 _DWORD *result; // r0 int *v10; // r7 int v11; // r4 int v12; // t1 int v13; // r1 _DWORD *v14; // r5 int *v15; // r1 int *v16; // r6 int v17; // r7 int v18; // t1 v3 = a1; v4 = a1 == nullptr; if ( !a1 ) { v3 = (_DWORD *)*a3; v4 = *a3 == 0; } if ( v4 ) return nullptr; v5 = *v3; if ( *v3 ) { v6 = 0; v7 = *a2; v8 = *v3; result = v3; while ( 1 ) { v10 = a2 + 1; v11 = *a2; if ( !v7 ) break; while ( v11 != v8 ) { v12 = *v10++; v11 = v12; if ( !v12 ) { v5 = v8; goto LABEL_12; } } v8 = v3[++v6]; result = &v3[v6]; if ( !v8 ) goto LABEL_11; } v6 = 0; result = v3; LABEL_12: if ( v5 ) { v14 = &v3[v6]; v15 = a2 + 1; while ( 1 ) { v16 = v15; v17 = v7; if ( v7 ) break; LABEL_17: v5 = v3[++v6]; v14 = &v3[v6]; if ( !v5 ) goto LABEL_18; } while ( v17 != v5 ) { v18 = *v16++; v17 = v18; if ( !v18 ) goto LABEL_17; } *v14 = 0; v13 = (int)&v3[v6 + 1]; } else { LABEL_18: v13 = 0; } } else { LABEL_11: v13 = 0; result = nullptr; } *a3 = v13; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source