	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ProcessCompletedNotifies       ## -- Begin function ProcessCompletedNotifies
	.p2align	4, 0x90
_ProcessCompletedNotifies:              ## @ProcessCompletedNotifies
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_backendHasSentNotifications@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.1:
	movl	$0, (%rax)
	movq	_CurrentMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_Trace_notify@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_DEBUG1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_3:
	xorl	%eax, %eax
	callq	_StartTransactionCommand
	xorl	%eax, %eax
	callq	_SignalBackends
	movq	_listenChannels@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_NIL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_asyncQueueReadAllNotifications
LBB0_5:
	movq	_backendTryAdvanceTail@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movl	$0, (%rax)
	xorl	%eax, %eax
	callq	_asyncQueueAdvanceTail
LBB0_7:
	xorl	%eax, %eax
	callq	_CommitTransactionCommand
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_MemoryContextSwitchTo          ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_backendHasSentNotifications,4,2 ## @backendHasSentNotifications
	.comm	_CurrentMemoryContext,4,2       ## @CurrentMemoryContext
	.comm	_Trace_notify,8,3               ## @Trace_notify
	.comm	_DEBUG1,4,2                     ## @DEBUG1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ProcessCompletedNotifies"

	.comm	_listenChannels,8,3             ## @listenChannels
	.comm	_NIL,8,3                        ## @NIL
	.comm	_backendTryAdvanceTail,4,2      ## @backendTryAdvanceTail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ProcessCompletedNotifies       ; -- Begin function ProcessCompletedNotifies
	.p2align	2
_ProcessCompletedNotifies:              ; @ProcessCompletedNotifies
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _backendHasSentNotifications@GOTPAGE
Lloh1:
	ldr	x8, [x8, _backendHasSentNotifications@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_8
; %bb.1:
	str	wzr, [x8]
Lloh2:
	adrp	x8, _CurrentMemoryContext@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CurrentMemoryContext@GOTPAGEOFF]
Lloh4:
	ldr	w19, [x8]
Lloh5:
	adrp	x8, _Trace_notify@GOTPAGE
Lloh6:
	ldr	x8, [x8, _Trace_notify@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _DEBUG1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DEBUG1@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_3:
	bl	_StartTransactionCommand
	bl	_SignalBackends
Lloh13:
	adrp	x8, _listenChannels@GOTPAGE
Lloh14:
	ldr	x8, [x8, _listenChannels@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
Lloh16:
	adrp	x9, _NIL@GOTPAGE
Lloh17:
	ldr	x9, [x9, _NIL@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.4:
	bl	_asyncQueueReadAllNotifications
LBB0_5:
Lloh19:
	adrp	x8, _backendTryAdvanceTail@GOTPAGE
Lloh20:
	ldr	x8, [x8, _backendTryAdvanceTail@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_7
; %bb.6:
	str	wzr, [x8]
	bl	_asyncQueueAdvanceTail
LBB0_7:
	bl	_CommitTransactionCommand
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_MemoryContextSwitchTo
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_backendHasSentNotifications,4,2 ; @backendHasSentNotifications
	.comm	_CurrentMemoryContext,4,2       ; @CurrentMemoryContext
	.comm	_Trace_notify,8,3               ; @Trace_notify
	.comm	_DEBUG1,4,2                     ; @DEBUG1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ProcessCompletedNotifies"

	.comm	_listenChannels,8,3             ; @listenChannels
	.comm	_NIL,8,3                        ; @NIL
	.comm	_backendTryAdvanceTail,4,2      ; @backendTryAdvanceTail
.subsections_via_symbols
