Checking the OS architecture before downloading the loader via TFTP

There was a need to download the loader via TFTP, taking into account the type of architecture of the client.
In dhcpd this is option 93.
As far as I understand, I am adding a new option with the code parameter 93 to the DHCP. And how can I check when contacting TFTP, if the architecture is 00:06, then I download the syslinux.efi loader, otherwise pxelinux.0?

In Linux, in the dhcp config, I prescribed something like this:

option architecture-type code 93 = unsigned integer 16;

class "pxelinux" {
        if option architecture-type = 00:06 {
            filename "loader_uefi/syslinux.efi";
        } else if option architecture-type = 00:07 {
            filename "loader_uefi/syslinux.efi";
        } else if option architecture-type = 00:09 {
            filename "loader_uefi/syslinux.efi";
        } else {
            filename "loader_legacy/pxelinux.0";
        }
    }

Do you have any ideas?

Colleagues, maybe someone had a similar situation? I can’t even find anything like that.