	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgfnames                       ## -- Begin function pgfnames
	.p2align	4, 0x90
_pgfnames:                              ## @pgfnames
	.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
	movq	%rdi, %rbx
	callq	_opendir
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	$1600, %edi                     ## imm = 0x640
	callq	_palloc
	movq	%rax, %rbx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	%rax, %r13
	xorl	%r12d, %r12d
	movl	$200, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %r15d
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	_errno@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	callq	_readdir
	movq	%rax, %r13
	movl	%r15d, %r12d
	testq	%rax, %rax
	je	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	1(%r12), %r15d
	cmpl	%r14d, %r15d
	jl	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	leal	(%r14,%r14), %ebx
	shll	$4, %r14d
	movl	%r14d, %esi
	callq	_repalloc
	movl	%ebx, %r14d
	movq	%rax, %rbx
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %edi
	callq	_pstrdup
	movslq	%r12d, %rcx
	movq	%rax, (%rbx,%rcx,8)
	jmp	LBB0_10
LBB0_11:
	movq	%rbx, %r14
	movq	_errno@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_13
## %bb.12:
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rsi
	callq	_pg_log_warning
LBB0_13:
	movslq	%r15d, %rax
	movq	$0, (%r14,%rax,8)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_closedir
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_15
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
LBB0_15:
	movq	%rbx, %rsi
	callq	_pg_log_warning
LBB0_16:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not open directory \"%s\": %m"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"."

L_.str.2:                               ## @.str.2
	.asciz	".."

L_.str.3:                               ## @.str.3
	.asciz	"could not read directory \"%s\": %m"

L_.str.4:                               ## @.str.4
	.asciz	"could not close directory \"%s\": %m"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pgfnames                       ; -- Begin function pgfnames
	.p2align	2
_pgfnames:                              ; @pgfnames
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	bl	_opendir
	cbz	x0, LBB0_9
; %bb.1:
	mov	x21, x0
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	mov	w0, #1600
	bl	_palloc
	mov	x20, x0
Lloh0:
	adrp	x25, _errno@GOTPAGE
Lloh1:
	ldr	x25, [x25, _errno@GOTPAGEOFF]
	str	wzr, [x25]
	mov	x0, x21
	bl	_readdir
	cbz	x0, LBB0_10
; %bb.2:
	mov	x24, x0
	mov	w26, #0
	mov	w19, #200
Lloh2:
	adrp	x22, l_.str.1@PAGE
Lloh3:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh4:
	adrp	x23, l_.str.2@PAGE
Lloh5:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x24]
	bl	_pstrdup
	str	x0, [x20, w26, sxtw #3]
	mov	x26, x28
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	wzr, [x25]
	mov	x0, x21
	bl	_readdir
	mov	x24, x0
	cbz	x0, LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	mov	x1, x22
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x24]
	mov	x1, x23
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w28, w26, #1
	cmp	w28, w19
	b.lt	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	lsl	w27, w19, #1
	lsl	w1, w19, #4
	mov	x0, x20
	bl	_repalloc
	mov	x20, x0
	mov	x19, x27
	b	LBB0_3
LBB0_9:
	mov	x20, #0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_15
LBB0_10:
	mov	w26, #0
LBB0_11:
	ldr	w8, [x25]
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	cbz	w8, LBB0_13
; %bb.12:
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_pg_log_warning
LBB0_13:
	str	xzr, [x20, w26, sxtw #3]
	mov	x0, x21
	bl	_closedir
	cbz	x0, LBB0_16
; %bb.14:
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_15:
	mov	x1, x19
	bl	_pg_log_warning
LBB0_16:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not open directory \"%s\": %m"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"."

l_.str.2:                               ; @.str.2
	.asciz	".."

l_.str.3:                               ; @.str.3
	.asciz	"could not read directory \"%s\": %m"

l_.str.4:                               ; @.str.4
	.asciz	"could not close directory \"%s\": %m"

.subsections_via_symbols
