// // sub_F24C3C from 0xf24c3c to 0xf2507c (1088 bytes) // // 1 xrefs: // > sub_F267F4 @ 0xf268bc // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:12:45 +0000 // __int64 __fastcall sub_F24C3C(__int64 a1, char *a2) { char *v4; // x21 __int64 v5; // x26 __int64 v6; // x25 __int64 v7; // x19 char *v8; // x23 int v9; // w22 int v10; // w24 __int64 v11; // x19 __int64 v12; // x0 int v13; // w0 char *v14; // x2 __int64 v15; // x1 __int64 v16; // x0 __int64 v17; // x0 char *v18; // x1 __int64 v19; // x23 int v20; // w1 __int64 v21; // x28 int v22; // w1 int v23; // w0 int v24; // w23 __int64 v26; // x0 __int64 v27; // x1 __int64 v28; // x2 unsigned __int64 v29; // [xsp+68h] [xbp+68h] __int64 v30; // [xsp+70h] [xbp+70h] char v31; // [xsp+80h] [xbp+80h] BYREF v4 = a2; v5 = 0; v29 = ((unsigned __int64)**(unsigned __int8 **)(a1 + 56) >> 5) & 3; v6 = *(_QWORD *)(a1 + 16); v7 = *(_QWORD *)(a1 + 48) + 732 * v29; v30 = *(_QWORD *)(a1 + 48); v8 = &v31; v9 = *(_DWORD *)(v7 + 1304); v10 = *(_DWORD *)(v7 + 1324); *((_DWORD *)a2 + 210) = -1; do { v11 = *(_QWORD *)(a1 + 32); *((_DWORD *)v8 + 210) = v5; *((_DWORD *)v8 + 216) = sub_F24288(a1, (__int64)v8, v11, v5); *(_QWORD *)v8 = (int)off_15691E0(v6, v11); v12 = 0; if ( v10 ) v12 = (int)(off_15691F8(v6, v11, &dword_11E7880[16]) * v10 + 128) >> 8; *((_QWORD *)v8 + 1) = v12; *((_QWORD *)v8 + 2) = word_11E6540[v5]; v13 = sub_F144A8(a1, (__int64)v8); *((_QWORD *)v8 + 3) = v13; if ( !v5 ) { *((_QWORD *)v8 + 4) = ((*(_QWORD *)v8 + *((_QWORD *)v8 + 1)) << 8) + (v13 + *((_QWORD *)v8 + 2)) * v9; LABEL_57: v17 = *(_QWORD *)(a1 + 24); v18 = v8; v8 = v4; *(_QWORD *)(a1 + 24) = *(_QWORD *)(a1 + 32); v4 = v18; *(_QWORD *)(a1 + 32) = v17; goto LABEL_58; } v14 = v8 + 72; v15 = *((_WORD *)v8 + 37) != 0; if ( *((_WORD *)v8 + 38) ) ++v15; if ( *((_WORD *)v8 + 39) ) ++v15; while ( 1 ) { if ( *((_WORD *)v14 + 4) ) ++v15; if ( v15 == 11 ) goto LABEL_55; if ( *((_WORD *)v14 + 5) ) ++v15; if ( v15 == 11 ) goto LABEL_55; if ( *((_WORD *)v14 + 6) ) ++v15; if ( v15 == 11 ) goto LABEL_55; if ( *((_WORD *)v14 + 7) ) ++v15; if ( v15 == 11 ) goto LABEL_55; if ( *((_WORD *)v14 + 8) ) ++v15; if ( v15 == 11 ) goto LABEL_55; if ( *((_WORD *)v14 + 9) ) ++v15; if ( v15 == 11 ) goto LABEL_55; if ( *((_WORD *)v14 + 10) ) ++v15; if ( v15 == 11 ) goto LABEL_55; if ( *((_WORD *)v14 + 11) ) ++v15; if ( v15 == 11 ) goto LABEL_55; if ( *((_WORD *)v14 + 12) ) ++v15; if ( v15 == 11 ) goto LABEL_55; if ( *((_WORD *)v14 + 13) ) ++v15; if ( v15 == 11 ) goto LABEL_55; if ( *((_WORD *)v14 + 14) ) ++v15; if ( v15 == 11 ) goto LABEL_55; if ( *((_WORD *)v14 + 15) ) ++v15; if ( v15 == 11 ) { LABEL_55: v16 = ((*(_QWORD *)v8 + *((_QWORD *)v8 + 1)) << 8) + (v13 + *((_QWORD *)v8 + 2)) * v9; *((_QWORD *)v8 + 4) = v16; goto LABEL_56; } v14 += 32; if ( v14 == v8 + 584 ) break; if ( *((_WORD *)v14 + 1) ) ++v15; if ( v15 != 11 ) { if ( *((_WORD *)v14 + 2) ) ++v15; if ( v15 != 11 ) { if ( *((_WORD *)v14 + 3) ) ++v15; if ( v15 != 11 ) continue; } } goto LABEL_55; } v26 = v13 + 2240LL; v27 = *((_QWORD *)v8 + 2); v28 = *(_QWORD *)v8 + *((_QWORD *)v8 + 1); *((_QWORD *)v8 + 3) = v26; v16 = (v28 << 8) + (v26 + v27) * v9; *((_QWORD *)v8 + 4) = v16; LABEL_56: if ( *((_QWORD *)v4 + 4) > v16 ) goto LABEL_57; LABEL_58: ++v5; } while ( v5 != 4 ); if ( a2 != v4 ) memcpy(a2, v4, 0x368u); v19 = 732 * v29; v20 = *((_DWORD *)a2 + 210); *((_QWORD *)a2 + 4) = ((*(_QWORD *)a2 + *((_QWORD *)a2 + 1)) << 8) + (*((_QWORD *)a2 + 3) + *((_QWORD *)a2 + 2)) * *(int *)(v30 + 732 * v29 + 1316); sub_F1C868((_QWORD *)a1, v20); if ( !*((_WORD *)a2 + 432) && *(_QWORD *)a2 > *(int *)(v30 + v19 + 1300) ) { v21 = v30 + v19 + 608; v22 = abs16(*((_WORD *)a2 + 24)); v23 = abs16(*((_WORD *)a2 + 21)); v24 = abs16(*((_WORD *)a2 + 25)); if ( v23 >= v22 ) v23 = v22; if ( v23 < v24 ) v23 = v24; if ( v23 > *(_DWORD *)(v21 + 688) ) *(_DWORD *)(v21 + 688) = v23; } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source