{"name": "ehci_advance_state", "code": "unsigned __int64 __fastcall ehci_advance_state ( _DWORD * @@a1@@ , int @@a2@@ ) { int @@v3@@ ; __int64 @@v4@@ ; unsigned __int64 @@v5@@ ; @@v5@@ = __readfsqword ( Number ) ; @@v4@@ = Number L ; do { switch ( ( unsigned int ) ehci_get_state ( ( __int64 ) @@a1@@ , @@a2@@ ) ) { case Number : if ( ! @@v4@@ ) _assert_fail ( String , String , Number , String ) ; if ( @@a2@@ ) @@a1@@ [ Number ] = Number ; @@v3@@ = ehci_state_executing ( ( _DWORD * * ) @@v4@@ ) ; break ; case Number : @@v3@@ = ehci_state_waitlisthead ( @@a1@@ , @@a2@@ ) ; break ; case Number : @@v3@@ = ehci_state_fetchentry ( @@a1@@ , @@a2@@ ) ; break ; case Number : @@v4@@ = ehci_state_fetchqh ( @@a1@@ , @@a2@@ ) ; if ( @@v4@@ ) { if ( @@a2@@ != * ( _DWORD * ) ( @@v4@@ + Number ) ) _assert_fail ( String , String , Number , String ) ; @@v3@@ = Number ; } else { @@v3@@ = Number ; } break ; case Number : @@v3@@ = ehci_state_fetchitd ( @@a1@@ , @@a2@@ ) ; break ; case Number : @@v3@@ = ehci_state_fetchsitd ( @@a1@@ , @@a2@@ ) ; break ; case Number : if ( ! @@v4@@ ) _assert_fail ( String , String , Number , String ) ; @@v3@@ = ehci_state_advqueue ( @@v4@@ ) ; break ; case Number : if ( ! @@v4@@ ) _assert_fail ( String , String , Number , String ) ; @@v3@@ = ehci_state_fetchqtd ( ( _DWORD * * ) @@v4@@ ) ; break ; case Number : if ( ! @@v4@@ ) _assert_fail ( String , String , Number , String ) ; @@v3@@ = ehci_state_execute ( ( _DWORD * * ) @@v4@@ ) ; if ( @@a2@@ ) @@a1@@ [ Number ] = Number ; break ; case Number : if ( ! @@v4@@ ) _assert_fail ( String , String , Number , String ) ; @@v3@@ = ehci_state_writeback ( ( _DWORD * * ) @@v4@@ ) ; if ( ! @@a2@@ ) @@a1@@ [ Number ] = Number ; break ; case Number : if ( ! @@v4@@ ) _assert_fail ( String , String , Number , String ) ; @@v3@@ = ehci_state_horizqh ( ( _DWORD * * ) @@v4@@ ) ; break ; default : fwrite ( String , Number , Number , stderr ) ; @@v3@@ = Number ; g_assertion_message_expr ( Number L , String , Number L , String , Number L ) ; break ; } if ( @@v3@@ < Number ) { fwrite ( String , Number , Number , stderr ) ; ehci_reset ( ( __int64 ) @@a1@@ ) ; @@v3@@ = Number ; } } while ( @@v3@@ ) ; return __readfsqword ( Number ) ^ @@v5@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_DWORD"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "v4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "v3", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v5", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]}
{"name": "ehci_get_state", "code": "__int64 __fastcall ehci_get_state ( __int64 @@a1@@ , int @@a2@@ ) { __int64 @@result@@ ; if ( @@a2@@ ) @@result@@ = * ( unsigned int * ) ( @@a1@@ + Number ) ; else @@result@@ = * ( unsigned int * ) ( @@a1@@ + Number ) ; return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}]} {"name": "ehci_reset", "code": "unsigned __int64 __fastcall ehci_reset ( __int64 @@a1@@ ) { int i ; int j ; __int64 @@v4@@ [ Number ] ; unsigned __int64 @@v5@@ ; @@v5@@ = __readfsqword ( Number ) ; trace_usb_ehci_reset ( ) ; for ( i = Number ; i <= Number ; ++ i ) { @@v4@@ [ i ] = * ( _QWORD * ) ( @@a1@@ + Number L * i + Number ) ; if ( @@v4@@ [ i ] && * ( _DWORD * ) ( @@v4@@ [ i ] + Number ) ) usb_detach ( Number L * i + Number + @@a1@@ ) ; } memset ( ( void * ) ( @@a1@@ + Number ) , Number , Number ) ; memset ( ( void * ) ( @@a1@@ + Number ) , Number , Number ) ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; * ( _DWORD * ) ( @@a1@@ + Number ) = Number ; for ( j = Number ; j <= Number ; ++ j ) { if ( * ( _QWORD * ) ( @@a1@@ + Number * ( j + Number L ) ) ) * ( _DWORD * ) ( @@a1@@ + Number * ( j + Number L ) + Number ) = Number ; else * ( _DWORD * ) ( @@a1@@ + Number * ( j + Number L ) + Number ) = Number ; if ( @@v4@@ [ j ] && * ( _DWORD * ) ( @@v4@@ [ j ] + Number ) ) { usb_attach ( Number L * j + Number + @@a1@@ ) ; usb_device_reset ( @@v4@@ [ j ] ) ; } } ehci_queues_rip_all ( @@a1@@ , Number ) ; ehci_queues_rip_all ( @@a1@@ , Number ) ; timer_del ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ; qemu_bh_cancel ( * ( _QWORD * ) ( @@a1@@ + Number ) ) ; return __readfsqword ( Number ) ^ @@v5@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v4", "t": {"T": 2, "n": 7, "s": 8, "t": "__int64"}, "location": "s64"}, {"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_fetchentry", "code": "__int64 __fastcall ehci_state_fetchentry ( _DWORD * @@a1@@ , int @@a2@@ ) { int @@v3@@ ; unsigned int @@v4@@ ; unsigned int @@v5@@ ; @@v4@@ = Number ; @@v5@@ = ehci_get_fetch_addr ( ( __int64 ) @@a1@@ , @@a2@@ ) ; if ( ( @@v5@@ & Number ) != Number ) { ehci_set_state ( @@a1@@ , @@a2@@ , Number ) ; } else { if ( @@a2@@ && ( ( @@v5@@ >> Number ) & Number ) != Number ) { fwrite ( String , Number , Number , stderr ) ; return Number ; } @@v3@@ = ( @@v5@@ >> Number ) & Number ; if ( @@v3@@ == Number ) { ehci_set_state ( @@a1@@ , @@a2@@ , Number ) ; @@v4@@ = Number ; } else { if ( ( ( @@v5@@ >> Number ) & Number ) == Number ) { fprintf ( stderr , String , @@v5@@ , ( @@v5@@ >> Number ) & Number ) ; return Number ; } if ( @@v3@@ ) ehci_set_state ( @@a1@@ , @@a2@@ , Number ) ; else ehci_set_state ( @@a1@@ , @@a2@@ , Number ) ; @@v4@@ = Number ; } } return @@v4@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_DWORD"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}, {"n": "v3", "t": {"T": 1, "n": "int", "s": 4}, "location": "r8"}, {"n": "v5", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s12"}, {"n": "v4", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s16"}]} {"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"}]} {"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_fetchsitd", "code": "__int64 __fastcall ehci_state_fetchsitd ( _DWORD * @@a1@@ , int @@a2@@ ) { unsigned int @@v3@@ ; unsigned int @@v4@@ [ Number ] ; int @@v5@@ ; unsigned __int64 @@v6@@ ; @@v6@@ = __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 L ; ehci_trace_sitd ( ( __int64 ) @@a1@@ , @@v3@@ , @@v4@@ ) ; if ( ( @@v5@@ & Number ) != Number ) fwrite ( String , Number , Number , stderr ) ; 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": "int", "s": 4}, "location": "s36"}, {"n": "v4", "t": {"T": 2, "n": 3, "s": 4, "t": "unsigned int"}, "location": "s48"}, {"n": "v3", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s52"}, {"n": "v6", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]} {"name": "ehci_state_advqueue", "code": "__int64 __fastcall ehci_state_advqueue ( __int64 @@a1@@ ) { if ( ( * ( _DWORD * ) ( @@a1@@ + Number ) & Number ) == Number || ( * ( _DWORD * ) ( @@a1@@ + Number ) & Number ) != Number ) { if ( ( * ( _DWORD * ) ( @@a1@@ + Number ) & Number ) != Number ) { ehci_set_state ( * ( _DWORD * * ) @@a1@@ , * ( _DWORD * ) ( @@a1@@ + Number ) , Number ) ; } else { * ( _DWORD * ) ( @@a1@@ + Number ) = * ( _DWORD * ) ( @@a1@@ + Number ) ; ehci_set_state ( * ( _DWORD * * ) @@a1@@ , * ( _DWORD * ) ( @@a1@@ + Number ) , Number ) ; } } else { * ( _DWORD * ) ( @@a1@@ + Number ) = * ( _DWORD * ) ( @@a1@@ + Number ) ; ehci_set_state ( * ( _DWORD * * ) @@a1@@ , * ( _DWORD * ) ( @@a1@@ + Number ) , Number ) ; } return Number L ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}]} {"name": "ehci_state_fetchqtd", "code": "__int64 __fastcall ehci_state_fetchqtd ( _DWORD * * @@a1@@ ) { __int64 v2 ; __int64 v3 ; unsigned int @@v4@@ ; __int64 v5 ; __int64 v6 ; unsigned int @@v7@@ ; _DWORD * v8 ; _QWORD * v9 ; __int64 @@v10@@ ; __int64 @@v11@@ ; __int64 @@v12@@ ; __int64 @@v13@@ ; unsigned __int64 @@v14@@ ; @@v14@@ = __readfsqword ( Number ) ; @@v7@@ = Number ; if ( ( int ) get_dwords ( ( __int64 ) * @@a1@@ , * ( ( _DWORD * ) @@a1@@ + Number ) & Number , ( unsigned int * ) & @@v10@@ , Number ) < Number ) return Number L ; ehci_trace_qtd ( ( __int64 ) @@a1@@ , * ( ( _DWORD * ) @@a1@@ + Number ) & Number , ( unsigned int * ) & @@v10@@ ) ; v8 = @@a1@@ [ Number ] ; if ( v8 ) { if ( ! ehci_verify_qtd ( v8 , & @@v10@@ ) ) { ehci_cancel_queue ( ( __int64 ) @@a1@@ ) ; if ( ( @@v11@@ & Number ) != Number ) ehci_trace_guest_bug ( ( __int64 ) * @@a1@@ , String ) ; v8 = Number L ; } else { v2 = @@v11@@ ; * ( ( _QWORD * ) v8 + Number ) = @@v10@@ ; * ( ( _QWORD * ) v8 + Number ) = v2 ; v3 = @@v13@@ ; * ( ( _QWORD * ) v8 + Number ) = @@v12@@ ; * ( ( _QWORD * ) v8 + Number ) = v3 ; ehci_qh_do_overlay ( ( __int64 ) @@a1@@ ) ; } } if ( ( @@v11@@ & Number ) != Number ) { if ( v8 ) { @@v4@@ = v8 [ Number ] ; if ( @@v4@@ == Number ) { ehci_set_state ( * @@a1@@ , * ( ( _DWORD * ) @@a1@@ + Number ) , Number ) ; } else if ( @@v4@@ <= Number ) { if ( @@v4@@ <= Number ) { ehci_set_state ( * @@a1@@ , * ( ( _DWORD * ) @@a1@@ + Number ) , Number ) ; } else { @@v7@@ = ehci_fill_queue ( * * ( ( _QWORD * * ) @@a1@@ [ Number ] + Number ) ) ; ehci_set_state ( * @@a1@@ , * ( ( _DWORD * ) @@a1@@ + Number ) , Number ) ; } } } else { v9 = ehci_alloc_packet ( ( __int64 ) @@a1@@ ) ; * ( ( _DWORD * ) v9 + Number ) = * ( ( _DWORD * ) @@a1@@ + Number ) ; v5 = @@v11@@ ; v9 [ Number ] = @@v10@@ ; v9 [ Number ] = v5 ; v6 = @@v13@@ ; v9 [ Number ] = @@v12@@ ; v9 [ Number ] = v6 ; ehci_set_state ( * @@a1@@ , * ( ( _DWORD * ) @@a1@@ + Number ) , Number ) ; } } else { ehci_set_state ( * @@a1@@ , * ( ( _DWORD * ) @@a1@@ + Number ) , Number ) ; } return @@v7@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_DWORD *"}, "location": "r56"}, {"n": "v4", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r8"}, {"n": "v13", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}, {"n": "v12", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s32"}, {"n": "v11", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s40"}, {"n": "v10", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s48"}, {"n": "v7", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s60"}, {"n": "v14", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]} {"name": "ehci_state_horizqh", "code": "__int64 __fastcall ehci_state_horizqh ( _DWORD * * @@a1@@ ) { unsigned int @@v2@@ ; @@v2@@ = Number ; if ( ( unsigned int ) ehci_get_fetch_addr ( ( __int64 ) * @@a1@@ , * ( ( _DWORD * ) @@a1@@ + Number ) ) == * ( ( _DWORD * ) @@a1@@ + Number ) ) { ehci_set_state ( * @@a1@@ , * ( ( _DWORD * ) @@a1@@ + Number ) , Number ) ; } else { ehci_set_fetch_addr ( ( __int64 ) * @@a1@@ , * ( ( _DWORD * ) @@a1@@ + Number ) , * ( ( _DWORD * ) @@a1@@ + Number ) ) ; ehci_set_state ( * @@a1@@ , * ( ( _DWORD * ) @@a1@@ + Number ) , Number ) ; @@v2@@ = Number ; } return @@v2@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_DWORD *"}, "location": "r56"}, {"n": "v2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s12"}]} {"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"}]} {"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"}]} {"name": "ehci_advance_async_state", "code": "unsigned __int64 __fastcall ehci_advance_async_state ( _DWORD * @@a1@@ ) { int @@v1@@ ; unsigned __int64 @@v3@@ ; @@v3@@ = __readfsqword ( Number ) ; @@v1@@ = ehci_get_state ( ( __int64 ) @@a1@@ , Number ) ; if ( @@v1@@ == Number ) { if ( ! ehci_async_enabled ( ( __int64 ) @@a1@@ ) ) return __readfsqword ( Number ) ^ @@v3@@ ; ehci_set_state ( @@a1@@ , Number , Number ) ; } else if ( @@v1@@ != Number ) { fprintf ( stderr , String , ( unsigned int ) @@a1@@ [ Number ] ) ; g_assertion_message_expr ( Number L , String , Number L , String , Number L ) ; return __readfsqword ( Number ) ^ @@v3@@ ; } if ( ! ehci_async_enabled ( ( __int64 ) @@a1@@ ) ) { ehci_queues_rip_all ( ( __int64 ) @@a1@@ , Number ) ; ehci_set_state ( @@a1@@ , Number , Number ) ; } else if ( ( @@a1@@ [ Number ] & Number ) == Number ) { if ( @@a1@@ [ Number ] ) { ehci_set_state ( @@a1@@ , Number , Number ) ; ehci_advance_state ( @@a1@@ , Number ) ; if ( ( @@a1@@ [ Number ] & Number ) != Number ) { ehci_queues_rip_unseen ( ( __int64 ) @@a1@@ , Number ) ; trace_usb_ehci_doorbell_ack ( ) ; @@a1@@ [ Number ] &= Number ; ehci_raise_irq ( ( __int64 ) @@a1@@ , Number ) ; } } } return __readfsqword ( Number ) ^ @@v3@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_DWORD"}, "location": "r56"}, {"n": "v1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r8"}, {"n": "v3", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]} {"name": "ehci_advance_periodic_state", "code": "unsigned __int64 __fastcall ehci_advance_periodic_state ( _DWORD * @@a1@@ ) { int @@v1@@ ; int @@v3@@ ; int @@v4@@ ; unsigned int @@v5@@ ; unsigned __int64 @@v6@@ ; @@v6@@ = __readfsqword ( Number ) ; @@v4@@ = Number ; @@v1@@ = ehci_get_state ( ( __int64 ) @@a1@@ , Number ) ; if ( @@v1@@ == Number ) { if ( ( @@a1@@ [ Number ] & Number ) != Number || ! ehci_periodic_enabled ( ( __int64 ) @@a1@@ ) ) return __readfsqword ( Number ) ^ @@v6@@ ; ehci_set_state ( @@a1@@ , @@v4@@ , Number ) ; } else if ( @@v1@@ != Number ) { fprintf ( stderr , String , ( unsigned int ) @@a1@@ [ Number ] ) ; g_assertion_message_expr ( Number L , String , Number L , String , Number L ) ; return __readfsqword ( Number ) ^ @@v6@@ ; } if ( ( @@a1@@ [ Number ] & Number ) != Number || ehci_periodic_enabled ( ( __int64 ) @@a1@@ ) ) { @@v5@@ = @@a1@@ [ Number ] & Number ; if ( @@v5@@ ) { @@v5@@ |= ( @@a1@@ [ Number ] >> Number ) & Number ; if ( ( int ) get_dwords ( ( __int64 ) @@a1@@ , @@v5@@ , ( unsigned int * ) & @@v3@@ , Number ) >= Number ) { ehci_set_fetch_addr ( ( __int64 ) @@a1@@ , @@v4@@ , @@v3@@ ) ; ehci_set_state ( @@a1@@ , @@v4@@ , Number ) ; ehci_advance_state ( @@a1@@ , @@v4@@ ) ; ehci_queues_rip_unused ( ( __int64 ) @@a1@@ , @@v4@@ ) ; } } } else { ehci_queues_rip_all ( ( __int64 ) @@a1@@ , @@v4@@ ) ; ehci_set_state ( @@a1@@ , @@v4@@ , Number ) ; } return __readfsqword ( Number ) ^ @@v6@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_DWORD"}, "location": "r56"}, {"n": "v1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r8"}, {"n": "v5", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s12"}, {"n": "v4", "t": {"T": 1, "n": "int", "s": 4}, "location": "s16"}, {"n": "v3", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "v6", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]}