	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SICleanupQueue                 ## -- Begin function SICleanupQueue
	.p2align	4, 0x90
_SICleanupQueue:                        ## @SICleanupQueue
	.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	%esi, %ebx
	movl	%edi, %r14d
	movq	_shmInvalBuffer@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	testl	%edi, %edi
	jne	LBB0_2
## %bb.1:
	movq	_SInvalWriteLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
LBB0_2:
	movq	_SInvalReadLock@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movl	(%r13), %eax
	movl	4(%r13), %r8d
	testl	%r8d, %r8d
	jle	LBB0_3
## %bb.4:
	movq	_MAXNUMMESSAGES@GOTPCREL(%rip), %rcx
	addl	%eax, %ebx
	subl	(%rcx), %ebx
	movq	_SIG_THRESHOLD@GOTPCREL(%rip), %rcx
	movl	%eax, %r10d
	subl	(%rcx), %r10d
	movq	16(%r13), %rcx
	xorl	%r9d, %r9d
	movq	%r8, %rsi
	movl	%eax, %edx
	jmp	LBB0_5
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, 16(%rcx)
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	$32, %rcx
	decq	%rsi
	je	LBB0_13
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 8(%rcx)
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, 16(%rcx)
	jne	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 24(%rcx)
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rcx), %edi
	cmpl	%ebx, %edi
	jl	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%edx, %edi
	cmovll	%edi, %edx
	cmpl	%r10d, %edi
	jge	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, 20(%rcx)
	cmoveq	%rcx, %r9
	cmovel	%edi, %r10d
	jmp	LBB0_12
LBB0_3:
	xorl	%r9d, %r9d
	movl	%eax, %edx
LBB0_13:
	movl	%edx, 8(%r13)
	movq	_MSGNUMWRAPAROUND@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edi
	movl	%edx, %r11d
	subl	%edi, %r11d
	jge	LBB0_15
## %bb.14:
	movl	%edx, %r11d
	jmp	LBB0_22
LBB0_15:
	subl	%edi, %eax
	movl	%r11d, 8(%r13)
	movl	%eax, (%r13)
	testl	%r8d, %r8d
	jle	LBB0_22
## %bb.16:
	movq	16(%r13), %r10
	cmpl	$1, %r8d
	jne	LBB0_18
## %bb.17:
	xorl	%edi, %edi
	jmp	LBB0_20
LBB0_18:
	movl	%r8d, %ebx
	andl	$-2, %ebx
	leaq	32(%r10), %rdx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %ecx
	subl	%ecx, -32(%rdx)
	movl	(%rsi), %ecx
	subl	%ecx, (%rdx)
	addq	$2, %rdi
	addq	$64, %rdx
	cmpq	%rdi, %rbx
	jne	LBB0_19
LBB0_20:
	testb	$1, %r8b
	je	LBB0_22
## %bb.21:
	movl	(%rsi), %ecx
	shlq	$5, %rdi
	subl	%ecx, (%r10,%rdi)
LBB0_22:
	subl	%r11d, %eax
	movq	_CLEANUP_MIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jl	LBB0_24
## %bb.23:
	movq	_CLEANUP_QUANTUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cltd
	idivl	%esi
	movl	%eax, %ecx
	incl	%ecx
	imull	%esi, %ecx
LBB0_24:
	movl	%ecx, 12(%r13)
	testq	%r9, %r9
	je	LBB0_27
## %bb.25:
	movq	8(%r9), %r15
	movq	%r9, %rbx
	subq	16(%r13), %rbx
	shrq	$5, %rbx
	incl	%ebx
	movl	$1, 20(%r9)
	movl	(%r12), %edi
	callq	_LWLockRelease
	movq	_SInvalWriteLock@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_LWLockRelease
	movq	_DEBUG4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_elog
	movq	_PROCSIG_CATCHUP_INTERRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_SendProcSignal
	testl	%r14d, %r14d
	je	LBB0_28
## %bb.26:
	movl	(%r12), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LWLockAcquire                  ## TAILCALL
LBB0_27:
	movl	(%r12), %edi
	callq	_LWLockRelease
	testl	%r14d, %r14d
	je	LBB0_29
LBB0_28:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	movq	_SInvalWriteLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LWLockRelease                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_shmInvalBuffer,8,3             ## @shmInvalBuffer
	.comm	_SInvalWriteLock,4,2            ## @SInvalWriteLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_SInvalReadLock,4,2             ## @SInvalReadLock
	.comm	_SIG_THRESHOLD,4,2              ## @SIG_THRESHOLD
	.comm	_MAXNUMMESSAGES,4,2             ## @MAXNUMMESSAGES
	.comm	_MSGNUMWRAPAROUND,4,2           ## @MSGNUMWRAPAROUND
	.comm	_CLEANUP_MIN,4,2                ## @CLEANUP_MIN
	.comm	_CLEANUP_QUANTUM,4,2            ## @CLEANUP_QUANTUM
	.comm	_DEBUG4,4,2                     ## @DEBUG4
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sending sinval catchup signal to PID %d"

	.comm	_PROCSIG_CATCHUP_INTERRUPT,4,2  ## @PROCSIG_CATCHUP_INTERRUPT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SICleanupQueue                 ; -- Begin function SICleanupQueue
	.p2align	2
_SICleanupQueue:                        ; @SICleanupQueue
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _shmInvalBuffer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _shmInvalBuffer@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x22, _SInvalWriteLock@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SInvalWriteLock@GOTPAGEOFF]
Lloh5:
	adrp	x23, _LW_EXCLUSIVE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _LW_EXCLUSIVE@GOTPAGEOFF]
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x22]
	ldr	w1, [x23]
	bl	_LWLockAcquire
LBB0_2:
Lloh7:
	adrp	x24, _SInvalReadLock@GOTPAGE
Lloh8:
	ldr	x24, [x24, _SInvalReadLock@GOTPAGEOFF]
	ldr	w0, [x24]
	ldr	w1, [x23]
	bl	_LWLockAcquire
	ldp	w9, w10, [x21]
	cmp	w10, #1
	b.lt	LBB0_12
; %bb.3:
	mov	x8, #0
Lloh9:
	adrp	x11, _MAXNUMMESSAGES@GOTPAGE
Lloh10:
	ldr	x11, [x11, _MAXNUMMESSAGES@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	add	w12, w9, w20
	sub	w12, w12, w11
Lloh12:
	adrp	x11, _SIG_THRESHOLD@GOTPAGE
Lloh13:
	ldr	x11, [x11, _SIG_THRESHOLD@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	sub	w13, w9, w11
	ldr	x14, [x21, #16]
	mov	w15, #1
	mov	x16, x10
	mov	x11, x9
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	w15, [x14, #16]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x14, x14, #32
	subs	x16, x16, #1
	b.eq	LBB0_13
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x17, [x14, #8]
	cbz	x17, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w17, [x14, #16]
	cbnz	w17, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x17, [x14, #24]
	cbnz	x17, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w17, [x14]
	cmp	w17, w12
	b.lt	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w17, w11
	csel	w11, w17, w11, lt
	cmp	w17, w13
	b.ge	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x14, #20]
	cmp	w0, #0
	csel	w13, w17, w13, eq
	csel	x8, x14, x8, eq
	b	LBB0_5
LBB0_12:
	mov	x8, #0
	mov	x11, x9
LBB0_13:
	str	w11, [x21, #8]
Lloh15:
	adrp	x13, _MSGNUMWRAPAROUND@GOTPAGE
Lloh16:
	ldr	x13, [x13, _MSGNUMWRAPAROUND@GOTPAGEOFF]
	ldr	w14, [x13]
	subs	w12, w11, w14
	b.lt	LBB0_18
; %bb.14:
	str	w12, [x21, #8]
	sub	w9, w9, w14
	str	w9, [x21]
	cmp	w10, #1
	b.lt	LBB0_17
; %bb.15:
	ldr	x11, [x21, #16]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x13]
	ldr	w15, [x11]
	sub	w14, w15, w14
	str	w14, [x11], #32
	subs	x10, x10, #1
	b.ne	LBB0_16
LBB0_17:
	mov	x11, x12
LBB0_18:
Lloh17:
	adrp	x10, _CLEANUP_MIN@GOTPAGE
Lloh18:
	ldr	x10, [x10, _CLEANUP_MIN@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	sub	w9, w9, w11
	cmp	w9, w10
	b.lt	LBB0_20
; %bb.19:
Lloh20:
	adrp	x10, _CLEANUP_QUANTUM@GOTPAGE
Lloh21:
	ldr	x10, [x10, _CLEANUP_QUANTUM@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	sdiv	w9, w9, w10
	madd	w10, w10, w9, w10
LBB0_20:
	str	w10, [x21, #12]
	cbz	x8, LBB0_23
; %bb.21:
	ldr	x20, [x8, #8]
	ldr	x9, [x21, #16]
	sub	x9, x8, x9
	lsr	x9, x9, #5
	add	w21, w9, #1
	mov	w9, #1
	str	w9, [x8, #20]
	ldr	w0, [x24]
	bl	_LWLockRelease
	ldr	w0, [x22]
	bl	_LWLockRelease
Lloh23:
	adrp	x8, _DEBUG4@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DEBUG4@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_elog
Lloh28:
	adrp	x8, _PROCSIG_CATCHUP_INTERRUPT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PROCSIG_CATCHUP_INTERRUPT@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_SendProcSignal
	cbz	w19, LBB0_24
; %bb.22:
	ldr	w0, [x22]
	ldr	w1, [x23]
	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
	b	_LWLockAcquire
LBB0_23:
	ldr	w0, [x24]
	bl	_LWLockRelease
	cbz	w19, LBB0_25
LBB0_24:
	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
LBB0_25:
	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
	b	_LWLockRelease
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_shmInvalBuffer,8,3             ; @shmInvalBuffer
	.comm	_SInvalWriteLock,4,2            ; @SInvalWriteLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_SInvalReadLock,4,2             ; @SInvalReadLock
	.comm	_SIG_THRESHOLD,4,2              ; @SIG_THRESHOLD
	.comm	_MAXNUMMESSAGES,4,2             ; @MAXNUMMESSAGES
	.comm	_MSGNUMWRAPAROUND,4,2           ; @MSGNUMWRAPAROUND
	.comm	_CLEANUP_MIN,4,2                ; @CLEANUP_MIN
	.comm	_CLEANUP_QUANTUM,4,2            ; @CLEANUP_QUANTUM
	.comm	_DEBUG4,4,2                     ; @DEBUG4
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sending sinval catchup signal to PID %d"

	.comm	_PROCSIG_CATCHUP_INTERRUPT,4,2  ; @PROCSIG_CATCHUP_INTERRUPT
.subsections_via_symbols
