	.file	"extr_ddt.c_ddt_stat_generate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ddt_stat_generate, @function
ddt_stat_generate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r15, QWORD PTR [rdi]
	mov	rdi, rsi
	mov	r13, QWORD PTR 8[rsi]
	call	DDK_GET_LSIZE@PLT
	mov	rdi, r14
	mov	DWORD PTR 8[rsp], eax
	call	DDK_GET_PSIZE@PLT
	mov	esi, 32
	mov	rdi, r12
	mov	DWORD PTR 12[rsp], eax
	call	bzero@PLT
	mov	eax, DWORD PTR DDT_PHYS_TYPES[rip]
	test	eax, eax
	jle	.L1
	mov	DWORD PTR [rsp], 0
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	add	DWORD PTR [rsp], 1
	add	r13, 24
	mov	eax, DWORD PTR [rsp]
	cmp	DWORD PTR DDT_PHYS_TYPES[rip], eax
	jle	.L1
.L6:
	cmp	QWORD PTR 8[r13], 0
	je	.L3
	mov	eax, DWORD PTR 0[r13]
	xor	ebx, ebx
	xor	ebp, ebp
	mov	DWORD PTR 4[rsp], eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 16[r13]
	mov	rdi, r15
	lea	rsi, [rax+rbx*4]
	add	rbx, 1
	call	dva_get_dsize_sync@PLT
	add	ebp, eax
.L4:
	mov	rdi, r14
	call	DDE_GET_NDVAS@PLT
	cmp	eax, ebx
	jg	.L5
	mov	ecx, DWORD PTR 4[rsp]
	mov	eax, DWORD PTR 8[rsp]
	mov	edx, DWORD PTR 12[rsp]
	add	DWORD PTR 4[r12], eax
	imul	eax, ecx
	add	DWORD PTR 20[r12], eax
	mov	eax, edx
	add	DWORD PTR 12[r12], ebp
	imul	eax, ecx
	add	DWORD PTR [r12], 1
	imul	ebp, ecx
	add	DWORD PTR 8[r12], edx
	add	DWORD PTR 16[r12], ecx
	add	DWORD PTR 24[r12], eax
	add	DWORD PTR 28[r12], ebp
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L1:
	add	rsp, 24
	.cfi_def_cfa_offset 56
	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
	.cfi_endproc
.LFE0:
	.size	ddt_stat_generate, .-ddt_stat_generate
	.comm	DDT_PHYS_TYPES,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_stat_generate.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ddt_stat_generate, %function
ddt_stat_generate:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r0, r1
	sub	sp, sp, #20
	mov	r7, r1
	mov	r5, r2
	ldr	r6, [r1, #4]
	ldr	r8, [r3]
	bl	DDK_GET_LSIZE
	mov	r3, r0
	mov	r0, r7
	str	r3, [sp, #8]
	bl	DDK_GET_PSIZE
	mov	r3, r0
	ldr	fp, .L13
	mov	r0, r5
	mov	r1, #32
	str	r3, [sp, #12]
	bl	bzero
	ldr	r3, [fp]
	cmp	r3, #0
	ble	.L1
	mov	r9, #0
	add	r6, r6, #12
	b	.L6
.L3:
	ldr	r3, [fp]
	add	r9, r9, #1
	cmp	r3, r9
	add	r6, r6, #12
	ble	.L1
.L6:
	ldr	r3, [r6, #-8]
	cmp	r3, #0
	beq	.L3
	mov	r10, #0
	ldr	r3, [r6, #-12]
	mov	r4, r10
	str	r3, [sp, #4]
	b	.L4
.L5:
	ldr	r1, [r6, #-4]
	mov	r0, r8
	add	r1, r1, r10, lsl #2
	bl	dva_get_dsize_sync
	add	r10, r10, #1
	add	r4, r4, r0
.L4:
	mov	r0, r7
	bl	DDE_GET_NDVAS
	cmp	r0, r10
	bgt	.L5
	ldr	lr, [sp, #8]
	ldr	r0, [sp, #4]
	mov	ip, lr
	ldr	r3, [r5, #20]
	ldr	r10, [sp, #12]
	mla	ip, r0, ip, r3
	mov	r3, ip
	mov	ip, r10
	ldr	r1, [r5, #24]
	str	r3, [r5, #20]
	mla	ip, r0, ip, r1
	mov	r1, ip
	mov	ip, r0
	ldr	r3, [r5]
	ldr	r2, [r5, #28]
	add	r3, r3, #1
	str	r3, [r5]
	ldr	r3, [r5, #12]
	mla	ip, r4, ip, r2
	str	r1, [r5, #24]
	ldr	r2, [r5, #8]
	ldr	r1, [r5, #4]
	add	r4, r3, r4
	ldr	r3, [r5, #16]
	add	r2, r2, r10
	add	r1, r1, lr
	add	r10, r3, r0
	str	ip, [r5, #28]
	str	r1, [r5, #4]
	str	r2, [r5, #8]
	str	r4, [r5, #12]
	str	r10, [r5, #16]
	b	.L3
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	.align	2
.L13:
	.word	DDT_PHYS_TYPES
	.size	ddt_stat_generate, .-ddt_stat_generate
	.comm	DDT_PHYS_TYPES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
