	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xpc_teardown_ch_structures
_xpc_teardown_ch_structures:            ## @xpc_teardown_ch_structures
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	addq	$44, %rdi
	callq	_atomic_read
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_DBUG_ON
	leaq	40(%rbx), %rdi
	callq	_atomic_read
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_DBUG_ON
	movq	(%rbx), %rax
	movq	_XPC_P_SS_SETUP@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_DBUG_ON
	movq	_XPC_P_SS_WTEARDOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movl	36(%rbx), %r14d
	leaq	32(%rbx), %rdi
	callq	_atomic_read
	xorl	%esi, %esi
	testq	%rax, %rax
	sete	%sil
	movl	%r14d, %edi
	callq	_wait_event
	movq	_xpc_arch_ops@GOTPCREL(%rip), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	24(%rbx), %rdi
	callq	_kfree
	movq	$0, 16(%rbx)
	movq	8(%rbx), %rdi
	callq	_kfree
	movq	$0, 8(%rbx)
	movq	_XPC_P_SS_TORNDOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XPC_P_SS_SETUP,8,3             ## @XPC_P_SS_SETUP
	.comm	_XPC_P_SS_WTEARDOWN,8,3         ## @XPC_P_SS_WTEARDOWN
	.comm	_xpc_arch_ops,8,3               ## @xpc_arch_ops
	.comm	_XPC_P_SS_TORNDOWN,8,3          ## @XPC_P_SS_TORNDOWN
	.no_dead_strip	_xpc_teardown_ch_structures
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xpc_teardown_ch_structures
_xpc_teardown_ch_structures:            ; @xpc_teardown_ch_structures
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, x0, #44
	bl	_atomic_read
	cmp	x0, #0
	cset	w0, ne
	bl	_DBUG_ON
	add	x0, x19, #40
	bl	_atomic_read
	cmp	x0, #0
	cset	w0, ne
	bl	_DBUG_ON
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _XPC_P_SS_SETUP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XPC_P_SS_SETUP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_DBUG_ON
Lloh3:
	adrp	x8, _XPC_P_SS_WTEARDOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XPC_P_SS_WTEARDOWN@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19]
	ldr	w20, [x19, #36]
	add	x0, x19, #32
	bl	_atomic_read
	cmp	x0, #0
	cset	w1, eq
	mov	x0, x20
	bl	_wait_event
Lloh6:
	adrp	x8, _xpc_arch_ops@GOTPAGE
Lloh7:
	ldr	x8, [x8, _xpc_arch_ops@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	ldr	x0, [x19, #24]
	bl	_kfree
	str	xzr, [x19, #16]
	ldr	x0, [x19, #8]
	bl	_kfree
Lloh9:
	adrp	x8, _XPC_P_SS_TORNDOWN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XPC_P_SS_TORNDOWN@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	stp	x8, xzr, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_XPC_P_SS_SETUP,8,3             ; @XPC_P_SS_SETUP
	.comm	_XPC_P_SS_WTEARDOWN,8,3         ; @XPC_P_SS_WTEARDOWN
	.comm	_xpc_arch_ops,8,3               ; @xpc_arch_ops
	.comm	_XPC_P_SS_TORNDOWN,8,3          ; @XPC_P_SS_TORNDOWN
	.no_dead_strip	_xpc_teardown_ch_structures
.subsections_via_symbols
