	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xpc_process_disconnect
_xpc_process_disconnect:                ## @xpc_process_disconnect
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_xpc_partitions@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r12
	movq	_XPC_C_WASCONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	andl	8(%rdi), %r13d
	leaq	100(%rdi), %r15
	movq	%r15, %rdi
	callq	_lockdep_assert_held
	movl	8(%rbx), %eax
	movq	_XPC_C_DISCONNECTING@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_20
## %bb.1:
	movq	_XPC_C_CLOSEREQUEST@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	andl	(%rcx), %eax
	sete	%dil
	callq	_DBUG_ON
	leaq	108(%rbx), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jg	LBB0_20
## %bb.2:
	leaq	104(%rbx), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jle	LBB0_3
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	8(%rbx), %eax
	movq	_XPC_C_CONNECTEDCALLOUT_MADE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	setne	%cl
	movq	_XPC_C_DISCONNECTINGCALLOUT_MADE@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	sete	%al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_DBUG_ON
	shlq	$5, %r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r12), %rax
	movq	_XPC_P_AS_DEACTIVATING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_xpc_arch_ops@GOTPCREL(%rip), %rax
	movq	(%rbx), %rdi
	callq	*24(%rax)
	testq	%rax, %rax
	jne	LBB0_20
	jmp	LBB0_9
LBB0_5:
	movl	8(%rbx), %eax
	movq	_XPC_C_RCLOSEREQUEST@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_20
## %bb.6:
	movq	_XPC_C_CLOSEREPLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	jne	LBB0_8
## %bb.7:
	orl	%eax, %ecx
	movl	%ecx, 8(%rbx)
	movq	_xpc_arch_ops@GOTPCREL(%rip), %rax
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	*16(%rax)
	movl	8(%rbx), %eax
LBB0_8:
	movq	_XPC_C_RCLOSEREPLY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_20
LBB0_9:
	leaq	96(%rbx), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_atomic_read
	testq	%rax, %rax
	jle	LBB0_11
## %bb.10:
	movq	_xpc_arch_ops@GOTPCREL(%rip), %rax
	movq	%rbx, %rdi
	callq	*8(%rax)
LBB0_11:
	movq	_XPC_C_DISCONNECTINGCALLOUT_MADE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_13
## %bb.12:
	movq	(%r14), %rsi
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	_xpDisconnected@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_xpc_disconnect_callout
	movq	(%r14), %rsi
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
LBB0_13:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_read
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_DBUG_ON
	movq	_xpc_arch_ops@GOTPCREL(%rip), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rbx)
	movups	%xmm0, 56(%rbx)
	movups	%xmm0, 72(%rbx)
	movq	$0, 88(%rbx)
	movq	_XPC_C_DISCONNECTED@GOTPCREL(%rip), %rax
	movq	_XPC_C_WDISCONNECT@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	andl	8(%rbx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 8(%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12), %rdi
	addq	$24, %rdi
	callq	_atomic_dec
	testl	%r13d, %r13d
	je	LBB0_15
## %bb.14:
	movq	_xpc_chan@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rcx
	movq	16(%rbx), %rdx
	movl	32(%rbx), %r8d
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
LBB0_15:
	movl	(%r14), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_16
## %bb.21:
	addq	$28, %rbx
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_complete                       ## TAILCALL
LBB0_16:
	cmpl	$0, 24(%rbx)
	je	LBB0_20
## %bb.17:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	leaq	(%r15,%r12), %rax
	movq	(%rax), %rax
	movq	_XPC_P_AS_DEACTIVATING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.18:
	leaq	(%r15,%r12), %r14
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movl	24(%rbx), %eax
	movq	16(%r15,%r12), %rcx
	movq	16(%rbx), %rdx
	orl	%eax, (%rcx,%rdx,4)
	movq	%r14, %rdi
	callq	_spin_unlock
LBB0_19:
	movl	$0, 24(%rbx)
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_xpc_partitions,8,3             ## @xpc_partitions
	.comm	_XPC_C_WASCONNECTED,4,2         ## @XPC_C_WASCONNECTED
	.comm	_XPC_C_DISCONNECTING,4,2        ## @XPC_C_DISCONNECTING
	.comm	_XPC_C_CLOSEREQUEST,4,2         ## @XPC_C_CLOSEREQUEST
	.comm	_XPC_C_CONNECTEDCALLOUT_MADE,4,2 ## @XPC_C_CONNECTEDCALLOUT_MADE
	.comm	_XPC_C_DISCONNECTINGCALLOUT_MADE,4,2 ## @XPC_C_DISCONNECTINGCALLOUT_MADE
	.comm	_XPC_P_AS_DEACTIVATING,8,3      ## @XPC_P_AS_DEACTIVATING
	.comm	_xpc_arch_ops,32,3              ## @xpc_arch_ops
	.comm	_XPC_C_RCLOSEREQUEST,4,2        ## @XPC_C_RCLOSEREQUEST
	.comm	_XPC_C_CLOSEREPLY,4,2           ## @XPC_C_CLOSEREPLY
	.comm	_XPC_C_RCLOSEREPLY,4,2          ## @XPC_C_RCLOSEREPLY
	.comm	_xpDisconnected,4,2             ## @xpDisconnected
	.comm	_XPC_C_DISCONNECTED,4,2         ## @XPC_C_DISCONNECTED
	.comm	_XPC_C_WDISCONNECT,4,2          ## @XPC_C_WDISCONNECT
	.comm	_xpc_chan,4,2                   ## @xpc_chan
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"channel %d to partition %d disconnected, reason=%d\n"

	.no_dead_strip	_xpc_process_disconnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xpc_process_disconnect
_xpc_process_disconnect:                ; @xpc_process_disconnect
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _xpc_partitions@GOTPAGE
Lloh1:
	ldr	x8, [x8, _xpc_partitions@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	ldr	x24, [x0]
	ldr	w27, [x0, #8]
Lloh3:
	adrp	x8, _XPC_C_WASCONNECTED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XPC_C_WASCONNECTED@GOTPAGEOFF]
Lloh5:
	ldr	w28, [x8]
	add	x21, x0, #100
	mov	x0, x21
	bl	_lockdep_assert_held
	ldr	w8, [x19, #8]
Lloh6:
	adrp	x9, _XPC_C_DISCONNECTING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _XPC_C_DISCONNECTING@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
Lloh9:
	adrp	x9, _XPC_C_CLOSEREQUEST@GOTPAGE
Lloh10:
	ldr	x9, [x9, _XPC_C_CLOSEREQUEST@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_DBUG_ON
	add	x0, x19, #108
	bl	_atomic_read
	cmp	x0, #0
	b.gt	LBB0_3
; %bb.2:
	add	x0, x19, #104
	bl	_atomic_read
	cmp	x0, #0
	b.le	LBB0_4
LBB0_3:
	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
LBB0_4:
	ldr	w8, [x19, #8]
Lloh12:
	adrp	x9, _XPC_C_CONNECTEDCALLOUT_MADE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _XPC_C_CONNECTEDCALLOUT_MADE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w9, ne
Lloh15:
	adrp	x26, _XPC_C_DISCONNECTINGCALLOUT_MADE@GOTPAGE
Lloh16:
	ldr	x26, [x26, _XPC_C_DISCONNECTINGCALLOUT_MADE@GOTPAGEOFF]
	ldr	w10, [x26]
	tst	w10, w8
	cset	w8, eq
	and	w0, w9, w8
	bl	_DBUG_ON
	add	x25, x23, x24, lsl #5
	ldr	x8, [x25]
Lloh17:
	adrp	x9, _XPC_P_AS_DEACTIVATING@GOTPAGE
Lloh18:
	ldr	x9, [x9, _XPC_P_AS_DEACTIVATING@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
Lloh20:
	adrp	x8, _xpc_arch_ops@GOTPAGE
Lloh21:
	ldr	x8, [x8, _xpc_arch_ops@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8, #24]
	ldr	x0, [x19]
	blr	x8
	cbnz	x0, LBB0_3
	b	LBB0_10
LBB0_6:
	ldr	w8, [x19, #8]
Lloh23:
	adrp	x9, _XPC_C_RCLOSEREQUEST@GOTPAGE
Lloh24:
	ldr	x9, [x9, _XPC_C_RCLOSEREQUEST@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.7:
Lloh26:
	adrp	x9, _XPC_C_CLOSEREPLY@GOTPAGE
Lloh27:
	ldr	x9, [x9, _XPC_C_CLOSEREPLY@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_9
; %bb.8:
	orr	w8, w9, w8
	str	w8, [x19, #8]
Lloh29:
	adrp	x8, _xpc_arch_ops@GOTPAGE
Lloh30:
	ldr	x8, [x8, _xpc_arch_ops@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8, #16]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	ldr	w8, [x19, #8]
LBB0_9:
Lloh32:
	adrp	x9, _XPC_C_RCLOSEREPLY@GOTPAGE
Lloh33:
	ldr	x9, [x9, _XPC_C_RCLOSEREPLY@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_10:
	add	x22, x19, #96
	mov	x0, x22
	bl	_atomic_read
	cmp	x0, #1
	b.lt	LBB0_12
; %bb.11:
Lloh35:
	adrp	x8, _xpc_arch_ops@GOTPAGE
Lloh36:
	ldr	x8, [x8, _xpc_arch_ops@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8, #8]
	mov	x0, x19
	blr	x8
LBB0_12:
	and	w27, w28, w27
	ldr	w8, [x19, #8]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
	ldr	x1, [x20]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
Lloh38:
	adrp	x8, _xpDisconnected@GOTPAGE
Lloh39:
	ldr	x8, [x8, _xpDisconnected@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_xpc_disconnect_callout
	ldr	x1, [x20]
	mov	x0, x21
	bl	_spin_lock_irqsave
LBB0_14:
	mov	x0, x22
	bl	_atomic_read
	cmp	x0, #0
	cset	w0, ne
	bl	_DBUG_ON
Lloh41:
	adrp	x8, _xpc_arch_ops@GOTPAGE
Lloh42:
	ldr	x8, [x8, _xpc_arch_ops@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	movi.2d	v0, #0000000000000000
	stur	q0, [x19, #40]
	stur	q0, [x19, #56]
	stur	q0, [x19, #72]
	str	xzr, [x19, #88]
Lloh44:
	adrp	x8, _XPC_C_DISCONNECTED@GOTPAGE
Lloh45:
	ldr	x8, [x8, _XPC_C_DISCONNECTED@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
Lloh47:
	adrp	x20, _XPC_C_WDISCONNECT@GOTPAGE
Lloh48:
	ldr	x20, [x20, _XPC_C_WDISCONNECT@GOTPAGEOFF]
	ldr	w10, [x20]
	and	w9, w10, w9
	orr	w8, w9, w8
	str	w8, [x19, #8]
	add	x8, x23, x24, lsl #5
	add	x0, x8, #24
	bl	_atomic_dec
	cbz	w27, LBB0_16
; %bb.15:
Lloh49:
	adrp	x8, _xpc_chan@GOTPAGE
Lloh50:
	ldr	x8, [x8, _xpc_chan@GOTPAGEOFF]
Lloh51:
	ldr	w0, [x8]
	ldr	x2, [x19, #16]
	ldr	x3, [x19]
	ldr	w4, [x19, #32]
Lloh52:
	adrp	x1, l_.str@PAGE
Lloh53:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
LBB0_16:
	ldr	w8, [x19, #8]
	ldr	w9, [x20]
	tst	w9, w8
Lloh54:
	adrp	x9, _XPC_P_AS_DEACTIVATING@GOTPAGE
Lloh55:
	ldr	x9, [x9, _XPC_P_AS_DEACTIVATING@GOTPAGEOFF]
	b.eq	LBB0_18
; %bb.17:
	add	x0, x19, #28
	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
	b	_complete
LBB0_18:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_3
; %bb.19:
	ldr	x8, [x25]
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_21
; %bb.20:
	add	x21, x23, x24, lsl #5
	add	x20, x21, #8
	mov	x0, x20
	bl	_spin_lock
	ldr	w8, [x19, #24]
	ldr	x9, [x21, #16]
	ldr	x10, [x19, #16]
	lsl	x10, x10, #2
	ldr	w11, [x9, x10]
	orr	w8, w11, w8
	str	w8, [x9, x10]
	mov	x0, x20
	bl	_spin_unlock
LBB0_21:
	str	wzr, [x19, #24]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_xpc_partitions,8,3             ; @xpc_partitions
	.comm	_XPC_C_WASCONNECTED,4,2         ; @XPC_C_WASCONNECTED
	.comm	_XPC_C_DISCONNECTING,4,2        ; @XPC_C_DISCONNECTING
	.comm	_XPC_C_CLOSEREQUEST,4,2         ; @XPC_C_CLOSEREQUEST
	.comm	_XPC_C_CONNECTEDCALLOUT_MADE,4,2 ; @XPC_C_CONNECTEDCALLOUT_MADE
	.comm	_XPC_C_DISCONNECTINGCALLOUT_MADE,4,2 ; @XPC_C_DISCONNECTINGCALLOUT_MADE
	.comm	_XPC_P_AS_DEACTIVATING,8,3      ; @XPC_P_AS_DEACTIVATING
	.comm	_xpc_arch_ops,32,3              ; @xpc_arch_ops
	.comm	_XPC_C_RCLOSEREQUEST,4,2        ; @XPC_C_RCLOSEREQUEST
	.comm	_XPC_C_CLOSEREPLY,4,2           ; @XPC_C_CLOSEREPLY
	.comm	_XPC_C_RCLOSEREPLY,4,2          ; @XPC_C_RCLOSEREPLY
	.comm	_xpDisconnected,4,2             ; @xpDisconnected
	.comm	_XPC_C_DISCONNECTED,4,2         ; @XPC_C_DISCONNECTED
	.comm	_XPC_C_WDISCONNECT,4,2          ; @XPC_C_WDISCONNECT
	.comm	_xpc_chan,4,2                   ; @xpc_chan
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"channel %d to partition %d disconnected, reason=%d\n"

	.no_dead_strip	_xpc_process_disconnect
.subsections_via_symbols
