	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgstattuple_approx_internal    ## -- Begin function pgstattuple_approx_internal
	.p2align	4, 0x90
_pgstattuple_approx_internal:           ## @pgstattuple_approx_internal
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movl	%edi, %r12d
	movq	%rsp, -128(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -84(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movq	_NUM_OUTPUT_COLUMNS@GOTPCREL(%rip), %r14
	movl	(%r14), %r15d
	leaq	(,%r15,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -120(%rbp)                ## 8-byte Spill
	movl	(%r14), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	leaq	-56(%rbp), %rdx
	movl	%r13d, %edi
	xorl	%esi, %esi
	callq	_get_call_result_type
	movq	_TYPEFUNC_COMPOSITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_elog
LBB0_2:
	movq	-56(%rbp), %rax
	movl	(%rax), %eax
	cmpl	(%r14), %eax
	je	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_elog
LBB0_4:
	movq	_AccessShareLock@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	%r12d, %edi
	callq	_relation_open
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_RELATION_IS_OTHER_TEMP
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_ERRCODE_FEATURE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_6:
	movq	(%r12), %rax
	movq	(%rax), %rcx
	movq	_RELKIND_RELATION@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_9
## %bb.7:
	movq	_RELKIND_MATVIEW@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_9
## %bb.8:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_ERRCODE_FEATURE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movq	%r12, %rdi
	callq	_RelationGetRelationName
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_ereport
	movq	(%r12), %rax
LBB0_9:
	movq	8(%rax), %rax
	movq	_HEAP_TABLE_AM_OID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.10:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_ERRCODE_FEATURE_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_11:
	leaq	-112(%rbp), %rsi
	movq	%r12, %rdi
	callq	_statapprox_heap
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_relation_close
	shll	$2, %r15d
	movq	-120(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_memset
	movl	-76(%rbp), %edi
	callq	_Int64GetDatum
	movl	%eax, (%rbx)
	movl	-80(%rbp), %edi
	callq	_Float8GetDatum
	movl	%eax, 4(%rbx)
	movl	-84(%rbp), %edi
	callq	_Int64GetDatum
	movl	%eax, 8(%rbx)
	movl	-88(%rbp), %edi
	callq	_Int64GetDatum
	movl	%eax, 12(%rbx)
	movl	-92(%rbp), %edi
	callq	_Float8GetDatum
	movl	%eax, 16(%rbx)
	movl	-96(%rbp), %edi
	callq	_Int64GetDatum
	movl	%eax, 20(%rbx)
	movl	-100(%rbp), %edi
	callq	_Int64GetDatum
	movl	%eax, 24(%rbx)
	movl	-104(%rbp), %edi
	callq	_Float8GetDatum
	movl	%eax, 28(%rbx)
	movl	-108(%rbp), %edi
	callq	_Int64GetDatum
	movl	%eax, 32(%rbx)
	movl	-112(%rbp), %edi
	callq	_Float8GetDatum
	movl	%eax, 36(%rbx)
	movq	-56(%rbp), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_heap_form_tuple
	movl	%eax, %edi
	callq	_HeapTupleGetDatum
	movq	-128(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_13
## %bb.12:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_OUTPUT_COLUMNS,4,2         ## @NUM_OUTPUT_COLUMNS
	.comm	_TYPEFUNC_COMPOSITE,8,3         ## @TYPEFUNC_COMPOSITE
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"return type must be a row type"

L_.str.1:                               ## @.str.1
	.asciz	"incorrect number of output arguments"

	.comm	_AccessShareLock,4,2            ## @AccessShareLock
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ## @ERRCODE_FEATURE_NOT_SUPPORTED
L_.str.2:                               ## @.str.2
	.asciz	"cannot access temporary tables of other sessions"

	.comm	_RELKIND_RELATION,8,3           ## @RELKIND_RELATION
	.comm	_RELKIND_MATVIEW,8,3            ## @RELKIND_MATVIEW
L_.str.3:                               ## @.str.3
	.asciz	"\"%s\" is not a table or materialized view"

	.comm	_HEAP_TABLE_AM_OID,8,3          ## @HEAP_TABLE_AM_OID
L_.str.4:                               ## @.str.4
	.asciz	"only heap AM is supported"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgstattuple_approx_internal    ; -- Begin function pgstattuple_approx_internal
	.p2align	2
_pgstattuple_approx_internal:           ; @pgstattuple_approx_internal
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #80
	mov	x21, x0
	mov	x23, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	movi.2d	v0, #0000000000000000
	stur	q0, [x29, #-116]
	stp	q0, q0, [x29, #-144]
Lloh3:
	adrp	x22, _NUM_OUTPUT_COLUMNS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _NUM_OUTPUT_COLUMNS@GOTPAGEOFF]
	ldr	w24, [x22]
	lsl	x8, x24, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	ldr	w8, [x22]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	sub	x2, x29, #152
	mov	x0, x1
	mov	x1, #0
	bl	_get_call_result_type
Lloh9:
	adrp	x8, _TYPEFUNC_COMPOSITE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TYPEFUNC_COMPOSITE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x25, _ERROR@GOTPAGE
Lloh13:
	ldr	x25, [x25, _ERROR@GOTPAGEOFF]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x25]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
LBB0_2:
	ldur	x8, [x29, #-152]
	ldr	w8, [x8]
	ldr	w9, [x22]
	cmp	w8, w9
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x25]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elog
LBB0_4:
Lloh18:
	adrp	x26, _AccessShareLock@GOTPAGE
Lloh19:
	ldr	x26, [x26, _AccessShareLock@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x21
	bl	_relation_open
	mov	x21, x0
	bl	_RELATION_IS_OTHER_TEMP
Lloh20:
	adrp	x27, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGE
Lloh21:
	ldr	x27, [x27, _ERRCODE_FEATURE_NOT_SUPPORTED@GOTPAGEOFF]
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w22, [x25]
	ldr	w0, [x27]
	bl	_errcode
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_6:
	ldr	x8, [x21]
	ldr	x9, [x8]
Lloh24:
	adrp	x10, _RELKIND_RELATION@GOTPAGE
Lloh25:
	ldr	x10, [x10, _RELKIND_RELATION@GOTPAGEOFF]
Lloh26:
	ldr	x10, [x10]
Lloh27:
	adrp	x11, _RELKIND_MATVIEW@GOTPAGE
Lloh28:
	ldr	x11, [x11, _RELKIND_MATVIEW@GOTPAGEOFF]
Lloh29:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.eq	LBB0_8
; %bb.7:
	ldr	w22, [x25]
	ldr	w0, [x27]
	bl	_errcode
	mov	x0, x21
	bl	_RelationGetRelationName
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
Lloh30:
	adrp	x0, l_.str.3@PAGE
Lloh31:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_errmsg
	add	sp, sp, #16
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
	ldr	x8, [x21]
LBB0_8:
	ldr	x8, [x8, #8]
Lloh32:
	adrp	x9, _HEAP_TABLE_AM_OID@GOTPAGE
Lloh33:
	ldr	x9, [x9, _HEAP_TABLE_AM_OID@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.9:
	ldr	w22, [x25]
	ldr	w0, [x27]
	bl	_errcode
Lloh35:
	adrp	x0, l_.str.4@PAGE
Lloh36:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_10:
	sub	x1, x29, #144
	mov	x0, x21
	bl	_statapprox_heap
	ldr	w1, [x26]
	mov	x0, x21
	bl	_relation_close
	lsl	w2, w24, #2
	mov	x0, x19
	mov	w1, #0
	bl	_memset
	ldur	w0, [x29, #-108]
	bl	_Int64GetDatum
	str	w0, [x20]
	ldur	w0, [x29, #-112]
	bl	_Float8GetDatum
	str	w0, [x20, #4]
	ldur	w0, [x29, #-116]
	bl	_Int64GetDatum
	str	w0, [x20, #8]
	ldur	w0, [x29, #-120]
	bl	_Int64GetDatum
	str	w0, [x20, #12]
	ldur	w0, [x29, #-124]
	bl	_Float8GetDatum
	str	w0, [x20, #16]
	ldur	w0, [x29, #-128]
	bl	_Int64GetDatum
	str	w0, [x20, #20]
	ldur	w0, [x29, #-132]
	bl	_Int64GetDatum
	str	w0, [x20, #24]
	ldur	w0, [x29, #-136]
	bl	_Float8GetDatum
	str	w0, [x20, #28]
	ldur	w0, [x29, #-140]
	bl	_Int64GetDatum
	str	w0, [x20, #32]
	ldur	w0, [x29, #-144]
	bl	_Float8GetDatum
	str	w0, [x20, #36]
	ldur	x0, [x29, #-152]
	mov	x1, x20
	mov	x2, x19
	bl	_heap_form_tuple
	bl	_HeapTupleGetDatum
	mov	sp, x23
	ldur	x8, [x29, #-88]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_OUTPUT_COLUMNS,4,2         ; @NUM_OUTPUT_COLUMNS
	.comm	_TYPEFUNC_COMPOSITE,8,3         ; @TYPEFUNC_COMPOSITE
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"return type must be a row type"

l_.str.1:                               ; @.str.1
	.asciz	"incorrect number of output arguments"

	.comm	_AccessShareLock,4,2            ; @AccessShareLock
	.comm	_ERRCODE_FEATURE_NOT_SUPPORTED,4,2 ; @ERRCODE_FEATURE_NOT_SUPPORTED
l_.str.2:                               ; @.str.2
	.asciz	"cannot access temporary tables of other sessions"

	.comm	_RELKIND_RELATION,8,3           ; @RELKIND_RELATION
	.comm	_RELKIND_MATVIEW,8,3            ; @RELKIND_MATVIEW
l_.str.3:                               ; @.str.3
	.asciz	"\"%s\" is not a table or materialized view"

	.comm	_HEAP_TABLE_AM_OID,8,3          ; @HEAP_TABLE_AM_OID
l_.str.4:                               ; @.str.4
	.asciz	"only heap AM is supported"

.subsections_via_symbols
