int
__fastcall SlideNoteManager__Judge(
int
a1,
float
posY,
int
*
outCursor)
{
int32_t bpm;
/
/
r0
System_Collections_Generic_Dictionary_int__TerrainUtility_TerrainMap__o
*
music_map;
/
/
r6
float
v8;
/
/
s16
UnityEngine_Experimental_TerrainAPI_TerrainUtility_TerrainMap_o
*
v9;
/
/
r5
int32_t init_cont;
/
/
r6
int
v11;
/
/
r9
int
counter;
/
/
r7
System_TypeSpec_o
*
v13;
/
/
r0
float
v14;
/
/
s18
System_TypeSpec_o
*
v15;
/
/
r0
float
v16;
/
/
s0
__int64 v17;
/
/
r0
int32_t v18;
/
/
r0
System_TypeSpec_o
*
v19;
/
/
r0
float
v20;
/
/
s18
int32_t v21;
/
/
r0
System_TypeSpec_o
*
v22;
/
/
r0
int
NoteResult;
/
/
r6
System_TypeSpec_o
*
v24;
/
/
r6
System_TypeSpec_o
*
v25;
/
/
r0
int32_t v26;
/
/
r0
int32_t v27;
/
/
kr04_4
int
v28;
/
/
r0
if
(!byte_2ECE7FD)
{
sub_659480(
35551
);
byte_2ECE7FD
=
1
;
}
if
(!
*
(_DWORD
*
)(a1
+
16
))
sub_684BE8(
0
);
bpm
=
NoteManager__get_CurrentBpm(
*
(_DWORD
*
)(a1
+
16
),
0
);
music_map
=
*
(System_Collections_Generic_Dictionary_int__TerrainUtility_TerrainMap__o
*
*
)(a1
+
24
);
if
(!music_map)
sub_684BE8(
0
);
v8
=
posY;
v9
=
System_Collections_Generic_Dictionary_int__TerrainUtility_TerrainMap___get_Item(
music_map,
bpm,
(const MethodInfo_1431
*
)Method_System_Collections_Generic_Dictionary_int__List_SlideNoteManager_SlideResultData___get_Item__);
init_cont
=
1
;
v11
=
-
2
;
while
(
1
)
{
counter
=
init_cont
-
1
;
if
(!v9)
sub_684BE8(
0
);
if
(counter >
=
System_Collections_Generic_List________get_Count(
(System_Collections_Generic_List_______o
*
)v9,
(const MethodInfo_1470
*
)Method_System_Collections_Generic_List_SlideNoteManager_SlideResultData__get_Count__)
/
2
)
{
NoteResult
=
-
1
;
counter
=
0
;
goto LABEL_34;
}
v13
=
System_Collections_Generic_List_TypeSpec___get_Item(
(System_Collections_Generic_List_TypeSpec__o
*
)v9,
init_cont
-
1
,
(const MethodInfo_1470
*
)Method_System_Collections_Generic_List_SlideNoteManager_SlideResultData__get_Item__);
if
(!v13)
sub_684BE8(
0
);
v14
=
*
(
float
*
)&v13
-
>fields.name;
v15
=
System_Collections_Generic_List_TypeSpec___get_Item(
(System_Collections_Generic_List_TypeSpec__o
*
)v9,
init_cont,
(const MethodInfo_1470
*
)Method_System_Collections_Generic_List_SlideNoteManager_SlideResultData__get_Item__);
if
(!v15)
sub_684BE8(
0
);
v16
=
*
(
float
*
)&v15
-
>fields.name;
v17
=
0LL
;
if
(v14 < v8)
LODWORD(v17)
=
1
;
if
(v16 >
=
v8)
HIDWORD(v17)
=
1
;
if
(!v17)
break
;
v18
=
System_Collections_Generic_List________get_Count(
(System_Collections_Generic_List_______o
*
)v9,
(const MethodInfo_1470
*
)Method_System_Collections_Generic_List_SlideNoteManager_SlideResultData__get_Count__);
v19
=
System_Collections_Generic_List_TypeSpec___get_Item(
(System_Collections_Generic_List_TypeSpec__o
*
)v9,
v18
+
v11
+
1
,
(const MethodInfo_1470
*
)Method_System_Collections_Generic_List_SlideNoteManager_SlideResultData__get_Item__);
if
(!v19)
sub_684BE8(
0
);
v20
=
*
(
float
*
)&v19
-
>fields.name;
v21
=
System_Collections_Generic_List________get_Count(
(System_Collections_Generic_List_______o
*
)v9,
(const MethodInfo_1470
*
)Method_System_Collections_Generic_List_SlideNoteManager_SlideResultData__get_Count__);
v22
=
System_Collections_Generic_List_TypeSpec___get_Item(
(System_Collections_Generic_List_TypeSpec__o
*
)v9,
v21
+
v11,
(const MethodInfo_1470
*
)Method_System_Collections_Generic_List_SlideNoteManager_SlideResultData__get_Item__);
if
(!v22)
sub_684BE8(
0
);
-
-
v11;
+
+
init_cont;
if
(v20 <
=
v8 &&
*
(
float
*
)&v22
-
>fields.name > v8)
{
counter
=
System_Collections_Generic_List________get_Count(
(System_Collections_Generic_List_______o
*
)v9,
(const MethodInfo_1470
*
)Method_System_Collections_Generic_List_SlideNoteManager_SlideResultData__get_Count__)
+
v11
+
2
;
v25
=
System_Collections_Generic_List_TypeSpec___get_Item(
(System_Collections_Generic_List_TypeSpec__o
*
)v9,
counter,
(const MethodInfo_1470
*
)Method_System_Collections_Generic_List_SlideNoteManager_SlideResultData__get_Item__);
v24
=
v25;
if
(!v25)
sub_684BE8(
0
);
goto LABEL_33;
}
}
v24
=
System_Collections_Generic_List_TypeSpec___get_Item(
(System_Collections_Generic_List_TypeSpec__o
*
)v9,
init_cont
-
1
,
(const MethodInfo_1470
*
)Method_System_Collections_Generic_List_SlideNoteManager_SlideResultData__get_Item__);
if
(!v24)
sub_684BE8(
0
);
LABEL_33:
NoteResult
=
(
int
)v24
-
>fields.assembly_name;
LABEL_34:
v26
=
System_Collections_Generic_List________get_Count(
(System_Collections_Generic_List_______o
*
)v9,
(const MethodInfo_1470
*
)Method_System_Collections_Generic_List_SlideNoteManager_SlideResultData__get_Count__);
if
(NoteResult
=
=
-
1
)
{
v28
=
0
;
}
else
{
v27
=
v26;
v28
=
v26
/
2
-
counter;
if
(v27
/
2
<
=
counter)
-
-
v28;
}
*
outCursor
=
v28;
return
NoteResult;
}