	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgstat_report_stat             ## -- Begin function pgstat_report_stat
	.p2align	4, 0x90
_pgstat_report_stat:                    ## @pgstat_report_stat
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_pgStatTabList@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rax), %rax
	movq	_pgStatXactCommit@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	je	LBB0_3
	jmp	LBB0_5
LBB0_2:
	movq	_pgStatXactCommit@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_5
LBB0_3:
	movq	_pgStatXactRollback@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	_have_function_stats@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_26
LBB0_5:
	xorl	%eax, %eax
	callq	_GetCurrentTransactionStopTimestamp
	movl	%eax, %ebx
	testl	%r14d, %r14d
	jne	LBB0_7
## %bb.6:
	movl	_pgstat_report_stat.last_report(%rip), %edi
	movq	_PGSTAT_STAT_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %esi
	callq	_TimestampDifferenceExceeds
	testl	%eax, %eax
	je	LBB0_26
LBB0_7:
	movl	%ebx, _pgstat_report_stat.last_report(%rip)
	movq	_pgStatTabHash@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_hash_destroy
LBB0_9:
	movq	$0, (%rbx)
	movq	_MyDatabaseId@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	$0, -88(%rbp)
	movq	$0, -64(%rbp)
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	jne	LBB0_11
## %bb.10:
	xorl	%eax, %eax
	testb	%al, %al
	je	LBB0_20
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	8(%rbx), %rdi
	shll	$3, %eax
	leal	(%rax,%rax,2), %edx
	xorl	%esi, %esi
	callq	_MemSet
	movq	$0, (%rbx)
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_18
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	movq	(%rbx), %rax
	testq	%rax, %rax
	jle	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=2
	incq	%r13
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	(%rbx), %rax
	addq	$24, %r12
	cmpq	%r13, %rax
	jle	LBB0_17
LBB0_13:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rbx), %r14
	leaq	(%r14,%r12), %rbx
	xorl	%edi, %edi
	cmpq	$0, 16(%r14,%r12)
	sete	%dil
	callq	_Assert
	movq	%rbx, %rdi
	leaq	_pgstat_report_stat.all_zeroes(%rip), %rsi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	8(%r14,%r12), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	leaq	-56(%rbp), %rax
	leaq	-80(%rbp), %rcx
	cmoveq	%rcx, %rax
	movq	(%rax), %rax
	leaq	-64(%rbp), %r15
	leaq	-88(%rbp), %rcx
	cmoveq	%rcx, %r15
	movq	(%r15), %rcx
	movl	4(%r14,%r12), %edx
	leaq	(%rax,%rcx,8), %rdi
	movl	%edx, 4(%rax,%rcx,8)
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	(%r15), %rax
	incq	%rax
	movq	%rax, (%r15)
	movq	_PGSTAT_NUM_TABENTRIES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jb	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	cmpq	$0, -96(%rbp)                   ## 8-byte Folded Reload
	leaq	-64(%rbp), %rdi
	leaq	-88(%rbp), %rax
	cmoveq	%rax, %rdi
	callq	_pgstat_send_tabstat
	movq	$0, (%r15)
	jmp	LBB0_16
LBB0_18:
	cmpq	$0, -88(%rbp)
	setne	%al
	testb	%al, %al
	jne	LBB0_22
LBB0_20:
	movq	_pgStatXactCommit@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jg	LBB0_22
## %bb.21:
	movq	_pgStatXactRollback@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_23
LBB0_22:
	leaq	-88(%rbp), %rdi
	callq	_pgstat_send_tabstat
LBB0_23:
	cmpq	$0, -64(%rbp)
	je	LBB0_25
## %bb.24:
	leaq	-64(%rbp), %rdi
	callq	_pgstat_send_tabstat
LBB0_25:
	xorl	%eax, %eax
	callq	_pgstat_send_funcstats
LBB0_26:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @pgstat_report_stat.all_zeroes
_pgstat_report_stat.all_zeroes:
	.long	0                               ## 0x0

.zerofill __DATA,__bss,_pgstat_report_stat.last_report,4,2 ## @pgstat_report_stat.last_report
	.comm	_pgStatTabList,8,3              ## @pgStatTabList
	.comm	_pgStatXactCommit,8,3           ## @pgStatXactCommit
	.comm	_pgStatXactRollback,8,3         ## @pgStatXactRollback
	.comm	_have_function_stats,4,2        ## @have_function_stats
	.comm	_PGSTAT_STAT_INTERVAL,4,2       ## @PGSTAT_STAT_INTERVAL
	.comm	_pgStatTabHash,8,3              ## @pgStatTabHash
	.comm	_MyDatabaseId,4,2               ## @MyDatabaseId
	.comm	_InvalidOid,4,2                 ## @InvalidOid
	.comm	_PGSTAT_NUM_TABENTRIES,8,3      ## @PGSTAT_NUM_TABENTRIES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgstat_report_stat             ; -- Begin function pgstat_report_stat
	.p2align	2
_pgstat_report_stat:                    ; @pgstat_report_stat
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x0
Lloh0:
	adrp	x23, _pgStatTabList@GOTPAGE
Lloh1:
	ldr	x23, [x23, _pgStatTabList@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh2:
	adrp	x22, _pgStatXactCommit@GOTPAGE
Lloh3:
	ldr	x22, [x22, _pgStatXactCommit@GOTPAGEOFF]
Lloh4:
	adrp	x24, _pgStatXactRollback@GOTPAGE
Lloh5:
	ldr	x24, [x24, _pgStatXactRollback@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x8]
	ldr	x9, [x22]
	orr	x8, x8, x9
	cbz	x8, LBB0_3
	b	LBB0_4
LBB0_2:
	ldr	x8, [x22]
	cbnz	x8, LBB0_4
LBB0_3:
	ldr	x8, [x24]
Lloh6:
	adrp	x9, _have_function_stats@GOTPAGE
Lloh7:
	ldr	x9, [x9, _have_function_stats@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	x8, #0
	ccmp	w9, #0, #0, eq
	b.eq	LBB0_24
LBB0_4:
	bl	_GetCurrentTransactionStopTimestamp
	mov	x20, x0
	adrp	x21, _pgstat_report_stat.last_report@PAGE
	cbnz	w19, LBB0_6
; %bb.5:
	ldr	w0, [x21, _pgstat_report_stat.last_report@PAGEOFF]
Lloh9:
	adrp	x8, _PGSTAT_STAT_INTERVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PGSTAT_STAT_INTERVAL@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_TimestampDifferenceExceeds
	cbz	w0, LBB0_24
LBB0_6:
	str	w20, [x21, _pgstat_report_stat.last_report@PAGEOFF]
Lloh12:
	adrp	x19, _pgStatTabHash@GOTPAGE
Lloh13:
	ldr	x19, [x19, _pgStatTabHash@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_hash_destroy
LBB0_8:
	str	xzr, [x19]
Lloh14:
	adrp	x8, _MyDatabaseId@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MyDatabaseId@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _InvalidOid@GOTPAGE
Lloh18:
	ldr	x9, [x9, _InvalidOid@GOTPAGEOFF]
	str	w8, [sp, #40]
Lloh19:
	ldr	w8, [x9]
	str	w8, [sp, #16]
	str	xzr, [sp, #24]
	str	xzr, [sp]
	ldr	x23, [x23]
	cbz	x23, LBB0_18
; %bb.9:
	add	x24, sp, #24
	mov	x25, sp
Lloh20:
	adrp	x26, _PGSTAT_NUM_TABENTRIES@GOTPAGE
Lloh21:
	ldr	x26, [x26, _PGSTAT_NUM_TABENTRIES@GOTPAGEOFF]
Lloh22:
	adrp	x19, _pgstat_report_stat.all_zeroes@PAGE
Lloh23:
	add	x19, x19, _pgstat_report_stat.all_zeroes@PAGEOFF
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x0, [x23, #8]
	add	w8, w8, w8, lsl #1
	lsl	w2, w8, #3
	mov	w1, #0
	bl	_MemSet
	str	xzr, [x23]
	ldr	x23, [x23, #16]
	cbz	x23, LBB0_17
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	ldr	x8, [x23]
	cmp	x8, #1
	b.lt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x27, #0
	mov	x28, #0
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	add	x28, x28, #1
	ldr	x8, [x23]
	add	x27, x27, #24
	cmp	x8, x28
	b.le	LBB0_10
LBB0_14:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x23, #8]
	add	x20, x8, x27
	ldr	x8, [x20, #16]
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x20
	mov	x1, x19
	mov	w2, #4
	bl	_memcmp
	cbz	x0, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	ldr	x21, [x20, #8]
	add	x8, x24, #8
	add	x9, x25, #8
	cmp	x21, #0
	csel	x8, x8, x9, eq
	ldr	x8, [x8]
	csel	x22, x24, x25, eq
	ldr	x9, [x22]
	ldr	w10, [x20, #4]
	add	x0, x8, x9, lsl #3
	str	w10, [x0, #4]
	mov	x1, x20
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x22]
	add	x8, x8, #1
	str	x8, [x22]
	ldr	x9, [x26]
	cmp	x8, x9
	b.lo	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=2
	cmp	x21, #0
	csel	x0, x24, x25, eq
	bl	_pgstat_send_tabstat
	str	xzr, [x22]
	b	LBB0_13
LBB0_17:
	ldr	x8, [sp, #24]
	cmp	x8, #0
	cset	w8, ne
Lloh24:
	adrp	x22, _pgStatXactCommit@GOTPAGE
Lloh25:
	ldr	x22, [x22, _pgStatXactCommit@GOTPAGEOFF]
Lloh26:
	adrp	x24, _pgStatXactRollback@GOTPAGE
Lloh27:
	ldr	x24, [x24, _pgStatXactRollback@GOTPAGEOFF]
	tbz	w8, #0, LBB0_19
	b	LBB0_20
LBB0_18:
	mov	w8, #0
	tbnz	w8, #0, LBB0_20
LBB0_19:
	ldr	x8, [x22]
	ldr	x9, [x24]
	cmp	x8, #0
	ccmp	x9, #1, #0, le
	b.lt	LBB0_21
LBB0_20:
	add	x0, sp, #24
	bl	_pgstat_send_tabstat
LBB0_21:
	ldr	x8, [sp]
	cbz	x8, LBB0_23
; %bb.22:
	mov	x0, sp
	bl	_pgstat_send_tabstat
LBB0_23:
	bl	_pgstat_send_funcstats
LBB0_24:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @pgstat_report_stat.all_zeroes
_pgstat_report_stat.all_zeroes:
	.long	0                               ; 0x0

.zerofill __DATA,__bss,_pgstat_report_stat.last_report,4,2 ; @pgstat_report_stat.last_report
	.comm	_pgStatTabList,8,3              ; @pgStatTabList
	.comm	_pgStatXactCommit,8,3           ; @pgStatXactCommit
	.comm	_pgStatXactRollback,8,3         ; @pgStatXactRollback
	.comm	_have_function_stats,4,2        ; @have_function_stats
	.comm	_PGSTAT_STAT_INTERVAL,4,2       ; @PGSTAT_STAT_INTERVAL
	.comm	_pgStatTabHash,8,3              ; @pgStatTabHash
	.comm	_MyDatabaseId,4,2               ; @MyDatabaseId
	.comm	_InvalidOid,4,2                 ; @InvalidOid
	.comm	_PGSTAT_NUM_TABENTRIES,8,3      ; @PGSTAT_NUM_TABENTRIES
.subsections_via_symbols
