// // sub_912F74 from 0x912f74 to 0x91302c (184 bytes) // // 1 xrefs: // > sub_91303C @ 0x913054 // // 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:04:28 +0000 // unsigned __int8 *__fastcall sub_912F74(unsigned __int8 *a1, int a2, int a3) { int v3; // r9 int v4; // r10 unsigned __int8 *v5; // r7 unsigned __int8 *v6; // r12 unsigned __int8 *v7; // r8 unsigned __int8 *v8; // r1 unsigned __int8 *v9; // r2 unsigned __int8 *result; // r0 int v11; // r9 char *v12; // r11 int v13; // lr int v14; // t1 int v15; // r6 int v16; // r5 int v17; // t1 int v18; // r3 int v19; // r3 int v20; // r4 int v21; // r3 _BYTE *v22; // [sp+0h] [bp-Ch] char *v23; // [sp+4h] [bp-8h] v3 = 2 * a3; v4 = ~(2 * a2); v5 = a1; v6 = &a1[a2 - 1]; v7 = &a1[16 - a2]; v8 = &a1[-a2]; v9 = (unsigned __int8 *)off_C76020; result = &a1[v4]; v23 = (char *)off_C7602C; v11 = v3 + 1; v12 = (char *)off_C76028; v22 = off_C76024; do { while ( 1 ) { v14 = *++result; v13 = v14; v15 = *v8; v16 = *v5; v17 = *++v6; v18 = v13 - v17; if ( v11 >= 4 * v9[v15 - v16] + v9[v13 - v17] ) break; ++v8; ++v5; if ( v8 == v7 ) return result; } ++v8; ++v5; v19 = v23[v18] + 3 * (v16 - v15); v20 = v19 + 3; v21 = v16 - v12[(v19 + 4) >> 3]; *(v8 - 1) = v22[v15 + v12[v20 >> 3]]; *(v5 - 1) = v22[v21]; } while ( v8 != v7 ); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source