	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rename_tmp_log
_rename_tmp_log:                        ## @rename_tmp_log
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rdx
	movq	%rdi, %rbx
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	%rax, -40(%rbp)
	leaq	-32(%rbp), %rsi
	callq	_files_reflog_path
	movq	_TMP_RENAMED_LOG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_files_reflog_path
	movq	-40(%rbp), %rax
	movq	%rax, -56(%rbp)
	movq	-32(%rbp), %rdi
	movq	_rename_tmp_log_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	callq	_raceproof_create_file
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EISDIR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	-32(%rbp), %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_error
	jmp	LBB0_4
LBB0_3:
	movq	-40(%rbp), %r14
	movq	-32(%rbp), %r15
	movl	-48(%rbp), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_error
LBB0_4:
	leaq	-32(%rbp), %rdi
	callq	_strbuf_release
	leaq	-40(%rbp), %rdi
	callq	_strbuf_release
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,8,3                ## @STRBUF_INIT
	.comm	_TMP_RENAMED_LOG,8,3            ## @TMP_RENAMED_LOG
	.comm	_rename_tmp_log_callback,4,2    ## @rename_tmp_log_callback
	.comm	_errno,8,3                      ## @errno
	.comm	_EISDIR,8,3                     ## @EISDIR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"directory not empty: %s"

L_.str.1:                               ## @.str.1
	.asciz	"unable to move logfile %s to %s: %s"

	.no_dead_strip	_rename_tmp_log
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rename_tmp_log
_rename_tmp_log:                        ; @rename_tmp_log
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x2, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stp	x8, x8, [sp, #32]
	add	x1, sp, #40
	bl	_files_reflog_path
Lloh3:
	adrp	x8, _TMP_RENAMED_LOG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TMP_RENAMED_LOG@GOTPAGEOFF]
Lloh5:
	ldr	x2, [x8]
	add	x1, sp, #32
	mov	x0, x19
	bl	_files_reflog_path
	ldp	x8, x0, [sp, #32]
	str	x8, [sp, #16]
Lloh6:
	adrp	x8, _rename_tmp_log_callback@GOTPAGE
Lloh7:
	ldr	x8, [x8, _rename_tmp_log_callback@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #16
	bl	_raceproof_create_file
	mov	x19, x0
	cbz	w0, LBB0_5
; %bb.1:
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _EISDIR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EISDIR@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	x1, [sp, #40]
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_4
LBB0_3:
	ldp	x20, x21, [sp, #32]
	ldr	w0, [sp, #24]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
LBB0_4:
	bl	_error
LBB0_5:
	add	x0, sp, #40
	bl	_strbuf_release
	add	x0, sp, #32
	bl	_strbuf_release
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,3                ; @STRBUF_INIT
	.comm	_TMP_RENAMED_LOG,8,3            ; @TMP_RENAMED_LOG
	.comm	_rename_tmp_log_callback,4,2    ; @rename_tmp_log_callback
	.comm	_errno,8,3                      ; @errno
	.comm	_EISDIR,8,3                     ; @EISDIR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"directory not empty: %s"

l_.str.1:                               ; @.str.1
	.asciz	"unable to move logfile %s to %s: %s"

	.no_dead_strip	_rename_tmp_log
.subsections_via_symbols
