	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TransactionIdSetStatusBit
_TransactionIdSetStatusBit:             ## @TransactionIdSetStatusBit
	.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
	movl	%ecx, %ebx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movl	%edi, %r13d
	callq	_TransactionIdToByte
	movl	%eax, %r14d
	movl	%r13d, %edi
	callq	_TransactionIdToBIndex
	movl	%eax, %r12d
	movq	_CLOG_BITS_PER_XACT@GOTPCREL(%rip), %rax
	imull	(%rax), %r12d
	movq	_ClogCtl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movslq	%ebx, %rcx
	movl	%r15d, %ebx
	movq	(%rax,%rcx,8), %r15
	movslq	%r14d, %r14
	movsbl	(%r15,%r14), %eax
	movl	%r12d, %ecx
	sarl	%cl, %eax
	movq	_CLOG_XACT_BITMASK@GOTPCREL(%rip), %rdx
	movq	_TRANSACTION_STATUS_SUB_COMMITTED@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	_InRecovery@GOTPCREL(%rip), %rsi
	andb	(%rdx), %al
	cmpq	$0, (%rsi)
	je	LBB0_3
## %bb.1:
	cmpb	%bl, %cl
	jne	LBB0_3
## %bb.2:
	movq	_TRANSACTION_STATUS_COMMITTED@GOTPCREL(%rip), %rdx
	cmpb	(%rdx), %al
	je	LBB0_10
LBB0_3:
	movl	$1, %edi
	testb	%al, %al
	je	LBB0_7
## %bb.4:
	cmpb	%cl, %al
	jne	LBB0_6
## %bb.5:
	movq	_TRANSACTION_STATUS_IN_PROGRESS@GOTPCREL(%rip), %rcx
	cmpb	%bl, (%rcx)
	jne	LBB0_7
LBB0_6:
	xorl	%edi, %edi
	cmpb	%bl, %al
	sete	%dil
LBB0_7:
	callq	_Assert
	movq	_CLOG_BITS_PER_XACT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$-1, %eax
	shll	%cl, %eax
	notl	%eax
	movl	%r12d, %ecx
	shll	%cl, %eax
	notb	%al
	movzbl	%bl, %edx
	shll	%cl, %edx
	andb	(%r15,%r14), %al
	orb	%al, %dl
	movb	%dl, (%r15,%r14)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_XLogRecPtrIsInvalid
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	callq	_GetLSNIndex
	movq	_ClogCtl@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	8(%rcx), %rcx
	cltq
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	cmpq	%rdx, (%rcx,%rax,8)
	jge	LBB0_10
## %bb.9:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, (%rcx,%rax,8)
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CLOG_BITS_PER_XACT,4,2         ## @CLOG_BITS_PER_XACT
	.comm	_ClogCtl,8,3                    ## @ClogCtl
	.comm	_CLOG_XACT_BITMASK,1,0          ## @CLOG_XACT_BITMASK
	.comm	_InRecovery,8,3                 ## @InRecovery
	.comm	_TRANSACTION_STATUS_SUB_COMMITTED,1,0 ## @TRANSACTION_STATUS_SUB_COMMITTED
	.comm	_TRANSACTION_STATUS_COMMITTED,1,0 ## @TRANSACTION_STATUS_COMMITTED
	.comm	_TRANSACTION_STATUS_IN_PROGRESS,1,0 ## @TRANSACTION_STATUS_IN_PROGRESS
	.no_dead_strip	_TransactionIdSetStatusBit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TransactionIdSetStatusBit
_TransactionIdSetStatusBit:             ; @TransactionIdSetStatusBit
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	and	w28, w1, #0xff
	bl	_TransactionIdToByte
	mov	x23, x0
	mov	x0, x21
	bl	_TransactionIdToBIndex
Lloh0:
	adrp	x27, _CLOG_BITS_PER_XACT@GOTPAGE
Lloh1:
	ldr	x27, [x27, _CLOG_BITS_PER_XACT@GOTPAGEOFF]
	ldr	w8, [x27]
	mul	w25, w8, w0
Lloh2:
	adrp	x24, _ClogCtl@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ClogCtl@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x26, [x8, w20, sxtw #3]
	sxtw	x23, w23
	ldrsb	w8, [x26, x23]
	asr	w8, w8, w25
Lloh4:
	adrp	x9, _CLOG_XACT_BITMASK@GOTPAGE
Lloh5:
	ldr	x9, [x9, _CLOG_XACT_BITMASK@GOTPAGEOFF]
	ldrb	w9, [x9]
	and	w8, w8, w9
Lloh6:
	adrp	x9, _InRecovery@GOTPAGE
Lloh7:
	ldr	x9, [x9, _InRecovery@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x9]
Lloh9:
	adrp	x9, _TRANSACTION_STATUS_SUB_COMMITTED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TRANSACTION_STATUS_SUB_COMMITTED@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	x10, #0
	ccmp	w9, w28, #0, ne
	b.ne	LBB0_2
; %bb.1:
Lloh11:
	adrp	x10, _TRANSACTION_STATUS_COMMITTED@GOTPAGE
Lloh12:
	ldr	x10, [x10, _TRANSACTION_STATUS_COMMITTED@GOTPAGEOFF]
	ldrb	w10, [x10]
	cmp	w8, w10
	b.eq	LBB0_8
LBB0_2:
	cbz	w8, LBB0_4
; %bb.3:
Lloh13:
	adrp	x10, _TRANSACTION_STATUS_IN_PROGRESS@GOTPAGE
Lloh14:
	ldr	x10, [x10, _TRANSACTION_STATUS_IN_PROGRESS@GOTPAGEOFF]
	ldrb	w10, [x10]
	mov	w11, #1
	cmp	w8, w28
	cset	w12, eq
	cmp	w8, w9
	ccmp	w10, w28, #4, eq
	csel	w0, w11, w12, ne
	b	LBB0_5
LBB0_4:
	mov	w0, #1
LBB0_5:
	bl	_Assert
	ldrb	w8, [x26, x23]
	ldr	w9, [x27]
	mov	w10, #-1
	lsl	w9, w10, w9
	mvn	w9, w9
	lsl	w9, w9, w25
	bic	w8, w8, w9
	and	w9, w22, #0xff
	lsl	w9, w9, w25
	orr	w8, w8, w9
	strb	w8, [x26, x23]
	mov	x0, x19
	bl	_XLogRecPtrIsInvalid
	cbnz	w0, LBB0_8
; %bb.6:
	mov	x0, x20
	mov	x1, x21
	bl	_GetLSNIndex
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x24]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	ldr	x9, [x8, w0, sxtw #3]
	cmp	x9, x19
	b.ge	LBB0_8
; %bb.7:
	sxtw	x9, w0
	str	x19, [x8, x9, lsl #3]
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CLOG_BITS_PER_XACT,4,2         ; @CLOG_BITS_PER_XACT
	.comm	_ClogCtl,8,3                    ; @ClogCtl
	.comm	_CLOG_XACT_BITMASK,1,0          ; @CLOG_XACT_BITMASK
	.comm	_InRecovery,8,3                 ; @InRecovery
	.comm	_TRANSACTION_STATUS_SUB_COMMITTED,1,0 ; @TRANSACTION_STATUS_SUB_COMMITTED
	.comm	_TRANSACTION_STATUS_COMMITTED,1,0 ; @TRANSACTION_STATUS_COMMITTED
	.comm	_TRANSACTION_STATUS_IN_PROGRESS,1,0 ; @TRANSACTION_STATUS_IN_PROGRESS
	.no_dead_strip	_TransactionIdSetStatusBit
.subsections_via_symbols
