{"name": "tofile", "code": "__int64 __fastcall tofile ( __int64 @@a1@@ ) { __int64 @@v2@@ ; @@v2@@ = luaL_checkudata ( @@a1@@ , Number L , String ) ; if ( ! * ( _QWORD * ) @@v2@@ ) luaL_error ( @@a1@@ , String ) ; return * ( _QWORD * ) @@v2@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s8"}]}
{"name": "io_close", "code": "__int64 __fastcall io_close ( __int64 @@a1@@ ) { if ( ( unsigned int ) lua_type ( @@a1@@ , Number L ) == Number ) lua_rawgeti ( @@a1@@ , Number L , Number L ) ; tofile ( @@a1@@ ) ; return aux_close ( @@a1@@ ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}]} {"name": "g_iofile", "code": "__int64 __fastcall g_iofile ( __int64 @@a1@@ , unsigned int @@a2@@ , const char * @@a3@@ ) { _QWORD * @@v5@@ ; char * @@filename@@ ; if ( ( int ) lua_type ( @@a1@@ , Number L ) > Number ) { @@filename@@ = ( char * ) lua_tolstring ( @@a1@@ , Number L , Number L ) ; if ( @@filename@@ ) { @@v5@@ = newfile ( @@a1@@ ) ; * @@v5@@ = fopen ( @@filename@@ , @@a3@@ ) ; if ( ! * @@v5@@ ) fileerror ( @@a1@@ , Number , @@filename@@ ) ; } else { tofile ( @@a1@@ ) ; lua_pushvalue ( @@a1@@ , Number L ) ; } lua_rawseti ( @@a1@@ , Number L , @@a2@@ ) ; } lua_rawgeti ( @@a1@@ , Number L , @@a2@@ ) ; return Number L ; }", "source": [{"n": "a3", "t": {"T": 3, "t": "const char"}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r64"}, {"n": "v5", "t": {"T": 3, "t": "_QWORD"}, "location": "s16"}, {"n": "filename", "t": {"T": 3, "t": "char"}, "location": "s8"}]} {"name": "f_lines", "code": "__int64 __fastcall f_lines ( __int64 @@a1@@ ) { tofile ( @@a1@@ ) ; aux_lines ( @@a1@@ , Number , Number ) ; return Number L ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}]} {"name": "f_read", "code": "__int64 __fastcall f_read ( __int64 @@a1@@ ) { FILE * @@v1@@ ; @@v1@@ = ( FILE * ) tofile ( @@a1@@ ) ; return g_read ( @@a1@@ , @@v1@@ , Number ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v1", "t": {"T": 3, "t": "FILE"}, "location": "r8"}]} {"name": "f_write", "code": "__int64 __fastcall f_write ( __int64 @@a1@@ , double @@a2@@ ) { FILE * @@v2@@ ; @@v2@@ = ( FILE * ) tofile ( @@a1@@ ) ; return g_write ( @@a1@@ , @@v2@@ , Number , @@a2@@ ) ; }", "source": [{"n": "a2", "t": {"T": 1, "n": "double", "s": 8}, "location": "r496"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v2", "t": {"T": 3, "t": "FILE"}, "location": "r8"}]} {"name": "f_seek", "code": "__int64 __fastcall f_seek ( __int64 @@a1@@ ) { __int64 @@v2@@ ; __int64 @@off@@ ; int @@v4@@ ; FILE * @@stream@@ ; @@stream@@ = ( FILE * ) tofile ( @@a1@@ ) ; @@v4@@ = luaL_checkoption ( @@a1@@ , Number L , String , modenames_3632 ) ; @@off@@ = luaL_optinteger ( @@a1@@ , Number L , Number L ) ; if ( fseek ( @@stream@@ , @@off@@ , mode_3631 [ @@v4@@ ] ) ) return pushresult ( @@a1@@ , Number , Number L ) ; @@v2@@ = ftell ( @@stream@@ ) ; lua_pushinteger ( @@a1@@ , @@v2@@ ) ; return Number L ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r8"}, {"n": "v4", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "off", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}, {"n": "stream", "t": {"T": 3, "t": "FILE"}, "location": "s8"}]} {"name": "f_setvbuf", "code": "__int64 __fastcall f_setvbuf ( __int64 @@a1@@ ) { int @@v2@@ ; __int64 @@n@@ ; int @@v4@@ ; FILE * @@stream@@ ; @@stream@@ = ( FILE * ) tofile ( @@a1@@ ) ; @@v4@@ = luaL_checkoption ( @@a1@@ , Number L , Number L , & modenames_3640 ) ; @@n@@ = luaL_optinteger ( @@a1@@ , Number L , Number ) ; @@v2@@ = setvbuf ( @@stream@@ , Number L , * ( & mode_3639 + @@v4@@ ) , @@n@@ ) ; return pushresult ( @@a1@@ , @@v2@@ == Number , Number L ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "v4", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "n", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}, {"n": "v2", "t": {"T": 1, "n": "int", "s": 4}, "location": "s28"}, {"n": "stream", "t": {"T": 3, "t": "FILE"}, "location": "s8"}]} {"name": "f_flush", "code": "__int64 __fastcall f_flush ( __int64 @@a1@@ ) { FILE * v1 ; int v2 ; v1 = ( FILE * ) tofile ( @@a1@@ ) ; v2 = fflush ( v1 ) ; return pushresult ( @@a1@@ , v2 == Number , Number L ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}]}