	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getTimelineHistory
_getTimelineHistory:                    ## @getTimelineHistory
	.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, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdi), %ebx
	cmpl	$1, %ebx
	jne	LBB0_2
## %bb.1:
	movl	$12, %edi
	callq	_pg_malloc
	movq	%rax, %r12
	movl	$1, (%rax)
	movq	_InvalidXLogRecPtr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movl	%eax, 4(%r12)
	movl	$1, (%r15)
	jmp	LBB0_9
LBB0_2:
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_TLHistoryFilePath
	cmpq	_ControlFile_source@GOTPCREL(%rip), %r14
	je	LBB0_5
## %bb.3:
	cmpq	_ControlFile_target@GOTPCREL(%rip), %r14
	je	LBB0_6
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_pg_fatal
                                        ## implicit-def: $r13
	jmp	LBB0_8
LBB0_5:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_fetchFile
	jmp	LBB0_7
LBB0_6:
	movq	_datadir_target@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_slurpFile
LBB0_7:
	movq	%rax, %r13
LBB0_8:
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	callq	_rewind_parseTimeLineHistory
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_pg_free
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
LBB0_9:
	movq	_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_19
## %bb.10:
	cmpq	_ControlFile_source@GOTPCREL(%rip), %r14
	je	LBB0_13
## %bb.11:
	cmpq	_ControlFile_target@GOTPCREL(%rip), %r14
	je	LBB0_14
## %bb.12:
	xorl	%edi, %edi
	callq	_Assert
	jmp	LBB0_16
LBB0_13:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_15
LBB0_14:
	leaq	L_.str.2(%rip), %rdi
LBB0_15:
	xorl	%eax, %eax
	callq	_pg_log_debug
LBB0_16:
	movq	_targetNentries@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_19
## %bb.17:
	leaq	8(%r12), %rbx
	leaq	L_.str.3(%rip), %r15
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	-8(%rbx), %esi
	movl	-4(%rbx), %ecx
	movl	(%rbx), %r9d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_pg_log_debug
	incq	%r13
	movslq	(%r14), %rax
	addq	$12, %rbx
	cmpq	%rax, %r13
	jl	LBB0_18
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	movq	%r12, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidXLogRecPtr,4,2          ## @InvalidXLogRecPtr
	.comm	_MAXPGPATH,4,2                  ## @MAXPGPATH
	.comm	_ControlFile_source,4,2         ## @ControlFile_source
	.comm	_ControlFile_target,4,2         ## @ControlFile_target
	.comm	_datadir_target,4,2             ## @datadir_target
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid control file"

	.comm	_debug,8,3                      ## @debug
L_.str.1:                               ## @.str.1
	.asciz	"Source timeline history:"

L_.str.2:                               ## @.str.2
	.asciz	"Target timeline history:"

	.comm	_targetNentries,4,2             ## @targetNentries
L_.str.3:                               ## @.str.3
	.asciz	"%d: %X/%X - %X/%X"

	.no_dead_strip	_getTimelineHistory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getTimelineHistory
_getTimelineHistory:                    ; @getTimelineHistory
	.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
	sub	sp, sp, #16
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	w20, [x0]
Lloh3:
	adrp	x23, _ControlFile_source@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ControlFile_source@GOTPAGEOFF]
	cmp	w20, #1
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #12
	bl	_pg_malloc
	mov	x20, x0
	mov	w8, #1
	str	w8, [x0]
Lloh5:
	adrp	x9, _InvalidXLogRecPtr@GOTPAGE
Lloh6:
	ldr	x9, [x9, _InvalidXLogRecPtr@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w9, [x0, #4]
	str	w8, [x21]
	b	LBB0_9
LBB0_2:
	mov	x24, sp
Lloh8:
	adrp	x8, _MAXPGPATH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAXPGPATH@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	mov	x0, x22
	mov	x1, x20
	bl	_TLHistoryFilePath
	cmp	x19, x23
	b.eq	LBB0_5
; %bb.3:
Lloh13:
	adrp	x8, _ControlFile_target@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ControlFile_target@GOTPAGEOFF]
	cmp	x19, x8
	b.eq	LBB0_6
; %bb.4:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pg_fatal
                                        ; implicit-def: $x22
	b	LBB0_8
LBB0_5:
	mov	x0, x22
	mov	x1, #0
	bl	_fetchFile
	b	LBB0_7
LBB0_6:
Lloh17:
	adrp	x8, _datadir_target@GOTPAGE
Lloh18:
	ldr	x8, [x8, _datadir_target@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	x1, x22
	mov	x2, #0
	bl	_slurpFile
LBB0_7:
	mov	x22, x0
LBB0_8:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_rewind_parseTimeLineHistory
	mov	x20, x0
	mov	x0, x22
	bl	_pg_free
	mov	sp, x24
LBB0_9:
Lloh20:
	adrp	x8, _debug@GOTPAGE
Lloh21:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cbz	x8, LBB0_19
; %bb.10:
	cmp	x19, x23
	b.eq	LBB0_13
; %bb.11:
Lloh23:
	adrp	x8, _ControlFile_target@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ControlFile_target@GOTPAGEOFF]
	cmp	x19, x8
	b.eq	LBB0_14
; %bb.12:
	mov	w0, #0
	bl	_Assert
	b	LBB0_16
LBB0_13:
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_14:
Lloh27:
	adrp	x0, l_.str.2@PAGE
Lloh28:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_15:
	bl	_pg_log_debug
LBB0_16:
Lloh29:
	adrp	x21, _targetNentries@GOTPAGE
Lloh30:
	ldr	x21, [x21, _targetNentries@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.17:
	mov	x22, #0
	add	x23, x20, #4
Lloh31:
	adrp	x19, l_.str.3@PAGE
Lloh32:
	add	x19, x19, l_.str.3@PAGEOFF
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldp	w8, w9, [x23, #-4]
	ldr	w10, [x23, #4]
	sub	sp, sp, #48
	str	x10, [sp, #32]
	str	x9, [sp, #16]
	str	x8, [sp]
	mov	x0, x19
	bl	_pg_log_debug
	add	sp, sp, #48
	add	x22, x22, #1
	ldrsw	x8, [x21]
	add	x23, x23, #12
	cmp	x22, x8
	b.lt	LBB0_18
LBB0_19:
	ldur	x8, [x29, #-56]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	mov	x0, x20
	sub	sp, x29, #48
	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
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidXLogRecPtr,4,2          ; @InvalidXLogRecPtr
	.comm	_MAXPGPATH,4,2                  ; @MAXPGPATH
	.comm	_ControlFile_source,4,2         ; @ControlFile_source
	.comm	_ControlFile_target,4,2         ; @ControlFile_target
	.comm	_datadir_target,4,2             ; @datadir_target
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid control file"

	.comm	_debug,8,3                      ; @debug
l_.str.1:                               ; @.str.1
	.asciz	"Source timeline history:"

l_.str.2:                               ; @.str.2
	.asciz	"Target timeline history:"

	.comm	_targetNentries,4,2             ; @targetNentries
l_.str.3:                               ; @.str.3
	.asciz	"%d: %X/%X - %X/%X"

	.no_dead_strip	_getTimelineHistory
.subsections_via_symbols
