	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fileAnalyzeForeignTable
_fileAnalyzeForeignTable:               ## @fileAnalyzeForeignTable
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	callq	_RelationGetRelid
	leaq	-48(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movl	%eax, %edi
	callq	_fileGetOptions
	xorl	%eax, %eax
	cmpl	$0, -36(%rbp)
	jne	LBB0_4
## %bb.1:
	movq	-48(%rbp), %rdi
	leaq	-32(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	jns	LBB0_3
## %bb.2:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	movq	-48(%rbp), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_3:
	movl	-32(%rbp), %eax
	movq	_BLCKSZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, %eax
	decl	%eax
	cltd
	idivl	%ecx
	movl	%eax, %ecx
	cmpl	$2, %eax
	movl	$1, %eax
	cmovll	%eax, %ecx
	movl	%ecx, (%rbx)
	movq	_file_acquire_sample_rows@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%r14)
LBB0_4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not stat file \"%s\": %m"

	.comm	_BLCKSZ,4,2                     ## @BLCKSZ
	.comm	_file_acquire_sample_rows,4,2   ## @file_acquire_sample_rows
	.no_dead_strip	_fileAnalyzeForeignTable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fileAnalyzeForeignTable
_fileAnalyzeForeignTable:               ; @fileAnalyzeForeignTable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x2
	mov	x19, x1
	bl	_RelationGetRelid
	add	x1, sp, #24
	add	x2, sp, #20
	add	x3, sp, #8
	bl	_fileGetOptions
	ldr	w8, [sp, #20]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_5
LBB0_2:
	ldr	x0, [sp, #24]
	mov	x1, sp
	bl	_stat
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	bl	_errcode_for_file_access
	ldr	x1, [sp, #24]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_4:
	ldr	w8, [sp]
Lloh5:
	adrp	x9, _BLCKSZ@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BLCKSZ@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	add	w8, w8, w9
	sub	w8, w8, #1
	sdiv	w8, w8, w9
	cmp	w8, #1
	csinc	w8, w8, wzr, gt
	str	w8, [x20]
Lloh8:
	adrp	x8, _file_acquire_sample_rows@GOTPAGE
Lloh9:
	ldr	x8, [x8, _file_acquire_sample_rows@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	w0, #1
LBB0_5:
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not stat file \"%s\": %m"

	.comm	_BLCKSZ,4,2                     ; @BLCKSZ
	.comm	_file_acquire_sample_rows,4,2   ; @file_acquire_sample_rows
	.no_dead_strip	_fileAnalyzeForeignTable
.subsections_via_symbols
