	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TrimCLOG                       ## -- Begin function TrimCLOG
	.p2align	4, 0x90
_TrimCLOG:                              ## @TrimCLOG
	.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	_ShmemVariableCache@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_XidFromFullTransactionId
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_TransactionIdToPage
	movl	%eax, %r14d
	movq	_CLogControlLock@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	_ClogCtl@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	(%rax), %rax
	movl	%r14d, (%rax)
	movl	%ebx, %edi
	callq	_TransactionIdToPgIndex
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	callq	_TransactionIdToByte
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_TransactionIdToBIndex
	movl	%eax, %r12d
	movq	_CLOG_BITS_PER_XACT@GOTPCREL(%rip), %rax
	imull	(%rax), %r12d
	movq	(%r13), %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	callq	_SimpleLruReadPage
	movq	(%r13), %rcx
	movq	(%rcx), %rcx
	movq	8(%rcx), %rcx
	movslq	%eax, %rbx
	movq	(%rcx,%rbx,8), %rax
	movslq	%r15d, %rdx
	movq	_CLogControlLock@GOTPCREL(%rip), %r15
	movl	$-1, %esi
	movl	%r12d, %ecx
	shll	%cl, %esi
	notb	%sil
	andb	%sil, (%rax,%rdx)
	leaq	(%rax,%rdx), %rdi
	incq	%rdi
	movq	_BLCKSZ@GOTPCREL(%rip), %rax
	notl	%edx
	addl	(%rax), %edx
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_MemSet
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	16(%rax), %rax
	movl	$1, (%rax,%rbx,4)
LBB0_2:
	movl	(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_LWLockRelease                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ShmemVariableCache,8,3         ## @ShmemVariableCache
	.comm	_CLogControlLock,4,2            ## @CLogControlLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_ClogCtl,8,3                    ## @ClogCtl
	.comm	_CLOG_BITS_PER_XACT,4,2         ## @CLOG_BITS_PER_XACT
	.comm	_BLCKSZ,4,2                     ## @BLCKSZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TrimCLOG                       ; -- Begin function TrimCLOG
	.p2align	2
_TrimCLOG:                              ; @TrimCLOG
	.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
Lloh0:
	adrp	x8, _ShmemVariableCache@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ShmemVariableCache@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_XidFromFullTransactionId
	mov	x19, x0
	bl	_TransactionIdToPage
	mov	x20, x0
Lloh3:
	adrp	x22, _CLogControlLock@GOTPAGE
Lloh4:
	ldr	x22, [x22, _CLogControlLock@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh5:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_LWLockAcquire
Lloh8:
	adrp	x23, _ClogCtl@GOTPAGE
Lloh9:
	ldr	x23, [x23, _ClogCtl@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x8, [x8]
	str	w20, [x8]
	mov	x0, x19
	bl	_TransactionIdToPgIndex
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_TransactionIdToByte
	mov	x21, x0
	mov	x0, x19
	bl	_TransactionIdToBIndex
Lloh10:
	adrp	x8, _CLOG_BITS_PER_XACT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CLOG_BITS_PER_XACT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	mul	w24, w8, w0
	ldr	x0, [x23]
	mov	x1, x20
	mov	w2, #0
	mov	x3, x19
	bl	_SimpleLruReadPage
	mov	x19, x0
	ldr	x8, [x23]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	ldr	x8, [x8, w0, sxtw #3]
	add	x0, x8, w21, sxtw
	mov	w8, #-1
	lsl	w8, w8, w24
	ldrb	w9, [x0]
	bic	w8, w9, w8
	strb	w8, [x0], #1
Lloh13:
	adrp	x8, _BLCKSZ@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BLCKSZ@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	mvn	w9, w21
	add	w2, w8, w9
	mov	w1, #0
	bl	_MemSet
	ldr	x8, [x23]
	ldr	x8, [x8]
	ldr	x8, [x8, #16]
	mov	w9, #1
	str	w9, [x8, w19, sxtw #2]
LBB0_2:
	ldr	w0, [x22]
	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
	b	_LWLockRelease
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ShmemVariableCache,8,3         ; @ShmemVariableCache
	.comm	_CLogControlLock,4,2            ; @CLogControlLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_ClogCtl,8,3                    ; @ClogCtl
	.comm	_CLOG_BITS_PER_XACT,4,2         ; @CLOG_BITS_PER_XACT
	.comm	_BLCKSZ,4,2                     ; @BLCKSZ
.subsections_via_symbols
