// // sub_BC790 from 0xbc790 to 0xbc89c (268 bytes) // // 1 xrefs: // > sub_BC9B0 @ 0xbc9f0 // // 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 12:14:41 +0000 // float sub_BC790() { float *v0; // x19 _DWORD *v1; // x21 __int64 v2; // x0 int v3; // w8 float result; // s0 char v5; // nf char v6; // vf int i; // w2 int v8; // w22 bool v9; // zf __int64 v10; // x8 __int64 v11; // x9 __int64 v12; // x0 __int64 v13; // x8 __int64 v14; // x9 float v15; // s0 float v16; // s2 float v17; // s16 float v18; // s0 float v19; // s3 float v20; // s4 float v21; // s2 float v22; // s3 float v23; // s1 float v24; // s5 float v25; // s4 float v26; // s1 float v27; // s6 float v28; // s7 float v29; // s5 float v30; // s6 float *v31; // x13 float v32; // s7 float v33; // s4 float v34; // s5 __int64 v35; // x9 int v36; // w15 int v37; // w14 int v38; // w17 int v39; // w16 int v40; // w1 float v41; // s3 float v42; // s2 float v43; // s4 __int64 v44; // x12 int v45; // w11 int v46; // w13 v2 = sub_BDBF8(); if ( v5 != v6 ) { i = 2; } else { v2 = sub_BC120(v2, v0); for ( i = 8; ; i = v8 ) { v8 = 4 * i; if ( 4 * i >= 2 * *v1 ) break; v2 = sub_BDC5C(v2); } v3 = 2 * *v1; } v9 = v3 == 4 * i; v10 = i; v11 = 0; if ( v9 ) { v12 = sub_BDC48(v2); while ( v14 < v13 ) { v15 = sub_BDB7C(v12); v17 = v16 + v15; v18 = v15 - v16; v21 = v20 + v19; v22 = v19 - v20; v25 = v24 + v23; v26 = v23 - v24; v29 = v28 + v27; v30 = v27 - v28; *(v31 - 1) = v21 + v17; v32 = v29 + v25; v33 = v25 - v29; v34 = v18 - v30; result = v30 + v18; v14 = v35 + 2; *v31 = v32; v0[v36] = v17 - v21; v0[(int)v12] = v33; v0[v37] = v34; v0[v38] = v22 + v26; v0[v39] = result; v0[v40] = v26 - v22; } } else { while ( v11 < v10 ) { result = sub_BDBB4(v2); *(float *)(v44 + 4) = v43 + v42; v0[v45] = result; v0[v46] = v42 - v41; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source