{"name": "CG_AddAtmosphericEffects", "code": "unsigned __int64 CG_AddAtmosphericEffects ( ) { unsigned __int64 result ; int v1 ; unsigned int @@v2@@ ; float @@v3@@ [ Number ] ; int @@v4@@ ; __int64 @@v5@@ ; int @@v6@@ ; int @@i@@ ; result = ( unsigned int ) dword_4945C ; if ( dword_4945C > Number ) { result = ( unsigned int ) dword_4949C ; if ( dword_4949C ) { result = ( unsigned __int64 ) cg_atmosphericEffects ; if ( cg_atmosphericEffects [ Number ] > Number ) { if ( cg_atmosphericEffects [ Number ] >= Number ) v1 = ( int ) ( float ) dword_4945C ; else v1 = ( int ) ( float ) ( ( float ) dword_4945C * cg_atmosphericEffects [ Number ] ) ; @@v6@@ = v1 ; if ( ( unsigned int ) CG_EffectGustCurrent ( @@v3@@ , ( float * ) & @@v2@@ , & @@v4@@ ) ) CG_EffectGust ( ) ; dword_494E4 = dword_494E0 ; dword_494E0 = Number ; dword_494F0 = Number ; dword_494EC = Number ; dword_494E8 = Number ; dword_494B8 = LODWORD ( cg [ Number ] ) ; dword_494BC = LODWORD ( cg [ Number ] ) ; dword_494C0 = Number ; for ( @@i@@ = Number ; ; ++ @@i@@ ) { if ( @@i@@ >= @@v6@@ ) { result = LODWORD ( cg [ Number ] ) ; dword_49458 = LODWORD ( cg [ Number ] ) ; return result ; } @@v5@@ = ( __int64 ) & cg_atmFx + Number * @@i@@ ; if ( ! ( unsigned int ) qword_494C8 ( @@v5@@ ) ) { if ( ! ( unsigned int ) qword_494D0 ( @@v5@@ , @@v3@@ , * ( double * ) _mm_cvtsi32_si128 ( @@v2@@ ) . m128i_i64 ) ) { * ( _DWORD * ) ( @@v5@@ + Number ) = LODWORD ( cg [ Number ] ) + Number ; continue ; } ++ dword_494EC ; } qword_494D8 ( @@v5@@ ) ; ++ dword_494E0 ; } } } } return result ; }", "source": [{"n": "v5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "v4", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v3", "t": {"T": 2, "n": 3, "s": 4, "t": "float"}, "location": "s32"}, {"n": "v2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s36"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}, {"n": "v6", "t": {"T": 1, "n": "int", "s": 4}, "location": "s8"}]}
{"name": "CG_EffectGustCurrent", "code": "__int64 __fastcall CG_EffectGustCurrent ( float * @@a1@@ , float * @@a2@@ , _DWORD * @@a3@@ ) { float @@v4@@ ; float @@v5@@ ; float @@v6@@ ; float v7 ; float v8 ; if ( SLODWORD ( cg [ Number ] ) >= dword_4946C ) { @@v4@@ = * ( float * ) & dword_494AC - * ( float * ) & dword_494A0 ; @@v5@@ = * ( float * ) & dword_494B0 - * ( float * ) & dword_494A4 ; @@v6@@ = * ( float * ) & dword_494B4 - * ( float * ) & dword_494A8 ; if ( SLODWORD ( cg [ Number ] ) >= dword_49460 ) { if ( SLODWORD ( cg [ Number ] ) >= dword_49464 ) { v8 = Number - ( float ) ( ( float ) ( LODWORD ( cg [ Number ] ) - dword_49464 ) / ( float ) ( dword_49468 - dword_49464 ) ) ; * @@a1@@ = ( float ) ( @@v4@@ * v8 ) + * ( float * ) & dword_494A0 ; @@a1@@ [ Number ] = ( float ) ( @@v5@@ * v8 ) + * ( float * ) & dword_494A4 ; @@a1@@ [ Number ] = ( float ) ( @@v6@@ * v8 ) + * ( float * ) & dword_494A8 ; * @@a2@@ = ( float ) ( ( float ) ( * ( float * ) & dword_4948C - * ( float * ) & dword_49488 ) * v8 ) + * ( float * ) & dword_49488 ; * @@a3@@ = ( int ) ( float ) ( ( float ) ( ( float ) ( dword_49494 - dword_49490 ) * v8 ) + ( float ) dword_49490 ) ; if ( SLODWORD ( cg [ Number ] ) >= dword_49468 ) return Number L ; } else { * ( _DWORD * ) @@a1@@ = dword_494AC ; * ( ( _DWORD * ) @@a1@@ + Number ) = dword_494B0 ; * ( ( _DWORD * ) @@a1@@ + Number ) = dword_494B4 ; * ( _DWORD * ) @@a2@@ = dword_4948C ; * @@a3@@ = dword_49494 ; } } else { v7 = ( float ) ( LODWORD ( cg [ Number ] ) - dword_4946C ) / ( float ) ( dword_49460 - dword_4946C ) ; * @@a1@@ = ( float ) ( @@v4@@ * v7 ) + * ( float * ) & dword_494A0 ; @@a1@@ [ Number ] = ( float ) ( @@v5@@ * v7 ) + * ( float * ) & dword_494A4 ; @@a1@@ [ Number ] = ( float ) ( @@v6@@ * v7 ) + * ( float * ) & dword_494A8 ; * @@a2@@ = ( float ) ( ( float ) ( * ( float * ) & dword_4948C - * ( float * ) & dword_49488 ) * v7 ) + * ( float * ) & dword_49488 ; * @@a3@@ = ( int ) ( float ) ( ( float ) ( ( float ) ( dword_49494 - dword_49490 ) * v7 ) + ( float ) dword_49490 ) ; } } else { * ( _DWORD * ) @@a1@@ = dword_494A0 ; * ( ( _DWORD * ) @@a1@@ + Number ) = dword_494A4 ; * ( ( _DWORD * ) @@a1@@ + Number ) = dword_494A8 ; * ( _DWORD * ) @@a2@@ = dword_49488 ; * @@a3@@ = dword_49490 ; } return Number L ; }", "source": [{"n": "a3", "t": {"T": 3, "t": "_DWORD"}, "location": "r16"}, {"n": "a1", "t": {"T": 3, "t": "float"}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "float"}, "location": "r64"}, {"n": "v5", "t": {"T": 1, "n": "float", "s": 4}, "location": "s12"}, {"n": "v4", "t": {"T": 1, "n": "float", "s": 4}, "location": "s16"}, {"n": "v6", "t": {"T": 1, "n": "float", "s": 4}, "location": "s8"}]}