	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_commit_ts_redo                 ## -- Begin function commit_ts_redo
	.p2align	4, 0x90
_commit_ts_redo:                        ## @commit_ts_redo
	.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	%rdi, %r15
	callq	_XLogRecGetInfo
	movq	_XLR_INFO_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	notq	%rbx
	andq	%rax, %rbx
	movq	%r15, %rdi
	callq	_XLogRecHasAnyBlockRefs
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movq	_COMMIT_TS_ZEROPAGE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	callq	_XLogRecGetData
	leaq	-44(%rbp), %rdi
	movl	%eax, %esi
	movl	$4, %edx
	callq	_memcpy
	movq	_CommitTsControlLock@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movl	-44(%rbp), %edi
	xorl	%esi, %esi
	callq	_ZeroCommitTsPage
	movl	%eax, %ebx
	movq	_CommitTsCtl@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	movl	%eax, %esi
	callq	_SimpleLruWritePage
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movslq	%ebx, %rcx
	xorl	%edi, %edi
	cmpl	$0, (%rax,%rcx,4)
	sete	%dil
	callq	_Assert
	movl	(%r14), %edi
	callq	_LWLockRelease
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_COMMIT_TS_TRUNCATE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_4
## %bb.11:
	movq	%r15, %rdi
	callq	_XLogRecGetData
	movslq	%eax, %rbx
	movl	4(%rbx), %edi
	callq	_AdvanceOldestCommitTsXid
	movl	(%rbx), %esi
	movq	_CommitTsCtl@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	(%rdi), %rax
	movl	%esi, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SimpleLruTruncate              ## TAILCALL
LBB0_4:
	movq	_COMMIT_TS_SETTS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_10
## %bb.5:
	movq	%r15, %rdi
	callq	_XLogRecGetData
	movslq	%eax, %r13
	movq	%r15, %rdi
	callq	_XLogRecGetDataLen
	movl	%eax, %ebx
	movq	_SizeOfCommitTsSet@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %r14d
	sarl	$2, %r14d
	cmpl	$4, %ebx
	jl	LBB0_6
## %bb.7:
	andl	$-4, %ebx
	movl	%ebx, %edi
	callq	_palloc
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_XLogRecGetData
	movq	_SizeOfCommitTsSet@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_memcpy
	jmp	LBB0_8
LBB0_10:
	movq	_PANIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_elog                           ## TAILCALL
LBB0_6:
	xorl	%r12d, %r12d
LBB0_8:
	movl	8(%r13), %edi
	movl	(%r13), %r8d
	movl	4(%r13), %ecx
	movl	%r14d, %esi
	movq	%r12, %rdx
	movl	$1, %r9d
	callq	_TransactionTreeSetCommitTsData
	testq	%r12, %r12
	je	LBB0_2
## %bb.9:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_XLR_INFO_MASK,8,3              ## @XLR_INFO_MASK
	.comm	_COMMIT_TS_ZEROPAGE,8,3         ## @COMMIT_TS_ZEROPAGE
	.comm	_CommitTsControlLock,4,2        ## @CommitTsControlLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_CommitTsCtl,8,3                ## @CommitTsCtl
	.comm	_COMMIT_TS_TRUNCATE,8,3         ## @COMMIT_TS_TRUNCATE
	.comm	_COMMIT_TS_SETTS,8,3            ## @COMMIT_TS_SETTS
	.comm	_SizeOfCommitTsSet,4,2          ## @SizeOfCommitTsSet
	.comm	_PANIC,4,2                      ## @PANIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"commit_ts_redo: unknown op code %u"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_commit_ts_redo                 ; -- Begin function commit_ts_redo
	.p2align	2
_commit_ts_redo:                        ; @commit_ts_redo
	.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, x0
	bl	_XLogRecGetInfo
Lloh0:
	adrp	x8, _XLR_INFO_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XLR_INFO_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	bic	x20, x0, x8
	mov	x0, x19
	bl	_XLogRecHasAnyBlockRefs
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
Lloh3:
	adrp	x8, _COMMIT_TS_ZEROPAGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _COMMIT_TS_ZEROPAGE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_XLogRecGetData
	mov	x1, x0
	add	x0, sp, #12
	mov	w2, #4
	bl	_memcpy
Lloh6:
	adrp	x20, _CommitTsControlLock@GOTPAGE
Lloh7:
	ldr	x20, [x20, _CommitTsControlLock@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh8:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_LWLockAcquire
	ldr	w0, [sp, #12]
	mov	w1, #0
	bl	_ZeroCommitTsPage
	mov	x19, x0
Lloh11:
	adrp	x21, _CommitTsCtl@GOTPAGE
Lloh12:
	ldr	x21, [x21, _CommitTsCtl@GOTPAGEOFF]
	ldr	x0, [x21]
	mov	x1, x19
	bl	_SimpleLruWritePage
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	ldr	w8, [x8, w19, sxtw #2]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	ldr	w0, [x20]
	bl	_LWLockRelease
LBB0_2:
	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
LBB0_3:
Lloh13:
	adrp	x8, _COMMIT_TS_TRUNCATE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _COMMIT_TS_TRUNCATE@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_XLogRecGetData
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x19, w0
	ldr	w0, [x19, #4]
	bl	_AdvanceOldestCommitTsXid
Lloh16:
	adrp	x8, _CommitTsCtl@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CommitTsCtl@GOTPAGEOFF]
	ldr	w1, [x19]
Lloh18:
	ldr	x0, [x8]
	ldr	x8, [x0]
	str	w1, [x8]
	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
	b	_SimpleLruTruncate
LBB0_5:
Lloh19:
	adrp	x8, _COMMIT_TS_SETTS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _COMMIT_TS_SETTS@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_XLogRecGetData
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x23, w0
	mov	x0, x19
	bl	_XLogRecGetDataLen
Lloh22:
	adrp	x24, _SizeOfCommitTsSet@GOTPAGE
Lloh23:
	ldr	x24, [x24, _SizeOfCommitTsSet@GOTPAGEOFF]
	ldr	w8, [x24]
	sub	w8, w0, w8
	asr	w20, w8, #2
	cmp	w8, #4
	b.lt	LBB0_9
; %bb.7:
	and	w22, w8, #0xfffffffc
	mov	x0, x22
	bl	_palloc
	mov	x21, x0
	mov	x0, x19
	bl	_XLogRecGetData
	ldr	w8, [x24]
	add	w1, w8, w0
	mov	x0, x21
	mov	x2, x22
	bl	_memcpy
	b	LBB0_10
LBB0_8:
Lloh24:
	adrp	x8, _PANIC@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PANIC@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	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
	b	_elog
LBB0_9:
	mov	x21, #0
LBB0_10:
	ldp	w3, w0, [x23, #4]
	ldr	w4, [x23]
	mov	x1, x20
	mov	x2, x21
	mov	w5, #1
	bl	_TransactionTreeSetCommitTsData
	cbz	x21, LBB0_2
; %bb.11:
	mov	x0, x21
	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
	b	_pfree
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_XLR_INFO_MASK,8,3              ; @XLR_INFO_MASK
	.comm	_COMMIT_TS_ZEROPAGE,8,3         ; @COMMIT_TS_ZEROPAGE
	.comm	_CommitTsControlLock,4,2        ; @CommitTsControlLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_CommitTsCtl,8,3                ; @CommitTsCtl
	.comm	_COMMIT_TS_TRUNCATE,8,3         ; @COMMIT_TS_TRUNCATE
	.comm	_COMMIT_TS_SETTS,8,3            ; @COMMIT_TS_SETTS
	.comm	_SizeOfCommitTsSet,4,2          ; @SizeOfCommitTsSet
	.comm	_PANIC,4,2                      ; @PANIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"commit_ts_redo: unknown op code %u"

.subsections_via_symbols
