{"name": "ehci_set_usbsts", "code": "unsigned __int64 __fastcall ehci_set_usbsts ( __int64 @@a1@@ , int @@a2@@ ) { unsigned __int64 @@v3@@ ; @@v3@@ = __readfsqword ( Number ) ; if ( ( @@a2@@ & * ( _DWORD * ) ( @@a1@@ + Number ) ) != @@a2@@ ) { ehci_trace_usbsts ( @@a2@@ , Number ) ; * ( _DWORD * ) ( @@a1@@ + Number ) |= @@a2@@ ; } return __readfsqword ( Number ) ^ @@v3@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "v3", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]}
{"name": "ehci_trace_usbsts", "code": "unsigned __int64 __fastcall ehci_trace_usbsts ( __int16 @@a1@@ , unsigned int @@a2@@ ) { unsigned __int64 @@v3@@ ; @@v3@@ = __readfsqword ( Number ) ; if ( ( @@a1@@ & Number ) != Number ) trace_usb_ehci_usbsts ( String , @@a2@@ ) ; if ( ( @@a1@@ & Number ) != Number ) trace_usb_ehci_usbsts ( String , @@a2@@ ) ; if ( ( @@a1@@ & Number ) != Number ) trace_usb_ehci_usbsts ( String , @@a2@@ ) ; if ( ( @@a1@@ & Number ) != Number ) trace_usb_ehci_usbsts ( String , @@a2@@ ) ; if ( ( @@a1@@ & Number ) != Number ) trace_usb_ehci_usbsts ( String , @@a2@@ ) ; if ( ( @@a1@@ & Number ) != Number ) trace_usb_ehci_usbsts ( String , @@a2@@ ) ; if ( ( @@a1@@ & Number ) != Number ) trace_usb_ehci_usbsts ( String , @@a2@@ ) ; if ( ( @@a1@@ & Number ) != Number ) trace_usb_ehci_usbsts ( String , @@a2@@ ) ; if ( ( @@a1@@ & Number ) != Number ) trace_usb_ehci_usbsts ( String , @@a2@@ ) ; if ( ( @@a1@@ & Number ) != Number ) trace_usb_ehci_usbsts ( String , @@a2@@ ) ; return __readfsqword ( Number ) ^ @@v3@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int16", "s": 2}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r64"}, {"n": "v3", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]} {"name": "ehci_update_halt", "code": "unsigned __int64 __fastcall ehci_update_halt ( _DWORD * @@a1@@ ) { unsigned __int64 @@v2@@ ; @@v2@@ = __readfsqword ( Number ) ; if ( ( @@a1@@ [ Number ] & Number ) != Number ) { ehci_clear_usbsts ( ( __int64 ) @@a1@@ , Number ) ; } else if ( @@a1@@ [ Number ] == Number && @@a1@@ [ Number ] == Number ) { ehci_set_usbsts ( ( __int64 ) @@a1@@ , Number ) ; } return __readfsqword ( Number ) ^ @@v2@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_DWORD"}, "location": "r56"}, {"n": "v2", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]} {"name": "ehci_set_state", "code": "unsigned __int64 __fastcall ehci_set_state ( _DWORD * @@a1@@ , int @@a2@@ , unsigned int @@a3@@ ) { const char * v3 ; const char * v4 ; unsigned __int64 @@v7@@ ; @@v7@@ = __readfsqword ( Number ) ; if ( @@a2@@ ) { v3 = state2str ( @@a3@@ ) ; trace_usb_ehci_state ( String , v3 ) ; @@a1@@ [ Number ] = @@a3@@ ; if ( @@a1@@ [ Number ] == Number ) { ehci_clear_usbsts ( ( __int64 ) @@a1@@ , Number ) ; ehci_update_halt ( @@a1@@ ) ; } else { ehci_set_usbsts ( ( __int64 ) @@a1@@ , Number ) ; } } else { v4 = state2str ( @@a3@@ ) ; trace_usb_ehci_state ( String , v4 ) ; @@a1@@ [ Number ] = @@a3@@ ; if ( @@a1@@ [ Number ] == Number ) { ehci_clear_usbsts ( ( __int64 ) @@a1@@ , Number ) ; ehci_update_halt ( @@a1@@ ) ; } else { ehci_set_usbsts ( ( __int64 ) @@a1@@ , Number ) ; } } return __readfsqword ( Number ) ^ @@v7@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r16"}, {"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": "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_execute", "code": "__int64 __fastcall ehci_state_execute ( _DWORD * * @@a1@@ ) { unsigned int @@v2@@ ; _QWORD * @@v3@@ ; @@v3@@ = @@a1@@ [ Number ] ; if ( ! @@v3@@ ) _assert_fail ( String , String , Number , String ) ; if ( * ( ( _DWORD * ) @@v3@@ + Number ) != * ( ( _DWORD * ) @@a1@@ + Number ) ) _assert_fail ( String , String , Number , String ) ; if ( ( unsigned int ) ehci_qh_do_overlay ( ( __int64 ) @@a1@@ ) ) return Number ; if ( * ( ( _DWORD * ) @@a1@@ + Number ) || * ( ( _DWORD * ) @@a1@@ + Number ) ) { if ( * ( ( _DWORD * ) @@a1@@ + Number ) ) ehci_set_usbsts ( ( __int64 ) * @@a1@@ , Number ) ; @@v2@@ = ehci_execute ( @@v3@@ , ( __int64 ) String ) ; if ( @@v2@@ != Number ) { if ( * ( ( _DWORD * ) @@v3@@ + Number ) == Number ) { ehci_flush_qh ( ( __int64 ) @@a1@@ ) ; trace_usb_ehci_packet_action ( * @@v3@@ , @@v3@@ , String ) ; * ( ( _DWORD * ) @@v3@@ + Number ) = Number ; ehci_set_state ( * @@a1@@ , * ( ( _DWORD * ) @@a1@@ + Number ) , Number ) ; if ( * ( ( _DWORD * ) @@a1@@ + Number ) ) @@v2@@ = ehci_fill_queue ( ( __int64 ) @@v3@@ ) ; else @@v2@@ = Number ; } else { ehci_set_state ( * @@a1@@ , * ( ( _DWORD * ) @@a1@@ + Number ) , Number ) ; @@v2@@ = Number ; } } } else { ehci_set_state ( * @@a1@@ , * ( ( _DWORD * ) @@a1@@ + Number ) , Number ) ; @@v2@@ = Number ; } return @@v2@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_DWORD *"}, "location": "r56"}, {"n": "v3", "t": {"T": 3, "t": "_QWORD"}, "location": "s16"}, {"n": "v2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s20"}]}