	.file	"extr_dmu_send.c_setup_featureflags.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	setup_featureflags, @function
setup_featureflags:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	cmp	QWORD PTR 24[rdi], 0
	mov	rbx, rdi
	mov	r14, QWORD PTR 64[rdi]
	mov	r12, QWORD PTR 56[rdi]
	jne	.L2
	cmp	QWORD PTR 48[rdi], 0
	jne	.L2
.L3:
	cmp	QWORD PTR 40[rbx], 0
	jne	.L5
.L33:
	cmp	QWORD PTR 24[rbx], 0
	jne	.L5
.L7:
	mov	rdx, QWORD PTR 0[rbp]
.L6:
	cmp	QWORD PTR 32[rbx], 0
	jne	.L9
	cmp	QWORD PTR 24[rbx], 0
	je	.L29
.L9:
	or	rdx, QWORD PTR DMU_BACKUP_FEATURE_COMPRESSED[rip]
	mov	QWORD PTR 0[rbp], rdx
	cmp	QWORD PTR 24[rbx], 0
	mov	rcx, QWORD PTR DMU_BACKUP_FEATURE_RAW[rip]
	je	.L10
	cmp	QWORD PTR 0[r13], 0
	jne	.L31
.L10:
	mov	rax, QWORD PTR DMU_BACKUP_FEATURE_EMBED_DATA[rip]
	or	rax, QWORD PTR DMU_BACKUP_FEATURE_COMPRESSED[rip]
	or	rax, rcx
	test	rax, rdx
	jne	.L32
.L13:
	cmp	QWORD PTR [rbx], 0
	jne	.L15
	cmp	QWORD PTR 8[rbx], 0
	jne	.L15
.L16:
	cmp	QWORD PTR 16[rbx], 0
	je	.L17
	mov	rax, QWORD PTR DMU_BACKUP_FEATURE_REDACTED[rip]
	or	QWORD PTR 0[rbp], rax
.L17:
	mov	esi, DWORD PTR SPA_FEATURE_LARGE_DNODE[rip]
	mov	rdi, r14
	call	dsl_dataset_feature_is_active@PLT
	test	rax, rax
	je	.L18
	mov	rax, QWORD PTR DMU_BACKUP_FEATURE_LARGE_DNODE[rip]
	or	QWORD PTR 0[rbp], rax
.L18:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR SPA_FEATURE_LARGE_BLOCKS[rip]
	mov	rdi, r14
	call	dsl_dataset_feature_is_active@PLT
	test	rax, rax
	je	.L3
	mov	rax, QWORD PTR DMU_BACKUP_FEATURE_LARGE_BLOCKS[rip]
	or	QWORD PTR 0[rbp], rax
	cmp	QWORD PTR 40[rbx], 0
	je	.L33
.L5:
	cmp	QWORD PTR 0[r13], 0
	jne	.L7
	mov	esi, DWORD PTR SPA_FEATURE_EMBEDDED_DATA[rip]
	mov	edi, DWORD PTR [r12]
	call	spa_feature_is_active@PLT
	mov	rdx, QWORD PTR 0[rbp]
	test	rax, rax
	je	.L6
	or	rdx, QWORD PTR DMU_BACKUP_FEATURE_EMBED_DATA[rip]
	mov	QWORD PTR 0[rbp], rdx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rax, QWORD PTR DMU_BACKUP_FEATURE_RESUMING[rip]
	or	QWORD PTR 0[rbp], rax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L31:
	or	rdx, rcx
	mov	QWORD PTR 0[rbp], rdx
.L29:
	mov	rcx, QWORD PTR DMU_BACKUP_FEATURE_RAW[rip]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L32:
	mov	esi, DWORD PTR SPA_FEATURE_LZ4_COMPRESS[rip]
	mov	edi, DWORD PTR [r12]
	call	spa_feature_is_active@PLT
	test	rax, rax
	je	.L13
	mov	rax, QWORD PTR DMU_BACKUP_FEATURE_LZ4[rip]
	or	QWORD PTR 0[rbp], rax
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	setup_featureflags, .-setup_featureflags
	.comm	ZPL_VERSION_SA,8,8
	.comm	ZFS_PROP_VERSION,4,4
	.comm	SPA_FEATURE_LZ4_COMPRESS,4,4
	.comm	SPA_FEATURE_LARGE_DNODE,4,4
	.comm	SPA_FEATURE_LARGE_BLOCKS,4,4
	.comm	SPA_FEATURE_EMBEDDED_DATA,4,4
	.comm	EINVAL,4,4
	.comm	DMU_OST_ZFS,8,8
	.comm	DMU_BACKUP_FEATURE_SA_SPILL,8,8
	.comm	DMU_BACKUP_FEATURE_RESUMING,8,8
	.comm	DMU_BACKUP_FEATURE_REDACTED,8,8
	.comm	DMU_BACKUP_FEATURE_RAW,8,8
	.comm	DMU_BACKUP_FEATURE_LZ4,8,8
	.comm	DMU_BACKUP_FEATURE_LARGE_DNODE,8,8
	.comm	DMU_BACKUP_FEATURE_LARGE_BLOCKS,8,8
	.comm	DMU_BACKUP_FEATURE_EMBED_DATA,8,8
	.comm	DMU_BACKUP_FEATURE_COMPRESSED,8,8
	.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_dmu_send.c_setup_featureflags.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_featureflags, %function
setup_featureflags:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #12]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, #0
	mov	r4, r0
	mov	r6, r1
	mov	r5, r2
	ldr	r8, [r0, #32]
	ldr	r7, [r0, #28]
	bne	.L2
	ldr	r3, [r0, #24]
	cmp	r3, #0
	bne	.L2
	ldr	r3, [r4, #20]
	cmp	r3, #0
	bne	.L5
.L43:
	ldr	r3, [r4, #12]
	cmp	r3, #0
	bne	.L5
.L38:
	ldr	r2, [r5]
	ldr	r3, .L44
.L6:
	ldr	r1, [r4, #16]
	cmp	r1, #0
	bne	.L9
	ldr	r1, [r4, #12]
	cmp	r1, #0
	beq	.L40
.L9:
	ldr	r1, .L44+4
	ldr	r0, [r1]
	orr	r2, r2, r0
	str	r2, [r5]
	ldr	r0, [r4, #12]
	cmp	r0, #0
	beq	.L41
	ldr	r0, [r6]
	ldr	ip, .L44+8
	cmp	r0, #0
	ldr	r0, [ip]
	orrne	r2, r2, r0
	strne	r2, [r5]
	ldrne	r0, [ip]
.L10:
	ldr	r3, [r3]
	ldr	r1, [r1]
	orr	r3, r3, r1
	orr	r3, r3, r0
	tst	r3, r2
	bne	.L42
.L13:
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L15
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L16
.L15:
	ldr	r2, .L44+12
	ldr	r3, [r5]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r5]
.L16:
	ldr	r3, [r4, #8]
	mov	r0, r8
	cmp	r3, #0
	ldrne	r2, .L44+16
	ldrne	r3, [r5]
	ldrne	r2, [r2]
	orrne	r3, r3, r2
	strne	r3, [r5]
	ldr	r3, .L44+20
	ldr	r1, [r3]
	bl	dsl_dataset_feature_is_active
	cmp	r0, #0
	ldrne	r2, .L44+24
	ldrne	r3, [r5]
	ldrne	r2, [r2]
	mov	r0, #0
	orrne	r3, r3, r2
	strne	r3, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L44+28
	mov	r0, r8
	ldr	r1, [r3]
	bl	dsl_dataset_feature_is_active
	cmp	r0, #0
	ldrne	r2, .L44+32
	ldrne	r3, [r5]
	ldrne	r2, [r2]
	orrne	r3, r3, r2
	strne	r3, [r5]
	ldr	r3, [r4, #20]
	cmp	r3, #0
	beq	.L43
.L5:
	ldr	r3, [r6]
	cmp	r3, #0
	bne	.L38
	ldr	r3, .L44+36
	ldr	r0, [r7]
	ldr	r1, [r3]
	bl	spa_feature_is_active
	cmp	r0, #0
	beq	.L38
	ldr	r3, .L44
	ldr	r1, [r5]
	ldr	r2, [r3]
	orr	r2, r1, r2
	str	r2, [r5]
	b	.L6
.L40:
	ldr	r0, .L44+8
	ldr	r1, .L44+4
	ldr	r0, [r0]
	b	.L10
.L42:
	ldr	r3, .L44+40
	ldr	r0, [r7]
	ldr	r1, [r3]
	bl	spa_feature_is_active
	cmp	r0, #0
	ldrne	r2, .L44+44
	ldrne	r3, [r5]
	ldrne	r2, [r2]
	orrne	r3, r3, r2
	strne	r3, [r5]
	b	.L13
.L41:
	ldr	r0, .L44+8
	ldr	r0, [r0]
	b	.L10
.L45:
	.align	2
.L44:
	.word	DMU_BACKUP_FEATURE_EMBED_DATA
	.word	DMU_BACKUP_FEATURE_COMPRESSED
	.word	DMU_BACKUP_FEATURE_RAW
	.word	DMU_BACKUP_FEATURE_RESUMING
	.word	DMU_BACKUP_FEATURE_REDACTED
	.word	SPA_FEATURE_LARGE_DNODE
	.word	DMU_BACKUP_FEATURE_LARGE_DNODE
	.word	SPA_FEATURE_LARGE_BLOCKS
	.word	DMU_BACKUP_FEATURE_LARGE_BLOCKS
	.word	SPA_FEATURE_EMBEDDED_DATA
	.word	SPA_FEATURE_LZ4_COMPRESS
	.word	DMU_BACKUP_FEATURE_LZ4
	.size	setup_featureflags, .-setup_featureflags
	.comm	ZPL_VERSION_SA,4,4
	.comm	ZFS_PROP_VERSION,4,4
	.comm	SPA_FEATURE_LZ4_COMPRESS,4,4
	.comm	SPA_FEATURE_LARGE_DNODE,4,4
	.comm	SPA_FEATURE_LARGE_BLOCKS,4,4
	.comm	SPA_FEATURE_EMBEDDED_DATA,4,4
	.comm	EINVAL,4,4
	.comm	DMU_OST_ZFS,4,4
	.comm	DMU_BACKUP_FEATURE_SA_SPILL,4,4
	.comm	DMU_BACKUP_FEATURE_RESUMING,4,4
	.comm	DMU_BACKUP_FEATURE_REDACTED,4,4
	.comm	DMU_BACKUP_FEATURE_RAW,4,4
	.comm	DMU_BACKUP_FEATURE_LZ4,4,4
	.comm	DMU_BACKUP_FEATURE_LARGE_DNODE,4,4
	.comm	DMU_BACKUP_FEATURE_LARGE_BLOCKS,4,4
	.comm	DMU_BACKUP_FEATURE_EMBED_DATA,4,4
	.comm	DMU_BACKUP_FEATURE_COMPRESSED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
