	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xpc_connect_channel
_xpc_connect_channel:                   ## @xpc_connect_channel
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_xpc_registrations@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	(%rdi), %rax
	leaq	(%rax,%rax,4), %r12
	leaq	8(,%r12,8), %r15
	addq	%r13, %r15
	movq	%r15, %rdi
	callq	_mutex_trylock
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rdi
	callq	_XPC_CHANNEL_REGISTERED
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	leaq	32(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_XPC_C_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	8(%rbx), %edi
	callq	_DBUG_ON
	movq	_XPC_C_OPENREQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	8(%rbx), %edi
	callq	_DBUG_ON
	movq	_XPC_C_DISCONNECTING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r15, %rdi
	callq	_mutex_unlock
	addq	$12, %rbx
	jmp	LBB0_11
LBB0_1:
	movq	_xpRetry@GOTPCREL(%rip), %rbx
	jmp	LBB0_11
LBB0_3:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	_xpUnregistered@GOTPCREL(%rip), %rbx
	jmp	LBB0_11
LBB0_6:
	movl	36(%r13,%r12,8), %eax
	movl	%eax, 72(%rbx)
	movl	32(%r13,%r12,8), %eax
	movl	%eax, 68(%rbx)
	leaq	64(%rbx), %rdi
	callq	_atomic_read
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_DBUG_ON
	leaq	60(%rbx), %rdi
	callq	_atomic_read
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_DBUG_ON
	leaq	56(%rbx), %rdi
	callq	_atomic_read
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_DBUG_ON
	movq	24(%r13,%r12,8), %rax
	movq	%rax, 48(%rbx)
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_DBUG_ON
	movl	16(%r13,%r12,8), %eax
	movl	%eax, 40(%rbx)
	movl	12(%r13,%r12,8), %eax
	movl	%eax, 36(%rbx)
	movq	_XPC_C_ROPENREQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	(%r13,%r12,8), %rax
	testl	%ecx, 8(%rbx)
	je	LBB0_9
## %bb.7:
	cmpq	16(%rbx), %rax
	je	LBB0_10
## %bb.8:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	_xpUnequalMsgSizes@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_XPC_DISCONNECT_CHANNEL
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r15, %rbx
	jmp	LBB0_11
LBB0_9:
	movq	%rax, 16(%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_XPC_SET_REASON
	movq	_XPC_C_DISCONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%rbx)
	movq	_xpc_partitions@GOTPCREL(%rip), %rax
	movq	24(%rbx), %rdi
	shlq	$2, %rdi
	addq	(%rax), %rdi
	callq	_atomic_inc
LBB0_10:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	_XPC_C_CONNECTING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_XPC_C_OPENREQUEST@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	%eax, 8(%rbx)
	movq	_xpc_arch_ops@GOTPCREL(%rip), %rax
	leaq	-48(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	*(%rax)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_xpc_process_connect
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	_xpSuccess@GOTPCREL(%rip), %rbx
LBB0_11:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_xpc_registrations,8,3          ## @xpc_registrations
	.comm	_xpRetry,4,2                    ## @xpRetry
	.comm	_xpUnregistered,4,2             ## @xpUnregistered
	.comm	_XPC_C_CONNECTED,4,2            ## @XPC_C_CONNECTED
	.comm	_XPC_C_OPENREQUEST,4,2          ## @XPC_C_OPENREQUEST
	.comm	_XPC_C_DISCONNECTING,4,2        ## @XPC_C_DISCONNECTING
	.comm	_XPC_C_ROPENREQUEST,4,2         ## @XPC_C_ROPENREQUEST
	.comm	_xpUnequalMsgSizes,4,2          ## @xpUnequalMsgSizes
	.comm	_XPC_C_DISCONNECTED,4,2         ## @XPC_C_DISCONNECTED
	.comm	_xpc_partitions,8,3             ## @xpc_partitions
	.comm	_XPC_C_CONNECTING,4,2           ## @XPC_C_CONNECTING
	.comm	_xpc_arch_ops,8,3               ## @xpc_arch_ops
	.comm	_xpSuccess,4,2                  ## @xpSuccess
	.no_dead_strip	_xpc_connect_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xpc_connect_channel
_xpc_connect_channel:                   ; @xpc_connect_channel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _xpc_registrations@GOTPAGE
Lloh1:
	ldr	x8, [x8, _xpc_registrations@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	ldr	x24, [x0]
	mov	w8, #40
	madd	x8, x24, x8, x23
	add	x21, x8, #8
	mov	x0, x21
	bl	_mutex_trylock
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x0, [x19]
	bl	_XPC_CHANNEL_REGISTERED
	cbz	w0, LBB0_5
; %bb.2:
	add	x20, x19, #32
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w8, [x19, #8]
Lloh3:
	adrp	x9, _XPC_C_CONNECTED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _XPC_C_CONNECTED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_DBUG_ON
	ldr	w8, [x19, #8]
Lloh6:
	adrp	x22, _XPC_C_OPENREQUEST@GOTPAGE
Lloh7:
	ldr	x22, [x22, _XPC_C_OPENREQUEST@GOTPAGEOFF]
	ldr	w9, [x22]
	and	w0, w9, w8
	bl	_DBUG_ON
	ldr	w8, [x19, #8]
Lloh8:
	adrp	x9, _XPC_C_DISCONNECTING@GOTPAGE
Lloh9:
	ldr	x9, [x9, _XPC_C_DISCONNECTING@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x21
	bl	_mutex_unlock
	add	x21, x19, #12
	b	LBB0_11
LBB0_4:
Lloh11:
	adrp	x21, _xpRetry@GOTPAGE
Lloh12:
	ldr	x21, [x21, _xpRetry@GOTPAGEOFF]
	b	LBB0_11
LBB0_5:
	mov	x0, x21
	bl	_mutex_unlock
Lloh13:
	adrp	x21, _xpUnregistered@GOTPAGE
Lloh14:
	ldr	x21, [x21, _xpUnregistered@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
	mov	w8, #40
	madd	x23, x24, x8, x23
	ldr	d0, [x23, #32]
	stur	d0, [x19, #68]
	add	x0, x19, #64
	bl	_atomic_read
	cmp	x0, #0
	cset	w0, ne
	bl	_DBUG_ON
	add	x0, x19, #60
	bl	_atomic_read
	cmp	x0, #0
	cset	w0, ne
	bl	_DBUG_ON
	add	x0, x19, #56
	bl	_atomic_read
	cmp	x0, #0
	cset	w0, ne
	bl	_DBUG_ON
	ldr	x8, [x23, #24]
	str	x8, [x19, #48]
	cmp	x8, #0
	cset	w0, eq
	bl	_DBUG_ON
	ldur	d0, [x23, #12]
	stur	d0, [x19, #36]
	ldr	w9, [x19, #8]
Lloh15:
	adrp	x8, _XPC_C_ROPENREQUEST@GOTPAGE
Lloh16:
	ldr	x8, [x8, _XPC_C_ROPENREQUEST@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x8]
	ldr	x8, [x23]
	tst	w10, w9
	b.eq	LBB0_9
; %bb.7:
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.8:
	mov	x0, x21
	bl	_mutex_unlock
Lloh18:
	adrp	x21, _xpUnequalMsgSizes@GOTPAGE
Lloh19:
	ldr	x21, [x21, _xpUnequalMsgSizes@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #8
	mov	x0, x19
	bl	_XPC_DISCONNECT_CHANNEL
	ldr	x1, [sp, #8]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	b	LBB0_11
LBB0_9:
	str	x8, [x19, #16]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_XPC_SET_REASON
Lloh20:
	adrp	x8, _XPC_C_DISCONNECTED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _XPC_C_DISCONNECTED@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
Lloh23:
	adrp	x8, _xpc_partitions@GOTPAGE
Lloh24:
	ldr	x8, [x8, _xpc_partitions@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	ldr	x9, [x19, #24]
	add	x0, x8, x9, lsl #2
	bl	_atomic_inc
LBB0_10:
	mov	x0, x21
	bl	_mutex_unlock
	ldr	w8, [x22]
Lloh26:
	adrp	x9, _XPC_C_CONNECTING@GOTPAGE
Lloh27:
	ldr	x9, [x9, _XPC_C_CONNECTING@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19, #8]
	orr	w8, w8, w9
	str	w8, [x19, #8]
Lloh29:
	adrp	x8, _xpc_arch_ops@GOTPAGE
Lloh30:
	ldr	x8, [x8, _xpc_arch_ops@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	add	x1, sp, #8
	mov	x0, x19
	blr	x8
	add	x1, sp, #8
	mov	x0, x19
	bl	_xpc_process_connect
	ldr	x1, [sp, #8]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh32:
	adrp	x21, _xpSuccess@GOTPAGE
Lloh33:
	ldr	x21, [x21, _xpSuccess@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x21]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_xpc_registrations,8,3          ; @xpc_registrations
	.comm	_xpRetry,4,2                    ; @xpRetry
	.comm	_xpUnregistered,4,2             ; @xpUnregistered
	.comm	_XPC_C_CONNECTED,4,2            ; @XPC_C_CONNECTED
	.comm	_XPC_C_OPENREQUEST,4,2          ; @XPC_C_OPENREQUEST
	.comm	_XPC_C_DISCONNECTING,4,2        ; @XPC_C_DISCONNECTING
	.comm	_XPC_C_ROPENREQUEST,4,2         ; @XPC_C_ROPENREQUEST
	.comm	_xpUnequalMsgSizes,4,2          ; @xpUnequalMsgSizes
	.comm	_XPC_C_DISCONNECTED,4,2         ; @XPC_C_DISCONNECTED
	.comm	_xpc_partitions,8,3             ; @xpc_partitions
	.comm	_XPC_C_CONNECTING,4,2           ; @XPC_C_CONNECTING
	.comm	_xpc_arch_ops,8,3               ; @xpc_arch_ops
	.comm	_xpSuccess,4,2                  ; @xpSuccess
	.no_dead_strip	_xpc_connect_channel
.subsections_via_symbols
