	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SignalBackends
_SignalBackends:                        ## @SignalBackends
	.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
	movq	_MaxBackends@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	shll	$3, %edi
	callq	_palloc
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	shll	$3, %edi
	callq	_palloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_AsyncQueueLock@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	_QUEUE_FIRST_LISTENER@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	jle	LBB0_13
## %bb.1:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_InvalidPid@GOTPCREL(%rip), %r14
	movq	_MyProcPid@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movslq	%ecx, %rcx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax,%rcx,8)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax,%rcx,8)
	incl	%ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_QUEUE_NEXT_LISTENER
	movq	%rax, %rbx
	testq	%rax, %rax
	jle	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_QUEUE_BACKEND_PID
	movq	%rax, %r12
	xorl	%edi, %edi
	cmpq	(%r14), %rax
	setne	%dil
	callq	_Assert
	cmpq	(%r15), %r12
	je	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_QUEUE_BACKEND_POS
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_QUEUE_BACKEND_DBOID
	movq	_QUEUE_HEAD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_MyDatabaseId@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %edi
	callq	_QUEUE_POS_EQUAL
	testq	%rax, %rax
	jne	LBB0_12
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%esi, %edi
	callq	_QUEUE_POS_PAGE
	movq	%r14, %r15
	movl	%eax, %r14d
	movl	%r13d, %edi
	callq	_QUEUE_POS_PAGE
	movl	%r14d, %edi
	movq	%r15, %r14
	movq	_MyProcPid@GOTPCREL(%rip), %r15
	movl	%eax, %esi
	callq	_asyncQueuePageDiff
	movq	_QUEUE_CLEANUP_DELAY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_11
	jmp	LBB0_12
LBB0_5:
	movq	_AsyncQueueLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LWLockRelease
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testl	%eax, %eax
	jle	LBB0_14
## %bb.6:
	movl	%eax, %r14d
	xorl	%ebx, %ebx
	movq	_PROCSIG_NOTIFY_INTERRUPT@GOTPCREL(%rip), %r13
	leaq	L_.str(%rip), %r12
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	cmpq	%rbx, %r14
	je	LBB0_14
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %r15
	movl	(%r13), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rdx
	movq	%r15, %rdi
	callq	_SendProcSignal
	testq	%rax, %rax
	jns	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_DEBUG3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_elog
	jmp	LBB0_9
LBB0_13:
	movl	(%r14), %edi
	callq	_LWLockRelease
LBB0_14:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_pfree
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MaxBackends,4,2                ## @MaxBackends
	.comm	_AsyncQueueLock,4,2             ## @AsyncQueueLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_QUEUE_FIRST_LISTENER,8,3       ## @QUEUE_FIRST_LISTENER
	.comm	_InvalidPid,8,3                 ## @InvalidPid
	.comm	_MyProcPid,8,3                  ## @MyProcPid
	.comm	_MyDatabaseId,8,3               ## @MyDatabaseId
	.comm	_QUEUE_HEAD,4,2                 ## @QUEUE_HEAD
	.comm	_QUEUE_CLEANUP_DELAY,8,3        ## @QUEUE_CLEANUP_DELAY
	.comm	_PROCSIG_NOTIFY_INTERRUPT,4,2   ## @PROCSIG_NOTIFY_INTERRUPT
	.comm	_DEBUG3,4,2                     ## @DEBUG3
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not signal backend with PID %d: %m"

	.no_dead_strip	_SignalBackends
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SignalBackends
_SignalBackends:                        ; @SignalBackends
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x19, _MaxBackends@GOTPAGE
Lloh1:
	ldr	x19, [x19, _MaxBackends@GOTPAGEOFF]
	ldr	w8, [x19]
	lsl	w0, w8, #3
	bl	_palloc
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w8, [x19]
	lsl	w0, w8, #3
	bl	_palloc
	mov	x20, x0
Lloh2:
	adrp	x19, _AsyncQueueLock@GOTPAGE
Lloh3:
	ldr	x19, [x19, _AsyncQueueLock@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh4:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_LWLockAcquire
Lloh7:
	adrp	x8, _QUEUE_FIRST_LISTENER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _QUEUE_FIRST_LISTENER@GOTPAGEOFF]
Lloh9:
	ldr	x21, [x8]
	cmp	x21, #1
	b.lt	LBB0_13
; %bb.1:
	mov	w26, #0
Lloh10:
	adrp	x27, _InvalidPid@GOTPAGE
Lloh11:
	ldr	x27, [x27, _InvalidPid@GOTPAGEOFF]
Lloh12:
	adrp	x28, _MyProcPid@GOTPAGE
Lloh13:
	ldr	x28, [x28, _MyProcPid@GOTPAGEOFF]
Lloh14:
	adrp	x25, _MyDatabaseId@GOTPAGE
Lloh15:
	ldr	x25, [x25, _MyDatabaseId@GOTPAGEOFF]
Lloh16:
	adrp	x19, _QUEUE_HEAD@GOTPAGE
Lloh17:
	ldr	x19, [x19, _QUEUE_HEAD@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	sbfiz	x8, x26, #3, #32
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	x22, [x9, x8]
	str	x21, [x20, x8]
	add	w26, w26, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_QUEUE_NEXT_LISTENER
	mov	x21, x0
	cmp	x0, #0
	b.le	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_QUEUE_BACKEND_PID
	mov	x22, x0
	ldr	x8, [x27]
	cmp	x0, x8
	cset	w0, ne
	bl	_Assert
	ldr	x8, [x28]
	cmp	x22, x8
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_QUEUE_BACKEND_POS
	mov	x23, x0
	mov	x0, x21
	bl	_QUEUE_BACKEND_DBOID
	ldr	x8, [x25]
	ldr	w1, [x19]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_QUEUE_POS_EQUAL
	cbnz	x0, LBB0_3
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x1
	bl	_QUEUE_POS_PAGE
	mov	x24, x0
	mov	x0, x23
	bl	_QUEUE_POS_PAGE
	mov	x1, x0
	mov	x0, x24
	bl	_asyncQueuePageDiff
Lloh18:
	adrp	x8, _QUEUE_CLEANUP_DELAY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _QUEUE_CLEANUP_DELAY@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_2
	b	LBB0_3
LBB0_8:
Lloh21:
	adrp	x8, _AsyncQueueLock@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AsyncQueueLock@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_LWLockRelease
	cmp	w26, #1
	b.lt	LBB0_14
; %bb.9:
	mov	w19, w26
Lloh24:
	adrp	x23, _PROCSIG_NOTIFY_INTERRUPT@GOTPAGE
Lloh25:
	ldr	x23, [x23, _PROCSIG_NOTIFY_INTERRUPT@GOTPAGEOFF]
Lloh26:
	adrp	x24, _DEBUG3@GOTPAGE
Lloh27:
	ldr	x24, [x24, _DEBUG3@GOTPAGEOFF]
	ldr	x25, [sp, #8]                   ; 8-byte Folded Reload
	mov	x26, x20
Lloh28:
	adrp	x21, l_.str@PAGE
Lloh29:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x26, x26, #8
	add	x25, x25, #8
	subs	x19, x19, #1
	b.eq	LBB0_14
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x25]
	ldr	w1, [x23]
	ldr	x2, [x26]
	mov	x0, x22
	bl	_SendProcSignal
	tbz	x0, #63, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [x24]
	mov	x1, x21
	mov	x2, x22
	bl	_elog
	b	LBB0_10
LBB0_13:
	ldr	w0, [x19]
	bl	_LWLockRelease
LBB0_14:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_pfree
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_pfree
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_MaxBackends,4,2                ; @MaxBackends
	.comm	_AsyncQueueLock,4,2             ; @AsyncQueueLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_QUEUE_FIRST_LISTENER,8,3       ; @QUEUE_FIRST_LISTENER
	.comm	_InvalidPid,8,3                 ; @InvalidPid
	.comm	_MyProcPid,8,3                  ; @MyProcPid
	.comm	_MyDatabaseId,8,3               ; @MyDatabaseId
	.comm	_QUEUE_HEAD,4,2                 ; @QUEUE_HEAD
	.comm	_QUEUE_CLEANUP_DELAY,8,3        ; @QUEUE_CLEANUP_DELAY
	.comm	_PROCSIG_NOTIFY_INTERRUPT,4,2   ; @PROCSIG_NOTIFY_INTERRUPT
	.comm	_DEBUG3,4,2                     ; @DEBUG3
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not signal backend with PID %d: %m"

	.no_dead_strip	_SignalBackends
.subsections_via_symbols
