	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zfs_do_promote
_zfs_do_promote:                        ## @zfs_do_promote
	.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
	movq	%rsi, %r14
	cmpl	$2, %edi
	jl	LBB0_1
## %bb.2:
	movl	%edi, %ebx
	movq	8(%r14), %rax
	cmpb	$45, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str(%rip), %rdi
	callq	_gettext
	movq	8(%r14), %rcx
	movsbl	1(%rcx), %edx
	movl	%r15d, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_usage
LBB0_4:
	cmpl	$3, %ebx
	jb	LBB0_7
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
LBB0_6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_gettext
	movl	%ebx, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_usage
LBB0_7:
	movq	_g_zfs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r14), %rsi
	movq	_ZFS_TYPE_FILESYSTEM@GOTPCREL(%rip), %rax
	movq	_ZFS_TYPE_VOLUME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_zfs_open
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_zfs_promote
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setne	%bl
	movq	%r14, %rdi
	callq	_zfs_close
	jmp	LBB0_10
LBB0_8:
	movl	$1, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid option '%c'\n"

	.comm	_B_FALSE,4,2                    ## @B_FALSE
L_.str.1:                               ## @.str.1
	.asciz	"missing clone filesystem argument\n"

L_.str.2:                               ## @.str.2
	.asciz	"too many arguments\n"

	.comm	_g_zfs,4,2                      ## @g_zfs
	.comm	_ZFS_TYPE_FILESYSTEM,4,2        ## @ZFS_TYPE_FILESYSTEM
	.comm	_ZFS_TYPE_VOLUME,4,2            ## @ZFS_TYPE_VOLUME
	.no_dead_strip	_zfs_do_promote
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zfs_do_promote
_zfs_do_promote:                        ; @zfs_do_promote
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
Lloh0:
	adrp	x23, _stderr@GOTPAGE
Lloh1:
	ldr	x23, [x23, _stderr@GOTPAGEOFF]
Lloh2:
	adrp	x22, _B_FALSE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _B_FALSE@GOTPAGEOFF]
	cmp	w0, #2
	b.lt	LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldrb	w8, [x8]
	cmp	w8, #45
	b.ne	LBB0_3
; %bb.2:
	ldr	w21, [x23]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_gettext
	mov	x1, x0
	ldr	x8, [x19, #8]
	ldrsb	x8, [x8, #1]
	str	x8, [sp]
	mov	x0, x21
	bl	_fprintf
	ldr	w0, [x22]
	bl	_usage
LBB0_3:
	cmp	w20, #3
	b.lo	LBB0_7
; %bb.4:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	ldr	w20, [x23]
	bl	_gettext
	mov	x1, x0
	mov	x0, x20
	bl	_fprintf
	ldr	w0, [x22]
	bl	_usage
LBB0_7:
Lloh10:
	adrp	x8, _g_zfs@GOTPAGE
Lloh11:
	ldr	x8, [x8, _g_zfs@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _ZFS_TYPE_FILESYSTEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ZFS_TYPE_FILESYSTEM@GOTPAGEOFF]
	ldr	x1, [x19, #8]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _ZFS_TYPE_VOLUME@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ZFS_TYPE_VOLUME@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_zfs_open
	cbz	x0, LBB0_9
; %bb.8:
	mov	x19, x0
	bl	_zfs_promote
	cmp	x0, #0
	cset	w20, ne
	mov	x0, x19
	bl	_zfs_close
	b	LBB0_10
LBB0_9:
	mov	w20, #1
LBB0_10:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid option '%c'\n"

	.comm	_B_FALSE,4,2                    ; @B_FALSE
l_.str.1:                               ; @.str.1
	.asciz	"missing clone filesystem argument\n"

l_.str.2:                               ; @.str.2
	.asciz	"too many arguments\n"

	.comm	_g_zfs,4,2                      ; @g_zfs
	.comm	_ZFS_TYPE_FILESYSTEM,4,2        ; @ZFS_TYPE_FILESYSTEM
	.comm	_ZFS_TYPE_VOLUME,4,2            ; @ZFS_TYPE_VOLUME
	.no_dead_strip	_zfs_do_promote
.subsections_via_symbols
