annotate _deleted.cpp @ 1309:995d2f8ad71b

small fix
author Ritor1
date Mon, 24 Jun 2013 21:05:10 +0600
parents 93287fb98441
children cc9a3a24d61d
rev   line source
732
93287fb98441 Missing file
Nomad
parents:
diff changeset
1
93287fb98441 Missing file
Nomad
parents:
diff changeset
2 /*
93287fb98441 Missing file
Nomad
parents:
diff changeset
3 //----- (004AC1C9) --------------------------------------------------------
93287fb98441 Missing file
Nomad
parents:
diff changeset
4 int __thiscall _4AC1C9_get_cpu_speed(unsigned int _this, Vec4_int_ *a2)
93287fb98441 Missing file
Nomad
parents:
diff changeset
5 {
93287fb98441 Missing file
Nomad
parents:
diff changeset
6 unsigned int v2; // esi@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
7 __int16 v3; // di@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
8 signed int v4; // ebx@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
9 int v5; // ecx@3
93287fb98441 Missing file
Nomad
parents:
diff changeset
10 Vec4_int_ *v6; // eax@10
93287fb98441 Missing file
Nomad
parents:
diff changeset
11 Vec4_int_ *v7; // esi@14
93287fb98441 Missing file
Nomad
parents:
diff changeset
12 int result; // eax@16
93287fb98441 Missing file
Nomad
parents:
diff changeset
13 char *v9; // esi@16
93287fb98441 Missing file
Nomad
parents:
diff changeset
14 Vec4_int_ a1; // [sp+Ch] [bp-34h]@10
93287fb98441 Missing file
Nomad
parents:
diff changeset
15 Vec4_int_ v11; // [sp+1Ch] [bp-24h]@14
93287fb98441 Missing file
Nomad
parents:
diff changeset
16 Vec4_int_ Dst; // [sp+2Ch] [bp-14h]@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
17 int v13; // [sp+3Ch] [bp-4h]@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
18
93287fb98441 Missing file
Nomad
parents:
diff changeset
19 v2 = _this;
93287fb98441 Missing file
Nomad
parents:
diff changeset
20 v3 = _4382BC_get_cpu_speed_sub0(_this);
93287fb98441 Missing file
Nomad
parents:
diff changeset
21 v13 = _4383ED_get_cpu_speed_sub2();
93287fb98441 Missing file
Nomad
parents:
diff changeset
22 v4 = 0;
93287fb98441 Missing file
Nomad
parents:
diff changeset
23 memset(&Dst, 0, 0x10u);
93287fb98441 Missing file
Nomad
parents:
diff changeset
24 if ( v3 < 0 )
93287fb98441 Missing file
Nomad
parents:
diff changeset
25 goto LABEL_19;
93287fb98441 Missing file
Nomad
parents:
diff changeset
26 if ( (signed int)v2 > 0 )
93287fb98441 Missing file
Nomad
parents:
diff changeset
27 {
93287fb98441 Missing file
Nomad
parents:
diff changeset
28 if ( (signed int)v2 > 150 )
93287fb98441 Missing file
Nomad
parents:
diff changeset
29 {
93287fb98441 Missing file
Nomad
parents:
diff changeset
30 v5 = (int)a2;
93287fb98441 Missing file
Nomad
parents:
diff changeset
31 }
93287fb98441 Missing file
Nomad
parents:
diff changeset
32 else
93287fb98441 Missing file
Nomad
parents:
diff changeset
33 {
93287fb98441 Missing file
Nomad
parents:
diff changeset
34 v5 = 4000 * v2;
93287fb98441 Missing file
Nomad
parents:
diff changeset
35 v4 = 1;
93287fb98441 Missing file
Nomad
parents:
diff changeset
36 }
93287fb98441 Missing file
Nomad
parents:
diff changeset
37 }
93287fb98441 Missing file
Nomad
parents:
diff changeset
38 else
93287fb98441 Missing file
Nomad
parents:
diff changeset
39 {
93287fb98441 Missing file
Nomad
parents:
diff changeset
40 v5 = 4000 * dword_4F031C[(unsigned __int16)v3];
93287fb98441 Missing file
Nomad
parents:
diff changeset
41 }
93287fb98441 Missing file
Nomad
parents:
diff changeset
42 if ( v13 & 0x10 && !v4 )
93287fb98441 Missing file
Nomad
parents:
diff changeset
43 {
93287fb98441 Missing file
Nomad
parents:
diff changeset
44 if ( v2 )
93287fb98441 Missing file
Nomad
parents:
diff changeset
45 v6 = _4AC4FD_get_cpu_clocks_rdtsc(v5, &a1);
93287fb98441 Missing file
Nomad
parents:
diff changeset
46 else
93287fb98441 Missing file
Nomad
parents:
diff changeset
47 v6 = _4AC33A_get_cpu_clocks_QPC(v5, &a1);
93287fb98441 Missing file
Nomad
parents:
diff changeset
48 goto LABEL_14;
93287fb98441 Missing file
Nomad
parents:
diff changeset
49 }
93287fb98441 Missing file
Nomad
parents:
diff changeset
50 if ( (unsigned __int16)v3 < 3u )
93287fb98441 Missing file
Nomad
parents:
diff changeset
51 {
93287fb98441 Missing file
Nomad
parents:
diff changeset
52 LABEL_19:
93287fb98441 Missing file
Nomad
parents:
diff changeset
53 v7 = &Dst;
93287fb98441 Missing file
Nomad
parents:
diff changeset
54 goto LABEL_16;
93287fb98441 Missing file
Nomad
parents:
diff changeset
55 }
93287fb98441 Missing file
Nomad
parents:
diff changeset
56 v6 = _4AC277_get_cpu_speed_sub3(v5, &a1);
93287fb98441 Missing file
Nomad
parents:
diff changeset
57 LABEL_14:
93287fb98441 Missing file
Nomad
parents:
diff changeset
58 v11.x = v6->x;
93287fb98441 Missing file
Nomad
parents:
diff changeset
59 v11.y = v6->y;
93287fb98441 Missing file
Nomad
parents:
diff changeset
60 v11.z = v6->z;
93287fb98441 Missing file
Nomad
parents:
diff changeset
61 v11.w = v6->w;
93287fb98441 Missing file
Nomad
parents:
diff changeset
62 v7 = &v11;
93287fb98441 Missing file
Nomad
parents:
diff changeset
63 LABEL_16:
93287fb98441 Missing file
Nomad
parents:
diff changeset
64 result = (int)a2;
93287fb98441 Missing file
Nomad
parents:
diff changeset
65 a2->x = v7->x;
93287fb98441 Missing file
Nomad
parents:
diff changeset
66 v9 = (char *)&v7->y;
93287fb98441 Missing file
Nomad
parents:
diff changeset
67 a2->y = *(int *)v9;
93287fb98441 Missing file
Nomad
parents:
diff changeset
68 v9 += 4;
93287fb98441 Missing file
Nomad
parents:
diff changeset
69 a2->z = *(int *)v9;
93287fb98441 Missing file
Nomad
parents:
diff changeset
70 a2->w = *((int *)v9 + 1);
93287fb98441 Missing file
Nomad
parents:
diff changeset
71 return result;
93287fb98441 Missing file
Nomad
parents:
diff changeset
72 }
93287fb98441 Missing file
Nomad
parents:
diff changeset
73 // 4F031C: using guessed type int dword_4F031C[];
93287fb98441 Missing file
Nomad
parents:
diff changeset
74
93287fb98441 Missing file
Nomad
parents:
diff changeset
75
93287fb98441 Missing file
Nomad
parents:
diff changeset
76
93287fb98441 Missing file
Nomad
parents:
diff changeset
77 //----- (004382BC) --------------------------------------------------------
93287fb98441 Missing file
Nomad
parents:
diff changeset
78 __int16 __thiscall _4382BC_get_cpu_speed_sub0(int _this)
93287fb98441 Missing file
Nomad
parents:
diff changeset
79 {
93287fb98441 Missing file
Nomad
parents:
diff changeset
80 __int16 result; // ax@4
93287fb98441 Missing file
Nomad
parents:
diff changeset
81 __int16 v14; // sp@11
93287fb98441 Missing file
Nomad
parents:
diff changeset
82 int v15; // [sp-4h] [bp-Ch]@0
93287fb98441 Missing file
Nomad
parents:
diff changeset
83 signed __int16 v16; // [sp+4h] [bp-4h]@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
84 __int16 v17; // [sp+4h] [bp-4h]@8
93287fb98441 Missing file
Nomad
parents:
diff changeset
85 __int16 v18; // [sp+4h] [bp-4h]@11
93287fb98441 Missing file
Nomad
parents:
diff changeset
86
93287fb98441 Missing file
Nomad
parents:
diff changeset
87 v16 = 1;
93287fb98441 Missing file
Nomad
parents:
diff changeset
88 __asm { pushf }
93287fb98441 Missing file
Nomad
parents:
diff changeset
89 if ( v15 == (v15 ^ 0x200000) )
93287fb98441 Missing file
Nomad
parents:
diff changeset
90 v16 = 0;
93287fb98441 Missing file
Nomad
parents:
diff changeset
91 if ( v16 )
93287fb98441 Missing file
Nomad
parents:
diff changeset
92 {
93287fb98441 Missing file
Nomad
parents:
diff changeset
93 result = _43847A_get_cpu_speed_sub1();
93287fb98441 Missing file
Nomad
parents:
diff changeset
94 }
93287fb98441 Missing file
Nomad
parents:
diff changeset
95 else
93287fb98441 Missing file
Nomad
parents:
diff changeset
96 {
93287fb98441 Missing file
Nomad
parents:
diff changeset
97 //UNDEF(_ZF);
93287fb98441 Missing file
Nomad
parents:
diff changeset
98 //UNDEF(_SF);
93287fb98441 Missing file
Nomad
parents:
diff changeset
99 //UNDEF(_OF);
93287fb98441 Missing file
Nomad
parents:
diff changeset
100 _CF = 0;
93287fb98441 Missing file
Nomad
parents:
diff changeset
101 if ( !_ZF )
93287fb98441 Missing file
Nomad
parents:
diff changeset
102 _CF = 1;
93287fb98441 Missing file
Nomad
parents:
diff changeset
103 __asm { pushfw }
93287fb98441 Missing file
Nomad
parents:
diff changeset
104 bProcessorIsNotIntel = (BYTE2(v15) & 1 ^ 1) & 1;
93287fb98441 Missing file
Nomad
parents:
diff changeset
105 _CF = 0;
93287fb98441 Missing file
Nomad
parents:
diff changeset
106 _OF = 0;
93287fb98441 Missing file
Nomad
parents:
diff changeset
107 _ZF = 0;
93287fb98441 Missing file
Nomad
parents:
diff changeset
108 _SF = 1;
93287fb98441 Missing file
Nomad
parents:
diff changeset
109 __asm { pushfw }
93287fb98441 Missing file
Nomad
parents:
diff changeset
110 v17 = 2;
93287fb98441 Missing file
Nomad
parents:
diff changeset
111 if ( (HIWORD(v15) | 0xF000) & 0xF000 )
93287fb98441 Missing file
Nomad
parents:
diff changeset
112 v17 = -1;
93287fb98441 Missing file
Nomad
parents:
diff changeset
113 __asm { popfw }
93287fb98441 Missing file
Nomad
parents:
diff changeset
114 result = v17;
93287fb98441 Missing file
Nomad
parents:
diff changeset
115 if ( v17 != 2 )
93287fb98441 Missing file
Nomad
parents:
diff changeset
116 {
93287fb98441 Missing file
Nomad
parents:
diff changeset
117 _CF = 0;
93287fb98441 Missing file
Nomad
parents:
diff changeset
118 _OF = 0;
93287fb98441 Missing file
Nomad
parents:
diff changeset
119 _ZF = v14 == 0;
93287fb98441 Missing file
Nomad
parents:
diff changeset
120 _SF = v14 < 0;
93287fb98441 Missing file
Nomad
parents:
diff changeset
121 __asm { pushf }
93287fb98441 Missing file
Nomad
parents:
diff changeset
122 v18 = 3;
93287fb98441 Missing file
Nomad
parents:
diff changeset
123 if ( v15 != (v15 ^ 0x40000) )
93287fb98441 Missing file
Nomad
parents:
diff changeset
124 v18 = -1;
93287fb98441 Missing file
Nomad
parents:
diff changeset
125 __asm { popf }
93287fb98441 Missing file
Nomad
parents:
diff changeset
126 result = v18;
93287fb98441 Missing file
Nomad
parents:
diff changeset
127 if ( v18 != 3 )
93287fb98441 Missing file
Nomad
parents:
diff changeset
128 result = 4;
93287fb98441 Missing file
Nomad
parents:
diff changeset
129 }
93287fb98441 Missing file
Nomad
parents:
diff changeset
130 }
93287fb98441 Missing file
Nomad
parents:
diff changeset
131 if ( bProcessorIsNotIntel )
93287fb98441 Missing file
Nomad
parents:
diff changeset
132 HIBYTE(result) |= 0x80u;
93287fb98441 Missing file
Nomad
parents:
diff changeset
133 return result;
93287fb98441 Missing file
Nomad
parents:
diff changeset
134 }
93287fb98441 Missing file
Nomad
parents:
diff changeset
135
93287fb98441 Missing file
Nomad
parents:
diff changeset
136
93287fb98441 Missing file
Nomad
parents:
diff changeset
137
93287fb98441 Missing file
Nomad
parents:
diff changeset
138 //----- (0043847A) --------------------------------------------------------
93287fb98441 Missing file
Nomad
parents:
diff changeset
139 __int16 __cdecl _43847A_get_cpu_speed_sub1()
93287fb98441 Missing file
Nomad
parents:
diff changeset
140 {
93287fb98441 Missing file
Nomad
parents:
diff changeset
141 signed int v5; // eax@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
142 char v12[12]; // [sp+Ch] [bp-28h]@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
143 char v13; // [sp+18h] [bp-1Ch]@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
144 char v14; // [sp+19h] [bp-1Bh]@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
145 int v15[4]; // [sp+1Ch] [bp-18h]@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
146 int v16; // [sp+2Eh] [bp-6h]@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
147 char v17; // [sp+32h] [bp-2h]@6
93287fb98441 Missing file
Nomad
parents:
diff changeset
148 char v18; // [sp+33h] [bp-1h]@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
149
93287fb98441 Missing file
Nomad
parents:
diff changeset
150 *(int *)v12 = *(int *)"------------";
93287fb98441 Missing file
Nomad
parents:
diff changeset
151 *(int *)&v12[4] = *(int *)"--------";
93287fb98441 Missing file
Nomad
parents:
diff changeset
152 *(int *)&v12[8] = *(int *)"----";
93287fb98441 Missing file
Nomad
parents:
diff changeset
153 v13 = asc_4E4938[12];
93287fb98441 Missing file
Nomad
parents:
diff changeset
154 v14 = 0;
93287fb98441 Missing file
Nomad
parents:
diff changeset
155 v18 = 0;
93287fb98441 Missing file
Nomad
parents:
diff changeset
156 v15[0] = *(int *)"GenuineIntel";
93287fb98441 Missing file
Nomad
parents:
diff changeset
157 v15[1] = *(int *)"ineIntel";
93287fb98441 Missing file
Nomad
parents:
diff changeset
158 v15[2] = *(int *)"ntel";
93287fb98441 Missing file
Nomad
parents:
diff changeset
159 v16 = 65535;
93287fb98441 Missing file
Nomad
parents:
diff changeset
160 LOBYTE(v15[3]) = aGenuineintel[12];
93287fb98441 Missing file
Nomad
parents:
diff changeset
161 _EAX = 0;
93287fb98441 Missing file
Nomad
parents:
diff changeset
162 __asm { cpuid }
93287fb98441 Missing file
Nomad
parents:
diff changeset
163 *(int *)v12 = _EBX;
93287fb98441 Missing file
Nomad
parents:
diff changeset
164 *(int *)&v12[4] = _EDX;
93287fb98441 Missing file
Nomad
parents:
diff changeset
165 *(int *)&v12[8] = _ECX;
93287fb98441 Missing file
Nomad
parents:
diff changeset
166 v5 = 0;
93287fb98441 Missing file
Nomad
parents:
diff changeset
167 do
93287fb98441 Missing file
Nomad
parents:
diff changeset
168 {
93287fb98441 Missing file
Nomad
parents:
diff changeset
169 if ( v12[v5] != *((char *)v15 + v5) )
93287fb98441 Missing file
Nomad
parents:
diff changeset
170 bProcessorIsNotIntel = 1;
93287fb98441 Missing file
Nomad
parents:
diff changeset
171 ++v5;
93287fb98441 Missing file
Nomad
parents:
diff changeset
172 }
93287fb98441 Missing file
Nomad
parents:
diff changeset
173 while ( v5 < 12 );
93287fb98441 Missing file
Nomad
parents:
diff changeset
174 if ( v5 >= 1 )
93287fb98441 Missing file
Nomad
parents:
diff changeset
175 {
93287fb98441 Missing file
Nomad
parents:
diff changeset
176 _EAX = 1;
93287fb98441 Missing file
Nomad
parents:
diff changeset
177 __asm { cpuid }
93287fb98441 Missing file
Nomad
parents:
diff changeset
178 v18 = _EAX & 0xF;
93287fb98441 Missing file
Nomad
parents:
diff changeset
179 LOBYTE(_EAX) = (unsigned __int8)(_EAX & 0xF0) >> 4;
93287fb98441 Missing file
Nomad
parents:
diff changeset
180 v17 = _EAX;
93287fb98441 Missing file
Nomad
parents:
diff changeset
181 LOWORD(v16) = ((_EAX & 0xF00u) >> 8) & 0xF;
93287fb98441 Missing file
Nomad
parents:
diff changeset
182 }
93287fb98441 Missing file
Nomad
parents:
diff changeset
183 return v16;
93287fb98441 Missing file
Nomad
parents:
diff changeset
184 }
93287fb98441 Missing file
Nomad
parents:
diff changeset
185
93287fb98441 Missing file
Nomad
parents:
diff changeset
186
93287fb98441 Missing file
Nomad
parents:
diff changeset
187
93287fb98441 Missing file
Nomad
parents:
diff changeset
188 //----- (004383ED) --------------------------------------------------------
93287fb98441 Missing file
Nomad
parents:
diff changeset
189 int __cdecl _4383ED_get_cpu_speed_sub2()
93287fb98441 Missing file
Nomad
parents:
diff changeset
190 {
93287fb98441 Missing file
Nomad
parents:
diff changeset
191 signed int v9; // eax@4
93287fb98441 Missing file
Nomad
parents:
diff changeset
192 int v16; // [sp-4h] [bp-38h]@0
93287fb98441 Missing file
Nomad
parents:
diff changeset
193 int v17[3]; // [sp+Ch] [bp-28h]@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
194 char v18; // [sp+18h] [bp-1Ch]@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
195 char v19; // [sp+19h] [bp-1Bh]@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
196 int v20[4]; // [sp+1Ch] [bp-18h]@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
197 int v21; // [sp+2Ch] [bp-8h]@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
198 int v22; // [sp+30h] [bp-4h]@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
199
93287fb98441 Missing file
Nomad
parents:
diff changeset
200 v17[0] = *(int *)"------------";
93287fb98441 Missing file
Nomad
parents:
diff changeset
201 v17[1] = *(int *)"--------";
93287fb98441 Missing file
Nomad
parents:
diff changeset
202 v17[2] = *(int *)"----";
93287fb98441 Missing file
Nomad
parents:
diff changeset
203 v18 = asc_4E4938[12];
93287fb98441 Missing file
Nomad
parents:
diff changeset
204 v19 = 0;
93287fb98441 Missing file
Nomad
parents:
diff changeset
205 v22 = 0;
93287fb98441 Missing file
Nomad
parents:
diff changeset
206 v20[0] = *(int *)"GenuineIntel";
93287fb98441 Missing file
Nomad
parents:
diff changeset
207 v20[1] = *(int *)"ineIntel";
93287fb98441 Missing file
Nomad
parents:
diff changeset
208 v20[2] = *(int *)"ntel";
93287fb98441 Missing file
Nomad
parents:
diff changeset
209 LOBYTE(v20[3]) = aGenuineintel[12];
93287fb98441 Missing file
Nomad
parents:
diff changeset
210 _CF = 0;
93287fb98441 Missing file
Nomad
parents:
diff changeset
211 _OF = 0;
93287fb98441 Missing file
Nomad
parents:
diff changeset
212 _ZF = 0;
93287fb98441 Missing file
Nomad
parents:
diff changeset
213 _SF = 0;
93287fb98441 Missing file
Nomad
parents:
diff changeset
214 v21 = 1;
93287fb98441 Missing file
Nomad
parents:
diff changeset
215 __asm { pushf }
93287fb98441 Missing file
Nomad
parents:
diff changeset
216 if ( v16 == (v16 ^ 0x200000) )
93287fb98441 Missing file
Nomad
parents:
diff changeset
217 v21 = 0;
93287fb98441 Missing file
Nomad
parents:
diff changeset
218 if ( (short)v21 )
93287fb98441 Missing file
Nomad
parents:
diff changeset
219 {
93287fb98441 Missing file
Nomad
parents:
diff changeset
220 _EAX = 0;
93287fb98441 Missing file
Nomad
parents:
diff changeset
221 __asm { cpuid }
93287fb98441 Missing file
Nomad
parents:
diff changeset
222 v17[0] = _EBX;
93287fb98441 Missing file
Nomad
parents:
diff changeset
223 v17[1] = _EDX;
93287fb98441 Missing file
Nomad
parents:
diff changeset
224 v17[2] = _ECX;
93287fb98441 Missing file
Nomad
parents:
diff changeset
225 v9 = 0;
93287fb98441 Missing file
Nomad
parents:
diff changeset
226 do
93287fb98441 Missing file
Nomad
parents:
diff changeset
227 {
93287fb98441 Missing file
Nomad
parents:
diff changeset
228 if ( *((char *)v17 + v9) != *((char *)v20 + v9) )
93287fb98441 Missing file
Nomad
parents:
diff changeset
229 bProcessorIsNotIntel = 1;
93287fb98441 Missing file
Nomad
parents:
diff changeset
230 ++v9;
93287fb98441 Missing file
Nomad
parents:
diff changeset
231 }
93287fb98441 Missing file
Nomad
parents:
diff changeset
232 while ( v9 < 12 );
93287fb98441 Missing file
Nomad
parents:
diff changeset
233 if ( v9 >= 1 )
93287fb98441 Missing file
Nomad
parents:
diff changeset
234 {
93287fb98441 Missing file
Nomad
parents:
diff changeset
235 _EAX = 1;
93287fb98441 Missing file
Nomad
parents:
diff changeset
236 __asm { cpuid }
93287fb98441 Missing file
Nomad
parents:
diff changeset
237 v22 = _EDX;
93287fb98441 Missing file
Nomad
parents:
diff changeset
238 }
93287fb98441 Missing file
Nomad
parents:
diff changeset
239 }
93287fb98441 Missing file
Nomad
parents:
diff changeset
240 return v22;
93287fb98441 Missing file
Nomad
parents:
diff changeset
241 }
93287fb98441 Missing file
Nomad
parents:
diff changeset
242
93287fb98441 Missing file
Nomad
parents:
diff changeset
243
93287fb98441 Missing file
Nomad
parents:
diff changeset
244
93287fb98441 Missing file
Nomad
parents:
diff changeset
245 //----- (004AC4FD) --------------------------------------------------------
93287fb98441 Missing file
Nomad
parents:
diff changeset
246 Vec4_int_ *__thiscall _4AC4FD_get_cpu_clocks_rdtsc(int _this, Vec4_int_ *a1)
93287fb98441 Missing file
Nomad
parents:
diff changeset
247 {
93287fb98441 Missing file
Nomad
parents:
diff changeset
248 int v2; // eax@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
249 int v3; // eax@4
93287fb98441 Missing file
Nomad
parents:
diff changeset
250 bool v4; // eax@5
93287fb98441 Missing file
Nomad
parents:
diff changeset
251 unsigned __int64 v5; // kr00_8@8
93287fb98441 Missing file
Nomad
parents:
diff changeset
252 int v6; // edi@9
93287fb98441 Missing file
Nomad
parents:
diff changeset
253 int v7; // eax@9
93287fb98441 Missing file
Nomad
parents:
diff changeset
254 bool v8; // eax@10
93287fb98441 Missing file
Nomad
parents:
diff changeset
255 unsigned __int64 v9; // kr08_8@13
93287fb98441 Missing file
Nomad
parents:
diff changeset
256 unsigned int v10; // eax@15
93287fb98441 Missing file
Nomad
parents:
diff changeset
257 Vec4_int_ *result; // eax@17
93287fb98441 Missing file
Nomad
parents:
diff changeset
258 int Dst; // [sp+Ch] [bp-2Ch]@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
259 int v13; // [sp+10h] [bp-28h]@17
93287fb98441 Missing file
Nomad
parents:
diff changeset
260 int v14; // [sp+14h] [bp-24h]@15
93287fb98441 Missing file
Nomad
parents:
diff changeset
261 int v15; // [sp+18h] [bp-20h]@17
93287fb98441 Missing file
Nomad
parents:
diff changeset
262 unsigned int v16; // [sp+1Ch] [bp-1Ch]@8
93287fb98441 Missing file
Nomad
parents:
diff changeset
263 unsigned int v17; // [sp+20h] [bp-18h]@8
93287fb98441 Missing file
Nomad
parents:
diff changeset
264 unsigned int v18; // [sp+24h] [bp-14h]@13
93287fb98441 Missing file
Nomad
parents:
diff changeset
265 int nPriority; // [sp+28h] [bp-10h]@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
266 __int64 v20; // [sp+2Ch] [bp-Ch]@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
267 int v21; // [sp+34h] [bp-4h]@3
93287fb98441 Missing file
Nomad
parents:
diff changeset
268
93287fb98441 Missing file
Nomad
parents:
diff changeset
269 HIDWORD(v20) = GetCurrentThread();
93287fb98441 Missing file
Nomad
parents:
diff changeset
270 memset(&Dst, 0, 0x10u);
93287fb98441 Missing file
Nomad
parents:
diff changeset
271 v2 = GetThreadPriority(HIDWORD(v20));
93287fb98441 Missing file
Nomad
parents:
diff changeset
272 nPriority = v2;
93287fb98441 Missing file
Nomad
parents:
diff changeset
273 if ( v2 != 0x7FFFFFFF )
93287fb98441 Missing file
Nomad
parents:
diff changeset
274 SetThreadPriority(HIDWORD(v20), v2 + 1);
93287fb98441 Missing file
Nomad
parents:
diff changeset
275 __outbyte(0x70u, 0);
93287fb98441 Missing file
Nomad
parents:
diff changeset
276 v21 = __inbyte(0x71u);
93287fb98441 Missing file
Nomad
parents:
diff changeset
277 do
93287fb98441 Missing file
Nomad
parents:
diff changeset
278 {
93287fb98441 Missing file
Nomad
parents:
diff changeset
279 __outbyte(0x70u, 0);
93287fb98441 Missing file
Nomad
parents:
diff changeset
280 LODWORD(v20) = __inbyte(0x71u);
93287fb98441 Missing file
Nomad
parents:
diff changeset
281 v3 = v20 - v21;
93287fb98441 Missing file
Nomad
parents:
diff changeset
282 if ( (signed int)v20 >= v21 )
93287fb98441 Missing file
Nomad
parents:
diff changeset
283 v4 = v3 > 0;
93287fb98441 Missing file
Nomad
parents:
diff changeset
284 else
93287fb98441 Missing file
Nomad
parents:
diff changeset
285 v4 = v3 + 10;
93287fb98441 Missing file
Nomad
parents:
diff changeset
286 }
93287fb98441 Missing file
Nomad
parents:
diff changeset
287 while ( !v4 );
93287fb98441 Missing file
Nomad
parents:
diff changeset
288 v5 = __rdtsc();
93287fb98441 Missing file
Nomad
parents:
diff changeset
289 v16 = HIDWORD(v5);
93287fb98441 Missing file
Nomad
parents:
diff changeset
290 v17 = v5;
93287fb98441 Missing file
Nomad
parents:
diff changeset
291 do
93287fb98441 Missing file
Nomad
parents:
diff changeset
292 {
93287fb98441 Missing file
Nomad
parents:
diff changeset
293 __outbyte(0x70u, 0);
93287fb98441 Missing file
Nomad
parents:
diff changeset
294 v21 = __inbyte(0x71u);
93287fb98441 Missing file
Nomad
parents:
diff changeset
295 v6 = v21;
93287fb98441 Missing file
Nomad
parents:
diff changeset
296 v7 = v21 - v20;
93287fb98441 Missing file
Nomad
parents:
diff changeset
297 if ( v21 >= (signed int)v20 )
93287fb98441 Missing file
Nomad
parents:
diff changeset
298 v8 = v7 > 0;
93287fb98441 Missing file
Nomad
parents:
diff changeset
299 else
93287fb98441 Missing file
Nomad
parents:
diff changeset
300 v8 = v7 + 10;
93287fb98441 Missing file
Nomad
parents:
diff changeset
301 }
93287fb98441 Missing file
Nomad
parents:
diff changeset
302 while ( !v8 );
93287fb98441 Missing file
Nomad
parents:
diff changeset
303 v9 = __rdtsc();
93287fb98441 Missing file
Nomad
parents:
diff changeset
304 v18 = HIDWORD(v9);
93287fb98441 Missing file
Nomad
parents:
diff changeset
305 v21 = v9;
93287fb98441 Missing file
Nomad
parents:
diff changeset
306 if ( nPriority != 0x7FFFFFFF )
93287fb98441 Missing file
Nomad
parents:
diff changeset
307 SetThreadPriority(HIDWORD(v20), nPriority);
93287fb98441 Missing file
Nomad
parents:
diff changeset
308 nPriority = v21;
93287fb98441 Missing file
Nomad
parents:
diff changeset
309 *(__int64 *)((char *)&v20 + 4) = __PAIR__(v18, v21) - __PAIR__(v16, v17);
93287fb98441 Missing file
Nomad
parents:
diff changeset
310 Dst = HIDWORD(v20);
93287fb98441 Missing file
Nomad
parents:
diff changeset
311 v10 = HIDWORD(v20) / 0xF4240;
93287fb98441 Missing file
Nomad
parents:
diff changeset
312 v14 = HIDWORD(v20) / 0xF4240;
93287fb98441 Missing file
Nomad
parents:
diff changeset
313 if ( HIDWORD(v20) / 0x186A0 - 10 * HIDWORD(v20) / 0xF4240 >= 6 )
93287fb98441 Missing file
Nomad
parents:
diff changeset
314 ++v10;
93287fb98441 Missing file
Nomad
parents:
diff changeset
315 v15 = v10;
93287fb98441 Missing file
Nomad
parents:
diff changeset
316 result = a1;
93287fb98441 Missing file
Nomad
parents:
diff changeset
317 v13 = 1000000 * v6 - 1000000 * v20;
93287fb98441 Missing file
Nomad
parents:
diff changeset
318 a1->x = Dst;
93287fb98441 Missing file
Nomad
parents:
diff changeset
319 a1->y = v13;
93287fb98441 Missing file
Nomad
parents:
diff changeset
320 a1->z = v14;
93287fb98441 Missing file
Nomad
parents:
diff changeset
321 a1->w = v15;
93287fb98441 Missing file
Nomad
parents:
diff changeset
322 return result;
93287fb98441 Missing file
Nomad
parents:
diff changeset
323 }
93287fb98441 Missing file
Nomad
parents:
diff changeset
324
93287fb98441 Missing file
Nomad
parents:
diff changeset
325
93287fb98441 Missing file
Nomad
parents:
diff changeset
326
93287fb98441 Missing file
Nomad
parents:
diff changeset
327
93287fb98441 Missing file
Nomad
parents:
diff changeset
328 //----- (004AC33A) --------------------------------------------------------
93287fb98441 Missing file
Nomad
parents:
diff changeset
329 Vec4_int_ *__thiscall _4AC33A_get_cpu_clocks_QPC(int _this, Vec4_int_ *a1)
93287fb98441 Missing file
Nomad
parents:
diff changeset
330 {
93287fb98441 Missing file
Nomad
parents:
diff changeset
331 int v2; // esi@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
332 int v3; // ebx@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
333 unsigned __int64 v4; // qax@4
93287fb98441 Missing file
Nomad
parents:
diff changeset
334 unsigned __int64 v5; // qax@7
93287fb98441 Missing file
Nomad
parents:
diff changeset
335 DWORD v6; // edi@7
93287fb98441 Missing file
Nomad
parents:
diff changeset
336 DWORD v7; // eax@7
93287fb98441 Missing file
Nomad
parents:
diff changeset
337 unsigned int v8; // ecx@10
93287fb98441 Missing file
Nomad
parents:
diff changeset
338 unsigned __int64 v9; // qax@10
93287fb98441 Missing file
Nomad
parents:
diff changeset
339 unsigned int v10; // edi@10
93287fb98441 Missing file
Nomad
parents:
diff changeset
340 int v11; // eax@14
93287fb98441 Missing file
Nomad
parents:
diff changeset
341 unsigned int v12; // ecx@19
93287fb98441 Missing file
Nomad
parents:
diff changeset
342 Vec4_int_ *result; // eax@24
93287fb98441 Missing file
Nomad
parents:
diff changeset
343 int Dst; // [sp+Ch] [bp-4Ch]@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
344 int v15; // [sp+10h] [bp-48h]@23
93287fb98441 Missing file
Nomad
parents:
diff changeset
345 int v16; // [sp+14h] [bp-44h]@21
93287fb98441 Missing file
Nomad
parents:
diff changeset
346 int v17; // [sp+18h] [bp-40h]@21
93287fb98441 Missing file
Nomad
parents:
diff changeset
347 LARGE_INTEGER Frequency; // [sp+1Ch] [bp-3Ch]@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
348 LARGE_INTEGER PerformanceCount; // [sp+24h] [bp-34h]@2
93287fb98441 Missing file
Nomad
parents:
diff changeset
349 LARGE_INTEGER v20; // [sp+2Ch] [bp-2Ch]@2
93287fb98441 Missing file
Nomad
parents:
diff changeset
350 int v21; // [sp+34h] [bp-24h]@2
93287fb98441 Missing file
Nomad
parents:
diff changeset
351 int v22; // [sp+38h] [bp-20h]@2
93287fb98441 Missing file
Nomad
parents:
diff changeset
352 int v23; // [sp+3Ch] [bp-1Ch]@4
93287fb98441 Missing file
Nomad
parents:
diff changeset
353 int v24; // [sp+40h] [bp-18h]@7
93287fb98441 Missing file
Nomad
parents:
diff changeset
354 int nPriority; // [sp+44h] [bp-14h]@2
93287fb98441 Missing file
Nomad
parents:
diff changeset
355 unsigned int v26; // [sp+48h] [bp-10h]@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
356 unsigned int v27; // [sp+4Ch] [bp-Ch]@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
357 HANDLE hThread; // [sp+50h] [bp-8h]@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
358 int v29; // [sp+54h] [bp-4h]@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
359
93287fb98441 Missing file
Nomad
parents:
diff changeset
360 v2 = 0;
93287fb98441 Missing file
Nomad
parents:
diff changeset
361 v3 = 0;
93287fb98441 Missing file
Nomad
parents:
diff changeset
362 v29 = 0;
93287fb98441 Missing file
Nomad
parents:
diff changeset
363 v27 = 0;
93287fb98441 Missing file
Nomad
parents:
diff changeset
364 v26 = 0;
93287fb98441 Missing file
Nomad
parents:
diff changeset
365 hThread = GetCurrentThread();
93287fb98441 Missing file
Nomad
parents:
diff changeset
366 memset(&Dst, 0, 0x10u);
93287fb98441 Missing file
Nomad
parents:
diff changeset
367 if ( QueryPerformanceFrequency(&Frequency) )
93287fb98441 Missing file
Nomad
parents:
diff changeset
368 {
93287fb98441 Missing file
Nomad
parents:
diff changeset
369 do
93287fb98441 Missing file
Nomad
parents:
diff changeset
370 {
93287fb98441 Missing file
Nomad
parents:
diff changeset
371 ++v29;
93287fb98441 Missing file
Nomad
parents:
diff changeset
372 v22 = v2;
93287fb98441 Missing file
Nomad
parents:
diff changeset
373 v21 = v3;
93287fb98441 Missing file
Nomad
parents:
diff changeset
374 QueryPerformanceCounter(&PerformanceCount);
93287fb98441 Missing file
Nomad
parents:
diff changeset
375 v20 = PerformanceCount;
93287fb98441 Missing file
Nomad
parents:
diff changeset
376 nPriority = GetThreadPriority(hThread);
93287fb98441 Missing file
Nomad
parents:
diff changeset
377 if ( nPriority != 2147483647 )
93287fb98441 Missing file
Nomad
parents:
diff changeset
378 SetThreadPriority(hThread, 15);
93287fb98441 Missing file
Nomad
parents:
diff changeset
379 while ( v20.s.LowPart - PerformanceCount.s.LowPart < 0x32 )
93287fb98441 Missing file
Nomad
parents:
diff changeset
380 {
93287fb98441 Missing file
Nomad
parents:
diff changeset
381 QueryPerformanceCounter(&v20);
93287fb98441 Missing file
Nomad
parents:
diff changeset
382 v4 = __rdtsc();
93287fb98441 Missing file
Nomad
parents:
diff changeset
383 v23 = v4;
93287fb98441 Missing file
Nomad
parents:
diff changeset
384 }
93287fb98441 Missing file
Nomad
parents:
diff changeset
385 PerformanceCount = v20;
93287fb98441 Missing file
Nomad
parents:
diff changeset
386 do
93287fb98441 Missing file
Nomad
parents:
diff changeset
387 {
93287fb98441 Missing file
Nomad
parents:
diff changeset
388 QueryPerformanceCounter(&v20);
93287fb98441 Missing file
Nomad
parents:
diff changeset
389 v5 = __rdtsc();
93287fb98441 Missing file
Nomad
parents:
diff changeset
390 v24 = v5;
93287fb98441 Missing file
Nomad
parents:
diff changeset
391 v6 = v20.s.LowPart;
93287fb98441 Missing file
Nomad
parents:
diff changeset
392 v7 = PerformanceCount.s.LowPart;
93287fb98441 Missing file
Nomad
parents:
diff changeset
393 }
93287fb98441 Missing file
Nomad
parents:
diff changeset
394 while ( v20.s.LowPart - PerformanceCount.s.LowPart < 0x3E8 );
93287fb98441 Missing file
Nomad
parents:
diff changeset
395 if ( nPriority != 2147483647 )
93287fb98441 Missing file
Nomad
parents:
diff changeset
396 {
93287fb98441 Missing file
Nomad
parents:
diff changeset
397 SetThreadPriority(hThread, nPriority);
93287fb98441 Missing file
Nomad
parents:
diff changeset
398 v7 = PerformanceCount.s.LowPart;
93287fb98441 Missing file
Nomad
parents:
diff changeset
399 v6 = v20.s.LowPart;
93287fb98441 Missing file
Nomad
parents:
diff changeset
400 }
93287fb98441 Missing file
Nomad
parents:
diff changeset
401 v8 = v24 - v23;
93287fb98441 Missing file
Nomad
parents:
diff changeset
402 v27 += v24 - v23;
93287fb98441 Missing file
Nomad
parents:
diff changeset
403 v9 = (100000 * v6 - 100000 * v7) / (Frequency.s.LowPart / 0xA);
93287fb98441 Missing file
Nomad
parents:
diff changeset
404 v10 = v9;
93287fb98441 Missing file
Nomad
parents:
diff changeset
405 v26 += v9;
93287fb98441 Missing file
Nomad
parents:
diff changeset
406 if ( v9 % Frequency.s.LowPart > Frequency.s.LowPart >> 1 )
93287fb98441 Missing file
Nomad
parents:
diff changeset
407 v10 = v9 + 1;
93287fb98441 Missing file
Nomad
parents:
diff changeset
408 v3 = v8 / v10;
93287fb98441 Missing file
Nomad
parents:
diff changeset
409 if ( v8 % v10 > v10 >> 1 )
93287fb98441 Missing file
Nomad
parents:
diff changeset
410 v3 = v8 / v10 + 1;
93287fb98441 Missing file
Nomad
parents:
diff changeset
411 v2 = v21;
93287fb98441 Missing file
Nomad
parents:
diff changeset
412 v11 = v3 + v22 + v21;
93287fb98441 Missing file
Nomad
parents:
diff changeset
413 }
93287fb98441 Missing file
Nomad
parents:
diff changeset
414 while ( v29 < 3
93287fb98441 Missing file
Nomad
parents:
diff changeset
415 || v29 < 20
93287fb98441 Missing file
Nomad
parents:
diff changeset
416 && ((unsigned int)(3 * v3 - v11) > 3 || (unsigned int)(3 * v21 - v11) > 3 || (unsigned int)(3 * v22 - v11) > 3) );
93287fb98441 Missing file
Nomad
parents:
diff changeset
417 v12 = 10 * v27 / v26;
93287fb98441 Missing file
Nomad
parents:
diff changeset
418 if ( 100 * v27 / v26 - 10 * v12 >= 6 )
93287fb98441 Missing file
Nomad
parents:
diff changeset
419 ++v12;
93287fb98441 Missing file
Nomad
parents:
diff changeset
420 v16 = v27 / v26;
93287fb98441 Missing file
Nomad
parents:
diff changeset
421 v17 = v27 / v26;
93287fb98441 Missing file
Nomad
parents:
diff changeset
422 if ( v12 - 10 * v27 / v26 >= 6 )
93287fb98441 Missing file
Nomad
parents:
diff changeset
423 v17 = v27 / v26 + 1;
93287fb98441 Missing file
Nomad
parents:
diff changeset
424 v15 = v26;
93287fb98441 Missing file
Nomad
parents:
diff changeset
425 Dst = v27;
93287fb98441 Missing file
Nomad
parents:
diff changeset
426 }
93287fb98441 Missing file
Nomad
parents:
diff changeset
427 result = a1;
93287fb98441 Missing file
Nomad
parents:
diff changeset
428 a1->x = Dst;
93287fb98441 Missing file
Nomad
parents:
diff changeset
429 a1->y = v15;
93287fb98441 Missing file
Nomad
parents:
diff changeset
430 a1->z = v16;
93287fb98441 Missing file
Nomad
parents:
diff changeset
431 a1->w = v17;
93287fb98441 Missing file
Nomad
parents:
diff changeset
432 return result;
93287fb98441 Missing file
Nomad
parents:
diff changeset
433 }
93287fb98441 Missing file
Nomad
parents:
diff changeset
434
93287fb98441 Missing file
Nomad
parents:
diff changeset
435
93287fb98441 Missing file
Nomad
parents:
diff changeset
436
93287fb98441 Missing file
Nomad
parents:
diff changeset
437
93287fb98441 Missing file
Nomad
parents:
diff changeset
438
93287fb98441 Missing file
Nomad
parents:
diff changeset
439 //----- (004AC277) --------------------------------------------------------
93287fb98441 Missing file
Nomad
parents:
diff changeset
440 Vec4_int_ *__thiscall _4AC277_get_cpu_speed_sub3(unsigned int _this, Vec4_int_ *a2)
93287fb98441 Missing file
Nomad
parents:
diff changeset
441 {
93287fb98441 Missing file
Nomad
parents:
diff changeset
442 signed int v2; // esi@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
443 signed __int16 v4; // bx@3
93287fb98441 Missing file
Nomad
parents:
diff changeset
444 int v10; // esi@8
93287fb98441 Missing file
Nomad
parents:
diff changeset
445 int v11; // eax@10
93287fb98441 Missing file
Nomad
parents:
diff changeset
446 Vec4_int_ *result; // eax@13
93287fb98441 Missing file
Nomad
parents:
diff changeset
447 Vec4_int_ Dst; // [sp+8h] [bp-30h]@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
448 LARGE_INTEGER Frequency; // [sp+18h] [bp-20h]@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
449 LARGE_INTEGER PerformanceCount; // [sp+20h] [bp-18h]@3
93287fb98441 Missing file
Nomad
parents:
diff changeset
450 LARGE_INTEGER v16; // [sp+28h] [bp-10h]@5
93287fb98441 Missing file
Nomad
parents:
diff changeset
451 int v17; // [sp+30h] [bp-8h]@1
93287fb98441 Missing file
Nomad
parents:
diff changeset
452 int v18; // [sp+34h] [bp-4h]@2
93287fb98441 Missing file
Nomad
parents:
diff changeset
453
93287fb98441 Missing file
Nomad
parents:
diff changeset
454 v17 = _this;
93287fb98441 Missing file
Nomad
parents:
diff changeset
455 v2 = -1;
93287fb98441 Missing file
Nomad
parents:
diff changeset
456 memset(&Dst, 0, 0x10u);
93287fb98441 Missing file
Nomad
parents:
diff changeset
457 if ( QueryPerformanceFrequency(&Frequency) )
93287fb98441 Missing file
Nomad
parents:
diff changeset
458 {
93287fb98441 Missing file
Nomad
parents:
diff changeset
459 v18 = 10;
93287fb98441 Missing file
Nomad
parents:
diff changeset
460 do
93287fb98441 Missing file
Nomad
parents:
diff changeset
461 {
93287fb98441 Missing file
Nomad
parents:
diff changeset
462 QueryPerformanceCounter(&PerformanceCount);
93287fb98441 Missing file
Nomad
parents:
diff changeset
463 _EAX = -2147483648;
93287fb98441 Missing file
Nomad
parents:
diff changeset
464 v4 = 4000;
93287fb98441 Missing file
Nomad
parents:
diff changeset
465 do
93287fb98441 Missing file
Nomad
parents:
diff changeset
466 {
93287fb98441 Missing file
Nomad
parents:
diff changeset
467 __asm { bsf ecx, eax }
93287fb98441 Missing file
Nomad
parents:
diff changeset
468 --v4;
93287fb98441 Missing file
Nomad
parents:
diff changeset
469 }
93287fb98441 Missing file
Nomad
parents:
diff changeset
470 while ( v4 );
93287fb98441 Missing file
Nomad
parents:
diff changeset
471 QueryPerformanceCounter(&v16);
93287fb98441 Missing file
Nomad
parents:
diff changeset
472 if ( (signed int)v16.s.LowPart - (signed int)PerformanceCount.s.LowPart < (unsigned int)v2 )
93287fb98441 Missing file
Nomad
parents:
diff changeset
473 v2 = v16.s.LowPart - PerformanceCount.s.LowPart;
93287fb98441 Missing file
Nomad
parents:
diff changeset
474 --v18;
93287fb98441 Missing file
Nomad
parents:
diff changeset
475 }
93287fb98441 Missing file
Nomad
parents:
diff changeset
476 while ( v18 );
93287fb98441 Missing file
Nomad
parents:
diff changeset
477 v10 = 100000 * v2 / (Frequency.s.LowPart / 0xA);
93287fb98441 Missing file
Nomad
parents:
diff changeset
478 if ( v10 % Frequency.s.LowPart > Frequency.s.LowPart >> 1 )
93287fb98441 Missing file
Nomad
parents:
diff changeset
479 ++v10;
93287fb98441 Missing file
Nomad
parents:
diff changeset
480 v11 = v17 / (unsigned int)v10;
93287fb98441 Missing file
Nomad
parents:
diff changeset
481 Dst.z = v17 / (unsigned int)v10;
93287fb98441 Missing file
Nomad
parents:
diff changeset
482 if ( v17 % (unsigned int)v10 > (unsigned int)v10 >> 1 )
93287fb98441 Missing file
Nomad
parents:
diff changeset
483 ++v11;
93287fb98441 Missing file
Nomad
parents:
diff changeset
484 Dst.x = v17;
93287fb98441 Missing file
Nomad
parents:
diff changeset
485 Dst.y = v10;
93287fb98441 Missing file
Nomad
parents:
diff changeset
486 Dst.w = v11;
93287fb98441 Missing file
Nomad
parents:
diff changeset
487 }
93287fb98441 Missing file
Nomad
parents:
diff changeset
488 result = a2;
93287fb98441 Missing file
Nomad
parents:
diff changeset
489 a2->x = Dst.x;
93287fb98441 Missing file
Nomad
parents:
diff changeset
490 a2->y = Dst.y;
93287fb98441 Missing file
Nomad
parents:
diff changeset
491 a2->z = Dst.z;
93287fb98441 Missing file
Nomad
parents:
diff changeset
492 a2->w = Dst.w;
93287fb98441 Missing file
Nomad
parents:
diff changeset
493 return result;
93287fb98441 Missing file
Nomad
parents:
diff changeset
494 }*/