// // sub_85F80 from 0x85f80 to 0x86082 (258 bytes) // // 1 xrefs: // > sub_85790 @ 0x85972 // // 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:20 +0000 // int __fastcall sub_85F80(_DWORD *a1, _WORD *a2, int a3, int a4, int a5) { int v5; // r4 int v7; // r0 unsigned int v8; // r9 bool v9; // cc int v10; // r10 unsigned int v11; // r2 _DWORD *v12; // r0 unsigned __int64 v13; // kr00_8 unsigned int i; // r2 int v15; // r5 int v16; // r4 int v17; // r0 _DWORD *v21; // [sp+Ch] [bp-3Ch] _DWORD *v22; // [sp+10h] [bp-38h] unsigned int v23; // [sp+14h] [bp-34h] unsigned int v24; // [sp+18h] [bp-30h] unsigned int v25; // [sp+1Ch] [bp-2Ch] int v26; // [sp+20h] [bp-28h] int v27; // [sp+24h] [bp-24h] while ( a3 ) { v7 = *a1; v8 = (unsigned __int8)BYTE2(*a1); v9 = v8 > 0x58; if ( v8 <= 0x58 ) { v5 = a1[1]; v27 = BYTE2(v5); v9 = BYTE2(v5) > 0x58u; } if ( v9 ) return 13; v10 = (__int16)v7; v21 = a1; --a3; a2[1] = v5; *a2 = v7; a2 += 2; v11 = a5 - 1; v26 = (__int16)v5; v12 = a1; while ( v11 ) { v22 = v12 + 2; v23 = v11; if ( v11 >= 8 ) v11 = 8; v24 = v11; v13 = *((_QWORD *)v12 + 1); for ( i = 0; i < v24; i = v25 + 1 ) { v15 = v13 & 0xF; v25 = i; v10 = sub_85EDC(v15, v10, asc_40A28[v8]); v26 = sub_85EDC(BYTE4(v13) & 0xF, v26, asc_40A28[v27]); a2[1] = v26; *a2 = v10; v16 = v27 + dword_40ADC[BYTE4(v13) & 0xF]; v13 = __PAIR64__(HIDWORD(v13) >> 4, (unsigned int)v13 >> 4); if ( v16 >= 88 ) v16 = 88; v17 = dword_40ADC[v15] + v8; v5 = v16 & ~(v16 >> 31); v27 = v5; if ( v17 >= 88 ) v17 = 88; v8 = v17 & ~(v17 >> 31); a2 += 2; } v11 = v23 - v24; a1 = v21; v12 = v22; } a1 = (_DWORD *)((char *)a1 + a4); } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source