{"name": "ehci_verify_qh", "code": "_BOOL8 __fastcall ehci_verify_qh ( __int64 @@a1@@ , _DWORD * @@a2@@ ) { int @@v3@@ ; @@v3@@ = @@a2@@ [ Number ] & Number ; return @@v3@@ == ( * ( _DWORD * ) ( @@a1@@ + Number ) & Number ) && ( ( @@a2@@ [ Number ] >> Number ) & Number ) == ( ( * ( _DWORD * ) ( @@a1@@ + Number ) >> Number ) & Number ) && @@a2@@ [ Number ] == * ( _DWORD * ) ( @@a1@@ + Number ) && ( ! * ( _DWORD * ) ( @@a1@@ + Number ) || @@a2@@ [ Number ] == * ( _DWORD * ) ( @@a1@@ + Number ) ) && ! memcmp ( @@a2@@ + Number , ( const void * ) ( @@a1@@ + Number ) , Number ) && ( ! * ( _QWORD * ) ( @@a1@@ + Number ) || @@v3@@ == * ( unsigned __int8 * ) ( * ( _QWORD * ) ( @@a1@@ + Number ) + Number L ) ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "_DWORD"}, "location": "r64"}, {"n": "v3", "t": {"T": 1, "n": "int", "s": 4}, "location": "s16"}]}
{"name": "ehci_writeback_async_complete_packet", "code": "unsigned __int64 __fastcall ehci_writeback_async_complete_packet ( __int64 @@a1@@ ) { unsigned int @@v2@@ ; __int64 * @@v3@@ ; unsigned int @@v4@@ [ Number ] ; unsigned int @@v5@@ [ Number ] ; unsigned __int64 @@v6@@ ; @@v6@@ = __readfsqword ( Number ) ; @@v3@@ = * ( __int64 * * ) @@a1@@ ; get_dwords ( * * ( _QWORD * * ) @@a1@@ , * ( _DWORD * ) ( * ( _QWORD * ) @@a1@@ + Number L ) & Number , @@v5@@ , Number ) ; get_dwords ( * @@v3@@ , * ( ( _DWORD * ) @@v3@@ + Number ) & Number , @@v4@@ , Number ) ; if ( ! ehci_verify_qh ( ( __int64 ) @@v3@@ , @@v5@@ ) || ! ehci_verify_qtd ( ( _DWORD * ) @@a1@@ , @@v4@@ ) ) { * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; ehci_free_packet ( @@a1@@ ) ; } else { @@v2@@ = ehci_get_state ( * @@v3@@ , * ( ( _DWORD * ) @@v3@@ + Number ) ) ; ehci_state_executing ( @@v3@@ ) ; ehci_state_writeback ( @@v3@@ ) ; if ( ( @@v3@@ [ Number ] & Number ) == Number ) ehci_state_advqueue ( @@v3@@ ) ; ehci_set_state ( ( _DWORD * ) * @@v3@@ , * ( ( _DWORD * ) @@v3@@ + Number ) , @@v2@@ ) ; } return __readfsqword ( Number ) ^ @@v6@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v3", "t": {"T": 3, "t": "__int64"}, "location": "s104"}, {"n": "v2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s108"}, {"n": "v5", "t": {"T": 2, "n": 14, "s": 4, "t": "unsigned int"}, "location": "s64"}, {"n": "v6", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}, {"n": "v4", "t": {"T": 2, "n": 8, "s": 4, "t": "unsigned int"}, "location": "s96"}]} {"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"}]}