{"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": "cpu_to_le32", "code": "__int64 __fastcall cpu_to_le32 ( unsigned int @@a1@@ ) { return @@a1@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r56"}]} {"name": "dma_memory_write", "code": "__int64 __fastcall dma_memory_write ( __int64 @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ , unsigned int @@a4@@ ) { return dma_memory_rw ( @@a1@@ , @@a2@@ , @@a3@@ , @@a4@@ , Number ) ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}]} {"name": "ehci_raise_irq", "code": "unsigned __int64 __fastcall ehci_raise_irq ( __int64 @@a1@@ , int @@a2@@ ) { unsigned __int64 @@v3@@ ; @@v3@@ = __readfsqword ( Number ) ; if ( ( @@a2@@ & Number ) != Number ) { * ( _DWORD * ) ( @@a1@@ + Number ) |= @@a2@@ ; ehci_update_irq ( @@a1@@ ) ; } else { * ( _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_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": "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_writeback", "code": "__int64 __fastcall ehci_state_writeback ( _DWORD * * @@a1@@ ) { __int64 @@v2@@ ; @@v2@@ = ( __int64 ) @@a1@@ [ Number ] ; if ( ! @@v2@@ ) _assert_fail ( String , String , Number , String ) ; if ( * ( _DWORD * ) ( @@v2@@ + Number ) != * ( ( _DWORD * ) @@a1@@ + Number ) ) _assert_fail ( String , String , Number , String ) ; ehci_trace_qtd ( ( __int64 ) @@a1@@ , * ( _DWORD * ) ( @@v2@@ + Number ) & Number , ( unsigned int * ) @@a1@@ + Number ) ; put_dwords ( ( __int64 ) * @@a1@@ , ( * ( _DWORD * ) ( @@v2@@ + Number ) & Number ) + Number , ( unsigned int * ) @@a1@@ + Number , Number ) ; ehci_free_packet ( @@v2@@ ) ; if ( ( ( _DWORD ) @@a1@@ [ Number ] & Number ) != Number ) ehci_set_state ( * @@a1@@ , * ( ( _DWORD * ) @@a1@@ + Number ) , Number ) ; else ehci_set_state ( * @@a1@@ , * ( ( _DWORD * ) @@a1@@ + Number ) , Number ) ; return Number L ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_DWORD *"}, "location": "r56"}, {"n": "v2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}]}