	.file	"extr_zfs_main.c_zfs_do_promote.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"invalid option '%c'\n"
.LC1:
	.string	"too many arguments\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"missing clone filesystem argument\n"
	.text
	.p2align 4
	.type	zfs_do_promote, @function
zfs_do_promote:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	cmp	edi, 1
	jle	.L2
	mov	rax, QWORD PTR 8[rsi]
	mov	ebp, edi
	cmp	BYTE PTR [rax], 45
	je	.L12
	cmp	ebp, 2
	jne	.L13
.L5:
	mov	rsi, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR g_zfs[rip]
	mov	r12d, 1
	mov	edx, DWORD PTR ZFS_TYPE_FILESYSTEM[rip]
	or	edx, DWORD PTR ZFS_TYPE_VOLUME[rip]
	call	zfs_open@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L1
	mov	rdi, rax
	xor	r12d, r12d
	call	zfs_promote@PLT
	mov	rdi, rbp
	test	rax, rax
	setne	r12b
	call	zfs_close@PLT
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
.L10:
	call	gettext@PLT
	mov	edi, DWORD PTR stderr[rip]
	mov	rsi, rax
	xor	eax, eax
	call	fprintf@PLT
	mov	edi, DWORD PTR B_FALSE[rip]
	call	usage@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	lea	rdi, .LC2[rip]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L12:
	movsx	r12d, BYTE PTR 1[rax]
	lea	rdi, .LC0[rip]
	call	gettext@PLT
	mov	edi, DWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edx, r12d
	xor	eax, eax
	call	fprintf@PLT
	mov	edi, DWORD PTR B_FALSE[rip]
	call	usage@PLT
	cmp	ebp, 2
	je	.L5
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	zfs_do_promote, .-zfs_do_promote
	.comm	stderr,4,4
	.comm	g_zfs,4,4
	.comm	ZFS_TYPE_VOLUME,4,4
	.comm	ZFS_TYPE_FILESYSTEM,4,4
	.comm	B_FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_zfs_main.c_zfs_do_promote.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"invalid option '%c'\012\000"
	.align	2
.LC1:
	.ascii	"too many arguments\012\000"
	.align	2
.LC2:
	.ascii	"missing clone filesystem argument\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	zfs_do_promote, %function
zfs_do_promote:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, #1
	push	{r4, r5, r6, lr}
	mov	r5, r1
	ble	.L2
	ldr	r3, [r1, #4]
	mov	r4, r0
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	beq	.L11
	cmp	r4, #2
	bne	.L12
.L5:
	ldr	r2, .L13
	ldr	r3, .L13+4
	ldr	r0, [r2]
	ldr	r2, [r3]
	ldr	r3, .L13+8
	orr	r2, r0, r2
	ldr	r1, [r5, #4]
	ldr	r0, [r3]
	bl	zfs_open
	subs	r4, r0, #0
	moveq	r4, #1
	beq	.L1
	bl	zfs_promote
	mov	r3, r0
	mov	r0, r4
	subs	r4, r3, #0
	movne	r4, #1
	bl	zfs_close
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r3, .L13+12
	ldr	r0, .L13+16
.L9:
	ldr	r4, [r3]
	bl	gettext
	mov	r1, r0
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L13+20
	ldr	r0, [r3]
	bl	usage
	b	.L5
.L2:
	ldr	r3, .L13+12
	ldr	r0, .L13+24
	b	.L9
.L11:
	ldr	r3, .L13+12
	ldr	r0, .L13+28
	ldr	r6, [r3]
	bl	gettext
	ldr	r3, [r5, #4]
	mov	r1, r0
	ldrb	r2, [r3, #1]	@ zero_extendqisi2
	mov	r0, r6
	bl	fprintf
	ldr	r3, .L13+20
	ldr	r0, [r3]
	bl	usage
	cmp	r4, #2
	beq	.L5
	b	.L12
.L14:
	.align	2
.L13:
	.word	ZFS_TYPE_FILESYSTEM
	.word	ZFS_TYPE_VOLUME
	.word	g_zfs
	.word	stderr
	.word	.LC1
	.word	B_FALSE
	.word	.LC2
	.word	.LC0
	.size	zfs_do_promote, .-zfs_do_promote
	.comm	stderr,4,4
	.comm	g_zfs,4,4
	.comm	ZFS_TYPE_VOLUME,4,4
	.comm	ZFS_TYPE_FILESYSTEM,4,4
	.comm	B_FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
