	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hlfsd_diskspace
_hlfsd_diskspace:                       ## @hlfsd_diskspace
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	xorl	%eax, %eax
	callq	_getpid
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r14, %rcx
	movq	%rax, %r8
	callq	_xsnprintf
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movq	_O_CREAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r12, %rdi
	movl	$384, %edx                      ## imm = 0x180
	callq	_open
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_strlen
	movl	%eax, %r15d
	movl	%r14d, %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_write
	cmpl	%r15d, %eax
	jge	LBB0_4
## %bb.3:
	movq	_XLOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdx
	movl	%r15d, %ecx
	movq	%r12, %r8
	xorl	%eax, %eax
	callq	_plog
	movl	%r14d, %edi
	callq	_close
	movq	%r12, %rdi
	callq	_unlink
	movl	$-1, %eax
	jmp	LBB0_7
LBB0_1:
	movq	_XLOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_plog
	movl	$-1, %eax
	jmp	LBB0_7
LBB0_4:
	movq	%r12, %rdi
	callq	_unlink
	testq	%rax, %rax
	jns	LBB0_6
## %bb.5:
	movq	_XLOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_plog
LBB0_6:
	movl	%r14d, %edi
	callq	_close
	xorl	%eax, %eax
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/._hlfstmp_%lu"

	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_XLOG_ERROR,4,2                 ## @XLOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"cannot open %s: %m"

L_.str.2:                               ## @.str.2
	.asciz	"cannot write \"%s\" (%d bytes) to %s : %m"

L_.str.3:                               ## @.str.3
	.asciz	"cannot unlink %s : %m"

	.no_dead_strip	_hlfsd_diskspace
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hlfsd_diskspace
_hlfsd_diskspace:                       ; @hlfsd_diskspace
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	sub	sp, sp, #16
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x9, x21
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x19, x8, x9
	mov	sp, x19
	bl	_getpid
	mov	x4, x0
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x21
	mov	x3, x20
	bl	_xsnprintf
Lloh10:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	mov	w2, #384
	bl	_open
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_strlen
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_write
	cmp	w0, w21
	b.ge	LBB0_4
; %bb.2:
Lloh16:
	adrp	x8, _XLOG_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _XLOG_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	stp	x21, x19, [sp, #-16]!
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_plog
	add	sp, sp, #16
	mov	x0, x20
	bl	_close
	mov	x0, x19
	bl	_unlink
	mov	w0, #-1
	b	LBB0_7
LBB0_3:
Lloh21:
	adrp	x8, _XLOG_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _XLOG_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_plog
	mov	w0, #-1
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_unlink
	tbz	x0, #63, LBB0_6
; %bb.5:
Lloh26:
	adrp	x8, _XLOG_ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _XLOG_ERROR@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x19
	bl	_plog
LBB0_6:
	mov	x0, x20
	bl	_close
	mov	w0, #0
LBB0_7:
	ldur	x8, [x29, #-40]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/._hlfstmp_%lu"

	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_XLOG_ERROR,4,2                 ; @XLOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"cannot open %s: %m"

l_.str.2:                               ; @.str.2
	.asciz	"cannot write \"%s\" (%d bytes) to %s : %m"

l_.str.3:                               ; @.str.3
	.asciz	"cannot unlink %s : %m"

	.no_dead_strip	_hlfsd_diskspace
.subsections_via_symbols
