	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xpc_send_payload_sn2
_xpc_send_payload_sn2:                  ## @xpc_send_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
	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, %r14
	movl	%r8d, %r12d
	movl	%ecx, %r13d
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_XPC_N_CALL@GOTPCREL(%rip), %rax
	cmpl	%r8d, (%rax)
	sete	%al
	testq	%r9, %r9
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_DBUG_ON
	movl	%r13d, %edi
	callq	_XPC_MSG_SIZE
	cmpq	(%r15), %rax
	jle	LBB0_2
## %bb.1:
	movq	_xpPayloadTooBig@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_20
LBB0_2:
	movq	%r15, %rcx
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%rcx, %r13
	movq	%rcx, %rdi
	callq	_xpc_msgqueue_ref
	movq	%r13, %rdi
	movl	8(%r13), %eax
	movq	_XPC_C_DISCONNECTING@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movl	12(%rdi), %r14d
	jmp	LBB0_19
LBB0_4:
	movq	_XPC_C_CONNECTED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.6:
	leaq	-56(%rbp), %rdx
	movl	%ebx, %esi
	callq	_xpc_allocate_msg_sn2
	movl	%eax, %r14d
	movq	_xpSuccess@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_16
## %bb.7:
	movq	-56(%rbp), %rdi
	movq	(%rdi), %rcx
	movl	%r12d, %eax
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.9:
	movq	_XPC_M_SN2_INTERRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rdi)
	movq	%r13, %rbx
	leaq	24(%r13), %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	callq	_atomic_inc
	movq	16(%r13), %rsi
	movq	40(%r13), %rdi
	movq	-80(%rbp), %r10                 ## 8-byte Reload
	movq	%r10, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_10
## %bb.11:
	movq	%r10, %rax
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_12
LBB0_5:
	movq	_xpNotConnected@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_19
LBB0_8:
	movq	%rcx, %r12
	movq	%r15, %rsi
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	jmp	LBB0_14
LBB0_10:
	movl	%r10d, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_12:
	movq	%r15, %rsi
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	movq	_XPC_C_DISCONNECTING@GOTPCREL(%rip), %r11
	movq	16(%rbp), %rbx
	leaq	(%rdx,%rdx,2), %rax
	movq	%r9, 16(%rdi,%rax,8)
	movq	%rbx, 8(%rdi,%rax,8)
	movl	%r12d, (%rdi,%rax,8)
	movl	(%r11), %edx
	testl	%edx, 8(%r13)
	je	LBB0_13
## %bb.17:
	leaq	(%rdi,%rax,8), %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_cmpxchg
	cmpl	%r12d, %eax
	movq	%r13, %rdi
	jne	LBB0_19
## %bb.18:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_dec
	movq	%r13, %rdi
	movl	12(%r13), %r14d
	jmp	LBB0_19
LBB0_13:
	movq	%r10, %r12
	movq	-56(%rbp), %rdi
LBB0_14:
	addq	$12, %rdi
	movl	%r8d, %edx
	callq	_memcpy
	movq	_XPC_M_SN2_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx
	orl	%eax, 8(%rcx)
	xorl	%eax, %eax
	callq	_smp_mb
	movq	32(%r13), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_16
## %bb.15:
	movq	%r12, %rsi
	movq	%r13, %rdi
	callq	_xpc_send_msgs_sn2
LBB0_16:
	movq	%r13, %rdi
LBB0_19:
	callq	_xpc_msgqueue_deref
LBB0_20:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_xpSuccess,4,2                  ## @xpSuccess
	.comm	_XPC_N_CALL,4,2                 ## @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	_XPC_M_SN2_INTERRUPT,4,2        ## @XPC_M_SN2_INTERRUPT
	.comm	_XPC_M_SN2_READY,4,2            ## @XPC_M_SN2_READY
	.comm	_msg,8,3                        ## @msg
	.comm	_notify,8,3                     ## @notify
	.no_dead_strip	_xpc_send_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_send_payload_sn2
_xpc_send_payload_sn2:                  ; @xpc_send_payload_sn2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x24, x6
	mov	x25, x5
	mov	x23, x4
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _XPC_N_CALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XPC_N_CALL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	x5, #0
	ccmp	w8, w4, #0, eq
	cset	w0, eq
	bl	_DBUG_ON
	mov	x0, x21
	bl	_XPC_MSG_SIZE
	ldr	x8, [x19]
	cmp	x0, x8
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _xpPayloadTooBig@GOTPAGE
Lloh4:
	ldr	x8, [x8, _xpPayloadTooBig@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	b	LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_xpc_msgqueue_ref
	ldr	w8, [x19, #8]
Lloh6:
	adrp	x28, _XPC_C_DISCONNECTING@GOTPAGE
Lloh7:
	ldr	x28, [x28, _XPC_C_DISCONNECTING@GOTPAGEOFF]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_6
LBB0_3:
	ldr	w20, [x19, #12]
LBB0_4:
	mov	x0, x19
	bl	_xpc_msgqueue_deref
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
Lloh8:
	adrp	x9, _XPC_C_CONNECTED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _XPC_C_CONNECTED@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.7:
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_xpc_allocate_msg_sn2
	mov	x20, x0
Lloh11:
	adrp	x8, _xpSuccess@GOTPAGE
Lloh12:
	ldr	x8, [x8, _xpSuccess@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.8:
	ldr	x8, [sp, #8]
	ldr	x26, [x8]
	cbz	w23, LBB0_14
; %bb.9:
Lloh14:
	adrp	x9, _XPC_M_SN2_INTERRUPT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _XPC_M_SN2_INTERRUPT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	ldr	w10, [x8, #8]
	orr	w9, w10, w9
	str	w9, [x8, #8]
	add	x27, x19, #24
	mov	x0, x27
	bl	_atomic_inc
	ldr	x8, [x19, #40]
	ldr	x9, [x19, #16]
	udiv	x10, x26, x9
	msub	x9, x10, x9, x26
	mov	w10, #24
	madd	x0, x9, x10, x8
	stp	x24, x25, [x0, #8]
	str	w23, [x0]
	ldr	w8, [x19, #8]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.10:
	mov	x1, x23
	mov	w2, #0
	bl	_cmpxchg
	cmp	w0, w23
	b.ne	LBB0_4
; %bb.11:
	mov	x0, x27
	bl	_atomic_dec
	b	LBB0_3
LBB0_12:
Lloh17:
	adrp	x8, _xpNotConnected@GOTPAGE
Lloh18:
	ldr	x8, [x8, _xpNotConnected@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
	b	LBB0_4
LBB0_13:
	ldr	x8, [sp, #8]
LBB0_14:
	add	x0, x8, #12
	mov	x1, x22
	mov	x2, x21
	bl	_memcpy
Lloh20:
	adrp	x8, _XPC_M_SN2_READY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _XPC_M_SN2_READY@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	ldr	w10, [x9, #8]
	orr	w8, w10, w8
	str	w8, [x9, #8]
	bl	_smp_mb
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	cmp	x8, x26
	b.ne	LBB0_4
; %bb.15:
	mov	x0, x19
	mov	x1, x26
	bl	_xpc_send_msgs_sn2
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_xpSuccess,4,2                  ; @xpSuccess
	.comm	_XPC_N_CALL,4,2                 ; @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	_XPC_M_SN2_INTERRUPT,4,2        ; @XPC_M_SN2_INTERRUPT
	.comm	_XPC_M_SN2_READY,4,2            ; @XPC_M_SN2_READY
	.comm	_msg,8,3                        ; @msg
	.comm	_notify,8,3                     ; @notify
	.no_dead_strip	_xpc_send_payload_sn2
.subsections_via_symbols
