// // sub_993910 from 0x993910 to 0x9939f8 (232 bytes) // // 1 xrefs: // > std::__ndk1::codecvt::do_out @ 0x970672 // // 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:37 +0000 // int __fastcall sub_993910(_BYTE *a1, unsigned int **a2, unsigned int a3, unsigned int a4) { _BYTE *v7; // r5 int v8; // r10 unsigned int *v9; // r1 bool v10; // cf unsigned int v11; // r2 int v12; // r0 unsigned int v13; // r6 int v14; // r0 unsigned int *v18; // [sp+4h] [bp-114h] BYREF _BYTE v19[256]; // [sp+8h] [bp-110h] BYREF v7 = v19; v8 = 0; v9 = *a2; v18 = v9; if ( a1 ) v7 = a1; else a4 = 256; if ( a4 && v9 ) { v8 = 0; do { v10 = a3 >= a4; if ( a3 < a4 ) v10 = a3 >= 0x21; if ( !v10 ) break; v11 = a3; if ( a3 >= a4 ) v11 = a4; a3 -= v11; v12 = sub_993A00(v7, &v18); if ( v12 == -1 ) { v8 = -1; v9 = v18; a4 = 0; break; } v9 = v18; if ( v7 != v19 ) { a4 -= v12; v7 += v12; } v8 += v12; } while ( a4 && v18 ); } if ( v9 && a4 && a3 ) { v13 = 1 - a3; while ( 1 ) { v14 = sub_993870(v7, *v9); if ( (unsigned int)(v14 + 1) <= 1 ) break; a4 -= v14; ++v8; v9 = ++v18; if ( a4 ) { v7 += v14; if ( v13++ != 0 ) continue; } goto LABEL_32; } if ( v14 ) v8 = -1; else v18 = nullptr; } LABEL_32: if ( a1 ) *a2 = v18; return v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source