	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TransactionGroupUpdateXidStatus
_TransactionGroupUpdateXidStatus:       ## @TransactionGroupUpdateXidStatus
	.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, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, %r15d
	movl	%esi, %r12d
	movl	%edi, %r14d
	movq	_ProcGlobal@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_MyProc@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	callq	_TransactionIdIsValid
	movl	%eax, %edi
	callq	_Assert
	movl	$1, (%r13)
	movl	%r14d, 28(%r13)
	movl	%r12d, 20(%r13)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r13)
	movl	%r15d, 16(%r13)
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_pg_atomic_read_u32
	movq	%rax, %rsi
	movq	%rax, -56(%rbp)
	leaq	12(%r13), %r14
	movq	_INVALID_PGPROCNO@GOTPCREL(%rip), %r12
	leaq	-56(%rbp), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_pg_atomic_write_u32
	movq	32(%r13), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_pg_atomic_compare_exchange_u32
	movq	-56(%rbp), %rsi
	testq	%rax, %rax
	jne	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%r12), %rsi
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_ProcGlobal@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	leaq	(%rsi,%rsi,4), %rcx
	movl	4(%rax,%rcx,8), %eax
	cmpl	4(%r13), %eax
	je	LBB0_4
## %bb.3:
	movl	$0, (%r13)
	xorl	%r14d, %r14d
	jmp	LBB0_18
LBB0_5:
	cmpq	(%r12), %rsi
	jne	LBB0_6
## %bb.10:
	movq	_CLogControlLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LW_EXCLUSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LWLockAcquire
	movq	(%r12), %rsi
	movq	%rbx, %rdi
	callq	_pg_atomic_exchange_u32
	movq	%rax, -56(%rbp)
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpq	(%r12), %rax
	movq	_ProcGlobal@GOTPCREL(%rip), %r15
	je	LBB0_13
## %bb.11:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax), %r13
	movq	8(%rax), %r14
	xorl	%edi, %edi
	cmpl	$0, 4(%r14,%rbx,8)
	sete	%dil
	callq	_Assert
	leaq	(%rbx,%rbx,4), %r12
	movl	28(%r13,%r12,8), %edi
	movl	(%r14,%rbx,8), %esi
	movl	24(%r13,%r12,8), %edx
	movl	20(%r13,%r12,8), %ecx
	movl	4(%r13,%r12,8), %r9d
	movl	16(%r13,%r12,8), %r8d
	callq	_TransactionIdSetPageStatusInternal
	leaq	12(,%r12,8), %rdi
	addq	%r13, %rdi
	movq	_INVALID_PGPROCNO@GOTPCREL(%rip), %r12
	callq	_pg_atomic_read_u32
	movq	%rax, %rbx
	movq	%rax, -56(%rbp)
	cmpq	(%r12), %rax
	jne	LBB0_12
LBB0_13:
	movq	_CLogControlLock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LWLockRelease
	movl	$1, %r14d
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%r12), %rcx
	jne	LBB0_14
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	_INVALID_PGPROCNO@GOTPCREL(%rip), %r12
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%r12), %rcx
	movq	_ProcGlobal@GOTPCREL(%rip), %r15
	je	LBB0_17
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax), %rbx
	leaq	(%rcx,%rcx,4), %r14
	leaq	(%rbx,%r14,8), %r15
	leaq	(%rbx,%r14,8), %r13
	addq	$12, %r13
	movq	%r13, %rdi
	callq	_pg_atomic_read_u32
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rsi
	movq	%r13, %rdi
	callq	_pg_atomic_write_u32
	xorl	%eax, %eax
	callq	_pg_write_barrier
	movl	$0, (%rbx,%r14,8)
	movq	_MyProc@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	8(%rbx,%r14,8), %edi
	callq	_PGSemaphoreUnlock
	jmp	LBB0_16
LBB0_6:
	movq	_WAIT_EVENT_CLOG_GROUP_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pgstat_report_wait_start
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r13), %edi
	callq	_PGSemaphoreLock
	incl	%ebx
	cmpl	$0, (%r13)
	jne	LBB0_7
## %bb.8:
	xorl	%eax, %eax
	callq	_pgstat_report_wait_end
	movq	%r14, %rdi
	callq	_pg_atomic_read_u32
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	sete	%dil
	callq	_Assert
	movl	$1, %r14d
	cmpl	$1, %ebx
	je	LBB0_18
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r13), %edi
	callq	_PGSemaphoreUnlock
	decl	%ebx
	cmpl	$1, %ebx
	jg	LBB0_9
	jmp	LBB0_18
LBB0_17:
	movl	$1, %r14d
LBB0_18:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ProcGlobal,8,3                 ## @ProcGlobal
	.comm	_MyProc,8,3                     ## @MyProc
	.comm	_INVALID_PGPROCNO,8,3           ## @INVALID_PGPROCNO
	.comm	_WAIT_EVENT_CLOG_GROUP_UPDATE,4,2 ## @WAIT_EVENT_CLOG_GROUP_UPDATE
	.comm	_CLogControlLock,4,2            ## @CLogControlLock
	.comm	_LW_EXCLUSIVE,4,2               ## @LW_EXCLUSIVE
	.no_dead_strip	_TransactionGroupUpdateXidStatus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TransactionGroupUpdateXidStatus
_TransactionGroupUpdateXidStatus:       ; @TransactionGroupUpdateXidStatus
	.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	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _ProcGlobal@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ProcGlobal@GOTPAGEOFF]
	ldr	x26, [x23]
Lloh2:
	adrp	x24, _MyProc@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MyProc@GOTPAGEOFF]
	ldr	x25, [x24]
	bl	_TransactionIdIsValid
	bl	_Assert
	mov	w8, #1
	str	w20, [x25, #28]
	stp	w8, w19, [x25]
	add	x20, x26, #16
	stp	w21, w22, [x25, #16]
	mov	x0, x20
	bl	_pg_atomic_read_u32
	mov	x1, x0
	str	x0, [sp, #8]
	add	x19, x25, #12
Lloh4:
	adrp	x22, _INVALID_PGPROCNO@GOTPAGE
Lloh5:
	ldr	x22, [x22, _INVALID_PGPROCNO@GOTPAGEOFF]
	mov	w21, #40
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_pg_atomic_write_u32
	ldr	x2, [x25, #32]
	add	x1, sp, #8
	mov	x0, x20
	bl	_pg_atomic_compare_exchange_u32
	ldr	x1, [sp, #8]
	cbnz	x0, LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	cmp	x1, x8
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23]
	ldr	x8, [x8]
	madd	x8, x1, x21, x8
	ldr	w8, [x8, #4]
	ldr	w9, [x25, #4]
	cmp	w8, w9
	b.eq	LBB0_1
; %bb.4:
	mov	w0, #0
	str	wzr, [x25]
	b	LBB0_19
LBB0_5:
	ldr	x8, [x22]
	cmp	x1, x8
	b.ne	LBB0_14
; %bb.6:
Lloh6:
	adrp	x21, _CLogControlLock@GOTPAGE
Lloh7:
	ldr	x21, [x21, _CLogControlLock@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh8:
	adrp	x8, _LW_EXCLUSIVE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LW_EXCLUSIVE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_LWLockAcquire
	ldr	x1, [x22]
	mov	x0, x20
	bl	_pg_atomic_exchange_u32
	mov	x19, x0
	str	x0, [sp, #8]
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.7:
	mov	w25, #40
	mov	x20, x19
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldp	x26, x8, [x8]
	add	x27, x8, x20, lsl #3
	ldr	w8, [x27, #4]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	madd	x20, x20, x25, x26
	ldr	w1, [x27]
	ldp	w2, w0, [x20, #24]
	ldp	w4, w3, [x20, #16]
	ldr	w5, [x20, #4]
	bl	_TransactionIdSetPageStatusInternal
	add	x0, x20, #12
	bl	_pg_atomic_read_u32
	mov	x20, x0
	str	x0, [sp, #8]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_8
LBB0_9:
	ldr	w0, [x21]
	bl	_LWLockRelease
	ldr	x8, [x22]
	cmp	x19, x8
	b.eq	LBB0_18
; %bb.10:
	mov	w25, #40
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x22]
	mov	x19, x20
	cmp	x20, x8
	b.eq	LBB0_18
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	x26, [x8]
	madd	x27, x19, x25, x26
	add	x21, x27, #12
	mov	x0, x21
	bl	_pg_atomic_read_u32
	mov	x20, x0
	ldr	x1, [x22]
	mov	x0, x21
	bl	_pg_atomic_write_u32
	bl	_pg_write_barrier
	str	wzr, [x27]
	ldr	x8, [x24]
	cmp	x27, x8
	b.eq	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	madd	x8, x19, x25, x26
	ldr	w0, [x8, #8]
	bl	_PGSemaphoreUnlock
	b	LBB0_11
LBB0_14:
Lloh11:
	adrp	x8, _WAIT_EVENT_CLOG_GROUP_UPDATE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WAIT_EVENT_CLOG_GROUP_UPDATE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_pgstat_report_wait_start
	mov	w20, #0
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25, #8]
	bl	_PGSemaphoreLock
	ldr	w8, [x25]
	add	w20, w20, #1
	cbnz	w8, LBB0_15
; %bb.16:
	bl	_pgstat_report_wait_end
	mov	x0, x19
	bl	_pg_atomic_read_u32
	ldr	x8, [x22]
	cmp	x0, x8
	cset	w0, eq
	bl	_Assert
	cmp	w20, #1
	b.eq	LBB0_18
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25, #8]
	bl	_PGSemaphoreUnlock
	sub	w20, w20, #1
	cmp	w20, #1
	b.gt	LBB0_17
LBB0_18:
	mov	w0, #1
LBB0_19:
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ProcGlobal,8,3                 ; @ProcGlobal
	.comm	_MyProc,8,3                     ; @MyProc
	.comm	_INVALID_PGPROCNO,8,3           ; @INVALID_PGPROCNO
	.comm	_WAIT_EVENT_CLOG_GROUP_UPDATE,4,2 ; @WAIT_EVENT_CLOG_GROUP_UPDATE
	.comm	_CLogControlLock,4,2            ; @CLogControlLock
	.comm	_LW_EXCLUSIVE,4,2               ; @LW_EXCLUSIVE
	.no_dead_strip	_TransactionGroupUpdateXidStatus
.subsections_via_symbols
