	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flash_dev_run
_flash_dev_run:                         ## @flash_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$12, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%rax, %rbx
	addq	$8, %rbx
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_closure_init
	movq	_flash_dev_flush@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_system_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_set_closure_fn
	movq	_bch_flash_dev_ktype@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_kobject_init
	movq	%r14, %rdi
	callq	_block_bytes
	movl	(%r12), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_bcache_device_init
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movslq	(%r14), %rax
	shlq	$2, %rax
	subq	%rax, %r12
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_bcache_device_attach
	movq	%r13, %rdi
	callq	_bch_sectors_dirty_init
	movq	%r13, %rdi
	callq	_bch_flash_dev_request_init
	movl	4(%r13), %edi
	callq	_add_disk
	movl	4(%r13), %edi
	callq	_disk_to_dev
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_kobject_add
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movq	%r13, %rdi
	callq	_kobject_put
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
LBB0_6:
	subl	(%rax), %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_bcache_device_link
	xorl	%r15d, %r15d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_flash_dev_flush,4,2            ## @flash_dev_flush
	.comm	_system_wq,4,2                  ## @system_wq
	.comm	_bch_flash_dev_ktype,4,2        ## @bch_flash_dev_ktype
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bcache"

L_.str.1:                               ## @.str.1
	.asciz	"volume"

	.no_dead_strip	_flash_dev_run
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flash_dev_run
_flash_dev_run:                         ; @flash_dev_run
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #12
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	add	x22, x0, #8
	mov	x0, x22
	mov	x1, #0
	bl	_closure_init
Lloh3:
	adrp	x8, _flash_dev_flush@GOTPAGE
Lloh4:
	ldr	x8, [x8, _flash_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, x22
	bl	_set_closure_fn
Lloh9:
	adrp	x1, _bch_flash_dev_ktype@GOTPAGE
Lloh10:
	ldr	x1, [x1, _bch_flash_dev_ktype@GOTPAGEOFF]
	mov	x0, x20
	bl	_kobject_init
	mov	x0, x19
	bl	_block_bytes
	mov	x1, x0
	ldr	w2, [x21]
	mov	x0, x20
	bl	_bcache_device_init
	cbnz	x0, LBB0_3
; %bb.2:
	ldrsw	x8, [x19]
	sub	x2, x21, x8, lsl #2
	mov	x0, x20
	mov	x1, x19
	bl	_bcache_device_attach
	mov	x0, x20
	bl	_bch_sectors_dirty_init
	mov	x0, x20
	bl	_bch_flash_dev_request_init
	ldr	w0, [x20, #4]
	bl	_add_disk
	ldr	w0, [x20, #4]
	bl	_disk_to_dev
	mov	x1, x0
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_kobject_add
	cbz	x0, LBB0_6
LBB0_3:
	mov	x0, x20
	bl	_kobject_put
LBB0_4:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	bl	_bcache_device_link
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_flash_dev_flush,4,2            ; @flash_dev_flush
	.comm	_system_wq,4,2                  ; @system_wq
	.comm	_bch_flash_dev_ktype,4,2        ; @bch_flash_dev_ktype
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bcache"

l_.str.1:                               ; @.str.1
	.asciz	"volume"

	.no_dead_strip	_flash_dev_run
.subsections_via_symbols
