	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bch_cached_dev_run             ## -- Begin function bch_cached_dev_run
	.p2align	4, 0x90
_bch_cached_dev_run:                    ## @bch_cached_dev_run
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	32(%rdi), %edi
	movq	_SB_LABEL_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_kmemdup_nul
	movq	%rax, %r14
	leaq	L_.str(%rip), %rax
	movq	%rax, -80(%rbp)
	movl	(%rbx), %edi
	movq	24(%r13), %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_kasprintf
	movq	%rax, %r15
	movq	%rax, -72(%rbp)
	movl	(%rbx), %edi
	testq	%r14, %r14
	leaq	L_.str.3(%rip), %rdx
	cmovneq	%r14, %rdx
	leaq	L_.str.2(%rip), %rsi
	callq	_kasprintf
	movq	%rax, %r12
	movq	%rax, -64(%rbp)
	movq	$0, -56(%rbp)
	cmpq	$0, 48(%r13)
	je	LBB0_2
## %bb.1:
	movl	40(%r13), %esi
	leaq	L_.str.4(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_err
	movq	%r15, %rdi
	callq	_kfree
	movq	%r12, %rdi
	callq	_kfree
	movq	%r14, %rdi
	callq	_kfree
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_2:
	leaq	44(%r13), %rdi
	movl	$1, %esi
	callq	_atomic_xchg
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_kfree
	movq	%r12, %rdi
	callq	_kfree
	movq	%r14, %rdi
	callq	_kfree
	movl	40(%r13), %esi
	leaq	L_.str.5(%rip), %rdi
	callq	_pr_info
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_4:
	cmpl	$0, 12(%r13)
	jne	LBB0_7
## %bb.5:
	leaq	24(%r13), %r15
	movq	%r15, %rdi
	callq	_BDEV_STATE
	movq	_BDEV_STATE_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	leaq	-88(%rbp), %r12
	movq	%r12, %rdi
	callq	_closure_init_stack
	movq	_BDEV_STATE_STALE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_SET_BDEV_STATE
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_bch_write_bdev_super
	movq	%r12, %rdi
	callq	_closure_sync
LBB0_7:
	leaq	4(%r13), %r15
	movl	8(%r13), %edi
	callq	_add_disk
	movl	8(%r13), %esi
	movl	16(%r13), %edi
	callq	_bd_link_disk_holder
	movl	8(%r13), %edi
	callq	_disk_to_dev
	movq	_KOBJ_CHANGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	-80(%rbp), %rdx
	movq	%rax, %rdi
	callq	_kobject_uevent_env
	movq	-72(%rbp), %rdi
	callq	_kfree
	movq	-64(%rbp), %rdi
	callq	_kfree
	movq	%r14, %rdi
	callq	_kfree
	movl	8(%r13), %edi
	callq	_disk_to_dev
	leaq	L_.str.6(%rip), %rdx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_sysfs_create_link
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movl	8(%r13), %edi
	callq	_disk_to_dev
	leaq	L_.str.7(%rip), %rdx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_sysfs_create_link
	testq	%rax, %rax
	je	LBB0_13
LBB0_9:
	leaq	L_.str.8(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_10:
	subl	(%rax), %ebx
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.12:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_cached_dev_status_update@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rdx
	movq	%r13, %rsi
	callq	_kthread_run
	movl	%eax, (%r13)
	movl	%eax, %edi
	callq	_IS_ERR
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_11
## %bb.14:
	leaq	L_.str.10(%rip), %rdi
	callq	_pr_warn
	jmp	LBB0_11
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SB_LABEL_SIZE,4,2              ## @SB_LABEL_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DRIVER=bcache"

L_.str.1:                               ## @.str.1
	.asciz	"CACHED_UUID=%pU"

L_.str.2:                               ## @.str.2
	.asciz	"CACHED_LABEL=%s"

L_.str.3:                               ## @.str.3
	.space	1

L_.str.4:                               ## @.str.4
	.asciz	"I/O disabled on cached dev %s"

	.comm	_EIO,4,2                        ## @EIO
L_.str.5:                               ## @.str.5
	.asciz	"cached dev %s is running already"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_BDEV_STATE_NONE,8,3            ## @BDEV_STATE_NONE
	.comm	_BDEV_STATE_STALE,4,2           ## @BDEV_STATE_STALE
	.comm	_KOBJ_CHANGE,4,2                ## @KOBJ_CHANGE
L_.str.6:                               ## @.str.6
	.asciz	"dev"

L_.str.7:                               ## @.str.7
	.asciz	"bcache"

L_.str.8:                               ## @.str.8
	.asciz	"Couldn't create bcache dev <-> disk sysfs symlinks"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_cached_dev_status_update,4,2   ## @cached_dev_status_update
L_.str.9:                               ## @.str.9
	.asciz	"bcache_status_update"

L_.str.10:                              ## @.str.10
	.asciz	"failed to create bcache_status_update kthread, continue to run without monitoring backing device status"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bch_cached_dev_run             ; -- Begin function bch_cached_dev_run
	.p2align	2
_bch_cached_dev_run:                    ; @bch_cached_dev_run
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	ldr	w0, [x0, #32]
Lloh3:
	adrp	x8, _SB_LABEL_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SB_LABEL_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	bl	_kmemdup_nul
	mov	x20, x0
	mov	x21, x19
	ldr	x2, [x21, #24]!
Lloh8:
	adrp	x8, l_.str@PAGE
Lloh9:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [sp, #24]
	ldr	w0, [x23]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_kasprintf
	mov	x22, x0
	str	x0, [sp, #32]
	ldr	w0, [x23]
Lloh12:
	adrp	x8, l_.str.3@PAGE
Lloh13:
	add	x8, x8, l_.str.3@PAGEOFF
	cmp	x20, #0
	csel	x2, x8, x20, eq
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_kasprintf
	mov	x23, x0
	stp	x0, xzr, [sp, #40]
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x19, #40]
	str	x8, [sp]
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_err
	mov	x0, x22
	bl	_kfree
	mov	x0, x23
	bl	_kfree
	mov	x0, x20
	bl	_kfree
Lloh18:
	adrp	x8, _EIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_10
LBB0_2:
	add	x0, x19, #44
	mov	w1, #1
	bl	_atomic_xchg
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_kfree
	mov	x0, x23
	bl	_kfree
	mov	x0, x20
	bl	_kfree
	ldr	w1, [x19, #40]
Lloh20:
	adrp	x0, l_.str.5@PAGE
Lloh21:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pr_info
Lloh22:
	adrp	x8, _EBUSY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_7
; %bb.5:
	mov	x0, x21
	bl	_BDEV_STATE
Lloh24:
	adrp	x8, _BDEV_STATE_NONE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BDEV_STATE_NONE@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.6:
	add	x0, sp, #16
	bl	_closure_init_stack
Lloh27:
	adrp	x8, _BDEV_STATE_STALE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BDEV_STATE_STALE@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_SET_BDEV_STATE
	add	x1, sp, #16
	mov	x0, x19
	bl	_bch_write_bdev_super
	add	x0, sp, #16
	bl	_closure_sync
LBB0_7:
	add	x21, x19, #4
	ldr	w0, [x19, #8]
	bl	_add_disk
	ldr	w0, [x19, #16]
	ldr	w1, [x19, #8]
	bl	_bd_link_disk_holder
	ldr	w0, [x19, #8]
	bl	_disk_to_dev
Lloh30:
	adrp	x8, _KOBJ_CHANGE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _KOBJ_CHANGE@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	add	x2, sp, #24
	bl	_kobject_uevent_env
	ldr	x0, [sp, #32]
	bl	_kfree
	ldr	x0, [sp, #40]
	bl	_kfree
	mov	x0, x20
	bl	_kfree
	ldr	w0, [x19, #8]
	bl	_disk_to_dev
	mov	x1, x0
Lloh33:
	adrp	x2, l_.str.6@PAGE
Lloh34:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_sysfs_create_link
	cbnz	x0, LBB0_9
; %bb.8:
	ldr	w0, [x19, #8]
	bl	_disk_to_dev
Lloh35:
	adrp	x2, l_.str.7@PAGE
Lloh36:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x1, x21
	bl	_sysfs_create_link
	cbz	x0, LBB0_13
LBB0_9:
Lloh37:
	adrp	x0, l_.str.8@PAGE
Lloh38:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_pr_err
Lloh39:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldr	x8, [sp, #56]
Lloh41:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh42:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.12:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_13:
Lloh44:
	adrp	x8, _cached_dev_status_update@GOTPAGE
Lloh45:
	ldr	x8, [x8, _cached_dev_status_update@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
Lloh47:
	adrp	x2, l_.str.9@PAGE
Lloh48:
	add	x2, x2, l_.str.9@PAGEOFF
	mov	x1, x19
	bl	_kthread_run
	str	w0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.14:
Lloh49:
	adrp	x0, l_.str.10@PAGE
Lloh50:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_pr_warn
	mov	w0, #0
	b	LBB0_11
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_SB_LABEL_SIZE,4,2              ; @SB_LABEL_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DRIVER=bcache"

l_.str.1:                               ; @.str.1
	.asciz	"CACHED_UUID=%pU"

l_.str.2:                               ; @.str.2
	.asciz	"CACHED_LABEL=%s"

l_.str.3:                               ; @.str.3
	.space	1

l_.str.4:                               ; @.str.4
	.asciz	"I/O disabled on cached dev %s"

	.comm	_EIO,4,2                        ; @EIO
l_.str.5:                               ; @.str.5
	.asciz	"cached dev %s is running already"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_BDEV_STATE_NONE,8,3            ; @BDEV_STATE_NONE
	.comm	_BDEV_STATE_STALE,4,2           ; @BDEV_STATE_STALE
	.comm	_KOBJ_CHANGE,4,2                ; @KOBJ_CHANGE
l_.str.6:                               ; @.str.6
	.asciz	"dev"

l_.str.7:                               ; @.str.7
	.asciz	"bcache"

l_.str.8:                               ; @.str.8
	.asciz	"Couldn't create bcache dev <-> disk sysfs symlinks"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_cached_dev_status_update,4,2   ; @cached_dev_status_update
l_.str.9:                               ; @.str.9
	.asciz	"bcache_status_update"

l_.str.10:                              ; @.str.10
	.asciz	"failed to create bcache_status_update kthread, continue to run without monitoring backing device status"

.subsections_via_symbols
