{"name": "platform_bus_init_notify", "code": "__int64 __fastcall platform_bus_init_notify ( __int64 @@a1@@ ) { plaform_bus_refresh_irqs ( @@a1@@ - Number ) ; return foreach_dynamic_sysbus_device ( link_sysbus_device , @@a1@@ - Number ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}]}
{"name": "plaform_bus_refresh_irqs", "code": "__int64 __fastcall plaform_bus_refresh_irqs ( __int64 @@a1@@ ) { __int64 @@result@@ ; bitmap_zero ( * ( _QWORD * * ) ( @@a1@@ + Number ) , * ( unsigned int * ) ( @@a1@@ + Number ) ) ; foreach_dynamic_sysbus_device ( platform_bus_count_irqs , @@a1@@ ) ; @@result@@ = @@a1@@ ; * ( _BYTE * ) ( @@a1@@ + Number ) = Number ; return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}]} {"name": "link_sysbus_device", "code": "__int64 __fastcall link_sysbus_device ( __int64 @@a1@@ , __int64 @@a2@@ ) { char @@i@@ ; unsigned int v4 ; unsigned int j ; v4 = Number ; for ( @@i@@ = sysbus_has_irq ( @@a1@@ , Number L ) ; @@i@@ ; @@i@@ = sysbus_has_irq ( @@a1@@ , v4 ) ) platform_bus_map_irq ( @@a2@@ , @@a1@@ , v4 ++ ) ; for ( j = Number ; ( unsigned __int8 ) sysbus_has_mmio ( @@a1@@ , j ) ; ++ j ) platform_bus_map_mmio ( @@a2@@ , @@a1@@ , j ) ; return Number L ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "i", "t": {"T": 1, "n": "char", "s": 1}, "location": "r8"}]} {"name": "platform_bus_realize", "code": "__int64 __fastcall platform_bus_realize ( __int64 @@a1@@ ) { unsigned int @@i@@ ; __int64 @@v3@@ ; __int64 @@v4@@ ; @@v3@@ = object_dynamic_cast_assert ( @@a1@@ , String , String , Number L , String ) ; @@v4@@ = object_dynamic_cast_assert ( @@a1@@ , String , String , Number L , String ) ; memory_region_init ( @@v4@@ + Number , Number L , String , * ( unsigned int * ) ( @@v4@@ + Number ) ) ; sysbus_init_mmio ( @@v3@@ , @@v4@@ + Number ) ; * ( _QWORD * ) ( @@v4@@ + Number ) = bitmap_new ( * ( unsigned int * ) ( @@v4@@ + Number ) ) ; * ( _QWORD * ) ( @@v4@@ + Number ) = g_malloc0_n ( * ( unsigned int * ) ( @@v4@@ + Number ) , Number L ) ; for ( @@i@@ = Number ; * ( _DWORD * ) ( @@v4@@ + Number ) > @@i@@ ; ++ @@i@@ ) sysbus_init_irq ( @@v3@@ , * ( _QWORD * ) ( @@v4@@ + Number ) + Number L * ( int ) @@i@@ ) ; * ( _QWORD * ) ( @@v4@@ + Number ) = platform_bus_init_notify ; return qemu_add_machine_init_done_notifier ( @@v4@@ + Number ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s16"}, {"n": "i", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s20"}, {"n": "v4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]}