	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xpc_disconnect_channel         ## -- Begin function xpc_disconnect_channel
	.p2align	4, 0x90
_xpc_disconnect_channel:                ## @xpc_disconnect_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movl	%edi, %r13d
	movl	(%rsi), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_XPC_C_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	4(%rsi), %r15
	movq	%r15, %rdi
	callq	_lockdep_assert_held
	movl	(%rbx), %eax
	movq	_XPC_C_DISCONNECTING@GOTPCREL(%rip), %r14
	movq	_XPC_C_DISCONNECTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%r14), %ecx
	testl	%eax, %ecx
	je	LBB0_1
## %bb.11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_XPC_C_CONNECTING@GOTPCREL(%rip), %rdx
	movq	_XPC_C_CONNECTED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	xorl	%edi, %edi
	testl	%eax, %ecx
	sete	%dil
	callq	_DBUG_ON
	movq	_xpc_chan@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%rbx), %r9d
	movl	28(%rbx), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	callq	_dev_dbg
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_XPC_SET_REASON
	movq	_XPC_C_CLOSEREQUEST@GOTPCREL(%rip), %rax
	movl	(%r14), %ecx
	orl	(%rax), %ecx
	orl	(%rbx), %ecx
	movl	%ecx, (%rbx)
	movq	_XPC_C_OPENREQUEST@GOTPCREL(%rip), %rax
	movq	_XPC_C_OPENREPLY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	movq	_XPC_C_ROPENREQUEST@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_XPC_C_ROPENREPLY@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_XPC_C_CONNECTING@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_XPC_C_CONNECTED@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	notl	%edx
	andl	%ecx, %edx
	movl	%edx, (%rbx)
	movq	_xpc_arch_ops@GOTPCREL(%rip), %rax
	movq	%rbx, %rdi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	*(%rax)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, -48(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_3
## %bb.2:
	movq	_XPC_C_WASCONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_3:
	movq	(%r14), %rsi
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	leaq	20(%rbx), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jle	LBB0_5
## %bb.4:
	leaq	16(%rbx), %rdi
	callq	_wake_up_all
LBB0_8:
	leaq	12(%rbx), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jle	LBB0_10
## %bb.9:
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_wake_up
LBB0_10:
	movq	(%r14), %rsi
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_lock_irqsave              ## TAILCALL
LBB0_5:
	movl	(%rbx), %eax
	movq	_XPC_C_CONNECTEDCALLOUT_MADE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.6:
	movq	_XPC_C_DISCONNECTINGCALLOUT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_xpc_create_kthreads
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_XPC_C_CONNECTED,4,2            ## @XPC_C_CONNECTED
	.comm	_XPC_C_DISCONNECTING,4,2        ## @XPC_C_DISCONNECTING
	.comm	_XPC_C_DISCONNECTED,4,2         ## @XPC_C_DISCONNECTED
	.comm	_XPC_C_CONNECTING,4,2           ## @XPC_C_CONNECTING
	.comm	_xpc_chan,4,2                   ## @xpc_chan
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reason=%d, line=%d, partid=%d, channel=%d\n"

	.comm	_XPC_C_CLOSEREQUEST,4,2         ## @XPC_C_CLOSEREQUEST
	.comm	_XPC_C_OPENREQUEST,4,2          ## @XPC_C_OPENREQUEST
	.comm	_XPC_C_OPENREPLY,4,2            ## @XPC_C_OPENREPLY
	.comm	_XPC_C_ROPENREQUEST,4,2         ## @XPC_C_ROPENREQUEST
	.comm	_XPC_C_ROPENREPLY,4,2           ## @XPC_C_ROPENREPLY
	.comm	_xpc_arch_ops,8,3               ## @xpc_arch_ops
	.comm	_XPC_C_WASCONNECTED,4,2         ## @XPC_C_WASCONNECTED
	.comm	_XPC_C_CONNECTEDCALLOUT_MADE,4,2 ## @XPC_C_CONNECTEDCALLOUT_MADE
	.comm	_XPC_C_DISCONNECTINGCALLOUT,4,2 ## @XPC_C_DISCONNECTINGCALLOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xpc_disconnect_channel         ; -- Begin function xpc_disconnect_channel
	.p2align	2
_xpc_disconnect_channel:                ; @xpc_disconnect_channel
	.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	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x23, x0
	ldr	w25, [x1]
Lloh0:
	adrp	x24, _XPC_C_CONNECTED@GOTPAGE
Lloh1:
	ldr	x24, [x24, _XPC_C_CONNECTED@GOTPAGEOFF]
	ldr	w27, [x24]
	add	x20, x1, #4
	mov	x0, x20
	bl	_lockdep_assert_held
	ldr	w8, [x21]
Lloh2:
	adrp	x26, _XPC_C_DISCONNECTING@GOTPAGE
Lloh3:
	ldr	x26, [x26, _XPC_C_DISCONNECTING@GOTPAGEOFF]
	ldr	w9, [x26]
Lloh4:
	adrp	x10, _XPC_C_DISCONNECTED@GOTPAGE
Lloh5:
	ldr	x10, [x10, _XPC_C_DISCONNECTED@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	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_2:
Lloh7:
	adrp	x28, _XPC_C_CONNECTING@GOTPAGE
Lloh8:
	ldr	x28, [x28, _XPC_C_CONNECTING@GOTPAGEOFF]
	and	w25, w27, w25
	ldr	w9, [x28]
	ldr	w10, [x24]
	orr	w9, w10, w9
	tst	w9, w8
	cset	w0, eq
	bl	_DBUG_ON
Lloh9:
	adrp	x8, _xpc_chan@GOTPAGE
Lloh10:
	ldr	x8, [x8, _xpc_chan@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	w5, w4, [x21, #24]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	mov	x3, x23
	bl	_dev_dbg
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_XPC_SET_REASON
Lloh14:
	adrp	x8, _XPC_C_CLOSEREQUEST@GOTPAGE
Lloh15:
	ldr	x8, [x8, _XPC_C_CLOSEREQUEST@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x26]
	orr	w8, w9, w8
	ldr	w9, [x21]
	orr	w8, w8, w9
	str	w8, [x21]
Lloh17:
	adrp	x9, _XPC_C_OPENREQUEST@GOTPAGE
Lloh18:
	ldr	x9, [x9, _XPC_C_OPENREQUEST@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _XPC_C_OPENREPLY@GOTPAGE
Lloh21:
	ldr	x10, [x10, _XPC_C_OPENREPLY@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh23:
	adrp	x10, _XPC_C_ROPENREQUEST@GOTPAGE
Lloh24:
	ldr	x10, [x10, _XPC_C_ROPENREQUEST@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
Lloh26:
	adrp	x11, _XPC_C_ROPENREPLY@GOTPAGE
Lloh27:
	ldr	x11, [x11, _XPC_C_ROPENREPLY@GOTPAGEOFF]
	orr	w9, w9, w10
Lloh28:
	ldr	w10, [x11]
	orr	w9, w9, w10
	ldr	w10, [x28]
	orr	w9, w9, w10
	ldr	w10, [x24]
	orr	w9, w9, w10
	bic	w8, w8, w9
	str	w8, [x21]
Lloh29:
	adrp	x8, _xpc_arch_ops@GOTPAGE
Lloh30:
	ldr	x8, [x8, _xpc_arch_ops@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	mov	x0, x21
	mov	x1, x19
	blr	x8
	cbz	w25, LBB0_4
; %bb.3:
Lloh32:
	adrp	x8, _XPC_C_WASCONNECTED@GOTPAGE
Lloh33:
	ldr	x8, [x8, _XPC_C_WASCONNECTED@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_4:
	ldr	x1, [x19]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	add	x0, x21, #20
	bl	_atomic_read
	cmp	x0, #1
	b.lt	LBB0_9
; %bb.5:
	add	x0, x21, #16
	bl	_wake_up_all
LBB0_6:
	add	x0, x21, #12
	bl	_atomic_read
	cmp	x0, #1
	b.lt	LBB0_8
; %bb.7:
	add	x0, x21, #8
	bl	_wake_up
LBB0_8:
	ldr	x1, [x19]
	mov	x0, x20
	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	_spin_lock_irqsave
LBB0_9:
	ldr	w8, [x21]
Lloh35:
	adrp	x9, _XPC_C_CONNECTEDCALLOUT_MADE@GOTPAGE
Lloh36:
	ldr	x9, [x9, _XPC_C_CONNECTEDCALLOUT_MADE@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.10:
Lloh38:
	adrp	x9, _XPC_C_DISCONNECTINGCALLOUT@GOTPAGE
Lloh39:
	ldr	x9, [x9, _XPC_C_DISCONNECTINGCALLOUT@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.11:
	mov	x0, x21
	mov	w1, #1
	mov	w2, #1
	bl	_xpc_create_kthreads
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_XPC_C_CONNECTED,4,2            ; @XPC_C_CONNECTED
	.comm	_XPC_C_DISCONNECTING,4,2        ; @XPC_C_DISCONNECTING
	.comm	_XPC_C_DISCONNECTED,4,2         ; @XPC_C_DISCONNECTED
	.comm	_XPC_C_CONNECTING,4,2           ; @XPC_C_CONNECTING
	.comm	_xpc_chan,4,2                   ; @xpc_chan
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reason=%d, line=%d, partid=%d, channel=%d\n"

	.comm	_XPC_C_CLOSEREQUEST,4,2         ; @XPC_C_CLOSEREQUEST
	.comm	_XPC_C_OPENREQUEST,4,2          ; @XPC_C_OPENREQUEST
	.comm	_XPC_C_OPENREPLY,4,2            ; @XPC_C_OPENREPLY
	.comm	_XPC_C_ROPENREQUEST,4,2         ; @XPC_C_ROPENREQUEST
	.comm	_XPC_C_ROPENREPLY,4,2           ; @XPC_C_ROPENREPLY
	.comm	_xpc_arch_ops,8,3               ; @xpc_arch_ops
	.comm	_XPC_C_WASCONNECTED,4,2         ; @XPC_C_WASCONNECTED
	.comm	_XPC_C_CONNECTEDCALLOUT_MADE,4,2 ; @XPC_C_CONNECTEDCALLOUT_MADE
	.comm	_XPC_C_DISCONNECTINGCALLOUT,4,2 ; @XPC_C_DISCONNECTINGCALLOUT
.subsections_via_symbols
