	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_logicalrep_worker_stop_at_commit ## -- Begin function logicalrep_worker_stop_at_commit
	.p2align	4, 0x90
_logicalrep_worker_stop_at_commit:      ## @logicalrep_worker_stop_at_commit
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_GetCurrentTransactionNestLevel
	movl	%eax, %ebx
	movq	_TopTransactionContext@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r12d
	movq	_on_commit_stop_workers@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpl	(%rax), %ebx
	setge	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	callq	_Assert
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	cmpl	(%rax), %ebx
	jle	LBB0_6
LBB0_5:
	movl	$16, %edi
	callq	_palloc
	movl	%ebx, (%rax)
	movq	_NIL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	(%r13), %rcx
	movq	%rcx, 8(%rax)
	movq	%rax, (%r13)
LBB0_6:
	movl	$16, %edi
	callq	_palloc
	movq	%r15, 8(%rax)
	movq	%r14, (%rax)
	movq	(%r13), %rcx
	movl	4(%rcx), %edi
	movq	%rax, %rsi
	callq	_lappend
	movq	(%r13), %rcx
	movl	%eax, 4(%rcx)
	movl	%r12d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_MemoryContextSwitchTo          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TopTransactionContext,4,2      ## @TopTransactionContext
	.comm	_on_commit_stop_workers,8,3     ## @on_commit_stop_workers
	.comm	_NIL,4,2                        ## @NIL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_logicalrep_worker_stop_at_commit ; -- Begin function logicalrep_worker_stop_at_commit
	.p2align	2
_logicalrep_worker_stop_at_commit:      ; @logicalrep_worker_stop_at_commit
	.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	x19, x1
	mov	x21, x0
	bl	_GetCurrentTransactionNestLevel
	mov	x22, x0
Lloh0:
	adrp	x8, _TopTransactionContext@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TopTransactionContext@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_MemoryContextSwitchTo
	mov	x20, x0
Lloh3:
	adrp	x23, _on_commit_stop_workers@GOTPAGE
Lloh4:
	ldr	x23, [x23, _on_commit_stop_workers@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x8]
	cmp	w22, w8
	cset	w0, ge
	b	LBB0_3
LBB0_2:
	mov	w0, #1
LBB0_3:
	bl	_Assert
	ldr	x8, [x23]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w8, [x8]
	cmp	w22, w8
	b.le	LBB0_6
LBB0_5:
	mov	w0, #16
	bl	_palloc
Lloh5:
	adrp	x8, _NIL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NIL@GOTPAGEOFF]
	str	w22, [x0]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x0, #4]
	ldr	x8, [x23]
	str	x8, [x0, #8]
	str	x0, [x23]
LBB0_6:
	mov	w0, #16
	bl	_palloc
	mov	x1, x0
	stp	x19, x21, [x0]
	ldr	x8, [x23]
	ldr	w0, [x8, #4]
	bl	_lappend
	ldr	x8, [x23]
	str	w0, [x8, #4]
	mov	x0, x20
	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	_MemoryContextSwitchTo
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_TopTransactionContext,4,2      ; @TopTransactionContext
	.comm	_on_commit_stop_workers,8,3     ; @on_commit_stop_workers
	.comm	_NIL,4,2                        ; @NIL
.subsections_via_symbols
