	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xpc_process_msg_chctl_flags_sn2
_xpc_process_msg_chctl_flags_sn2:       ## @xpc_process_msg_chctl_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	8(%rdi), %r12
	movslq	%esi, %rcx
	imulq	$56, %rcx, %rbx
	leaq	(%r12,%rbx), %r15
	shlq	$4, %rcx
	movups	(%rax,%rcx), %xmm0
	movups	%xmm0, 40(%r12,%rbx)
	movq	%r15, %rdi
	callq	_xpc_msgqueue_ref
	movq	24(%r12,%rbx), %rax
	cmpq	40(%r12,%rbx), %rax
	jne	LBB0_3
## %bb.1:
	movq	32(%r12,%rbx), %rax
	cmpq	48(%r12,%rbx), %rax
	je	LBB0_12
## %bb.2:
	movq	_XPC_C_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	jne	LBB0_8
	jmp	LBB0_12
LBB0_3:
	movq	_XPC_C_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_12
## %bb.4:
	leaq	(%r12,%rbx), %r14
	addq	$40, %r14
	leaq	(%r12,%rbx), %rdi
	addq	$20, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jle	LBB0_6
## %bb.5:
	movq	_xpMsgDelivered@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rdx
	movq	%r15, %rdi
	callq	_xpc_notify_senders_sn2
LBB0_6:
	movq	%r15, %rdi
	callq	_xpc_clear_local_msgqueue_flags_sn2
	movq	(%r14), %rdx
	movq	%rdx, -16(%r14)
	movq	_xpc_chan@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r12,%rbx), %r8d
	movl	8(%r12,%rbx), %ecx
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_dbg
	leaq	(%r12,%rbx), %rdi
	addq	$16, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	jle	LBB0_8
## %bb.7:
	leaq	(%r12,%rbx), %rdi
	addq	$12, %rdi
	callq	_wake_up
LBB0_8:
	movq	32(%r12,%rbx), %rax
	cmpq	48(%r12,%rbx), %rax
	je	LBB0_12
## %bb.9:
	leaq	(%r12,%rbx), %r14
	addq	$32, %r14
	movq	%r15, %rdi
	callq	_xpc_clear_remote_msgqueue_flags_sn2
	xorl	%eax, %eax
	callq	_smp_wmb
	movq	16(%r14), %rdx
	movq	%rdx, (%r14)
	movq	_xpc_chan@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	4(%r12,%rbx), %r8d
	movl	8(%r12,%rbx), %ecx
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_dbg
	movq	%r15, %rdi
	callq	_xpc_n_of_deliverable_payloads_sn2
	testl	%eax, %eax
	jle	LBB0_12
## %bb.10:
	movl	%eax, %r14d
	leaq	(%r12,%rbx), %rax
	addq	$8, %rax
	movl	(%r13), %edi
	movl	(%rax), %ecx
	movl	-4(%rax), %r8d
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_dbg
	movq	_XPC_C_CONNECTEDCALLOUT_MADE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_xpc_activate_kthreads
LBB0_12:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xpc_msgqueue_deref             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_XPC_C_CONNECTED,4,2            ## @XPC_C_CONNECTED
	.comm	_xpMsgDelivered,4,2             ## @xpMsgDelivered
	.comm	_xpc_chan,4,2                   ## @xpc_chan
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w_remote_GP.get changed to %lld, partid=%d, channel=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"w_remote_GP.put changed to %lld, partid=%d, channel=%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"msgs waiting to be copied and delivered=%d, partid=%d, channel=%d\n"

	.comm	_XPC_C_CONNECTEDCALLOUT_MADE,4,2 ## @XPC_C_CONNECTEDCALLOUT_MADE
	.no_dead_strip	_xpc_process_msg_chctl_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_process_msg_chctl_flags_sn2
_xpc_process_msg_chctl_flags_sn2:       ; @xpc_process_msg_chctl_flags_sn2
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
                                        ; kill: def $w1 killed $w1 def $x1
	sxtw	x20, w1
	mov	w8, #56
	ldp	x9, x21, [x0]
	smaddl	x19, w1, w8, x21
	ldr	q0, [x9, w1, sxtw #4]
	stur	q0, [x19, #40]
	mov	x0, x19
	bl	_xpc_msgqueue_ref
	mov	x22, x19
	ldr	x8, [x22, #24]!
	ldr	x9, [x19, #40]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	w8, #56
	madd	x8, x20, x8, x21
	ldr	x9, [x8, #32]
	ldr	x8, [x8, #48]
	cmp	x9, x8
	b.eq	LBB0_12
; %bb.2:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _XPC_C_CONNECTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XPC_C_CONNECTED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_8
	b	LBB0_12
LBB0_3:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _XPC_C_CONNECTED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _XPC_C_CONNECTED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.4:
	add	x23, x19, #40
	mov	w8, #56
	madd	x8, x20, x8, x21
	add	x0, x8, #20
	bl	_atomic_read
	cmp	x0, #1
	b.lt	LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _xpMsgDelivered@GOTPAGE
Lloh7:
	ldr	x8, [x8, _xpMsgDelivered@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	x2, [x23]
	mov	x0, x19
	bl	_xpc_notify_senders_sn2
LBB0_6:
	mov	x0, x19
	bl	_xpc_clear_local_msgqueue_flags_sn2
	ldr	x2, [x23]
Lloh9:
	adrp	x8, _xpc_chan@GOTPAGE
Lloh10:
	ldr	x8, [x8, _xpc_chan@GOTPAGEOFF]
	str	x2, [x22]
Lloh11:
	ldr	w0, [x8]
	mov	w8, #56
	madd	x22, x20, x8, x21
	ldp	w4, w3, [x22, #4]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dev_dbg
	add	x0, x22, #16
	bl	_atomic_read
	cmp	x0, #1
	b.lt	LBB0_8
; %bb.7:
	mov	w8, #56
	madd	x8, x20, x8, x21
	add	x0, x8, #12
	bl	_wake_up
LBB0_8:
	mov	w8, #56
	madd	x22, x20, x8, x21
	ldr	x8, [x22, #48]!
	mov	x23, x22
	ldr	x9, [x23, #-16]!
	cmp	x9, x8
	b.eq	LBB0_12
; %bb.9:
	mov	x0, x19
	bl	_xpc_clear_remote_msgqueue_flags_sn2
	bl	_smp_wmb
	ldr	x2, [x22]
	str	x2, [x23]
Lloh14:
	adrp	x22, _xpc_chan@GOTPAGE
Lloh15:
	ldr	x22, [x22, _xpc_chan@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	w8, #56
	madd	x21, x20, x8, x21
	ldr	w4, [x21, #4]!
	mov	x23, x21
	ldr	w3, [x23, #4]!
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dev_dbg
	mov	x0, x19
	bl	_xpc_n_of_deliverable_payloads_sn2
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x20, x0
	ldr	w0, [x22]
	ldr	w3, [x23]
	ldr	w4, [x21]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
	ldr	w8, [x19]
Lloh20:
	adrp	x9, _XPC_C_CONNECTEDCALLOUT_MADE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _XPC_C_CONNECTEDCALLOUT_MADE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x19
	mov	x1, x20
	bl	_xpc_activate_kthreads
LBB0_12:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_xpc_msgqueue_deref
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_XPC_C_CONNECTED,4,2            ; @XPC_C_CONNECTED
	.comm	_xpMsgDelivered,4,2             ; @xpMsgDelivered
	.comm	_xpc_chan,4,2                   ; @xpc_chan
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w_remote_GP.get changed to %lld, partid=%d, channel=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"w_remote_GP.put changed to %lld, partid=%d, channel=%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"msgs waiting to be copied and delivered=%d, partid=%d, channel=%d\n"

	.comm	_XPC_C_CONNECTEDCALLOUT_MADE,4,2 ; @XPC_C_CONNECTEDCALLOUT_MADE
	.no_dead_strip	_xpc_process_msg_chctl_flags_sn2
.subsections_via_symbols
