	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cached_dev_init
_cached_dev_init:                       ## @cached_dev_init
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movq	56(%rdi), %rdi
	callq	_bdev_get_queue
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___module_get
	leaq	96(%r14), %rdi
	callq	_INIT_LIST_HEAD
	leaq	24(%r14), %r12
	leaq	40(%r14), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_closure_init
	movq	_cached_dev_flush@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_system_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_set_closure_fn
	leaq	44(%r14), %rdi
	movq	_bch_cached_dev_ktype@GOTPCREL(%rip), %rsi
	callq	_kobject_init
	leaq	92(%r14), %rdi
	movq	_cached_dev_detach_finish@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	88(%r14), %rdi
	movl	$1, %esi
	callq	_sema_init
	leaq	68(%r14), %r15
	movq	%r15, %rdi
	callq	_INIT_LIST_HEAD
	leaq	84(%r14), %rdi
	callq	_spin_lock_init
	leaq	80(%r14), %rdi
	movq	%r13, %rsi
	callq	_bch_cache_accounting_init
	movl	$4194304, (%r14)                ## imm = 0x400000
	movq	_RECENT_IO@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_3
## %bb.1:
	movq	72(%r14), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	4(%rbx), %rdi
	movq	%r15, %rsi
	callq	_list_add
	movl	(%r13), %esi
	addl	4(%r14), %esi
	movq	%rbx, %rdi
	callq	_hlist_add_head
	addq	$8, %rbx
	movslq	(%r13), %rax
	shlq	$3, %rax
	addq	72(%r14), %rax
	cmpq	%rax, %rbx
	jb	LBB0_2
LBB0_3:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	8(%rbx), %eax
	movl	%eax, %ecx
	sarl	$9, %ecx
	movl	%ecx, (%r12)
	cmpl	$512, %eax                      ## imm = 0x200
	jb	LBB0_5
## %bb.4:
	movl	12(%rbx), %eax
	movl	%eax, 64(%r14)
LBB0_5:
	movq	56(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdx
	subq	48(%r14), %rdx
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_bcache_device_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	32(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rax
	movl	(%rax), %esi
	callq	_max
	movq	32(%r14), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	leaq	20(%r14), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movl	$0, 8(%r14)
	movq	_DEFAULT_CACHED_DEV_ERROR_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_BCH_CACHED_DEV_STOP_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	movq	%r14, %rdi
	callq	_bch_cached_dev_request_init
	movq	%r14, %rdi
	callq	_bch_cached_dev_writeback_init
LBB0_7:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_cached_dev_flush,4,2           ## @cached_dev_flush
	.comm	_system_wq,4,2                  ## @system_wq
	.comm	_bch_cached_dev_ktype,4,2       ## @bch_cached_dev_ktype
	.comm	_cached_dev_detach_finish,4,2   ## @cached_dev_detach_finish
	.comm	_RECENT_IO,4,2                  ## @RECENT_IO
	.comm	_DEFAULT_CACHED_DEV_ERROR_LIMIT,4,2 ## @DEFAULT_CACHED_DEV_ERROR_LIMIT
	.comm	_BCH_CACHED_DEV_STOP_AUTO,4,2   ## @BCH_CACHED_DEV_STOP_AUTO
	.no_dead_strip	_cached_dev_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cached_dev_init
_cached_dev_init:                       ; @cached_dev_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x19, x0
	ldr	x0, [x0, #56]
	bl	_bdev_get_queue
	mov	x20, x0
Lloh0:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	___module_get
	add	x0, x19, #96
	bl	_INIT_LIST_HEAD
	add	x22, x19, #24
	add	x24, x19, #40
	mov	x0, x24
	mov	x1, #0
	bl	_closure_init
Lloh3:
	adrp	x8, _cached_dev_flush@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cached_dev_flush@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _system_wq@GOTPAGE
Lloh7:
	ldr	x8, [x8, _system_wq@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x24
	bl	_set_closure_fn
	add	x0, x19, #44
Lloh9:
	adrp	x1, _bch_cached_dev_ktype@GOTPAGE
Lloh10:
	ldr	x1, [x1, _bch_cached_dev_ktype@GOTPAGEOFF]
	bl	_kobject_init
	add	x0, x19, #92
Lloh11:
	adrp	x8, _cached_dev_detach_finish@GOTPAGE
Lloh12:
	ldr	x8, [x8, _cached_dev_detach_finish@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #88
	mov	w1, #1
	bl	_sema_init
	add	x23, x19, #68
	mov	x0, x23
	bl	_INIT_LIST_HEAD
	add	x0, x19, #84
	bl	_spin_lock_init
	add	x0, x19, #80
	mov	x1, x24
	bl	_bch_cache_accounting_init
	mov	w8, #4194304
	str	w8, [x19]
Lloh14:
	adrp	x25, _RECENT_IO@GOTPAGE
Lloh15:
	ldr	x25, [x25, _RECENT_IO@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x24, [x19, #72]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x24, #4
	mov	x1, x23
	bl	_list_add
	ldr	w8, [x19, #4]
	ldr	w9, [x25]
	add	w1, w9, w8
	mov	x0, x24
	bl	_hlist_add_head
	add	x24, x24, #8
	ldr	x8, [x19, #72]
	ldrsw	x9, [x25]
	add	x8, x8, x9, lsl #3
	cmp	x24, x8
	b.lo	LBB0_2
LBB0_3:
	ldr	w8, [x20, #8]
	asr	w9, w8, #9
	str	w9, [x22]
	cmp	w8, #512
	b.lo	LBB0_5
; %bb.4:
	ldr	w8, [x20, #12]
	str	w8, [x19, #64]
LBB0_5:
	ldp	x9, x8, [x19, #48]
	ldr	x8, [x8]
	ldr	x8, [x8]
	sub	x2, x8, x9
	mov	x0, x22
	mov	x1, x21
	bl	_bcache_device_init
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w0, [x8]
	ldr	x8, [x20]
	ldr	w1, [x8]
	bl	_max
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldr	x8, [x8]
	str	w0, [x8]
	add	x0, x19, #20
	mov	w1, #0
	bl	_atomic_set
Lloh16:
	adrp	x8, _DEFAULT_CACHED_DEV_ERROR_LIMIT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DEFAULT_CACHED_DEV_ERROR_LIMIT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x19, #16]
Lloh19:
	adrp	x8, _BCH_CACHED_DEV_STOP_AUTO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BCH_CACHED_DEV_STOP_AUTO@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	stp	wzr, w8, [x19, #8]
	mov	x0, x19
	bl	_bch_cached_dev_request_init
	mov	x0, x19
	bl	_bch_cached_dev_writeback_init
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_cached_dev_flush,4,2           ; @cached_dev_flush
	.comm	_system_wq,4,2                  ; @system_wq
	.comm	_bch_cached_dev_ktype,4,2       ; @bch_cached_dev_ktype
	.comm	_cached_dev_detach_finish,4,2   ; @cached_dev_detach_finish
	.comm	_RECENT_IO,4,2                  ; @RECENT_IO
	.comm	_DEFAULT_CACHED_DEV_ERROR_LIMIT,4,2 ; @DEFAULT_CACHED_DEV_ERROR_LIMIT
	.comm	_BCH_CACHED_DEV_STOP_AUTO,4,2   ; @BCH_CACHED_DEV_STOP_AUTO
	.no_dead_strip	_cached_dev_init
.subsections_via_symbols
