	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xpc_allocate_msg_sn2
_xpc_allocate_msg_sn2:                  ## @xpc_allocate_msg_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movq	_xpTimeout@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	24(%rdi), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	24(%r13), %ebx
	xorl	%eax, %eax
	callq	_smp_rmb
	movl	%ebx, %eax
	subl	28(%r13), %eax
	cmpl	(%r13), %eax
	jge	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%rbx), %r15d
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_cmpxchg
	cmpl	%ebx, %eax
	jne	LBB0_1
	jmp	LBB0_8
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_xpTimeout@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_xpc_send_chctl_local_msgrequest_sn2
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movq	_XPC_NOWAIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_xpc_allocate_msg_wait
	movl	%eax, %r14d
	movq	_xpInterrupted@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_1
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_xpTimeout@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_1
	jmp	LBB0_10
LBB0_8:
	movq	16(%r13), %r12
	movl	%ebx, %eax
	cltd
	idivl	(%r13)
	movslq	4(%r13), %rax
	movslq	%edx, %r14
	imulq	%rax, %r14
	leaq	(%r12,%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	cmpq	$0, (%r12,%r14)
	setne	%dil
	callq	_DBUG_ON
	movl	%ebx, 8(%r12,%r14)
	movq	_xpc_chan@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r13), %eax
	movl	12(%r13), %r9d
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rcx
	movl	%ebx, %r8d
	callq	_dev_dbg
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	movq	_xpSuccess@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_xpNoWait@GOTPCREL(%rip), %rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_xpTimeout,4,2                  ## @xpTimeout
	.comm	_XPC_NOWAIT,4,2                 ## @XPC_NOWAIT
	.comm	_xpNoWait,4,2                   ## @xpNoWait
	.comm	_xpInterrupted,4,2              ## @xpInterrupted
	.comm	_xpc_chan,4,2                   ## @xpc_chan
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w_local_GP.put changed to %lld; msg=0x%p, msg_number=%lld, partid=%d, channel=%d\n"

	.comm	_xpSuccess,4,2                  ## @xpSuccess
	.no_dead_strip	_xpc_allocate_msg_sn2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xpc_allocate_msg_sn2
_xpc_allocate_msg_sn2:                  ; @xpc_allocate_msg_sn2
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x26, _xpTimeout@GOTPAGE
Lloh1:
	ldr	x26, [x26, _xpTimeout@GOTPAGEOFF]
	ldr	w23, [x26]
	add	x22, x0, #24
Lloh2:
	adrp	x27, _XPC_NOWAIT@GOTPAGE
Lloh3:
	ldr	x27, [x27, _XPC_NOWAIT@GOTPAGEOFF]
Lloh4:
	adrp	x28, _xpInterrupted@GOTPAGE
Lloh5:
	ldr	x28, [x28, _xpInterrupted@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w24, [x20, #24]
	bl	_smp_rmb
	ldr	w8, [x20, #28]
	ldr	w9, [x20]
	sub	w8, w24, w8
	cmp	w8, w9
	b.ge	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w25, w24, #1
	mov	x0, x22
	mov	x1, x24
	mov	x2, x25
	bl	_cmpxchg
	cmp	w0, w24
	b.ne	LBB0_1
	b	LBB0_7
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x26]
	cmp	w23, w8
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_xpc_send_chctl_local_msgrequest_sn2
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x27]
	tst	w8, w21
	b.ne	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_xpc_allocate_msg_wait
	mov	x23, x0
	ldr	w8, [x28]
	ldr	w9, [x26]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.eq	LBB0_1
	b	LBB0_9
LBB0_7:
	ldr	x8, [x20, #16]
	ldp	w9, w10, [x20]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	sdiv	w11, w24, w9
	msub	w9, w11, w9, w24
	sxtw	x9, w9
	madd	x21, x10, x9, x8
	ldr	x8, [x21]
	cmp	x8, #0
	cset	w0, ne
	bl	_DBUG_ON
	str	w24, [x21, #8]
Lloh6:
	adrp	x8, _xpc_chan@GOTPAGE
Lloh7:
	ldr	x8, [x8, _xpc_chan@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldp	w6, w5, [x20, #8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x25
	mov	x3, x21
	mov	x4, x24
	bl	_dev_dbg
	str	x21, [x19]
Lloh11:
	adrp	x8, _xpSuccess@GOTPAGE
Lloh12:
	ldr	x8, [x8, _xpSuccess@GOTPAGEOFF]
LBB0_8:
	ldr	w23, [x8]
LBB0_9:
	mov	x0, x23
	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_10:
Lloh13:
	adrp	x8, _xpNoWait@GOTPAGE
Lloh14:
	ldr	x8, [x8, _xpNoWait@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_xpTimeout,4,2                  ; @xpTimeout
	.comm	_XPC_NOWAIT,4,2                 ; @XPC_NOWAIT
	.comm	_xpNoWait,4,2                   ; @xpNoWait
	.comm	_xpInterrupted,4,2              ; @xpInterrupted
	.comm	_xpc_chan,4,2                   ; @xpc_chan
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w_local_GP.put changed to %lld; msg=0x%p, msg_number=%lld, partid=%d, channel=%d\n"

	.comm	_xpSuccess,4,2                  ; @xpSuccess
	.no_dead_strip	_xpc_allocate_msg_sn2
.subsections_via_symbols
