	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_purge_zerobyte_logfile         ## -- Begin function purge_zerobyte_logfile
	.p2align	4, 0x90
_purge_zerobyte_logfile:                ## @purge_zerobyte_logfile
	.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
	movq	_errorfilename@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_6
## %bb.1:
	leaq	-16(%rbp), %rsi
	callq	_stat
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.2:
	cmpq	$0, -16(%rbp)
	jg	LBB0_6
## %bb.3:
	movl	(%rbx), %edi
	callq	_unlink
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.4:
	movl	(%rbx), %edi
	movl	$47, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movb	$0, (%rax)
	movl	(%rbx), %edi
	callq	_rmdir
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errorfilename,4,2              ## @errorfilename
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_purge_zerobyte_logfile         ; -- Begin function purge_zerobyte_logfile
	.p2align	2
_purge_zerobyte_logfile:                ; @purge_zerobyte_logfile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _errorfilename@GOTPAGE
Lloh1:
	ldr	x19, [x19, _errorfilename@GOTPAGEOFF]
	ldr	w0, [x19]
	cbz	w0, LBB0_5
; %bb.1:
	add	x1, sp, #8
	bl	_stat
	ldr	x8, [sp, #8]
	cmn	w0, #1
	ccmp	x8, #0, #0, ne
	b.gt	LBB0_5
; %bb.2:
	ldr	w0, [x19]
	bl	_unlink
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.3:
	ldr	w0, [x19]
	mov	w1, #47
	bl	_strrchr
	cbz	x0, LBB0_5
; %bb.4:
	strb	wzr, [x0]
	ldr	w0, [x19]
	bl	_rmdir
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_errorfilename,4,2              ; @errorfilename
.subsections_via_symbols
