# This file is generated by objective.metadata
#
# Last update: Sat May 18 09:39:03 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 = {}
constants = """$$"""
enums = """$IPHONE_SIMULATOR_HOST_MIN_VERSION_REQUIRED@999999$XPC_ACTIVITY_STATE_CHECK_IN@0$XPC_ACTIVITY_STATE_CONTINUE@4$XPC_ACTIVITY_STATE_DEFER@3$XPC_ACTIVITY_STATE_DONE@5$XPC_ACTIVITY_STATE_RUN@2$XPC_ACTIVITY_STATE_WAIT@1$XPC_ARRAY_APPEND@18446744073709551615$XPC_CONNECTION_MACH_SERVICE_LISTENER@1$XPC_CONNECTION_MACH_SERVICE_PRIVILEGED@2$XPC_LISTENER_CREATE_FORCE_MACH@2$XPC_LISTENER_CREATE_FORCE_XPCSERVICE@4$XPC_LISTENER_CREATE_INACTIVE@1$XPC_LISTENER_CREATE_NONE@0$XPC_SESSION_CREATE_INACTIVE@1$XPC_SESSION_CREATE_MACH_PRIVILEGED@2$XPC_SESSION_CREATE_NONE@0$"""
misc.update(
    {
        "xpc_session_create_flags_t": NewType("xpc_session_create_flags_t", int),
        "xpc_listener_create_flags_t": NewType("xpc_listener_create_flags_t", int),
    }
)
misc.update(
    {
        "xpc_session_create_flags_t": NewType("xpc_session_create_flags_t", int),
        "xpc_activity_state_t": NewType("xpc_activity_state_t", int),
    }
)
misc.update({})
functions = {
    "xpc_copy": (b"@@", "", {"retval": {"already_retained": True}}),
    "xpc_dictionary_set_connection": (
        b"v@^t@",
        "",
        {"arguments": {1: {"c_array_delimited_by_null": True, "type_modifier": "n"}}},
    ),
    "xpc_dictionary_set_value": (
        b"v@^t@",
        "",
        {"arguments": {1: {"c_array_delimited_by_null": True, "type_modifier": "n"}}},
    ),
    "xpc_endpoint_create": (b"@@", "", {"retval": {"already_retained": True}}),
    "xpc_connection_cancel": (b"v@",),
    "xpc_session_send_message_with_reply_async": (
        b"v@@@?",
        "",
        {
            "arguments": {
                2: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {
                            0: {"type": b"^v"},
                            1: {"type": b"@"},
                            2: {"type": b"@"},
                        },
                    }
                }
            }
        },
    ),
    "xpc_double_create": (b"@d", "", {"retval": {"already_retained": True}}),
    "xpc_data_get_bytes": (
        b"Q@^vQQ",
        "",
        {"arguments": {1: {"c_array_length_in_arg": 3, "type_modifier": "o"}}},
    ),
    "xpc_connection_resume": (b"v@",),
    "xpc_dictionary_set_fd": (
        b"v@^ti",
        "",
        {"arguments": {1: {"c_array_delimited_by_null": True, "type_modifier": "n"}}},
    ),
    "xpc_array_get_double": (b"d@Q",),
    "xpc_array_get_bool": (b"B@Q",),
    "xpc_dictionary_set_uuid": (
        b"v@^t^C",
        "",
        {
            "arguments": {
                1: {"c_array_delimited_by_null": True, "type_modifier": "n"},
                2: {"c_array_of_fixed_length": 16, "type_modifier": "n"},
            }
        },
    ),
    "xpc_dictionary_set_double": (
        b"v@^td",
        "",
        {"arguments": {1: {"c_array_delimited_by_null": True, "type_modifier": "n"}}},
    ),
    "xpc_dictionary_copy_mach_send": (
        b"I@^t",
        "",
        {"arguments": {1: {"c_array_delimited_by_null": True, "type_modifier": "n"}}},
    ),
    "xpc_array_set_string": (
        b"v@Q^t",
        "",
        {"arguments": {2: {"c_array_delimited_by_null": True, "type_modifier": "n"}}},
    ),
    "xpc_copy_description": (
        b"^t@",
        "",
        {"retval": {"c_array_delimited_by_null": True, "free_result": True}},
    ),
    "xpc_string_create": (
        b"@^t",
        "",
        {
            "retval": {"already_retained": True},
            "arguments": {0: {"c_array_delimited_by_null": True, "type_modifier": "n"}},
        },
    ),
    "xpc_array_dup_fd": (b"i@Q",),
    "xpc_activity_set_criteria": (b"v@@",),
    "xpc_shmem_create": (b"@^vQ", "", {"retval": {"already_retained": True}}),
    "xpc_connection_get_egid": (b"I@",),
    "xpc_array_get_value": (b"@@Q",),
    "xpc_activity_get_state": (b"q@",),
    "xpc_fd_dup": (b"i@",),
    "xpc_dictionary_get_dictionary": (
        b"@@^t",
        "",
        {"arguments": {1: {"c_array_delimited_by_null": True, "type_modifier": "n"}}},
    ),
    "xpc_dictionary_get_uuid": (
        b"^v@^t",
        "",
        {
            "retval": {"c_array_of_fixed_length": 16},
            "arguments": {1: {"c_array_delimited_by_null": True, "type_modifier": "n"}},
        },
    ),
    "xpc_array_set_data": (
        b"v@Q^vQ",
        "",
        {"arguments": {2: {"c_array_length_in_arg": 3, "type_modifier": "n"}}},
    ),
    "xpc_array_set_date": (b"v@Qq",),
    "xpc_session_set_target_queue": (b"v@@",),
    "xpc_dictionary_get_uint64": (
        b"Q@^t",
        "",
        {"arguments": {1: {"c_array_delimited_by_null": True, "type_modifier": "n"}}},
    ),
    "xpc_debugger_api_misuse_info": (
        b"^t",
        "",
        {"retval": {"c_array_delimited_by_null": True}},
    ),
    "_xpc_object_validate": (b"v@",),
    "xpc_dictionary_create_empty": (b"@", "", {"retval": {"already_retained": True}}),
    "xpc_array_apply": (
        b"B@@?",
        "",
        {
            "arguments": {
                1: {
                    "callable": {
                        "retval": {"type": b"B"},
                        "arguments": {
                            0: {"type": b"^v"},
                            1: {"type": b"Q"},
                            2: {"type": b"@"},
                        },
                    }
                }
            }
        },
    ),
    "xpc_transaction_begin": (b"v",),
    "xpc_type_get_name": (
        b"^t^{_xpc_type_s=}",
        "",
        {"retval": {"c_array_delimited_by_null": True}},
    ),
    "xpc_equal": (b"B@@",),
    "xpc_activity_set_state": (b"B@q",),
    "xpc_session_set_incoming_message_handler": (
        b"v@@?",
        "",
        {
            "arguments": {
                1: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
                    }
                }
            }
        },
    ),
    "xpc_connection_copy_invalidation_reason": (
        b"^t@",
        "",
        {"retval": {"c_array_delimited_by_null": True}},
    ),
    "xpc_listener_cancel": (b"v@",),
    "xpc_listener_create": (
        b"@^t@Q@?^@",
        "",
        {
            "arguments": {
                0: {"c_array_delimited_by_null": True, "type_modifier": "n"},
                4: {"type_modifier": "o"},
            }
        },
    ),
    "xpc_date_create": (b"@q", "", {"retval": {"already_retained": True}}),
    "xpc_array_set_double": (b"v@Qd",),
    "xpc_session_send_message_with_reply_sync": (
        b"@@@^@",
        "",
        {
            "retval": {"already_retained": True},
            "arguments": {2: {"type_modifier": "o"}},
        },
    ),
    "xpc_listener_activate": (b"B@^@", "", {"arguments": {1: {"type_modifier": "o"}}}),
    "xpc_uint64_create": (b"@Q", "", {"retval": {"already_retained": True}}),
    "xpc_session_set_peer_code_signing_requirement": (
        b"i@^t",
        "",
        {"arguments": {1: {"c_array_delimited_by_null": True, "type_modifier": "n"}}},
    ),
    "xpc_connection_set_event_handler": (
        b"v@@?",
        "",
        {
            "arguments": {
                1: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
                    }
                }
            }
        },
    ),
    "xpc_data_get_length": (b"Q@",),
    "xpc_set_event_stream_handler": (
        b"v^t@@?",
        "",
        {
            "arguments": {
                0: {"c_array_delimited_by_null": True, "type_modifier": "n"},
                2: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
                    }
                },
            }
        },
    ),
    "xpc_array_get_uint64": (b"Q@Q",),
    "xpc_rich_error_copy_description": (
        b"^t@",
        "",
        {"retval": {"c_array_delimited_by_null": True, "free_result": True}},
    ),
    "xpc_connection_suspend": (b"v@",),
    "xpc_bool_get_value": (b"B@",),
    "xpc_dictionary_get_array": (
        b"@@^t",
        "",
        {"arguments": {1: {"c_array_delimited_by_null": True, "type_modifier": "n"}}},
    ),
    "xpc_dictionary_set_bool": (
        b"v@^tB",
        "",
        {"arguments": {1: {"c_array_delimited_by_null": True, "type_modifier": "n"}}},
    ),
    "xpc_data_create_with_dispatch_data": (
        b"@@",
        "",
        {"retval": {"already_retained": True}},
    ),
    "xpc_int64_get_value": (b"q@",),
    "xpc_array_get_int64": (b"q@Q",),
    "xpc_dictionary_dup_fd": (
        b"i@^t",
        "",
        {"arguments": {1: {"c_array_delimited_by_null": True, "type_modifier": "n"}}},
    ),
    "xpc_connection_set_peer_team_identity_requirement": (
        b"i@^t",
        "",
        {"arguments": {1: {"c_array_delimited_by_null": True, "type_modifier": "n"}}},
    ),
    "xpc_rich_error_can_retry": (b"B@",),
    "xpc_dictionary_set_string": (
        b"v@^t^t",
        "",
        {
            "arguments": {
                1: {"c_array_delimited_by_null": True, "type_modifier": "n"},
                2: {"c_array_delimited_by_null": True, "type_modifier": "n"},
            }
        },
    ),
    "xpc_array_set_uint64": (b"v@QQ",),
    "xpc_uuid_get_bytes": (b"^v@", "", {"retval": {"c_array_of_fixed_length": 16}}),
    "xpc_string_create_with_format": (
        b"@^t",
        "",
        {
            "retval": {"already_retained": True},
            "arguments": {
                0: {
                    "printf_format": True,
                    "c_array_delimited_by_null": True,
                    "type_modifier": "n",
                }
            },
            "variadic": True,
        },
    ),
    "xpc_connection_send_barrier": (b"v@@?",),
    "xpc_connection_set_target_queue": (b"v@@",),
    "xpc_session_cancel": (b"v@",),
    "xpc_dictionary_apply": (
        b"B@@?",
        "",
        {
            "arguments": {
                1: {
                    "callable": {
                        "retval": {"type": b"B"},
                        "arguments": {
                            0: {"type": b"^v"},
                            1: {
                                "c_array_delimited_by_null": True,
                                "type": b"^t",
                                "type_modifier": "n",
                            },
                            2: {"type": b"@"},
                        },
                    }
                }
            }
        },
    ),
    "xpc_session_send_message": (b"@@@", "", {"retval": {"already_retained": True}}),
    "xpc_array_create_empty": (b"@", "", {"retval": {"already_retained": True}}),
    "xpc_activity_unregister": (
        b"v^t",
        "",
        {"arguments": {0: {"c_array_delimited_by_null": True, "type_modifier": "n"}}},
    ),
    "xpc_dictionary_get_double": (
        b"d@^t",
        "",
        {"arguments": {1: {"c_array_delimited_by_null": True, "type_modifier": "n"}}},
    ),
    "xpc_listener_copy_description": (
        b"^t@",
        "",
        {"retval": {"c_array_delimited_by_null": True}},
    ),
    "xpc_data_get_bytes_ptr": (
        b"^v@",
        "",
        {"retval": {"c_array_of_variable_length": True}},
    ),
    "xpc_int64_create": (b"@q", "", {"retval": {"already_retained": True}}),
    "xpc_array_get_array": (b"@@Q",),
    "xpc_connection_create_from_endpoint": (
        b"@@",
        "",
        {"retval": {"already_retained": True}},
    ),
    "xpc_array_get_uuid": (b"^v@Q", "", {"retval": {"c_array_of_fixed_length": 16}}),
    "xpc_connection_activate": (b"v@",),
    "xpc_activity_copy_criteria": (b"@@", "", {"retval": {"already_retained": True}}),
    "xpc_session_create_mach_service": (
        b"@^t@Q^@",
        "",
        {
            "retval": {"already_retained": True},
            "arguments": {
                0: {"c_array_delimited_by_null": True, "type_modifier": "n"},
                3: {"type_modifier": "o"},
            },
        },
    ),
    "xpc_connection_create": (
        b"@^t@",
        "",
        {
            "retval": {"already_retained": True},
            "arguments": {0: {"c_array_delimited_by_null": True, "type_modifier": "n"}},
        },
    ),
    "xpc_array_set_value": (b"v@Q@",),
    "xpc_connection_send_message_with_reply": (
        b"v@@@@?",
        "",
        {
            "arguments": {
                3: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
                    }
                }
            }
        },
    ),
    "xpc_array_get_dictionary": (b"@@Q",),
    "xpc_connection_send_message_with_reply_sync": (b"@@@",),
    "xpc_connection_set_peer_entitlement_matches_value_requirement": (
        b"i@^t@",
        "",
        {"arguments": {1: {"c_array_delimited_by_null": True, "type_modifier": "n"}}},
    ),
    "xpc_connection_send_message": (b"v@@",),
    "xpc_dictionary_set_uint64": (
        b"v@^tQ",
        "",
        {"arguments": {1: {"c_array_delimited_by_null": True, "type_modifier": "n"}}},
    ),
    "xpc_dictionary_get_count": (b"Q@",),
    "xpc_session_create_xpc_service": (
        b"@^t@Q^@",
        "",
        {
            "retval": {"already_retained": True},
            "arguments": {
                0: {"c_array_delimited_by_null": True, "type_modifier": "n"},
                3: {"type_modifier": "o"},
            },
        },
    ),
    "xpc_connection_set_peer_lightweight_code_requirement": (b"i@@",),
    "xpc_get_type": (b"^{_xpc_type_s=}@",),
    "xpc_hash": (b"Q@",),
    "xpc_dictionary_set_int64": (
        b"v@^tq",
        "",
        {"arguments": {1: {"c_array_delimited_by_null": True, "type_modifier": "n"}}},
    ),
    "xpc_connection_get_euid": (b"I@",),
    "xpc_dictionary_set_mach_send": (
        b"v@^tI",
        "",
        {"arguments": {1: {"c_array_delimited_by_null": True, "type_modifier": "n"}}},
    ),
    "xpc_dictionary_create_reply": (b"@@", "", {"retval": {"already_retained": True}}),
    "xpc_array_set_int64": (b"v@Qq",),
    "xpc_session_set_cancel_handler": (
        b"v@@?",
        "",
        {
            "arguments": {
                1: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
                    }
                }
            }
        },
    ),
    "xpc_uuid_create": (
        b"@^C",
        "",
        {
            "retval": {"already_retained": True},
            "arguments": {0: {"c_array_of_fixed_length": 16, "type_modifier": "n"}},
        },
    ),
    "xpc_listener_reject_peer": (
        b"v@^t",
        "",
        {"arguments": {1: {"c_array_delimited_by_null": True, "type_modifier": "n"}}},
    ),
    "xpc_string_get_length": (b"Q@",),
    "xpc_connection_set_context": (b"v@^v",),
    "xpc_array_set_uuid": (
        b"v@Q^C",
        "",
        {"arguments": {2: {"c_array_of_fixed_length": 16, "type_modifier": "n"}}},
    ),
    "xpc_array_set_fd": (b"v@Qi",),
    "xpc_data_create": (
        b"@^vQ",
        "",
        {
            "retval": {"already_retained": True},
            "arguments": {0: {"c_array_length_in_arg": 1, "type_modifier": "n"}},
        },
    ),
    "xpc_main": (
        b"v^?",
        "",
        {
            "arguments": {
                0: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {0: {"type": b"@"}},
                    }
                }
            }
        },
    ),
    "xpc_activity_should_defer": (b"B@",),
    "xpc_dictionary_get_string": (
        b"^t@^t",
        "",
        {
            "retval": {"c_array_delimited_by_null": True},
            "arguments": {1: {"c_array_delimited_by_null": True, "type_modifier": "n"}},
        },
    ),
    "xpc_dictionary_set_data": (
        b"v@^t^vQ",
        "",
        {
            "arguments": {
                1: {"c_array_delimited_by_null": True, "type_modifier": "n"},
                2: {"c_array_length_in_arg": 3, "type_modifier": "n"},
            }
        },
    ),
    "xpc_transaction_end": (b"v",),
    "xpc_dictionary_set_date": (
        b"v@^tq",
        "",
        {"arguments": {1: {"c_array_delimited_by_null": True, "type_modifier": "n"}}},
    ),
    "xpc_activity_register": (
        b"v^t@@?",
        "",
        {
            "arguments": {
                0: {"c_array_delimited_by_null": True, "type_modifier": "n"},
                2: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {0: {"type": b"^v"}, 1: {"type": b"@"}},
                    }
                },
            }
        },
    ),
    "xpc_array_get_date": (b"q@Q",),
    "xpc_connection_get_asid": (b"i@",),
    "xpc_connection_set_finalizer_f": (
        b"v@^?",
        "",
        {
            "arguments": {
                1: {
                    "callable": {
                        "retval": {"type": b"v"},
                        "arguments": {0: {"type": b"^v"}},
                    }
                }
            }
        },
    ),
    "xpc_array_get_data": (
        b"^v@Q^Q",
        "",
        {
            "retval": {"c_array_length_in_arg": 2},
            "arguments": {2: {"type_modifier": "o"}},
        },
    ),
    "xpc_null_create": (b"@", "", {"retval": {"already_retained": True}}),
    "xpc_array_create_connection": (b"@@Q", "", {"retval": {"already_retained": True}}),
    "xpc_dictionary_get_remote_connection": (b"@@",),
    "xpc_date_create_from_current": (b"@", "", {"retval": {"already_retained": True}}),
    "xpc_listener_set_peer_code_signing_requirement": (
        b"i@^t",
        "",
        {"arguments": {1: {"c_array_delimited_by_null": True, "type_modifier": "n"}}},
    ),
    "xpc_dictionary_get_bool": (
        b"B@^t",
        "",
        {"arguments": {1: {"c_array_delimited_by_null": True, "type_modifier": "n"}}},
    ),
    "xpc_dictionary_get_int64": (
        b"q@^t",
        "",
        {"arguments": {1: {"c_array_delimited_by_null": True, "type_modifier": "n"}}},
    ),
    "xpc_shmem_map": (b"Q@^^v", "", {"arguments": {1: {"type_modifier": "o"}}}),
    "xpc_connection_get_context": (b"^v@",),
    "xpc_array_set_bool": (b"v@QB",),
    "xpc_connection_create_mach_service": (
        b"@^t@Q",
        "",
        {
            "retval": {"already_retained": True},
            "arguments": {0: {"c_array_delimited_by_null": True, "type_modifier": "n"}},
        },
    ),
    "xpc_connection_set_peer_platform_identity_requirement": (
        b"i@^t",
        "",
        {"arguments": {1: {"c_array_delimited_by_null": True, "type_modifier": "n"}}},
    ),
    "xpc_string_get_string_ptr": (
        b"^t@",
        "",
        {"retval": {"c_array_delimited_by_null": True}},
    ),
    "xpc_array_set_connection": (b"v@Q@",),
    "xpc_array_create": (
        b"@^@Q",
        "",
        {
            "retval": {"already_retained": True},
            "arguments": {0: {"c_array_length_in_arg": 1, "type_modifier": "n"}},
        },
    ),
    "xpc_fd_create": (b"@i", "", {"retval": {"already_retained": True}}),
    "xpc_connection_set_peer_entitlement_exists_requirement": (
        b"i@^t",
        "",
        {"arguments": {1: {"c_array_delimited_by_null": True, "type_modifier": "n"}}},
    ),
    "xpc_double_get_value": (b"d@",),
    "xpc_connection_get_name": (
        b"^t@",
        "",
        {"retval": {"c_array_delimited_by_null": True}},
    ),
    "xpc_dictionary_get_date": (
        b"q@^t",
        "",
        {"arguments": {1: {"c_array_delimited_by_null": True, "type_modifier": "n"}}},
    ),
    "xpc_uint64_get_value": (b"Q@",),
    "xpc_dictionary_get_data": (
        b"^v@^t^Q",
        "",
        {
            "retval": {"c_array_length_in_arg": 2},
            "arguments": {
                1: {"c_array_delimited_by_null": True, "type_modifier": "n"},
                2: {"type_modifier": "o"},
            },
        },
    ),
    "xpc_bool_create": (b"@B", "", {"retval": {"already_retained": True}}),
    "xpc_dictionary_create_connection": (
        b"@@^t",
        "",
        {
            "retval": {"already_retained": True},
            "arguments": {1: {"c_array_delimited_by_null": True, "type_modifier": "n"}},
        },
    ),
    "xpc_session_copy_description": (
        b"^t@",
        "",
        {"retval": {"c_array_delimited_by_null": True, "free_result": True}},
    ),
    "xpc_session_activate": (b"B@^@", "", {"arguments": {1: {"type_modifier": "o"}}}),
    "xpc_connection_get_pid": (b"i@",),
    "xpc_array_append_value": (b"v@@",),
    "xpc_dictionary_get_value": (
        b"@@^t",
        "",
        {"arguments": {1: {"c_array_delimited_by_null": True, "type_modifier": "n"}}},
    ),
    "xpc_connection_set_peer_code_signing_requirement": (
        b"i@^t",
        "",
        {"arguments": {1: {"c_array_delimited_by_null": True, "type_modifier": "n"}}},
    ),
    "xpc_array_get_count": (b"Q@",),
    "xpc_array_get_string": (
        b"^t@Q",
        "",
        {"retval": {"c_array_delimited_by_null": True}},
    ),
    "xpc_date_get_value": (b"q@",),
}
aliases = {
    "XPC_ERROR_KEY_DESCRIPTION": "_xpc_error_key_description",
    "XPC_TESTEXPORT": "XPC_NOEXPORT",
    "XPC_RETURNS_RETAINED": "OS_OBJECT_RETURNS_RETAINED",
    "XPC_EVENT_KEY_NAME": "_xpc_event_key_name",
    "XPC_NONNULL_ARRAY": "_Nonnull",
}
expressions = {}

# END OF FILE
