	.file	"extr_ddt.c_ddt_compress.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ddt_compress
	.type	ddt_compress, @function
ddt_compress:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	rax, 1[rdx]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	lea	r13, 4[rsi]
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	movsx	rbx, DWORD PTR ZIO_COMPRESS_ZLE[rip]
	mov	QWORD PTR 8[rsp], rcx
	mov	r15, rbx
	sal	rbx, 4
	add	rbx, QWORD PTR zio_compress_table[rip]
	cmp	rax, rcx
	setbe	dil
	movzx	edi, dil
	call	ASSERT@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	rsi, r13
	mov	rdi, r12
	mov	r8d, DWORD PTR 8[rbx]
	lea	rcx, -1[rdx]
	mov	rdx, rbp
	call	[QWORD PTR [rbx]]
	mov	rbx, rax
	cmp	rbp, rax
	je	.L6
.L2:
	cmp	QWORD PTR ZFS_HOST_BYTEORDER[rip], 0
	mov	DWORD PTR [r14], r15d
	je	.L3
	or	r15d, DWORD PTR DDT_COMPRESS_BYTEORDER_MASK[rip]
	mov	DWORD PTR [r14], r15d
.L3:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	lea	rax, 1[rbx]
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdx, rax
	mov	rsi, r13
	mov	rdi, r12
	mov	r15d, DWORD PTR ZIO_COMPRESS_OFF[rip]
	call	bcopy@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	ddt_compress, .-ddt_compress
	.comm	zio_compress_table,8,8
	.comm	ZIO_COMPRESS_ZLE,4,4
	.comm	ZIO_COMPRESS_OFF,4,4
	.comm	ZFS_HOST_BYTEORDER,8,8
	.comm	DDT_COMPRESS_BYTEORDER_MASK,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_ddt.c_ddt_compress.c"
	.text
	.align	2
	.global	ddt_compress
	.syntax unified
	.arm
	.fpu softvfp
	.type	ddt_compress, %function
ddt_compress:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r2
	mov	r8, r3
	mov	r5, r1
	mov	r9, r0
	ldr	r2, .L10
	ldr	r3, .L10+4
	ldr	r7, [r2]
	ldr	r6, [r3]
	add	r0, r4, #1
	cmp	r0, r8
	movhi	r0, #0
	movls	r0, #1
	sub	sp, sp, #8
	add	r10, r6, r7, lsl #3
	bl	ASSERT
	ldr	r3, [r10, #4]
	add	r10, r5, #4
	str	r3, [sp]
	ldr	r6, [r6, r7, lsl #3]
	mov	r1, r10
	mov	r2, r4
	mov	r0, r9
	sub	r3, r8, #1
	blx	r6
	cmp	r4, r0
	mov	r6, r0
	beq	.L9
.L2:
	ldr	r3, .L10+8
	str	r7, [r5]
	ldr	r3, [r3]
	add	r0, r6, #1
	cmp	r3, #0
	ldrne	r3, .L10+12
	ldrne	r3, [r3]
	orrne	r7, r3, r7
	strne	r7, [r5]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	ldr	r3, .L10+16
	mov	r1, r10
	mov	r0, r9
	mov	r2, r6
	ldr	r7, [r3]
	bl	bcopy
	b	.L2
.L11:
	.align	2
.L10:
	.word	ZIO_COMPRESS_ZLE
	.word	zio_compress_table
	.word	ZFS_HOST_BYTEORDER
	.word	DDT_COMPRESS_BYTEORDER_MASK
	.word	ZIO_COMPRESS_OFF
	.size	ddt_compress, .-ddt_compress
	.comm	zio_compress_table,4,4
	.comm	ZIO_COMPRESS_ZLE,4,4
	.comm	ZIO_COMPRESS_OFF,4,4
	.comm	ZFS_HOST_BYTEORDER,4,4
	.comm	DDT_COMPRESS_BYTEORDER_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
