	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xpc_connect                    ## -- Begin function xpc_connect
	.p2align	4, 0x90
_xpc_connect:                           ## @xpc_connect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, %r13
	movq	%rcx, %r12
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movl	%edi, %r14d
	testl	%edi, %edi
	sets	%al
	movq	_XPC_MAX_NCHANNELS@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	setle	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_DBUG_ON
	testq	%r12, %r12
	sete	%al
	testq	%r13, %r13
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_DBUG_ON
	xorl	%edi, %edi
	testq	%r15, %r15
	sete	%dil
	callq	_DBUG_ON
	testq	%rbx, %rbx
	sete	%al
	cmpq	%rbx, 16(%rbp)
	setg	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_DBUG_ON
	movq	%r12, %rdi
	callq	_XPC_MSG_SIZE
	movq	_XPC_MSG_MAX_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_2
## %bb.1:
	movq	_xpPayloadTooBig@GOTPCREL(%rip), %rbx
	jmp	LBB0_8
LBB0_2:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	_xpc_registrations@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movslq	%r14d, %rax
	imulq	$56, %rax, %r15
	movl	%r14d, %ebx
	leaq	(%r15,%r13), %r14
	movq	%r14, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_xpInterrupted@GOTPCREL(%rip), %rbx
	jmp	LBB0_8
LBB0_4:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	cmpq	$0, 8(%r13,%r15)
	je	LBB0_6
## %bb.5:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	_xpAlreadyRegistered@GOTPCREL(%rip), %rbx
	jmp	LBB0_8
LBB0_6:
	leaq	(%r15,%r13), %rbx
	addq	$8, %rbx
	movq	%r12, %rdi
	callq	_XPC_MSG_SIZE
	movq	%rax, 48(%r13,%r15)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 40(%r13,%r15)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 32(%r13,%r15)
	movq	16(%rbp), %rax
	movq	%rax, 24(%r13,%r15)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r13,%r15)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rbx)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	_xpc_interface@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_xpSuccess@GOTPCREL(%rip), %rbx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.7:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	*%rcx
LBB0_8:
	movl	(%rbx), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XPC_MAX_NCHANNELS,4,2          ## @XPC_MAX_NCHANNELS
	.comm	_XPC_MSG_MAX_SIZE,8,3           ## @XPC_MSG_MAX_SIZE
	.comm	_xpPayloadTooBig,4,2            ## @xpPayloadTooBig
	.comm	_xpc_registrations,8,3          ## @xpc_registrations
	.comm	_xpInterrupted,4,2              ## @xpInterrupted
	.comm	_xpAlreadyRegistered,4,2        ## @xpAlreadyRegistered
	.comm	_xpc_interface,8,3              ## @xpc_interface
	.comm	_xpSuccess,4,2                  ## @xpSuccess
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xpc_connect                    ; -- Begin function xpc_connect
	.p2align	2
_xpc_connect:                           ; @xpc_connect
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x6
	mov	x21, x5
	mov	x24, x4
	mov	x25, x3
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
	cmp	w0, #0
Lloh0:
	adrp	x8, _XPC_MAX_NCHANNELS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XPC_MAX_NCHANNELS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ccmp	w8, w0, #4, ge
	cset	w0, le
	bl	_DBUG_ON
	cmp	x25, #0
	ccmp	x24, #0, #4, ne
	cset	w0, eq
	bl	_DBUG_ON
	cmp	x22, #0
	cset	w0, eq
	bl	_DBUG_ON
	cmp	x21, #0
	ccmp	x20, x21, #0, ne
	cset	w0, gt
	bl	_DBUG_ON
	mov	x0, x25
	bl	_XPC_MSG_SIZE
Lloh3:
	adrp	x8, _XPC_MSG_MAX_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XPC_MSG_MAX_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _xpPayloadTooBig@GOTPAGE
Lloh7:
	ldr	x8, [x8, _xpPayloadTooBig@GOTPAGEOFF]
	b	LBB0_9
LBB0_2:
Lloh8:
	adrp	x8, _xpc_registrations@GOTPAGE
Lloh9:
	ldr	x8, [x8, _xpc_registrations@GOTPAGEOFF]
Lloh10:
	ldr	x27, [x8]
	mov	w8, #56
	smaddl	x26, w19, w8, x27
	mov	x0, x26
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _xpInterrupted@GOTPAGE
Lloh12:
	ldr	x8, [x8, _xpInterrupted@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
	sxtw	x9, w19
	mov	w8, #56
	madd	x28, x9, x8, x27
	ldr	x8, [x28, #8]!
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x26
	bl	_mutex_unlock
Lloh13:
	adrp	x8, _xpAlreadyRegistered@GOTPAGE
Lloh14:
	ldr	x8, [x8, _xpAlreadyRegistered@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	mov	x0, x25
	mov	x25, x9
	bl	_XPC_MSG_SIZE
	mov	w8, #56
	madd	x8, x25, x8, x27
	stp	x24, x0, [x8, #40]
	stp	x20, x21, [x8, #24]
	str	x23, [x8, #16]
	str	x22, [x28]
	mov	x0, x26
	bl	_mutex_unlock
Lloh15:
	adrp	x8, _xpc_interface@GOTPAGE
Lloh16:
	ldr	x8, [x8, _xpc_interface@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x19
	blr	x8
LBB0_8:
Lloh18:
	adrp	x8, _xpSuccess@GOTPAGE
Lloh19:
	ldr	x8, [x8, _xpSuccess@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_XPC_MAX_NCHANNELS,4,2          ; @XPC_MAX_NCHANNELS
	.comm	_XPC_MSG_MAX_SIZE,8,3           ; @XPC_MSG_MAX_SIZE
	.comm	_xpPayloadTooBig,4,2            ; @xpPayloadTooBig
	.comm	_xpc_registrations,8,3          ; @xpc_registrations
	.comm	_xpInterrupted,4,2              ; @xpInterrupted
	.comm	_xpAlreadyRegistered,4,2        ; @xpAlreadyRegistered
	.comm	_xpc_interface,8,3              ; @xpc_interface
	.comm	_xpSuccess,4,2                  ; @xpSuccess
.subsections_via_symbols
