	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xpc_allocate_send_msg_slot_uv
_xpc_allocate_send_msg_slot_uv:         ## @xpc_allocate_send_msg_slot_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %r12d
	movq	_xpNoMemory@GOTPCREL(%rip), %r14
	testl	%r12d, %r12d
	jle	LBB0_11
## %bb.1:
	movq	%rdi, %r15
	leaq	(,%r12,8), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_kzalloc
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	jne	LBB0_3
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	-1(%r12), %rax
	addq	$-8, %rbx
	cmpq	$1, %r12
	movq	%rax, %r12
	jg	LBB0_2
	jmp	LBB0_11
LBB0_3:
	testl	%r12d, %r12d
	jle	LBB0_7
## %bb.4:
	leaq	8(%r15), %rdi
	movl	$0, (%rax)
	addq	$4, %rax
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	callq	_xpc_put_fifo_entry_uv
	cmpl	$1, %r12d
	je	LBB0_7
## %bb.5:
	movl	%r12d, %r13d
	movl	$1, %ebx
	movl	$12, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rsi
	movl	%ebx, (%rsi,%rbx,8)
	addq	%r14, %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_xpc_put_fifo_entry_uv
	incq	%rbx
	addq	$8, %r14
	cmpq	%rbx, %r13
	jne	LBB0_6
LBB0_7:
	leaq	4(%r15), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	cmpl	%r12d, (%r15)
	jle	LBB0_9
## %bb.8:
	movl	%r12d, (%r15)
LBB0_9:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	_xpSuccess@GOTPCREL(%rip), %r14
LBB0_11:
	movl	(%r14), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_xpSuccess,4,2                  ## @xpSuccess
	.comm	_xpNoMemory,4,2                 ## @xpNoMemory
	.no_dead_strip	_xpc_allocate_send_msg_slot_uv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xpc_allocate_send_msg_slot_uv
_xpc_allocate_send_msg_slot_uv:         ; @xpc_allocate_send_msg_slot_uv
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w21, [x0]
	cmp	w21, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x0
	lsl	x20, x21, #3
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	adrp	x22, _xpNoMemory@GOTPAGE
Lloh3:
	ldr	x22, [x22, _xpNoMemory@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x20
	bl	_kzalloc
	str	x0, [x19, #16]
	cbnz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x20, x20, #8
	subs	x21, x21, #1
	b.gt	LBB0_2
	b	LBB0_12
LBB0_4:
Lloh4:
	adrp	x22, _xpNoMemory@GOTPAGE
Lloh5:
	ldr	x22, [x22, _xpNoMemory@GOTPAGEOFF]
	b	LBB0_12
LBB0_5:
	cmp	w21, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x1, x0
	add	x20, x19, #8
	str	wzr, [x1], #4
	mov	x0, x20
	bl	_xpc_put_fifo_entry_uv
	cmp	w21, #1
	b.eq	LBB0_9
; %bb.7:
	and	x22, x21, #0xffffffff
	mov	w23, #1
	mov	w24, #8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x1, x8, x24
	str	w23, [x1], #4
	mov	x0, x20
	bl	_xpc_put_fifo_entry_uv
	add	x23, x23, #1
	add	x24, x24, #8
	cmp	x22, x23
	b.ne	LBB0_8
LBB0_9:
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w8, [x19]
	cmp	w8, w21
	b.le	LBB0_11
; %bb.10:
	str	w21, [x19]
LBB0_11:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh6:
	adrp	x22, _xpSuccess@GOTPAGE
Lloh7:
	ldr	x22, [x22, _xpSuccess@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x22]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_xpSuccess,4,2                  ; @xpSuccess
	.comm	_xpNoMemory,4,2                 ; @xpNoMemory
	.no_dead_strip	_xpc_allocate_send_msg_slot_uv
.subsections_via_symbols
