	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asyncQueueAddEntries
_asyncQueueAddEntries:                  ## @asyncQueueAddEntries
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_AsyncCtlLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	_QUEUE_HEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, -44(%rbp)
	callq	_QUEUE_POS_PAGE
	movq	_AsyncCtl@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_InvalidTransactionId@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %esi
	movl	$1, %edx
	callq	_SimpleLruReadPage
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movslq	%eax, %r13
	movl	$1, (%rcx,%r13,4)
	leaq	-72(%rbp), %r14
	leaq	-44(%rbp), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	subq	%rbx, %rax
	movq	%rax, -72(%rbp)
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	-64(%rbp), %rax
	movb	$0, (%rax)
	movq	-64(%rbp), %rax
	movb	$0, 1(%rax)
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_AsyncCtl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	addq	(%rax,%r13,8), %rbx
	movq	-72(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_memcpy
	movq	-72(%rbp), %rsi
	movq	%r15, %rdi
	callq	_asyncQueueAdvance
	testq	%rax, %rax
	jne	LBB0_7
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r12, %r12
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_lfirst
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_asyncQueueNotificationToEntry
	movl	-44(%rbp), %edi
	callq	_QUEUE_POS_OFFSET
	movslq	%eax, %rbx
	movq	-72(%rbp), %rcx
	addq	%rbx, %rcx
	movq	_QUEUE_PAGESIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	jg	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_pendingNotifies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_lnext
	movq	%rax, %r12
	jmp	LBB0_6
LBB0_2:
	xorl	%r12d, %r12d
	jmp	LBB0_9
LBB0_7:
	movq	_AsyncCtl@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	-44(%rbp), %edi
	callq	_QUEUE_POS_PAGE
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_SimpleLruZeroPage
	movl	-44(%rbp), %edi
	callq	_QUEUE_POS_PAGE
	movq	_QUEUE_CLEANUP_DELAY@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	testl	%edx, %edx
	jne	LBB0_9
## %bb.8:
	movq	_backendTryAdvanceTail@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_9:
	movq	_AsyncCtlLock@GOTPCREL(%rip), %rcx
	movq	_QUEUE_HEAD@GOTPCREL(%rip), %rdx
	movl	-44(%rbp), %eax
	movl	%eax, (%rdx)
	movl	(%rcx), %edi
	callq	_LWLockRelease
	movq	%r12, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AsyncCtlLock,4,2               ## @AsyncCtlLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_QUEUE_HEAD,4,2                 ## @QUEUE_HEAD
	.comm	_AsyncCtl,8,3                   ## @AsyncCtl
	.comm	_InvalidTransactionId,4,2       ## @InvalidTransactionId
	.comm	_QUEUE_PAGESIZE,8,3             ## @QUEUE_PAGESIZE
	.comm	_pendingNotifies,8,3            ## @pendingNotifies
	.comm	_InvalidOid,4,2                 ## @InvalidOid
	.comm	_QUEUE_CLEANUP_DELAY,4,2        ## @QUEUE_CLEANUP_DELAY
	.comm	_backendTryAdvanceTail,4,2      ## @backendTryAdvanceTail
	.no_dead_strip	_asyncQueueAddEntries
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asyncQueueAddEntries
_asyncQueueAddEntries:                  ; @asyncQueueAddEntries
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x21, _AsyncCtlLock@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AsyncCtlLock@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_LWLockAcquire
Lloh5:
	adrp	x22, _QUEUE_HEAD@GOTPAGE
Lloh6:
	ldr	x22, [x22, _QUEUE_HEAD@GOTPAGEOFF]
	ldr	w0, [x22]
	str	w0, [sp, #4]
	bl	_QUEUE_POS_PAGE
	mov	x1, x0
Lloh7:
	adrp	x20, _AsyncCtl@GOTPAGE
Lloh8:
	ldr	x20, [x20, _AsyncCtl@GOTPAGEOFF]
	ldr	x0, [x20]
Lloh9:
	adrp	x8, _InvalidTransactionId@GOTPAGE
Lloh10:
	ldr	x8, [x8, _InvalidTransactionId@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	w24, #1
	mov	w2, #1
	bl	_SimpleLruReadPage
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
	sxtw	x23, w0
	str	w24, [x8, w0, sxtw #2]
Lloh12:
	adrp	x24, _QUEUE_PAGESIZE@GOTPAGE
Lloh13:
	ldr	x24, [x24, _QUEUE_PAGESIZE@GOTPAGEOFF]
Lloh14:
	adrp	x25, _InvalidOid@GOTPAGE
Lloh15:
	ldr	x25, [x25, _InvalidOid@GOTPAGEOFF]
Lloh16:
	adrp	x26, _pendingNotifies@GOTPAGE
Lloh17:
	ldr	x26, [x26, _pendingNotifies@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	x8, x8, x27
	str	x8, [sp, #8]
	ldr	w8, [x25]
	str	w8, [sp, #24]
	ldr	x8, [sp, #16]
	strb	wzr, [x8]
	ldr	x8, [sp, #16]
	strb	wzr, [x8, #1]
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	ldr	x8, [x8, x23, lsl #3]
	add	x0, x8, x27
	ldr	x2, [sp, #8]
	add	x1, sp, #8
	bl	_memcpy
	ldr	x1, [sp, #8]
	add	x0, sp, #4
	bl	_asyncQueueAdvance
	cbnz	x0, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x19, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_lfirst
	add	x1, sp, #8
	bl	_asyncQueueNotificationToEntry
	ldr	w0, [sp, #4]
	bl	_QUEUE_POS_OFFSET
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x27, w0
	ldr	x9, [sp, #8]
	ldr	x8, [x24]
	add	x9, x9, x27
	cmp	x9, x8
	b.gt	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x26]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_lnext
	mov	x19, x0
	b	LBB0_2
LBB0_6:
	ldr	x20, [x20]
	ldr	w0, [sp, #4]
	bl	_QUEUE_POS_PAGE
	mov	x1, x0
	mov	x0, x20
	bl	_SimpleLruZeroPage
	ldr	w0, [sp, #4]
	bl	_QUEUE_POS_PAGE
Lloh18:
	adrp	x8, _QUEUE_CLEANUP_DELAY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _QUEUE_CLEANUP_DELAY@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	sdiv	w9, w0, w8
	msub	w8, w9, w8, w0
	cbnz	w8, LBB0_8
; %bb.7:
Lloh21:
	adrp	x8, _backendTryAdvanceTail@GOTPAGE
Lloh22:
	ldr	x8, [x8, _backendTryAdvanceTail@GOTPAGEOFF]
	mov	w9, #1
Lloh23:
	str	w9, [x8]
LBB0_8:
	ldr	w8, [sp, #4]
	str	w8, [x22]
	ldr	w0, [x21]
	bl	_LWLockRelease
	mov	x0, x19
	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
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_AsyncCtlLock,4,2               ; @AsyncCtlLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_QUEUE_HEAD,4,2                 ; @QUEUE_HEAD
	.comm	_AsyncCtl,8,3                   ; @AsyncCtl
	.comm	_InvalidTransactionId,4,2       ; @InvalidTransactionId
	.comm	_QUEUE_PAGESIZE,8,3             ; @QUEUE_PAGESIZE
	.comm	_pendingNotifies,8,3            ; @pendingNotifies
	.comm	_InvalidOid,4,2                 ; @InvalidOid
	.comm	_QUEUE_CLEANUP_DELAY,4,2        ; @QUEUE_CLEANUP_DELAY
	.comm	_backendTryAdvanceTail,4,2      ; @backendTryAdvanceTail
	.no_dead_strip	_asyncQueueAddEntries
.subsections_via_symbols
