	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function findCommonAncestorTimeline
_findCommonAncestorTimeline:            ## @findCommonAncestorTimeline
	.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	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	_ControlFile_source@GOTPCREL(%rip), %rdi
	leaq	-44(%rbp), %rsi
	callq	_getTimelineHistory
	movq	%rax, %r14
	movq	_ControlFile_target@GOTPCREL(%rip), %rdi
	movq	_targetNentries@GOTPCREL(%rip), %r12
	movq	%r12, %rsi
	callq	_getTimelineHistory
	movq	_targetHistory@GOTPCREL(%rip), %r13
	movq	%rax, (%r13)
	movl	-44(%rbp), %edi
	movl	(%r12), %esi
	callq	_Min
	testl	%eax, %eax
	jle	LBB0_8
## %bb.1:
	movl	%eax, %eax
	movq	(%r13), %rcx
	movl	$8, %edx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%r14,%rdx), %rsi
	cmpq	-8(%rcx,%rdx), %rsi
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14,%rdx), %rsi
	cmpq	(%rcx,%rdx), %rsi
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	addq	$24, %rdx
	cmpq	%rbx, %rax
	jne	LBB0_2
## %bb.5:
	movl	%eax, %ebx
LBB0_6:
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.7:
	decl	%ebx
	leaq	(,%rbx,8), %rax
	leaq	(%rax,%rax,2), %rax
	movl	16(%r14,%rax), %edi
	movq	(%r13), %rcx
	movl	16(%rcx,%rax), %esi
	callq	_MinXLogRecPtr
	movl	%eax, (%r15)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	movq	%r14, %rdi
	callq	_pg_free
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str(%rip), %rdi
	callq	_pg_fatal
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ControlFile_source,4,2         ## @ControlFile_source
	.comm	_ControlFile_target,4,2         ## @ControlFile_target
	.comm	_targetNentries,4,2             ## @targetNentries
	.comm	_targetHistory,8,3              ## @targetHistory
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not find common ancestor of the source and target cluster's timelines"

	.no_dead_strip	_findCommonAncestorTimeline
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function findCommonAncestorTimeline
_findCommonAncestorTimeline:            ; @findCommonAncestorTimeline
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x0
Lloh0:
	adrp	x0, _ControlFile_source@GOTPAGE
Lloh1:
	ldr	x0, [x0, _ControlFile_source@GOTPAGEOFF]
	add	x1, sp, #12
	bl	_getTimelineHistory
	mov	x21, x0
Lloh2:
	adrp	x0, _ControlFile_target@GOTPAGE
Lloh3:
	ldr	x0, [x0, _ControlFile_target@GOTPAGEOFF]
Lloh4:
	adrp	x22, _targetNentries@GOTPAGE
Lloh5:
	ldr	x22, [x22, _targetNentries@GOTPAGEOFF]
	mov	x1, x22
	bl	_getTimelineHistory
Lloh6:
	adrp	x23, _targetHistory@GOTPAGE
Lloh7:
	ldr	x23, [x23, _targetHistory@GOTPAGEOFF]
	str	x0, [x23]
	ldr	w0, [sp, #12]
	ldr	w1, [x22]
	bl	_Min
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x8, #0
	mov	w9, w0
	ldr	x11, [x23]
	add	x10, x21, #8
	add	x11, x11, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x12, [x10, #-8]
	ldur	x13, [x11, #-8]
	cmp	x12, x13
	b.ne	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x12, [x10]
	ldr	x13, [x11]
	cmp	x12, x13
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #1
	add	x10, x10, #24
	add	x11, x11, #24
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.5:
	mov	x8, x9
LBB0_6:
	cbz	w8, LBB0_8
; %bb.7:
	sub	w22, w8, #1
	mov	w8, #24
	umaddl	x9, w22, w8, x21
	ldr	w0, [x9, #16]
	ldr	x9, [x23]
	umaddl	x8, w22, w8, x9
	ldr	w1, [x8, #16]
	bl	_MinXLogRecPtr
	str	w0, [x20]
	str	w22, [x19]
	mov	x0, x21
	bl	_pg_free
	b	LBB0_9
LBB0_8:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pg_fatal
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ControlFile_source,4,2         ; @ControlFile_source
	.comm	_ControlFile_target,4,2         ; @ControlFile_target
	.comm	_targetNentries,4,2             ; @targetNentries
	.comm	_targetHistory,8,3              ; @targetHistory
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not find common ancestor of the source and target cluster's timelines"

	.no_dead_strip	_findCommonAncestorTimeline
.subsections_via_symbols
