	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function should_writeback
_should_writeback:                      ## @should_writeback
	.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	_CACHE_MODE_WRITEBACK@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	cmpl	%edx, (%rax)
	jne	LBB0_10
## %bb.1:
	movl	%ecx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movl	(%rax), %r13d
	movq	_BCACHE_DEV_DETACHING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_10
## %bb.2:
	movq	_bch_cutoff_writeback_sync@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	ja	LBB0_10
## %bb.3:
	movq	%r14, %rdi
	callq	_bio_op
	movq	_REQ_OP_DISCARD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.4:
	cmpq	$0, (%rbx)
	je	LBB0_6
## %bb.5:
	movl	4(%r14), %r12d
	movq	%r14, %rdi
	callq	_bio_sectors
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_bcache_dev_stripe_dirty
	movl	$1, %r12d
	testq	%rax, %rax
	jne	LBB0_10
LBB0_6:
	movl	$0, %r12d
	testl	%r15d, %r15d
	jne	LBB0_10
## %bb.7:
	movl	(%r14), %edi
	callq	_op_is_sync
	movl	$1, %r12d
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	movq	_REQ_META@GOTPCREL(%rip), %rax
	movq	_REQ_PRIO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, (%r14)
	jne	LBB0_10
## %bb.9:
	movq	_bch_cutoff_writeback@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	cmpl	(%rax), %r13d
	setbe	%r12b
LBB0_10:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CACHE_MODE_WRITEBACK,4,2       ## @CACHE_MODE_WRITEBACK
	.comm	_BCACHE_DEV_DETACHING,4,2       ## @BCACHE_DEV_DETACHING
	.comm	_bch_cutoff_writeback_sync,4,2  ## @bch_cutoff_writeback_sync
	.comm	_REQ_OP_DISCARD,8,3             ## @REQ_OP_DISCARD
	.comm	_REQ_META,4,2                   ## @REQ_META
	.comm	_REQ_PRIO,4,2                   ## @REQ_PRIO
	.comm	_bch_cutoff_writeback,4,2       ## @bch_cutoff_writeback
	.no_dead_strip	_should_writeback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function should_writeback
_should_writeback:                      ; @should_writeback
	.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
Lloh0:
	adrp	x8, _CACHE_MODE_WRITEBACK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CACHE_MODE_WRITEBACK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_6
; %bb.1:
	mov	x20, x3
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x0, #16]
	ldr	w23, [x8]
Lloh3:
	adrp	x8, _BCACHE_DEV_DETACHING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BCACHE_DEV_DETACHING@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x21, #8
	bl	_test_bit
Lloh6:
	adrp	x8, _bch_cutoff_writeback_sync@GOTPAGE
Lloh7:
	ldr	x8, [x8, _bch_cutoff_writeback_sync@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	x0, #0
	ccmp	w23, w8, #2, eq
	b.hi	LBB0_6
; %bb.2:
	mov	x0, x19
	bl	_bio_op
Lloh9:
	adrp	x8, _REQ_OP_DISCARD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REQ_OP_DISCARD@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.3:
	ldr	x8, [x21]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w22, [x19, #4]
	mov	x0, x19
	bl	_bio_sectors
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_bcache_dev_stripe_dirty
	cbnz	x0, LBB0_10
LBB0_5:
	cbz	w20, LBB0_8
LBB0_6:
	mov	w0, #0
LBB0_7:
	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
LBB0_8:
	ldr	w0, [x19]
	bl	_op_is_sync
	cbnz	x0, LBB0_10
; %bb.9:
	ldr	w8, [x19]
Lloh12:
	adrp	x9, _REQ_META@GOTPAGE
Lloh13:
	ldr	x9, [x9, _REQ_META@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _REQ_PRIO@GOTPAGE
Lloh16:
	ldr	x10, [x10, _REQ_PRIO@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_11
LBB0_10:
	mov	w0, #1
	b	LBB0_7
LBB0_11:
Lloh18:
	adrp	x8, _bch_cutoff_writeback@GOTPAGE
Lloh19:
	ldr	x8, [x8, _bch_cutoff_writeback@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w23, w8
	cset	w0, ls
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_CACHE_MODE_WRITEBACK,4,2       ; @CACHE_MODE_WRITEBACK
	.comm	_BCACHE_DEV_DETACHING,4,2       ; @BCACHE_DEV_DETACHING
	.comm	_bch_cutoff_writeback_sync,4,2  ; @bch_cutoff_writeback_sync
	.comm	_REQ_OP_DISCARD,8,3             ; @REQ_OP_DISCARD
	.comm	_REQ_META,4,2                   ; @REQ_META
	.comm	_REQ_PRIO,4,2                   ; @REQ_PRIO
	.comm	_bch_cutoff_writeback,4,2       ; @bch_cutoff_writeback
	.no_dead_strip	_should_writeback
.subsections_via_symbols
