	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function writecache_alloc_entries
_writecache_alloc_entries:              ## @writecache_alloc_entries
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%r14d, %r14d
	cmpq	$0, 8(%rdi)
	je	LBB0_1
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	movq	(%rdi), %rsi
	movl	$16, %edi
	callq	_array_size
	movl	%eax, %edi
	callq	_vmalloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.3:
	xorl	%r14d, %r14d
	cmpq	$1, %rcx
	jne	LBB0_6
## %bb.4:
	xorl	%edx, %edx
	jmp	LBB0_8
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_10
LBB0_6:
	movq	%rcx, %rsi
	andq	$-2, %rsi
	leaq	24(%rax), %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdx, -24(%rdi)
	movl	$0, -16(%rdi)
	leaq	1(%rdx), %rbx
	movq	%rbx, -8(%rdi)
	movl	$0, (%rdi)
	addq	$2, %rdx
	addq	$32, %rdi
	cmpq	%rsi, %rdx
	jne	LBB0_7
LBB0_8:
	testb	$1, %cl
	je	LBB0_10
## %bb.9:
	movq	%rdx, %rcx
	shlq	$4, %rcx
	movq	%rdx, (%rax,%rcx)
	movl	$0, 8(%rax,%rcx)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_writecache_alloc_entries
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function writecache_alloc_entries
_writecache_alloc_entries:              ; @writecache_alloc_entries
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x19, x0
	ldr	x1, [x0]
	mov	w0, #16
	bl	_array_size
	bl	_vmalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_7
; %bb.4:
	ldr	x8, [x19]
	cbz	x8, LBB0_1
; %bb.5:
	cmp	x8, #4
	b.hs	LBB0_8
; %bb.6:
	mov	x9, #0
	b	LBB0_11
LBB0_7:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_2
LBB0_8:
	mov	x10, #0
	and	x9, x8, #0xfffffffffffffffc
	add	x11, x0, #32
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	stur	x10, [x11, #-32]
	add	x12, x10, #1
	stur	x12, [x11, #-16]
	add	x12, x10, #2
	str	x12, [x11]
	add	x12, x10, #3
	str	x12, [x11, #16]
	stur	wzr, [x11, #-24]
	stur	wzr, [x11, #-8]
	str	wzr, [x11, #8]
	str	wzr, [x11, #24]
	add	x11, x11, #64
	add	x10, x10, #4
	cmp	x10, x9
	b.ne	LBB0_9
; %bb.10:
	cmp	x8, x9
	b.eq	LBB0_1
LBB0_11:
	add	x10, x0, x9, lsl #4
	add	x10, x10, #8
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	stur	x9, [x10, #-8]
	str	wzr, [x10], #16
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_12
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_writecache_alloc_entries
.subsections_via_symbols
