parameters: (self, arch, machine)
docstring: Search the loader paths for one that matches the passed arch
docstring_summary: Search the loader paths for one that matches the passed arch
docstring_tokens: Search the loader paths for one that matches the passed arch
function: def find_uefi_path_for_arch(self, arch, machine):
          """
          Search the loader paths for one that matches the passed arch
          """
          if not self.arch_can_uefi(arch):
              return
  
          loaders = self.get_os_loaders(arch, machine)
          patterns = util.UEFI_ARCH_PATTERNS.get(arch)
          for pattern in patterns:
              for path in loaders:
                  if re.match(pattern, path):
                      return path
function_tokens: def find_uefi_path_for_arch ( self , arch , machine ) : if not self . arch_can_uefi ( arch ) : return loaders = self . get_os_loaders ( arch , machine ) patterns = util . UEFI_ARCH_PATTERNS . get ( arch ) for pattern in patterns : for path in loaders : if re . match ( pattern , path ) : return path