TODO(https://fxbug.dev/42126406): write docs, more comments, clang-doc?
TODO(https://fxbug.dev/42126406): fuzzer
TODO(https://fxbug.dev/42126406): use in userboot