	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ffs_use_bwrite
_ffs_use_bwrite:                        ## @ffs_use_bwrite
	.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	%rdx, %r14
	movq	%rsi, %rdx
	movq	%rdi, %r13
	movq	32(%rdi), %r15
	movq	8(%r15), %rbx
	cmpq	%rsi, (%rbx)
	jne	LBB0_1
## %bb.7:
	movq	24(%r13), %r14
	cmpl	$0, 8(%r13)
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_brelse
	jmp	LBB0_25
LBB0_1:
	movl	%ecx, %r12d
	movl	4(%r15), %ebx
	movq	%rdx, %rdi
	callq	_btodb
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_getblk
	movq	%rax, %rbx
	movq	8(%rax), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_bcopy
	cmpq	$0, 16(%r13)
	je	LBB0_3
## %bb.2:
	movq	_B_VALIDSUSPWRT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_3:
	movq	(%r13), %rax
	movq	_MNT_WAIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	callq	_bwrite
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_26
## %bb.6:
	movl	%ecx, 8(%r13)
	jmp	LBB0_26
LBB0_4:
	movq	%rbx, %rdi
	callq	_bawrite
	xorl	%eax, %eax
	jmp	LBB0_26
LBB0_9:
	movq	8(%rbx), %rax
	movq	_FS_UFS1_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.10:
	movq	_SBLOCK_UFS1@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	cmpq	%rdx, %rcx
	je	LBB0_13
## %bb.11:
	movq	_FS_FLAGS_UPDATED@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, 16(%rbx)
	jne	LBB0_13
## %bb.12:
	movq	24(%rbx), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_printf
	movq	(%r12), %rdx
	movq	%rdx, (%rbx)
	movq	8(%rbx), %rax
LBB0_13:
	movq	_FS_UFS2_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.14:
	movq	_SBLOCK_UFS2@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	cmpq	%rcx, %rdx
	je	LBB0_17
## %bb.15:
	movq	_FS_FLAGS_UPDATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rbx)
	jne	LBB0_17
## %bb.16:
	movq	24(%rbx), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_printf
	movq	(%r12), %rax
	movq	%rax, (%rbx)
LBB0_17:
	movl	(%r15), %edi
	callq	_MOUNTEDSOFTDEP
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	8(%r14), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_softdep_setup_sbupdate
LBB0_19:
	movq	8(%r14), %rsi
	movl	40(%rbx), %edx
	movq	%rbx, %rdi
	callq	_bcopy
	movq	8(%r14), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ffs_oldfscompat_write
	movq	%rbx, %rdi
	callq	_ffs_calc_sbhash
	movl	%eax, 32(%rbx)
	cmpq	$0, 16(%r13)
	je	LBB0_21
## %bb.20:
	movq	_B_VALIDSUSPWRT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_21:
	movq	(%r13), %rax
	movq	_MNT_WAIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.23:
	movq	%r14, %rdi
	callq	_bwrite
	testl	%eax, %eax
	je	LBB0_25
## %bb.24:
	movl	%eax, 8(%r13)
	jmp	LBB0_25
LBB0_22:
	movq	%r14, %rdi
	callq	_bawrite
LBB0_25:
	movl	8(%r13), %eax
LBB0_26:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B_VALIDSUSPWRT,4,2             ## @B_VALIDSUSPWRT
	.comm	_MNT_WAIT,8,3                   ## @MNT_WAIT
	.comm	_FS_UFS1_MAGIC,8,3              ## @FS_UFS1_MAGIC
	.comm	_SBLOCK_UFS1,8,3                ## @SBLOCK_UFS1
	.comm	_FS_FLAGS_UPDATED,4,2           ## @FS_FLAGS_UPDATED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WARNING: %s: correcting fs_sblockloc from %jd to %d\n"

	.comm	_FS_UFS2_MAGIC,8,3              ## @FS_UFS2_MAGIC
	.comm	_SBLOCK_UFS2,8,3                ## @SBLOCK_UFS2
	.no_dead_strip	_ffs_use_bwrite
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ffs_use_bwrite
_ffs_use_bwrite:                        ; @ffs_use_bwrite
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x23, x2
	mov	x2, x1
	mov	x19, x0
	ldr	x21, [x0, #32]
	ldr	x22, [x21, #8]
	ldr	x8, [x22]
	cmp	x8, x1
	b.ne	LBB0_3
; %bb.1:
	ldr	x20, [x19, #24]
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_9
; %bb.2:
	mov	x0, x20
	bl	_brelse
	b	LBB0_25
LBB0_3:
	mov	x20, x3
	ldr	w21, [x21, #4]
	mov	x0, x2
	bl	_btodb
	mov	x1, x0
	mov	x0, x21
	mov	x2, x20
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_getblk
	mov	x21, x0
	ldr	x1, [x0, #8]
	mov	x0, x23
	mov	x2, x20
	bl	_bcopy
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, _B_VALIDSUSPWRT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B_VALIDSUSPWRT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_5:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _MNT_WAIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MNT_WAIT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	mov	x0, x21
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
	bl	_bwrite
	cbz	w0, LBB0_26
; %bb.7:
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #8]
	b	LBB0_26
LBB0_8:
	bl	_bawrite
	mov	w0, #0
	b	LBB0_26
LBB0_9:
	ldr	x8, [x22, #8]
Lloh6:
	adrp	x9, _FS_UFS1_MAGIC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FS_UFS1_MAGIC@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.10:
Lloh9:
	adrp	x23, _SBLOCK_UFS1@GOTPAGE
Lloh10:
	ldr	x23, [x23, _SBLOCK_UFS1@GOTPAGEOFF]
	ldr	x3, [x23]
	cmp	x3, x2
	b.eq	LBB0_13
; %bb.11:
	ldr	w9, [x22, #16]
Lloh11:
	adrp	x10, _FS_FLAGS_UPDATED@GOTPAGE
Lloh12:
	ldr	x10, [x10, _FS_FLAGS_UPDATED@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_13
; %bb.12:
	ldr	x1, [x22, #24]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldr	x2, [x23]
	str	x2, [x22]
	ldr	x8, [x22, #8]
LBB0_13:
Lloh16:
	adrp	x9, _FS_UFS2_MAGIC@GOTPAGE
Lloh17:
	ldr	x9, [x9, _FS_UFS2_MAGIC@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.14:
Lloh19:
	adrp	x23, _SBLOCK_UFS2@GOTPAGE
Lloh20:
	ldr	x23, [x23, _SBLOCK_UFS2@GOTPAGEOFF]
	ldr	x3, [x23]
	cmp	x2, x3
	b.eq	LBB0_17
; %bb.15:
	ldr	w8, [x22, #16]
Lloh21:
	adrp	x9, _FS_FLAGS_UPDATED@GOTPAGE
Lloh22:
	ldr	x9, [x9, _FS_FLAGS_UPDATED@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_17
; %bb.16:
	ldr	x1, [x22, #24]
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldr	x8, [x23]
	str	x8, [x22]
LBB0_17:
	ldr	w0, [x21]
	bl	_MOUNTEDSOFTDEP
	cbz	x0, LBB0_19
; %bb.18:
	ldr	x1, [x20, #8]
	mov	x0, x21
	mov	x2, x20
	bl	_softdep_setup_sbupdate
LBB0_19:
	ldr	x1, [x20, #8]
	ldr	w2, [x22, #40]
	mov	x0, x22
	bl	_bcopy
	ldr	x22, [x20, #8]
	mov	x0, x22
	mov	x1, x21
	bl	_ffs_oldfscompat_write
	mov	x0, x22
	bl	_ffs_calc_sbhash
	str	w0, [x22, #32]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_21
; %bb.20:
Lloh26:
	adrp	x8, _B_VALIDSUSPWRT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _B_VALIDSUSPWRT@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_21:
	ldr	x8, [x19]
Lloh29:
	adrp	x9, _MNT_WAIT@GOTPAGE
Lloh30:
	ldr	x9, [x9, _MNT_WAIT@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	mov	x0, x20
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.22:
	bl	_bwrite
	cbz	w0, LBB0_25
; %bb.23:
	str	w0, [x19, #8]
	b	LBB0_25
LBB0_24:
	bl	_bawrite
LBB0_25:
	ldr	w0, [x19, #8]
LBB0_26:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_B_VALIDSUSPWRT,4,2             ; @B_VALIDSUSPWRT
	.comm	_MNT_WAIT,8,3                   ; @MNT_WAIT
	.comm	_FS_UFS1_MAGIC,8,3              ; @FS_UFS1_MAGIC
	.comm	_SBLOCK_UFS1,8,3                ; @SBLOCK_UFS1
	.comm	_FS_FLAGS_UPDATED,4,2           ; @FS_FLAGS_UPDATED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WARNING: %s: correcting fs_sblockloc from %jd to %d\n"

	.comm	_FS_UFS2_MAGIC,8,3              ; @FS_UFS2_MAGIC
	.comm	_SBLOCK_UFS2,8,3                ; @SBLOCK_UFS2
	.no_dead_strip	_ffs_use_bwrite
.subsections_via_symbols
