{"name": "ehci_flush_qh", "code": "unsigned __int64 __fastcall ehci_flush_qh ( __int64 @@a1@@ ) { unsigned __int64 @@v2@@ ; @@v2@@ = __readfsqword ( Number ) ; put_dwords ( * ( _QWORD * ) @@a1@@ , ( * ( _DWORD * ) ( @@a1@@ + Number ) & Number ) + Number , ( unsigned int * ) ( @@a1@@ + Number ) , Number ) ; return __readfsqword ( Number ) ^ @@v2@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v2", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]}
{"name": "put_dwords", "code": "__int64 __fastcall put_dwords ( __int64 @@a1@@ , unsigned int @@a2@@ , unsigned int * @@a3@@ , int @@a4@@ ) { __int64 @@result@@ ; int @@v8@@ ; int @@v9@@ ; unsigned __int64 @@v10@@ ; @@v10@@ = __readfsqword ( Number ) ; if ( * ( _QWORD * ) ( @@a1@@ + Number ) ) { @@v9@@ = Number ; while ( @@v9@@ < @@a4@@ ) { @@v8@@ = cpu_to_le32 ( * @@a3@@ ) ; dma_memory_write ( * ( _QWORD * ) ( @@a1@@ + Number ) , @@a2@@ , ( __int64 ) & @@v8@@ , Number ) ; ++ @@v9@@ ; ++ @@a3@@ ; @@a2@@ += Number ; } @@result@@ = ( unsigned int ) @@a4@@ ; } else { ehci_raise_irq ( @@a1@@ , Number ) ; * ( _DWORD * ) ( @@a1@@ + Number ) &= Number ; trace_usb_ehci_dma_error ( ) ; @@result@@ = Number ; } return @@result@@ ; }", "source": [{"n": "a3", "t": {"T": 3, "t": "unsigned int"}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "int", "s": 4}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "v9", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "v8", "t": {"T": 1, "n": "int", "s": 4}, "location": "s16"}, {"n": "v10", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]} {"name": "ehci_qh_do_overlay", "code": "__int64 __fastcall ehci_qh_do_overlay ( __int64 @@a1@@ ) { int @@v1@@ ; int @@i@@ ; unsigned int @@v4@@ ; int @@v5@@ ; _DWORD * @@v6@@ ; @@v6@@ = * ( _DWORD * * ) ( @@a1@@ + Number ) ; if ( ! @@v6@@ ) _assert_fail ( String , String , Number , String ) ; if ( @@v6@@ [ Number ] != * ( _DWORD * ) ( @@a1@@ + Number ) ) _assert_fail ( String , String , Number , String ) ; @@v4@@ = * ( _DWORD * ) ( @@a1@@ + Number ) & Number ; @@v5@@ = * ( _DWORD * ) ( @@a1@@ + Number ) & Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = @@v6@@ [ Number ] ; * ( _DWORD * ) ( @@a1@@ + Number ) = @@v6@@ [ Number ] ; * ( _DWORD * ) ( @@a1@@ + Number ) = @@v6@@ [ Number ] ; * ( _DWORD * ) ( @@a1@@ + Number ) = @@v6@@ [ Number ] ; if ( ( ( * ( _DWORD * ) ( @@a1@@ + Number ) >> Number ) & Number ) == Number ) { * ( _DWORD * ) ( @@a1@@ + Number ) &= Number ; * ( _DWORD * ) ( @@a1@@ + Number ) |= @@v5@@ ; } * ( _DWORD * ) ( @@a1@@ + Number ) = ( Number * ( * ( _DWORD * ) ( @@a1@@ + Number ) >> Number ) ) & Number | * ( _DWORD * ) ( @@a1@@ + Number ) & Number ; for ( @@i@@ = Number ; @@i@@ <= Number ; ++ @@i@@ ) * ( _DWORD * ) ( @@a1@@ + Number * ( @@i@@ + Number L ) + Number ) = @@v6@@ [ @@i@@ + Number ] ; if ( ( * ( _DWORD * ) ( @@a1@@ + Number ) & Number ) == Number ) { * ( _DWORD * ) ( @@a1@@ + Number ) &= Number ; * ( _DWORD * ) ( @@a1@@ + Number ) |= @@v4@@ ; } @@v1@@ = * ( _DWORD * ) ( @@a1@@ + Number ) ; LOBYTE ( @@v1@@ ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = @@v1@@ ; * ( _DWORD * ) ( @@a1@@ + Number ) &= Number ; ehci_flush_qh ( @@a1@@ ) ; return Number L ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r8"}, {"n": "v6", "t": {"T": 3, "t": "_DWORD"}, "location": "s16"}, {"n": "v5", "t": {"T": 1, "n": "int", "s": 4}, "location": "s32"}, {"n": "v4", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s36"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s40"}]} {"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"}]} {"name": "ehci_state_executing", "code": "__int64 __fastcall ehci_state_executing ( _DWORD * * @@a1@@ ) { _DWORD * @@v2@@ ; @@v2@@ = @@a1@@ [ Number ] ; if ( ! @@v2@@ ) _assert_fail ( String , String , Number , String ) ; if ( @@v2@@ [ Number ] != * ( ( _DWORD * ) @@a1@@ + Number ) ) _assert_fail ( String , String , Number , String ) ; ehci_execute_complete ( ( __int64 ) @@a1@@ ) ; if ( ! * ( ( _DWORD * ) @@a1@@ + Number ) && * ( ( int * ) @@a1@@ + Number ) > Number ) -- * ( ( _DWORD * ) @@a1@@ + Number ) ; if ( @@v2@@ [ Number ] == Number ) ehci_set_state ( * @@a1@@ , * ( ( _DWORD * ) @@a1@@ + Number ) , Number ) ; else ehci_set_state ( * @@a1@@ , * ( ( _DWORD * ) @@a1@@ + Number ) , Number ) ; ehci_flush_qh ( ( __int64 ) @@a1@@ ) ; return Number L ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_DWORD *"}, "location": "r56"}, {"n": "v2", "t": {"T": 3, "t": "_DWORD"}, "location": "s16"}]}