	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cache_mp_write                 ## -- Begin function cache_mp_write
	.p2align	4, 0x90
_cache_mp_write:                        ## @cache_mp_write
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	leaq	_cache_mp_write(%rip), %rdi
	callq	_TRACE_IN
	xorl	%edi, %edi
	testq	%r13, %r13
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpq	$0, 16(%r13)
	setne	%dil
	callq	_assert
	movq	16(%r13), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	_CET_MULTIPART@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	16(%r13), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	jle	LBB0_2
## %bb.1:
	movl	$-1, %ebx
	cmpq	(%r13), %rax
	je	LBB0_3
LBB0_2:
	movl	$1, %edi
	movl	$16, %esi
	callq	_calloc
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	%r14, %rdi
	callq	_malloc
	movq	%rax, %rbx
	movq	%rax, 8(%r12)
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_memcpy
	movq	%r14, (%r12)
	leaq	8(%r13), %rdi
	movq	_entries@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_TAILQ_INSERT_TAIL
	incq	(%r13)
	xorl	%ebx, %ebx
LBB0_3:
	leaq	_cache_mp_write(%rip), %rdi
	callq	_TRACE_OUT
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CET_MULTIPART,8,3              ## @CET_MULTIPART
	.comm	_entries,4,2                    ## @entries
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cache_mp_write                 ; -- Begin function cache_mp_write
	.p2align	2
_cache_mp_write:                        ; @cache_mp_write
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x0, _cache_mp_write@PAGE
Lloh1:
	add	x0, x0, _cache_mp_write@PAGEOFF
	bl	_TRACE_IN
	cmp	x19, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _CET_MULTIPART@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CET_MULTIPART@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	w20, #-1
	b	LBB0_4
LBB0_3:
	mov	w0, #1
	mov	w1, #16
	bl	_calloc
	mov	x22, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x20
	bl	_malloc
	mov	x23, x0
	str	x0, [x22, #8]
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	str	x20, [x22]
	add	x0, x19, #8
Lloh5:
	adrp	x8, _entries@GOTPAGE
Lloh6:
	ldr	x8, [x8, _entries@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_TAILQ_INSERT_TAIL
	mov	w20, #0
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
LBB0_4:
Lloh8:
	adrp	x0, _cache_mp_write@PAGE
Lloh9:
	add	x0, x0, _cache_mp_write@PAGEOFF
	bl	_TRACE_OUT
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CET_MULTIPART,8,3              ; @CET_MULTIPART
	.comm	_entries,4,2                    ; @entries
.subsections_via_symbols
