This is xnu-11215.1.10. See this file in:
//
//  KernelUtils.hpp
//  CoreEntitlements_kernel
//
//

#ifndef CORE_ENTITLEMENTS_KERNEL_H
#define CORE_ENTITLEMENTS_KERNEL_H

#include <CoreEntitlements/CoreEntitlements.h>
#include <libkern/c++/OSPtr.h>
#include <libkern/c++/OSDictionary.h>

#ifndef CORE_ENTITLEMENTS_I_KNOW_WHAT_IM_DOING
#error This is a private API, please consult with the Trusted Execution team before using this. Misusing these functions will lead to security issues.
#endif

/*!
 * @function CEQueryContextToOSDictionary
 * Private API, converts a query context into an OSDictionary that can be handed out to legacy users
 */
OSPtr<OSDictionary> CEQueryContextToOSDictionary(CEQueryContext_t entitlements);

/*!
 * @function CEQueryContextToOSObject
 * Private API, converts a query context into an OSObject that may be returned dynamically
 */
OSPtr<OSObject> CEQueryContextToOSObject(CEQueryContext_t context);

#endif