	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __set_clone_mode
___set_clone_mode:                      ## @__set_clone_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_get_clone_mode
	movl	%eax, %r15d
	cmpl	$130, %eax
	cmovel	%eax, %ebx
	leal	-129(%rbx), %eax
	cmpl	$2, %eax
	jae	LBB0_1
## %bb.5:
	movl	12(%r14), %edi
	callq	_dm_clone_metadata_set_read_only
	jmp	LBB0_3
LBB0_1:
	cmpl	$128, %ebx
	jne	LBB0_3
## %bb.2:
	movl	12(%r14), %edi
	callq	_dm_clone_metadata_set_read_write
LBB0_3:
	movl	8(%r14), %edi
	movl	%ebx, %esi
	callq	_WRITE_ONCE
	cmpl	%r15d, %ebx
	jne	LBB0_6
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_dm_table_event
	movq	%r14, %rdi
	callq	_clone_device_name
	movslq	%ebx, %rcx
	leaq	l_reltable.__set_clone_mode(%rip), %rsi
	movslq	(%rsi,%rcx,4), %rdx
	addq	%rsi, %rdx
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DMINFO                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read-write"

L_.str.1:                               ## @.str.1
	.asciz	"read-only"

L_.str.2:                               ## @.str.2
	.asciz	"fail"

	.section	__TEXT,__const
	.p2align	2                               ## @reltable.__set_clone_mode
l_reltable.__set_clone_mode:
	.long	L_.str-l_reltable.__set_clone_mode
	.long	L_.str.1-l_reltable.__set_clone_mode
	.long	L_.str.2-l_reltable.__set_clone_mode

	.section	__TEXT,__cstring,cstring_literals
L_.str.3:                               ## @.str.3
	.asciz	"%s: Switching to %s mode"

	.no_dead_strip	___set_clone_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __set_clone_mode
___set_clone_mode:                      ; @__set_clone_mode
	.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	x20, x1
	mov	x19, x0
	bl	_get_clone_mode
	mov	x21, x0
	cmp	w0, #130
	csel	w20, w0, w20, eq
	sub	w8, w20, #129
	cmp	w8, #2
	b.hs	LBB0_2
; %bb.1:
	ldr	w0, [x19, #12]
	bl	_dm_clone_metadata_set_read_only
	b	LBB0_4
LBB0_2:
	cmp	w20, #128
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x19, #12]
	bl	_dm_clone_metadata_set_read_write
LBB0_4:
	ldr	w0, [x19, #8]
	mov	x1, x20
	bl	_WRITE_ONCE
	cmp	w20, w21
	b.ne	LBB0_6
; %bb.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:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_dm_table_event
	mov	x0, x19
	bl	_clone_device_name
	mov	x1, x0
Lloh0:
	adrp	x8, l___const.__set_clone_mode.descs@PAGE
Lloh1:
	add	x8, x8, l___const.__set_clone_mode.descs@PAGEOFF
	ldr	x2, [x8, w20, sxtw #3]
Lloh2:
	adrp	x0, l_.str.3@PAGE
Lloh3:
	add	x0, x0, l_.str.3@PAGEOFF
	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
	b	_DMINFO
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read-write"

l_.str.1:                               ; @.str.1
	.asciz	"read-only"

l_.str.2:                               ; @.str.2
	.asciz	"fail"

	.section	__DATA,__const
	.p2align	3                               ; @__const.__set_clone_mode.descs
l___const.__set_clone_mode.descs:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2

	.section	__TEXT,__cstring,cstring_literals
l_.str.3:                               ; @.str.3
	.asciz	"%s: Switching to %s mode"

	.no_dead_strip	___set_clone_mode
.subsections_via_symbols
