	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bch_cached_dev_writeback_start ## -- Begin function bch_cached_dev_writeback_start
	.p2align	4, 0x90
_bch_cached_dev_writeback_start:        ## @bch_cached_dev_writeback_start
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_WQ_MEM_RECLAIM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_alloc_workqueue
	movl	%eax, 20(%rbx)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_cached_dev_get
	movq	_bch_writeback_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rsi
	callq	_kthread_create
	movl	%eax, 16(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rbx, %rdi
	callq	_cached_dev_put
	movl	20(%rbx), %edi
	callq	_destroy_workqueue
	movl	16(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_4
LBB0_3:
	movl	$1, (%rbx)
	movq	_BCACHE_DEV_WB_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%rbx), %rsi
	callq	_test_and_set_bit
	movl	%eax, %edi
	callq	_WARN_ON
	leaq	8(%rbx), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	imull	4(%rbx), %esi
	callq	_schedule_delayed_work
	movq	%rbx, %rdi
	callq	_bch_writeback_queue
	xorl	%r14d, %r14d
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bcache_writeback_wq"

	.comm	_WQ_MEM_RECLAIM,4,2             ## @WQ_MEM_RECLAIM
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_bch_writeback_thread,4,2       ## @bch_writeback_thread
L_.str.1:                               ## @.str.1
	.asciz	"bcache_writeback"

	.comm	_BCACHE_DEV_WB_RUNNING,4,2      ## @BCACHE_DEV_WB_RUNNING
	.comm	_HZ,4,2                         ## @HZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bch_cached_dev_writeback_start ; -- Begin function bch_cached_dev_writeback_start
	.p2align	2
_bch_cached_dev_writeback_start:        ; @bch_cached_dev_writeback_start
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _WQ_MEM_RECLAIM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WQ_MEM_RECLAIM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #0
	bl	_alloc_workqueue
	str	w0, [x19, #20]
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_cached_dev_get
Lloh5:
	adrp	x8, _bch_writeback_thread@GOTPAGE
Lloh6:
	ldr	x8, [x8, _bch_writeback_thread@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_kthread_create
	str	w0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_cached_dev_put
	ldr	w0, [x19, #20]
	bl	_destroy_workqueue
	ldr	w0, [x19, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_3:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	mov	w8, #1
	str	w8, [x19]
Lloh13:
	adrp	x8, _BCACHE_DEV_WB_RUNNING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BCACHE_DEV_WB_RUNNING@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	add	x1, x19, #12
	bl	_test_and_set_bit
	bl	_WARN_ON
	add	x0, x19, #8
	ldr	w8, [x19, #4]
Lloh16:
	adrp	x9, _HZ@GOTPAGE
Lloh17:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	mul	w1, w9, w8
	bl	_schedule_delayed_work
	mov	x0, x19
	bl	_bch_writeback_queue
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bcache_writeback_wq"

	.comm	_WQ_MEM_RECLAIM,4,2             ; @WQ_MEM_RECLAIM
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_bch_writeback_thread,4,2       ; @bch_writeback_thread
l_.str.1:                               ; @.str.1
	.asciz	"bcache_writeback"

	.comm	_BCACHE_DEV_WB_RUNNING,4,2      ; @BCACHE_DEV_WB_RUNNING
	.comm	_HZ,4,2                         ; @HZ
.subsections_via_symbols
