	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pg_ls_dir_files
_pg_ls_dir_files:                       ## @pg_ls_dir_files
	.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	%edx, %r12d
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	callq	_SRF_IS_FIRSTCALL
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	xorl	%eax, %eax
	callq	_SRF_FIRSTCALL_INIT
	movq	%rax, %r15
	movl	16(%rax), %edi
	callq	_MemoryContextSwitchTo
	movl	%eax, %r14d
	movl	$16, %edi
	callq	_palloc
	movq	%rax, %r13
	movl	$3, %edi
	callq	_CreateTemplateTupleDesc
	movl	%eax, %ebx
	movq	_TEXTOID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %edi
	movl	$1, %esi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	_TupleDescInitEntry
	movq	_INT8OID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rdx
	movl	%ebx, %edi
	movl	$2, %esi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	_TupleDescInitEntry
	movq	_TIMESTAMPTZOID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rdx
	movl	%ebx, %edi
	movl	$3, %esi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	_TupleDescInitEntry
	movl	%ebx, %edi
	callq	_BlessTupleDesc
	movl	%eax, (%r15)
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_pstrdup
	movq	%rax, (%r13)
	movq	%rax, %rdi
	callq	_AllocateDir
	movl	%eax, 8(%r13)
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.3:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movl	%r14d, %edi
	callq	_MemoryContextSwitchTo
	movq	%r15, %rdi
	callq	_SRF_RETURN_DONE
	jmp	LBB0_6
LBB0_5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	movq	(%r13), %rsi
	leaq	L_.str.3(%rip), %rdi
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_6:
	movq	%r13, 8(%r15)
	movl	%r14d, %edi
	callq	_MemoryContextSwitchTo
LBB0_7:
	xorl	%eax, %eax
	callq	_SRF_PERCALL_SETUP
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r13
	movl	8(%r13), %edi
	movq	(%r13), %rsi
	callq	_ReadDir
	testq	%rax, %rax
	je	LBB0_15
## %bb.8:
	movq	%rax, %r14
	movq	_MAXPGPATH@GOTPCREL(%rip), %rbx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-96(%rbp), %rsp                 ## 8-byte Reload
	movl	8(%r13), %edi
	movq	(%r13), %rsi
	callq	_ReadDir
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_15
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %r12d
	addl	%r12d, %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	(%r14), %r8
	cmpb	$46, (%r8)
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r13), %rcx
	movq	%r15, %rdi
	movl	%r12d, %esi
	leaq	L_.str.4(%rip), %rdx
	callq	_snprintf
	movq	%r15, %rdi
	leaq	-120(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	jns	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str.5(%rip), %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	-104(%rbp), %edi
	callq	_S_ISREG
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r14), %rdi
	callq	_CStringGetTextDatum
	movl	%eax, -60(%rbp)
	movl	-112(%rbp), %edi
	callq	_Int64GetDatum
	movl	%eax, -56(%rbp)
	movl	-120(%rbp), %edi
	callq	_time_t_to_timestamptz
	movl	%eax, %edi
	callq	_TimestampTzGetDatum
	movl	%eax, -52(%rbp)
	leaq	-72(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movq	%rbx, %r14
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	leaq	-60(%rbp), %rsi
	movq	%r15, %rdx
	callq	_heap_form_tuple
	movl	%eax, %edi
	callq	_HeapTupleGetDatum
	movq	%rbx, %rdi
	movq	%r14, %rbx
	movl	%eax, %esi
	callq	_SRF_RETURN_NEXT
	jmp	LBB0_14
LBB0_15:
	movl	8(%r13), %edi
	callq	_FreeDir
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_SRF_RETURN_DONE
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"name"

	.comm	_TEXTOID,4,2                    ## @TEXTOID
L_.str.1:                               ## @.str.1
	.asciz	"size"

	.comm	_INT8OID,4,2                    ## @INT8OID
L_.str.2:                               ## @.str.2
	.asciz	"modification"

	.comm	_TIMESTAMPTZOID,4,2             ## @TIMESTAMPTZOID
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_ERROR,4,2                      ## @ERROR
L_.str.3:                               ## @.str.3
	.asciz	"could not open directory \"%s\": %m"

	.comm	_MAXPGPATH,4,2                  ## @MAXPGPATH
L_.str.4:                               ## @.str.4
	.asciz	"%s/%s"

L_.str.5:                               ## @.str.5
	.asciz	"could not stat directory \"%s\": %m"

	.no_dead_strip	_pg_ls_dir_files
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pg_ls_dir_files
_pg_ls_dir_files:                       ; @pg_ls_dir_files
	.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, #64
	mov	x23, x2
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_SRF_IS_FIRSTCALL
	cbz	x0, LBB0_7
; %bb.1:
	bl	_SRF_FIRSTCALL_INIT
	mov	x20, x0
	ldr	w0, [x0, #16]
	bl	_MemoryContextSwitchTo
	mov	x21, x0
	mov	w0, #16
	bl	_palloc
	mov	x22, x0
	mov	w0, #3
	bl	_CreateTemplateTupleDesc
	mov	x24, x0
Lloh3:
	adrp	x8, _TEXTOID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TEXTOID@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #1
	mov	w4, #-1
	mov	w5, #0
	bl	_TupleDescInitEntry
Lloh8:
	adrp	x8, _INT8OID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INT8OID@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x24
	mov	w1, #2
	mov	w4, #-1
	mov	w5, #0
	bl	_TupleDescInitEntry
Lloh13:
	adrp	x8, _TIMESTAMPTZOID@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TIMESTAMPTZOID@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
Lloh16:
	adrp	x2, l_.str.2@PAGE
Lloh17:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x24
	mov	w1, #3
	mov	w4, #-1
	mov	w5, #0
	bl	_TupleDescInitEntry
	mov	x0, x24
	bl	_BlessTupleDesc
	str	w0, [x20]
	mov	x0, x19
	bl	_pstrdup
	str	x0, [x22]
	bl	_AllocateDir
	str	w0, [x22, #8]
	cbnz	w0, LBB0_6
; %bb.2:
	cbz	w23, LBB0_5
; %bb.3:
Lloh18:
	adrp	x8, _errno@GOTPAGE
Lloh19:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
Lloh21:
	adrp	x9, _ENOENT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x21
	bl	_MemoryContextSwitchTo
	mov	x0, x20
	bl	_SRF_RETURN_DONE
	b	LBB0_6
LBB0_5:
Lloh24:
	adrp	x8, _ERROR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh26:
	ldr	w23, [x8]
	bl	_errcode_for_file_access
	ldr	x1, [x22]
Lloh27:
	adrp	x0, l_.str.3@PAGE
Lloh28:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
LBB0_6:
	str	x22, [x20, #8]
	mov	x0, x21
	bl	_MemoryContextSwitchTo
LBB0_7:
	bl	_SRF_PERCALL_SETUP
	mov	x20, x0
	ldr	x25, [x0, #8]
	ldr	w0, [x25, #8]
	ldr	x1, [x25]
	bl	_ReadDir
	cbz	x0, LBB0_15
; %bb.8:
	mov	x23, x0
Lloh29:
	adrp	x26, _MAXPGPATH@GOTPAGE
Lloh30:
	ldr	x26, [x26, _MAXPGPATH@GOTPAGEOFF]
Lloh31:
	adrp	x21, l_.str.4@PAGE
Lloh32:
	add	x21, x21, l_.str.4@PAGEOFF
Lloh33:
	adrp	x27, _ERROR@GOTPAGE
Lloh34:
	ldr	x27, [x27, _ERROR@GOTPAGEOFF]
Lloh35:
	adrp	x22, l_.str.5@PAGE
Lloh36:
	add	x22, x22, l_.str.5@PAGEOFF
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	sp, x28
	ldr	w0, [x25, #8]
	ldr	x1, [x25]
	bl	_ReadDir
	mov	x23, x0
	cbz	x0, LBB0_15
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x28, sp
	ldr	w8, [x26]
	lsl	w1, w8, #1
	mov	x9, x1
Lloh37:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh38:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x1, #15
	and	x9, x9, #0x1fffffff0
	sub	x24, x8, x9
	mov	sp, x24
	ldr	x4, [x23]
	ldrb	w8, [x4]
	cmp	w8, #46
	b.eq	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x3, [x25]
	mov	x0, x24
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x21
	bl	_snprintf
	sub	x1, x29, #136
	mov	x0, x24
	bl	_stat
	tbz	x0, #63, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w24, [x27]
	bl	_errcode_for_file_access
	mov	x0, x22
	mov	x1, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x24
	bl	_ereport
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=1
	ldur	w0, [x29, #-120]
	bl	_S_ISREG
	cbz	w0, LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x23]
	bl	_CStringGetTextDatum
	stur	w0, [x29, #-100]
	ldur	w0, [x29, #-128]
	bl	_Int64GetDatum
	stur	w0, [x29, #-96]
	ldur	w0, [x29, #-136]
	bl	_time_t_to_timestamptz
	bl	_TimestampTzGetDatum
	stur	w0, [x29, #-92]
	sub	x0, x29, #112
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	ldr	w0, [x20]
	sub	x1, x29, #100
	sub	x2, x29, #112
	bl	_heap_form_tuple
	bl	_HeapTupleGetDatum
	mov	x1, x0
	mov	x0, x20
	bl	_SRF_RETURN_NEXT
	b	LBB0_9
LBB0_15:
	ldr	w0, [x25, #8]
	bl	_FreeDir
	mov	x0, x20
	bl	_SRF_RETURN_DONE
	ldur	x8, [x29, #-88]
Lloh39:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh40:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	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_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"name"

	.comm	_TEXTOID,4,2                    ; @TEXTOID
l_.str.1:                               ; @.str.1
	.asciz	"size"

	.comm	_INT8OID,4,2                    ; @INT8OID
l_.str.2:                               ; @.str.2
	.asciz	"modification"

	.comm	_TIMESTAMPTZOID,4,2             ; @TIMESTAMPTZOID
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_ERROR,4,2                      ; @ERROR
l_.str.3:                               ; @.str.3
	.asciz	"could not open directory \"%s\": %m"

	.comm	_MAXPGPATH,4,2                  ; @MAXPGPATH
l_.str.4:                               ; @.str.4
	.asciz	"%s/%s"

l_.str.5:                               ; @.str.5
	.asciz	"could not stat directory \"%s\": %m"

	.no_dead_strip	_pg_ls_dir_files
.subsections_via_symbols
