	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TransactionIdSetPageStatusInternal
_TransactionIdSetPageStatusInternal:    ## @TransactionIdSetPageStatusInternal
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -64(%rbp)                 ## 4-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	movq	_TRANSACTION_STATUS_COMMITTED@GOTPCREL(%rip), %rax
	movl	$1, %edi
	cmpq	%rcx, (%rax)
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_4
## %bb.1:
	movq	_TRANSACTION_STATUS_ABORTED@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_4
## %bb.2:
	movq	_TRANSACTION_STATUS_SUB_COMMITTED@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%rbx, (%rax)
	jne	LBB0_4
## %bb.3:
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_TransactionIdIsValid
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
LBB0_4:
	callq	_Assert
	movq	_CLogControlLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockHeldByMeInMode
	movl	%eax, %edi
	callq	_Assert
	movq	_ClogCtl@GOTPCREL(%rip), %rax
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r12
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_XLogRecPtrIsInvalid
	movq	%r12, %rdi
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %ecx
	callq	_SimpleLruReadPage
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_TransactionIdIsValid
	movslq	%ebx, %rcx
	testq	%rax, %rax
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.5:
	movq	_TRANSACTION_STATUS_COMMITTED@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	movl	%ebx, %r13d
	movq	_ClogCtl@GOTPCREL(%rip), %r12
	jne	LBB0_9
## %bb.6:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_9
## %bb.7:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %r15
	movl	(%r14,%rbx,4), %edi
	callq	_TransactionIdToPage
	xorl	%edi, %edi
	cmpq	%rax, %r15
	sete	%dil
	callq	_Assert
	movl	(%r14,%rbx,4), %edi
	movq	_TRANSACTION_STATUS_SUB_COMMITTED@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	callq	_TransactionIdSetStatusBit
	incq	%rbx
	cmpq	%rbx, -72(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_8
LBB0_9:
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	callq	_TransactionIdSetStatusBit
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ebx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
LBB0_10:
	testl	%edx, %edx
	movq	_ClogCtl@GOTPCREL(%rip), %rax
	jle	LBB0_13
## %bb.11:
	movl	%edx, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	_ClogCtl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax,%rcx,8), %r13
	movl	(%r14,%r15,4), %edi
	callq	_TransactionIdToPage
	xorl	%edi, %edi
	cmpq	%rax, %r13
	sete	%dil
	callq	_Assert
	movl	(%r14,%r15,4), %edi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	movl	%ebx, %ecx
	callq	_TransactionIdSetStatusBit
	movq	_ClogCtl@GOTPCREL(%rip), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	incq	%r15
	cmpq	%r15, -72(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_12
LBB0_13:
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movl	$1, (%rax,%rcx,4)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRANSACTION_STATUS_COMMITTED,8,3 ## @TRANSACTION_STATUS_COMMITTED
	.comm	_TRANSACTION_STATUS_ABORTED,8,3 ## @TRANSACTION_STATUS_ABORTED
	.comm	_TRANSACTION_STATUS_SUB_COMMITTED,8,3 ## @TRANSACTION_STATUS_SUB_COMMITTED
	.comm	_CLogControlLock,4,2            ## @CLogControlLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.comm	_ClogCtl,8,3                    ## @ClogCtl
	.no_dead_strip	_TransactionIdSetPageStatusInternal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TransactionIdSetPageStatusInternal
_TransactionIdSetPageStatusInternal:    ; @TransactionIdSetPageStatusInternal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x24, x5
	mov	x19, x4
	mov	x20, x3
	mov	x28, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x27, _TRANSACTION_STATUS_COMMITTED@GOTPAGE
Lloh1:
	ldr	x27, [x27, _TRANSACTION_STATUS_COMMITTED@GOTPAGEOFF]
	ldr	x8, [x27]
Lloh2:
	adrp	x9, _TRANSACTION_STATUS_ABORTED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TRANSACTION_STATUS_ABORTED@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x3
	ccmp	x9, x3, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_5
LBB0_2:
Lloh5:
	adrp	x8, _TRANSACTION_STATUS_SUB_COMMITTED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TRANSACTION_STATUS_SUB_COMMITTED@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_TransactionIdIsValid
	cmp	x0, #0
	cset	w0, eq
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	bl	_Assert
Lloh8:
	adrp	x8, _CLogControlLock@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CLogControlLock@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_LWLockHeldByMeInMode
	bl	_Assert
Lloh14:
	adrp	x26, _ClogCtl@GOTPAGE
Lloh15:
	ldr	x26, [x26, _ClogCtl@GOTPAGEOFF]
	ldr	x25, [x26]
	mov	x0, x19
	bl	_XLogRecPtrIsInvalid
	mov	x2, x0
	mov	x0, x25
	mov	x1, x24
	mov	x3, x22
	bl	_SimpleLruReadPage
	mov	x24, x0
	mov	x0, x22
	bl	_TransactionIdIsValid
	cbz	x0, LBB0_10
; %bb.6:
	stp	w22, w21, [sp, #8]              ; 8-byte Folded Spill
	ldr	x8, [x27]
	cmp	x8, x20
	ccmp	w21, #1, #8, eq
	b.lt	LBB0_9
; %bb.7:
	mov	x8, x24
	sxtw	x25, w8
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	mov	w27, w8
Lloh16:
	adrp	x22, _TRANSACTION_STATUS_SUB_COMMITTED@GOTPAGE
Lloh17:
	ldr	x22, [x22, _TRANSACTION_STATUS_SUB_COMMITTED@GOTPAGEOFF]
	mov	x21, x28
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x23, [x8, x25, lsl #3]
	ldr	w0, [x21]
	bl	_TransactionIdToPage
	cmp	x23, x0
	cset	w0, eq
	bl	_Assert
	ldr	w0, [x21], #4
	ldr	x1, [x22]
	mov	x2, x19
	mov	x3, x24
	bl	_TransactionIdSetStatusBit
	subs	x27, x27, #1
	b.ne	LBB0_8
LBB0_9:
	ldr	w0, [sp, #8]                    ; 4-byte Folded Reload
	mov	x1, x20
	mov	x2, x19
	mov	x3, x24
	bl	_TransactionIdSetStatusBit
	ldr	w21, [sp, #12]                  ; 4-byte Folded Reload
LBB0_10:
	sxtw	x23, w24
	cmp	w21, #1
	b.lt	LBB0_13
; %bb.11:
	mov	w22, w21
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x21, [x8, x23, lsl #3]
	ldr	w0, [x28]
	bl	_TransactionIdToPage
	cmp	x21, x0
	cset	w0, eq
	bl	_Assert
	ldr	w0, [x28], #4
	mov	x1, x20
	mov	x2, x19
	mov	x3, x24
	bl	_TransactionIdSetStatusBit
	subs	x22, x22, #1
	b.ne	LBB0_12
LBB0_13:
	ldr	x8, [x26]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	mov	w9, #1
	str	w9, [x8, x23, lsl #2]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_TRANSACTION_STATUS_COMMITTED,8,3 ; @TRANSACTION_STATUS_COMMITTED
	.comm	_TRANSACTION_STATUS_ABORTED,8,3 ; @TRANSACTION_STATUS_ABORTED
	.comm	_TRANSACTION_STATUS_SUB_COMMITTED,8,3 ; @TRANSACTION_STATUS_SUB_COMMITTED
	.comm	_CLogControlLock,4,2            ; @CLogControlLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.comm	_ClogCtl,8,3                    ; @ClogCtl
	.no_dead_strip	_TransactionIdSetPageStatusInternal
.subsections_via_symbols
