	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xpc_setup_msg_structures_sn2
_xpc_setup_msg_structures_sn2:          ## @xpc_setup_msg_structures_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_XPC_C_SETUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%r14), %edi
	callq	_DBUG_ON
	movq	%r14, %rdi
	callq	_xpc_allocate_local_msgqueue_sn2
	movl	%eax, %ebx
	movq	_xpSuccess@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	jne	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	callq	_xpc_allocate_remote_msgqueue_sn2
	movl	%eax, %ebx
	cmpl	(%r15), %eax
	je	LBB0_3
## %bb.2:
	movq	24(%r14), %rdi
	callq	_kfree
	movq	$0, 16(%r14)
	movq	8(%r14), %rdi
	callq	_kfree
	movq	$0, 8(%r14)
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XPC_C_SETUP,4,2                ## @XPC_C_SETUP
	.comm	_xpSuccess,4,2                  ## @xpSuccess
	.no_dead_strip	_xpc_setup_msg_structures_sn2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xpc_setup_msg_structures_sn2
_xpc_setup_msg_structures_sn2:          ; @xpc_setup_msg_structures_sn2
	.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	x9, _XPC_C_SETUP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XPC_C_SETUP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_DBUG_ON
	mov	x0, x19
	bl	_xpc_allocate_local_msgqueue_sn2
	mov	x20, x0
Lloh3:
	adrp	x21, _xpSuccess@GOTPAGE
Lloh4:
	ldr	x21, [x21, _xpSuccess@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_xpc_allocate_remote_msgqueue_sn2
	mov	x20, x0
	ldr	w8, [x21]
	cmp	w0, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	x0, [x19, #24]
	bl	_kfree
	str	xzr, [x19, #16]
	ldr	x0, [x19, #8]
	bl	_kfree
	str	xzr, [x19, #8]
LBB0_3:
	mov	x0, x20
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_XPC_C_SETUP,4,2                ; @XPC_C_SETUP
	.comm	_xpSuccess,4,2                  ; @xpSuccess
	.no_dead_strip	_xpc_setup_msg_structures_sn2
.subsections_via_symbols
