	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pgstat_index
_pgstat_index:                          ## @pgstat_index
	.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, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movl	%edi, %r12d
	movq	$0, -48(%rbp)
	movq	_BAS_BULKREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GetAccessStrategy
	movl	%eax, %r13d
	movq	_ExclusiveLock@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	%r12d, %edi
	callq	_LockRelationForExtension
	movl	%r12d, %edi
	callq	_RelationGetNumberOfBlocks
	movq	%rax, %r14
	movl	(%r15), %esi
	movl	%r12d, %edi
	callq	_UnlockRelationForExtension
	cmpq	%rbx, %r14
	jle	LBB0_6
## %bb.1:
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_ExclusiveLock@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%r15d, %edi
	callq	_LockRelationForExtension
	movl	%r15d, %edi
	callq	_RelationGetNumberOfBlocks
	movq	%rax, %r14
	movl	(%r12), %esi
	movl	%r15d, %edi
	callq	_UnlockRelationForExtension
	cmpq	%r14, %rbx
	movl	%r15d, %r12d
	jge	LBB0_6
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	cmpq	%r14, %rbx
	movl	%r12d, %r15d
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	jge	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%eax, %eax
	callq	_CHECK_FOR_INTERRUPTS
	leaq	-48(%rbp), %rdi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	movl	%r12d, %ecx
	callq	*%r13
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rbx
	jmp	LBB0_2
LBB0_6:
	movq	_BLCKSZ@GOTPCREL(%rip), %rax
	imull	(%rax), %r14d
	movl	%r14d, -48(%rbp)
	movq	_AccessShareLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_relation_close
	leaq	-48(%rbp), %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_build_pgstattuple_type
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BAS_BULKREAD,4,2               ## @BAS_BULKREAD
	.comm	_ExclusiveLock,4,2              ## @ExclusiveLock
	.comm	_BLCKSZ,4,2                     ## @BLCKSZ
	.comm	_AccessShareLock,4,2            ## @AccessShareLock
	.no_dead_strip	_pgstat_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pgstat_index
_pgstat_index:                          ; @pgstat_index
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _BAS_BULKREAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BAS_BULKREAD@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_GetAccessStrategy
	mov	x23, x0
Lloh3:
	adrp	x25, _ExclusiveLock@GOTPAGE
Lloh4:
	ldr	x25, [x25, _ExclusiveLock@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x20
	bl	_LockRelationForExtension
	mov	x0, x20
	bl	_RelationGetNumberOfBlocks
	mov	x24, x0
	ldr	w1, [x25]
	mov	x0, x20
	bl	_UnlockRelationForExtension
	cmp	x24, x22
	b.gt	LBB0_3
LBB0_1:
Lloh5:
	adrp	x8, _BLCKSZ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BLCKSZ@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	mul	w8, w8, w24
	str	w8, [sp, #8]
Lloh8:
	adrp	x8, _AccessShareLock@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AccessShareLock@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_relation_close
	add	x0, sp, #8
	mov	x1, x19
	bl	_build_pgstattuple_type
	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
	add	sp, sp, #96
	ret
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x25]
	mov	x0, x20
	bl	_LockRelationForExtension
	mov	x0, x20
	bl	_RelationGetNumberOfBlocks
	mov	x24, x0
	ldr	w1, [x25]
	mov	x0, x20
	bl	_UnlockRelationForExtension
	cmp	x22, x24
	b.ge	LBB0_1
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	cmp	x22, x24
	b.ge	LBB0_2
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_CHECK_FOR_INTERRUPTS
	add	x0, sp, #8
	mov	x1, x20
	mov	x2, x22
	mov	x3, x23
	blr	x21
	add	x22, x22, #1
	cmp	x24, x22
	b.ne	LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x24
	b	LBB0_2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_BAS_BULKREAD,4,2               ; @BAS_BULKREAD
	.comm	_ExclusiveLock,4,2              ; @ExclusiveLock
	.comm	_BLCKSZ,4,2                     ; @BLCKSZ
	.comm	_AccessShareLock,4,2            ; @AccessShareLock
	.no_dead_strip	_pgstat_index
.subsections_via_symbols
