# This file is generated by objective.metadata
#
# Last update: Sat May 18 09:17:18 2024
#
# flake8: noqa

import objc, sys
from typing import NewType

if sys.maxsize > 2**32:

    def sel32or64(a, b):
        return b

else:

    def sel32or64(a, b):
        return a


if objc.arch == "arm64":

    def selAorI(a, b):
        return a

else:

    def selAorI(a, b):
        return b


misc = {}
misc.update(
    {
        "SizeResourceRec": objc.createStructType(
            "HIServices.SizeResourceRec",
            b"{SizeResourceRec=SII}",
            ["flags", "preferredHeapSize", "minimumHeapSize"],
        ),
        "ProcessInfoExtendedRec": objc.createStructType(
            "HIServices.ProcessInfoExtendedRec",
            b"{ProcessInfoExtendedRec=I^C{ProcessSerialNumber=II}III^cII{ProcessSerialNumber=II}II^{FSRef=[80C]}II}",
            [
                "processInfoLength",
                "processName",
                "processNumber",
                "processType",
                "processSignature",
                "processMode",
                "processLocation",
                "processSize",
                "processFreeMem",
                "processLauncher",
                "processLaunchDate",
                "processActiveTime",
                "processAppRef",
                "processTempMemTotal",
                "processPurgeableTempMemTotal",
            ],
        ),
        "ProcessInfoRec": objc.createStructType(
            "HIServices.ProcessInfoRec",
            b"{ProcessInfoRec=I^C{ProcessSerialNumber=II}III^cII{ProcessSerialNumber=II}II^{FSRef=[80C]}}",
            [
                "processInfoLength",
                "processName",
                "processNumber",
                "processType",
                "processSignature",
                "processMode",
                "processLocation",
                "processSize",
                "processFreeMem",
                "processLauncher",
                "processLaunchDate",
                "processActiveTime",
                "processAppRef",
            ],
        ),
        "ProcessSerialNumber": objc.createStructType(
            "HIServices.ProcessSerialNumber",
            b"{ProcessSerialNumber=II}",
            ["highLongOfPSN", "lowLongOfPSN"],
        ),
    }
)
constants = """$kAXAttachmentTextAttribute$kAXAutocorrectedTextAttribute$kAXBackgroundColorTextAttribute$kAXFontFamilyKey$kAXFontNameKey$kAXFontSizeKey$kAXFontTextAttribute$kAXForegoundColorTextAttribute$kAXForegroundColorTextAttribute$kAXLinkTextAttribute$kAXListItemIndexTextAttribute$kAXListItemLevelTextAttribute$kAXListItemPrefixTextAttribute$kAXMarkedMisspelledTextAttribute$kAXMisspelledTextAttribute$kAXNaturalLanguageTextAttribute$kAXReplacementStringTextAttribute$kAXShadowTextAttribute$kAXStrikethroughColorTextAttribute$kAXStrikethroughTextAttribute$kAXSuperscriptTextAttribute$kAXTrustedCheckOptionPrompt$kAXUnderlineColorTextAttribute$kAXUnderlineTextAttribute$kAXVisibleNameKey$"""
enums = """$AX_ALLOW_OLD_SECURITY_METHOD@0$activDev@5$atAbsoluteCenter@5$atBottom@3$atBottomLeft@11$atBottomRight@15$atCenterBottom@7$atCenterLeft@9$atCenterRight@13$atCenterTop@6$atHorizontalCenter@4$atLeft@8$atNone@0$atRight@12$atTop@2$atTopLeft@10$atTopRight@14$atVerticalCenter@1$badPasteboardFlavorErr@-25133$badPasteboardIndexErr@-25131$badPasteboardItemErr@-25132$badPasteboardSyncErr@-25130$badTranslationRefErr@-3031$cdevGenErr@-1$cdevMemErr@0$cdevResErr@1$cdevUnset@3$clearDev@13$closeDev@2$copyDev@11$cursorDev@14$cutDev@10$deactivDev@6$duplicatePasteboardFlavorErr@-25134$extendedBlock@19523$extendedBlockLen@40$hitDev@1$initDev@0$kAXCopyMultipleAttributeOptionStopOnError@1$kAXErrorAPIDisabled@-25211$kAXErrorActionUnsupported@-25206$kAXErrorAttributeUnsupported@-25205$kAXErrorCannotComplete@-25204$kAXErrorFailure@-25200$kAXErrorIllegalArgument@-25201$kAXErrorInvalidUIElement@-25202$kAXErrorInvalidUIElementObserver@-25203$kAXErrorNoValue@-25212$kAXErrorNotEnoughPrecision@-25214$kAXErrorNotImplemented@-25208$kAXErrorNotificationAlreadyRegistered@-25209$kAXErrorNotificationNotRegistered@-25210$kAXErrorNotificationUnsupported@-25207$kAXErrorParameterizedAttributeUnsupported@-25213$kAXErrorSuccess@0$kAXMenuItemModifierControl@4$kAXMenuItemModifierNoCommand@8$kAXMenuItemModifierNone@0$kAXMenuItemModifierOption@2$kAXMenuItemModifierShift@1$kAXPriorityHigh@90$kAXPriorityLow@10$kAXPriorityMedium@50$kAXUnderlineStyleDouble@9$kAXUnderlineStyleNone@0$kAXUnderlineStyleSingle@1$kAXUnderlineStyleThick@2$kAXValueAXErrorType@5$kAXValueCFRangeType@4$kAXValueCGPointType@1$kAXValueCGRectType@3$kAXValueCGSizeType@2$kAXValueIllegalType@0$kAXValueTypeAXError@5$kAXValueTypeCFRange@4$kAXValueTypeCGPoint@1$kAXValueTypeCGRect@3$kAXValueTypeCGSize@2$kAXValueTypeIllegal@0$kAlignAbsoluteCenter@5$kAlignBottom@3$kAlignBottomLeft@11$kAlignBottomRight@15$kAlignCenterBottom@7$kAlignCenterLeft@9$kAlignCenterRight@13$kAlignCenterTop@6$kAlignHorizontalCenter@4$kAlignLeft@8$kAlignNone@0$kAlignRight@12$kAlignTop@2$kAlignTopLeft@10$kAlignTopRight@14$kAlignVerticalCenter@1$kCurrentProcess@2$kHIShapeEnumerateInit@1$kHIShapeEnumerateRect@2$kHIShapeEnumerateTerminate@3$kHIShapeParseFromBottom@1$kHIShapeParseFromBottomRight@3$kHIShapeParseFromLeft@0$kHIShapeParseFromRight@2$kHIShapeParseFromTop@0$kHIShapeParseFromTopLeft@0$kNoProcess@0$kPasteboardClientIsOwner@2$kPasteboardFlavorNoFlags@0$kPasteboardFlavorNotSaved@4$kPasteboardFlavorPromised@512$kPasteboardFlavorRequestOnly@8$kPasteboardFlavorSenderOnly@1$kPasteboardFlavorSenderTranslated@2$kPasteboardFlavorSystemTranslated@256$kPasteboardModified@1$kPasteboardStandardLocationTrash@1953657704$kPasteboardStandardLocationUnknown@1970170734$kPlotIconRefNoImage@2$kPlotIconRefNoMask@4$kPlotIconRefNormalFlags@0$kProcessDictionaryIncludeAllInformationMask@-1$kProcessTransformToBackgroundApplication@2$kProcessTransformToForegroundApplication@1$kProcessTransformToUIElementApplication@4$kQuitAtNormalTimeMask@2$kQuitBeforeFBAsQuitMask@4$kQuitBeforeNormalTimeMask@1$kQuitBeforeShellQuitsMask@8$kQuitBeforeTerminatorAppQuitsMask@16$kQuitNeverMask@32$kQuitNotQuitDuringInstallMask@256$kQuitNotQuitDuringLogoutMask@512$kQuitOptionsMask@127$kSelectorAll1BitData@16843009$kSelectorAll32BitData@134219784$kSelectorAll4BitData@33686018$kSelectorAll8BitData@67372036$kSelectorAllAvailableData@4294967295$kSelectorAllHugeData@4278190080$kSelectorAllLargeData@255$kSelectorAllMiniData@16711680$kSelectorAllSmallData@65280$kSelectorHuge1Bit@16777216$kSelectorHuge32Bit@134217728$kSelectorHuge4Bit@33554432$kSelectorHuge8Bit@67108864$kSelectorHuge8BitMask@268435456$kSelectorLarge1Bit@1$kSelectorLarge32Bit@8$kSelectorLarge4Bit@2$kSelectorLarge8Bit@4$kSelectorLarge8BitMask@16$kSelectorMini1Bit@65536$kSelectorMini4Bit@131072$kSelectorMini8Bit@262144$kSelectorSmall1Bit@256$kSelectorSmall32Bit@2048$kSelectorSmall4Bit@512$kSelectorSmall8Bit@1024$kSelectorSmall8BitMask@4096$kSetFrontProcessCausedByUser@2$kSetFrontProcessFrontWindowOnly@1$kSystemProcess@1$kTransformDisabled@1$kTransformLabel1@256$kTransformLabel2@512$kTransformLabel3@768$kTransformLabel4@1024$kTransformLabel5@1280$kTransformLabel6@1536$kTransformLabel7@1792$kTransformNone@0$kTransformOffline@2$kTransformOpen@3$kTransformSelected@16384$kTransformSelectedDisabled@16385$kTransformSelectedOffline@16386$kTransformSelectedOpen@16387$kTranslationDataTranslation@1$kTranslationFileTranslation@2$kUAZoomFocusTypeInsertionPoint@1$kUAZoomFocusTypeOther@0$keyEvtDev@7$launchAllow24Bit@256$launchContinue@16384$launchDontSwitch@512$launchInhibitDaemon@128$launchNoFileFlags@2048$launchUseMinimum@1024$macDev@8$mode32BitCompatible@128$modeCanBackground@4096$modeControlPanel@524288$modeDeskAccessory@131072$modeDisplayManagerAware@4$modeDoesActivateOnFGSwitch@2048$modeGetAppDiedMsg@256$modeGetFrontClicks@512$modeHighLevelEventAware@64$modeLaunchDontSwitch@262144$modeLocalAndRemoteHLEvents@32$modeMultiLaunch@65536$modeNeedSuspendResume@16384$modeOnlyBackground@1024$modeReserved@16777216$modeStationeryAware@16$modeUseTextEditServices@8$noPasteboardPromiseKeeperErr@-25136$notPasteboardOwnerErr@-25135$nulDev@3$pasteDev@12$svAll1BitData@16843009$svAll4BitData@33686018$svAll8BitData@67372036$svAllAvailableData@4294967295$svAllLargeData@255$svAllMiniData@16711680$svAllSmallData@65280$svLarge1Bit@1$svLarge4Bit@2$svLarge8Bit@4$svMini1Bit@65536$svMini4Bit@131072$svMini8Bit@262144$svSmall1Bit@256$svSmall4Bit@512$svSmall8Bit@1024$ttDisabled@1$ttLabel1@256$ttLabel2@512$ttLabel3@768$ttLabel4@1024$ttLabel5@1280$ttLabel6@1536$ttLabel7@1792$ttNone@0$ttOffline@2$ttOpen@3$ttSelected@16384$ttSelectedDisabled@16385$ttSelectedOffline@16386$ttSelectedOpen@16387$undoDev@9$updateDev@4$"""
misc.update(
    {
        "AXError": NewType("AXError", int),
        "AXValueType": NewType("AXValueType", int),
        "PasteboardSyncFlags": NewType("PasteboardSyncFlags", int),
        "PasteboardFlavorFlags": NewType("PasteboardFlavorFlags", int),
        "PasteboardStandardLocation": NewType("PasteboardStandardLocation", int),
        "AXMenuItemModifiers": NewType("AXMenuItemModifiers", int),
        "AXUnderlineStyle": NewType("AXUnderlineStyle", int),
        "AXCopyMultipleAttributeOptions": NewType(
            "AXCopyMultipleAttributeOptions", int
        ),
        "AXPriority": NewType("AXPriority", int),
    }
)
misc.update({})
misc.update(
    {
        "kAXTableRole": "AXTable",
        "kAXAttributedStringForRangeParameterizedAttribute": "AXAttributedStringForRange",
        "kAXStandardWindowSubrole": "AXStandardWindow",
        "kAXFloatingWindowSubrole": "AXFloatingWindow",
        "kAXHiddenAttribute": "AXHidden",
        "kAXSharedCharacterRangeAttribute": "AXSharedCharacterRange",
        "kAXResizedNotification": "AXResized",
        "kAXMinValueAttribute": "AXMinValue",
        "kAXOutlineRole": "AXOutline",
        "kAXDockItemRole": "AXDockItem",
        "kAXFocusedWindowChangedNotification": "AXFocusedWindowChanged",
        "kAXPopUpButtonRole": "AXPopUpButton",
        "kAXWindowsAttribute": "AXWindows",
        "kAXMinimizedWindowDockItemSubrole": "AXMinimizedWindowDockItem",
        "kAXScreenSizeForLayoutSizeParameterizedAttribute": "AXScreenSizeForLayoutSize",
        "kAXGrowAreaAttribute": "AXGrowArea",
        "kAXDescendingSortDirectionValue": "AXDescendingSortDirection",
        "kAXMenuItemCmdCharAttribute": "AXMenuItemCmdChar",
        "kAXLevelIndicatorRole": "AXLevelIndicator",
        "kAXRoleDescriptionAttribute": "AXRoleDescription",
        "kAXSystemFloatingWindowSubrole": "AXSystemFloatingWindow",
        "kAXRowRole": "AXRow",
        "kAXToolbarRole": "AXToolbar",
        "kAXVerticalUnitsAttribute": "AXVerticalUnits",
        "kAXTitleUIElementAttribute": "AXTitleUIElement",
        "kAXPreviousContentsAttribute": "AXPreviousContents",
        "kAXSelectedAttribute": "AXSelected",
        "kAXWindowAttribute": "AXWindow",
        "kAXTabGroupRole": "AXTabGroup",
        "kAXValueWrapsAttribute": "AXValueWraps",
        "kAXSizeAttribute": "AXSize",
        "kAXSelectedTextRangesAttribute": "AXSelectedTextRanges",
        "kAXRangeForIndexParameterizedAttribute": "AXRangeForIndex",
        "kAXSelectedTextChangedNotification": "AXSelectedTextChanged",
        "kAXURLAttribute": "AXURL",
        "kAXMenuItemRole": "AXMenuItem",
        "kAXHelpTagRole": "AXHelpTag",
        "kAXParentAttribute": "AXParent",
        "kAXTimelineSubrole": "AXTimeline",
        "kAXDecrementButtonAttribute": "AXDecrementButton",
        "kAXFocusedApplicationAttribute": "AXFocusedApplication",
        "kAXMovedNotification": "AXMoved",
        "kAXBoundsForRangeParameterizedAttribute": "AXBoundsForRange",
        "kAXIncrementPageSubrole": "AXIncrementPage",
        "kAXHeadingRole": "AXHeading",
        "kAXFocusedUIElementAttribute": "AXFocusedUIElement",
        "kAXModalAttribute": "AXModal",
        "kAXMenuItemPrimaryUIElementAttribute": "AXMenuItemPrimaryUIElement",
        "kAXTimeFieldRole": "AXTimeField",
        "kAXRulerRole": "AXRuler",
        "kAXIncrementButtonAttribute": "AXIncrementButton",
        "kAXMenuBarAttribute": "AXMenuBar",
        "kAXMainWindowChangedNotification": "AXMainWindowChanged",
        "kAXSelectedChildrenMovedNotification": "AXSelectedChildrenMoved",
        "kAXColumnCountAttribute": "AXColumnCount",
        "kAXNextContentsAttribute": "AXNextContents",
        "kAXFrontmostAttribute": "AXFrontmost",
        "kAXShownMenuUIElementAttribute": "AXShownMenuUIElement",
        "kAXColumnTitleAttribute": "AXColumnTitles",
        "kAXAlternateUIVisibleAttribute": "AXAlternateUIVisible",
        "kAXRangeForLineParameterizedAttribute": "AXRangeForLine",
        "kAXSplittersAttribute": "AXSplitters",
        "kAXPickAction": "AXPick",
        "kAXDecorativeSubrole": "AXDecorative",
        "kAXOrderedByRowAttribute": "AXOrderedByRow",
        "kAXHelpTagCreatedNotification": "AXHelpTagCreated",
        "kAXStringForRangeParameterizedAttribute": "AXStringForRange",
        "kAXStaticTextRole": "AXStaticText",
        "kAXColumnRole": "AXColumn",
        "kAXMinimizeButtonAttribute": "AXMinimizeButton",
        "kAXMenuOpenedNotification": "AXMenuOpened",
        "kAXCellForColumnAndRowParameterizedAttribute": "AXCellForColumnAndRow",
        "kAXContentsAttribute": "AXContents",
        "kAXRadioGroupRole": "AXRadioGroup",
        "kAXDrawerCreatedNotification": "AXDrawerCreated",
        "kAXSplitGroupRole": "AXSplitGroup",
        "kAXDialogSubrole": "AXDialog",
        "kAXDisclosureLevelAttribute": "AXDisclosureLevel",
        "kAXMinimizedAttribute": "AXMinimized",
        "kAXFocusedAttribute": "AXFocused",
        "kAXServesAsTitleForUIElementsAttribute": "AXServesAsTitleForUIElements",
        "kAXMarkerUIElementsAttribute": "AXMarkerUIElements",
        "kAXFocusedUIElementChangedNotification": "AXFocusedUIElementChanged",
        "kAXDescription": "AXDescription",
        "kAXAnnouncementRequestedNotification": "AXAnnouncementRequested",
        "kAXMatteHoleAttribute": "AXMatteHole",
        "kAXMarkerTypeAttribute": "AXMarkerType",
        "kAXToggleSubrole": "AXToggle",
        "kAXNumberOfCharactersAttribute": "AXNumberOfCharacters",
        "kAXImageRole": "AXImage",
        "kAXFocusedWindowAttribute": "AXFocusedWindow",
        "kAXYearFieldAttribute": "AXYearField",
        "kAXMenuRole": "AXMenu",
        "kAXVisibleColumnsAttribute": "AXVisibleColumns",
        "kAXUIElementTitleKey": "AXUIElementTitleKey",
        "kAXIncrementorRole": "AXIncrementor",
        "kAXHourFieldAttribute": "AXHourField",
        "kAXFolderDockItemSubrole": "AXFolderDockItem",
        "kAXMenuBarItemRole": "AXMenuBarItem",
        "kAXLayoutChangedNotification": "AXLayoutChanged",
        "kAXDefaultButtonAttribute": "AXDefaultButton",
        "kAXSearchButtonAttribute": "AXSearchButton",
        "kAXEnabledAttribute": "AXEnabled",
        "kAXRowCountAttribute": "AXRowCount",
        "kAXCancelButtonAttribute": "AXCancelButton",
        "kAXIncrementAction": "AXIncrement",
        "kAXRoleAttribute": "AXRole",
        "kAXWindowRole": "AXWindow",
        "kAXExpandedAttribute": "AXExpanded",
        "kAXTitleAttribute": "AXTitle",
        "kAXSubroleAttribute": "AXSubrole",
        "kAXSelectedChildrenAttribute": "AXSelectedChildren",
        "kAXPressAction": "AXPress",
        "kAXUnknownOrientationValue": "AXUnknownOrientation",
        "kAXApplicationShownNotification": "AXApplicationShown",
        "kAXSelectedRowsChangedNotification": "AXSelectedRowsChanged",
        "kPasteboardTypeFileURLPromise": "com.apple.pasteboard.promised-file-url",
        "kAXDockExtraDockItemSubrole": "AXDockExtraDockItem",
        "kAXCreatedNotification": "AXCreated",
        "kAXSecureTextFieldSubrole": "AXSecureTextField",
        "kAXHandleRole": "AXHandle",
        "kAXDisclosedRowsAttribute": "AXDisclosedRows",
        "kPasteboardClipboard": "com.apple.pasteboard.clipboard",
        "kPasteboardFind": "com.apple.pasteboard.find",
        "kAXTabsAttribute": "AXTabs",
        "kAXWindowMiniaturizedNotification": "AXWindowMiniaturized",
        "kAXOrientationAttribute": "AXOrientation",
        "kAXDefinitionListSubrole": "AXDefinitionList",
        "kAXTableRowSubrole": "AXTableRow",
        "kAXWindowMovedNotification": "AXWindowMoved",
        "kAXUnitDescriptionAttribute": "AXUnitDescription",
        "kAXSharedFocusElementsAttribute": "AXSharedFocusElements",
        "kAXStyleRangeForIndexParameterizedAttribute": "AXStyleRangeForIndex",
        "kAXSheetRole": "AXSheet",
        "kAXShowMenuAction": "AXShowMenu",
        "kAXMatteRole": "AXMatte",
        "kAXMatteContentUIElementAttribute": "AXMatteContentUIElement",
        "kAXBusyIndicatorRole": "AXBusyIndicator",
        "kAXRatingIndicatorSubrole": "AXRatingIndicator",
        "kAXRowExpandedNotification": "AXRowExpanded",
        "kAXScrollAreaRole": "AXScrollArea",
        "kAXVisibleCellsAttribute": "AXVisibleCells",
        "kAXExtrasMenuBarAttribute": "AXExtrasMenuBar",
        "kAXApplicationActivatedNotification": "AXApplicationActivated",
        "kAXUnitsAttribute": "AXUnits",
        "kAXRulerMarkerRole": "AXRulerMarker",
        "kAXSystemWideRole": "AXSystemWide",
        "kAXHandlesAttribute": "AXHandles",
        "kAXIsApplicationRunningAttribute": "AXIsApplicationRunning",
        "kAXMenuBarRole": "AXMenuBar",
        "kAXShowAlternateUIAction": "AXShowAlternateUI",
        "kAXSortButtonSubrole": "AXSortButton",
        "kAXUnknownSubrole": "AXUnknown",
        "kAXLabelUIElementsAttribute": "AXLabelUIElements",
        "kAXIncrementorAttribute": "AXIncrementor",
        "kAXVisibleChildrenAttribute": "AXVisibleChildren",
        "kAXCheckBoxRole": "AXCheckBox",
        "kAXSelectedCellsChangedNotification": "AXSelectedCellsChanged",
        "kAXCloseButtonSubrole": "AXCloseButton",
        "kAXColumnTitlesAttribute": "AXColumnTitles",
        "kAXAMPMFieldAttribute": "AXAMPMField",
        "kAXPopoverRole": "AXPopover",
        "kAXAnnouncementKey": "AXAnnouncementKey",
        "kAXValueIndicatorRole": "AXValueIndicator",
        "kAXValueChangedNotification": "AXValueChanged",
        "kAXSelectedColumnsChangedNotification": "AXSelectedColumnsChanged",
        "kAXApplicationRole": "AXApplication",
        "kAXColumnHeaderUIElementsAttribute": "AXColumnHeaderUIElements",
        "kAXMenuButtonRole": "AXMenuButton",
        "kAXBrowserRole": "AXBrowser",
        "kAXRowsAttribute": "AXRows",
        "kAXTextFieldRole": "AXTextField",
        "kAXFullScreenButtonSubrole": "AXFullScreenButton",
        "kAXSplitterRole": "AXSplitter",
        "kAXVisibleCharacterRangeAttribute": "AXVisibleCharacterRange",
        "kAXUnitsChangedNotification": "AXUnitsChanged",
        "kAXGroupRole": "AXGroup",
        "kAXMinimizeButtonSubrole": "AXMinimizeButton",
        "kAXDecrementPageSubrole": "AXDecrementPage",
        "kAXElementBusyChangedNotification": "AXElementBusyChanged",
        "kAXTitleChangedNotification": "AXTitleChanged",
        "kAXToolbarButtonAttribute": "AXToolbarButton",
        "kAXDecrementAction": "AXDecrement",
        "kAXHorizontalOrientationValue": "AXHorizontalOrientation",
        "kAXDocumentDockItemSubrole": "AXDocumentDockItem",
        "kAXSearchFieldSubrole": "AXSearchField",
        "kAXVerticalScrollBarAttribute": "AXVerticalScrollBar",
        "kAXVisibleTextAttribute": "AXVisibleText",
        "kAXRadioButtonRole": "AXRadioButton",
        "kAXValueAttribute": "AXValue",
        "kAXDisclosedByRowAttribute": "AXDisclosedByRow",
        "kAXSystemDialogSubrole": "AXSystemDialog",
        "kAXSeparatorDockItemSubrole": "AXSeparatorDockItem",
        "kAXApplicationHiddenNotification": "AXApplicationHidden",
        "kAXRelevanceIndicatorRole": "AXRelevanceIndicator",
        "kAXMonthFieldAttribute": "AXMonthField",
        "kAXVerticalUnitDescriptionAttribute": "AXVerticalUnitDescription",
        "kAXValueIncrementAttribute": "AXValueIncrement",
        "kAXCriticalValueAttribute": "AXCriticalValue",
        "kAXValueDescriptionAttribute": "AXValueDescription",
        "kAXShowDefaultUIAction": "AXShowDefaultUI",
        "kAXProxyAttribute": "AXProxy",
        "kAXComboBoxRole": "AXComboBox",
        "kAXMenuItemMarkCharAttribute": "AXMenuItemMarkChar",
        "kAXDayFieldAttribute": "AXDayField",
        "kAXSelectedColumnsAttribute": "AXSelectedColumns",
        "kAXGrowAreaRole": "AXGrowArea",
        "kAXDrawerRole": "AXDrawer",
        "kAXLinkedUIElementsAttribute": "AXLinkedUIElements",
        "kAXHorizontalScrollBarAttribute": "AXHorizontalScrollBar",
        "kAXListRole": "AXList",
        "kAXMarkerTypeDescriptionAttribute": "AXMarkerTypeDescription",
        "kAXSecondFieldAttribute": "AXSecondField",
        "kAXSheetCreatedNotification": "AXSheetCreated",
        "kAXWarningValueAttribute": "AXWarningValue",
        "kAXDisclosureTriangleRole": "AXDisclosureTriangle",
        "kAXAllowedValuesAttribute": "AXAllowedValues",
        "kAXRowHeaderUIElementsAttribute": "AXRowHeaderUIElements",
        "kAXHorizontalUnitDescriptionAttribute": "AXHorizontalUnitDescription",
        "kAXOverflowButtonAttribute": "AXOverflowButton",
        "kAXCloseButtonAttribute": "AXCloseButton",
        "kAXColumnsAttribute": "AXColumns",
        "kAXRangeForPositionParameterizedAttribute": "AXRangeForPosition",
        "kAXAscendingSortDirectionValue": "AXAscendingSortDirection",
        "kAXPriorityKey": "AXPriorityKey",
        "kAXToolbarButtonSubrole": "AXToolbarButton",
        "kAXZoomButtonAttribute": "AXZoomButton",
        "kAXSliderRole": "AXSlider",
        "kAXSelectedCellsAttribute": "AXSelectedCells",
        "kAXRaiseAction": "AXRaise",
        "kAXIncrementArrowSubrole": "AXIncrementArrow",
        "kAXLayoutAreaRole": "AXLayoutArea",
        "kAXUIElementDestroyedNotification": "AXUIElementDestroyed",
        "kAXMenuClosedNotification": "AXMenuClosed",
        "kAXHeaderAttribute": "AXHeader",
        "kAXDateFieldRole": "AXDateField",
        "kAXTextAreaRole": "AXTextArea",
        "kAXContentListSubrole": "AXContentList",
        "kAXOutlineRowSubrole": "AXOutlineRow",
        "kAXUIElementsKey": "AXUIElementsKey",
        "kAXUnknownSortDirectionValue": "AXUnknownSortDirection",
        "kAXLayoutItemRole": "AXLayoutItem",
        "kAXClearButtonAttribute": "AXClearButton",
        "kAXDescriptionListSubrole": "AXDescriptionList",
        "kAXDecrementArrowSubrole": "AXDecrementArrow",
        "kAXMinuteFieldAttribute": "AXMinuteField",
        "kAXInsertionPointLineNumberAttribute": "AXInsertionPointLineNumber",
        "kAXMenuItemSelectedNotification": "AXMenuItemSelected",
        "kAXUnknownRole": "AXUnknown",
        "kAXHorizontalUnitsAttribute": "AXHorizontalUnits",
        "kAXIdentifierAttribute": "AXIdentifier",
        "kAXApplicationDockItemSubrole": "AXApplicationDockItem",
        "kAXLineForIndexParameterizedAttribute": "AXLineForIndex",
        "kAXElementBusyAttribute": "AXElementBusy",
        "kAXTrashDockItemSubrole": "AXTrashDockItem",
        "kAXLayoutSizeForScreenSizeParameterizedAttribute": "AXLayoutSizeForScreenSize",
        "kAXMainAttribute": "AXMain",
        "kAXChildrenAttribute": "AXChildren",
        "kAXRowIndexRangeAttribute": "AXRowIndexRange",
        "kAXFilenameAttribute": "AXFilename",
        "kAXMenuItemCmdVirtualKeyAttribute": "AXMenuItemCmdVirtualKey",
        "kAXWindowCreatedNotification": "AXWindowCreated",
        "kAXMenuItemCmdModifiersAttribute": "AXMenuItemCmdModifiers",
        "kAXPositionAttribute": "AXPosition",
        "kAXVisibleRowsAttribute": "AXVisibleRows",
        "kAXVerticalOrientationValue": "AXVerticalOrientation",
        "kAXSelectedChildrenChangedNotification": "AXSelectedChildrenChanged",
        "kAXPlaceholderValueAttribute": "AXPlaceholderValue",
        "kAXFullScreenButtonAttribute": "AXFullScreenButton",
        "kAXRowCountChangedNotification": "AXRowCountChanged",
        "kAXMainWindowAttribute": "AXMainWindow",
        "kAXSelectedTextRangeAttribute": "AXSelectedTextRange",
        "kAXSelectedTextAttribute": "AXSelectedText",
        "kAXCellRole": "AXCell",
        "kAXSharedTextUIElementsAttribute": "AXSharedTextUIElements",
        "kAXScreenPointForLayoutPointParameterizedAttribute": "AXScreenPointForLayoutPoint",
        "kAXGridRole": "AXGrid",
        "kAXTopLevelUIElementAttribute": "AXTopLevelUIElement",
        "kAXDisclosingAttribute": "AXDisclosing",
        "kAXProcessSwitcherListSubrole": "AXProcessSwitcherList",
        "kAXApplicationDeactivatedNotification": "AXApplicationDeactivated",
        "kAXIsEditableAttribute": "AXIsEditable",
        "kAXWindowDeminiaturizedNotification": "AXWindowDeminiaturized",
        "kAXScrollBarRole": "AXScrollBar",
        "kAXCancelAction": "AXCancel",
        "kAXColorWellRole": "AXColorWell",
        "kAXLayoutPointForScreenPointParameterizedAttribute": "AXLayoutPointForScreenPoint",
        "kAXMaxValueAttribute": "AXMaxValue",
        "kPasteboardTypeFilePromiseContent": "com.apple.pasteboard.promised-file-content-type",
        "kAXConfirmAction": "AXConfirm",
        "kAXEditedAttribute": "AXEdited",
        "kAXProgressIndicatorRole": "AXProgressIndicator",
        "kAXRowCollapsedNotification": "AXRowCollapsed",
        "kAXTextAttribute": "AXText",
        "kAXSortDirectionAttribute": "AXSortDirection",
        "kAXIndexAttribute": "AXIndex",
        "kAXURLDockItemSubrole": "AXURLDockItem",
        "kAXDocumentAttribute": "AXDocument",
        "kAXDescriptionAttribute": "AXDescription",
        "kAXWindowResizedNotification": "AXWindowResized",
        "kAXMenuItemCmdGlyphAttribute": "AXMenuItemCmdGlyph",
        "kAXSelectedRowsAttribute": "AXSelectedRows",
        "kAXRTFForRangeParameterizedAttribute": "AXRTFForRange",
        "kAXLabelValueAttribute": "AXLabelValue",
        "kAXSwitchSubrole": "AXSwitch",
        "kAXHelpAttribute": "AXHelp",
        "kAXZoomButtonSubrole": "AXZoomButton",
        "kAXButtonRole": "AXButton",
        "kAXColumnIndexRangeAttribute": "AXColumnIndexRange",
    }
)
functions = {
    "HIShapeUnion": (b"i^{__HIShape=}^{__HIShape=}^{__HIShape=}",),
    "AXObserverCreateWithInfoCallback": (
        b"ii^?^^{__AXObserver=}",
        "",
        {
            "retval": {"already_cfretained": True},
            "arguments": {
                1: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {
                            0: {"type": b"^{__AXObserver=}"},
                            1: {"type": b"^{__AXUIElement=}"},
                            2: {"type": b"^{__CFString=}"},
                            3: {"type": b"^{__CFDictionary=}"},
                            4: {"type": b"^v"},
                        },
                    }
                },
                2: {"already_cfretained": True, "type_modifier": "o"},
            },
        },
    ),
    "TranslationCopySourceType": (
        b"i^{OpaqueTranslationRef=}^^{__CFString=}",
        "",
        {
            "retval": {"already_cfretained": True},
            "arguments": {1: {"already_cfretained": True, "type_modifier": "o"}},
        },
    ),
    "HIShapeCreateMutableWithRect": (
        b"^{__HIShape=}^{CGRect={CGPoint=dd}{CGSize=dd}}",
        "",
        {
            "retval": {"already_cfretained": True},
            "arguments": {0: {"type_modifier": "n"}},
        },
    ),
    "PlotIconRefInContext": (
        b"i^{CGContext=}^{CGRect={CGPoint=dd}{CGSize=dd}}ss^{RGBColor=SSS}I^{OpaqueIconRef=}",
        "",
        {"arguments": {1: {"type_modifier": "n"}, 4: {"type_modifier": "n"}}},
    ),
    "AXUIElementPerformAction": (b"i^{__AXUIElement=}^{__CFString=}",),
    "AXUIElementPostKeyboardEvent": (b"i^{__AXUIElement=}SSZ",),
    "AXUIElementIsAttributeSettable": (
        b"i^{__AXUIElement=}^{__CFString=}^Z",
        "",
        {"arguments": {2: {"type_modifier": "o"}}},
    ),
    "AXTextMarkerRangeCreate": (
        b"^{__AXTextMarkerRange=}^{__CFAllocator=}^{__AXTextMarker=}^{__AXTextMarker=}",
        "",
        {"retval": {"already_cfretained": True}},
    ),
    "GetCurrentProcess": (
        b"s^{ProcessSerialNumber=II}",
        "",
        {"arguments": {0: {"type_modifier": "o"}}},
    ),
    "HIShapeCreateCopy": (
        b"^{__HIShape=}^{__HIShape=}",
        "",
        {"retval": {"already_cfretained": True}},
    ),
    "AXTextMarkerRangeCopyEndMarker": (
        b"^{__AXTextMarker=}^{__AXTextMarkerRange=}",
        "",
        {"retval": {"already_cfretained": True}},
    ),
    "AXUIElementCopyParameterizedAttributeValue": (
        b"i^{__AXUIElement=}^{__CFString=}@^@",
        "",
        {
            "retval": {"already_cfretained": True},
            "arguments": {3: {"already_cfretained": True, "type_modifier": "o"}},
        },
    ),
    "PasteboardResolvePromises": (b"i^{OpaquePasteboardRef=}",),
    "NewIconActionUPP": (
        b"^?^?",
        "",
        {
            "arguments": {
                0: {
                    "callable": {
                        "retval": {"type": b"s"},
                        "arguments": {
                            0: {"type": b"I"},
                            1: {"type": b"^^^c"},
                            2: {"type": b"^v"},
                        },
                    }
                }
            }
        },
    ),
    "AXUIElementCreateSystemWide": (
        b"^{__AXUIElement=}",
        "",
        {"retval": {"already_cfretained": True}},
    ),
    "HIShapeIntersectsRect": (
        b"Z^{__HIShape=}^{CGRect={CGPoint=dd}{CGSize=dd}}",
        "",
        {
            "retval": {"c_array_of_fixed_length": 1},
            "arguments": {1: {"type_modifier": "n"}},
        },
    ),
    "AXUIElementSetAttributeValue": (b"i^{__AXUIElement=}^{__CFString=}@",),
    "NewIconGetterUPP": (
        b"^?^?",
        "",
        {
            "arguments": {
                0: {
                    "callable": {
                        "retval": {"type": b"^^c"},
                        "arguments": {0: {"type": b"I"}, 1: {"type": b"^v"}},
                    }
                }
            }
        },
    ),
    "GetProcessInformation": (
        b"s^{ProcessSerialNumber=II}^{ProcessInfoRec=I^C{ProcessSerialNumber=II}III^cII{ProcessSerialNumber=II}II^{FSRef=[80C]}}",
        "",
        {"arguments": {0: {"type_modifier": "n"}, 1: {"type_modifier": "o"}}},
    ),
    "AXMakeProcessTrusted": (b"i^{__CFString=}",),
    "ProcessInformationCopyDictionary": (
        b"^{__CFDictionary=}^{ProcessSerialNumber=II}I",
        "",
        {
            "retval": {"already_cfretained": True},
            "arguments": {0: {"type_modifier": "n"}},
        },
    ),
    "AXTextMarkerCreate": (
        b"^{__AXTextMarker=}^{__CFAllocator=}^Cq",
        "",
        {
            "retval": {"already_cfretained": True},
            "arguments": {1: {"c_array_length_in_arg": 2, "type_modifier": "n"}},
        },
    ),
    "HIShapeInset": (b"i^{__HIShape=}dd",),
    "AXUIElementCopyActionNames": (
        b"i^{__AXUIElement=}^^{__CFArray=}",
        "",
        {
            "retval": {"already_cfretained": True},
            "arguments": {1: {"already_cfretained": True, "type_modifier": "o"}},
        },
    ),
    "PasteboardCopyItemFlavors": (
        b"i^{OpaquePasteboardRef=}^v^^{__CFArray=}",
        "",
        {
            "retval": {"already_cfretained": True},
            "arguments": {2: {"already_cfretained": True, "type_modifier": "o"}},
        },
    ),
    "HIShapeEnumerate": (
        b"i^{__HIShape=}I^?^v",
        "",
        {
            "arguments": {
                2: {
                    "callable": {
                        "retval": {"type": b"i"},
                        "arguments": {
                            0: {"type": b"i"},
                            1: {"type": b"^{__HIShape=}"},
                            2: {
                                "type": b"^{CGRect={CGPoint=dd}{CGSize=dd}}",
                                "type_modifier": "n",
                            },
                            3: {"type": b"^v"},
                        },
                    },
                    "callable_retained": False,
                }
            }
        },
    ),
    "SameProcess": (
        b"s^{ProcessSerialNumber=II}^{ProcessSerialNumber=II}^Z",
        "",
        {
            "arguments": {
                0: {"type_modifier": "n"},
                1: {"type_modifier": "n"},
                2: {"type_modifier": "o"},
            }
        },
    ),
    "WakeUpProcess": (
        b"s^{ProcessSerialNumber=II}",
        "",
        {"arguments": {0: {"type_modifier": "n"}}},
    ),
    "PasteboardSynchronize": (b"I^{OpaquePasteboardRef=}",),
    "TranslationCopyDestinationType": (
        b"i^{OpaqueTranslationRef=}^^{__CFString=}",
        "",
        {
            "retval": {"already_cfretained": True},
            "arguments": {1: {"already_cfretained": True, "type_modifier": "o"}},
        },
    ),
    "AXUIElementCopyParameterizedAttributeNames": (
        b"i^{__AXUIElement=}^^{__CFArray=}",
        "",
        {
            "retval": {"already_cfretained": True},
            "arguments": {1: {"already_cfretained": True, "type_modifier": "o"}},
        },
    ),
    "PasteboardCreate": (
        b"i^{__CFString=}^^{OpaquePasteboardRef=}",
        "",
        {
            "retval": {"already_cfretained": True},
            "arguments": {1: {"already_cfretained": True, "type_modifier": "o"}},
        },
    ),
    "SetFrontProcessWithOptions": (
        b"i^{ProcessSerialNumber=II}I",
        "",
        {"arguments": {0: {"type_modifier": "n"}}},
    ),
    "CopyProcessName": (
        b"i^{ProcessSerialNumber=II}^^{__CFString=}",
        "",
        {
            "retval": {"already_cfretained": True},
            "arguments": {
                0: {"type_modifier": "n"},
                1: {"already_cfretained": True, "type_modifier": "o"},
            },
        },
    ),
    "PasteboardGetItemCount": (
        b"i^{OpaquePasteboardRef=}^Q",
        "",
        {"arguments": {1: {"type_modifier": "o"}}},
    ),
    "PasteboardGetItemIdentifier": (
        b"i^{OpaquePasteboardRef=}q^^v",
        "",
        {"arguments": {2: {"type_modifier": "o"}}},
    ),
    "IsProcessVisible": (
        b"Z^{ProcessSerialNumber=II}",
        "",
        {"arguments": {0: {"type_modifier": "n"}}},
    ),
    "HIShapeIsRectangular": (b"Z^{__HIShape=}",),
    "AXTextMarkerGetBytePtr": (
        b"^C^{__AXTextMarker=}",
        "",
        {"retval": {"c_array_of_variable_length": True}},
    ),
    "HIShapeCreateWithRect": (
        b"^{__HIShape=}^{CGRect={CGPoint=dd}{CGSize=dd}}",
        "",
        {
            "retval": {"already_cfretained": True},
            "arguments": {0: {"type_modifier": "n"}},
        },
    ),
    "AXUIElementCopyActionDescription": (
        b"i^{__AXUIElement=}^{__CFString=}^^{__CFString=}",
        "",
        {
            "retval": {"already_cfretained": True},
            "arguments": {2: {"already_cfretained": True, "type_modifier": "o"}},
        },
    ),
    "AXObserverGetRunLoopSource": (b"^{__CFRunLoopSource=}^{__AXObserver=}",),
    "GetNextProcess": (
        b"s^{ProcessSerialNumber=II}",
        "",
        {"arguments": {0: {"type_modifier": "o"}}},
    ),
    "AXUIElementGetAttributeValueCount": (
        b"i^{__AXUIElement=}^{__CFString=}^q",
        "",
        {"arguments": {2: {"type_modifier": "o"}}},
    ),
    "TranslationPerformForURL": (
        b"i^{OpaqueTranslationRef=}^{__CFURL=}^{__CFURL=}^^{__CFURL=}",
        "",
        {"arguments": {3: {"already_cfretained": True, "type_modifier": "o"}}},
    ),
    "AXValueGetType": (b"I^{__AXValue=}",),
    "UAZoomEnabled": (b"Z",),
    "GetProcessPID": (
        b"i^{ProcessSerialNumber=II}^i",
        "",
        {"arguments": {0: {"type_modifier": "n"}, 1: {"type_modifier": "o"}}},
    ),
    "AXUIElementGetPid": (
        b"i^{__AXUIElement=}^i",
        "",
        {"arguments": {1: {"type_modifier": "o"}}},
    ),
    "GetProcessForPID": (
        b"ii^{ProcessSerialNumber=II}",
        "",
        {"arguments": {1: {"type_modifier": "o"}}},
    ),
    "TranslationCreate": (
        b"i^{__CFString=}^{__CFString=}I^^{OpaqueTranslationRef=}",
        "",
        {
            "retval": {"already_cfretained": True},
            "arguments": {3: {"already_cfretained": True, "type_modifier": "o"}},
        },
    ),
    "HIShapeUnionWithRect": (
        b"i^{__HIShape=}^{CGRect={CGPoint=dd}{CGSize=dd}}",
        "",
        {"arguments": {1: {"type_modifier": "n"}}},
    ),
    "PasteboardGetItemFlavorFlags": (
        b"i^{OpaquePasteboardRef=}^v^{__CFString=}^I",
        "",
        {"arguments": {3: {"type_modifier": "o"}}},
    ),
    "PasteboardCopyPasteLocation": (
        b"i^{OpaquePasteboardRef=}^^{__CFURL=}",
        "",
        {
            "retval": {"already_cfretained": True},
            "arguments": {1: {"already_cfretained": True, "type_modifier": "o"}},
        },
    ),
    "PasteboardSetPromiseKeeper": (
        b"i^{OpaquePasteboardRef=}^?^v",
        "",
        {
            "arguments": {
                1: {
                    "callable": {
                        "retval": {"type": b"i"},
                        "arguments": {
                            0: {"type": b"^{OpaquePasteboardRef=}"},
                            1: {"type": b"^v"},
                            2: {"type": b"^{__CFString=}"},
                            3: {"type": b"^v"},
                        },
                    }
                }
            }
        },
    ),
    "UAZoomChangeFocus": (
        b"i^{CGRect={CGPoint=dd}{CGSize=dd}}^{CGRect={CGPoint=dd}{CGSize=dd}}I",
        "",
        {"arguments": {0: {"type_modifier": "n"}, 1: {"type_modifier": "n"}}},
    ),
    "HIShapeCreateUnion": (
        b"^{__HIShape=}^{__HIShape=}^{__HIShape=}",
        "",
        {"retval": {"already_cfretained": True}},
    ),
    "TranslationPerformForData": (
        b"i^{OpaqueTranslationRef=}^{__CFData=}^^{__CFData=}",
        "",
        {"arguments": {2: {"already_cfretained": True, "type_modifier": "o"}}},
    ),
    "AXTextMarkerGetLength": (b"q^{__AXTextMarker=}",),
    "AXIsProcessTrustedWithOptions": (b"Z^{__CFDictionary=}",),
    "HIShapeOffset": (b"i^{__HIShape=}dd",),
    "TranslationGetTranslationFlags": (
        b"i^{OpaqueTranslationRef=}^I",
        "",
        {"arguments": {1: {"type_modifier": "o"}}},
    ),
    "AXUIElementCopyAttributeValues": (
        b"i^{__AXUIElement=}^{__CFString=}qq^^{__CFArray=}",
        "",
        {
            "retval": {"already_cfretained": True},
            "arguments": {4: {"already_cfretained": True, "type_modifier": "o"}},
        },
    ),
    "SetIconFamilyData": (
        b"s^^{IconFamilyResource=Ii[1{IconFamilyElement=Ii[1C]}]}I^^c",
    ),
    "HIShapeIntersect": (b"i^{__HIShape=}^{__HIShape=}^{__HIShape=}",),
    "TranslationCreateWithSourceArray": (
        b"i^{__CFArray=}I^^{__CFArray=}^^{__CFDictionary=}",
        "",
        {
            "retval": {"already_cfretained": True},
            "arguments": {
                2: {"already_cfretained": True, "type_modifier": "o"},
                3: {"already_cfretained": True, "type_modifier": "o"},
            },
        },
    ),
    "KillProcess": (
        b"s^{ProcessSerialNumber=II}",
        "",
        {"arguments": {0: {"type_modifier": "n"}}},
    ),
    "SetFrontProcess": (
        b"s^{ProcessSerialNumber=II}",
        "",
        {"arguments": {0: {"type_modifier": "n"}}},
    ),
    "PasteboardCopyItemFlavorData": (
        b"i^{OpaquePasteboardRef=}^v^{__CFString=}^^{__CFData=}",
        "",
        {
            "retval": {"already_cfretained": True},
            "arguments": {3: {"already_cfretained": True, "type_modifier": "o"}},
        },
    ),
    "AXUIElementCreateApplication": (
        b"^{__AXUIElement=}i",
        "",
        {"retval": {"already_cfretained": True}},
    ),
    "PasteboardGetTypeID": (b"Q",),
    "AXUIElementCopyAttributeNames": (
        b"i^{__AXUIElement=}^^{__CFArray=}",
        "",
        {
            "retval": {"already_cfretained": True},
            "arguments": {1: {"already_cfretained": True, "type_modifier": "o"}},
        },
    ),
    "HIShapeContainsPoint": (
        b"Z^{__HIShape=}^{CGPoint=dd}",
        "",
        {"arguments": {1: {"type_modifier": "n"}}},
    ),
    "HIShapeGetBounds": (
        b"^{CGRect={CGPoint=dd}{CGSize=dd}}^{__HIShape=}^{CGRect={CGPoint=dd}{CGSize=dd}}",
        "",
        {
            "retval": {"deref_result_pointer": True},
            "arguments": {1: {"type_modifier": "o"}},
        },
    ),
    "AXObserverAddNotification": (
        b"i^{__AXObserver=}^{__AXUIElement=}^{__CFString=}^v",
    ),
    "TransformProcessType": (
        b"i^{ProcessSerialNumber=II}I",
        "",
        {"arguments": {0: {"type_modifier": "n"}}},
    ),
    "GetProcessBundleLocation": (
        b"i^{ProcessSerialNumber=II}^{FSRef=[80C]}",
        "",
        {"arguments": {0: {"type_modifier": "n"}, 1: {"type_modifier": "o"}}},
    ),
    "HIShapeCreateIntersection": (
        b"^{__HIShape=}^{__HIShape=}^{__HIShape=}",
        "",
        {"retval": {"already_cfretained": True}},
    ),
    "HIShapeCreateMutableCopy": (
        b"^{__HIShape=}^{__HIShape=}",
        "",
        {"retval": {"already_cfretained": True}},
    ),
    "AXUIElementCopyAttributeValue": (
        b"i^{__AXUIElement=}^{__CFString=}^@",
        "",
        {
            "retval": {"already_cfretained": True},
            "arguments": {2: {"already_cfretained": True, "type_modifier": "o"}},
        },
    ),
    "GetFrontProcess": (
        b"s^{ProcessSerialNumber=II}",
        "",
        {"arguments": {0: {"type_modifier": "o"}}},
    ),
    "HIShapeCreateEmpty": (
        b"^{__HIShape=}",
        "",
        {"retval": {"already_cfretained": True}},
    ),
    "AXObserverGetTypeID": (b"Q",),
    "AXTextMarkerRangeCopyStartMarker": (
        b"^{__AXTextMarker=}^{__AXTextMarkerRange=}",
        "",
        {"retval": {"already_cfretained": True}},
    ),
    "HIShapeGetTypeID": (b"Q",),
    "AXObserverCreate": (
        b"ii^?^^{__AXObserver=}",
        "",
        {
            "retval": {"already_cfretained": True},
            "arguments": {
                1: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {
                            0: {"type": b"^{__AXObserver=}"},
                            1: {"type": b"^{__AXUIElement=}"},
                            2: {"type": b"^{__CFString=}"},
                            3: {"type": b"^v"},
                        },
                    }
                },
                2: {"already_cfretained": True, "type_modifier": "o"},
            },
        },
    ),
    "AXTextMarkerRangeGetTypeID": (b"Q",),
    "PasteboardPutItemFlavor": (
        b"i^{OpaquePasteboardRef=}^v^{__CFString=}^{__CFData=}I",
    ),
    "AXAPIEnabled": (b"Z",),
    "AXObserverRemoveNotification": (
        b"i^{__AXObserver=}^{__AXUIElement=}^{__CFString=}",
    ),
    "PasteboardClear": (b"i^{OpaquePasteboardRef=}",),
    "TranslationPerformForFile": (
        b"i^{OpaqueTranslationRef=}^{FSRef=[80C]}^{FSRef=[80C]}^{__CFString=}^{FSRef=[80C]}",
        "",
        {
            "arguments": {
                1: {"type_modifier": "n"},
                2: {"type_modifier": "n"},
                4: {"type_modifier": "o"},
            }
        },
    ),
    "IsIconRefMaskEmpty": (b"Z^{OpaqueIconRef=}",),
    "AXTextMarkerGetTypeID": (b"Q",),
    "TranslationGetTypeID": (b"Q",),
    "HIShapeSetWithShape": (b"i^{__HIShape=}^{__HIShape=}",),
    "PasteboardSetPasteLocation": (b"i^{OpaquePasteboardRef=}^{__CFURL=}",),
    "AXTextMarkerRangeCreateWithBytes": (
        b"^{__AXTextMarkerRange=}^{__CFAllocator=}^Cq^Cq",
        "",
        {
            "retval": {"already_cfretained": True},
            "arguments": {
                1: {"c_array_length_in_arg": 2, "type_modifier": "n"},
                3: {"c_array_length_in_arg": 4, "type_modifier": "n"},
            },
        },
    ),
    "HIShapeXor": (b"i^{__HIShape=}^{__HIShape=}^{__HIShape=}",),
    "HIShapeCreateMutable": (
        b"^{__HIShape=}",
        "",
        {"retval": {"already_cfretained": True}},
    ),
    "ShowHideProcess": (
        b"s^{ProcessSerialNumber=II}Z",
        "",
        {"arguments": {0: {"type_modifier": "n"}}},
    ),
    "HIShapeIsEmpty": (b"Z^{__HIShape=}",),
    "AXUIElementSetMessagingTimeout": (b"i^{__AXUIElement=}f",),
    "ExitToShell": (b"v",),
    "AXIsProcessTrusted": (b"Z",),
    "AXUIElementGetTypeID": (b"Q",),
    "PasteboardCopyName": (
        b"i^{OpaquePasteboardRef=}^^{__CFString=}",
        "",
        {
            "retval": {"already_cfretained": True},
            "arguments": {1: {"already_cfretained": True, "type_modifier": "o"}},
        },
    ),
    "HIShapeDifference": (b"i^{__HIShape=}^{__HIShape=}^{__HIShape=}",),
    "AXValueGetTypeID": (b"Q", "", {"variadic": False}),
    "AXUIElementCopyElementAtPosition": (
        b"i^{__AXUIElement=}ff^^{__AXUIElement=}",
        "",
        {
            "retval": {"already_cfretained": True},
            "arguments": {3: {"already_cfretained": True, "type_modifier": "o"}},
        },
    ),
    "AXUIElementCopyMultipleAttributeValues": (
        b"i^{__AXUIElement=}^{__CFArray=}I^^{__CFArray=}",
        "",
        {
            "retval": {"already_cfretained": True},
            "arguments": {3: {"already_cfretained": True, "type_modifier": "o"}},
        },
    ),
    "HIShapeSetEmpty": (b"i^{__HIShape=}",),
    "HIShapeReplacePathInCGContext": (b"i^{__HIShape=}^{CGContext=}",),
    "HIShapeCreateDifference": (
        b"^{__HIShape=}^{__HIShape=}^{__HIShape=}",
        "",
        {"retval": {"already_cfretained": True}},
    ),
    "HIShapeCreateXor": (
        b"^{__HIShape=}^{__HIShape=}^{__HIShape=}",
        "",
        {"retval": {"already_cfretained": True}},
    ),
}
aliases = {
    "svSmall4Bit": "kSelectorSmall4Bit",
    "svLarge8Bit": "kSelectorLarge8Bit",
    "atTopLeft": "kAlignTopLeft",
    "ttOpen": "kTransformOpen",
    "ttDisabled": "kTransformDisabled",
    "svAllAvailableData": "kSelectorAllAvailableData",
    "ttSelected": "kTransformSelected",
    "atBottomRight": "kAlignBottomRight",
    "svMini1Bit": "kSelectorMini1Bit",
    "atAbsoluteCenter": "kAlignAbsoluteCenter",
    "ttLabel6": "kTransformLabel6",
    "ttLabel7": "kTransformLabel7",
    "atVerticalCenter": "kAlignVerticalCenter",
    "ttLabel5": "kTransformLabel5",
    "ttLabel2": "kTransformLabel2",
    "ttLabel3": "kTransformLabel3",
    "ttLabel1": "kTransformLabel1",
    "svSmall1Bit": "kSelectorSmall1Bit",
    "atLeft": "kAlignLeft",
    "atCenterRight": "kAlignCenterRight",
    "ttSelectedDisabled": "kTransformSelectedDisabled",
    "atHorizontalCenter": "kAlignHorizontalCenter",
    "svAllLargeData": "kSelectorAllLargeData",
    "atRight": "kAlignRight",
    "ttSelectedOpen": "kTransformSelectedOpen",
    "svAll4BitData": "kSelectorAll4BitData",
    "svMini8Bit": "kSelectorMini8Bit",
    "atCenterLeft": "kAlignCenterLeft",
    "svSmall8Bit": "kSelectorSmall8Bit",
    "MacGetCurrentProcess": "GetCurrentProcess",
    "ttLabel4": "kTransformLabel4",
    "svLarge1Bit": "kSelectorLarge1Bit",
    "kPasteboardUniqueName": "NULL",
    "atCenterTop": "kAlignCenterTop",
    "svAllSmallData": "kSelectorAllSmallData",
    "svAll8BitData": "kSelectorAll8BitData",
    "ttSelectedOffline": "kTransformSelectedOffline",
    "atTop": "kAlignTop",
    "svAll1BitData": "kSelectorAll1BitData",
    "svMini4Bit": "kSelectorMini4Bit",
    "atBottom": "kAlignBottom",
    "atTopRight": "kAlignTopRight",
    "kICComponentInterfaceVersion": "kICComponentInterfaceVersion4",
    "svAllMiniData": "kSelectorAllMiniData",
    "atNone": "kAlignNone",
    "atBottomLeft": "kAlignBottomLeft",
    "kPasteboardPromisedData": "NULL",
    "ttNone": "kTransformNone",
    "atCenterBottom": "kAlignCenterBottom",
    "ttOffline": "kTransformOffline",
    "svLarge4Bit": "kSelectorLarge4Bit",
    "kPasteboardResolveAllPromises": "NULL",
}
cftypes = [
    ("AXObserverRef", b"^{__AXObserver=}", "AXObserverGetTypeID", None),
    (
        "AXTextMarkerRangeRef",
        b"^{__AXTextMarkerRange=}",
        "AXTextMarkerRangeGetTypeID",
        None,
    ),
    ("AXTextMarkerRef", b"^{__AXTextMarker=}", "AXTextMarkerGetTypeID", None),
    ("AXUIElementRef", b"^{__AXUIElement=}", "AXUIElementGetTypeID", None),
    ("AXValueRef", b"^{__AXValue=}", "AXValueGetTypeID", None),
    ("HIMutableShapeRef", b"^{__HIShape=}", None, None),
    ("HIShapeRef", b"^{__HIShape=}", "HIShapeGetTypeID", None),
    ("TranslationRef", b"^{OpaqueTranslationRef=}", "TranslationGetTypeID", None),
]
expressions = {}

# END OF FILE
