{"name": "ehci_trace_qh", "code": "unsigned __int64 __fastcall ehci_trace_qh ( __int64 @@a1@@ , unsigned int @@a2@@ , unsigned int * @@a3@@ ) { unsigned __int64 @@v5@@ ; @@v5@@ = __readfsqword ( Number ) ; trace_usb_ehci_qh_ptrs ( @@a1@@ , @@a2@@ , * @@a3@@ , @@a3@@ [ Number ] , @@a3@@ [ Number ] , @@a3@@ [ Number ] ) ; trace_usb_ehci_qh_fields ( @@a2@@ , @@a3@@ [ Number ] >> Number , HIWORD ( @@a3@@ [ Number ] ) & Number , ( @@a3@@ [ Number ] >> Number ) & Number , ( @@a3@@ [ Number ] >> Number ) & Number , @@a3@@ [ Number ] & Number ) ; trace_usb_ehci_qh_bits ( @@a2@@ , ( @@a3@@ [ Number ] & Number ) != Number , ( @@a3@@ [ Number ] & Number ) != Number , ( @@a3@@ [ Number ] & Number ) != Number , ( @@a3@@ [ Number ] & Number ) != Number ) ; return __readfsqword ( Number ) ^ @@v5@@ ; }", "source": [{"n": "a3", "t": {"T": 3, "t": "unsigned int"}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r64"}, {"n": "v5", "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_fetchqh", "code": "__int64 __fastcall ehci_state_fetchqh ( _DWORD * @@a1@@ , int @@a2@@ ) { __int64 v2 ; __int64 v3 ; __int64 v4 ; int @@v6@@ ; __int64 @@v7@@ ; __int64 @@v8@@ [ Number ] ; @@v8@@ [ Number ] = __readfsqword ( Number ) ; @@v6@@ = ehci_get_fetch_addr ( ( __int64 ) @@a1@@ , @@a2@@ ) ; @@v7@@ = ehci_find_queue_by_qh ( ( __int64 ) @@a1@@ , @@v6@@ , @@a2@@ ) ; if ( ! @@v7@@ ) @@v7@@ = ehci_alloc_queue ( ( __int64 ) @@a1@@ , @@v6@@ , @@a2@@ ) ; if ( ++ * ( _DWORD * ) ( @@v7@@ + Number ) <= Number ) { if ( ( int ) get_dwords ( ( __int64 ) @@a1@@ , * ( _DWORD * ) ( @@v7@@ + Number ) & Number , ( unsigned int * ) @@v8@@ , Number ) >= Number ) { ehci_trace_qh ( @@v7@@ , * ( _DWORD * ) ( @@v7@@ + Number ) & Number , ( unsigned int * ) @@v8@@ ) ; if ( ! ehci_verify_qh ( @@v7@@ , @@v8@@ ) && ( int ) ehci_reset_queue ( @@v7@@ ) > Number ) ehci_trace_guest_bug ( ( __int64 ) @@a1@@ , String ) ; v2 = @@v8@@ [ Number ] ; * ( _QWORD * ) ( @@v7@@ + Number ) = @@v8@@ [ Number ] ; * ( _QWORD * ) ( @@v7@@ + Number ) = v2 ; v3 = @@v8@@ [ Number ] ; * ( _QWORD * ) ( @@v7@@ + Number ) = @@v8@@ [ Number ] ; * ( _QWORD * ) ( @@v7@@ + Number ) = v3 ; v4 = @@v8@@ [ Number ] ; * ( _QWORD * ) ( @@v7@@ + Number ) = @@v8@@ [ Number ] ; * ( _QWORD * ) ( @@v7@@ + Number ) = v4 ; * ( _DWORD * ) ( @@v7@@ + Number ) = * ( _DWORD * ) ( @@v7@@ + Number ) >> Number ; if ( ! * ( _DWORD * ) ( @@v7@@ + Number ) ) * ( _DWORD * ) ( @@v7@@ + Number ) = Number ; if ( ! * ( _QWORD * ) ( @@v7@@ + Number ) ) * ( _QWORD * ) ( @@v7@@ + Number ) = ehci_find_device ( * ( _QWORD * ) @@v7@@ , * ( _BYTE * ) ( @@v7@@ + Number ) & Number ) ; if ( @@a2@@ && ( * ( _DWORD * ) ( @@v7@@ + Number ) & Number ) != Number ) { if ( ( @@a1@@ [ Number ] & Number ) == Number ) { ehci_set_state ( @@a1@@ , @@a2@@ , Number ) ; return Number L ; } ehci_clear_usbsts ( ( __int64 ) @@a1@@ , Number ) ; } if ( ( * ( _DWORD * ) ( @@v7@@ + Number ) & Number ) != Number ) { ehci_set_state ( @@a1@@ , @@a2@@ , Number ) ; } else if ( ( * ( _DWORD * ) ( @@v7@@ + Number ) & Number ) == Number || ( * ( _DWORD * ) ( @@v7@@ + Number ) & Number ) != Number ) { ehci_set_state ( @@a1@@ , @@a2@@ , Number ) ; } else { * ( _DWORD * ) ( @@v7@@ + Number ) = * ( _DWORD * ) ( @@v7@@ + Number ) ; ehci_set_state ( @@a1@@ , @@a2@@ , Number ) ; } } else { @@v7@@ = Number L ; } } else { ehci_set_state ( @@a1@@ , @@a2@@ , Number ) ; @@v7@@ = Number L ; } return @@v7@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_DWORD"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "v8", "t": {"T": 2, "n": 10, "s": 8, "t": "__int64"}, "location": "s80"}, {"n": "v7", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s88"}, {"n": "v6", "t": {"T": 1, "n": "int", "s": 4}, "location": "s92"}]}