	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_pool_mode
_set_pool_mode:                         ## @set_pool_mode
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	80(%rdi), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	48(%rdi), %edi
	callq	_dm_pool_metadata_needs_check
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_get_pool_mode
	movl	%eax, %r14d
	movq	_no_space_timeout_secs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_READ_ONCE
	movq	%rax, %r12
	movq	_HZ@GOTPCREL(%rip), %rax
	imulq	(%rax), %r12
	cmpl	$128, %r15d
	jne	LBB0_3
## %bb.1:
	testl	%r13d, %r13d
	je	LBB0_3
## %bb.2:
	movl	72(%rbx), %edi
	callq	_dm_device_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DMERR
	cmpl	$128, %r14d
	movl	$129, %r15d
	cmovnel	%r14d, %r15d
LBB0_3:
	cmpl	$132, %r14d
	cmovel	%r14d, %r15d
	leal	-128(%r15), %eax
	cmpl	$4, %eax
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	ja	LBB0_14
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:
	movl	48(%rbx), %edi
	callq	_dm_pool_metadata_read_only
	movq	_process_bio_read_only@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%rbx)
	movq	_process_bio_success@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movq	_process_cell_read_only@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	_process_cell_success@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 64(%rbx)
	movq	_process_prepared_mapping_fail@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	_process_prepared_discard_success@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_11:
	cmpl	$131, %r14d
	jne	LBB0_13
## %bb.12:
	leaq	52(%rbx), %rdi
	callq	_cancel_delayed_work_sync
LBB0_13:
	movl	$0, (%rbx)
	movl	4(%r13), %eax
	movl	%eax, 8(%rbx)
	movl	48(%rbx), %edi
	callq	_dm_pool_metadata_read_write
	movq	_process_bio@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%rbx)
	movq	_process_discard_bio@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movq	_process_cell@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	_process_prepared_mapping@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	%rbx, %rdi
	callq	_set_discard_callbacks
	jmp	LBB0_14
LBB0_8:
	movl	$1, (%rbx)
	movq	_process_bio_read_only@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%rbx)
	movq	_process_discard_bio@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movq	_process_cell_read_only@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	_process_prepared_mapping@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	%rbx, %rdi
	callq	_set_discard_callbacks
	cmpl	$0, 8(%rbx)
	jne	LBB0_14
## %bb.9:
	testq	%r12, %r12
	je	LBB0_14
## %bb.10:
	movl	56(%rbx), %edi
	leaq	52(%rbx), %rsi
	movq	%r12, %rdx
	callq	_queue_delayed_work
	jmp	LBB0_14
LBB0_5:
	movl	48(%rbx), %edi
	callq	_dm_pool_metadata_read_only
	movq	_process_bio_fail@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%rbx)
	movq	%rax, 32(%rbx)
	movq	_process_cell_fail@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	%rax, 64(%rbx)
	movq	_process_prepared_mapping_fail@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	_process_prepared_discard_fail@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, 60(%rbx)
	movq	%rbx, %rdi
	callq	_error_retry_list
LBB0_14:
	movl	%r15d, 4(%rbx)
	movl	%r15d, (%r13)
	cmpl	%r15d, %r14d
	jne	LBB0_16
## %bb.15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_notify_of_pool_mode_change     ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_no_space_timeout_secs,4,2      ## @no_space_timeout_secs
	.comm	_HZ,8,3                         ## @HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: unable to switch pool to write mode until repaired."

	.comm	_process_bio_fail,8,3           ## @process_bio_fail
	.comm	_process_cell_fail,8,3          ## @process_cell_fail
	.comm	_process_prepared_mapping_fail,8,3 ## @process_prepared_mapping_fail
	.comm	_process_prepared_discard_fail,4,2 ## @process_prepared_discard_fail
	.comm	_process_bio_read_only,8,3      ## @process_bio_read_only
	.comm	_process_bio_success,8,3        ## @process_bio_success
	.comm	_process_cell_read_only,8,3     ## @process_cell_read_only
	.comm	_process_cell_success,8,3       ## @process_cell_success
	.comm	_process_prepared_discard_success,4,2 ## @process_prepared_discard_success
	.comm	_process_discard_bio,8,3        ## @process_discard_bio
	.comm	_process_prepared_mapping,8,3   ## @process_prepared_mapping
	.comm	_process_bio,8,3                ## @process_bio
	.comm	_process_cell,8,3               ## @process_cell
	.no_dead_strip	_set_pool_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_pool_mode
_set_pool_mode:                         ; @set_pool_mode
	.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	x22, x1
	mov	x19, x0
	ldr	x8, [x0, #80]
	ldr	x24, [x8]
	ldr	w0, [x0, #48]
	bl	_dm_pool_metadata_needs_check
	mov	x23, x0
	mov	x0, x19
	bl	_get_pool_mode
	mov	x20, x0
Lloh0:
	adrp	x8, _no_space_timeout_secs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _no_space_timeout_secs@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_READ_ONCE
	mov	x21, x0
Lloh3:
	adrp	x8, _HZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh5:
	ldr	x25, [x8]
	cmp	w22, #128
	b.ne	LBB0_3
; %bb.1:
	cbz	w23, LBB0_3
; %bb.2:
	ldr	w0, [x19, #72]
	bl	_dm_device_name
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMERR
	mov	w8, #129
	cmp	w20, #128
	csel	w22, w8, w20, eq
LBB0_3:
	cmp	w20, #132
	csel	w22, w20, w22, eq
	sub	w8, w22, #128
	cmp	w8, #4
	b.hi	LBB0_14
; %bb.4:
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
	ldr	w0, [x19, #48]
	bl	_dm_pool_metadata_read_only
Lloh10:
	adrp	x8, _process_bio_read_only@GOTPAGE
Lloh11:
	ldr	x8, [x8, _process_bio_read_only@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _process_bio_success@GOTPAGE
Lloh14:
	ldr	x9, [x9, _process_bio_success@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	stp	x9, x8, [x19, #32]
Lloh16:
	adrp	x8, _process_cell_read_only@GOTPAGE
Lloh17:
	ldr	x8, [x8, _process_cell_read_only@GOTPAGEOFF]
Lloh18:
	adrp	x9, _process_cell_success@GOTPAGE
Lloh19:
	ldr	x9, [x9, _process_cell_success@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
Lloh21:
	ldr	x9, [x9]
	str	x9, [x19, #64]
Lloh22:
	adrp	x9, _process_prepared_mapping_fail@GOTPAGE
Lloh23:
	ldr	x9, [x9, _process_prepared_mapping_fail@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	stp	x9, x8, [x19, #16]
Lloh25:
	adrp	x8, _process_prepared_discard_success@GOTPAGE
Lloh26:
	ldr	x8, [x8, _process_prepared_discard_success@GOTPAGEOFF]
	b	LBB0_13
LBB0_6:
	cmp	w20, #131
	b.ne	LBB0_8
; %bb.7:
	add	x0, x19, #52
	bl	_cancel_delayed_work_sync
LBB0_8:
	str	wzr, [x19]
	ldr	w8, [x24, #4]
	str	w8, [x19, #8]
	ldr	w0, [x19, #48]
	bl	_dm_pool_metadata_read_write
Lloh27:
	adrp	x8, _process_bio@GOTPAGE
Lloh28:
	ldr	x8, [x8, _process_bio@GOTPAGEOFF]
Lloh29:
	adrp	x9, _process_discard_bio@GOTPAGE
Lloh30:
	ldr	x9, [x9, _process_discard_bio@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
Lloh32:
	ldr	x9, [x9]
	stp	x9, x8, [x19, #32]
Lloh33:
	adrp	x8, _process_cell@GOTPAGE
Lloh34:
	ldr	x8, [x8, _process_cell@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
Lloh36:
	adrp	x9, _process_prepared_mapping@GOTPAGE
Lloh37:
	ldr	x9, [x9, _process_prepared_mapping@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	stp	x9, x8, [x19, #16]
	mov	x0, x19
	bl	_set_discard_callbacks
	b	LBB0_14
LBB0_9:
	mov	w8, #1
	str	w8, [x19]
Lloh39:
	adrp	x8, _process_bio_read_only@GOTPAGE
Lloh40:
	ldr	x8, [x8, _process_bio_read_only@GOTPAGEOFF]
Lloh41:
	adrp	x9, _process_discard_bio@GOTPAGE
Lloh42:
	ldr	x9, [x9, _process_discard_bio@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
Lloh44:
	ldr	x9, [x9]
	stp	x9, x8, [x19, #32]
Lloh45:
	adrp	x8, _process_cell_read_only@GOTPAGE
Lloh46:
	ldr	x8, [x8, _process_cell_read_only@GOTPAGEOFF]
Lloh47:
	ldr	x8, [x8]
Lloh48:
	adrp	x9, _process_prepared_mapping@GOTPAGE
Lloh49:
	ldr	x9, [x9, _process_prepared_mapping@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	stp	x9, x8, [x19, #16]
	mov	x0, x19
	bl	_set_discard_callbacks
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_14
; %bb.10:
	mul	x2, x25, x21
	cbz	x2, LBB0_14
; %bb.11:
	ldr	w0, [x19, #56]
	add	x1, x19, #52
	bl	_queue_delayed_work
	b	LBB0_14
LBB0_12:
	ldr	w0, [x19, #48]
	bl	_dm_pool_metadata_read_only
Lloh51:
	adrp	x8, _process_bio_fail@GOTPAGE
Lloh52:
	ldr	x8, [x8, _process_bio_fail@GOTPAGEOFF]
Lloh53:
	ldr	x8, [x8]
Lloh54:
	adrp	x9, _process_cell_fail@GOTPAGE
Lloh55:
	ldr	x9, [x9, _process_cell_fail@GOTPAGEOFF]
	stp	x8, x8, [x19, #32]
Lloh56:
	ldr	x8, [x9]
	str	x8, [x19, #64]
Lloh57:
	adrp	x9, _process_prepared_mapping_fail@GOTPAGE
Lloh58:
	ldr	x9, [x9, _process_prepared_mapping_fail@GOTPAGEOFF]
Lloh59:
	ldr	x9, [x9]
	stp	x9, x8, [x19, #16]
Lloh60:
	adrp	x8, _process_prepared_discard_fail@GOTPAGE
Lloh61:
	ldr	x8, [x8, _process_prepared_discard_fail@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	str	w8, [x19, #60]
	mov	x0, x19
	bl	_error_retry_list
LBB0_14:
	str	w22, [x19, #4]
	str	w22, [x24]
	cmp	w20, w22
	b.ne	LBB0_16
; %bb.15:
	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
LBB0_16:
	mov	x0, x19
	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
	b	_notify_of_pool_mode_change
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh31
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh43
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_12-LBB0_5)>>2
                                        ; -- End function
	.comm	_no_space_timeout_secs,4,2      ; @no_space_timeout_secs
	.comm	_HZ,8,3                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: unable to switch pool to write mode until repaired."

	.comm	_process_bio_fail,8,3           ; @process_bio_fail
	.comm	_process_cell_fail,8,3          ; @process_cell_fail
	.comm	_process_prepared_mapping_fail,8,3 ; @process_prepared_mapping_fail
	.comm	_process_prepared_discard_fail,4,2 ; @process_prepared_discard_fail
	.comm	_process_bio_read_only,8,3      ; @process_bio_read_only
	.comm	_process_bio_success,8,3        ; @process_bio_success
	.comm	_process_cell_read_only,8,3     ; @process_cell_read_only
	.comm	_process_cell_success,8,3       ; @process_cell_success
	.comm	_process_prepared_discard_success,4,2 ; @process_prepared_discard_success
	.comm	_process_discard_bio,8,3        ; @process_discard_bio
	.comm	_process_prepared_mapping,8,3   ; @process_prepared_mapping
	.comm	_process_bio,8,3                ; @process_bio
	.comm	_process_cell,8,3               ; @process_cell
	.no_dead_strip	_set_pool_mode
.subsections_via_symbols
