	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xpc_send_payload_uv
_xpc_send_payload_uv:                   ## @xpc_send_payload_uv
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, %rbx
	movl	%ecx, %r15d
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -56(%rbp)
	movq	_XPC_NOTIFY_MSG_SIZE_UV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	_XPC_N_CALL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%rbx, (%rax)
	setne	%dil
	callq	_DBUG_ON
	movslq	%r15d, %r12
	addq	$4, %r12
	cmpq	(%r14), %r12
	jbe	LBB0_2
## %bb.1:
	movq	_xpPayloadTooBig@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_19
LBB0_2:
	movq	%r14, %rdi
	callq	_xpc_msgqueue_ref
	movl	8(%r14), %eax
	movq	_XPC_C_DISCONNECTING@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.3:
	movl	12(%r14), %r13d
LBB0_18:
	movq	%r14, %rdi
	callq	_xpc_msgqueue_deref
LBB0_19:
	movq	-88(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_XPC_C_CONNECTED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.6:
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_xpc_allocate_msg_slot_uv
	movl	%eax, %r13d
	movq	_xpSuccess@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_18
## %bb.7:
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_8
## %bb.12:
	movq	16(%rbp), %r13
	leaq	24(%r14), %rdi
	callq	_atomic_inc
	movq	-56(%rbp), %rax
	movq	%r13, (%rax)
	xorl	%eax, %eax
	callq	_smp_wmb
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdi
	movq	%rsi, 8(%rdi)
	movl	(%rbx), %eax
	testl	%eax, 8(%r14)
	je	LBB0_9
## %bb.13:
	movl	12(%r14), %r13d
	jmp	LBB0_14
LBB0_5:
	movq	_xpNotConnected@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_18
LBB0_8:
	movq	-56(%rbp), %rdi
LBB0_9:
	movq	_xp_partition_id@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, 24(%rbx)
	movl	32(%r14), %eax
	movl	%eax, 20(%rbx)
	movq	%r12, 8(%rbx)
	movl	16(%rdi), %eax
	movl	%eax, 16(%rbx)
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_memcpy
	movl	28(%r14), %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_xpc_send_gru_msg
	movl	%eax, %r13d
	movq	_xpSuccess@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_18
## %bb.10:
	movq	_xpc_partitions@GOTPCREL(%rip), %rax
	movq	16(%r14), %rdi
	shlq	$2, %rdi
	addq	(%rax), %rdi
	movl	%r13d, %esi
	callq	_XPC_DEACTIVATE_PARTITION
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.11:
	movq	-56(%rbp), %rdi
LBB0_14:
	addq	$8, %rdi
	xorl	%edx, %edx
	movq	%rsi, %rbx
	callq	_cmpxchg
	cmpq	%rbx, %rax
	je	LBB0_16
## %bb.15:
	movq	_xpSuccess@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	jmp	LBB0_18
LBB0_16:
	movq	-56(%rbp), %rax
	movq	$0, (%rax)
	leaq	24(%r14), %rdi
	callq	_atomic_dec
LBB0_17:
	movq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_xpc_free_msg_slot_uv
	jmp	LBB0_18
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_xpSuccess,4,2                  ## @xpSuccess
	.comm	_XPC_NOTIFY_MSG_SIZE_UV,4,2     ## @XPC_NOTIFY_MSG_SIZE_UV
	.comm	_XPC_N_CALL,8,3                 ## @XPC_N_CALL
	.comm	_xpPayloadTooBig,4,2            ## @xpPayloadTooBig
	.comm	_XPC_C_DISCONNECTING,4,2        ## @XPC_C_DISCONNECTING
	.comm	_XPC_C_CONNECTED,4,2            ## @XPC_C_CONNECTED
	.comm	_xpNotConnected,4,2             ## @xpNotConnected
	.comm	_xp_partition_id,4,2            ## @xp_partition_id
	.comm	_xpc_partitions,8,3             ## @xpc_partitions
	.no_dead_strip	_xpc_send_payload_uv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xpc_send_payload_uv
_xpc_send_payload_uv:                   ; @xpc_send_payload_uv
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #16
	mov	x26, x6
	mov	x20, x5
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	mov	x27, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	stur	xzr, [x29, #-96]
Lloh3:
	adrp	x8, _XPC_NOTIFY_MSG_SIZE_UV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XPC_NOTIFY_MSG_SIZE_UV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x24, x9, x8
	mov	sp, x24
Lloh8:
	adrp	x8, _XPC_N_CALL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _XPC_N_CALL@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, x4
	cset	w0, ne
	bl	_DBUG_ON
	sxtw	x8, w21
	add	x25, x8, #4
	ldr	x8, [x19]
	cmp	x25, x8
	b.ls	LBB0_2
; %bb.1:
Lloh11:
	adrp	x8, _xpPayloadTooBig@GOTPAGE
Lloh12:
	ldr	x8, [x8, _xpPayloadTooBig@GOTPAGEOFF]
Lloh13:
	ldr	w23, [x8]
	b	LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_xpc_msgqueue_ref
	ldr	w8, [x19, #8]
Lloh14:
	adrp	x28, _XPC_C_DISCONNECTING@GOTPAGE
Lloh15:
	ldr	x28, [x28, _XPC_C_DISCONNECTING@GOTPAGEOFF]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.3:
	ldr	w23, [x19, #12]
LBB0_4:
	mov	x0, x19
	bl	_xpc_msgqueue_deref
LBB0_5:
	mov	sp, x27
	ldur	x8, [x29, #-88]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.6:
	mov	x0, x23
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh19:
	adrp	x9, _XPC_C_CONNECTED@GOTPAGE
Lloh20:
	ldr	x9, [x9, _XPC_C_CONNECTED@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.8:
	sub	x2, x29, #96
	mov	x0, x19
	mov	x1, x23
	bl	_xpc_allocate_msg_slot_uv
	mov	x23, x0
Lloh22:
	adrp	x8, _xpSuccess@GOTPAGE
Lloh23:
	ldr	x8, [x8, _xpSuccess@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.9:
	cbz	x20, LBB0_13
; %bb.10:
	add	x0, x19, #24
	bl	_atomic_inc
	ldur	x8, [x29, #-96]
	str	x26, [x8]
	bl	_smp_wmb
	ldur	x8, [x29, #-96]
	str	x20, [x8, #8]
	ldr	w9, [x19, #8]
	ldr	w10, [x28]
	tst	w10, w9
	b.eq	LBB0_14
; %bb.11:
	ldr	w23, [x19, #12]
	b	LBB0_17
LBB0_12:
Lloh25:
	adrp	x8, _xpNotConnected@GOTPAGE
Lloh26:
	ldr	x8, [x8, _xpNotConnected@GOTPAGEOFF]
Lloh27:
	ldr	w23, [x8]
	b	LBB0_4
LBB0_13:
	ldur	x8, [x29, #-96]
LBB0_14:
Lloh28:
	adrp	x9, _xp_partition_id@GOTPAGE
Lloh29:
	ldr	x9, [x9, _xp_partition_id@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	ldr	w10, [x19, #32]
	stp	w10, w9, [x24, #20]
	str	x25, [x24, #8]
	ldr	w8, [x8, #16]
	str	w8, [x24, #16]
	mov	x0, x24
	mov	x1, x22
	mov	x2, x21
	bl	_memcpy
	ldr	w0, [x19, #28]
	mov	x1, x24
	mov	x2, x25
	bl	_xpc_send_gru_msg
	mov	x23, x0
Lloh31:
	adrp	x8, _xpSuccess@GOTPAGE
Lloh32:
	ldr	x8, [x8, _xpSuccess@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_4
; %bb.15:
Lloh34:
	adrp	x8, _xpc_partitions@GOTPAGE
Lloh35:
	ldr	x8, [x8, _xpc_partitions@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	ldr	x9, [x19, #16]
	add	x0, x8, x9, lsl #2
	mov	x1, x23
	bl	_XPC_DEACTIVATE_PARTITION
	cbz	x20, LBB0_20
; %bb.16:
	ldur	x8, [x29, #-96]
LBB0_17:
	add	x0, x8, #8
	mov	x1, x20
	mov	x2, #0
	bl	_cmpxchg
	cmp	x0, x20
	b.eq	LBB0_19
; %bb.18:
Lloh37:
	adrp	x8, _xpSuccess@GOTPAGE
Lloh38:
	ldr	x8, [x8, _xpSuccess@GOTPAGEOFF]
Lloh39:
	ldr	w23, [x8]
	b	LBB0_4
LBB0_19:
	ldur	x8, [x29, #-96]
	str	xzr, [x8]
	add	x0, x19, #24
	bl	_atomic_dec
LBB0_20:
	ldur	x1, [x29, #-96]
	mov	x0, x19
	bl	_xpc_free_msg_slot_uv
	b	LBB0_4
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_xpSuccess,4,2                  ; @xpSuccess
	.comm	_XPC_NOTIFY_MSG_SIZE_UV,4,2     ; @XPC_NOTIFY_MSG_SIZE_UV
	.comm	_XPC_N_CALL,8,3                 ; @XPC_N_CALL
	.comm	_xpPayloadTooBig,4,2            ; @xpPayloadTooBig
	.comm	_XPC_C_DISCONNECTING,4,2        ; @XPC_C_DISCONNECTING
	.comm	_XPC_C_CONNECTED,4,2            ; @XPC_C_CONNECTED
	.comm	_xpNotConnected,4,2             ; @xpNotConnected
	.comm	_xp_partition_id,4,2            ; @xp_partition_id
	.comm	_xpc_partitions,8,3             ; @xpc_partitions
	.no_dead_strip	_xpc_send_payload_uv
.subsections_via_symbols
