{"name": "create_server_socket", "code": "__int64 __fastcall create_server_socket ( uint16_t @@a1@@ ) { int * v1 ; char * v2 ; int * v3 ; __int64 result ; int * v5 ; char * v6 ; int * v7 ; int * v8 ; char * v9 ; int * v10 ; int * v11 ; char * v12 ; int * v13 ; int @@optval@@ ; struct sockaddr @@s@@ ; int @@fd@@ ; @@optval@@ = Number ; @@fd@@ = socket ( Number , Number , Number ) ; if ( @@fd@@ == Number ) { v1 = __errno_location ( ) ; v2 = strerror ( * v1 ) ; v3 = __errno_location ( ) ; fprintf ( stderr , String , ( unsigned int ) * v3 , v2 ) ; result = Number ; } else { if ( setsockopt ( @@fd@@ , Number , Number , & @@optval@@ , Number ) == Number ) { v5 = __errno_location ( ) ; v6 = strerror ( * v5 ) ; v7 = __errno_location ( ) ; fprintf ( stderr , String , ( unsigned int ) * v7 , v6 ) ; } memset ( & @@s@@ , Number , sizeof ( @@s@@ ) ) ; @@s@@ . sa_family = Number ; * ( _DWORD * ) & @@s@@ . sa_data [ Number ] = Number ; * ( _WORD * ) @@s@@ . sa_data = htons ( @@a1@@ ) ; if ( bind ( @@fd@@ , & @@s@@ , Number ) == Number ) { v8 = __errno_location ( ) ; v9 = strerror ( * v8 ) ; v10 = __errno_location ( ) ; fprintf ( stderr , String , ( unsigned int ) * v10 , v9 ) ; close ( @@fd@@ ) ; result = Number ; } else if ( listen ( @@fd@@ , Number ) == Number ) { v11 = __errno_location ( ) ; v12 = strerror ( * v11 ) ; v13 = __errno_location ( ) ; fprintf ( stderr , String , ( unsigned int ) * v13 , v12 ) ; close ( @@fd@@ ) ; result = Number ; } else { result = ( unsigned int ) @@fd@@ ; } } return result ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "uint16_t", "s": 2}, "location": "r56"}, {"n": "fd", "t": {"T": 1, "n": "int", "s": 4}, "location": "s20"}, {"n": "s", "t": {"T": 6, "n": "struct sockaddr", "l": [{"T": 4, "n": "sa_family", "t": "sa_family_t", "s": 2}, {"T": 4, "n": "sa_data", "t": "char[14]", "s": 14}]}, "location": "s48"}, {"n": "optval", "t": {"T": 1, "n": "int", "s": 4}, "location": "s52"}]}