	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CacheRegisterSyscacheCallback  ## -- Begin function CacheRegisterSyscacheCallback
	.p2align	4, 0x90
_CacheRegisterSyscacheCallback:         ## @CacheRegisterSyscacheCallback
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movl	%edi, %ebx
	testl	%edi, %edi
	js	LBB0_2
## %bb.1:
	movq	_SysCacheSize@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jg	LBB0_3
LBB0_2:
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_elog
LBB0_3:
	movq	_syscache_callback_count@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movq	_MAX_SYSCACHE_CALLBACKS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_5
## %bb.4:
	movq	_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
LBB0_5:
	movq	_syscache_callback_links@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rdx
	movl	(%rax,%rdx,4), %ecx
	testl	%ecx, %ecx
	je	LBB0_10
## %bb.6:
	movq	_syscache_callback_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%ecx, %rdx
	shlq	$4, %rdx
	movl	-16(%rdx,%rax), %ecx
	testl	%ecx, %ecx
	jg	LBB0_7
## %bb.8:
	leaq	(%rdx,%rax), %rcx
	addq	$-16, %rcx
	movl	(%r12), %edx
	incl	%edx
	movl	%edx, (%rcx)
	jmp	LBB0_9
LBB0_10:
	movl	(%r12), %ecx
	incl	%ecx
	movl	%ecx, (%rax,%rdx,4)
	movq	_syscache_callback_list@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_9:
	movslq	(%r12), %rcx
	shlq	$4, %rcx
	movl	%ebx, 4(%rax,%rcx)
	movslq	(%r12), %rcx
	shlq	$4, %rcx
	movl	$0, (%rax,%rcx)
	movslq	(%r12), %rcx
	shlq	$4, %rcx
	movl	%r15d, 12(%rax,%rcx)
	movslq	(%r12), %rcx
	shlq	$4, %rcx
	movl	%r14d, 8(%rax,%rcx)
	incl	(%r12)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SysCacheSize,4,2               ## @SysCacheSize
	.comm	_FATAL,4,2                      ## @FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid cache ID: %d"

	.comm	_syscache_callback_count,4,2    ## @syscache_callback_count
	.comm	_MAX_SYSCACHE_CALLBACKS,4,2     ## @MAX_SYSCACHE_CALLBACKS
L_.str.1:                               ## @.str.1
	.asciz	"out of syscache_callback_list slots"

	.comm	_syscache_callback_links,8,3    ## @syscache_callback_links
	.comm	_syscache_callback_list,8,3     ## @syscache_callback_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CacheRegisterSyscacheCallback  ; -- Begin function CacheRegisterSyscacheCallback
	.p2align	2
_CacheRegisterSyscacheCallback:         ; @CacheRegisterSyscacheCallback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _SysCacheSize@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SysCacheSize@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.gt	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _FATAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	str	x21, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_3:
Lloh8:
	adrp	x22, _syscache_callback_count@GOTPAGE
Lloh9:
	ldr	x22, [x22, _syscache_callback_count@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh10:
	adrp	x9, _MAX_SYSCACHE_CALLBACKS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MAX_SYSCACHE_CALLBACKS@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w8, w9
	b.lt	LBB0_5
; %bb.4:
Lloh13:
	adrp	x8, _FATAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FATAL@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
LBB0_5:
Lloh18:
	adrp	x8, _syscache_callback_links@GOTPAGE
Lloh19:
	ldr	x8, [x8, _syscache_callback_links@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	ldr	w9, [x8, w21, sxtw #2]
	cbz	w9, LBB0_9
; %bb.6:
Lloh21:
	adrp	x8, _syscache_callback_list@GOTPAGE
Lloh22:
	ldr	x8, [x8, _syscache_callback_list@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x10, x8, w9, sxtw #4
	ldr	w9, [x10, #-16]!
	cmp	w9, #0
	b.gt	LBB0_7
; %bb.8:
	ldr	w9, [x22]
	add	w9, w9, #1
	str	w9, [x10]
	b	LBB0_10
LBB0_9:
	mov	x9, x21
	sxtw	x9, w9
	ldr	w10, [x22]
	add	w10, w10, #1
	str	w10, [x8, x9, lsl #2]
Lloh24:
	adrp	x8, _syscache_callback_list@GOTPAGE
Lloh25:
	ldr	x8, [x8, _syscache_callback_list@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
LBB0_10:
	ldrsw	x9, [x22]
	add	x9, x8, x9, lsl #4
	str	w21, [x9, #4]
	ldrsw	x9, [x22]
	lsl	x9, x9, #4
	str	wzr, [x8, x9]
	ldrsw	x9, [x22]
	add	x9, x8, x9, lsl #4
	str	w20, [x9, #12]
	ldrsw	x9, [x22]
	add	x8, x8, x9, lsl #4
	str	w19, [x8, #8]
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_SysCacheSize,4,2               ; @SysCacheSize
	.comm	_FATAL,4,2                      ; @FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid cache ID: %d"

	.comm	_syscache_callback_count,4,2    ; @syscache_callback_count
	.comm	_MAX_SYSCACHE_CALLBACKS,4,2     ; @MAX_SYSCACHE_CALLBACKS
l_.str.1:                               ; @.str.1
	.asciz	"out of syscache_callback_list slots"

	.comm	_syscache_callback_links,8,3    ; @syscache_callback_links
	.comm	_syscache_callback_list,8,3     ; @syscache_callback_list
.subsections_via_symbols
