{"name": "set_netdev", "code": "unsigned __int64 __fastcall set_netdev ( __int64 @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ , __int64 @@a4@@ , __int64 @@a5@@ ) { return set_pointer ( @@a1@@ , @@a2@@ , @@a3@@ , ( __int64 ( __fastcall * ) ( __int64 , _BYTE * , _QWORD * ) ) parse_netdev , @@a4@@ , @@a5@@ ) ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "a5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r72"}]}
{"name": "set_pointer", "code": "unsigned __int64 __fastcall set_pointer ( __int64 @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ , __int64 ( __fastcall * @@a4@@ ) ( __int64 , _BYTE * , _QWORD * ) , __int64 @@a5@@ , __int64 @@a6@@ ) { unsigned int @@v11@@ ; __int64 @@v12@@ ; _BYTE * @@v13@@ ; __int64 @@v14@@ ; _QWORD * @@v15@@ ; unsigned __int64 @@v16@@ ; @@v16@@ = __readfsqword ( Number ) ; @@v14@@ = object_dynamic_cast_assert ( @@a1@@ , String , String , Number L , String ) ; @@v12@@ = Number L ; @@v15@@ = ( _QWORD * ) qdev_get_prop_ptr ( @@v14@@ , @@a3@@ ) ; if ( * ( _BYTE * ) ( @@v14@@ + Number ) ) { qdev_prop_set_after_realize ( @@v14@@ , @@a5@@ , @@a6@@ ) ; } else { visit_type_str ( @@a2@@ , & @@v13@@ , @@a5@@ , & @@v12@@ ) ; if ( @@v12@@ ) { error_propagate ( @@a6@@ , @@v12@@ ) ; } else if ( * @@v13@@ ) { @@v11@@ = @@a4@@ ( @@v14@@ , @@v13@@ , @@v15@@ ) ; error_set_from_qdev_prop_error ( @@a6@@ , @@v11@@ , @@v14@@ , @@a3@@ , @@v13@@ ) ; g_free ( @@v13@@ ) ; } else { g_free ( @@v13@@ ) ; * @@v15@@ = Number L ; } } return __readfsqword ( Number ) ^ @@v16@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a4", "t": {"T": 9, "n": "__int64 (__fastcall *)(__int64, _BYTE *, _QWORD *)"}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "a5", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r72"}, {"n": "a6", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r80"}, {"n": "v15", "t": {"T": 3, "t": "_QWORD"}, "location": "s16"}, {"n": "v14", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}, {"n": "v13", "t": {"T": 3, "t": "_BYTE"}, "location": "s32"}, {"n": "v12", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s40"}, {"n": "v11", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s44"}, {"n": "v16", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]} {"name": "parse_netdev", "code": "__int64 __fastcall parse_netdev ( __int64 @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ ) { int @@i@@ ; int @@v6@@ ; __int64 @@v7@@ ; __int64 @@v9@@ [ Number ] ; @@v9@@ [ Number ] = __readfsqword ( Number ) ; @@v7@@ = @@a3@@ - Number ; @@v6@@ = qemu_find_net_clients_except ( @@a2@@ , @@v9@@ , Number L , Number L ) ; if ( ! @@v6@@ ) return ( unsigned int ) Number ; if ( @@v6@@ > Number ) return ( unsigned int ) Number ; for ( @@i@@ = Number ; @@i@@ < @@v6@@ ; ++ @@i@@ ) { if ( ! @@v9@@ [ @@i@@ ] ) return ( unsigned int ) Number ; if ( * ( _QWORD * ) ( @@v9@@ [ @@i@@ ] + Number ) ) return ( unsigned int ) Number ; if ( * ( _QWORD * ) ( Number L * @@i@@ + @@a3@@ ) ) return ( unsigned int ) Number ; * ( _QWORD * ) ( @@a3@@ + Number L * @@i@@ ) = @@v9@@ [ @@i@@ ] ; * ( _DWORD * ) ( * ( _QWORD * ) ( Number L * @@i@@ + @@a3@@ ) + Number L ) = @@i@@ ; } * ( _DWORD * ) ( @@v7@@ + Number ) = @@v6@@ ; return Number L ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v9", "t": {"T": 2, "n": 1026, "s": 8, "t": "__int64"}, "location": "s8208"}, {"n": "v7", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8224"}, {"n": "v6", "t": {"T": 1, "n": "int", "s": 4}, "location": "s8244"}, {"n": "i", "t": {"T": 1, "n": "int", "s": 4}, "location": "s8252"}]} {"name": "qdev_prop_set_netdev", "code": "__int64 __fastcall qdev_prop_set_netdev ( __int64 @@a1@@ , __int64 @@a2@@ , __int64 @@a3@@ ) { void * @@v3@@ ; if ( @@a3@@ && ! * ( _QWORD * ) ( @@a3@@ + Number ) ) _assert_fail ( String , String , Number , String ) ; if ( @@a3@@ ) @@v3@@ = * ( void * * ) ( @@a3@@ + Number ) ; else @@v3@@ = & unk_1078 ; return object_property_set_str ( @@a1@@ , @@v3@@ , @@a2@@ , & error_abort ) ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "v3", "t": {"T": 3, "t": "void"}, "location": "r8"}]} {"name": "qdev_set_nic_properties", "code": "__int64 __fastcall qdev_set_nic_properties ( __int64 @@a1@@ , __int64 @@a2@@ ) { __int64 @@result@@ ; qdev_prop_set_macaddr ( @@a1@@ , String , @@a2@@ ) ; if ( * ( _QWORD * ) ( @@a2@@ + Number ) ) qdev_prop_set_netdev ( @@a1@@ , ( __int64 ) String , * ( _QWORD * ) ( @@a2@@ + Number ) ) ; if ( * ( _DWORD * ) ( @@a2@@ + Number ) != Number && object_property_find ( @@a1@@ , String , Number L ) ) qdev_prop_set_uint32 ( @@a1@@ , String , * ( unsigned int * ) ( @@a2@@ + Number ) ) ; @@result@@ = @@a2@@ ; * ( _DWORD * ) ( @@a2@@ + Number ) = Number ; return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}]}