	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AtEOXact_PgStat                ## -- Begin function AtEOXact_PgStat
	.p2align	4, 0x90
_AtEOXact_PgStat:                       ## @AtEOXact_PgStat
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	testl	%esi, %esi
	jne	LBB0_5
## %bb.1:
	testl	%r14d, %r14d
	jne	LBB0_2
## %bb.3:
	movq	_pgStatXactRollback@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_pgStatXactCommit@GOTPCREL(%rip), %rax
LBB0_4:
	incl	(%rax)
LBB0_5:
	movq	_pgStatXactStack@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.6:
	xorl	%edi, %edi
	cmpl	$1, (%rbx)
	sete	%dil
	callq	_Assert
	xorl	%edi, %edi
	cmpq	$0, 16(%rbx)
	sete	%dil
	callq	_Assert
	movq	8(%rbx), %rbx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	addq	%rdi, %rax
	addq	%rax, 8(%r12)
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	$0, (%r12)
	movq	56(%rbx), %rbx
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%edi, %edi
	cmpl	$1, (%rbx)
	sete	%dil
	callq	_Assert
	xorl	%edi, %edi
	cmpq	$0, 48(%rbx)
	sete	%dil
	callq	_Assert
	movq	40(%rbx), %r12
	xorl	%edi, %edi
	cmpq	%rbx, (%r12)
	sete	%dil
	callq	_Assert
	testl	%r14d, %r14d
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	callq	_pgstat_truncate_restore_counters
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%rbx), %rdi
	addl	%edi, 48(%r12)
	movq	8(%rbx), %rax
	addl	%eax, 44(%r12)
	movq	24(%rbx), %rdx
	addl	%edx, 40(%r12)
	testl	%r14d, %r14d
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	32(%rbx), %rsi
	movq	%rsi, 32(%r12)
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r12), %rsi
	movq	24(%r12), %r8
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rdi, %rcx
	subq	%rdx, %rcx
	addq	%r8, %rcx
	movq	%rcx, 24(%r12)
	addq	%rdx, %rsi
	addq	%rax, %rsi
	movq	%rsi, 8(%r12)
	addl	%edi, %eax
	addl	%eax, %edx
	addl	%edx, 16(%r12)
	jmp	LBB0_16
LBB0_17:
	movq	$0, (%r15)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pgstat_clear_snapshot          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_pgStatXactCommit,4,2           ## @pgStatXactCommit
	.comm	_pgStatXactRollback,4,2         ## @pgStatXactRollback
	.comm	_pgStatXactStack,8,3            ## @pgStatXactStack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AtEOXact_PgStat                ; -- Begin function AtEOXact_PgStat
	.p2align	2
_AtEOXact_PgStat:                       ; @AtEOXact_PgStat
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	cbnz	w1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _pgStatXactCommit@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pgStatXactCommit@GOTPAGEOFF]
Lloh2:
	adrp	x9, _pgStatXactRollback@GOTPAGE
Lloh3:
	ldr	x9, [x9, _pgStatXactRollback@GOTPAGEOFF]
	cmp	w19, #0
	csel	x8, x9, x8, eq
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_2:
Lloh4:
	adrp	x21, _pgStatXactStack@GOTPAGE
Lloh5:
	ldr	x21, [x21, _pgStatXactStack@GOTPAGEOFF]
	ldr	x20, [x21]
	cbz	x20, LBB0_4
; %bb.3:
	ldr	w8, [x20]
	cmp	w8, #1
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x20, #16]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	ldr	x20, [x20, #8]
	cbnz	x20, LBB0_7
LBB0_4:
	str	xzr, [x21]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_pgstat_clear_snapshot
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	addp.2d	d0, v0
	ldr	x8, [x22, #8]
	fmov	x9, d0
	add	x8, x9, x8
	str	x8, [x22, #8]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	str	xzr, [x22]
	ldr	x20, [x20, #56]
	cbz	x20, LBB0_4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	cmp	w8, #1
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x20, #48]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	ldr	x22, [x20, #40]
	ldr	x8, [x22]
	cmp	x8, x20
	cset	w0, eq
	bl	_Assert
	cbnz	w19, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_pgstat_truncate_restore_counters
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldur	q0, [x20, #8]
	ldur	d1, [x22, #44]
	xtn.2s	v2, v0
	add.2s	v1, v1, v2
	stur	d1, [x22, #44]
	ldr	x8, [x20, #24]
	ldr	w9, [x22, #40]
	add	w9, w9, w8
	str	w9, [x22, #40]
	cbz	w19, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x20, #32]
	str	x9, [x22, #32]
	cbz	x9, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x9, #0
	mov	x10, #0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x10, [x22, #24]
	ldr	x9, [x22, #8]
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	mov.d	x11, v0[1]
	sub	x12, x11, x8
	add	x10, x12, x10
	str	x10, [x22, #24]
	fmov	x10, d0
	add	x12, x8, x10
	add	x9, x12, x9
	str	x9, [x22, #8]
	add	w9, w10, w11
	add	w8, w9, w8
	ldr	w9, [x22, #16]
	add	w8, w9, w8
	str	w8, [x22, #16]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_pgStatXactCommit,4,2           ; @pgStatXactCommit
	.comm	_pgStatXactRollback,4,2         ; @pgStatXactRollback
	.comm	_pgStatXactStack,8,3            ; @pgStatXactStack
.subsections_via_symbols
