	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TransactionTreeSetCommitTsData ## -- Begin function TransactionTreeSetCommitTsData
	.p2align	4, 0x90
_TransactionTreeSetCommitTsData:        ## @TransactionTreeSetCommitTsData
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_commitTsShared@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, 16(%rax)
	je	LBB0_18
## %bb.1:
	movq	%rdx, %rbx
	movl	%esi, %r12d
	movq	%rdi, %r15
	testl	%r9d, %r9d
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%rbx, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	callq	_WriteSetTimestampXlogRec
LBB0_3:
	movq	%r15, %rax
	testl	%r12d, %r12d
	jle	LBB0_5
## %bb.4:
	leal	-1(%r12), %eax
	movq	(%rbx,%rax,8), %rax
LBB0_5:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movslq	%r12d, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	%r15, %rdi
	callq	_TransactionIdToCTsPage
	movl	%eax, %r14d
	movslq	%r12d, %rax
	leaq	(%rbx,%rax,8), %r13
	movl	%r12d, %ebx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpl	%ecx, %r12d
	jge	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	subq	%rax, %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r13,%rbx,8), %rdi
	callq	_TransactionIdToCTsPage
	cmpl	%r14d, %eax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, %ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	addl	%r12d, %ebx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%ebx, %esi
	subl	%r12d, %esi
	movq	%r15, %rdi
	movq	%r13, %rdx
	movq	%rcx, %r15
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	%r14d, %r9d
	callq	_SetXidCommitTsInPage
	leal	1(%rbx), %r12d
	cmpl	%r15d, %r12d
	jge	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movslq	%ebx, %rax
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx,%rax,8), %r15
	jmp	LBB0_6
LBB0_15:
	movq	_CommitTsLock@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	_commitTsShared@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 8(%rax)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 4(%rax)
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movq	_ShmemVariableCache@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rax), %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_TransactionIdPrecedes
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	(%r15), %rax
	movq	%rbx, (%rax)
LBB0_17:
	movl	(%r14), %edi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LWLockRelease                  ## TAILCALL
LBB0_18:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_commitTsShared,8,3             ## @commitTsShared
	.comm	_CommitTsLock,4,2               ## @CommitTsLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_ShmemVariableCache,8,3         ## @ShmemVariableCache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TransactionTreeSetCommitTsData ; -- Begin function TransactionTreeSetCommitTsData
	.p2align	2
_TransactionTreeSetCommitTsData:        ; @TransactionTreeSetCommitTsData
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _commitTsShared@GOTPAGE
Lloh1:
	ldr	x8, [x8, _commitTsShared@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x8, #16]
	cbz	w8, LBB0_17
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
	cbz	w5, LBB0_3
; %bb.2:
	mov	x0, x25
	mov	x1, x24
	mov	x2, x23
	mov	x3, x20
	mov	x4, x19
	bl	_WriteSetTimestampXlogRec
LBB0_3:
	mov	x9, x25
	subs	w8, w24, #1
	b.lt	LBB0_5
; %bb.4:
	ldr	x9, [x23, w8, uxtw #3]
LBB0_5:
	stp	x9, x25, [sp]                   ; 16-byte Folded Spill
	mov	w27, #0
	sxtw	x8, w24
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	str	w20, [sp, #20]                  ; 4-byte Folded Spill
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mov	x0, x25
	bl	_TransactionIdToCTsPage
	mov	x26, x0
	sxtw	x21, w27
	mov	x22, x27
	cmp	w27, w24
	b.ge	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x20, x19
	add	x28, x23, x21, lsl #3
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	sub	x19, x8, x21
	mov	x22, x27
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x28]
	bl	_TransactionIdToCTsPage
	cmp	w0, w26
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	add	w22, w22, #1
	add	x28, x28, #8
	subs	x19, x19, #1
	b.ne	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, x24
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x19, x20
	ldr	w20, [sp, #20]                  ; 4-byte Folded Reload
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	w1, w22, w27
	add	x2, x23, x21, lsl #3
	mov	x0, x25
	mov	x3, x20
	mov	x4, x19
	mov	x5, x26
	bl	_SetXidCommitTsInPage
	add	w27, w22, #1
	cmp	w27, w24
	b.ge	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x25, [x23, w22, sxtw #3]
	b	LBB0_6
LBB0_14:
Lloh3:
	adrp	x21, _CommitTsLock@GOTPAGE
Lloh4:
	ldr	x21, [x21, _CommitTsLock@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh5:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_LWLockAcquire
Lloh8:
	adrp	x8, _commitTsShared@GOTPAGE
Lloh9:
	ldr	x8, [x8, _commitTsShared@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	x9, [x8, #8]
	stp	w19, w20, [x8]
Lloh11:
	adrp	x19, _ShmemVariableCache@GOTPAGE
Lloh12:
	ldr	x19, [x19, _ShmemVariableCache@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x0, [x8]
	ldr	x20, [sp]                       ; 8-byte Folded Reload
	mov	x1, x20
	bl	_TransactionIdPrecedes
	cbz	x0, LBB0_16
; %bb.15:
	ldr	x8, [x19]
	str	x20, [x8]
LBB0_16:
	ldr	w0, [x21]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_LWLockRelease
LBB0_17:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_commitTsShared,8,3             ; @commitTsShared
	.comm	_CommitTsLock,4,2               ; @CommitTsLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_ShmemVariableCache,8,3         ; @ShmemVariableCache
.subsections_via_symbols
