	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SetWALFileNameForCleanup
_SetWALFileNameForCleanup:              ## @SetWALFileNameForCleanup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	_restartWALFileName@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_additional_ext@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_TrimExtension
	movl	(%rbx), %edi
	callq	_IsXLogFileName
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	movq	_exclusiveCleanupFileName@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_strcpy                         ## TAILCALL
LBB0_1:
	movl	(%rbx), %edi
	callq	_IsPartialXLogFileName
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	$1, -20(%rbp)
	movl	$0, -16(%rbp)
	movl	$0, -12(%rbp)
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	leaq	-20(%rbp), %rdx
	leaq	-16(%rbp), %rcx
	leaq	-12(%rbp), %r8
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$3, %eax
	jne	LBB0_6
LBB0_5:
	movq	_exclusiveCleanupFileName@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-20(%rbp), %esi
	movl	-16(%rbp), %edx
	movl	-12(%rbp), %ecx
	callq	_XLogFileNameById
	movl	$1, %ebx
LBB0_6:
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.7:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movl	(%rbx), %edi
	callq	_IsBackupHistoryFileName
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movl	$1, -20(%rbp)
	movl	$0, -16(%rbp)
	movl	$0, -12(%rbp)
	movl	$0, -24(%rbp)
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	leaq	-20(%rbp), %rdx
	leaq	-16(%rbp), %rcx
	leaq	-12(%rbp), %r8
	leaq	-24(%rbp), %r9
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$4, %eax
	je	LBB0_5
	jmp	LBB0_6
LBB0_9:
	leaq	L_.str.2(%rip), %rdi
	callq	_pg_log_error
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movq	_progname@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_fprintf
	movl	$2, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_restartWALFileName,4,2         ## @restartWALFileName
	.comm	_additional_ext,4,2             ## @additional_ext
	.comm	_exclusiveCleanupFileName,4,2   ## @exclusiveCleanupFileName
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%08X%08X%08X.partial"

L_.str.1:                               ## @.str.1
	.asciz	"%08X%08X%08X.%08X.backup"

L_.str.2:                               ## @.str.2
	.asciz	"invalid file name argument"

	.comm	_stderr,4,2                     ## @stderr
L_.str.3:                               ## @.str.3
	.asciz	"Try \"%s --help\" for more information.\n"

	.comm	_progname,8,3                   ## @progname
	.no_dead_strip	_SetWALFileNameForCleanup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SetWALFileNameForCleanup
_SetWALFileNameForCleanup:              ; @SetWALFileNameForCleanup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _restartWALFileName@GOTPAGE
Lloh1:
	ldr	x19, [x19, _restartWALFileName@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh2:
	adrp	x8, _additional_ext@GOTPAGE
Lloh3:
	ldr	x8, [x8, _additional_ext@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_TrimExtension
	ldr	w0, [x19]
	bl	_IsXLogFileName
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _exclusiveCleanupFileName@GOTPAGE
Lloh6:
	ldr	x8, [x8, _exclusiveCleanupFileName@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w1, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_strcpy
LBB0_2:
	ldr	w0, [x19]
	bl	_IsPartialXLogFileName
	cbz	x0, LBB0_7
; %bb.3:
	mov	w8, #1
	stur	w8, [x29, #-20]
	stp	wzr, wzr, [sp, #20]
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	sub	x2, x29, #20
	add	x3, sp, #24
	add	x4, sp, #20
	bl	_sscanf
	mov	w8, #0
	cmp	w0, #3
	b.ne	LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _exclusiveCleanupFileName@GOTPAGE
Lloh11:
	ldr	x8, [x8, _exclusiveCleanupFileName@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldur	w1, [x29, #-20]
	ldp	w3, w2, [sp, #20]
	bl	_XLogFileNameById
	mov	w8, #1
LBB0_5:
	cbz	w8, LBB0_9
; %bb.6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
	ldr	w0, [x19]
	bl	_IsBackupHistoryFileName
	cbz	x0, LBB0_9
; %bb.8:
	mov	w8, #1
	stur	w8, [x29, #-20]
	str	wzr, [sp, #24]
	str	xzr, [sp, #16]
	ldr	w0, [x19]
	add	x8, sp, #16
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	str	x8, [sp]
	sub	x2, x29, #20
	add	x3, sp, #24
	add	x4, sp, #20
	bl	_sscanf
	mov	w8, #0
	cmp	w0, #4
	b.eq	LBB0_4
	b	LBB0_5
LBB0_9:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pg_log_error
Lloh17:
	adrp	x8, _stderr@GOTPAGE
Lloh18:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh19:
	ldr	w19, [x8]
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	mov	x1, x0
Lloh22:
	adrp	x8, _progname@GOTPAGE
Lloh23:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh24:
	ldr	x2, [x8]
	mov	x0, x19
	bl	_fprintf
	mov	w0, #2
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_restartWALFileName,4,2         ; @restartWALFileName
	.comm	_additional_ext,4,2             ; @additional_ext
	.comm	_exclusiveCleanupFileName,4,2   ; @exclusiveCleanupFileName
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%08X%08X%08X.partial"

l_.str.1:                               ; @.str.1
	.asciz	"%08X%08X%08X.%08X.backup"

l_.str.2:                               ; @.str.2
	.asciz	"invalid file name argument"

	.comm	_stderr,4,2                     ; @stderr
l_.str.3:                               ; @.str.3
	.asciz	"Try \"%s --help\" for more information.\n"

	.comm	_progname,8,3                   ; @progname
	.no_dead_strip	_SetWALFileNameForCleanup
.subsections_via_symbols
