	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xpc_get_chctl_all_flags_sn2
_xpc_get_chctl_all_flags_sn2:           ## @xpc_get_chctl_all_flags_sn2
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	4(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	8(%r15), %rax
	movq	%rax, -32(%rbp)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	$0, 8(%r15)
LBB0_2:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	leaq	-32(%rbp), %rdi
	callq	_xpc_any_openclose_chctl_flags_set
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	(%r15), %esi
	movl	24(%r15), %edx
	movq	_XPC_OPENCLOSE_ARGS_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_xpc_pull_remote_cachelines_sn2
	movl	%eax, %r14d
	movq	_xpSuccess@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_XPC_DEACTIVATE_PARTITION
	movq	_xpc_chan@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_XPC_PARTID
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	movl	%r14d, %ecx
	callq	_dev_dbg
	movq	$0, -32(%rbp)
LBB0_5:
	leaq	-32(%rbp), %rdi
	callq	_xpc_any_msg_chctl_flags_set
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movl	16(%r15), %edx
	movl	20(%r15), %esi
	movq	_XPC_GP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_xpc_pull_remote_cachelines_sn2
	movl	%eax, %r14d
	movq	_xpSuccess@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_XPC_DEACTIVATE_PARTITION
	movq	_xpc_chan@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_XPC_PARTID
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	movl	%r14d, %ecx
	callq	_dev_dbg
	movq	$0, -32(%rbp)
LBB0_8:
	movq	-32(%rbp), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XPC_OPENCLOSE_ARGS_SIZE,4,2    ## @XPC_OPENCLOSE_ARGS_SIZE
	.comm	_xpSuccess,4,2                  ## @xpSuccess
	.comm	_xpc_chan,4,2                   ## @xpc_chan
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to pull openclose args from partition %d, ret=%d\n"

	.comm	_XPC_GP_SIZE,4,2                ## @XPC_GP_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"failed to pull GPs from partition %d, ret=%d\n"

	.no_dead_strip	_xpc_get_chctl_all_flags_sn2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xpc_get_chctl_all_flags_sn2
_xpc_get_chctl_all_flags_sn2:           ; @xpc_get_chctl_all_flags_sn2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	add	x20, x0, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
	str	x8, [sp, #8]
	cbz	x8, LBB0_2
; %bb.1:
	str	xzr, [x19, #8]
LBB0_2:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	add	x0, sp, #8
	bl	_xpc_any_openclose_chctl_flags_set
Lloh0:
	adrp	x22, _xpSuccess@GOTPAGE
Lloh1:
	ldr	x22, [x22, _xpSuccess@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w1, [x19]
	ldr	w2, [x19, #24]
Lloh2:
	adrp	x8, _XPC_OPENCLOSE_ARGS_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XPC_OPENCLOSE_ARGS_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_xpc_pull_remote_cachelines_sn2
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_5
; %bb.4:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_XPC_DEACTIVATE_PARTITION
Lloh5:
	adrp	x8, _xpc_chan@GOTPAGE
Lloh6:
	ldr	x8, [x8, _xpc_chan@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_XPC_PARTID
	mov	x2, x0
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x3, x20
	bl	_dev_dbg
	str	xzr, [sp, #8]
LBB0_5:
	add	x0, sp, #8
	bl	_xpc_any_msg_chctl_flags_set
	cbz	x0, LBB0_8
; %bb.6:
	ldp	w2, w1, [x19, #16]
Lloh10:
	adrp	x8, _XPC_GP_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _XPC_GP_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_xpc_pull_remote_cachelines_sn2
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_8
; %bb.7:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_XPC_DEACTIVATE_PARTITION
Lloh13:
	adrp	x8, _xpc_chan@GOTPAGE
Lloh14:
	ldr	x8, [x8, _xpc_chan@GOTPAGEOFF]
Lloh15:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_XPC_PARTID
	mov	x2, x0
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x3, x20
	bl	_dev_dbg
	str	xzr, [sp, #8]
LBB0_8:
	ldr	x0, [sp, #8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_XPC_OPENCLOSE_ARGS_SIZE,4,2    ; @XPC_OPENCLOSE_ARGS_SIZE
	.comm	_xpSuccess,4,2                  ; @xpSuccess
	.comm	_xpc_chan,4,2                   ; @xpc_chan
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to pull openclose args from partition %d, ret=%d\n"

	.comm	_XPC_GP_SIZE,4,2                ; @XPC_GP_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"failed to pull GPs from partition %d, ret=%d\n"

	.no_dead_strip	_xpc_get_chctl_all_flags_sn2
.subsections_via_symbols
