	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_target_file            ## -- Begin function process_target_file
	.p2align	4, 0x90
_process_target_file:                   ## @process_target_file
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_filemap@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_datadir_target@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r14, %r8
	callq	_snprintf
	leaq	-88(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_lstat
	testq	%rax, %rax
	jns	LBB0_3
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_pg_fatal
LBB0_3:
	cmpq	$0, 32(%r12)
	jne	LBB0_7
## %bb.4:
	cmpq	$0, (%r12)
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pg_fatal
LBB0_6:
	movq	%r12, %rdi
	callq	_filemap_list_to_array
	xorl	%edi, %edi
	cmpq	$0, 32(%r12)
	setne	%dil
	callq	_Assert
	movq	32(%r12), %rdi
	movl	24(%r12), %esi
	movq	_path_cmp@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$8, %edx
	callq	_qsort
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	movq	%rax, %rbx
	movq	_FILE_TYPE_SYMLINK@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_FILE_TYPE_DIRECTORY@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%r14, -168(%rbp)
	leaq	-168(%rbp), %rax
	movq	%rax, -80(%rbp)
	movq	32(%r12), %rsi
	movl	24(%r12), %edx
	movq	_path_cmp@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-80(%rbp), %rdi
	movl	$8, %ecx
	callq	_bsearch
	testq	%rax, %rax
	jne	LBB0_12
## %bb.8:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	xorq	%rax, %r13
	orq	%r13, %rbx
	cmovneq	%rax, %r15
	movl	$80, %edi
	callq	_pg_malloc
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_pg_strdup
	movq	%rax, (%rbx)
	movq	%r15, 72(%rbx)
	movq	_FILE_ACTION_REMOVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	movq	$0, 56(%rbx)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.10:
	callq	_pg_strdup
	jmp	LBB0_11
LBB0_9:
	xorl	%eax, %eax
LBB0_11:
	movq	%rax, 16(%rbx)
	movq	$0, 24(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rbx)
	movq	%r14, %rdi
	callq	_isRelDataFile
	movl	%eax, 32(%rbx)
	movq	8(%r12), %rax
	leaq	24(%rax), %rcx
	leaq	16(%r12), %rdx
	testq	%rax, %rax
	cmoveq	%rdx, %rcx
	movq	%rbx, (%rcx)
	movq	%rbx, 8(%r12)
	incq	(%r12)
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPGPATH,4,2                  ## @MAXPGPATH
	.comm	_filemap,8,3                    ## @filemap
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s"

	.comm	_datadir_target,8,3             ## @datadir_target
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
L_.str.1:                               ## @.str.1
	.asciz	"could not stat file \"%s\": %m"

L_.str.2:                               ## @.str.2
	.asciz	"source file list is empty"

	.comm	_path_cmp,4,2                   ## @path_cmp
L_.str.3:                               ## @.str.3
	.asciz	"pg_wal"

	.comm	_FILE_TYPE_SYMLINK,8,3          ## @FILE_TYPE_SYMLINK
	.comm	_FILE_TYPE_DIRECTORY,8,3        ## @FILE_TYPE_DIRECTORY
	.comm	_FILE_ACTION_REMOVE,4,2         ## @FILE_ACTION_REMOVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_target_file            ; -- Begin function process_target_file
	.p2align	2
_process_target_file:                   ; @process_target_file
	.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, #112
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAXPGPATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPGPATH@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x9, x1
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	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
Lloh8:
	adrp	x8, _filemap@GOTPAGE
Lloh9:
	ldr	x8, [x8, _filemap@GOTPAGEOFF]
Lloh10:
	ldr	x20, [x8]
Lloh11:
	adrp	x8, _datadir_target@GOTPAGE
Lloh12:
	ldr	x8, [x8, _datadir_target@GOTPAGEOFF]
Lloh13:
	ldr	x3, [x8]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x24
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x4, x19
	bl	_snprintf
	sub	x1, x29, #96
	mov	x0, x24
	bl	_lstat
	tbz	x0, #63, LBB0_3
; %bb.1:
Lloh16:
	adrp	x8, _errno@GOTPAGE
Lloh17:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
Lloh19:
	adrp	x9, _ENOENT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
	str	x24, [sp, #-16]!
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pg_fatal
	add	sp, sp, #16
LBB0_3:
	ldr	x8, [x20, #32]
Lloh24:
	adrp	x25, _path_cmp@GOTPAGE
Lloh25:
	ldr	x25, [x25, _path_cmp@GOTPAGEOFF]
	cbnz	x8, LBB0_7
; %bb.4:
	ldr	x8, [x20]
	cbnz	x8, LBB0_6
; %bb.5:
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pg_fatal
LBB0_6:
	mov	x0, x20
	bl	_filemap_list_to_array
	ldr	x8, [x20, #32]
	cmp	x8, #0
	cset	w0, ne
	bl	_Assert
	ldr	x0, [x20, #32]
	ldr	w1, [x20, #24]
	ldr	w3, [x25]
	mov	w2, #8
	bl	_qsort
LBB0_7:
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	mov	x24, x0
Lloh30:
	adrp	x8, _FILE_TYPE_SYMLINK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _FILE_TYPE_SYMLINK@GOTPAGEOFF]
Lloh32:
	ldr	x26, [x8]
Lloh33:
	adrp	x8, _FILE_TYPE_DIRECTORY@GOTPAGE
Lloh34:
	ldr	x8, [x8, _FILE_TYPE_DIRECTORY@GOTPAGEOFF]
Lloh35:
	ldr	x27, [x8]
	sub	x8, x29, #176
	stp	x8, x19, [x29, #-184]
	ldr	x1, [x20, #32]
	ldr	w2, [x20, #24]
	ldr	w4, [x25]
	sub	x0, x29, #184
	mov	w3, #8
	bl	_bsearch
	cbnz	x0, LBB0_12
; %bb.8:
	cmp	x26, x23
	ccmp	x24, #0, #0, eq
	csel	x24, x27, x23, eq
	mov	w0, #80
	bl	_pg_malloc
	mov	x23, x0
	mov	x0, x19
	bl	_pg_strdup
Lloh36:
	adrp	x8, _FILE_ACTION_REMOVE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _FILE_ACTION_REMOVE@GOTPAGEOFF]
	str	x24, [x23, #72]
	stp	x0, x22, [x23]
Lloh38:
	ldr	w8, [x8]
	str	w8, [x23, #64]
	str	xzr, [x23, #56]
	cbz	x21, LBB0_10
; %bb.9:
	mov	x0, x21
	bl	_pg_strdup
	b	LBB0_11
LBB0_10:
	mov	x0, #0
LBB0_11:
	stp	x0, xzr, [x23, #16]
	stp	xzr, xzr, [x23, #40]
	mov	x0, x19
	bl	_isRelDataFile
	str	w0, [x23, #32]
	ldr	x8, [x20, #8]
	add	x9, x8, #24
	add	x10, x20, #16
	cmp	x8, #0
	csel	x8, x10, x9, eq
	str	x23, [x8]
	ldr	x8, [x20]
	add	x8, x8, #1
	stp	x8, x23, [x20]
LBB0_12:
	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_14
; %bb.13:
	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_14:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPGPATH,4,2                  ; @MAXPGPATH
	.comm	_filemap,8,3                    ; @filemap
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s"

	.comm	_datadir_target,8,3             ; @datadir_target
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
l_.str.1:                               ; @.str.1
	.asciz	"could not stat file \"%s\": %m"

l_.str.2:                               ; @.str.2
	.asciz	"source file list is empty"

	.comm	_path_cmp,4,2                   ; @path_cmp
l_.str.3:                               ; @.str.3
	.asciz	"pg_wal"

	.comm	_FILE_TYPE_SYMLINK,8,3          ; @FILE_TYPE_SYMLINK
	.comm	_FILE_TYPE_DIRECTORY,8,3        ; @FILE_TYPE_DIRECTORY
	.comm	_FILE_ACTION_REMOVE,4,2         ; @FILE_ACTION_REMOVE
.subsections_via_symbols
