	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_dbstat_filename
_get_dbstat_filename:                   ## @get_dbstat_filename
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%r8d, %ebx
	movl	%edx, %r8d
	testl	%edi, %edi
	jne	LBB0_1
## %bb.2:
	movq	_pgstat_stat_directory@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_PGSTAT_STAT_PERMANENT_DIRECTORY@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rax
	testl	%esi, %esi
	leaq	L_.str.2(%rip), %rdx
	leaq	L_.str.1(%rip), %r9
	cmoveq	%rdx, %r9
	leaq	L_.str(%rip), %rdx
	movq	%rcx, %rdi
	movl	%ebx, %esi
	movq	%rax, %rcx
	callq	_snprintf
	cmpl	%ebx, %eax
	jge	LBB0_5
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_elog                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/db_%u.%s"

	.comm	_PGSTAT_STAT_PERMANENT_DIRECTORY,8,3 ## @PGSTAT_STAT_PERMANENT_DIRECTORY
	.comm	_pgstat_stat_directory,8,3      ## @pgstat_stat_directory
L_.str.1:                               ## @.str.1
	.asciz	"tmp"

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

	.comm	_ERROR,4,2                      ## @ERROR
L_.str.3:                               ## @.str.3
	.asciz	"overlength pgstat path"

	.no_dead_strip	_get_dbstat_filename
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_dbstat_filename
_get_dbstat_filename:                   ; @get_dbstat_filename
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x4
	mov	x8, x3
	mov	x4, x2
	cmp	w0, #0
Lloh0:
	adrp	x9, _PGSTAT_STAT_PERMANENT_DIRECTORY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PGSTAT_STAT_PERMANENT_DIRECTORY@GOTPAGEOFF]
Lloh2:
	adrp	x10, _pgstat_stat_directory@GOTPAGE
Lloh3:
	ldr	x10, [x10, _pgstat_stat_directory@GOTPAGEOFF]
	csel	x9, x10, x9, eq
	ldr	x3, [x9]
Lloh4:
	adrp	x9, l_.str.1@PAGE
Lloh5:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh6:
	adrp	x10, l_.str.2@PAGE
Lloh7:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w1, #0
	csel	x5, x10, x9, eq
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x8
	mov	x1, x19
	bl	_snprintf
	cmp	w0, w19
	b.ge	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh10:
	adrp	x8, _ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_elog
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/db_%u.%s"

	.comm	_PGSTAT_STAT_PERMANENT_DIRECTORY,8,3 ; @PGSTAT_STAT_PERMANENT_DIRECTORY
	.comm	_pgstat_stat_directory,8,3      ; @pgstat_stat_directory
l_.str.1:                               ; @.str.1
	.asciz	"tmp"

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

	.comm	_ERROR,4,2                      ; @ERROR
l_.str.3:                               ; @.str.3
	.asciz	"overlength pgstat path"

	.no_dead_strip	_get_dbstat_filename
.subsections_via_symbols
