Remix.run Logo
▲ Turneyboy an hour ago

Most likely this is decompiled and not the way it was originally written.

▲jonatron an hour ago | parent [-]

Yep, and you can prompt something like "the function was a decompiled version, translate it into a readable version", if you don't like reading [probably] ghidra output.