	.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, %r14d
	movq	%rdi, %r15
	movq	48(%rdi), %rax
	movq	(%rax), %r13
	movl	40(%rdi), %edi
	callq	_dm_pool_metadata_needs_check
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_get_pool_mode
	movl	%eax, %ebx
	cmpl	$128, %r14d
	jne	LBB0_3
## %bb.1:
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.2:
	movl	44(%r15), %edi
	callq	_dm_device_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DMERR
	cmpl	$128, %ebx
	movl	$129, %r14d
	cmovnel	%ebx, %r14d
LBB0_3:
	cmpl	$131, %ebx
	cmovel	%ebx, %r14d
	leal	-128(%r14), %eax
	cmpl	$3, %eax
	ja	LBB0_19
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_15:
	cmpl	$128, %ebx
	je	LBB0_17
## %bb.16:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_notify_of_pool_mode_change
LBB0_17:
	movl	40(%r15), %edi
	callq	_dm_pool_metadata_read_write
	movq	_process_bio@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r15)
	movq	_process_discard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r15)
	movq	_process_prepared_mapping@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	movq	_process_prepared_discard@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_12:
	cmpl	$130, %ebx
	je	LBB0_14
## %bb.13:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_notify_of_pool_mode_change
LBB0_14:
	movq	_process_bio_read_only@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r15)
	movq	_process_discard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r15)
	movq	_process_prepared_mapping@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	movq	_process_prepared_discard_passdown@GOTPCREL(%rip), %rax
LBB0_18:
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	jmp	LBB0_19
LBB0_5:
	cmpl	$131, %ebx
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_notify_of_pool_mode_change
LBB0_7:
	movl	40(%r15), %edi
	callq	_dm_pool_metadata_read_only
	movq	_process_bio_fail@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r15)
	movq	%rax, 24(%r15)
	movq	_process_prepared_mapping_fail@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	movq	_process_prepared_discard_fail@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_9:
	cmpl	$129, %ebx
	je	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_notify_of_pool_mode_change
LBB0_11:
	movl	40(%r15), %edi
	callq	_dm_pool_metadata_read_only
	movq	_process_bio_read_only@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r15)
	movq	_process_bio_success@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r15)
	movq	_process_prepared_mapping_fail@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	movq	_process_prepared_discard_passdown@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movq	%r15, %rdi
	callq	_error_retry_list
LBB0_19:
	movl	%r14d, (%r15)
	movl	%r14d, (%r13)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_15
	.long	L0_0_set_9
	.long	L0_0_set_12
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: unable to switch pool to write mode until repaired."

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

	.comm	_process_bio_fail,8,3           ## @process_bio_fail
	.comm	_process_prepared_mapping_fail,8,3 ## @process_prepared_mapping_fail
	.comm	_process_prepared_discard_fail,8,3 ## @process_prepared_discard_fail
L_.str.2:                               ## @.str.2
	.asciz	"read-only"

	.comm	_process_bio_read_only,8,3      ## @process_bio_read_only
	.comm	_process_bio_success,8,3        ## @process_bio_success
	.comm	_process_prepared_discard_passdown,8,3 ## @process_prepared_discard_passdown
L_.str.3:                               ## @.str.3
	.asciz	"out-of-data-space"

	.comm	_process_discard,8,3            ## @process_discard
	.comm	_process_prepared_mapping,8,3   ## @process_prepared_mapping
L_.str.4:                               ## @.str.4
	.asciz	"write"

	.comm	_process_bio,8,3                ## @process_bio
	.comm	_process_prepared_discard,8,3   ## @process_prepared_discard
	.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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #48]
	ldr	x23, [x8]
	ldr	w0, [x0, #40]
	bl	_dm_pool_metadata_needs_check
	mov	x22, x0
	mov	x0, x19
	bl	_get_pool_mode
	mov	x20, x0
	cmp	w21, #128
	b.ne	LBB0_3
; %bb.1:
	cbz	w22, LBB0_3
; %bb.2:
	ldr	w0, [x19, #44]
	bl	_dm_device_name
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMERR
	mov	w8, #129
	cmp	w20, #128
	csel	w21, w8, w20, eq
LBB0_3:
	cmp	w20, #131
	csel	w21, w20, w21, eq
	sub	w8, w21, #128
	cmp	w8, #3
	b.hi	LBB0_19
; %bb.4:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
	cmp	w20, #128
	b.eq	LBB0_7
; %bb.6:
Lloh4:
	adrp	x1, l_.str.4@PAGE
Lloh5:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_notify_of_pool_mode_change
LBB0_7:
	ldr	w0, [x19, #40]
	bl	_dm_pool_metadata_read_write
Lloh6:
	adrp	x8, _process_bio@GOTPAGE
Lloh7:
	ldr	x8, [x8, _process_bio@GOTPAGEOFF]
Lloh8:
	adrp	x9, _process_discard@GOTPAGE
Lloh9:
	ldr	x9, [x9, _process_discard@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	ldr	x9, [x9]
	stp	x9, x8, [x19, #24]
Lloh12:
	adrp	x8, _process_prepared_mapping@GOTPAGE
Lloh13:
	ldr	x8, [x8, _process_prepared_mapping@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _process_prepared_discard@GOTPAGE
Lloh16:
	ldr	x9, [x9, _process_prepared_discard@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
	cmp	w20, #130
	b.eq	LBB0_10
; %bb.9:
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_notify_of_pool_mode_change
LBB0_10:
Lloh19:
	adrp	x8, _process_bio_read_only@GOTPAGE
Lloh20:
	ldr	x8, [x8, _process_bio_read_only@GOTPAGEOFF]
Lloh21:
	adrp	x9, _process_discard@GOTPAGE
Lloh22:
	ldr	x9, [x9, _process_discard@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
Lloh24:
	ldr	x9, [x9]
	stp	x9, x8, [x19, #24]
Lloh25:
	adrp	x8, _process_prepared_mapping@GOTPAGE
Lloh26:
	ldr	x8, [x8, _process_prepared_mapping@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
Lloh28:
	adrp	x9, _process_prepared_discard_passdown@GOTPAGE
Lloh29:
	ldr	x9, [x9, _process_prepared_discard_passdown@GOTPAGEOFF]
LBB0_11:
	ldr	x9, [x9]
	stp	x9, x8, [x19, #8]
	b	LBB0_19
LBB0_12:
	cmp	w20, #131
	b.eq	LBB0_14
; %bb.13:
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_notify_of_pool_mode_change
LBB0_14:
	ldr	w0, [x19, #40]
	bl	_dm_pool_metadata_read_only
Lloh32:
	adrp	x8, _process_bio_fail@GOTPAGE
Lloh33:
	ldr	x8, [x8, _process_bio_fail@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	stp	x8, x8, [x19, #24]
Lloh35:
	adrp	x8, _process_prepared_mapping_fail@GOTPAGE
Lloh36:
	ldr	x8, [x8, _process_prepared_mapping_fail@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
Lloh38:
	adrp	x9, _process_prepared_discard_fail@GOTPAGE
Lloh39:
	ldr	x9, [x9, _process_prepared_discard_fail@GOTPAGEOFF]
	b	LBB0_18
LBB0_15:
	cmp	w20, #129
	b.eq	LBB0_17
; %bb.16:
Lloh40:
	adrp	x1, l_.str.2@PAGE
Lloh41:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_notify_of_pool_mode_change
LBB0_17:
	ldr	w0, [x19, #40]
	bl	_dm_pool_metadata_read_only
Lloh42:
	adrp	x8, _process_bio_read_only@GOTPAGE
Lloh43:
	ldr	x8, [x8, _process_bio_read_only@GOTPAGEOFF]
Lloh44:
	adrp	x9, _process_bio_success@GOTPAGE
Lloh45:
	ldr	x9, [x9, _process_bio_success@GOTPAGEOFF]
Lloh46:
	ldr	x8, [x8]
Lloh47:
	ldr	x9, [x9]
	stp	x9, x8, [x19, #24]
Lloh48:
	adrp	x8, _process_prepared_mapping_fail@GOTPAGE
Lloh49:
	ldr	x8, [x8, _process_prepared_mapping_fail@GOTPAGEOFF]
Lloh50:
	ldr	x8, [x8]
Lloh51:
	adrp	x9, _process_prepared_discard_passdown@GOTPAGE
Lloh52:
	ldr	x9, [x9, _process_prepared_discard_passdown@GOTPAGEOFF]
LBB0_18:
	ldr	x9, [x9]
	stp	x9, x8, [x19, #8]
	mov	x0, x19
	bl	_error_retry_list
LBB0_19:
	str	w21, [x19]
	str	w21, [x23]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh46
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_15-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_12-LBB0_5)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: unable to switch pool to write mode until repaired."

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

	.comm	_process_bio_fail,8,3           ; @process_bio_fail
	.comm	_process_prepared_mapping_fail,8,3 ; @process_prepared_mapping_fail
	.comm	_process_prepared_discard_fail,8,3 ; @process_prepared_discard_fail
l_.str.2:                               ; @.str.2
	.asciz	"read-only"

	.comm	_process_bio_read_only,8,3      ; @process_bio_read_only
	.comm	_process_bio_success,8,3        ; @process_bio_success
	.comm	_process_prepared_discard_passdown,8,3 ; @process_prepared_discard_passdown
l_.str.3:                               ; @.str.3
	.asciz	"out-of-data-space"

	.comm	_process_discard,8,3            ; @process_discard
	.comm	_process_prepared_mapping,8,3   ; @process_prepared_mapping
l_.str.4:                               ; @.str.4
	.asciz	"write"

	.comm	_process_bio,8,3                ; @process_bio
	.comm	_process_prepared_discard,8,3   ; @process_prepared_discard
	.no_dead_strip	_set_pool_mode
.subsections_via_symbols
