	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function logfile_getname
_logfile_getname:                       ## @logfile_getname
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, -44(%rbp)
	movq	_MAXPGPATH@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_palloc
	movq	%rax, %r12
	movq	(%rbx), %rsi
	movq	_Log_directory@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_snprintf
	movq	%r12, %rdi
	callq	_strlen
	cltq
	leaq	(%r12,%rax), %r15
	movq	(%rbx), %rbx
	subq	%rax, %rbx
	movq	_Log_filename@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_log_timezone@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdi
	callq	_pg_localtime
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_pg_strftime
	testq	%r14, %r14
	je	LBB0_4
## %bb.1:
	movq	%r12, %rdi
	callq	_strlen
	movl	%eax, %r15d
	cmpl	$5, %eax
	jl	LBB0_3
## %bb.2:
	leal	-4(%r15), %ebx
	leaq	(%r12,%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	cmovel	%ebx, %r15d
LBB0_3:
	movslq	%r15d, %rax
	movq	%r12, %rdi
	addq	%rax, %rdi
	movq	_MAXPGPATH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	subq	%rax, %rdx
	movq	%r14, %rsi
	callq	_strlcpy
LBB0_4:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPGPATH,8,3                  ## @MAXPGPATH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/"

	.comm	_Log_directory,8,3              ## @Log_directory
	.comm	_Log_filename,4,2               ## @Log_filename
	.comm	_log_timezone,4,2               ## @log_timezone
L_.str.1:                               ## @.str.1
	.asciz	".log"

	.no_dead_strip	_logfile_getname
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function logfile_getname
_logfile_getname:                       ; @logfile_getname
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	str	w0, [sp, #12]
Lloh0:
	adrp	x24, _MAXPGPATH@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MAXPGPATH@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_palloc
	mov	x20, x0
	ldr	x1, [x24]
Lloh2:
	adrp	x8, _Log_directory@GOTPAGE
Lloh3:
	ldr	x8, [x8, _Log_directory@GOTPAGEOFF]
Lloh4:
	ldr	x3, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	bl	_snprintf
	mov	x0, x20
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	add	x21, x20, x8
	ldr	x9, [x24]
	sub	x22, x9, x8
Lloh7:
	adrp	x8, _Log_filename@GOTPAGE
Lloh8:
	ldr	x8, [x8, _Log_filename@GOTPAGEOFF]
Lloh9:
	ldr	w23, [x8]
Lloh10:
	adrp	x8, _log_timezone@GOTPAGE
Lloh11:
	ldr	x8, [x8, _log_timezone@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_pg_localtime
	mov	x3, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_pg_strftime
	cbz	x19, LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_strlen
	mov	x21, x0
	cmp	w0, #5
	b.lt	LBB0_3
; %bb.2:
	sub	w22, w21, #4
	add	x0, x20, x22
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cmp	x0, #0
	csel	w21, w22, w21, eq
LBB0_3:
	sxtw	x8, w21
	add	x0, x20, x8
	ldr	x9, [x24]
	sub	x2, x9, x8
	mov	x1, x19
	bl	_strlcpy
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPGPATH,8,3                  ; @MAXPGPATH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/"

	.comm	_Log_directory,8,3              ; @Log_directory
	.comm	_Log_filename,4,2               ; @Log_filename
	.comm	_log_timezone,4,2               ; @log_timezone
l_.str.1:                               ; @.str.1
	.asciz	".log"

	.no_dead_strip	_logfile_getname
.subsections_via_symbols
