	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xpc_setup_msg_structures_uv
_xpc_setup_msg_structures_uv:           ## @xpc_setup_msg_structures_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_XPC_C_SETUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%rbx), %edi
	callq	_DBUG_ON
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kmalloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_xpc_allocate_send_msg_slot_uv
	movl	%eax, _xpc_setup_msg_structures_uv.ret(%rip)
	leaq	_xpc_setup_msg_structures_uv.ret(%rip), %r14
	movq	_xpSuccess@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_xpc_allocate_recv_msg_slot_uv
	movl	%eax, _xpc_setup_msg_structures_uv.ret(%rip)
	cmpl	(%r15), %eax
	je	LBB0_5
## %bb.4:
	movl	12(%rbx), %edi
	addq	$8, %rbx
	callq	_kfree
	movq	%rbx, %rdi
	callq	_xpc_init_fifo_uv
	jmp	LBB0_5
LBB0_1:
	movq	_xpNoMemory@GOTPCREL(%rip), %r14
LBB0_5:
	movl	(%r14), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_xpc_setup_msg_structures_uv.ret,4,2 ## @xpc_setup_msg_structures_uv.ret
	.comm	_XPC_C_SETUP,4,2                ## @XPC_C_SETUP
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_xpNoMemory,4,2                 ## @xpNoMemory
	.comm	_xpSuccess,4,2                  ## @xpSuccess
	.no_dead_strip	_xpc_setup_msg_structures_uv
.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_uv
_xpc_setup_msg_structures_uv:           ; @xpc_setup_msg_structures_uv
	.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
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_kmalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_xpc_allocate_send_msg_slot_uv
Lloh6:
	adrp	x20, _xpc_setup_msg_structures_uv.ret@PAGE
Lloh7:
	add	x20, x20, _xpc_setup_msg_structures_uv.ret@PAGEOFF
	str	w0, [x20]
Lloh8:
	adrp	x21, _xpSuccess@GOTPAGE
Lloh9:
	ldr	x21, [x21, _xpSuccess@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_xpc_allocate_recv_msg_slot_uv
	str	w0, [x20]
	ldr	w8, [x21]
	cmp	w0, w8
	b.eq	LBB0_5
; %bb.3:
	add	x20, x19, #8
	ldr	w0, [x19, #12]
	bl	_kfree
	mov	x0, x20
	bl	_xpc_init_fifo_uv
Lloh10:
	adrp	x20, _xpc_setup_msg_structures_uv.ret@PAGE
Lloh11:
	add	x20, x20, _xpc_setup_msg_structures_uv.ret@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x20, _xpNoMemory@GOTPAGE
Lloh13:
	ldr	x20, [x20, _xpNoMemory@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_xpc_setup_msg_structures_uv.ret,4,2 ; @xpc_setup_msg_structures_uv.ret
	.comm	_XPC_C_SETUP,4,2                ; @XPC_C_SETUP
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_xpNoMemory,4,2                 ; @xpNoMemory
	.comm	_xpSuccess,4,2                  ; @xpSuccess
	.no_dead_strip	_xpc_setup_msg_structures_uv
.subsections_via_symbols
