{"name": "ehci_set_fetch_addr", "code": "unsigned __int64 __fastcall ehci_set_fetch_addr ( __int64 @@a1@@ , int @@a2@@ , int @@a3@@ ) { unsigned __int64 @@v4@@ ; @@v4@@ = __readfsqword ( Number ) ; if ( @@a2@@ ) * ( _DWORD * ) ( @@a1@@ + Number ) = @@a3@@ ; else * ( _DWORD * ) ( @@a1@@ + Number ) = @@a3@@ ; return __readfsqword ( Number ) ^ @@v4@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "int", "s": 4}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "v4", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]}
{"name": "ehci_state_waitlisthead", "code": "__int64 __fastcall ehci_state_waitlisthead ( _DWORD * @@a1@@ , int @@a2@@ ) { int @@i@@ ; unsigned int @@v4@@ ; int @@v5@@ ; int @@v6@@ ; int @@v7@@ ; unsigned __int64 @@v8@@ ; @@v8@@ = __readfsqword ( Number ) ; @@v4@@ = Number ; @@v5@@ = @@a1@@ [ Number ] ; if ( @@a2@@ ) ehci_set_usbsts ( ( __int64 ) @@a1@@ , Number ) ; ehci_queues_rip_unused ( ( __int64 ) @@a1@@ , @@a2@@ ) ; for ( @@i@@ = Number ; ; ++ @@i@@ ) { if ( @@i@@ > Number ) { LABEL_13 : ehci_set_state ( @@a1@@ , @@a2@@ , Number ) ; return @@v4@@ ; } if ( ( int ) get_dwords ( ( __int64 ) @@a1@@ , @@v5@@ & Number , ( unsigned int * ) & @@v6@@ , Number ) < Number ) return Number L ; ehci_trace_qh ( Number L , @@v5@@ & Number , ( unsigned int * ) & @@v6@@ ) ; if ( ( @@v7@@ & Number ) != Number ) break ; @@v5@@ = @@v6@@ ; if ( @@v6@@ == @@a1@@ [ Number ] ) goto LABEL_13 ; } if ( @@a2@@ ) @@v5@@ |= Number ; ehci_set_fetch_addr ( ( __int64 ) @@a1@@ , @@a2@@ , @@v5@@ ) ; ehci_set_state ( @@a1@@ , @@a2@@ , Number ) ; return Number ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_DWORD"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "v7", "t": {"T": 1, "n": "int", "s": 4}, "location": "s60"}, {"n": "v6", "t": {"T": 1, "n": "int", "s": 4}, "location": "s64"}, {"n": "v5", "t": {"T": 1, "n": "int", "s": 4}, "location": "s68"}, {"n": "v4", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s72"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s76"}, {"n": "v8", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]} {"name": "ehci_state_fetchitd", "code": "__int64 __fastcall ehci_state_fetchitd ( _DWORD * @@a1@@ , int @@a2@@ ) { unsigned int @@v3@@ ; unsigned int @@v4@@ [ Number ] ; unsigned __int64 @@v5@@ ; @@v5@@ = __readfsqword ( Number ) ; if ( @@a2@@ ) _assert_fail ( String , String , Number , String ) ; @@v3@@ = ehci_get_fetch_addr ( ( __int64 ) @@a1@@ , Number ) ; if ( ( int ) get_dwords ( ( __int64 ) @@a1@@ , @@v3@@ & Number , @@v4@@ , Number ) < Number ) return Number ; ehci_trace_itd ( ( __int64 ) @@a1@@ , @@v3@@ , @@v4@@ ) ; if ( ( unsigned int ) ehci_process_itd ( ( __int64 ) @@a1@@ , @@v4@@ , @@v3@@ ) ) return Number ; put_dwords ( ( __int64 ) @@a1@@ , @@v3@@ & Number , @@v4@@ , Number ) ; ehci_set_fetch_addr ( ( __int64 ) @@a1@@ , Number , @@v4@@ [ Number ] ) ; ehci_set_state ( @@a1@@ , Number , Number ) ; return Number L ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_DWORD"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "v5", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}, {"n": "v4", "t": {"T": 2, "n": 18, "s": 4, "t": "unsigned int"}, "location": "s80"}, {"n": "v3", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s84"}]} {"name": "ehci_state_fetchsitd", "code": "__int64 __fastcall ehci_state_fetchsitd ( _DWORD * @@a1@@ , int @@a2@@ ) { unsigned int @@v3@@ ; unsigned int @@v4@@ [ Number ] ; int @@v5@@ ; unsigned __int64 @@v6@@ ; @@v6@@ = __readfsqword ( Number ) ; if ( @@a2@@ ) _assert_fail ( String , String , Number , String ) ; @@v3@@ = ehci_get_fetch_addr ( ( __int64 ) @@a1@@ , Number ) ; if ( ( int ) get_dwords ( ( __int64 ) @@a1@@ , @@v3@@ & Number , @@v4@@ , Number ) < Number ) return Number L ; ehci_trace_sitd ( ( __int64 ) @@a1@@ , @@v3@@ , @@v4@@ ) ; if ( ( @@v5@@ & Number ) != Number ) fwrite ( String , Number , Number , stderr ) ; ehci_set_fetch_addr ( ( __int64 ) @@a1@@ , Number , @@v4@@ [ Number ] ) ; ehci_set_state ( @@a1@@ , Number , Number ) ; return Number L ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_DWORD"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "v5", "t": {"T": 1, "n": "int", "s": 4}, "location": "s36"}, {"n": "v4", "t": {"T": 2, "n": 3, "s": 4, "t": "unsigned int"}, "location": "s48"}, {"n": "v3", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s52"}, {"n": "v6", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]} {"name": "ehci_state_horizqh", "code": "__int64 __fastcall ehci_state_horizqh ( _DWORD * * @@a1@@ ) { unsigned int @@v2@@ ; @@v2@@ = Number ; if ( ( unsigned int ) ehci_get_fetch_addr ( ( __int64 ) * @@a1@@ , * ( ( _DWORD * ) @@a1@@ + Number ) ) == * ( ( _DWORD * ) @@a1@@ + Number ) ) { ehci_set_state ( * @@a1@@ , * ( ( _DWORD * ) @@a1@@ + Number ) , Number ) ; } else { ehci_set_fetch_addr ( ( __int64 ) * @@a1@@ , * ( ( _DWORD * ) @@a1@@ + Number ) , * ( ( _DWORD * ) @@a1@@ + Number ) ) ; ehci_set_state ( * @@a1@@ , * ( ( _DWORD * ) @@a1@@ + Number ) , Number ) ; @@v2@@ = Number ; } return @@v2@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_DWORD *"}, "location": "r56"}, {"n": "v2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s12"}]} {"name": "ehci_advance_periodic_state", "code": "unsigned __int64 __fastcall ehci_advance_periodic_state ( _DWORD * @@a1@@ ) { int @@v1@@ ; int @@v3@@ ; int @@v4@@ ; unsigned int @@v5@@ ; unsigned __int64 @@v6@@ ; @@v6@@ = __readfsqword ( Number ) ; @@v4@@ = Number ; @@v1@@ = ehci_get_state ( ( __int64 ) @@a1@@ , Number ) ; if ( @@v1@@ == Number ) { if ( ( @@a1@@ [ Number ] & Number ) != Number || ! ehci_periodic_enabled ( ( __int64 ) @@a1@@ ) ) return __readfsqword ( Number ) ^ @@v6@@ ; ehci_set_state ( @@a1@@ , @@v4@@ , Number ) ; } else if ( @@v1@@ != Number ) { fprintf ( stderr , String , ( unsigned int ) @@a1@@ [ Number ] ) ; g_assertion_message_expr ( Number L , String , Number L , String , Number L ) ; return __readfsqword ( Number ) ^ @@v6@@ ; } if ( ( @@a1@@ [ Number ] & Number ) != Number || ehci_periodic_enabled ( ( __int64 ) @@a1@@ ) ) { @@v5@@ = @@a1@@ [ Number ] & Number ; if ( @@v5@@ ) { @@v5@@ |= ( @@a1@@ [ Number ] >> Number ) & Number ; if ( ( int ) get_dwords ( ( __int64 ) @@a1@@ , @@v5@@ , ( unsigned int * ) & @@v3@@ , Number ) >= Number ) { ehci_set_fetch_addr ( ( __int64 ) @@a1@@ , @@v4@@ , @@v3@@ ) ; ehci_set_state ( @@a1@@ , @@v4@@ , Number ) ; ehci_advance_state ( @@a1@@ , @@v4@@ ) ; ehci_queues_rip_unused ( ( __int64 ) @@a1@@ , @@v4@@ ) ; } } } else { ehci_queues_rip_all ( ( __int64 ) @@a1@@ , @@v4@@ ) ; ehci_set_state ( @@a1@@ , @@v4@@ , Number ) ; } return __readfsqword ( Number ) ^ @@v6@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_DWORD"}, "location": "r56"}, {"n": "v1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r8"}, {"n": "v5", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s12"}, {"n": "v4", "t": {"T": 1, "n": "int", "s": 4}, "location": "s16"}, {"n": "v3", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v6", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]}