// // sub_CB798 from 0xcb798 to 0xcb8f4 (348 bytes) // // 1 xrefs: // > sub_CB2F0 @ 0xcb6c8 // // 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 11:41:56 +0000 // int *__fastcall sub_CB798(int a1, int a2, _DWORD *a3) { int *v6; // r0 int *v7; // r5 int v8; // r0 int v9; // r0 int v10; // r0 int v11; // r0 int v12; // r1 int *v13; // r4 int i; // r10 unsigned int v15; // r0 int v16; // r0 int v17; // r6 unsigned int v18; // r0 int v19; // r0 int v20; // r1 bool v21; // cc int v23; // r1 int v24; // r6 int v25; // r0 int *v26; // r4 int j; // r6 int v28; // r0 int v29; // r0 int v30; // [sp+0h] [bp-20h] v6 = (int *)sub_8112C(a1, 1, 3208); v7 = v6; if ( !v6 ) goto LABEL_20; v30 = *(_DWORD *)(a2 + 28); memset(v6, 0, 0xC88u); v8 = sub_C91BC(a3, 1u); if ( v8 < 0 ) goto LABEL_20; if ( v8 ) { v9 = sub_C91BC(a3, 4u); *v7 = v9 + 1; if ( v9 < 0 ) goto LABEL_20; } else { *v7 = 1; } v10 = sub_C91BC(a3, 1u); if ( v10 < 0 ) goto LABEL_20; if ( !v10 ) goto LABEL_19; v11 = sub_C91BC(a3, 8u); v12 = v11 + 1; v7[289] = v11 + 1; if ( v11 < 0 ) { LABEL_20: sub_CB8F4(a1, v7); return nullptr; } v13 = v7 + 290; for ( i = 0; i < v12; ++i ) { v15 = sub_CBBF8(*(_DWORD *)(a2 + 4)); v16 = sub_C91BC(a3, v15); *v13 = v16; v17 = v16; v18 = sub_CBBF8(*(_DWORD *)(a2 + 4)); v19 = sub_C91BC(a3, v18); v13[256] = v19; if ( v17 == v19 || (v19 | v17) < 0 ) goto LABEL_20; v20 = *(_DWORD *)(a2 + 4); v21 = v17 < v20; if ( v17 < v20 ) v21 = v19 < v20; if ( !v21 ) goto LABEL_20; ++v13; v12 = v7[289]; } LABEL_19: if ( sub_C91BC(a3, 2u) ) goto LABEL_20; v23 = *v7; if ( *v7 >= 2 ) { v24 = 0; while ( v24 < *(_DWORD *)(a2 + 4) ) { v25 = sub_C91BC(a3, 4u); v7[v24 + 1] = v25; if ( v25 >= 0 ) { v23 = *v7; ++v24; if ( v25 < *v7 ) continue; } goto LABEL_20; } } v26 = v7 + 273; for ( j = 0; j < v23; ++j ) { sub_C91BC(a3, 8u); v28 = sub_C91BC(a3, 8u); *(v26 - 16) = v28; if ( v28 < 0 ) goto LABEL_20; if ( v28 >= *(_DWORD *)(v30 + 16) ) goto LABEL_20; v29 = sub_C91BC(a3, 8u); *v26 = v29; if ( v29 < 0 || v29 >= *(_DWORD *)(v30 + 20) ) goto LABEL_20; ++v26; v23 = *v7; } return v7; }
GD Web Decomp Icon

GD Web Decomp

Raw Source