Assembly Mstore

function name() public pure returns (string memory) {
    // Return the name is Seaport.
    // Seaport actual bytes is 53 65 61 70 6f 72 74
    assembly {
        mstore(0x20, 0x20)
        mstore(0x47, 0x07536561706f7274)
        return(0x20, 0x60)

anybody please explain me about the this function.

why we need to store 0x47 and why we need to return (0x20,0x60)

A new type of question.

The mstore instruction in Solidity takes two arguments: an address and a value.
It stores the value at the specified address in memory.
In Solidity, string is a dynamically-sized byte array:

Variables of type bytes and string are special arrays. A bytes is similar to byte[ ], but it is packed tightly in calldata. string is equal to bytes but does not allow length or index access (for now).

The first line stores offset, the second line stores value,
in this case, it occupies 0x20 and 0x40, so return from 0x20 to 0x60.

Waiting for a more precise answer.