	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xpc_process_openclose_chctl_flags
_xpc_process_openclose_chctl_flags:     ## @xpc_process_openclose_chctl_flags
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	24(%rdi), %rax
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	32(%rdi), %r12
	movslq	%esi, %rbx
	leaq	(%rbx,%rbx,2), %rcx
	shlq	$4, %rcx
	leaq	(%rax,%rcx), %r14
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rcx), %rdi
	addq	$32, %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	leaq	(%rbx,%rbx,4), %rax
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%rax,8), %r13
	movq	_XPC_C_DISCONNECTED@GOTPCREL(%rip), %rcx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_xpc_chan@GOTPCREL(%rip), %rbx
	movl	(%r14), %eax
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_XPC_C_WDISCONNECT@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	jne	LBB0_14
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_XPC_CHCTL_CLOSEREQUEST@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rbx), %edi
	movl	(%r13), %edx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	8(%rax), %rcx
	movl	4(%rax), %r8d
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	(%r14), %eax
	movq	_XPC_C_RCLOSEREQUEST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%edi, %edi
	movq	_XPC_C_DISCONNECTING@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	sete	%dil
	callq	_DBUG_ON
	movq	_XPC_C_CLOSEREQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%r14), %eax
	sete	%dil
	callq	_DBUG_ON
	movq	_XPC_C_CLOSEREPLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%r14), %eax
	sete	%dil
	callq	_DBUG_ON
	movq	_XPC_C_RCLOSEREPLY@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	andl	(%r14), %edi
	callq	_DBUG_ON
	xorl	%edi, %edi
	movq	_XPC_CHCTL_CLOSEREPLY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	andl	%r15d, %eax
	sete	%dil
	callq	_DBUG_ON
	movl	(%rbx), %eax
	notl	%eax
	andl	%eax, %r15d
	movl	(%r12), %eax
	orl	%eax, (%r14)
	movq	%r14, %rdi
	leaq	-48(%rbp), %rsi
	callq	_xpc_process_disconnect
	movq	_XPC_C_DISCONNECTED@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	xorl	%edi, %edi
	andl	(%r14), %eax
	sete	%dil
	callq	_DBUG_ON
	movq	%r12, %rcx
	jmp	LBB0_1
LBB0_6:
	movq	_XPC_C_DISCONNECTED@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_9
## %bb.7:
	movq	_XPC_CHCTL_OPENREQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r15d, %eax
	je	LBB0_26
## %bb.8:
	movq	%r14, %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, (%r14)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %rdi
	callq	_atomic_inc
	movq	_XPC_C_CONNECTING@GOTPCREL(%rip), %rcx
	movq	_XPC_C_ROPENREQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	orl	(%r14), %eax
	movl	%eax, (%r14)
	movq	_XPC_C_RCLOSEREQUEST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_9:
	orl	%ecx, %eax
	movq	_XPC_CHCTL_OPENREQUEST@GOTPCREL(%rip), %rcx
	movq	_XPC_CHCTL_OPENREPLY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_XPC_CHCTL_OPENCOMPLETE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	notl	%edx
	andl	%edx, %r15d
	movl	%eax, (%r14)
	movq	_XPC_C_DISCONNECTING@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_23
## %bb.10:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_xpc_process_disconnect
	movq	_XPC_C_DISCONNECTED@GOTPCREL(%rip), %rcx
LBB0_11:
	movq	_XPC_CHCTL_CLOSEREPLY@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_18
## %bb.12:
	movl	(%rbx), %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edx
	movslq	4(%rax), %rcx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	(%r14), %eax
	movq	_XPC_C_DISCONNECTED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.13:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_XPC_P_AS_DEACTIVATING@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_DBUG_ON
	jmp	LBB0_56
LBB0_14:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	orl	%r15d, 4(%rax,%rcx)
	jmp	LBB0_56
LBB0_15:
	xorl	%edi, %edi
	movq	_XPC_C_CLOSEREQUEST@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	sete	%dil
	callq	_DBUG_ON
	movl	(%r14), %eax
	movq	_XPC_C_RCLOSEREQUEST@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_28
## %bb.16:
	movq	_XPC_C_RCLOSEREPLY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r14)
	movq	_XPC_C_CLOSEREPLY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	_XPC_C_DISCONNECTED@GOTPCREL(%rip), %rcx
	je	LBB0_18
## %bb.17:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_xpc_process_disconnect
	movq	_XPC_C_DISCONNECTED@GOTPCREL(%rip), %rcx
LBB0_18:
	movq	_XPC_CHCTL_OPENREQUEST@GOTPCREL(%rip), %r12
	testl	%r15d, (%r12)
	je	LBB0_38
## %bb.19:
	movq	_xpc_chan@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	8(%rax,%rcx,8), %edx
	movq	16(%rax,%rcx,8), %rcx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %r8d
	movl	4(%rax), %r9d
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_XPC_P_AS_DEACTIVATING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_56
## %bb.20:
	movl	(%r14), %eax
	movq	_XPC_C_ROPENREQUEST@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	jne	LBB0_56
## %bb.21:
	movq	_XPC_C_WDISCONNECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_XPC_C_DISCONNECTING@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	testl	%eax, %ecx
	je	LBB0_31
## %bb.22:
	movl	(%r12), %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	orl	%eax, 4(%rcx,%rdx)
	jmp	LBB0_56
LBB0_23:
	movl	(%r13), %eax
	movq	_xpSuccess@GOTPCREL(%rip), %rcx
	movq	_xpUnknownReason@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_xpUnregistering@GOTPCREL(%rip), %rdi
	movl	%eax, %esi
	cmpl	(%rdi), %eax
	jne	LBB0_25
## %bb.24:
	movq	_xpOtherUnregistering@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
LBB0_25:
	cmpl	%edx, %eax
	cmoval	%edx, %esi
	cmpl	(%rcx), %eax
	cmovbel	%edx, %esi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_XPC_DISCONNECT_CHANNEL
	movq	_XPC_CHCTL_CLOSEREPLY@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_DBUG_ON
	jmp	LBB0_56
LBB0_26:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rcx
	movq	-104(%rbp), %r15                ## 8-byte Reload
	testl	%eax, (%rcx,%r15,4)
	je	LBB0_56
## %bb.27:
	xorl	%edi, %edi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$0, 4(%rax,%rcx)
	setne	%dil
	callq	_DBUG_ON
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	leaq	12(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	_XPC_CHCTL_CLOSEREQUEST@GOTPCREL(%rip), %rax
	jmp	LBB0_30
LBB0_28:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	_XPC_CHCTL_CLOSEREQUEST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-104(%rbp), %r15                ## 8-byte Reload
	testl	%ecx, (%rax,%r15,4)
	je	LBB0_56
## %bb.29:
	xorl	%edi, %edi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$0, 4(%rax,%rcx)
	setne	%dil
	callq	_DBUG_ON
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	leaq	12(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	_XPC_CHCTL_CLOSEREPLY@GOTPCREL(%rip), %rax
LBB0_30:
	movl	(%rax), %eax
	movq	16(%rbx), %rcx
	orl	%eax, (%rcx,%r15,4)
	movq	%r14, %rdi
	callq	_spin_unlock
	jmp	LBB0_56
LBB0_31:
	movq	_XPC_C_OPENREQUEST@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movq	_XPC_C_DISCONNECTED@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	leaq	(%rdx,%rsi,8), %r13
	addq	$8, %r13
	xorl	%edi, %edi
	testl	%eax, %ecx
	sete	%dil
	callq	_DBUG_ON
	movq	_XPC_C_ROPENREPLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	(%rbx), %edi
	movq	_XPC_C_OPENREPLY@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_XPC_C_CONNECTED@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	andl	(%r14), %edi
	callq	_DBUG_ON
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_56
## %bb.32:
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rcx,%rdx,8), %rcx
	addq	$16, %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_56
## %bb.33:
	movq	_XPC_C_CONNECTING@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rbx), %edx
	orl	(%r14), %edx
	movl	%edx, (%r14)
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rcx, 8(%rsi,%rdi)
	leaq	(%rsi,%rdi), %rcx
	addq	$16, %rcx
	testl	%edx, (%r12)
	je	LBB0_36
## %bb.34:
	cmpq	(%rcx), %rax
	je	LBB0_37
## %bb.35:
	movq	_xpUnequalMsgSizes@GOTPCREL(%rip), %rax
	jmp	LBB0_53
LBB0_36:
	movq	%rax, (%rcx)
	movq	%r14, %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, (%r14)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rdi
	callq	_atomic_inc
LBB0_37:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_xpc_process_connect
	movq	_XPC_C_DISCONNECTED@GOTPCREL(%rip), %rcx
LBB0_38:
	movq	_XPC_CHCTL_OPENREPLY@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	movq	_xpc_chan@GOTPCREL(%rip), %rdx
	je	LBB0_47
## %bb.39:
	movl	(%rdx), %edi
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	24(%rax,%rsi,8), %edx
	movq	%rcx, %rbx
	movq	16(%rax,%rsi,8), %rcx
	movq	32(%rax,%rsi,8), %r8
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %r9d
	movl	4(%rax), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	(%r14), %eax
	movl	(%rbx), %ecx
	movq	_XPC_C_DISCONNECTING@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	testl	%eax, %ecx
	jne	LBB0_56
## %bb.40:
	movq	_XPC_C_OPENREQUEST@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_52
## %bb.41:
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rcx,%rdx,8), %rbx
	addq	$24, %rbx
	movq	_XPC_C_ROPENREQUEST@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	andl	(%rcx), %eax
	sete	%dil
	callq	_DBUG_ON
	movq	_XPC_C_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%r14), %edi
	callq	_DBUG_ON
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	sete	%dil
	callq	_DBUG_ON
	xorl	%edi, %edi
	cmpq	$0, -8(%rbx)
	sete	%dil
	callq	_DBUG_ON
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	sete	%dil
	callq	_DBUG_ON
	movq	_xpc_arch_ops@GOTPCREL(%rip), %rax
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	*(%rax)
	movq	_xpSuccess@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_54
## %bb.42:
	movq	_XPC_C_ROPENREPLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	movq	-8(%rbx), %rdx
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	8(%rsi,%rdi), %rcx
	cmpq	%rcx, %rdx
	jge	LBB0_44
## %bb.43:
	leaq	(%rsi,%rdi), %r12
	addq	$8, %r12
	movq	_xpc_chan@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %r8d
	movl	4(%rax), %r9d
	leaq	L_.str.4(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	-8(%rbx), %rax
	movq	%rax, (%r12)
LBB0_44:
	movq	8(%rbx), %rdx
	movq	24(%rsi,%rdi), %rcx
	cmpq	%rcx, %rdx
	jge	LBB0_46
## %bb.45:
	leaq	(%rsi,%rdi), %r12
	addq	$24, %r12
	movq	_xpc_chan@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %r8d
	movl	4(%rax), %r9d
	leaq	L_.str.5(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	8(%rbx), %rax
	movq	%rax, (%r12)
LBB0_46:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_xpc_process_connect
	movq	_XPC_C_DISCONNECTED@GOTPCREL(%rip), %rcx
	movq	_xpc_chan@GOTPCREL(%rip), %rdx
LBB0_47:
	movq	_XPC_CHCTL_OPENCOMPLETE@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_56
## %bb.48:
	movl	(%rdx), %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edx
	movq	%rcx, %rbx
	movslq	4(%rax), %rcx
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	(%r14), %eax
	movl	(%rbx), %ecx
	movq	_XPC_C_DISCONNECTING@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	testl	%eax, %ecx
	jne	LBB0_56
## %bb.49:
	movq	_XPC_C_OPENREQUEST@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_52
## %bb.50:
	movq	_XPC_C_OPENREPLY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_52
## %bb.51:
	movq	_XPC_C_ROPENREQUEST@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	andl	(%rcx), %eax
	sete	%dil
	callq	_DBUG_ON
	movq	_XPC_C_ROPENREPLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%r14), %eax
	sete	%dil
	callq	_DBUG_ON
	movq	_XPC_C_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%r14), %eax
	sete	%dil
	callq	_DBUG_ON
	movq	_XPC_C_ROPENCOMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_xpc_process_connect
	movq	-48(%rbp), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_xpc_create_kthreads
	jmp	LBB0_57
LBB0_52:
	movq	_xpOpenCloseError@GOTPCREL(%rip), %rax
LBB0_53:
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	jmp	LBB0_55
LBB0_54:
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
LBB0_55:
	callq	_XPC_DISCONNECT_CHANNEL
LBB0_56:
	movq	-48(%rbp), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
LBB0_57:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XPC_C_DISCONNECTED,4,2         ## @XPC_C_DISCONNECTED
	.comm	_XPC_C_WDISCONNECT,4,2          ## @XPC_C_WDISCONNECT
	.comm	_XPC_CHCTL_CLOSEREQUEST,4,2     ## @XPC_CHCTL_CLOSEREQUEST
	.comm	_xpc_chan,4,2                   ## @xpc_chan
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"XPC_CHCTL_CLOSEREQUEST (reason=%d) received from partid=%d, channel=%d\n"

	.comm	_XPC_C_RCLOSEREQUEST,4,2        ## @XPC_C_RCLOSEREQUEST
	.comm	_XPC_C_DISCONNECTING,4,2        ## @XPC_C_DISCONNECTING
	.comm	_XPC_C_CLOSEREQUEST,4,2         ## @XPC_C_CLOSEREQUEST
	.comm	_XPC_C_CLOSEREPLY,4,2           ## @XPC_C_CLOSEREPLY
	.comm	_XPC_C_RCLOSEREPLY,4,2          ## @XPC_C_RCLOSEREPLY
	.comm	_XPC_CHCTL_CLOSEREPLY,4,2       ## @XPC_CHCTL_CLOSEREPLY
	.comm	_XPC_CHCTL_OPENREQUEST,4,2      ## @XPC_CHCTL_OPENREQUEST
	.comm	_XPC_C_CONNECTING,4,2           ## @XPC_C_CONNECTING
	.comm	_XPC_C_ROPENREQUEST,4,2         ## @XPC_C_ROPENREQUEST
	.comm	_XPC_CHCTL_OPENREPLY,4,2        ## @XPC_CHCTL_OPENREPLY
	.comm	_XPC_CHCTL_OPENCOMPLETE,4,2     ## @XPC_CHCTL_OPENCOMPLETE
	.comm	_xpSuccess,4,2                  ## @xpSuccess
	.comm	_xpUnknownReason,4,2            ## @xpUnknownReason
	.comm	_xpUnregistering,4,2            ## @xpUnregistering
	.comm	_xpOtherUnregistering,4,2       ## @xpOtherUnregistering
L_.str.1:                               ## @.str.1
	.asciz	"XPC_CHCTL_CLOSEREPLY received from partid=%d, channel=%d\n"

	.comm	_XPC_P_AS_DEACTIVATING,8,3      ## @XPC_P_AS_DEACTIVATING
L_.str.2:                               ## @.str.2
	.asciz	"XPC_CHCTL_OPENREQUEST (entry_size=%d, local_nentries=%d) received from partid=%d, channel=%d\n"

	.comm	_XPC_C_OPENREQUEST,4,2          ## @XPC_C_OPENREQUEST
	.comm	_XPC_C_ROPENREPLY,4,2           ## @XPC_C_ROPENREPLY
	.comm	_XPC_C_OPENREPLY,4,2            ## @XPC_C_OPENREPLY
	.comm	_XPC_C_CONNECTED,4,2            ## @XPC_C_CONNECTED
	.comm	_xpUnequalMsgSizes,4,2          ## @xpUnequalMsgSizes
L_.str.3:                               ## @.str.3
	.asciz	"XPC_CHCTL_OPENREPLY (local_msgqueue_pa=0x%lx, local_nentries=%d, remote_nentries=%d) received from partid=%d, channel=%d\n"

	.comm	_xpOpenCloseError,4,2           ## @xpOpenCloseError
	.comm	_xpc_arch_ops,8,3               ## @xpc_arch_ops
L_.str.4:                               ## @.str.4
	.asciz	"XPC_CHCTL_OPENREPLY: new remote_nentries=%d, old remote_nentries=%d, partid=%d, channel=%d\n"

L_.str.5:                               ## @.str.5
	.asciz	"XPC_CHCTL_OPENREPLY: new local_nentries=%d, old local_nentries=%d, partid=%d, channel=%d\n"

L_.str.6:                               ## @.str.6
	.asciz	"XPC_CHCTL_OPENCOMPLETE received from partid=%d, channel=%d\n"

	.comm	_XPC_C_ROPENCOMPLETE,4,2        ## @XPC_C_ROPENCOMPLETE
	.no_dead_strip	_xpc_process_openclose_chctl_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xpc_process_openclose_chctl_flags
_xpc_process_openclose_chctl_flags:     ; @xpc_process_openclose_chctl_flags
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x21, x2
	mov	x23, x1
	sxtw	x8, w23
	stp	x8, x0, [sp, #48]               ; 16-byte Folded Spill
	ldp	x9, x19, [x0, #24]
	mov	w8, #48
	str	x9, [sp, #40]                   ; 8-byte Folded Spill
	smaddl	x20, w1, w8, x9
	add	x0, x20, #32
	str	x0, [sp, #64]                   ; 8-byte Folded Spill
	bl	_spin_lock_irqsave
	mov	w8, #40
	str	x19, [sp, #32]                  ; 8-byte Folded Spill
	smaddl	x28, w23, w8, x19
	add	x10, x20, #40
	add	x11, x20, #36
Lloh0:
	adrp	x9, _XPC_C_DISCONNECTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XPC_C_DISCONNECTED@GOTPAGEOFF]
Lloh2:
	adrp	x12, _xpc_chan@GOTPAGE
Lloh3:
	ldr	x12, [x12, _xpc_chan@GOTPAGEOFF]
Lloh4:
	adrp	x23, l_.str@PAGE
Lloh5:
	add	x23, x23, l_.str@PAGEOFF
Lloh6:
	adrp	x24, _XPC_C_RCLOSEREPLY@GOTPAGE
Lloh7:
	ldr	x24, [x24, _XPC_C_RCLOSEREPLY@GOTPAGEOFF]
Lloh8:
	adrp	x22, _XPC_CHCTL_CLOSEREPLY@GOTPAGE
Lloh9:
	ldr	x22, [x22, _XPC_CHCTL_CLOSEREPLY@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	mov	x26, x9
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh10:
	adrp	x9, _XPC_C_WDISCONNECT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _XPC_C_WDISCONNECT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_15
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
Lloh13:
	adrp	x8, _XPC_CHCTL_CLOSEREQUEST@GOTPAGE
Lloh14:
	ldr	x8, [x8, _XPC_CHCTL_CLOSEREQUEST@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x27, x12
	ldr	w0, [x12]
	ldr	w2, [x28]
	mov	x19, x10
	ldrsw	x3, [x10]
	mov	x25, x11
	ldr	w8, [x11]
	str	x8, [sp]
	mov	x1, x23
	bl	_dev_dbg
	ldr	w8, [x20]
Lloh16:
	adrp	x9, _XPC_C_RCLOSEREQUEST@GOTPAGE
Lloh17:
	ldr	x9, [x9, _XPC_C_RCLOSEREQUEST@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh19:
	adrp	x9, _XPC_C_DISCONNECTING@GOTPAGE
Lloh20:
	ldr	x9, [x9, _XPC_C_DISCONNECTING@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_DBUG_ON
	ldr	w8, [x20]
Lloh22:
	adrp	x9, _XPC_C_CLOSEREQUEST@GOTPAGE
Lloh23:
	ldr	x9, [x9, _XPC_C_CLOSEREQUEST@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_DBUG_ON
	ldr	w8, [x20]
Lloh25:
	adrp	x9, _XPC_C_CLOSEREPLY@GOTPAGE
Lloh26:
	ldr	x9, [x9, _XPC_C_CLOSEREPLY@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_DBUG_ON
	ldr	w8, [x20]
	ldr	w9, [x24]
	and	w0, w9, w8
	bl	_DBUG_ON
	ldr	w8, [x22]
	tst	w8, w21
	cset	w0, eq
	bl	_DBUG_ON
	ldr	w8, [x22]
	bic	w21, w21, w8
	ldr	w8, [x24]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	add	x1, sp, #72
	mov	x0, x20
	bl	_xpc_process_disconnect
	ldr	w8, [x20]
	ldr	w9, [x26]
	tst	w9, w8
	cset	w0, eq
	bl	_DBUG_ON
	mov	x9, x26
	mov	x10, x19
	mov	x11, x25
	mov	x12, x27
	b	LBB0_1
LBB0_6:
	ldr	x28, [sp, #64]                  ; 8-byte Folded Reload
	b	LBB0_12
LBB0_7:
	ldr	w10, [x26]
Lloh28:
	adrp	x23, _XPC_CHCTL_OPENREQUEST@GOTPAGE
Lloh29:
	ldr	x23, [x23, _XPC_CHCTL_OPENREQUEST@GOTPAGEOFF]
	tst	w10, w8
	b.eq	LBB0_10
; %bb.8:
	ldr	w8, [x23]
	tst	w8, w21
	b.eq	LBB0_25
; %bb.9:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	bl	_XPC_SET_REASON
	ldr	w8, [x26]
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	add	x0, x8, #8
	bl	_atomic_inc
Lloh30:
	adrp	x8, _XPC_C_CONNECTING@GOTPAGE
Lloh31:
	ldr	x8, [x8, _XPC_C_CONNECTING@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _XPC_C_ROPENREQUEST@GOTPAGE
Lloh34:
	ldr	x9, [x9, _XPC_C_ROPENREQUEST@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x20]
	orr	w8, w8, w9
	str	w8, [x20]
Lloh36:
	adrp	x9, _XPC_C_RCLOSEREQUEST@GOTPAGE
Lloh37:
	ldr	x9, [x9, _XPC_C_RCLOSEREQUEST@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
LBB0_10:
Lloh39:
	adrp	x12, _XPC_C_DISCONNECTING@GOTPAGE
Lloh40:
	ldr	x12, [x12, _XPC_C_DISCONNECTING@GOTPAGEOFF]
Lloh41:
	adrp	x10, _XPC_CHCTL_OPENREPLY@GOTPAGE
Lloh42:
	ldr	x10, [x10, _XPC_CHCTL_OPENREPLY@GOTPAGEOFF]
	ldr	w11, [x23]
Lloh43:
	ldr	w10, [x10]
	orr	w10, w10, w11
Lloh44:
	adrp	x11, _XPC_CHCTL_OPENCOMPLETE@GOTPAGE
Lloh45:
	ldr	x11, [x11, _XPC_CHCTL_OPENCOMPLETE@GOTPAGEOFF]
Lloh46:
	ldr	w11, [x11]
	orr	w10, w10, w11
	bic	w21, w21, w10
	orr	w8, w8, w9
	str	w8, [x20]
Lloh47:
	ldr	w9, [x12]
	tst	w9, w8
	b.eq	LBB0_24
; %bb.11:
	add	x1, sp, #72
	mov	x0, x20
	bl	_xpc_process_disconnect
	ldr	x28, [sp, #64]                  ; 8-byte Folded Reload
	mov	x10, x19
	mov	x11, x25
	mov	x12, x27
LBB0_12:
	ldr	w8, [x22]
	tst	w8, w21
	b.eq	LBB0_19
; %bb.13:
	ldr	w0, [x12]
	ldr	w2, [x10]
	ldrsw	x3, [x11]
Lloh48:
	adrp	x1, l_.str.1@PAGE
Lloh49:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x19, x10
	mov	x23, x11
	mov	x25, x12
	bl	_dev_dbg
	ldr	w8, [x20]
	mov	x9, x26
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.14:
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
Lloh50:
	adrp	x9, _XPC_P_AS_DEACTIVATING@GOTPAGE
Lloh51:
	ldr	x9, [x9, _XPC_P_AS_DEACTIVATING@GOTPAGEOFF]
Lloh52:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_DBUG_ON
	b	LBB0_54
LBB0_15:
	mov	w8, #48
	ldp	x10, x9, [sp, #40]              ; 16-byte Folded Reload
	madd	x8, x9, x8, x10
	ldr	w9, [x8, #4]
	orr	w9, w9, w21
	str	w9, [x8, #4]
	ldr	x28, [sp, #64]                  ; 8-byte Folded Reload
	b	LBB0_54
LBB0_16:
Lloh53:
	adrp	x9, _XPC_C_CLOSEREQUEST@GOTPAGE
Lloh54:
	ldr	x9, [x9, _XPC_C_CLOSEREQUEST@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_DBUG_ON
	ldr	w8, [x20]
Lloh56:
	adrp	x9, _XPC_C_RCLOSEREQUEST@GOTPAGE
Lloh57:
	ldr	x9, [x9, _XPC_C_RCLOSEREQUEST@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_27
; %bb.17:
	ldr	w9, [x24]
	orr	w8, w9, w8
	str	w8, [x20]
Lloh59:
	adrp	x9, _XPC_C_CLOSEREPLY@GOTPAGE
Lloh60:
	ldr	x9, [x9, _XPC_C_CLOSEREPLY@GOTPAGEOFF]
Lloh61:
	ldr	w9, [x9]
	tst	w9, w8
	mov	x10, x19
	mov	x11, x23
	mov	x12, x25
	b.eq	LBB0_19
; %bb.18:
	add	x1, sp, #72
	mov	x0, x20
	bl	_xpc_process_disconnect
	mov	x12, x25
	mov	x11, x23
	mov	x10, x19
LBB0_19:
Lloh62:
	adrp	x24, _XPC_CHCTL_OPENREQUEST@GOTPAGE
Lloh63:
	ldr	x24, [x24, _XPC_CHCTL_OPENREQUEST@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w21
	ldr	x25, [sp, #48]                  ; 8-byte Folded Reload
	b.eq	LBB0_37
; %bb.20:
	mov	w8, #40
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	madd	x22, x25, x8, x9
	ldr	w2, [x22, #8]!
	ldr	w0, [x12]
	mov	x19, x22
	ldr	x3, [x19, #8]!
	str	x10, [sp, #64]                  ; 8-byte Folded Spill
	ldr	w8, [x10]
	mov	x27, x11
	ldr	w9, [x11]
	stp	x8, x9, [sp]
Lloh64:
	adrp	x1, l_.str.2@PAGE
Lloh65:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
Lloh66:
	adrp	x9, _XPC_P_AS_DEACTIVATING@GOTPAGE
Lloh67:
	ldr	x9, [x9, _XPC_P_AS_DEACTIVATING@GOTPAGEOFF]
Lloh68:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_54
; %bb.21:
	ldr	w8, [x20]
Lloh69:
	adrp	x23, _XPC_C_ROPENREQUEST@GOTPAGE
Lloh70:
	ldr	x23, [x23, _XPC_C_ROPENREQUEST@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_54
; %bb.22:
Lloh71:
	adrp	x9, _XPC_C_DISCONNECTING@GOTPAGE
Lloh72:
	ldr	x9, [x9, _XPC_C_DISCONNECTING@GOTPAGEOFF]
Lloh73:
	ldr	w9, [x9]
Lloh74:
	adrp	x10, _XPC_C_WDISCONNECT@GOTPAGE
Lloh75:
	ldr	x10, [x10, _XPC_C_WDISCONNECT@GOTPAGEOFF]
Lloh76:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_30
; %bb.23:
	ldr	w8, [x24]
	mov	w9, #48
	ldr	x10, [sp, #40]                  ; 8-byte Folded Reload
	madd	x9, x25, x9, x10
	ldr	w10, [x9, #4]
	orr	w8, w10, w8
	str	w8, [x9, #4]
	b	LBB0_54
LBB0_24:
	ldr	w8, [x28]
Lloh77:
	adrp	x9, _xpSuccess@GOTPAGE
Lloh78:
	ldr	x9, [x9, _xpSuccess@GOTPAGEOFF]
Lloh79:
	ldr	w9, [x9]
Lloh80:
	adrp	x10, _xpUnknownReason@GOTPAGE
Lloh81:
	ldr	x10, [x10, _xpUnknownReason@GOTPAGEOFF]
Lloh82:
	ldr	w10, [x10]
Lloh83:
	adrp	x11, _xpUnregistering@GOTPAGE
Lloh84:
	ldr	x11, [x11, _xpUnregistering@GOTPAGEOFF]
Lloh85:
	ldr	w11, [x11]
Lloh86:
	adrp	x12, _xpOtherUnregistering@GOTPAGE
Lloh87:
	ldr	x12, [x12, _xpOtherUnregistering@GOTPAGEOFF]
Lloh88:
	ldr	w12, [x12]
	cmp	w8, w11
	csel	w11, w12, w8, eq
	cmp	w8, w10
	ccmp	w8, w9, #0, ls
	csel	w1, w10, w11, ls
	add	x2, sp, #72
	mov	x0, x20
	bl	_XPC_DISCONNECT_CHANNEL
	ldr	w8, [x22]
	and	w0, w8, w21
	bl	_DBUG_ON
	ldr	x28, [sp, #64]                  ; 8-byte Folded Reload
	b	LBB0_54
LBB0_25:
	ldp	x19, x9, [sp, #48]              ; 16-byte Folded Reload
	ldr	x9, [x9, #16]
	ldr	w9, [x9, x19, lsl #2]
	tst	w9, w8
	ldr	x28, [sp, #64]                  ; 8-byte Folded Reload
	b.eq	LBB0_54
; %bb.26:
	mov	w8, #48
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	madd	x8, x19, x8, x9
	ldr	w8, [x8, #4]
	cmp	w8, #0
	cset	w0, ne
	bl	_DBUG_ON
	ldr	x21, [sp, #56]                  ; 8-byte Folded Reload
	add	x20, x21, #12
	mov	x0, x20
	bl	_spin_lock
Lloh89:
	adrp	x8, _XPC_CHCTL_CLOSEREQUEST@GOTPAGE
Lloh90:
	ldr	x8, [x8, _XPC_CHCTL_CLOSEREQUEST@GOTPAGEOFF]
Lloh91:
	ldr	w8, [x8]
	b	LBB0_29
LBB0_27:
	ldp	x19, x8, [sp, #48]              ; 16-byte Folded Reload
	ldr	x8, [x8, #16]
	ldr	w8, [x8, x19, lsl #2]
Lloh92:
	adrp	x9, _XPC_CHCTL_CLOSEREQUEST@GOTPAGE
Lloh93:
	ldr	x9, [x9, _XPC_CHCTL_CLOSEREQUEST@GOTPAGEOFF]
Lloh94:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_54
; %bb.28:
	mov	w8, #48
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	madd	x8, x19, x8, x9
	ldr	w8, [x8, #4]
	cmp	w8, #0
	cset	w0, ne
	bl	_DBUG_ON
	ldr	x21, [sp, #56]                  ; 8-byte Folded Reload
	add	x20, x21, #12
	mov	x0, x20
	bl	_spin_lock
	ldr	w8, [x22]
LBB0_29:
	ldr	x9, [x21, #16]
	lsl	x10, x19, #2
	ldr	w11, [x9, x10]
	orr	w8, w11, w8
	str	w8, [x9, x10]
	mov	x0, x20
	bl	_spin_unlock
	b	LBB0_54
LBB0_30:
	ldr	w9, [x26]
Lloh95:
	adrp	x24, _XPC_C_OPENREQUEST@GOTPAGE
Lloh96:
	ldr	x24, [x24, _XPC_C_OPENREQUEST@GOTPAGEOFF]
	ldr	w10, [x24]
	orr	w9, w10, w9
	tst	w9, w8
	cset	w0, eq
	bl	_DBUG_ON
	ldr	w8, [x20]
Lloh97:
	adrp	x9, _XPC_C_ROPENREPLY@GOTPAGE
Lloh98:
	ldr	x9, [x9, _XPC_C_ROPENREPLY@GOTPAGEOFF]
	ldr	w10, [x23]
Lloh99:
	ldr	w9, [x9]
	orr	w9, w9, w10
Lloh100:
	adrp	x10, _XPC_C_OPENREPLY@GOTPAGE
Lloh101:
	ldr	x10, [x10, _XPC_C_OPENREPLY@GOTPAGEOFF]
Lloh102:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh103:
	adrp	x10, _XPC_C_CONNECTED@GOTPAGE
Lloh104:
	ldr	x10, [x10, _XPC_C_CONNECTED@GOTPAGEOFF]
Lloh105:
	ldr	w10, [x10]
	orr	w9, w9, w10
	and	w0, w9, w8
	bl	_DBUG_ON
	ldr	x8, [x22]
	cbz	x8, LBB0_54
; %bb.31:
	ldr	x9, [x19]
	cbz	x9, LBB0_54
; %bb.32:
Lloh106:
	adrp	x10, _XPC_C_CONNECTING@GOTPAGE
Lloh107:
	ldr	x10, [x10, _XPC_C_CONNECTING@GOTPAGEOFF]
	ldr	w11, [x23]
Lloh108:
	ldr	w10, [x10]
	orr	w10, w10, w11
	ldr	w11, [x20]
	orr	w10, w10, w11
	str	w10, [x20]
	mov	w11, #48
	ldr	x12, [sp, #40]                  ; 8-byte Folded Reload
	madd	x11, x25, x11, x12
	str	x9, [x11, #8]
	ldr	w12, [x24]
	add	x9, x11, #16
	tst	w12, w10
	b.eq	LBB0_35
; %bb.33:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_36
; %bb.34:
Lloh109:
	adrp	x8, _xpUnequalMsgSizes@GOTPAGE
Lloh110:
	ldr	x8, [x8, _xpUnequalMsgSizes@GOTPAGEOFF]
Lloh111:
	ldr	w1, [x8]
	b	LBB0_53
LBB0_35:
	str	x8, [x9]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	bl	_XPC_SET_REASON
	ldr	w8, [x26]
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	add	x0, x8, #8
	bl	_atomic_inc
LBB0_36:
	add	x1, sp, #72
	mov	x0, x20
	bl	_xpc_process_connect
	ldr	x10, [sp, #64]                  ; 8-byte Folded Reload
	mov	x11, x27
Lloh112:
	adrp	x12, _xpc_chan@GOTPAGE
Lloh113:
	ldr	x12, [x12, _xpc_chan@GOTPAGEOFF]
LBB0_37:
Lloh114:
	adrp	x8, _XPC_CHCTL_OPENREPLY@GOTPAGE
Lloh115:
	ldr	x8, [x8, _XPC_CHCTL_OPENREPLY@GOTPAGEOFF]
Lloh116:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_46
; %bb.38:
	mov	w8, #40
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	madd	x23, x25, x8, x9
	ldr	w2, [x23, #24]!
	mov	x22, x23
	ldr	x3, [x22, #-8]!
	ldr	w0, [x12]
	mov	x19, x23
	ldr	x8, [x19, #8]!
	mov	x24, x10
	ldr	w9, [x10]
	mov	x27, x11
	ldr	w10, [x11]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh117:
	adrp	x1, l_.str.3@PAGE
Lloh118:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_dbg
	ldr	w8, [x20]
Lloh119:
	adrp	x9, _XPC_C_DISCONNECTING@GOTPAGE
Lloh120:
	ldr	x9, [x9, _XPC_C_DISCONNECTING@GOTPAGEOFF]
Lloh121:
	ldr	w9, [x9]
	ldr	w10, [x26]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_54
; %bb.39:
Lloh122:
	adrp	x9, _XPC_C_OPENREQUEST@GOTPAGE
Lloh123:
	ldr	x9, [x9, _XPC_C_OPENREQUEST@GOTPAGEOFF]
Lloh124:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_51
; %bb.40:
Lloh125:
	adrp	x9, _XPC_C_ROPENREQUEST@GOTPAGE
Lloh126:
	ldr	x9, [x9, _XPC_C_ROPENREQUEST@GOTPAGEOFF]
Lloh127:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_DBUG_ON
	ldr	w8, [x20]
Lloh128:
	adrp	x9, _XPC_C_CONNECTED@GOTPAGE
Lloh129:
	ldr	x9, [x9, _XPC_C_CONNECTED@GOTPAGEOFF]
Lloh130:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_DBUG_ON
	ldr	x8, [x23]
	cmp	x8, #0
	cset	w0, eq
	bl	_DBUG_ON
	ldr	x8, [x22]
	cmp	x8, #0
	cset	w0, eq
	bl	_DBUG_ON
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, eq
	bl	_DBUG_ON
Lloh131:
	adrp	x8, _xpc_arch_ops@GOTPAGE
Lloh132:
	ldr	x8, [x8, _xpc_arch_ops@GOTPAGEOFF]
Lloh133:
	ldr	x8, [x8]
	ldr	x1, [x23]
	mov	x0, x20
	blr	x8
Lloh134:
	adrp	x8, _xpSuccess@GOTPAGE
Lloh135:
	ldr	x8, [x8, _xpSuccess@GOTPAGEOFF]
Lloh136:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_52
; %bb.41:
Lloh137:
	adrp	x8, _XPC_C_ROPENREPLY@GOTPAGE
Lloh138:
	ldr	x8, [x8, _XPC_C_ROPENREPLY@GOTPAGEOFF]
Lloh139:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	ldr	x2, [x22]
	mov	w8, #48
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	madd	x23, x25, x8, x9
	ldr	x3, [x23, #8]!
	cmp	x2, x3
	b.ge	LBB0_43
; %bb.42:
Lloh140:
	adrp	x8, _xpc_chan@GOTPAGE
Lloh141:
	ldr	x8, [x8, _xpc_chan@GOTPAGEOFF]
Lloh142:
	ldr	w0, [x8]
	ldr	w8, [x24]
	ldr	w9, [x27]
	stp	x8, x9, [sp]
Lloh143:
	adrp	x1, l_.str.4@PAGE
Lloh144:
	add	x1, x1, l_.str.4@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dev_dbg
	ldr	x8, [x22]
	str	x8, [x23]
LBB0_43:
	ldr	x2, [x19]
	mov	w8, #48
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	madd	x22, x25, x8, x9
	ldr	x3, [x22, #24]!
	cmp	x2, x3
	b.ge	LBB0_45
; %bb.44:
Lloh145:
	adrp	x8, _xpc_chan@GOTPAGE
Lloh146:
	ldr	x8, [x8, _xpc_chan@GOTPAGEOFF]
Lloh147:
	ldr	w0, [x8]
	ldr	w8, [x24]
	ldr	w9, [x27]
	stp	x8, x9, [sp]
Lloh148:
	adrp	x1, l_.str.5@PAGE
Lloh149:
	add	x1, x1, l_.str.5@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dev_dbg
	ldr	x8, [x19]
	str	x8, [x22]
LBB0_45:
	add	x1, sp, #72
	mov	x0, x20
	bl	_xpc_process_connect
	mov	x10, x24
	mov	x11, x27
Lloh150:
	adrp	x12, _xpc_chan@GOTPAGE
Lloh151:
	ldr	x12, [x12, _xpc_chan@GOTPAGEOFF]
LBB0_46:
Lloh152:
	adrp	x8, _XPC_CHCTL_OPENCOMPLETE@GOTPAGE
Lloh153:
	ldr	x8, [x8, _XPC_CHCTL_OPENCOMPLETE@GOTPAGEOFF]
Lloh154:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_54
; %bb.47:
	ldr	w0, [x12]
	ldr	w2, [x10]
	ldrsw	x3, [x11]
Lloh155:
	adrp	x1, l_.str.6@PAGE
Lloh156:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_dbg
	ldr	w8, [x20]
Lloh157:
	adrp	x9, _XPC_C_DISCONNECTING@GOTPAGE
Lloh158:
	ldr	x9, [x9, _XPC_C_DISCONNECTING@GOTPAGEOFF]
Lloh159:
	ldr	w9, [x9]
	ldr	w10, [x26]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_54
; %bb.48:
Lloh160:
	adrp	x9, _XPC_C_OPENREQUEST@GOTPAGE
Lloh161:
	ldr	x9, [x9, _XPC_C_OPENREQUEST@GOTPAGEOFF]
Lloh162:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_51
; %bb.49:
Lloh163:
	adrp	x9, _XPC_C_OPENREPLY@GOTPAGE
Lloh164:
	ldr	x9, [x9, _XPC_C_OPENREPLY@GOTPAGEOFF]
Lloh165:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_51
; %bb.50:
Lloh166:
	adrp	x9, _XPC_C_ROPENREQUEST@GOTPAGE
Lloh167:
	ldr	x9, [x9, _XPC_C_ROPENREQUEST@GOTPAGEOFF]
Lloh168:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_DBUG_ON
	ldr	w8, [x20]
Lloh169:
	adrp	x9, _XPC_C_ROPENREPLY@GOTPAGE
Lloh170:
	ldr	x9, [x9, _XPC_C_ROPENREPLY@GOTPAGEOFF]
Lloh171:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_DBUG_ON
	ldr	w8, [x20]
Lloh172:
	adrp	x9, _XPC_C_CONNECTED@GOTPAGE
Lloh173:
	ldr	x9, [x9, _XPC_C_CONNECTED@GOTPAGEOFF]
Lloh174:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_DBUG_ON
Lloh175:
	adrp	x8, _XPC_C_ROPENCOMPLETE@GOTPAGE
Lloh176:
	ldr	x8, [x8, _XPC_C_ROPENCOMPLETE@GOTPAGEOFF]
Lloh177:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	add	x1, sp, #72
	mov	x0, x20
	bl	_xpc_process_connect
	ldr	x1, [sp, #72]
	mov	x0, x28
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	mov	w1, #1
	mov	w2, #0
	bl	_xpc_create_kthreads
	b	LBB0_55
LBB0_51:
Lloh178:
	adrp	x8, _xpOpenCloseError@GOTPAGE
Lloh179:
	ldr	x8, [x8, _xpOpenCloseError@GOTPAGEOFF]
Lloh180:
	ldr	w1, [x8]
	b	LBB0_53
LBB0_52:
	mov	x1, x0
LBB0_53:
	add	x2, sp, #72
	mov	x0, x20
	bl	_XPC_DISCONNECT_CHANNEL
LBB0_54:
	ldr	x1, [sp, #72]
	mov	x0, x28
	bl	_spin_unlock_irqrestore
LBB0_55:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGot	Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh109, Lloh110, Lloh111
	.loh AdrpLdrGot	Lloh112, Lloh113
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.loh AdrpLdrGotLdr	Lloh119, Lloh120, Lloh121
	.loh AdrpAdd	Lloh117, Lloh118
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.loh AdrpLdrGotLdr	Lloh134, Lloh135, Lloh136
	.loh AdrpLdrGotLdr	Lloh131, Lloh132, Lloh133
	.loh AdrpLdrGotLdr	Lloh128, Lloh129, Lloh130
	.loh AdrpLdrGotLdr	Lloh125, Lloh126, Lloh127
	.loh AdrpLdrGotLdr	Lloh137, Lloh138, Lloh139
	.loh AdrpAdd	Lloh143, Lloh144
	.loh AdrpLdrGotLdr	Lloh140, Lloh141, Lloh142
	.loh AdrpAdd	Lloh148, Lloh149
	.loh AdrpLdrGotLdr	Lloh145, Lloh146, Lloh147
	.loh AdrpLdrGot	Lloh150, Lloh151
	.loh AdrpLdrGotLdr	Lloh152, Lloh153, Lloh154
	.loh AdrpLdrGotLdr	Lloh157, Lloh158, Lloh159
	.loh AdrpAdd	Lloh155, Lloh156
	.loh AdrpLdrGotLdr	Lloh160, Lloh161, Lloh162
	.loh AdrpLdrGotLdr	Lloh163, Lloh164, Lloh165
	.loh AdrpLdrGotLdr	Lloh175, Lloh176, Lloh177
	.loh AdrpLdrGotLdr	Lloh172, Lloh173, Lloh174
	.loh AdrpLdrGotLdr	Lloh169, Lloh170, Lloh171
	.loh AdrpLdrGotLdr	Lloh166, Lloh167, Lloh168
	.loh AdrpLdrGotLdr	Lloh178, Lloh179, Lloh180
	.cfi_endproc
                                        ; -- End function
	.comm	_XPC_C_DISCONNECTED,4,2         ; @XPC_C_DISCONNECTED
	.comm	_XPC_C_WDISCONNECT,4,2          ; @XPC_C_WDISCONNECT
	.comm	_XPC_CHCTL_CLOSEREQUEST,4,2     ; @XPC_CHCTL_CLOSEREQUEST
	.comm	_xpc_chan,4,2                   ; @xpc_chan
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"XPC_CHCTL_CLOSEREQUEST (reason=%d) received from partid=%d, channel=%d\n"

	.comm	_XPC_C_RCLOSEREQUEST,4,2        ; @XPC_C_RCLOSEREQUEST
	.comm	_XPC_C_DISCONNECTING,4,2        ; @XPC_C_DISCONNECTING
	.comm	_XPC_C_CLOSEREQUEST,4,2         ; @XPC_C_CLOSEREQUEST
	.comm	_XPC_C_CLOSEREPLY,4,2           ; @XPC_C_CLOSEREPLY
	.comm	_XPC_C_RCLOSEREPLY,4,2          ; @XPC_C_RCLOSEREPLY
	.comm	_XPC_CHCTL_CLOSEREPLY,4,2       ; @XPC_CHCTL_CLOSEREPLY
	.comm	_XPC_CHCTL_OPENREQUEST,4,2      ; @XPC_CHCTL_OPENREQUEST
	.comm	_XPC_C_CONNECTING,4,2           ; @XPC_C_CONNECTING
	.comm	_XPC_C_ROPENREQUEST,4,2         ; @XPC_C_ROPENREQUEST
	.comm	_XPC_CHCTL_OPENREPLY,4,2        ; @XPC_CHCTL_OPENREPLY
	.comm	_XPC_CHCTL_OPENCOMPLETE,4,2     ; @XPC_CHCTL_OPENCOMPLETE
	.comm	_xpSuccess,4,2                  ; @xpSuccess
	.comm	_xpUnknownReason,4,2            ; @xpUnknownReason
	.comm	_xpUnregistering,4,2            ; @xpUnregistering
	.comm	_xpOtherUnregistering,4,2       ; @xpOtherUnregistering
l_.str.1:                               ; @.str.1
	.asciz	"XPC_CHCTL_CLOSEREPLY received from partid=%d, channel=%d\n"

	.comm	_XPC_P_AS_DEACTIVATING,8,3      ; @XPC_P_AS_DEACTIVATING
l_.str.2:                               ; @.str.2
	.asciz	"XPC_CHCTL_OPENREQUEST (entry_size=%d, local_nentries=%d) received from partid=%d, channel=%d\n"

	.comm	_XPC_C_OPENREQUEST,4,2          ; @XPC_C_OPENREQUEST
	.comm	_XPC_C_ROPENREPLY,4,2           ; @XPC_C_ROPENREPLY
	.comm	_XPC_C_OPENREPLY,4,2            ; @XPC_C_OPENREPLY
	.comm	_XPC_C_CONNECTED,4,2            ; @XPC_C_CONNECTED
	.comm	_xpUnequalMsgSizes,4,2          ; @xpUnequalMsgSizes
l_.str.3:                               ; @.str.3
	.asciz	"XPC_CHCTL_OPENREPLY (local_msgqueue_pa=0x%lx, local_nentries=%d, remote_nentries=%d) received from partid=%d, channel=%d\n"

	.comm	_xpOpenCloseError,4,2           ; @xpOpenCloseError
	.comm	_xpc_arch_ops,8,3               ; @xpc_arch_ops
l_.str.4:                               ; @.str.4
	.asciz	"XPC_CHCTL_OPENREPLY: new remote_nentries=%d, old remote_nentries=%d, partid=%d, channel=%d\n"

l_.str.5:                               ; @.str.5
	.asciz	"XPC_CHCTL_OPENREPLY: new local_nentries=%d, old local_nentries=%d, partid=%d, channel=%d\n"

l_.str.6:                               ; @.str.6
	.asciz	"XPC_CHCTL_OPENCOMPLETE received from partid=%d, channel=%d\n"

	.comm	_XPC_C_ROPENCOMPLETE,4,2        ; @XPC_C_ROPENCOMPLETE
	.no_dead_strip	_xpc_process_openclose_chctl_flags
.subsections_via_symbols
