{"name": "persistent_state_from_keyfile", "code": "__int64 __fastcall persistent_state_from_keyfile ( _QWORD * @@a1@@ , __int64 @@a2@@ ) { __int64 @@result@@ ; __int64 @@v3@@ ; if ( ! @@a1@@ ) g_assertion_message_expr ( Number L , String , Number L , String , String ) ; if ( ! @@a2@@ ) g_assertion_message_expr ( Number L , String , Number L , String , String ) ; set_persistent_state_defaults ( @@a1@@ ) ; @@result@@ = g_key_file_has_key ( @@a2@@ , String , String , Number L ) ; if ( ( _DWORD ) @@result@@ ) { @@v3@@ = ( int ) g_key_file_get_integer ( @@a2@@ , String , String , Number L ) ; @@result@@ = ( __int64 ) @@a1@@ ; * @@a1@@ = @@v3@@ ; } return @@result@@ ; }", "source": [{"n": "v3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a1", "t": {"T": 3, "t": "_QWORD"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r64"}, {"n": "result", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}]}
{"name": "set_persistent_state_defaults", "code": "_QWORD * __fastcall set_persistent_state_defaults ( _QWORD * @@a1@@ ) { _QWORD * @@result@@ ; if ( ! @@a1@@ ) g_assertion_message_expr ( Number L , String , Number L , String , String ) ; @@result@@ = @@a1@@ ; * @@a1@@ = Number L ; return @@result@@ ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_QWORD"}, "location": "r56"}, {"n": "result", "t": {"T": 3, "t": "_QWORD"}, "location": "r8"}]} {"name": "read_persistent_state", "code": "__int64 __fastcall read_persistent_state ( _QWORD * @@a1@@ , const char * @@a2@@ , int @@a3@@ ) { int * v3 ; char * v4 ; unsigned int @@v7@@ ; __int64 @@v8@@ ; __int64 @@v9@@ ; struct stat64 @@v10@@ ; unsigned __int64 @@v11@@ ; @@v11@@ = __readfsqword ( Number ) ; @@v9@@ = Number L ; @@v8@@ = Number L ; @@v7@@ = Number ; if ( ! @@a1@@ ) g_assertion_message_expr ( Number L , String , Number L , String , String ) ; if ( stat64 ( @@a2@@ , & @@v10@@ ) == Number ) { if ( * _errno_location ( ) == Number ) { set_persistent_state_defaults ( @@a1@@ ) ; if ( @@a3@@ || ( unsigned int ) write_persistent_state ( @@a1@@ , @@a2@@ ) ) { @@v7@@ = Number ; } else { g_log ( Number L , Number L , String , @@a2@@ ) ; @@v7@@ = Number ; } } else { v3 = _errno_location ( ) ; v4 = strerror ( * v3 ) ; g_log ( Number L , Number L , String , @@a2@@ , v4 ) ; @@v7@@ = Number ; } } else { @@v9@@ = g_key_file_new ( ) ; g_key_file_load_from_file ( @@v9@@ , @@a2@@ , Number L , & @@v8@@ ) ; if ( @@v8@@ ) { g_log ( Number L , Number L , String , @@a2@@ , * ( const char * * ) ( @@v8@@ + Number ) ) ; @@v7@@ = Number ; } else { persistent_state_from_keyfile ( @@a1@@ , @@v9@@ ) ; } } if ( @@v9@@ ) g_key_file_free ( @@v9@@ ) ; if ( @@v8@@ ) g_error_free ( @@v8@@ ) ; return @@v7@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "int", "s": 4}, "location": "r16"}, {"n": "a1", "t": {"T": 3, "t": "_QWORD"}, "location": "r56"}, {"n": "a2", "t": {"T": 3, "t": "const char"}, "location": "r64"}, {"n": "v10", "t": {"T": 6, "n": "struct stat64", "l": [{"T": 4, "n": "st_dev", "t": "__dev_t", "s": 8}, {"T": 4, "n": "st_ino", "t": "__ino64_t", "s": 8}, {"T": 4, "n": "st_nlink", "t": "__nlink_t", "s": 8}, {"T": 4, "n": "st_mode", "t": "__mode_t", "s": 4}, {"T": 4, "n": "st_uid", "t": "__uid_t", "s": 4}, {"T": 4, "n": "st_gid", "t": "__gid_t", "s": 4}, {"T": 4, "n": "__pad0", "t": "int", "s": 4}, {"T": 4, "n": "st_rdev", "t": "__dev_t", "s": 8}, {"T": 4, "n": "st_size", "t": "__off_t", "s": 8}, {"T": 4, "n": "st_blksize", "t": "__blksize_t", "s": 8}, {"T": 4, "n": "st_blocks", "t": "__blkcnt64_t", "s": 8}, {"T": 4, "n": "st_atim", "t": "timespec", "s": 16}, {"T": 4, "n": "st_mtim", "t": "timespec", "s": 16}, {"T": 4, "n": "st_ctim", "t": "timespec", "s": 16}, {"T": 4, "n": "__unused", "t": "__syscall_slong_t[3]", "s": 24}]}, "location": "s160"}, {"n": "v9", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s168"}, {"n": "v8", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s176"}, {"n": "v7", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s180"}, {"n": "v11", "t": {"T": 1, "n": "unsigned __int64", "s": 8}, "location": "s8"}]}