	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xpc_initiate_disconnect        ## -- Begin function xpc_initiate_disconnect
	.p2align	4, 0x90
_xpc_initiate_disconnect:               ## @xpc_initiate_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edi, %edi
	sets	%al
	movq	_XPC_MAX_NCHANNELS@GOTPCREL(%rip), %rcx
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	cmpl	%edi, (%rcx)
	setle	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_DBUG_ON
	movq	_xp_max_npartitions@GOTPCREL(%rip), %rax
	cmpw	$0, (%rax)
	jle	LBB0_7
## %bb.1:
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	callq	_xpc_msgqueue_deref
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_xpc_part_deref
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movq	_xp_max_npartitions@GOTPCREL(%rip), %rax
	movswq	(%rax), %rax
	addq	$8, %r14
	cmpq	%rax, %r15
	jge	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_xpc_partitions@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	leaq	(%r12,%r14), %rbx
	movq	%rbx, %rdi
	callq	_xpc_part_ref
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	(%r12,%r14), %r12
	leaq	(%r12,%r13,8), %rbx
	movq	%rbx, %rdi
	callq	_xpc_msgqueue_ref
	leaq	(%r12,%r13,8), %rdi
	addq	$4, %rdi
	movq	-56(%rbp), %rsi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movl	(%r12,%r13,8), %eax
	movq	_XPC_C_DISCONNECTED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_XPC_C_WDISCONNECT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
	movq	_xpUnregistering@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	leaq	-56(%rbp), %rdx
	callq	_XPC_DISCONNECT_CHANNEL
	jmp	LBB0_5
LBB0_7:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_xpc_disconnect_wait
	addq	$40, %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	_xp_max_npartitions,2,1         ## @xp_max_npartitions
	.comm	_xpc_partitions,8,3             ## @xpc_partitions
	.comm	_XPC_C_DISCONNECTED,4,2         ## @XPC_C_DISCONNECTED
	.comm	_XPC_C_WDISCONNECT,4,2          ## @XPC_C_WDISCONNECT
	.comm	_xpUnregistering,4,2            ## @xpUnregistering
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xpc_initiate_disconnect        ; -- Begin function xpc_initiate_disconnect
	.p2align	2
_xpc_initiate_disconnect:               ; @xpc_initiate_disconnect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, 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
Lloh3:
	adrp	x23, _xp_max_npartitions@GOTPAGE
Lloh4:
	ldr	x23, [x23, _xp_max_npartitions@GOTPAGEOFF]
	ldrsh	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x24, #0
	mov	x25, #0
	sxtw	x26, w19
Lloh5:
	adrp	x27, _xpc_partitions@GOTPAGE
Lloh6:
	ldr	x27, [x27, _xpc_partitions@GOTPAGEOFF]
Lloh7:
	adrp	x28, _XPC_C_DISCONNECTED@GOTPAGE
Lloh8:
	ldr	x28, [x28, _XPC_C_DISCONNECTED@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [sp, #8]
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	mov	x0, x21
	bl	_xpc_msgqueue_deref
	mov	x0, x20
	bl	_xpc_part_deref
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	ldrsh	x8, [x23]
	add	x24, x24, #8
	cmp	x25, x8
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x27]
	add	x20, x21, x24
	mov	x0, x20
	bl	_xpc_part_ref
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, x24]
	add	x21, x8, x26, lsl #3
	mov	x0, x21
	bl	_xpc_msgqueue_ref
	add	x22, x21, #4
	ldr	x1, [sp, #8]
	mov	x0, x22
	bl	_spin_lock_irqsave
	ldr	w8, [x21]
	ldr	w9, [x28]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh9:
	adrp	x9, _XPC_C_WDISCONNECT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _XPC_C_WDISCONNECT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21]
Lloh12:
	adrp	x8, _xpUnregistering@GOTPAGE
Lloh13:
	ldr	x8, [x8, _xpUnregistering@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x21
	bl	_XPC_DISCONNECT_CHANNEL
	b	LBB0_2
LBB0_7:
	mov	x0, x19
	bl	_xpc_disconnect_wait
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_XPC_MAX_NCHANNELS,4,2          ; @XPC_MAX_NCHANNELS
	.comm	_xp_max_npartitions,2,1         ; @xp_max_npartitions
	.comm	_xpc_partitions,8,3             ; @xpc_partitions
	.comm	_XPC_C_DISCONNECTED,4,2         ; @XPC_C_DISCONNECTED
	.comm	_XPC_C_WDISCONNECT,4,2          ; @XPC_C_WDISCONNECT
	.comm	_xpUnregistering,4,2            ; @xpUnregistering
.subsections_via_symbols
