// // sub_6F7E14 from 0x6f7e14 to 0x6f7f42 (302 bytes) // // 2 xrefs: // > sub_6F85BC @ 0x6f8aa4 // > sub_6FF874 @ 0x6ffbd4 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // int __fastcall sub_6F7E14(int result, _DWORD *a2) { int v2; // r5 int v3; // r3 __int64 v5; // r2 int v6; // r1 int v7; // r1 int v8; // r2 int v9; // r0 int v10; // r1 int v11; // r2 int v12; // r3 if ( !result ) return result; v2 = result; v3 = *(_DWORD *)(result + 44); if ( v3 < 0 ) goto LABEL_9; if ( v3 <= 100 ) { result = -1717986847 * v3; HIDWORD(v5) = 255 * v3 / 100; if ( !HIDWORD(v5) ) goto LABEL_9; LODWORD(v5) = a2[200]; if ( (int)v5 <= 11 ) { LABEL_5: v6 = *((_DWORD *)&unk_9FFD98 + (v5 & ~((int)v5 >> 31)) + 18); LODWORD(v5) = a2[208]; v7 = (v6 * HIDWORD(v5)) >> 3; a2[201] = v7; if ( (int)v5 <= 11 ) goto LABEL_6; goto LABEL_16; } } else { LODWORD(v5) = a2[200]; HIDWORD(v5) = 255; if ( (int)v5 <= 11 ) goto LABEL_5; } LODWORD(v5) = a2[208]; v7 = a2[201]; if ( (int)v5 <= 11 ) { LABEL_6: v8 = (*((_DWORD *)&unk_9FFD98 + (v5 & ~((int)v5 >> 31)) + 18) * HIDWORD(v5)) >> 3; v9 = a2[216]; a2[209] = v8; v10 = v7 | v8; if ( v9 <= 11 ) goto LABEL_7; LABEL_17: result = a2[224]; LODWORD(v5) = a2[217] | v10; if ( result > 11 ) { LABEL_8: if ( !(a2[225] | (unsigned int)v5) ) goto LABEL_9; LABEL_19: result = sub_736BB8(a2 + 136, 1065353216); a2[135] = 1; v12 = *(_DWORD *)(v2 + 52); if ( v12 <= 100 ) goto LABEL_10; LABEL_20: a2[591] = 100; return result; } goto LABEL_18; } LABEL_16: v9 = a2[216]; v10 = v7 | a2[209]; if ( v9 > 11 ) goto LABEL_17; LABEL_7: LODWORD(v5) = *((_DWORD *)&unk_9FFD98 + (v9 & ~(v9 >> 31)) + 18); result = a2[224]; v11 = ((int)v5 * HIDWORD(v5)) >> 3; a2[217] = v11; LODWORD(v5) = v11 | v10; if ( result > 11 ) goto LABEL_8; LABEL_18: result = (int)&unk_9FFD98 + 4 * (result & ~(result >> 31)); HIDWORD(v5) = (*(_DWORD *)(result + 72) * HIDWORD(v5)) >> 3; a2[225] = HIDWORD(v5); if ( v5 ) goto LABEL_19; LABEL_9: v12 = *(_DWORD *)(v2 + 52); if ( v12 > 100 ) goto LABEL_20; LABEL_10: if ( v12 < 0 ) v12 = 0; a2[591] = v12; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source