	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DecodingContextFindStartpoint  ## -- Begin function DecodingContextFindStartpoint
	.p2align	4, 0x90
_DecodingContextFindStartpoint:         ## @DecodingContextFindStartpoint
	.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	%rdi, %r12
	movq	8(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rax), %r14d
	movq	_DEBUG1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_elog
	movq	_ERROR@GOTPCREL(%rip), %r13
	movq	_InvalidXLogRecPtr@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, -48(%rbp)
	movq	(%r12), %rdi
	movl	%r14d, %esi
	leaq	-48(%rbp), %rdx
	callq	_XLogReadRecord
	movq	%rax, %rbx
	movq	-48(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	testq	%rbx, %rbx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_elog
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %r14d
	movq	(%r12), %rsi
	movq	%r12, %rdi
	callq	_LogicalDecodingProcessRecord
	movq	%r12, %rdi
	callq	_DecodingContextReady
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	jmp	LBB0_1
LBB0_7:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_SpinLockAcquire
	movq	(%r12), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_SpinLockRelease
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG1,4,2                     ## @DEBUG1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"searching for logical decoding starting point, starting at %X/%X"

	.comm	_ERROR,4,2                      ## @ERROR
L_.str.1:                               ## @.str.1
	.asciz	"%s"

L_.str.2:                               ## @.str.2
	.asciz	"no record found"

	.comm	_InvalidXLogRecPtr,4,2          ## @InvalidXLogRecPtr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DecodingContextFindStartpoint  ; -- Begin function DecodingContextFindStartpoint
	.p2align	2
_DecodingContextFindStartpoint:         ; @DecodingContextFindStartpoint
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x20, x0
	ldr	x19, [x0, #8]
	ldr	w23, [x19, #4]
Lloh0:
	adrp	x8, _DEBUG1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG1@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	str	x23, [sp, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
Lloh5:
	adrp	x24, _ERROR@GOTPAGE
Lloh6:
	ldr	x24, [x24, _ERROR@GOTPAGEOFF]
Lloh7:
	adrp	x21, l_.str.2@PAGE
Lloh8:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh9:
	adrp	x25, _InvalidXLogRecPtr@GOTPAGE
Lloh10:
	ldr	x25, [x25, _InvalidXLogRecPtr@GOTPAGEOFF]
Lloh11:
	adrp	x22, l_.str.1@PAGE
Lloh12:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [sp, #24]
	ldr	x0, [x20]
	add	x2, sp, #24
	mov	x1, x23
	bl	_XLogReadRecord
	mov	x23, x0
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x24]
	str	x8, [sp]
	mov	x1, x22
	bl	_elog
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	cbnz	x23, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x24]
	mov	x1, x21
	bl	_elog
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w23, [x25]
	ldr	x1, [x20]
	mov	x0, x20
	bl	_LogicalDecodingProcessRecord
	mov	x0, x20
	bl	_DecodingContextReady
	cbnz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_CHECK_FOR_INTERRUPTS
	b	LBB0_1
LBB0_7:
	mov	x0, x19
	bl	_SpinLockAcquire
	ldr	x8, [x20]
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_SpinLockRelease
	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
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG1,4,2                     ; @DEBUG1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"searching for logical decoding starting point, starting at %X/%X"

	.comm	_ERROR,4,2                      ; @ERROR
l_.str.1:                               ; @.str.1
	.asciz	"%s"

l_.str.2:                               ; @.str.2
	.asciz	"no record found"

	.comm	_InvalidXLogRecPtr,4,2          ; @InvalidXLogRecPtr
.subsections_via_symbols
