	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SIInsertDataEntries            ## -- Begin function SIInsertDataEntries
	.p2align	4, 0x90
_SIInsertDataEntries:                   ## @SIInsertDataEntries
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	jle	LBB0_12
## %bb.1:
	movl	%esi, %ecx
	movq	%rdi, %r13
	movq	_shmInvalBuffer@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	leaq	24(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_SInvalWriteLock@GOTPCREL(%rip), %r12
	movq	_MAXNUMMESSAGES@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_SInvalWriteLock@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_LWLockRelease
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	jle	LBB0_12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##     Child Loop BB0_8 Depth 2
	movq	_WRITE_QUANTUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %edi
	callq	_Min
	movl	%eax, %ebx
	movl	(%r12), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=2
	movl	$1, %edi
	movl	%ebx, %esi
	callq	_SICleanupQueue
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15), %r12d
	movl	%r12d, %eax
	subl	4(%r15), %eax
	leal	(%rax,%rbx), %ecx
	movl	(%r14), %esi
	cmpl	%esi, %ecx
	jg	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	cmpl	8(%r15), %eax
	jge	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%ebx, %ebx
	jle	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r15), %rcx
	movl	(%r13), %edi
	addq	$4, %r13
	movl	%r12d, %eax
	cltd
	idivl	%esi
	movslq	%edx, %rax
	movl	%edi, (%rcx,%rax,4)
	incl	%r12d
	cmpl	$1, %ebx
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%rbx), %esi
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %edi
	addq	$4, %r13
	movl	%r12d, %eax
	cltd
	idivl	(%r14)
	movslq	%edx, %rax
	movl	%edi, (%rcx,%rax,4)
	incl	%r12d
	decl	%esi
	cmpl	$2, %esi
	jg	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	subl	%ebx, -44(%rbp)                 ## 4-byte Folded Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_SpinLockAcquire
	movl	%r12d, (%r15)
	movq	%rbx, %rdi
	callq	_SpinLockRelease
	movl	12(%r15), %edx
	testl	%edx, %edx
	jle	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%r15), %rdi
	shlq	$2, %rdx
	leaq	L_.memset_pattern(%rip), %rsi
	callq	_memset_pattern16
	jmp	LBB0_11
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_shmInvalBuffer,8,3             ## @shmInvalBuffer
	.comm	_WRITE_QUANTUM,4,2              ## @WRITE_QUANTUM
	.comm	_SInvalWriteLock,4,2            ## @SInvalWriteLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_MAXNUMMESSAGES,4,2             ## @MAXNUMMESSAGES
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @.memset_pattern
L_.memset_pattern:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SIInsertDataEntries            ; -- Begin function SIInsertDataEntries
	.p2align	2
_SIInsertDataEntries:                   ; @SIInsertDataEntries
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cmp	w1, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _shmInvalBuffer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _shmInvalBuffer@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	add	x21, x24, #24
Lloh3:
	adrp	x25, _WRITE_QUANTUM@GOTPAGE
Lloh4:
	ldr	x25, [x25, _WRITE_QUANTUM@GOTPAGEOFF]
Lloh5:
	adrp	x26, _SInvalWriteLock@GOTPAGE
Lloh6:
	ldr	x26, [x26, _SInvalWriteLock@GOTPAGEOFF]
Lloh7:
	adrp	x27, _LW_EXCLUSIVE@GOTPAGE
Lloh8:
	ldr	x27, [x27, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh9:
	adrp	x28, _MAXNUMMESSAGES@GOTPAGE
Lloh10:
	ldr	x28, [x28, _MAXNUMMESSAGES@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x26]
	bl	_LWLockRelease
	cmp	w19, #0
	b.le	LBB0_13
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
	ldr	w1, [x25]
	mov	x0, x19
	bl	_Min
	mov	x23, x0
	ldr	w0, [x26]
	ldr	w1, [x27]
	bl	_LWLockAcquire
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	mov	w0, #1
	mov	x1, x23
	bl	_SICleanupQueue
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	w22, w8, [x24]
	sub	w8, w22, w8
	add	w10, w8, w23
	ldr	w9, [x28]
	cmp	w10, w9
	b.gt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w10, [x24, #8]
	cmp	w8, w10
	b.ge	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w23, #1
	b.lt	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x24, #32]
	ldr	w10, [x20], #4
	sdiv	w11, w22, w9
	msub	w9, w11, w9, w22
	str	w10, [x8, w9, sxtw #2]
	add	w22, w22, #1
	cmp	w23, #1
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w9, w23, #1
LBB0_10:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x28]
	ldr	w11, [x20], #4
	sdiv	w12, w22, w10
	msub	w10, w12, w10, w22
	str	w11, [x8, w10, sxtw #2]
	add	w22, w22, #1
	sub	w9, w9, #1
	cmp	w9, #2
	b.gt	LBB0_10
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w19, w19, w23
	mov	x0, x21
	bl	_SpinLockAcquire
	str	w22, [x24]
	mov	x0, x21
	bl	_SpinLockRelease
	ldr	w8, [x24, #12]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x24, #16]
	lsl	x2, x8, #2
Lloh11:
	adrp	x1, l_.memset_pattern@PAGE
Lloh12:
	add	x1, x1, l_.memset_pattern@PAGEOFF
	bl	_memset_pattern16
	b	LBB0_2
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_shmInvalBuffer,8,3             ; @shmInvalBuffer
	.comm	_WRITE_QUANTUM,4,2              ; @WRITE_QUANTUM
	.comm	_SInvalWriteLock,4,2            ; @SInvalWriteLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_MAXNUMMESSAGES,4,2             ; @MAXNUMMESSAGES
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; @.memset_pattern
l_.memset_pattern:
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1

.subsections_via_symbols
