	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AtEOSubXact_PgStat             ## -- Begin function AtEOSubXact_PgStat
	.p2align	4, 0x90
_AtEOSubXact_PgStat:                    ## @AtEOSubXact_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	%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	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	_pgStatXactStack@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_16
## %bb.1:
	movl	%esi, %r12d
	cmpl	%esi, (%rdx)
	jge	LBB0_2
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	72(%rdx), %rcx
	movq	%rcx, (%rax)
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	40(%rdx), %r15
	testq	%r15, %r15
	je	LBB0_15
## %bb.3:
	leal	-1(%r12), %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r13d, %edi
	callq	_get_tabstat_stack_level
	movq	40(%rax), %rcx
	movq	%rcx, 48(%rbx)
	movq	%rbx, 40(%rax)
	movl	%r13d, (%rbx)
	testq	%r15, %r15
	je	LBB0_15
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rbx
	movq	48(%r15), %r15
	xorl	%edi, %edi
	cmpl	%r12d, (%rbx)
	sete	%dil
	callq	_Assert
	movq	64(%rbx), %r14
	xorl	%edi, %edi
	cmpq	%rbx, (%r14)
	sete	%dil
	callq	_Assert
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r13d, (%rdi)
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 56(%rbx)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_pgstat_truncate_save_counters
	movq	8(%rbx), %rdi
	movups	16(%rbx), %xmm0
	movups	%xmm0, 16(%rdi)
	movq	32(%rbx), %rax
	movq	%rax, 32(%rdi)
	movq	%rdi, (%r14)
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_pgstat_truncate_restore_counters
	movdqu	16(%rbx), %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddq	%xmm0, %xmm1
	movdqu	8(%r14), %xmm2
	shufps	$132, %xmm0, %xmm1              ## xmm1 = xmm1[0,1],xmm0[0,2]
	pinsrd	$1, 32(%rbx), %xmm1
	paddd	%xmm2, %xmm1
	movdqu	%xmm1, 8(%r14)
	movq	8(%rbx), %rax
	movq	%rax, (%r14)
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_pfree
	testq	%r15, %r15
	jne	LBB0_4
	jmp	LBB0_15
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movdqu	16(%rbx), %xmm0
	movdqu	16(%rdi), %xmm1
	paddq	%xmm0, %xmm1
	movdqu	%xmm1, 16(%rdi)
	movq	32(%rbx), %rax
	addq	%rax, 32(%rdi)
	movq	%rdi, (%r14)
	jmp	LBB0_13
LBB0_15:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_pgStatXactStack,8,3            ## @pgStatXactStack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AtEOSubXact_PgStat             ; -- Begin function AtEOSubXact_PgStat
	.p2align	2
_AtEOSubXact_PgStat:                    ; @AtEOSubXact_PgStat
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, _pgStatXactStack@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pgStatXactStack@GOTPAGEOFF]
	ldr	x21, [x8]
	cbz	x21, LBB0_2
; %bb.1:
	mov	x19, x1
	ldr	w9, [x21]
	cmp	w9, w1
	b.ge	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x9, [x21, #72]
	str	x9, [x8]
	ldr	x24, [x21, #40]
	cbz	x24, LBB0_15
; %bb.4:
	mov	x20, x0
	sub	w22, w19, #1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_get_tabstat_stack_level
	ldr	x8, [x0, #40]
	str	x8, [x23, #48]
	str	x23, [x0, #40]
	str	w22, [x23]
	cbz	x24, LBB0_15
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x23, x24
	ldr	x24, [x24, #48]
	ldr	w8, [x23]
	cmp	w8, w19
	cset	w0, eq
	bl	_Assert
	ldr	x25, [x23, #64]
	ldr	x8, [x25]
	cmp	x8, x23
	cset	w0, eq
	bl	_Assert
	cbz	w20, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x23, #8]
	cbz	x0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x0]
	cmp	w8, w22
	b.ne	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x23, #56]
	cbz	x8, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	bl	_pgstat_truncate_save_counters
	ldr	x0, [x23, #8]
	ldr	q0, [x23, #16]
	str	q0, [x0, #16]
	ldr	x8, [x23, #32]
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	bl	_pgstat_truncate_restore_counters
	ldr	q0, [x23, #16]
	mov.s	w8, v0[2]
	add	x9, x23, #32
	fmov	w10, s0
	add	w8, w10, w8
	fmov	s1, w8
	ld1.s	{ v1 }[1], [x9]
	ldur	q2, [x25, #8]
	xtn2.4s	v1, v0
	add.4s	v0, v2, v1
	stur	q0, [x25, #8]
	ldr	x8, [x23, #8]
	str	x8, [x25]
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	q0, [x23, #16]
	ldr	q1, [x0, #16]
	add.2d	v0, v1, v0
	str	q0, [x0, #16]
	ldr	x8, [x23, #32]
	ldr	x9, [x0, #32]
	add	x8, x9, x8
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	str	x8, [x0, #32]
	str	x0, [x25]
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	bl	_pfree
	cbnz	x24, LBB0_6
LBB0_15:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_pfree
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_pgStatXactStack,8,3            ; @pgStatXactStack
.subsections_via_symbols
