	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cache_write                    ## -- Begin function cache_write
	.p2align	4, 0x90
_cache_write:                           ## @cache_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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r12
	leaq	_cache_write(%rip), %rdi
	callq	_TRACE_IN
	xorl	%edi, %edi
	testq	%r12, %r12
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	testq	%r13, %r13
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	_CET_COMMON@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	leaq	-104(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	%r13, -120(%rbp)                ## 8-byte Spill
	movq	%r13, -104(%rbp)
	movq	%r15, -128(%rbp)                ## 8-byte Spill
	movq	%r15, -96(%rbp)
	movq	_cache_ht_@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	48(%r12), %rbx
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_HASHTABLE_CALCULATE_HASH
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_HASHTABLE_ENTRIES_COUNT
	xorl	%edi, %edi
	cmpq	%rax, %r13
	setl	%dil
	callq	_assert
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r15, %r13
	callq	_HASHTABLE_GET_ENTRY
	movq	%rax, %rbx
	movl	(%r15), %edi
	movq	%rax, %rsi
	movq	%r14, %rdx
	callq	_HASHTABLE_ENTRY_FIND
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r14
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	16(%rax), %eax
	movl	$-1, %ebx
	cmpl	24(%r12), %eax
	jge	LBB0_17
## %bb.2:
	movq	%rcx, %rbx
	cmpq	%rcx, 24(%r14)
	jne	LBB0_5
## %bb.3:
	movq	32(%r14), %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movq	-72(%rbp), %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_malloc
	movq	%rax, -72(%rbp)
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	-72(%rbp), %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movq	%rbx, -80(%rbp)
	movl	$1, %eax
LBB0_6:
	movl	%eax, 16(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_7:
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_malloc
	movq	%rax, -104(%rbp)
	movq	%rax, %rdi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	movl	%ebx, %edx
	callq	_memcpy
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_malloc
	movq	%rax, -72(%rbp)
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	-72(%rbp), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_memcpy
	movq	%rbx, -80(%rbp)
	movl	$1, -88(%rbp)
	movq	16(%r12), %rax
	movq	(%rax), %rcx
	xorl	%eax, %eax
	callq	*8(%rcx)
	movq	%rax, %rbx
	movq	-104(%rbp), %rax
	movq	%rax, (%rbx)
	movq	-96(%rbp), %rax
	movq	%rax, 8(%rbx)
	movq	%rbx, %r15
	addq	$16, %r15
	movq	%r15, %rdi
	callq	*40(%r12)
	cmpl	$2, (%r12)
                                        ## implicit-def: $r14
	jl	LBB0_9
## %bb.8:
	movq	16(%r12), %rax
	movq	8(%rax), %rcx
	xorl	%eax, %eax
	callq	*8(%rcx)
	movq	%rax, %r14
	leaq	16(%rax), %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	(%rbx), %rax
	movq	%rax, (%r14)
	movq	8(%rbx), %rax
	movq	%rax, 8(%r14)
	movq	%rbx, 24(%r14)
	movq	%r14, 24(%rbx)
LBB0_9:
	movq	%rbx, -64(%rbp)
	movq	16(%r12), %rax
	movq	(%rax), %rdi
	movq	%rbx, %rsi
	callq	*(%rdi)
	cmpl	$2, (%r12)
	jl	LBB0_11
## %bb.10:
	movq	16(%r12), %rax
	movq	8(%rax), %rdi
	movq	%r14, %rsi
	callq	*(%rdi)
LBB0_11:
	movl	(%r13), %edi
	leaq	-104(%rbp), %rdx
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	callq	_HASHTABLE_ENTRY_STORE
	movq	8(%r12), %rax
	movq	32(%r12), %rcx
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%r12)
	xorl	%ebx, %ebx
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.12:
	cmpq	%rcx, %rax
	jl	LBB0_17
## %bb.13:
	xorl	%ebx, %ebx
	cmpl	$2, (%r12)
	movq	16(%r12), %rax
	jl	LBB0_14
## %bb.15:
	movq	(%rax), %rdx
	addq	$8, %rax
	jmp	LBB0_16
LBB0_14:
	xorl	%edx, %edx
LBB0_16:
	movq	(%rax), %rsi
	movq	_cache_elemsize_common_continue_func@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	_flush_cache_policy
LBB0_17:
	leaq	_cache_write(%rip), %rdi
	callq	_TRACE_OUT
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	16(%r14), %eax
	incl	%eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_CET_COMMON,8,3                 ## @CET_COMMON
	.comm	_cache_ht_,4,2                  ## @cache_ht_
	.comm	_cache_elemsize_common_continue_func,4,2 ## @cache_elemsize_common_continue_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cache_write                    ; -- Begin function cache_write
	.p2align	2
_cache_write:                           ; @cache_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x4
	mov	x21, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
Lloh0:
	adrp	x0, _cache_write@PAGE
Lloh1:
	add	x0, x0, _cache_write@PAGEOFF
	bl	_TRACE_IN
	cmp	x19, #0
	cset	w0, ne
	bl	_assert
	cmp	x24, #0
	cset	w0, ne
	bl	_assert
	cmp	x21, #0
	cset	w0, ne
	bl	_assert
	mov	x22, x19
	ldr	x8, [x22], #48
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _CET_COMMON@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CET_COMMON@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	mov	x0, sp
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	stp	x24, x23, [sp]
Lloh5:
	adrp	x26, _cache_ht_@GOTPAGE
Lloh6:
	ldr	x26, [x26, _cache_ht_@GOTPAGEOFF]
	ldr	w0, [x26]
	mov	x2, sp
	mov	x1, x22
	bl	_HASHTABLE_CALCULATE_HASH
	mov	x25, x0
	mov	x0, x22
	bl	_HASHTABLE_ENTRIES_COUNT
	cmp	x25, x0
	cset	w0, lt
	bl	_assert
	mov	x0, x22
	mov	x1, x25
	bl	_HASHTABLE_GET_ENTRY
	mov	x22, x0
	ldr	w0, [x26]
	mov	x2, sp
	mov	x1, x22
	bl	_HASHTABLE_ENTRY_FIND
	cbz	x0, LBB0_6
; %bb.1:
	mov	x25, x0
	ldr	w8, [x0, #16]
	ldr	w9, [x19, #24]
	cmp	w8, w9
	b.ge	LBB0_14
; %bb.2:
	ldr	x8, [x25, #24]
	cmp	x8, x20
	b.ne	LBB0_4
; %bb.3:
	ldr	x0, [x25, #32]
	mov	x1, x21
	mov	x2, x20
	bl	_memcmp
	cbz	x0, LBB0_18
LBB0_4:
	ldr	x0, [sp, #32]
	bl	_free
	mov	x0, x20
	bl	_malloc
	str	x0, [sp, #32]
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldr	x0, [sp, #32]
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	str	x20, [sp, #24]
	mov	w8, #1
LBB0_5:
	mov	w20, #0
	str	w8, [x25, #16]
	b	LBB0_17
LBB0_6:
	mov	x0, x23
	bl	_malloc
	str	x0, [sp]
	mov	x1, x24
	mov	x2, x23
	bl	_memcpy
	mov	x0, x20
	bl	_malloc
	str	x0, [sp, #32]
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldr	x0, [sp, #32]
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	str	x20, [sp, #24]
	mov	w8, #1
	str	w8, [sp, #16]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	blr	x8
	mov	x20, x0
	ldr	x8, [sp]
	str	x8, [x0]
	ldr	x8, [sp, #8]
	str	x8, [x0, #8]
	ldr	x8, [x19, #40]
	add	x23, x0, #16
	mov	x0, x23
	blr	x8
	ldr	w8, [x19]
                                        ; implicit-def: $x21
	cmp	w8, #2
	b.lt	LBB0_8
; %bb.7:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	ldr	x8, [x8, #8]
	blr	x8
	mov	x21, x0
	add	x0, x0, #16
	mov	x1, x23
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x20]
	str	x8, [x21]
	ldr	x8, [x20, #8]
	str	x8, [x21, #8]
	str	x20, [x21, #24]
	str	x21, [x20, #24]
LBB0_8:
	str	x20, [sp, #40]
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
	ldr	x8, [x0]
	mov	x1, x20
	blr	x8
	ldr	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_10
; %bb.9:
	ldr	x8, [x19, #16]
	ldr	x0, [x8, #8]
	ldr	x8, [x0]
	mov	x1, x21
	blr	x8
LBB0_10:
	ldr	w0, [x26]
	mov	x2, sp
	mov	x1, x22
	bl	_HASHTABLE_ENTRY_STORE
	mov	w20, #0
	ldr	x8, [x19, #8]
	add	x9, x8, #1
	str	x9, [x19, #8]
	ldr	x9, [x19, #32]
	cbz	x9, LBB0_17
; %bb.11:
	cmp	x8, x9
	b.lt	LBB0_17
; %bb.12:
	ldr	w9, [x19]
	ldr	x8, [x19, #16]
	cmp	w9, #2
	b.lt	LBB0_15
; %bb.13:
	ldr	x2, [x8], #8
	b	LBB0_16
LBB0_14:
	mov	w20, #-1
	b	LBB0_17
LBB0_15:
	mov	x2, #0
LBB0_16:
	ldr	x1, [x8]
Lloh7:
	adrp	x8, _cache_elemsize_common_continue_func@GOTPAGE
Lloh8:
	ldr	x8, [x8, _cache_elemsize_common_continue_func@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_flush_cache_policy
	mov	w20, #0
LBB0_17:
Lloh10:
	adrp	x0, _cache_write@PAGE
Lloh11:
	add	x0, x0, _cache_write@PAGEOFF
	bl	_TRACE_OUT
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_18:
	ldr	w8, [x25, #16]
	add	w8, w8, #1
	b	LBB0_5
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CET_COMMON,8,3                 ; @CET_COMMON
	.comm	_cache_ht_,4,2                  ; @cache_ht_
	.comm	_cache_elemsize_common_continue_func,4,2 ; @cache_elemsize_common_continue_func
.subsections_via_symbols
