	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xpc_allocate_msg_wait          ## -- Begin function xpc_allocate_msg_wait
	.p2align	4, 0x90
_xpc_allocate_msg_wait:                 ## @xpc_allocate_msg_wait
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_XPC_C_DISCONNECTING@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rax
	movq	_xpInterrupted@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_DBUG_ON
	movl	8(%rbx), %ebx
	jmp	LBB0_8
LBB0_2:
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_atomic_inc
	leaq	20(%rbx), %rdi
	movl	$1, %esi
	callq	_interruptible_sleep_on_timeout
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_atomic_dec
	movl	(%r12), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	8(%rbx), %rbx
	movq	_xpInterrupted@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %rbx
	sete	%dil
	callq	_DBUG_ON
	jmp	LBB0_8
LBB0_4:
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.6:
	movq	_xpInterrupted@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_xpTimeout@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XPC_C_DISCONNECTING,4,2        ## @XPC_C_DISCONNECTING
	.comm	_xpInterrupted,8,3              ## @xpInterrupted
	.comm	_xpTimeout,4,2                  ## @xpTimeout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xpc_allocate_msg_wait          ; -- Begin function xpc_allocate_msg_wait
	.p2align	2
_xpc_allocate_msg_wait:                 ; @xpc_allocate_msg_wait
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x22, _XPC_C_DISCONNECTING@GOTPAGE
Lloh1:
	ldr	x22, [x22, _XPC_C_DISCONNECTING@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x9, _xpInterrupted@GOTPAGE
Lloh3:
	ldr	x9, [x9, _xpInterrupted@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_DBUG_ON
	ldr	w19, [x19, #8]
	b	LBB0_8
LBB0_2:
	add	x21, x19, #16
	mov	x0, x21
	bl	_atomic_inc
	add	x0, x19, #20
	mov	w1, #1
	bl	_interruptible_sleep_on_timeout
	mov	x20, x0
	mov	x0, x21
	bl	_atomic_dec
	ldr	w8, [x19]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	x19, [x19, #8]
Lloh5:
	adrp	x8, _xpInterrupted@GOTPAGE
Lloh6:
	ldr	x8, [x8, _xpInterrupted@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x19, x8
	cset	w0, eq
	bl	_DBUG_ON
	b	LBB0_8
LBB0_4:
	cbz	w20, LBB0_6
; %bb.5:
Lloh8:
	adrp	x8, _xpInterrupted@GOTPAGE
Lloh9:
	ldr	x8, [x8, _xpInterrupted@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x8, _xpTimeout@GOTPAGE
Lloh11:
	ldr	x8, [x8, _xpTimeout@GOTPAGEOFF]
LBB0_7:
	ldr	w19, [x8]
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_XPC_C_DISCONNECTING,4,2        ; @XPC_C_DISCONNECTING
	.comm	_xpInterrupted,8,3              ; @xpInterrupted
	.comm	_xpTimeout,4,2                  ; @xpTimeout
.subsections_via_symbols
