	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xpc_get_deliverable_payload_sn2
_xpc_get_deliverable_payload_sn2:       ## @xpc_get_deliverable_payload_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, %r15
	leaq	16(%rdi), %r12
	movq	_XPC_C_DISCONNECTING@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	testl	%eax, (%r15)
	jne	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r15), %rbx
	xorl	%eax, %eax
	callq	_smp_rmb
	cmpq	24(%r15), %rbx
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	1(%rbx), %r13
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_cmpxchg
	cmpq	%rbx, %rax
	jne	LBB0_1
## %bb.4:
	movq	_xpc_chan@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r15), %r8d
	movl	8(%r15), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdx
	callq	_dev_dbg
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_xpc_pull_remote_msg_sn2
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%rax, %r14
	xorl	%edi, %edi
	cmpq	%rbx, (%rax)
	setne	%dil
	callq	_DBUG_ON
	movq	_XPC_M_SN2_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	8(%r14), %edi
	callq	_DBUG_ON
	movq	_XPC_M_SN2_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	8(%r14), %eax
	sete	%dil
	callq	_DBUG_ON
	addq	$12, %r14
	jmp	LBB0_9
LBB0_8:
	xorl	%r14d, %r14d
LBB0_9:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XPC_C_DISCONNECTING,4,2        ## @XPC_C_DISCONNECTING
	.comm	_xpc_chan,4,2                   ## @xpc_chan
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w_local_GP.get changed to %lld, partid=%d, channel=%d\n"

	.comm	_XPC_M_SN2_DONE,4,2             ## @XPC_M_SN2_DONE
	.comm	_XPC_M_SN2_READY,4,2            ## @XPC_M_SN2_READY
	.no_dead_strip	_xpc_get_deliverable_payload_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_deliverable_payload_sn2
_xpc_get_deliverable_payload_sn2:       ; @xpc_get_deliverable_payload_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
	mov	x19, x0
	add	x21, x0, #16
Lloh0:
	adrp	x23, _XPC_C_DISCONNECTING@GOTPAGE
Lloh1:
	ldr	x23, [x23, _XPC_C_DISCONNECTING@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x20, [x19, #16]
	bl	_smp_rmb
	ldr	x8, [x19, #24]
	cmp	x20, x8
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x22, x20, #1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_cmpxchg
	cmp	x0, x20
	b.ne	LBB0_1
; %bb.4:
Lloh2:
	adrp	x8, _xpc_chan@GOTPAGE
Lloh3:
	ldr	x8, [x8, _xpc_chan@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldp	w4, w3, [x19, #4]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_dbg
	mov	x0, x19
	mov	x1, x20
	bl	_xpc_pull_remote_msg_sn2
	cbz	x0, LBB0_7
; %bb.5:
	mov	x19, x0
	ldr	x8, [x0]
	cmp	x8, x20
	cset	w0, ne
	bl	_DBUG_ON
	ldr	w8, [x19, #8]
Lloh7:
	adrp	x9, _XPC_M_SN2_DONE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _XPC_M_SN2_DONE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_DBUG_ON
	ldr	w8, [x19, #8]
Lloh10:
	adrp	x9, _XPC_M_SN2_READY@GOTPAGE
Lloh11:
	ldr	x9, [x9, _XPC_M_SN2_READY@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_DBUG_ON
	add	x0, x19, #12
	b	LBB0_7
LBB0_6:
	mov	x0, #0
LBB0_7:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_XPC_C_DISCONNECTING,4,2        ; @XPC_C_DISCONNECTING
	.comm	_xpc_chan,4,2                   ; @xpc_chan
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w_local_GP.get changed to %lld, partid=%d, channel=%d\n"

	.comm	_XPC_M_SN2_DONE,4,2             ; @XPC_M_SN2_DONE
	.comm	_XPC_M_SN2_READY,4,2            ; @XPC_M_SN2_READY
	.no_dead_strip	_xpc_get_deliverable_payload_sn2
.subsections_via_symbols
