	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function journal_clear
_journal_clear:                         ## @journal_clear
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%eax, %eax
	callq	_journal_findfile
	movq	%rax, %rbx
	incq	%rax
	cmpq	$1, %rax
	ja	LBB0_1
## %bb.7:
	leaq	L_.str(%rip), %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_warnx                          ## TAILCALL
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_printf
	movq	_disk@GOTPCREL(%rip), %r14
	leaq	-24(%rbp), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_getinode
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%r14), %esi
	leaq	L_.str.2(%rip), %rdi
LBB0_5:
	callq	_warn
	jmp	LBB0_6
LBB0_3:
	movq	-24(%rbp), %rax
	movq	$0, (%rax)
	movq	_disk@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_putinode
	testq	%rax, %rax
	js	LBB0_4
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movl	(%rbx), %esi
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Journal file does not exist"

L_.str.1:                               ## @.str.1
	.asciz	"Clearing journal flags from inode %ju\n"

	.comm	_disk,4,2                       ## @disk
L_.str.2:                               ## @.str.2
	.asciz	"Failed to get journal inode: %s"

	.comm	_sblock,8,3                     ## @sblock
	.comm	_FS_UFS1_MAGIC,8,3              ## @FS_UFS1_MAGIC
L_.str.3:                               ## @.str.3
	.asciz	"Failed to write journal inode: %s"

	.no_dead_strip	_journal_clear
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function journal_clear
_journal_clear:                         ; @journal_clear
	.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
	bl	_journal_findfile
	add	x8, x0, #1
	cmp	x8, #1
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_warnx
LBB0_2:
	mov	x19, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_printf
Lloh4:
	adrp	x20, _disk@GOTPAGE
Lloh5:
	ldr	x20, [x20, _disk@GOTPAGEOFF]
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x19
	bl	_getinode
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w1, [x20]
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_4:
	bl	_warn
	b	LBB0_6
LBB0_5:
	ldr	x8, [sp, #8]
	str	xzr, [x8]
Lloh8:
	adrp	x19, _disk@GOTPAGE
Lloh9:
	ldr	x19, [x19, _disk@GOTPAGEOFF]
	mov	x0, x19
	bl	_putinode
	tbnz	x0, #63, LBB0_7
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
	ldr	w1, [x19]
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Journal file does not exist"

l_.str.1:                               ; @.str.1
	.asciz	"Clearing journal flags from inode %ju\n"

	.comm	_disk,4,2                       ; @disk
l_.str.2:                               ; @.str.2
	.asciz	"Failed to get journal inode: %s"

	.comm	_sblock,8,3                     ; @sblock
	.comm	_FS_UFS1_MAGIC,8,3              ; @FS_UFS1_MAGIC
l_.str.3:                               ; @.str.3
	.asciz	"Failed to write journal inode: %s"

	.no_dead_strip	_journal_clear
.subsections_via_symbols
