return struct: basic implementation for x86_64